monaco-languageclient: [MonacoEditorReactComp] python syntax highlighting no longer works after update to 8.0.0
We are using <MonacoEditorReactComp />
with python-lsp-server in our electron app, after the update to 8.0.0 the syntax highlighting stopped working. Everything else works fine.
@codingame/monaco-vscode-python-default-extension
is in importet aswell.
After having a throughout look at the new examples we are not sure what is still missing.
Debug log:
Initializing vscode services. Caller: monaco-editor (16)
Loading service: fileService
Loading service: textFileService
Loading service: filesConfigurationService
Loading service: elevatedFileService
Loading service: labelService
Loading service: configurationService
Loading service: contextService
Loading service: textResourceConfigurationService
Loading service: workspaceEditingService
Loading service: workspacesService
Loading service: textResourcePropertiesService
Loading service: languageService
Loading service: ILanguageStatusService
Loading service: textModelService
Initialization of vscode services completed successfully.
Starting monaco-editor (16)
Init of Classic App was completed.
getWorker: moduleId: workerMain.js label: editorWorkerService
Creating worker: file:///home/leon/Projects/frontend/node_modules/monaco-editor-wrapper/dist/workers/editorWorker-es.js
LanguageClientWrapper status:
LanguageClient: Python Language Server is in a 'Running' state
logger.js:20 languageClientWrapper (Python Language Server): Started successfully``.
UserConfig:
languageClientConfig: {
options: {
name: 'Python Language Server',
$type: 'WebSocket',
host: 'localhost',
port: 9002,
path: 'python',
secured: false,
startOptions: {
onCall: (languageClient?: MonacoLanguageClient) => {
languageClient?.sendRequest(
'workspace/didChangeConfiguration',
pluginConfig
);
},
reportStatus: true,
},
},
clientOptions: {
documentSelector: ['python'],
workspaceFolder: {
index: 0,
name: 'workspace',
uri: URI.file(stepsUrl ?? ''),
},
},
},
wrapperConfig: {
serviceConfig: {
debugLogging: true,
},
editorAppConfig: {
$type: 'classic',
languageId: 'python',
useDiffEditor: false,
code,
},
},
};
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 24 (5 by maintainers)
little update, apparently my problem was having
"vscode-oniguruma": "^2.0.1",
as an explicit dependency in the project. After removing thevscode-oniguruma
dependency and adding the middle ware to the webpack devserver it works. Still not sure why the middleware is needed in our project after comparing the webpack configs of our project and the minimal repo 🤷