monaco-languageclient: issue with v6.5.0 (There is already an extension with this id error) on inputFactories

Screenshot 2023-10-02 at 10 38 49 AM

After upgrading to the latest version, it builds successfully, but throws error on the run time. The console says (There is already an extension with this id error) on inputFactories.

it looks like the inputFactories got imported twice ?

appreciate any insights.

@kaisalmen @CGNonofr

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 44 (8 by maintainers)

Most upvoted comments

@kaisalmen might this be something for the troubleshooting section? this is including mine the 3rd occurrance of this problem? (see also https://github.com/TypeFox/monaco-languageclient/issues/538)

@cdietrich Worked like a charm, thank you 🥳

New release is available: https://www.npmjs.com/package/monaco-languageclient/v/6.5.1

Thank you all for getting to the bottom of this fairly quickly!

@CGNonofr Ok, so whatever we have it is not compatible with regular monaco-editor tooling in the end or needs proper customization (see https://github.com/CodinGame/monaco-vscode-api/issues/219). Wouldn’t it then make sense to fully rely/rename (also for all your packages) on a self-standing npm package e.g. called monaco-vscode-api-editor that can be used in combination with overrides / resolutions to override monaco-editor. It is basically what is done here already.

This way people realize the have something else and could force it in the dependency chain instead of monaco-editor. Also, then people no longer need such tooling (MonacoWebpackPlugin), right? Does it make sense? WDYT?

i had to resolve buffer to a newer version in package.json

"resolutions": {
   ...
    "buffer": "^6.0.3",
    ...
  }

the vscode buffer checks if buffer is available in global and if yes uses that one

@kaisalmen according to chatGPT 😭

"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.0 <1.83.0"

I added it to my package.json image

I can confirm the vscode version mismatch in monaco-languageclient@6.5.0

Screenshot 2023-10-04 at 11 00 56 AM