-
Notifications
You must be signed in to change notification settings - Fork 211
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
[vscode] Spring Boot Tools slow down code complete #808
Comments
Thanks for reporting this @degbug. Slowing down typing speed or completion performance is an absolute no-go here. We need to investigate. Thanks for attaching the log output, that is a great starting point. From what I can see, it looks like the slowdown happens sometimes, and sometimes it doesn't. Did you observe any special action or sequence of activities that triggers the slowdown? |
@martinlippert No, I didn't observed. When I first open the project and first typing is quickly, but then it become very easy to triggers the slowdown. But I don't know what cause this. |
I'm having a similar issue with 4.15.2 on eclipse. I didn't have time to dig into it and create an issue/reproduction. I had to revert to 4.15.1 to get my work done. |
@degbug please try this vsix and let us know if this works better for you: https://s3.us-west-1.amazonaws.com/s3-test.spring.io/sts4/vscode-extensions/snapshots/vscode-spring-boot-1.38.0-202208052243.vsix |
@BoykoAlex I have try vscode-spring-boot-1.38.0-202208052243.vsix, It works better than before. but still work slow than disable the vscode-spring-boot extensions. this is the log file: And I saw error in log:
|
@degbug does it feel slower than 1.36 of spring boot tools extension? |
@BoykoAlex I tried and feel it slower than 1.36. |
Thanks again @degbug for attaching the log output. The latest one looks okay-ish from the completion standpoint, so I am really surprised to see that version 1.38 is so much slower (thanks for the recordings, looks indeed quite terrible). More investigations on our side necessary, I guess. Will keep you updated here. And thanks a lot for testing snapshot builds for us, this is extremely useful. Hope you find the time to test additional snapshots in the future around this issue. |
@martinlippert This the logs: vscode-spring-boot-1.38.0-202208052243: 1.36: And I am glad to test additional snapshots in the future. |
Quick update: I tried this with the various versions. I can clearly reproduce the slowdown when using the latest release version The question is, why. The log indicate that the overall content-assist performance from the Spring Boot language server seems to be okay-ish and fast, so it doesn't look like the editor waits for the language server to return content-assist information. Looks like some additional investigations are necessary here... We will continue with that... |
When looking at what exactly the language server is doing, it looks to me like nothing is really blocking the code completion anymore, but too much other stuff is going on: |
I've pushed d557c0d to turn off the Rewrite reconcile bits by default. Will wait for the build to go through, smoke test it and then provide a link to the build here |
@degbug Here is the new build to try: https://dist.springsource.com/snapshot/STS4/nightly-distributions.html At the bottom of the page please download vscode-spring-boot vsix file. I hope typing will become the same as before. If this is the case wonder if you could find in Preferences -> Settings then under Extensions -> Boot-Java Config find the setting |
@BoykoAlex But no matter I enable or disable the Rewrite: Reconcile option. I feel it behavior is same. This is the log first install the vscode-spring-boot-1.38.0-202208091607.vsix And I notice that when I enable the Rewrite: Reconcile option, the log can not output. When I reopen the project it appear. And this is the log of vscode-spring-boot-1.38.0-202208052243.vsix. |
Thanks very much for trying the build out :-) Sounded like https://s3-us-west-1.amazonaws.com/s3-test.spring.io/sts4/vscode-extensions/snapshots/vscode-spring-boot-1.38.0-202208091607.vsix worked just like 1.36 and in both cases: rewrite reconcile off and on. If this is correct I suppose we should get to start releasing STS4 with the fix we've put in. |
FWIW, I tried out the latest nightly in eclipse and the slowness I was experiencing appears to be fixed as well. |
@youngm Thanks for trying this and letting us know, very very much appreciated. The maintenance release 4.15.3 should go live tomorrow (most likely). |
Describe the bug
when I install Spring Boot Tools in vscode, it slow down the speed of code completions.
I seen the plugin log show :
To Reproduce
Sample
https://github.com/degbug/demo
this is the log file:
boot.log.txt
The text was updated successfully, but these errors were encountered: