Skip to content
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

Error: [invokeFunction] unknown service 'explorerService' #157

Closed
AXeL-dev opened this issue Aug 3, 2023 · 7 comments
Closed

Error: [invokeFunction] unknown service 'explorerService' #157

AXeL-dev opened this issue Aug 3, 2023 · 7 comments

Comments

@AXeL-dev
Copy link

AXeL-dev commented Aug 3, 2023

Hello,

I'm getting an error when triggering the redo action using the following line of code:

editor.trigger('keyboard', 'redo', {});

The error message is the following:

Screen Capture_select-area_20230804110715

Below my packages versions:

  • monaco-editor: 0.37.1
  • monaco-vscode-api: 1.78.8
  • monaco-languageclient: 6.0.3

After some investigation, it seems like the error is coming from the following piece of code:

Screen Capture_select-area_20230803230741

I thought to override the ExplorerService to bypass the error still i didn't succeed, it seems like there is no override/implementation yet for that service, am i right?

Any help is welcome, thank you!

@CGNonofr
Copy link
Contributor

CGNonofr commented Aug 4, 2023

Can you try with the last version of this lib/monaco-editor?

@AXeL-dev
Copy link
Author

AXeL-dev commented Aug 4, 2023

Hello @CGNonofr, thank you for your reply.

Can you try with the last version of this lib/monaco-editor?

After upgrading to the last version of the lib:

Screen Capture_select-area_20230804120159

I get the following error now:

Screen Capture_select-area_20230804122907

@kaisalmen
Copy link
Collaborator

Hi @AXeL-dev there is a next version is available (TypeFox/monaco-languageclient#512):
https://www.npmjs.com/package/monaco-languageclient/v/6.3.0-next.1
that uses monaco-vscode-api 1.80.1-next.0 and monaco-editor 0.40.0

@kaisalmen
Copy link
Collaborator

@CGNonofr and @AXeL-dev There now is a Draft PR: TypeFox/monaco-languageclient#513
I need to update documentation, but then it is ready for review.

@AXeL-dev
Copy link
Author

AXeL-dev commented Aug 4, 2023

Hello @kaisalmen & thank you for the reply,

When upgrading to version 6.3.0-next.1 i get the following errors on build:

Screen Capture_select-area_20230804125700

Screen Capture_select-area_20230804125825

I think that i have a miss-configuration in webpack 🤔 .

@AXeL-dev
Copy link
Author

AXeL-dev commented Aug 4, 2023

@kaisalmen Actually, it was due to a missing dependency, i fixed it by installing it:

npm i @vscode/vscode-languagedetection

@AXeL-dev
Copy link
Author

AXeL-dev commented Aug 4, 2023

@CGNonofr @kaisalmen All good now! the redo works correctly with version 6.3.0-next.1.

Thank you so much for the help!

@AXeL-dev AXeL-dev closed this as completed Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants