-
Notifications
You must be signed in to change notification settings - Fork 293
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
Interactive window theming is broken for the material theme #3345
Comments
I'm assuming this is just the material theme that's broken? |
Yes, the standard VS code themes work. |
Root cause is the material theme has rules with empty colors. The monaco editor doesn't handle this case, so we have to special case it in our theme parsing. |
I have to mention though that before the todays update the theme was working perfectly fine. |
The new update added intellisense support into the interactive window. That change required a change to the underlying editor we use. The old editor didn't even read themes. The new one is the same one VS code uses and it can read theme values. The theme values on the Material Theme are missing some foreground values (although this is likely on purpose) |
Nice! Thank you for the explanation! |
@rchiodo I'm wondering what the status is of the push for this fix? I'm running version 1.36.0-insider and am still experiencing the same problem when using the Cobalt2 theme. Version details are below: Version: 1.36.0-insider (user setup) Thanks!! |
This fix is in our insider's build. To install our insider's you don't need vscode-insiders, but rather the insider's vsix for our extension. It can be found here You install this from the extension tab by uninstalling the python extension, clicking the '...' in the upper right, and picking install from vsix. |
Actually Cobalt2 has another problem. #ccc is one of the token colors and the monaco editor doesn't handle that. So Cobalt2 is actually a separate bug. |
I ented a new issue for Cobalt2: |
You're absolutely right, thanks for the reply and for correcting my poor reading of the initial issue. And thanks again for filing the bug with Cobalt2. |
@rchiodo I downloaded the VSIX extension and installed it, but found that this version breaks my python interactive window with the error below. I know it's nothing wrong with my jupyter notebook environment because I can successfully run the same code in my terminal.
I have since uninstalled the vsix extension and just switched to another theme (I had Material theme installed), and everything is now working fine. Should this be another reported issue? |
Thanks. Yes that's a separate issue. Caused by a recent submission. I've logged the following bug: https://github.com/microsoft/vscode-python/issues/5956 |
Environment data
Expected behaviour
Correct theming of the Python interactive windows as in the version before. I am using material theme.
Actual behaviour
% 50 of the interactive window are occupied by the following, formated correctly like a markdown section:
Error: Illegal value for token color: at
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)The text was updated successfully, but these errors were encountered: