indiejames / vscode-clojure-debug

A VS Code package for developing Clojure code
MIT License
84 stars 6 forks source link

How to setup this extention behind a proxy ? #140

Open 4mitch opened 7 years ago

4mitch commented 7 years ago

Environment

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?