Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Unable to download the compiler #678

Closed
ftomassetti opened this issue Jun 19, 2017 · 5 comments
Closed

Unable to download the compiler #678

ftomassetti opened this issue Jun 19, 2017 · 5 comments
Assignees

Comments

@ftomassetti
Copy link
Contributor

I am using the konan plugin (version 0.3) on Mac and I get an error:

16:40:07.001 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':downloadKonanCompiler' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
16:40:07.001 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':downloadKonanCompiler'.
16:40:07.001 [INFO] [org.gradle.api.Task] Downloading Kotlin Native compiler from http://download.jetbrains.com/kotlin/native/kotlin-native-macos-0.3 into /Users/federico/.konan
16:40:07.002 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
16:40:07.002 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':downloadKonanCompiler'
16:40:07.002 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :downloadKonanCompiler FAILED
16:40:07.002 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :downloadKonanCompiler (Thread[Daemon worker Thread 4,5,main]) completed. Took 0.001 secs.
16:40:07.002 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.1 completed (0 in use)
16:40:07.002 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 4,5,main]] finished, busy: 0.001 secs, idle: 0.001 secs
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Cannot download Kotlin Native compiler
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.nio.channels.OverlappingFileLockException (no error message)
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
16:40:07.003 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
16:40:07.003 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
16:40:07.003 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
16:40:07.004 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
16:40:07.004 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 0.784 secs

It seems to try to download http://download.jetbrains.com/kotlin/native/kotlin-native-macos-0.3. I tried to download it in a browser and saw this:
screen shot 2017-06-19 at 16 42 59

@olonho
Copy link
Contributor

olonho commented Jun 19, 2017

Plugin with version 0.3 wasn't published yet. Please use released version 0.2 or wait few days for release of 0.3 plugin.

@ftomassetti
Copy link
Contributor Author

I also tried specifying version 2. I get a different error but it does not work either:

17:06:57.328 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':downloadKonanCompiler'.
17:06:57.329 [INFO] [org.gradle.api.Task] Downloading Kotlin Native compiler from http://download.jetbrains.com/kotlin/native/kotlin-native-macos-0.2 into /Users/federico/.konan
17:06:57.329 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context.
17:06:57.329 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':downloadKonanCompiler'
17:06:57.329 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :downloadKonanCompiler FAILED
17:06:57.329 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :downloadKonanCompiler (Thread[Daemon worker Thread 6,5,main]) completed. Took 0.002 secs.
17:06:57.329 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.1 completed (0 in use)
17:06:57.329 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 6,5,main]] finished, busy: 0.002 secs, idle: 0.0 secs
17:06:57.330 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
17:06:57.330 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
17:06:57.330 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
17:06:57.330 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
17:06:57.331 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Cannot download Kotlin Native compiler
17:06:57.331 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.nio.channels.OverlappingFileLockException (no error message)
17:06:57.331 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
17:06:57.331 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
17:06:57.331 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
17:06:57.331 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
17:06:57.331 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
17:06:57.331 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]

Also trying to download it from the browser I get an error:
screen shot 2017-06-19 at 17 07 58

Also, version 0.3 is the version suggested in https://github.com/JetBrains/kotlin-native/blob/master/GRADLE_PLUGIN.md

@ilmat192
Copy link
Contributor

The 0.3 Gradle plugin is published and the compiler will be ready soon. But it looks like your issue relates to our dependency downloading and I'm going to investigate it.

@ilmat192 ilmat192 self-assigned this Jun 20, 2017
@ilmat192
Copy link
Contributor

A fix for the issue is ready (but is not merged into master yet). As a workaround you may remove $HOME/.konan/cache/.lock and try to rerun your build using Gradle plugin v0.2 and Kotlin/Native compiler v0.2.

@olonho olonho closed this as completed Jun 24, 2017
@ilmat192
Copy link
Contributor

Merged: b7e868a

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

No branches or pull requests

3 participants