-
Notifications
You must be signed in to change notification settings - Fork 206
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
Boot Properties Editor Code Completions not work #164
Comments
Thanks for @BoykoAlex replay. Yes, I did it but code completion not appeared. sts3.9.2 completion works fine How can I check what wrong for my environment ? |
console log :
jps : |
have error log
|
@cenggel The log output from the console looks fine to me, nothing in there that looks like an error or like something is going wrong. The error from the Error Log seems to come from the Marketplace Client in Eclipse, so also not related to the property editing. Looks like we need to dive deeper to find the root cause for this. Can you attach (or point us to) a sample project that reproduces the error? One thing that I noticed is that your example screenshot from 3.9.x is for a .properties file where you use the notion
|
When I hit Ctrl+Space in editor not happend any thing. my demo is just create a simple spring boot project. attached by demo-2.zip Thanks @martinlippert & @BoykoAlex . |
Did you launch your STS with Java 11? Do you have any errors on you project? At first I didn't get any content assist as well, but that was because i had maven problems on the project which i fixed by running STS with Java 8 (M2E doesn't seem to be working with Java 11). Then everything worked with your project. |
This is old JDK. Try use the latest JDK. Mine is not latest, quite old, but it's 1.8.0_151 |
I upgrade jdk to |
@cenggel this is really strange, since everything looks like it should just work... :-( What happens if you create and open a file called |
@martinlippert edit |
Can you paste the content of your SpringTools4.ini file? Just guessing around, since I am running out of ideas here. |
I also tried your demo project with the latest STS4 CI distribution build and the content-assist shows up just fine for the From what I can observe is that the log output from the language server (once you enabled that in the preferences), it shows additional output right after you hit content-assist for the first time in that application.yml file. Can you double check that? Maybe with a fresh STS4 install from the CI builds at http://dist.springsource.com/snapshot/STS4/nightly-distributions.html, using the latest version on Eclipse 4.10? Can you try that? I am sorry for this taking so long to debug, seems like a really strange and hard-to-diagnose issue... |
And thanks for all your patience... :-) |
Thanks for your replay . This is my spring-tool-suite-4-4.0.2.RELEASE-e4.9.0-macosx.cocoa.x86_64
I installed new eclipse 2018-12 and sts from http://dist.springsource.com/snapshot/TOOLS/sts4/nightly/e4.10 I had tried spring-tool-suite-4-4.1.0.CI-B1426-e4.9.0-macosx.cocoa.x86_64.dmg spring-tool-suite-4-4.0.2.RELEASE-e4.9.0-macosx.cocoa.x86_64.dmg all content-assist not showing up . |
What happens if you enter string value for |
Maybe it has to do something with the OS... but at first sight it looks like the language server process works for some features like linting and not working for others like content assists... Unfortunately, so far it seems like some debugging on your system would be necessary to get to the bottom of this... We'd have to come up with instructions for you... Think the easiest would be debugging Language Server with VSCode... |
Live hovers not working may be because they require spring-boot-actuator on the project. But this is not the case for content assist, that should work regardless. What is really puzzling here is that you get the squigly line and information hover for the properties. This means that the property metadata is definitely known to the language server meaning it seems to be all working fine in that regards. But the content-assist, which is based on the same information, does not work. Now that is strange. Perhaps it might be a thread that is 'stuck' in a deadlock or something like that. If you could try to use If you use jps you can get a list of java processes. The language server will look something like this:
Note the process-id ( |
Cmd+6 quick navigating spring symbols both working on eclipse and vscode . I have add the
language server jstack is :
|
Nothing suspicious looking in the stack dump. So unfortunately that didn't help :-( I'm thinking something may be wrong on the Eclipse side. I suspect something to do with how lsp4e enables functionality based on document content types. I vaguely remember in the past that reconcile don't follow the same rules as completions and hovers. Is your file called 'applition.yml' or is it something else like 'application-development.yml'? |
@kdvolder I tried eclipse config: |
My friend run spring-tool-suite-4-4.1.0.RELEASE-e4.10.0-win32.win32.x86_64.zip on win10 and java 8 , when edit |
OK, maybe this is a stupid thought, but are you talking about content-assist not showing up AUTOMATICALLY while typing something or after typing That happens in STS3, but not in the STS4 editors. In the STS4 editors you have to invoke the content-assist manually by pressing |
@martinlippert Thanks for your replay! I found the content-assist showing up key is not How to AUTOMATICALLY showing up content-assist in the STS4 editors ?It is possible ? |
@cenggel Just to verify, you can get content-assist to show up for property files on your end by using the content-assist key binding that is configured on your install, right? If so, we should close this issue and open a new one for the "show content-assist automatically", which should certainly be possible to implement. Agree? |
@martinlippert Yes, can get content-assist manually now . Agree close this issue and open new one for "show content-assist automatically" . |
Ok, great, will close this one and opened another one for the automatic content-assist here: #182 |
spring-tool-suite-4-4.0.2.RELEASE-e4.9.0-macosx.cocoa.x86_64.dmg
spring-tool-suite-4-4.1.0.CI-B1407-e4.10.0-macosx.cocoa.x86_64.dmg
Mac osx 10.11.6
jdk 1.8
when edit .yml Code Completions not work.
The text was updated successfully, but these errors were encountered: