You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In attempting to execute a Lambda in a multi-module Gradle project, the Plugin has a fatal error.
To reproduce
Create a multi-module Gradle project.
Select the RequestHandler class to execute.
Run it...
Expected behavior
No fatal error...?
Actual behavior
IDE Fatal Error: The Plugin crashes with the following stack trace. java.lang.IllegalArgumentException: Module can only have 1 content root at software.aws.toolkits.jetbrains.services.lambda.java.JavaLambdaBuilder.getBaseDirectory(JavaLambdaBuilder.kt:43) at software.aws.toolkits.jetbrains.services.lambda.java.JavaLambdaBuilder.buildLambda(JavaLambdaBuilder.kt:30) at software.aws.toolkits.jetbrains.services.lambda.LambdaBuilderUtils.runSamBuild(LambdaBuilderUtils.kt:133) at software.aws.toolkits.jetbrains.services.lambda.LambdaBuilderUtils.access$runSamBuild(LambdaBuilderUtils.kt:32) at software.aws.toolkits.jetbrains.services.lambda.LambdaBuilderUtils$buildAndReport$$inlined$runSamBuildInBackground$1.run(LambdaBuilderUtils.kt:177) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:731) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151) at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Your Environment
OS: Ubuntu 18.10
JetBrains' Product: IDEA
JetBrains' Product Version: Ultimate 2019.1
Toolkit Version: 1.2
SAM CLI Version: 0.14.2
JVM/Python Version: JDK 1.8
Additional context
The plugin completely crashes and will not allow me to re-run. I have to shut down the IDE and restart.
The text was updated successfully, but these errors were encountered:
Describe the bug
In attempting to execute a Lambda in a multi-module Gradle project, the Plugin has a fatal error.
To reproduce
Expected behavior
No fatal error...?
Actual behavior
IDE Fatal Error: The Plugin crashes with the following stack trace.
java.lang.IllegalArgumentException: Module can only have 1 content root at software.aws.toolkits.jetbrains.services.lambda.java.JavaLambdaBuilder.getBaseDirectory(JavaLambdaBuilder.kt:43) at software.aws.toolkits.jetbrains.services.lambda.java.JavaLambdaBuilder.buildLambda(JavaLambdaBuilder.kt:30) at software.aws.toolkits.jetbrains.services.lambda.LambdaBuilderUtils.runSamBuild(LambdaBuilderUtils.kt:133) at software.aws.toolkits.jetbrains.services.lambda.LambdaBuilderUtils.access$runSamBuild(LambdaBuilderUtils.kt:32) at software.aws.toolkits.jetbrains.services.lambda.LambdaBuilderUtils$buildAndReport$$inlined$runSamBuildInBackground$1.run(LambdaBuilderUtils.kt:177) at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:731) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151) at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Your Environment
Additional context
The plugin completely crashes and will not allow me to re-run. I have to shut down the IDE and restart.
The text was updated successfully, but these errors were encountered: