-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
upgrading to monaco-languageclient version 6 throws command failed error #491
Comments
Hi @OliverwengFiltered thank you for reporting the problem. A similar or the same problem is reported here: CodinGame/monaco-vscode-api#113 The second time it tries to apply the patch to monaco-editor it exits with error. |
@kaisalmen
is this something you folks can fix ? |
Yes, but not immediately. You need to live with it for a couple of days or use a workaround. pnpm seems to be the most problematic. |
@kaisalmen |
@OliverwengFiltered in addition to the upcoming fix linked above I have updated the README: https://github.com/TypeFox/monaco-languageclient#using-monaco-languageclient Any project using |
@OliverwengFiltered this is finally fixed with: https://www.npmjs.com/package/monaco-languageclient/v/6.0.3 |
Thank you for fixing the postinstall issue. I was trying the upgrade, but instead I got some module export error. I'm using the corresponding versions for monaco-editor and vscode-api . Any insight on this ? Thank you ! |
@CGNonofr any idea just by looking at the errors? My first guess is mismatching tsconfig/webpack config with regard to module/moduleResolution , but it is just guesswork without seeing the config. |
My guess is the patch wasn't applied |
@OliverwengFiltered to my knowledge there is nothing as simple as |
cleaning node_modules, remove lock files didn't seem to help. Still hitting same kinda error. it seems some export became unavailable, are we certain that the v6.0.3 compatible with monaco-editor 0.37.1 ? and vscode api 1.78.8 ? Thanks. |
@OliverwengFiltered this is really weird. I now added It is not part of the npm workspace and allows to check install and manual invocation of treemending. |
I push another update. It is working for both package managers including multiple manual executions of |
Thank you for adding those steps, I assume in order for us to picking up the latest, we will need to wait for the next release ? |
@OliverwengFiltered |
Hi @kaisalmen the v6.1.0-next.1 is promising, I am able to build it with some minor code changes on my end. I'm logging my changes here in case it helps you folks for additional improvements or for anyone else to see if needed.
appreciate any sight, regarding to those error messages. Thanks! |
@OliverwengFiltered did you configure services with @CGNonofr |
This error comes from the FileService not being overriden, what make you think it's not sufficient? |
Doesn't the files service initialize an in memory file system that is used if nothing else is done? |
Correct! |
Then this is strange as @OliverwengFiltered can you at least add the debug logging? Thanks await initServices({
debugLogging: true
}); |
@kaisalmen where to see additional debug log ? i have enabled it with |
@OliverwengFiltered you should at least see these info message, because the files service is always initialized: |
@kaisalmen one thing worth mentioning is that, on my end, when the editor instance is created, it loads with a simple text model, (no errors at this point), and I have a language switch UI, once I click the language switch UI to switch to Java for example, then it will show the error. (my code is re-using the editor instance and switching model by using the |
The error is caused by the call to Are you sure to initialize the service BEFORE creating the first editor? |
this works like a champ. As soon as I move the BTW, do you folks have insights about why there is a need to install vscode-textmate vscode-oniguruma two packages manually ? |
@OliverwengFiltered that's good news
Don't know. When using |
all good, thank you for the support and knowledge sharing. I will be looking forward to the next release ! have a great weekend! |
Hi there,
I'm currently using monaco-languageclient version v5, when I'm upgrading it to v6, it throws command failed error.
it says
I have added the
postinstall
prop under package.json with valuemonaco-treemending
and also tried manually runnpx monaco-treemending
, it printsMonaco-editor was tree-mended
.however, when I run
yarn upgrade monaco-languageclient
, it prints the above command failed error.any ideas how to solve ?
The text was updated successfully, but these errors were encountered: