goomph icon indicating copy to clipboard operation
goomph copied to clipboard

Configuring proxy of eclipse created by task ide

Open moley opened this issue 7 years ago • 10 comments

Hi you,

first of all I'd like to say, that goomph is a really really cool thing. I am preparing development setup for our company and this plugin eases this dramatically.

But I am missing some features, which I could imagine to contribute by pull requests... The most important one is to configure the proxy in the ide which is created, which is not located in workspace, but in ide configuration itself (under build/oomph-ide.app/Contents/Eclipse/configuration/.settings/org.eclipse.core.net.prefs)

I would add methods to OomphIdeExtension like :

  • instanceFile
  • instanceProp
  • instanceXml like the ones for the workspace settings Is this feature interesting for you? Do you have suggestions what I have to consider to get my pull request merged?

moley avatar Oct 19 '18 07:10 moley

This sounds great, I'd love to merge a PR for this feature if a new feature is needed. No special hoops to jump through, but CONTRIBUTING.md has some helpful tips for getting a dev environment setup.

My only question is about the name "instance". My understanding is that the "instance" folder and the "workspace" folder are the same thing. FAQ How do I specify where application data is stored?

The eclipse "important folders" are really confusing, I always go to this to sort them out.

Maybe you want install? or config? I'm fine with adding whatever needs to be added, but I want to make sure we name it the right thing.

nedtwigg avatar Oct 19 '18 20:10 nedtwigg

Yes, your right, I mixed this up, so i think install would be the right one?

moley avatar Oct 20 '18 06:10 moley

Ok, I have finished my implementation, ready to contribute, but want to add some tests. As I did not find tests on the workspaceProp either. So my question: Is it a valid testcase for you to check afterwards if the property file with the properties exist at the expected location?

moley avatar Oct 23 '18 06:10 moley

  • install looks right to me
  • this is a difficult thing to test. I think you are right that the correct answer is to have a MANUAL_TESTS.md that should be run manually before every release for things like this. However, there is no chance that I will have time to do manual tests for each release, so the document will inevitably become stale. If you want to create MANUAL_TESTS.md, I fully support it, but I'll just be upfront about how much time I am able to budget for QC on this.

nedtwigg avatar Oct 23 '18 18:10 nedtwigg

Sorry, I think you misunderstood me.. I mean automatic unit tests, which simply configure a gradle with the ProjectBuilder api, run through the methods and check afterwards if the configured files exist without starting any eclipse, only plain file checks. I would add such a unit test, if this would be enough testing for this feature.

moley avatar Oct 23 '18 19:10 moley

Fantastic, that's definitely enough testing!

nedtwigg avatar Oct 23 '18 19:10 nedtwigg

Hi again @nedtwigg, I think I found a bug while testing:

in OomphIdeExtension, line 549 in method ideSetupWorkspace() that OutputStream output = new BufferedOutputStream(new FileOutputStream(target)) must be removed, because it cleans the file, which should me modified afterwards.

Can you please double check? Cheers Markus

moley avatar Oct 23 '18 21:10 moley

Just FYI, if you open a file in GitHub and press y, it will change the URL to be an immutable link based on the object hash (doesn't go stale when master branch moves), and you can click near the line numbers to create an inline link as shown below. I don't see what you're mentioning on line 549, but maybe you mean this?

https://github.com/diffplug/goomph/blob/3a5b49b64cc3136827ec0e3d2fc2743c8d80101b/src/main/java/com/diffplug/gradle/oomph/OomphIdeExtension.java#L514-L516

It sure looks like a bug to me, good catch!

nedtwigg avatar Oct 24 '18 21:10 nedtwigg

OK, good point, thanks for the info.... Yes, I mean this one.

moley avatar Oct 24 '18 21:10 moley

Sorry it took so long, but the xml problem you found has finally been fixed in 3.20.0. Hope I haven't been blocking you this whole time!

nedtwigg avatar Jan 12 '20 03:01 nedtwigg

EquoIDE is a new approach to the Goomph problem. It works way better and it's got a bigger team behind it. I'm not sure if it will pickup your proxy settings out of the box, but if you give it a try and have any issues, open an issue there and I'll be happy to help fix it.

https://github.com/equodev/equo-ide/tree/main/plugin-gradle

nedtwigg avatar Mar 01 '23 00:03 nedtwigg