Skip to content
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

Do not ask for proxies on each project. #6558

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Oct 11, 2023

The current implementations keep user decisions per project; so if some conflict between detected proxy and detected settings is reported to the user, it is reported again for each project: but tool setings are machine-wide, so they apply to all projects.

This PR makes a simple (dirty) fix storing the decisions in a static variable, sharing between individual projects. It's really annoing if there are more projects opened. Decisions are not shared between Maven and Gradle, so the IDE may ask 2 times (once for each build system). In a typical case, the developer uses either Maven or Gradle, so hopefully this will not happen frequently.

I would like to factor the detection out to core.network + add some APIs and turn maven + gradle into just some 'setting manipulators' ... but not before NB20 branching.

@sdedic sdedic added Gradle [ci] enable "build tools" tests Maven [ci] enable "build tools" tests labels Oct 11, 2023
@sdedic sdedic added this to the NB20 milestone Oct 11, 2023
@sdedic sdedic self-assigned this Oct 11, 2023
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense. I checked and the map access is already synchronized so everything should be fine.

Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, better than nothing.

Thank you!

@sdedic sdedic merged commit 3a00223 into apache:master Oct 16, 2023
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests Maven [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants