-
Notifications
You must be signed in to change notification settings - Fork 24
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
HTTP proxy support not working properly #774
Comments
Additionally: please make sure to handle this: |
2nd addition belongs to the |
After I have downloaded the zip archive of the code I tried to implement a dirty fix, that tries to take care about the existance of an proxy. I'm sure the this fix doesn't fit the needs of code-quality of this projekt. Beside this, I just want to share what I have done:
|
@sven-binnig thank you so much for your active contribution and analysis of our product in beta phase and sorry for the bugs you are facing. 👍
It seems that this tiny information was overlooked.
So IMHO this
or in case of
And see if that offline warning goes away?
This is an evil habit of ugly company VPN tools that should be forbidden by law! My idea for both KISS and high flexibility is to simply introduce a variable |
Results:
Without any strange warning. Creating a new project with still have the same result:
The warning is still existent ...
Should I better use (Git)Bash? |
@hohwille |
@sven-binnig great news: I just merged PR #811 BTW: With the new approach we can easily roll out new changes to your shells without again modifying bashrc. |
If you have done that, please test if proxy support is now working fine. |
@hohwille First: sorry for the delay - a cold catched me and forced me to lay down my head I have downloaded the latest snapshot Afterward I tried to create a new project. But I still get the same messages as before:
|
Sorry - I have downloaded the wrong SNAPSHOT. |
The result remains the same And also strange: |
The last step I have done (as always) with
The try to clone the standard settings from github ends with:
I will retry this with an URL of our git ... |
Using a "local" settings url works. |
@hohwille There is also a method |
@sven-binnig thanks for all your feedback.
And let me know the output. The most important thing is if you are now considered as being online.
Since I am not sitting behind a real proxy, my configuration was just a test and that breaks stuff since I configured nonsense. |
Yes, bug #830 already fixed and new SNAPSHOT released. Welcome to SNAPSTHOT testing ;) |
This is not a problem of IDEasy. You are behind a proxy and you need to get your configuration sane for your setup.
inside the newly created |
This has nothing to do with this bug ticket about HTTP proxy support. |
|
|
|
Oh, so you want to join our development team ;) |
Thanks for testing. Did you read the documentation I linked above: A variable that you define in your current shell without exporting is private and invisible to sub-processes. It is therefore impossible for |
Sorry, I always take for granted that developers using IDEasy are aware how environment variables work. |
I have made values for host and port "unreadable" - but I have used our company-values |
OK. That is what I wanted to know. Too bad it is still not working.
If that is also failing your configuration is still incorrect. In case it gives you the HTML output of that URL page, then the configuration is sane but IDEasy still has a bug. |
Output
|
OK, that explains why you are still offline in IDEasy. You additionally cannot get trusted TLS (HTTPS) connections due to your corporate proxy. This is not an easy beginners tasks but unfortunately we cannot solve this for you. Please try to utilize tutorials on the web how to get this solved. Maybe you need to involve the support of your company. If |
But in my |
Nice try, but does |
Indeed from stackoverflow: https://stackoverflow.com/a/59056537/1506881 UPDATE: A little hard to find, but documented officially in Oracles Java specs: Actually if you are using this |
from https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/CertificateManagement/
I read it in that way, that nevertheless which setting I do make, it will be ignored. |
Yes- I really don't know when I discovered that hack. But it workes stable, when I face the truststore-issue with java processes. If I understood the article about certifate management and graalvm/native-image correctly, the definitions about truststore via the variable |
IMHO not. You have to read on. This is only saying what the static default behaviour is.
That is exactly what we are trying to do. |
We will try to simulate the problem with wiremock as proxy. |
Sorry - I was busy the last days - but I will try as soon as possible. |
While testing #783 I have realized, that only defining the proxy in the |
IMHO this is because of the story #525 that is kind of a contradicting or at least conflicting demand.
If for some reason in your specific setup IDEasy cannot properly create an HTTPS connection and therefore thinks it is offline, you are fundamentally blocked and face lots of problems. However, that does not mean that anything is wrong with the functionality of launching Intellij in general (as discussed in #783) but all comes down to the same root problem. |
I have created #897 since the general configuration via |
As a developer, I want create a new project.
I'm working with a windows-10-pc behind a proxy.
The command
ide --debug create test-project
ends with an error messagecould not clone [url] to [path] because you are offline
But I'm not offline - I'm only behind a proxy.
Setting up the environment variables
http_proxy
andhttps_proxy
doesn't help.I short look into the code makes it obvious, that no proxy configuration is used to determine, if I'm online or offline.
As a result of this, I cannot setup a project-folder.
The text was updated successfully, but these errors were encountered: