https://kotlinlang.org logo
#kotless
Title
# kotless
v

v79

01/02/2020, 10:55 AM
Forgive this newbie - I'm creating the simplest kotless-ktor web app, but my gradle deploy task is failing with the error "The system cannot find the path specified.". Is there any way of identifying which file it can't find?
Copy code
Skipping task ':classes' as it has no actions.
:classes (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:shadowJar (Thread[Daemon worker,5,main]) started.

> Task :shadowJar UP-TO-DATE
Skipping task ':shadowJar' as it is up-to-date.
:shadowJar (Thread[Daemon worker,5,main]) completed. Took 0.021 secs.
:initialize (Thread[Daemon worker,5,main]) started.
The system cannot find the path specified.

> Task :initialize
Task ':initialize' is not up-to-date because:
  Task.upToDateWhen is false.
:initialize (Thread[Daemon worker,5,main]) completed. Took 0.103 secs.
:deploy (Thread[Daemon worker,5,main]) started.
The system cannot find the path specified.

> Task :deploy
Task ':deploy' is not up-to-date because:
  Task.upToDateWhen is false.
:deploy (Thread[Daemon worker,5,main]) completed. Took 0.037 secs.

BUILD SUCCESSFUL in 6s
So the failure is in the "deploy" block. Do I need to tell gradle where the `aws`and `sam`applications are installed?
✔️ 1
I've been studying the kotless source code. I don't think terraform has been downloaded; there's no
kotless-bin
folder in my project's
build
folder.
Almost certainly because terraform has not been downloaded... Running the gradle deploy task in IntelliJ Run/Debug configuration gives the following error:
> Task :generate
WARN: Failed to initialize native filesystem for Windows java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory. at
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.openapi.application.PathManager.getHomePath(PathManager.java:93)
at
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.openapi.application.PathManager.getHomePath(PathManager.java:72)
at
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.openapi.application.PathManager.findBinFile(PathManager.java:165)
at
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.util.loader.NativeLibraryLoader.loadPlatformLibrary(NativeLibraryLoader.java:17)
at
<http://org.jetbrains.kotlin.com.intellij.openapi.util.io|org.jetbrains.kotlin.com.intellij.openapi.util.io>.win32.IdeaWin32.<clinit>(IdeaWin32.java:47)
at
<http://org.jetbrains.kotlin.com.intellij.openapi.util.io|org.jetbrains.kotlin.com.intellij.openapi.util.io>.FileSystemUtil.getMediator(FileSystemUtil.java:63)
at
<http://org.jetbrains.kotlin.com.intellij.openapi.util.io|org.jetbrains.kotlin.com.intellij.openapi.util.io>.FileSystemUtil.<clinit>(FileSystemUtil.java:55)
at
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.openapi.vfs.impl.ZipHandler.setFileAttributes(ZipHandler.java:62)
at
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.openapi.vfs.impl.ZipHandler$1.createAccessor(ZipHandler.java:44)....
t

TanVD

01/02/2020, 12:08 PM
How do you run Gradle? Can you try to run from console
./gradlew deploy
? :)
v

v79

01/02/2020, 12:15 PM
I get the same error message from
gradlew deploy
but only the first time I run it... after that, gradlew assumes that the download_terraform task is up-to-date
I'm normally a command-line guy 🙂
t

TanVD

01/02/2020, 12:18 PM
Very strange. To tell the truth I’ve never tested it on Windows, but well... looks like it the time :) Can you DM me a zip with code?
v

v79

01/02/2020, 1:31 PM
I've re-installed IntelliJ after deleting some files and folders. Still isn't working, still the same error about the installation home path.
✔️ 1
4 Views