-
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
CTRL-click navigation does not handle properties on super class correctly #326
Comments
What makes you think this is the same problem? Sounds like a different problem to me. When there are many incorrect errors, then it probably means something causing metadata to go partially missing (if it was completely missing / empty then no errors would be reported as the checking gets disabled in that case). However, this is only a guess and unless I can reproduce it, there's no way to be sure what is going on exactly or what may be causing it. The fact that validation sometimes works correctly (i.e. you don't see false errors, but only some issues with navigation makes me beleave that handling of super properties in validation is working properly, provided the metadata is all correctly generated and detected).
That is easily reproducible for me. I think this is just a bug in the 'ctrl-click' handling specifically and has nothing to do with validation. I will focus on that problem for now and can try to debug the other problem if you can find a way to reproduce it. Here are some wild guesses as to what could be the reason (for the invalid error markers):
Assuming its one of these you could try 'fix' the issue by:
What exactly happens when you try these steps may provide a hint as to what the problem is as well. For example if steps 1 and 2 don't yet fix the issue but step 3 does, then its likely that the data is there but the LS wasn't aware that it changed (and needed to be re-parsed). |
Documenting a more easy way to reproduce the navigation issue:
We can notice the following:
|
(comment in Pivotal Tracker added by Kris De Volder:) Trying to verify the fix prior to delivering. Seems to work fine now in vscode but still not working in the latest STS 4 snapshot. Investigating... |
(comment in Pivotal Tracker added by Kris De Volder:) Working fine in Eclipse in my runtime workbench. I suspect something is not percolation properly in build pipeline somewhere. Strangely all builds are green however. So its a bit puzzling. |
(comment in Pivotal Tracker added by Kris De Volder:) Seems I was somehow testing an old build. After downloading it again it is working. Delivering. |
I've seen two variations of this problem in two different workspaces. In one, I get numerous
Unknown property
errors. In the other, I don't get any errors but command-click navigation for those same properties does not work.You should be able to reproduce the problem using STS 4.3.1.RELEASE, a fresh workspace, importing a clone of https://github.com/spring-io/start.spring.io as existing Maven projects, and ignoring the Maven lifecycle problems reported during import. If you open
application.yml
instart-site
you should either see tens of errors, or you should see that command-click (assuming macOS) navigation doesn't work. A good way to see the latter is to scroll to the bottom of the file, hold down command, and mouse of the list of languages. You should see that onlydefault
is navigable and thatname
andid
properties are not. Thelanguages
property itself is known to be aList<io.spring.initializr.metadata.DefaultMetadataElement>
. Thedefault
property is on that class butname
andid
are on its superclass.You can see a similar problem a little bit further up the file with
types
property. There you should see thataction
,tags
, anddescription
are all navigable butdefault
,name
, andid
are not.The text was updated successfully, but these errors were encountered: