intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

UnknownHostException: cache-redirector.jetbrains.com when working offline

Open ahus1 opened this issue 2 years ago • 3 comments
trafficstars

Describe the bug

I tried to open my plugin project in IntelliJ while I was offline. IntelliJ wanted to run Gradle to update the model. As I was offline, this failed.

To Reproduce

Possible reproducer: Wait for a day or two until all SNAPSHOTs are considered old. Then try to use a plugin project offline. See exception below.

The plugin I used: https://github.com/asciidoctor/asciidoctor-intellij-plugin

Expected behavior

As the dependencies were downloaded the day before, it should have just worked.

Environment:

$ ./gradlew --version

------------------------------------------------------------
Gradle 7.6
------------------------------------------------------------

Build time:   2022-11-25 13:35:10 UTC
Revision:     daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8

Kotlin:       1.7.10
Groovy:       3.0.13
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          17.0.3 (Amazon.com Inc. 17.0.3+6-LTS)
OS:           Windows 11 10.0 amd64

Additional context

Console output: console.log

ahus1 avatar Mar 09 '23 18:03 ahus1

Did you switch IntelliJ Gradle support to Offline modus?

YannCebron avatar Mar 20 '23 17:03 YannCebron

No - I was on a train at that time with no internet connection. I used the regular CLI commands as usual.

ahus1 avatar Aug 15 '23 14:08 ahus1

Adding to my previous comment: I would expect that it would reuse an old snapshot it it can't download a new snapshot. Please comment/close if this shouldn't be the case.

ahus1 avatar Aug 15 '23 14:08 ahus1

With the 2.0 release, all dependencies are fully managed with by Gradle. If anything will fail, it's them, not us. :)

hsz avatar Apr 03 '24 13:04 hsz