-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
WIP: feat(angular): add groovy in angular #772
base: main
Are you sure you want to change the base?
Conversation
hi , @kaisalmen , any idea for the above screenshot compile error ? i added https://github.com/TypeFox/monaco-languageclient/pull/772/files#diff-6ccdef4ee1898bb434934b3a9d897e4abe51c9a6359ff77ebf055eb16bc1b5a3 but it does not seem like it will fix it . thanks, |
Hi @ls-infra you can re-use the default editor worker loading instructions exported by the examples. The pre-compiled version of the wrapper is not required. I pushed the proposed changes here: It is one commit on top of yours (commit changes) |
I don't see this error. The groovy example works on main. Did you try to start fresh (clean node_modules, etc.)? There is There is now one other multi-languageclient example: But it uses one editor and switches the code. It may be that there is a problem when you start two wrappers with two different languageClientWrapper configurations. I haven't tested this, yet. There could something go wrong in the global monaco-editor "wiring". Can you only use one editor for now? |
the http://localhost:20001/packages/examples/groovy.html works , i just added the d1a1dc7 , thanks |
@ls-infra we can't unfortunately use |
the build is fine but the error related to package.nls.json and dark_modern.json is in run time not build time . any idea i need to change to fix this ? |
No, the vite dev server uses esbuild and the plugin is used to overcome a problem with The angular dev server also uses vite and esbuild, but I tried to use that plugin in that past, but it doesn't work. Therefore we have this problem. With custom webpack configuration the problems were worse. Investigations with these kind of problems is time consuming and have not found a solution, yet |
does it mean that the angular wrapper can not work with Groovy lang server until further investigation on vite dev server . |
It is probably related to the different/ kind of resources that are being loaded. Does the problem exist If only thegroovy ls is used? |
the vanilla js with Groovy LSP works well (https://github.com/TypeFox/monaco-languageclient/blob/main/packages/examples/src/groovy/client/main.ts) , just the angular with Groovy LSP does not work well and have issue as shown in the PR. thx |
@ls-infra I need to dig into this, but did not yet find the time. I hope that will be possible next week. |
I would like to see this working as well. |
as discussed in #763 , adding groovy editor to angular to support multiple lang mode like https://microsoft.github.io/monaco-editor/ , (this will be a good starting point as well to attract angular devs to contribute to enhance the wrapper together.)
but i am getting below error ,
my first guess will be that https://github.com/TypeFox/monaco-languageclient/blob/main/verify/angular/package.json#L23 is overriding the original
monaco-editor
modules ?thanks