You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Using --run with inputs causes the ipynb output file to crash the C# Language Server in VS Code when opening with Polyglot Notebooks v1.0.4403010 resulting in the notebook's Output cells being cleared. Possible fix below.
[LanguageServerHost]System.InvalidOperationException: didOpen received for vscode-notebook-cell:/c:/Users/xxxxxxxxxxx/repos/polyglot/playground/dotnet-repl-error/dotnet-repl-output.ipynb#W1sZmlsZQ== which is already open. - line 106
at Roslyn.Utilities.Contract.Fail(String message, Int32 lineNumber) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Utilities/Contract.cs:line 154
...
...
Cause
dotnet-repl writes the following json key into the output file:
Replacing this key with how VS Code writes it results in the dotnet-repl file successfully loading in VS Code:
"language_info": {
"name": "polyglot-notebook"
},
The text was updated successfully, but these errors were encountered:
andy-merrick
changed the title
--run Output Notebook Crashes VS Code C# Language Server
Repl --run Output Notebook Crashes VS Code C# Language Server
Aug 26, 2023
Issue Type: Bug
Description: Using
--run
with inputs causes theipynb
output file to crash the C# Language Server in VS Code when opening with Polyglot Notebooks v1.0.4403010 resulting in the notebook's Output cells being cleared. Possible fix below.Command
Repro Files
dotnet-repl
Output FileVS Code C# Terminal Output Error
Cause
dotnet-repl
writes the following json key into the output file:Fix
Replacing this key with how VS Code writes it results in the
dotnet-repl
file successfully loading in VS Code:The text was updated successfully, but these errors were encountered: