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

How to setup this extention behind a proxy ? #140

Open
4mitch opened this issue Sep 27, 2017 · 0 comments
Open

How to setup this extention behind a proxy ? #140

4mitch opened this issue Sep 27, 2017 · 0 comments

Comments

@4mitch
Copy link

4mitch commented Sep 27, 2017

Environment

  • VSCode Version: 1.10.1
  • OS Version: Windows 7
  • Clojure Extension Version: V1.2.0

Description

Debug process does not start properly. Errors in stacks let think of proxy issue. That is ENV property http_proxy do not picked by Leiningen.

Steps to Reproduce

  1. ENV variable http_proxy is set
  2. Starting from cmd or VS Code internal terminal lein search successfully finds any packages
  3. But then I pushed Debug play button after some significatn time I get the error described below.
  4. In Java VisualVM for this debug java application in Overview/System properties I can't see http.proxyHost and http.proxyPort properties while for CMD/VSCode internal terminal lein REPL they are there.

Launch request
Could not transfer artifact debug-middleware:debug-middleware:pom:0.5.2 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
Could not transfer artifact javax.servlet:servlet-api:pom:2.5 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
Could not transfer artifact ring:ring-mock:pom:0.3.0 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
Exception in thread "Thread-3" clojure.lang.ExceptionInfo: Could not resolve dependencies {:suppress-msg true, :exit-code 1}
at java.lang.Thread.run(Thread.java:748)
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Failed to collect dependencies for [#object[org.sonatype.aether.graph.Dependency 0x86bf8ac "org.clojure:clojure:jar:1.8.0 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x114b4033 "org.clojure:tools.nrepl:jar:0.2.12 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x5d624c56 "clojure-complete:clojure-complete:jar:0.2.4 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x8453d3e "debug-middleware:debug-middleware:jar:0.5.2 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x5f3c0a02 "javax.servlet:servlet-api:jar:2.5 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x14bd830e "ring:ring-mock:jar:0.3.0 (compile)"]]
at clojure.lang.RestFn.invoke(RestFn.java:2793)
at leiningen.core.classpath$fn__6722.invokeStatic(classpath.clj:260)
... 34 more
Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [#object[org.sonatype.aether.graph.Dependency 0x86bf8ac "org.clojure:clojure:jar:1.8.0 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x114b4033 "org.clojure:tools.nrepl:jar:0.2.12 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x5d624c56 "clojure-complete:clojure-complete:jar:0.2.4 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x8453d3e "debug-middleware:debug-middleware:jar:0.5.2 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x5f3c0a02 "javax.servlet:servlet-api:jar:2.5 (compile)"] #object[org.sonatype.aether.graph.Dependency 0x14bd830e "ring:ring-mock:jar:0.3.0 (compile)"]]
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:333)
... 49 more
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for debug-middleware:debug-middleware:jar:0.5.2
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
... 50 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact debug-middleware:debug-middleware:pom:0.5.2 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
... 53 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact debug-middleware:debug-middleware:pom:0.5.2 from/to central (https://repo1.maven.org/maven2/): Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
... 1 more
Caused by: org.apache.maven.wagon.TransferFailedException: Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
... 4 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to repo1.maven.org:443 [repo1.maven.org/151.101.84.209] failed: Connection timed out: connect
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:832)
at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:983)
... 9 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:337)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
... 19 more

BTW Where port from repo1.maven.org:443 is defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant