-
Notifications
You must be signed in to change notification settings - Fork 34
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
IndexOutOfBoundsException repro #41
Comments
sorry i have no idea how current the monaco thing is. and if the lsp versions match. at a first try yarn does not seem to start the server i also dont see a line 8 at all in your sample snippet. |
when i debug in vscode i get this undo
|
mydsl-standalone is also not a websocket server but a normal socket server |
yes you are right - it is wrapped in a websocket typescript implementation. You are right in vscode it seems to indeed send a request but not monaco so I will attempt to look more closely there. Line 8 not being referred to is another manifestation of the problem - it is in the snippet after the second snippet is pasted and then undone. Thank you very much for looking and for the help- I think it is clear that this problem is with the monaco LSP implementation and used to be with VSCode but now seems to be fixed. I will keep investigating the difference |
Thank you for this excellent repo which has been really helpful. I have reproduced the following trace with the repo and a standard monaco server (harder to repro in VSCode but hopefully this gives an indication and this is very much the same issue as that linked below):
(relates to eclipse/xtext-core#1451 )
to repro: on this fork and branch:
https://github.com/ewenmaclean/xtext-languageserver-example/tree/IndexOutOfBoundsError
in the
monaco-server
dir runyarn
thenyarn prepare
in the server dir. Thenyarn start
from the server dir to start - you will get an editor athttp://localhost:3000
.Now do the following - add the text:
then paste in at the end
Now hover over the validation error at "you!". Now delete this section, then press ctrl-Z so it reappears and then hover over the "you!" error again and you should get the error trace above
The text was updated successfully, but these errors were encountered: