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

[IntelliJ][ReportedByUser] Uncaught Exception com.microsoft.azure.hdinsight.spark.run.configuration.RemoteDebugConfigurationFactory@704c8afe produced wrong type java.lang.ClassCastException: scala.None$ cannot be cast to scala.Option #2272

Closed
lucianenache opened this issue Oct 28, 2018 · 3 comments

Comments

@lucianenache
Copy link

IntelliJ build version: 2018.2.5 IU-182.4892.20
OS: Windows 10
JDK: JetBrains s.r.o 1.8.0_152-release
Plugin version: 3.13.0-2018.2
Additional Info: None
Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,8,31,1357x1179,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:

IdeaLoggingEvent[message=com.microsoft.azure.hdinsight.spark.run.configuration.RemoteDebugConfigurationFactory@704c8afe produced wrong type, throwable=java.lang.ClassCastException: scala.None$ cannot be cast to scala.Option
	at com.microsoft.azure.hdinsight.spark.run.SparkBatchJobLocalRunConfigurationProducer.findScalaMainClass(SparkBatchJobLocalRunConfigurationProducer.java:152)
	at com.microsoft.azure.hdinsight.spark.run.SparkBatchJobLocalRunConfigurationProducer.lambda$getMainClassFromContext$10(SparkBatchJobLocalRunConfigurationProducer.java:195)
	at java.util.Optional.flatMap(Optional.java:241)
	at com.microsoft.azure.hdinsight.spark.run.SparkBatchJobLocalRunConfigurationProducer.getMainClassFromContext(SparkBatchJobLocalRunConfigurationProducer.java:187)
	at com.microsoft.azure.hdinsight.spark.run.SparkBatchJobLocalRunConfigurationProducer.lambda$setupConfigurationFromContext$1(SparkBatchJobLocalRunConfigurationProducer.java:70)
	at java.util.Optional.flatMap(Optional.java:241)
	at com.microsoft.azure.hdinsight.spark.run.SparkBatchJobLocalRunConfigurationProducer.setupConfigurationFromContext(SparkB
@wezhang wezhang self-assigned this Oct 29, 2018
@wezhang wezhang added this to the v3.14.0 milestone Oct 29, 2018
@wezhang
Copy link
Member

wezhang commented Oct 29, 2018

@lucianenache Thanks!

@wezhang
Copy link
Member

wezhang commented Oct 29, 2018

Repro with opening context menu on a .sbt file.

@jingyanjingyan
Copy link

Fix in develop 839

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

No branches or pull requests

3 participants