-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing syntax highlighting in Polyglot Notebook extension when launched from dev container #2683
Comments
@colombod I also have IntelliSense when I write code, but there is no syntax highlighting. |
Same here on WSL. |
+1 I'm seeing it in a PN inside a DevContainer, running in WSL Debian. |
Windows 10, vs code here as well with "about" information:
In my case it looks like the vs code theme is the culprit for the missing colors. If i change to one of the built in ones then the colors are displayed, but if i choose a custom theme like |
Still having issues on Mac: Mac specs:macOS Ventura 13.4.1 VS Code:Visual Studio Code v1.81.1 Polyglot Notebooks:v1.0.4403010 Screenshot:UPDATE:As @nicro950 is stating, the theming is the issue for me as well. All the themes following as defaults works fine and highlights syntax as wanted. Using |
I reproduce the syntax highlight issues, with the devcontainer from the semantic kernel. Changing color theme brings syntax highlighting back for #!import statement. But nothing else. Version: 1.82.0 (user setup) |
Is anyone seeing this happen when not running in a dev container? |
I forked this https://github.com/microsoft/polyglot-education and am running in Codespaces and see no highlighting, no matter what color scheme I choose. Also can't use shortcuts to comment lines. I was having trouble getting it to install on my local Win10, but turns out I had to reboot after installing the SDK I guess. I see syntax highlighting and shortcuts there, so I'll abort using Codespaces with it for now. But that'd be a good test case for you since it is an official Microsoft repo for using Polyglot with Codespaces. |
In my case syntax highlighting doesn't work only when creating or opening .dib files. And it works fine with .ipynb files. |
this is local run on mac, no dev container in your case @mika76 ? |
@colombod yes local on my mac (Macbook pro 16" 2019, Sonoma 14.1.2 (23B92)) |
I have the same problem with polyglot notebooks running locally. Polyglot Notebooks Version: 1.85.2 (system setup) .NET Interactive |
What do you mean by autodetect? |
@colombod In vscode, when you click Select Cell Language mode on a code cell, it brings up the command pallet, where if you click Auto Detect, it changes to whatever language you are using. |
I was unaware that the Autodetect feature would change that value, and it's clearly putting the notebook into an unexpected state. The intended values that can be selected there are Code and Markdown. |
@shiftybit it fixes the color only, and I if I open and close it, it dissapers. When I try to execute with anything but |
Same issue here: devcontainer with no syntax highlighting. |
@serefarikan What errors are you seeing? |
To add on that, same here, my C# notebook works well locally (Macos, dotnet 8) with syntax highlighting. However, in a dev container (jammy dotnet 8) the notebook works but without syntax highlight. Same errors as the post above, here are the logs for more information
|
Just wanted to mention here, I noticed that I had |
Same in GitHub Codespaces, no syntax highlighting for Polyglot Notebooks (using JS here). Bummer :/ |
Describe the bug
Please provide as much information as you can.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):Polyglot Notebooks Version: v1.0.4102020
Screenshots
The text was updated successfully, but these errors were encountered: