-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Eclipse can't hack Elasticsearch #53664
Comments
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
Hacking Elasticsearch with Eclipse is fairly broken. Some things work, but we can't in good concience point contributors to Eclipse. This drops the instrucions for Eclipse from CONTRIBUTING.md. We *do* want to fix Eclipse. But we don't see that happening in the next few months. Once we *have* fixed Eclipse we'll rewrite the instructions. Relates elastic#53664
Hacking Elasticsearch with Eclipse is fairly broken. Some things work, but we can't in good concience point contributors to Eclipse. This drops the instrucions for Eclipse from CONTRIBUTING.md. We *do* want to fix Eclipse. But we don't see that happening in the next few months. Once we *have* fixed Eclipse we'll rewrite the instructions. Relates #53664
Neat! I was going off what Mark said. Still, I think native Gradle projects
are the future. That area does seem to have active development on the
eclipse side.
…On Thu, Mar 19, 2020, 12:31 Costin Leau ***@***.***> wrote:
Remove ./gradlew eclipse. It will never support test dependencies
Some test dependencies are marked as visible for testing only - see the
screenshot below (the jars have a darker color).
[image: image]
<https://user-images.githubusercontent.com/76245/77090374-b875c100-6a0f-11ea-95a9-2afdacd97c44.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#53664 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUXIR4MPMMWTU34DLMQXTRIJCHNANCNFSM4LNNLEDA>
.
|
One of the problems with buildship is that it doesn't have any way to configure settings for things like "circular dependencies are warnings not errors". |
Another interesting problem with "Import Gradle Project" - it doesn't configure stuff like "always use spaces instead of tabs". |
@nik9000 where did we land on this. From what I recall you were able to resolve most if not all of the issues here. |
I believe we're back where we started a few years ago. Things mostly work
and we make sure a few of us use eclipse as our daily driver and those
folks keep it working. It costs us a couple hours a week but that is about
the best we can do.
…On Fri, Dec 18, 2020, 03:11 Mark Vieira ***@***.***> wrote:
@nik9000 <https://github.com/nik9000> where did we land on this. From
what I recall you were able to resolve most if not all of the issues here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#53664 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUXIRCQPPXULFYH63FVCDSVMFEZANCNFSM4LNNLEDA>
.
|
I find this surprising. Are you saying that you lose a couple hours every week just due to Eclipse issues? I mean, we certainly don't spend anywhere near that much time dealing with IntelliJ issues. Or is it just the fact that random stuff incidentally breaks Eclipse (but not IntelliJ) that requires you to invest time in fixing it? |
I think I wrote that in anger after having spent a couple days on Eclipse stuff. I think a better estimate would be several hours a month. Stuff certainly does go wrong from time to time and its annoyingly unpredictable. You pull master and, bam, you can't compile lots of stuff. This is mostly Elipse's fault. And, mostly its around dependencies and source roots. Or maybe it's buildship's fault for trying to have a one to one relationship between Eclipse project and gradle project - an Eclipse project is much more like a single source root than a gradle project. I do have a sneaking suspicion the IntelliJ has all kinds of different weird stuff but dealing with that usually falls on the person who is making the change to ES because they see IntelliJ not working and do something about it. But Eclipse maintenance falls to a small group of folks who use Eclipse. ide.gradle configures a lot of things for IntelliJ and very little for Eclipse. Mostly, again, this is Buildship's fault for not letting us configure that stuff. Whatever the cause I'd love to do something better but I'm ok with where we are. Without warning I sometimes have to stop what I'm doing and spend anywhere from half an hour to two days on fixing up Eclipse stuff. The short incidents happen about once a month. The long ones more rarely. Twice a year or so. We have at times reverted things because the blew up Eclipse just to give us Eclipse folks some breathing room. But we don't tend to because Eclipse folk are used to fixing it. |
Ok, I realize the status quo is not great but the reality is, testing every change that might possibly impact IDE integration on both IntelliJ and Eclipse is not something we are going to start doing. We rely on the Eclipse users to surface these issues, at the cost of some pain on your end. The basic thing is our build is "optimized" for Intellij, and honestly the number of changes the break IntelliJ are very few and far between because the Gradle/IntelliJ models are so much more similar. I wish I had a better answer here, or that we had more resources to make Eclipse a first class citizen here but I won't pretend that's the case. If you're fine with it I'm going to close this for now. Of course, as issues arise, feel free to reach out. |
Using Eclipse to hack on Elasticsearch is broken. Its been broken to varying degrees for a long time, but it is slowly, slowly, slowly, getting more broken. A bunch of us have been hacking Elasticsearch with Eclipse for a long time and will continue to do so. But we can't continue to recommend Eclipse to new contributors. The team would love to support Eclipse because we feel like that is the right thing to do. And because some of us are used to Eclipse and would like to continue hacking with it. So this meta issue will track what we have to do to get Eclipse working again. To the point where we can recommend it to new contributors again.
The trouble is that we don't expect we'll have time to really fix most of the Eclipse issues soon. This'll stay open for a long time. And that entire time Eclipse will be officially "not recommended".
TODO:
./gradlew eclipse
. It will never support test dependencies (that is abuildship
feature. It should be supported by "Import Gradle Project". We think.The text was updated successfully, but these errors were encountered: