-
Notifications
You must be signed in to change notification settings - Fork 126
-
Notifications
You must be signed in to change notification settings - Fork 126
management.trace.include in application.properties does not auto-complete as expected #235
Comments
I just tried |
One last attempt with This doesn't fully explain the behaviour with |
If the enum type isn't on the classpath STS won't know its values (or even that it is an enum). So it explains the hazelcast case. But yeah, assuming the management.trace.include's enum is on the classpath, then it should work... |
Tried it. I can reproduce. Actually the
STS considers Set as some kind of 'structured' data. So it behaves consistent with that. We may have some special handling of java.util.List types. But Set != List either. Not really sure what to do with this. Treat it similar to java.util.List ? I.e. can be entered as comma-separated or like so:
Putting it to the test now and see how spring boot behaves :-) |
Confirmed. Spring boot handles Set much like list. So I guess STS should do the same and accept 'listy values' in its place. This applies to both application.properties and application.yml. For example, I crafted something with a 'Color' enum and when I put this:
Editor complains the the colorset should be 'Set' and doesn't like it if you put such values as a sequence node. (But spring boot accepts it just fine) |
(comment in Pivotal Tracker added by Kris De Volder:) Fix with regresssion tests for STS 3 .properties editor: |
(comment in Pivotal Tracker added by Kris De Volder:) Similar fix applied to STS 3 .yml editor. With regression tests: |
(comment in Pivotal Tracker added by Kris De Volder:) I've pushed fixes for STS 4 as well. However, when I try it for real with vscode it isn't working. I suspect its some issue around how classpath is resolved but will have to look into it more. Therefore undelivering this. |
(comment in Pivotal Tracker added by Kris De Volder:) I was wrong, problems in STS 4 language server seem to not stem from problems determining classpath, but rather from some issue with JandexIndex to find the type As we are planning to get rid of Jandex soon-ish I'm not sure this is something we should really be trying to fix now. |
I think JandexIndex expects inner class like this |
(comment in Pivotal Tracker added by Kris De Volder:) I am delivering this ticket as a fix for the reported problem in STS 3 / eclipse environment. Issue around dealing with Set is fixed in both STS 3 and STS 4 language servers, but we still have the jandex inner classes issue in STS 4 to solve. I will reate a separate ticket to solve that as its kind of a different problem and doesn't affect STS eclipse. |
(comment in Pivotal Tracker added by Kris De Volder:) Ticket for looking further into jandex issue around nested types: https://www.pivotaltracker.com/story/show/155407807 |
Using STS 3.9.2 with a Spring Boot 1.5.9.RELEASE, auto-completion of
management.trace.include
inapplication.properties
does not work as I would expect.If I type
management.trace.i
, wait for the single auto-completion suggestion to appear, and then press enter, the result ismanagement.trace.include.
. I expected the result to bemanagement.trace.include=
. If I correct the.
to be=
, I would then expect to receive suggestions for the value and for those suggestions to be based on theInclude
enum. The actual behaviour is that no suggestions are made.The text was updated successfully, but these errors were encountered: