Comments (8)
It seems to be working for me. I tried with this properties file content:
server.port=5666
my.title=dssdf
Then hold down CTRL and click on either of the 2 properties. (The second one is defined in my own MyConfig @configuration properties class, with source residing in the same project).
Both worked for me.
Note: I did just fix another bug around the configuration of the JDT annotation processor which might have been the cause of this not working for user-defined properties (i.e. annotation processor not executed => no metadata). But in that case probably there would also be other signs of 'trouble' such as the property name being underlined with 'unknown property warning'.
I could imagine that there may be some specific cases where the navigation is broken (but in that case its also broken for those same cases in STS 3). If you are still having problem in the latests CI build, can you provide more details on exactly the property key where this doesn't seem to work?
from sts4.
BTW... if you hover your mouse inside the hover, you'll see that it changes appearance and a little 'goto declaration' button will appear in the lower-right corner of the hover control. clicking the button also opens the corresponding source code (and this also worked for me).
Closing for now. Can reopen if there's a more specific example where it doesn't work.
from sts4.
I installed the vscode-boot-properties-0.0.10-201711141830.vsix
and tried again. Still not getting any "goto declaration" links (on an empty project from start.spring.io with server.port in application.properties). I can see the docs from the generated JSON. I don't see any autocompletes for local @ConfigurationProperties
either, if I add one of those, so one of us is wrong.
Here are some logs:
Activating 'boot-java' extension
Found java exe: /home/dsyer/.sdkman/candidates/java/current/bin/java
isJavaEightOrHigher => true
CMD = /home/dsyer/.sdkman/candidates/java/current/bin/java -Dserver.port=45556 -cp /home/dsyer/.vscode/extensions/Pivotal.vscode-boot-java-0.0.10-201711141831/jars/language-server.jar:/home/dsyer/.sdkman/candidates/java/current/lib/tools.jar org.springframework.boot.loader.JarLauncher
ERR: Nov 15, 2017 7:03:53 AM org.springframework.ide.vscode.commons.languageserver.LaunguageServerApp start
INFO: Starting LS
Child process connected on port 45556
ERR: INFO ? main 2017-11-15T07:03:53.137Z org.springframework.ide.vscode.commons.languageserver.LaunguageServerApp#connectToNode Connected to parent using socket on port 45556
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - Settings received: {boot-java={boot-hints={on=true}}}
ERR: [pool-2-thread-1] ERROR org.springframework.ide.vscode.commons.util.Log - Error
ERR: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
ERR: at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:106)
ERR: at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:78)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:250)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.<init>(SpringBootApp.java:101)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootAppCache.refresh(SpringBootAppCache.java:49)
ERR: at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootAppCache.getAllRunningJavaApps(SpringBootAppCache.java:33)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningJavaApps(SpringBootApp.java:90)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.BootJavaLanguageServer.lambda$new$2(BootJavaLanguageServer.java:145)
at org.springframework.ide.vscode.commons.languageserver.util.ListenerList.fire(ListenerList.java:24)
ERR: at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.didOpen(SimpleTextDocumentService.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:51)
ERR:
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:126)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:165)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:136)
at org.springframework.ide.vscode.commons.languageserver.LaunguageServerApp.lambda$null$1(LaunguageServerApp.java:232)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:149)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:77)
ERR:
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:84)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
ERR: at java.lang.Thread.run(Thread.java:748)
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - SpringBootApp created: Process [id=5332, name=`org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.3-20171106150509+0000`]
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - SpringBootApp created: Process [id=5111, name=`/home/dsyer/.vscode/extensions/redhat.java-0.14.0/server/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -configuration /home/dsyer/.vscode/extensions/redhat.java-0.14.0/server/config_linux -data /home/dsyer/.config/Code/User/workspaceStorage/19f17f929a9da519264e9ffe546ad914/redhat.java/jdt_ws`]
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - SpringBootApp created: Process [id=20714, name=`/home/dsyer/Programs/springsource/sts-3.9.1.RELEASE//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /home/dsyer/Programs/springsource/sts-3.9.1.RELEASE/STS -name STS --launcher.library /home/dsyer/Programs/springsource/sts-3.9.1.RELEASE//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.550.v20170928-1359/eclipse_1629.so -startup /home/dsyer/Programs/springsource/sts-3.9.1.RELEASE//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar --launcher.overrideVmargs -exitdata 49970006 -product org.springsource.sts.ide -vm /home/dsyer/.sdkman/candidates/java/current/bin/java -vmargs -Dosgi.requiredJavaVersion=1.8 -Xms40m -Dosgi.module.lock.timeout=10 -Xverify:none -Xmx1200m -jar /home/dsyer/Programs/springsource/sts-3.9.1.RELEASE//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar`]
ERR: [pool-2-thread-1] ERROR org.springframework.ide.vscode.commons.util.Log - Error
ERR: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:106)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:78)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:250)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.<init>(SpringBootApp.java:101)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootAppCache.refresh(SpringBootAppCache.java:49)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootAppCache.getAllRunningJavaApps(SpringBootAppCache.java:33)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningJavaApps(SpringBootApp.java:90)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
ERR: at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.BootJavaLanguageServer.lambda$new$2(BootJavaLanguageServer.java:145)
at org.springframework.ide.vscode.commons.languageserver.util.ListenerList.fire(ListenerList.java:24)
at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.didOpen(SimpleTextDocumentService.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:51)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:126)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:165)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:136)
at org.springframework.ide.vscode.commons.languageserver.LaunguageServerApp.lambda$null$1(LaunguageServerApp.java:232)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:149)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:77)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:84)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - SpringBootApp created: Process [id=5226, name=`/home/dsyer/.vscode/extensions/Pivotal.vscode-boot-properties-0.0.10-201711141830/jars/language-server.jar`]
ERR: [pool-2-thread-1] ERROR org.springframework.ide.vscode.commons.util.Log - Error
java.io.IOException: No such process
at sun.tools.attach.LinuxVirtualMachine.sendQuitTo(Native Method)
at sun.tools.attach.LinuxVirtualMachine.<init>(LinuxVirtualMachine.java:91)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:78)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:250)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.<init>(SpringBootApp.java:101)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootAppCache.refresh(SpringBootAppCache.java:49)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootAppCache.getAllRunningJavaApps(SpringBootAppCache.java:33)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningJavaApps(SpringBootApp.java:90)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
ERR:
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.BootJavaLanguageServer.lambda$new$2(BootJavaLanguageServer.java:145)
at org.springframework.ide.vscode.commons.languageserver.util.ListenerList.fire(ListenerList.java:24)
at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.didOpen(SimpleTextDocumentService.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:51)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:126)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:165)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:136)
at org.springframework.ide.vscode.commons.languageserver.LaunguageServerApp.lambda$null$1(LaunguageServerApp.java:232)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:149)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:77)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:84)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
ERR: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - SpringBootApp created: Process [id=5308, name=`org.gradle.launcher.daemon.bootstrap.GradleDaemon 3.5.1`]
ERR: [pool-2-thread-1] INFO org.springframework.ide.vscode.commons.util.Log - SpringBootApp created: Process [id=5134, name=`org.springframework.boot.loader.JarLauncher`]
ERR: [pool-2-thread-1] ERROR org.springframework.ide.vscode.commons.util.Log - Error
ERR: [Timer-0] ERROR org.springframework.ide.vscode.commons.util.Log - Error
java.io.FileNotFoundException
at sun.tools.attach.LinuxVirtualMachine.connect(Native Method)
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:167)
at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:261)
ERR: at sun.tools.attach.HotSpotVirtualMachine.getSystemProperties(HotSpotVirtualMachine.java:144)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootAppClasspath(SpringBootApp.java:140)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootApp(SpringBootApp.java:123)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
ERR: at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.BootJavaLanguageServer.lambda$new$2(BootJavaLanguageServer.java:145)
ERR: at org.springframework.ide.vscode.commons.languageserver.util.ListenerList.fire(ListenerList.java:24)
at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.didOpen(SimpleTextDocumentService.java:188)
ERR: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:51)
ERR:
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.notify(GenericEndpoint.java:126)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleNotification(RemoteEndpoint.java:165)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:136)
at org.springframework.ide.vscode.commons.languageserver.LaunguageServerApp.lambda$null$1(LaunguageServerApp.java:232)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:149)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:77)
ERR:
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:84)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
ERR: at java.lang.Thread.run(Thread.java:748)
java.io.FileNotFoundException
ERR: at sun.tools.attach.LinuxVirtualMachine.connect(Native Method)
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:167)
at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:261)
ERR: at sun.tools.attach.HotSpotVirtualMachine.getSystemProperties(HotSpotVirtualMachine.java:144)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootAppClasspath(SpringBootApp.java:140)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootApp(SpringBootApp.java:123)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:158)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog$2.run(SpringLiveHoverWatchdog.java:108)
at java.util.TimerThread.mainLoop(Timer.java:555)
ERR:
at java.util.TimerThread.run(Timer.java:505)
ERR: [Timer-0] ERROR org.springframework.ide.vscode.commons.util.Log - Error
ERR: java.io.FileNotFoundException
at sun.tools.attach.LinuxVirtualMachine.connect(Native Method)
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:167)
at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:261)
at sun.tools.attach.HotSpotVirtualMachine.getSystemProperties(HotSpotVirtualMachine.java:144)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootAppClasspath(SpringBootApp.java:140)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootApp(SpringBootApp.java:123)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:158)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog$2.run(SpringLiveHoverWatchdog.java:108)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
ERR: [Timer-0] ERROR org.springframework.ide.vscode.commons.util.Log - Error
ERR: java.io.FileNotFoundException
at sun.tools.attach.LinuxVirtualMachine.connect(Native Method)
at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:167)
ERR: at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:261)
at sun.tools.attach.HotSpotVirtualMachine.getSystemProperties(HotSpotVirtualMachine.java:144)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootAppClasspath(SpringBootApp.java:140)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.isSpringBootApp(SpringBootApp.java:123)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
ERR: at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.springframework.ide.vscode.commons.boot.app.cli.SpringBootApp.getAllRunningSpringApps(SpringBootApp.java:96)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:143)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog.update(SpringLiveHoverWatchdog.java:158)
at org.springframework.ide.vscode.boot.java.utils.SpringLiveHoverWatchdog$2.run(SpringLiveHoverWatchdog.java:108)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
WARNING ? pool-2-thread-1 2017-11-15T07:04:13.075Z org.eclipse.lsp4j.jsonrpc.RemoteEndpoint#handleCancellation Unmatched cancel notification for request id 1
from sts4.
I was using STS 4, eclipse distribution, not the vscode extension. I don't think "goto declaration" is even implemented yet in the lsp-based version. So we should call this a 'known issue'. I'll leave it re-opened though and change the description a bit as its a real issue.
from sts4.
BTW: Implementing this in language-server environment is probably a bit hard, especially for when the source-code is actually not readily available for .jar dependencies as we can not lean on Eclipse here to resolve source code for those things and open them in the editor.
from sts4.
I also cannot go to definition source code even in STS4 for Eclipse, here is logs when open .propertes/.yml file with Generic Editor:
16:42:33.758 [main] INFO o.s.i.v.b.a.BootLanguagServerBootApp - Starting BootLanguagServerBootApp v1.1.0-SNAPSHOT on ericlu-HP-ENVY-15-Notebook-PC with PID 29169 (/opt/spring/sts-4.0.1.RELEASE/configuration/org.eclipse.osgi/527/data/1.1.0.201810300740-spring-boot-language-server-1.1.0-SNAPSHOT.jar started by ericlu in /home/ericlu)
16:42:33.761 [main] INFO o.s.i.v.b.a.BootLanguagServerBootApp - No active profile set, falling back to default profiles: default
16:42:33.806 [main] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@1c53fd30: startup date [Sun Nov 25 16:42:33 CST 2018]; root of context hierarchy
16:42:34.227 [main] INFO o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
16:42:34.749 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
16:42:34.763 [main] INFO o.s.i.v.b.a.BootLanguagServerBootApp - Started BootLanguagServerBootApp in 1.618 seconds (JVM running for 2.195)
16:42:34.765 [LanguageServerApp-lifecycle] INFO o.s.i.v.c.l.LanguageServerRunner - Server ready to start after 2197 ms
16:42:34.767 [LanguageServerApp-lifecycle] INFO o.s.ide.vscode.commons.util.Log - Starting LS
16:42:34.767 [LanguageServerApp-lifecycle] INFO o.s.ide.vscode.commons.util.Log - Connected to parent using stdio
16:42:34.833 [pool-3-thread-1] INFO o.s.i.v.c.l.u.SimpleLanguageServer - Initializing
16:42:35.931 [SimpleLanguaserver main thread] INFO o.s.i.v.c.l.u.SimpleLanguageServer - Initialization completed after 3363 ms
16:42:35.979 [SimpleLanguaserver main thread] INFO o.s.i.v.b.jdt.ls.JdtLsProjectCache - Project Created: file:/home/ericlu/java_workspaces/smartstar/smartstar-0.1.0/smartstar-web
16:42:35.985 [SimpleLanguaserver main thread] INFO o.s.i.v.b.jdt.ls.JdtLsProjectCache - Classpath has 219 entries 185 source attachements
16:42:35.985 [SimpleLanguaserver main thread] INFO o.s.i.v.b.a.BootLanguageServerInitializer - A project changed smartstar-web, triggering reconcile on all open documents
16:42:36.007 [Reconciler-1] INFO o.s.ide.vscode.commons.util.Log - Indexing Spring Boot Properties for smartstar-web
16:42:36.008 [SimpleLanguaserver main thread] INFO o.s.i.v.b.jdt.ls.JdtLsProjectCache - Project Created: file:/home/ericlu/java_workspaces/smartstar/smartstar-0.1.0/smartstar-biz-service
16:42:36.011 [SimpleLanguaserver main thread] INFO o.s.i.v.b.jdt.ls.JdtLsProjectCache - Classpath has 173 entries 149 source attachements
16:42:36.011 [SimpleLanguaserver main thread] INFO o.s.i.v.b.a.BootLanguageServerInitializer - A project changed smartstar-biz-service, triggering reconcile on all open documents
16:42:36.038 [SimpleLanguaserver main thread] INFO o.s.i.v.b.jdt.ls.JdtLsProjectCache - Project Created: file:/home/ericlu/java_workspaces/gears/gm/gm-config
16:42:36.041 [SimpleLanguaserver main thread] INFO o.s.i.v.b.jdt.ls.JdtLsProjectCache - Classpath has 183 entries 162 source attachements
16:42:36.041 [SimpleLanguaserver main thread] INFO o.s.i.v.b.a.BootLanguageServerInitializer - A project changed gm-config, triggering reconcile on all open documents
16:42:36.251 [Reconciler-1] INFO o.s.ide.vscode.commons.util.Log - Indexing Spring Boot Properties for smartstar-web DONE
16:42:36.251 [Reconciler-1] INFO o.s.ide.vscode.commons.util.Log - Indexed 2112 properties.
16:42:36.272 [Reconciler-1] INFO o.s.i.v.c.jandex.JandexClasspath - Creating JandexIndex for smartstar-web
from sts4.
You should be able to use "goto definition" in STS4 starting with 4.0.2 which is to be released next week only. (Or you could try that from a CI build perhaps)
from sts4.
thx, i will try next week
from sts4.
Related Issues (20)
- issue starting multiple projects simultaneously in the Boot Dashboard HOT 6
- exception thrown under the hood when file URL protocol is unknown HOT 2
- Warning when annotated methods are self-invocated from within its own class
- `Add Starters` CodeLens/InlayHint in the Spring Boot's project pom HOT 1
- Every time I run VSCode, an error message appears: [the trustAnchors parameter must be non-empty]. HOT 9
- Inject a bean completion proposal
- TestJars support HOT 3
- STS 4.21.1 x86_64 starts failure at MACOS 12.7, but 4.21.0 works, openjdk8 HOT 4
- adjustments to version validations HOT 3
- "Add Starters..." Inlay in POM file in Eclipse Client HOT 1
- Refactor Gradle plugin for `StsToolingModel`
- prevent installing Spring Tools into non-compatible Eclipse platform installs
- sun.security.ssl.SSLContextImpl$DefaultSSLContext HOT 7
- change the actions to refresh live information to show application right away HOT 1
- allow easier configuration of live data connection for remote processes
- provide puristic upgrade support for Spring Boot without including polish recipes
- provide preference to open code lens URLs in simple browser HOT 4
- Problems with lombok annotations HOT 4
- Lombok 1.18.30 does not work with 4.22.0 HOT 2
- broken lombol decorator toString with callsuper true param HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sts4.