-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add AST view and Java Element view to SDK #387
Comments
As a first step I would say create a feature (or features) and publish them on the update site. After that they can be included in the SDK zip. |
+1 for adding them to the SDK |
I see features in JDT UI git repo.
May be that was broken at some time? I have also no idea which update site and how to publish? |
As this is published to jdt web space this is smth that JDT devs handled and not the releng team so I can't help with that. IMHO it makes perfect sense to have it in the regular p2 repo if that is the intention and I can help with that. |
Yes, please. I wish I can have them not only in the debugger :-) |
Why not simply add the bundles that provide them to the |
+1 to add it in the SDK (as a feature or even directly as bundles since IIRC mixed products are now supported). |
Can you explain how "the vast majority of JDT users" are confused by a view that is not shown? |
Users will get to the "Show View" dialog and see one more view which they would hardly know whether it's interesting to them or not. Usually, they'll want the Outline view, but if they're not familiar with the Outline term, they may choose the AST view hoping it's what they want, and often, it wouldn't be what they want. |
There is already a filter of "default" shown items and a "more..." that actually contains lot of stuff I hardly know if it is interesting, but thing what, I just don't click items I don't know what they do and e voila I'm not confused ;-) |
And what about Ctrl+3? Or other entry points?
Good for you. But I don't think this can be generalized to everyone. |
Could you give a pointer how one can do that? I would be fine to have the tools in the SDK, because this is what SDK is good for. Having them in feature is irrelevant for the purpose I have. |
Well given that we better ship nothing to the user as then a user can't be "confused" ... |
You can see for example https://github.com/eclipse-tycho/tycho/blob/master/tycho-its/projects/product.types/products/mixed.product/mixed.product and apply similar addition |
@merks : if it is possible to add the bundles to SDK feature, I will just do that. I simply had no time yet to do that. |
I just ask, because EPP projects uses JDT's feature so that makes a difference where you adding.. |
Exactly, the goal should be to add to eclipse sdk feature and not to the jdt feature |
See https://www.eclipse.org/jdt/ui/index.php - Optional Plug-ins (maintained by JDT UI). Update site mentioned is - http://www.eclipse.org/jdt/ui/update-site/content We also have these views available via Eclipse Marketplace. |
That was built last time 2021.
Well, we see how good that maintenance is :-( The #390 re-enabled building the views that for some reason was not done anymore... Note: the point is to simplify JDT development to provide all the tools we wrote for the JDT developer instantly. |
Regarding the last update, it was done with #259. Not sure if something went wrong and the changes are not being reflected. |
So do you propose to keep the current state and rely on manual tasks to update not widely known update site? What speaks against automatic deployment in the SDK (not part of JDT feature)?
|
As far as I understand, @noopur2507 did only share some context and didn't oppose to the idea of adding the views to the SDK feature. |
+1 for adding these plugins to the sdk. The approach followed previously was that the ASTView and JEView were updated post Eclipse SDK Release which officially supported a new Java release. I had done it as part of #259. The problem that @iloveeclipse has discovered seems to have occurred because of the move of the git repository from https://git.eclipse.org/r/plugins/gitiles/www.eclipse.org/jdt to https://github.com/eclipse-jdt/jdt-website. The new changes done as part of #259 are missing here. |
When these are available, I think it will be good that the Oomph setup for JDT installs these views, right? I can make the requirements optional greedy so that that install doesn't fail if it doesn't find those views... |
Exact. That's was the point of having all the tooling we have at hand. |
That's correct. |
AST and Java element views are available and installed by default by the SDK in https://download.eclipse.org/eclipse/downloads/drops4/I20230117-0430/ thus this one can be closed. |
Thanks Alex, but I plan to add smoke tests. |
Perfect. I am just reporting releng part is done. The views will need some polishing for sure but this is beyond this issue purpose. |
FYI, these new things are cause JDT's Maven publishing to fail because of missing sources: https://ci.eclipse.org/releng/view/Publish%20to%20Maven/job/PublishJDTtoMaven/ The sources are present in the p2 repo, so I shall investigate... |
The problem is that the source bundles are not mentioned anywhere, and there is no source feature generated for these two things that were added to the SDK feature. I'm pretty sure if we had the corresponding source features to the SDK that this will fix the Maven publishing problem and is the easiest way to fix it... |
I believe this continues now in eclipse-platform/eclipse.platform.releng.aggregator#739, so nothing to do here at JDT. |
Unfortunately the smoke test didn't work as expected on Mac & Linux Java 19, I have to update the test => reopening.
|
Original code was doing too much, we don't need that here since we run the test in same JVM. System property "java.specification.version" has all we need Fixes eclipse-jdt#387
Original code was doing too much, we don't need that here since we run the test in same JVM. System property "java.specification.version" has all we need Fixes #387
I've always wondered why such interesting JDT tools like AST view and Java Element view are not part of the SDK.
.
The views offer insight about JDT internals, and are useful mostly for JDT development. But I think it would be beneficial also for few JDT developers and contributors to have such tools at hand.
I'm actually not aware how an average user can install them, I don't see them on any update site (or I'm blind).
The views themselves don't introduce any "unwanted" side effects in the IDE, so if someone isn't interested in them, they do not harm and do not disturb as not shown by default.
So why not add them to the SDK by default?
The text was updated successfully, but these errors were encountered: