Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnvFile 3.4.1 crash #215

Open
RonCWing opened this issue Mar 15, 2023 · 4 comments
Open

EnvFile 3.4.1 crash #215

RonCWing opened this issue Mar 15, 2023 · 4 comments

Comments

@RonCWing
Copy link

Relevant Stack:

java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')
at net.ashald.envfile.providers.yaml.YamlEnvFileParser.parse(YamlEnvFileParser.java:15)
at net.ashald.envfile.providers.SingleFileEnvVarsProvider.getEnvVars(SingleFileEnvVarsProvider.java:41)
at net.ashald.envfile.platform.EnvFileEnvironmentVariables.render(EnvFileEnvironmentVariables.java:67)
at net.ashald.envfile.products.goland.GolandRunConfigurationExtension.patchCommandLine(GolandRunConfigurationExtension.java:37)
at com.goide.execution.extension.GoRunConfigurationExtensionsManager.lambda$patchCommandLine$1(GoRunConfigurationExtensionsManager.java:57)
at com.intellij.execution.configuration.RunConfigurationExtensionsManager.processEnabledExtensions(RunConfigurationExtensionsManager.kt:228)
at com.goide.execution.extension.GoRunConfigurationExtensionsManager.patchCommandLine(GoRunConfigurationExtensionsManager.java:55)
at com.goide.execution.GoRunningState.lambda$patchCommandLine$5(GoRunningState.java:350)
at com.goide.util.GoLocalEnvironmentRequest$GoLocalRemoteEnvironment.createGeneralCommandLine(GoLocalEnvironmentRequest.java:143)
at com.intellij.execution.target.local.LocalTargetEnvironment.createProcess(LocalTargetEnvironment.java:129)
at com.goide.util.GoExecutor$3.getProcessHandler(GoExecutor.java:579)
at com.goide.util.GoExecutor$3.run(GoExecutor.java:531)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:423)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:474)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:589)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:664)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:620)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:588)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)

@RonCWing RonCWing changed the title EnvFile crash EnvFile 3.4.1 crash Mar 15, 2023
@cmmoran
Copy link

cmmoran commented Mar 21, 2023

Can you paste a snippet of what your yaml looks like?

@RonCWing
Copy link
Author

Hi, I'm attaching here the yaml (which all characters masked):

xxx-xxx-xxx-xxx.sh generated vars

WWWW_WWWW_WWWW_WWWW_WWWW_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Y_YYY_YYY_YYY_YYY_YYY_YYY_YYY_YYY=xxxxxxxxx
XXX=xxxxxx-xxxxxx
XXX_XXX=xxxxxxxxx
XXX_XXX_XXX=xxx:aws:xxxxxxxxxx:xxxx-xxxx-9:xxxxxx:secret:xxxx-xxxx-xxxx-xxx-xxxx-xxx2131x
XXX_XXX_XXX_XXX=xxxx:aws:xxxxxxxxxx:xxxx-xxxx-9:xxxx:xxxxx:xxxx-xxxx-xxxx-xxxx-key-xxxxxx
XXX_XXX_XXX_XXX_XXX=xxxx:aws:xxxxxxxxxx:xxxx-xxxxx-9:1234:secret:xxxxx-xxxx-xxxx-xxxx-xxxx6xxx
XXX_XXX_XXX_XXX_XXX_XXX=xxxx:aws:xxxxxxxxxx:xxxx-xxxx-9:1234:secret:xxxxx-xxxx-xxxx-xxxx-xxxx-xxxx
XXX_XXX_XXX_XXX_XXX_XXX_XXX=xxxxx:xxxx:xxxxxxxxxx:xxxx-xxxx-9:1234:xxxx:xxxx-xxxx-xxxxx-xxxx-xxxxx-xxxx-xxxx-xxx7xxx
XXX_XXX_XXX_XXX_XXX_XXX_XXX_XXX=xxxxxxxx:xxxxx:xxxxxxxxxx:xxx-xxxxx-9:1234:xxxxx:xxxx-xxxx-xxxx-xxxxx-xxxx-xxxxx7

@RonCWing
Copy link
Author

envFileIssue.txt

@cmmoran
Copy link

cmmoran commented Mar 23, 2023

This is a duplicate of #213 and fixed in #211.

Take a look at that PR and see if that change fixes this issue for you.

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

No branches or pull requests

2 participants