-
Notifications
You must be signed in to change notification settings - Fork 840
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
Declarative hint editor support fixes and improvements #7333
Declarative hint editor support fixes and improvements #7333
Conversation
18dc23e
to
0b58f60
Compare
todo for future: changing the source level default to netbeans/java/spi.java.hints/src/org/netbeans/modules/java/hints/providers/spi/HintMetadata.java Lines 168 to 177 in 97fd224
(reverted the change) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an entry to java/java.hints/licenseinfo.xml
for the file, with the license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is the icon for jnlp / applets. It was already in NB. I don't know the license.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My take on this is, that the file was donated by Oracle to the ASF. I don't see why Oracle would not be in a position to donate that file, so it is ALv2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, also mentioned in the commit that it is a copy of applet.gif
.../java.hints.declarative/src/org/netbeans/modules/java/hints/declarative/test/TestParser.java
Show resolved
Hide resolved
...nts.declarative/src/org/netbeans/modules/java/hints/declarative/DeclarativeHintRegistry.java
Outdated
Show resolved
Hide resolved
0b58f60
to
3ecce48
Compare
- register hint file templates and descriptions - add file icon (copy of applet.gif) - add template for hint tests
- source-level option does now understand the new java version scheme - optional %% token allows marking the end of a test - register run-single action to hint file editor - log file parsing errors
3ecce48
to
4d97642
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for belated replay. Looks OK to me. Thanks!
this seems to degrade CV test stability. It is hard to say if it makes it worse just by bad luck (timing) or if there is something wrong with the hint editor support. failures seem to be on linux only and they can be brute forced till green. exception looks like:
|
lets see if its just the |
extracted some fixes and improvement from a cleanup branch, would be cool if we could get this into NB 22 still.
jackpot hint support improvements
source-level
option does now understand the "new" java version schemeuse reasonable source level defaultreverted since tests failed%%
token allows marking the end of a testupdate declarative hint templates
demonstrates usecase for
![image](https://private-user-images.githubusercontent.com/114367/325663033-bc968474-14fb-4c46-80e5-2047e4ff1e73.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0MDY0NjEsIm5iZiI6MTcyMzQwNjE2MSwicGF0aCI6Ii8xMTQzNjcvMzI1NjYzMDMzLWJjOTY4NDc0LTE0ZmItNGM0Ni04MGU1LTIwNDdlNGZmMWU3My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxMVQxOTU2MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZGYzYWExODlhNDJlZTU5M2ExY2YzMjcxODQ3ODVhYTU5NjY4MGM1MzgyZDg4ZjkyYTc2NmVkZWM0ZDY0MTE3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vAAdlRqhBaiQYR8OOFnbKxGOL8pKAPLYXVwuIClX2CE)
%%
(without it, there couldn't be any space between test cases):file templates:
![image](https://private-user-images.githubusercontent.com/114367/325662406-33b0e5ec-d897-4e34-bb25-60259facf43d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lmdpd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V9pZD0wJnJlcG9faWQ9MCJ9.jcsjzzkAlPJCy7v2vW0epyLgYH8u67yh6p9lpGMrf8w)
hint template:
the hint test template matches to the hint template: