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
Application or Package Used
@nteract/monaco-editor
Describe the bug
When using the @nteract/monaco-editor inside a custom UI using @nteract/stateful-components, there is no Python syntax highlighting or code completion. It works with 3.5.3.
To Reproduce
I am overriding the default editor through the slot in the Cell component from @nteract/stateful-components, with a component that uses the Monaco Editor from @nteract/monaco-editor.
I have confirmed that the language prop being passed in is set to 'python' but the Monaco Editor when rendered to the dom shows 'plaintext'. And there is no syntax highlighting or code completion.
Expected behavior
Python code syntax highlighting and code completion should work.
Screenshots
Working with v3.5.3
Not working when I upgrade to v3.5.5
Monaco Editor Working with JSON
Desktop (please complete the following information):
OS: Ubuntu
Browser: Electron App
Additional context
I am also using a Monaco Editor to edit JSON files and that still highlights correctly.
I am bundling with Webpack v5 and using the Monaco Editor Webpack Plugin.
The text was updated successfully, but these errors were encountered:
Application or Package Used
@nteract/monaco-editor
Describe the bug
When using the @nteract/monaco-editor inside a custom UI using @nteract/stateful-components, there is no Python syntax highlighting or code completion. It works with 3.5.3.
To Reproduce
I am overriding the default editor through the slot in the Cell component from @nteract/stateful-components, with a component that uses the Monaco Editor from @nteract/monaco-editor.
The CodeEditor component above just wraps the Nteract supplied Monaco Editor and defaults some props.
I have confirmed that the
language
prop being passed in is set to 'python' but the Monaco Editor when rendered to the dom shows 'plaintext'. And there is no syntax highlighting or code completion.Expected behavior
Python code syntax highlighting and code completion should work.
Screenshots
Working with v3.5.3
Not working when I upgrade to v3.5.5
Monaco Editor Working with JSON
Desktop (please complete the following information):
Additional context
I am also using a Monaco Editor to edit JSON files and that still highlights correctly.
I am bundling with Webpack v5 and using the Monaco Editor Webpack Plugin.
The text was updated successfully, but these errors were encountered: