IntelliJ에서 Scala 프로젝트를 열 때 "Some keys were defined with the same name but different types: 'ssExtractBuild'' 오류가 발생합니다.
환경
문제
다음 프로젝트를 IntelliJ에서 열 때 "Some keys were defined with the same name but different types: 'ssExtractBuild'"라는 오류가 발생했습니다.
.idea
폴더가 없습니다 IntelliJ의 sbt_shell
Error while importing sbt project:
[info] Loading settings from idea.sbt ...
[info] Loading global plugins from C:\Users\yuji38kwmt\.sbt\1.0\plugins
[info] Loading project definition from C:\Projects\ScalaConsole\project
[info] Loading settings from build.sbt ...
[info] Set current project to SampleTool (in build file:/C:/Projects/ScalaConsole/)
[info] sbt server started at local:sbt-server-69bd30c193b5f89579d6
sbt:SampleTool>
[info] Defining Global / sbtStructureOptions, Global / sbtStructureOutputFile, shellPrompt
[info] The new values will be used by Global / dumpStructure, Global / ssOptions
[info] Reapplying settings...
[info] Set current project to SampleTool (in build file:/C:/Projects/ScalaConsole/)
[info] Applying State transformations org.jetbrains.sbt.CreateTasks from C:/Users/yuji38kwmt/.IdeaIC2018.1/config/plugins/Scala/launcher/sbt-structure-1.0.jar
[info] Reapplying settings...
[error] java.lang.RuntimeException: Some keys were defined with the same name but different types: 'ssExtractBuild' (sbt.Task[org.jetbrains.sbt.structure.BuildData], sbt.Task[org.jetbrains.sbt.structure.BuildData]), 'settingData' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.SettingData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.SettingData]]), 'taskData' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.TaskData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.TaskData]]), 'extractStructure' (sbt.Task[org.jetbrains.sbt.structure.StructureData], sbt.Task[org.jetbrains.sbt.structure.StructureData]), 'ssExtractDependencies' (sbt.Task[org.jetbrains.sbt.structure.DependencyData], sbt.Task[org.jetbrains.sbt.structure.DependencyData]), 'ssExtractProjects' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]]), 'ssExtractAndroid' (sbt.Task[scala.Option[org.jetbrains.sbt.structure.AndroidData]], sbt.Task[scala.Option[org.jetbrains.sbt.structure.AndroidData]]), 'ssExtractRepository' (sbt.Task[scala.Option[org.jetbrains.sbt.structure.RepositoryData]], sbt.Task[scala.Option[org.jetbrains.sbt.structure.RepositoryData]]), 'ssOptions' (org.jetbrains.sbt.Options, org.jetbrains.sbt.Options), 'commandData' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.CommandData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.CommandData]]), 'ssExtractProject' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]]), 'ssExtractPlay2' (sbt.Task[scala.Option[org.jetbrains.sbt.structure.Play2Data]], sbt.Task[scala.Option[org.jetbrains.sbt.structure.Play2Data]])
[error] at scala.sys.package$.error(package.scala:27)
[error] at sbt.internal.Index$.stringToKeyMap0(EvaluateConfigurations.scala:271)
[error] at sbt.internal.Index$.stringToKeyMap(EvaluateConfigurations.scala:262)
[error] at sbt.internal.Load$.structureIndex(Load.scala:336)
[error] at sbt.internal.Load$.reapply(Load.scala:352)
[error] at sbt.BuiltinCommands$.reapply(Main.scala:404)
[error] at org.jetbrains.sbt.CreateTasks$.reapply(CreateTasks.scala:64)
[error] at org.jetbrains.sbt.CreateTasks$.applySettings(CreateTasks.scala:55)
[error] at org.jetbrains.sbt.CreateTasks$.apply(CreateTasks.scala:46)
[error] at org.jetbrains.sbt.CreateTasks$.apply(CreateTasks.scala:11)
[error] at sbt.BasicCommands$.$anonfun$call$6(BasicCommands.scala:204)
[error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:122)
[error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:118)
[error] at scala.collection.immutable.List.foldLeft(List.scala:86)
[error] at scala.collection.TraversableOnce.$div$colon(TraversableOnce.scala:151)
[error] at scala.collection.TraversableOnce.$div$colon$(TraversableOnce.scala:151)
[error] at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:104)
[error] at sbt.BasicCommands$.$anonfun$call$2(BasicCommands.scala:204)
[error] at sbt.Command$.$anonfun$applyEffect$4(Command.scala:134)
[error] at sbt.Command$.$anonfun$applyEffect$2(Command.scala:130)
[error] at sbt.MainLoop$.processCommand(MainLoop.scala:154)
[error] at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:137)
[error] at sbt.State$$anon$1.runCmd$1(State.scala:242)
[error] at sbt.State$$anon$1.process(State.scala:248)
[error] at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:137)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error] at sbt.MainLoop$.next(MainLoop.scala:137)
[error] at sbt.MainLoop$.run(MainLoop.scala:130)
[error] at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:108)
[error] at sbt.io.Using.apply(Using.scala:22)
[error] at sbt.MainLoop$.runWithNewLog(MainLoop.scala:102)
[error] at sbt.MainLoop$.runAndClearLast(MainLoop.scala:58)
[error] at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:43)
[error] at sbt.MainLoop$.runLogged(MainLoop.scala:35)
[error] at sbt.StandardMain$.runManaged(Main.scala:113)
[error] at sbt.xMain.run(Main.scala:76)
[error] at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error] at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error] at xsbt.boot.Launch$.run(Launch.scala:109)
[error] at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error] at xsbt.boot.Launch$.launch(Launch.scala:117)
[error] at xsbt.boot.Launch$.apply(Launch.scala:18)
[error] at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error] at xsbt.boot.Boot$.main(Boot.scala:17)
[error] at xsbt.boot.Boot.main(Boot.scala)
[error] Some keys were defined with the same name but different types: 'ssExtractBuild' (sbt.Task[org.jetbrains.sbt.structure.BuildData], sbt.Task[org.jetbrains.sbt.structure.BuildData]), 'settingData' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.SettingData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.SettingData]]), 'taskData' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.TaskData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.TaskData]]), 'extractStructure' (sbt.Task[org.jetbrains.sbt.structure.StructureData], sbt.Task[org.jetbrains.sbt.structure.StructureData]), 'ssExtractDependencies' (sbt.Task[org.jetbrains.sbt.structure.DependencyData], sbt.Task[org.jetbrains.sbt.structure.DependencyData]), 'ssExtractProjects' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]]), 'ssExtractAndroid' (sbt.Task[scala.Option[org.jetbrains.sbt.structure.AndroidData]], sbt.Task[scala.Option[org.jetbrains.sbt.structure.AndroidData]]), 'ssExtractRepository' (sbt.Task[scala.Option[org.jetbrains.sbt.structure.RepositoryData]], sbt.Task[scala.Option[org.jetbrains.sbt.structure.RepositoryData]]), 'ssOptions' (org.jetbrains.sbt.Options, org.jetbrains.sbt.Options), 'commandData' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.CommandData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.CommandData]]), 'ssExtractProject' (sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]], sbt.Task[scala.collection.Seq[org.jetbrains.sbt.structure.ProjectData]]), 'ssExtractPlay2' (sbt.Task[scala.Option[org.jetbrains.sbt.structure.Play2Data]], sbt.Task[scala.Option[org.jetbrains.sbt.structure.Play2Data]])
[error] Use 'last' for the full log.
[info] shutting down server
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
원인
잘 모르겠어요.
해결 방법
C:\Users\yuji38kwmt\.sbt\1.0
폴더를 삭제한 후 다시 열면 문제가 없었습니다.
stackoverflow의 답변
StackOverFlow는 ``Use SBT shell for build and import''를 체크한다'는 답변이 있었습니다.
Go to Preference > Build, Execution, Deployment > SBT > check "Use SBT shell for build and import"> Press OK You can now refresh SBT projects and it should work . if you want, you could uncheck "Use SBT shell for build and import"and it will also work
「requires sbt 0.13.5+」라고 써 있으므로, 체크를 넣는 것이 좋습니까?
지금은 아직 잘 모르겠습니다.
Reference
이 문제에 관하여(IntelliJ에서 Scala 프로젝트를 열 때 "Some keys were defined with the same name but different types: 'ssExtractBuild'' 오류가 발생합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/yuji38kwmt/items/71ded18c01e19d38da22
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
C:\Users\yuji38kwmt\.sbt\1.0
폴더를 삭제한 후 다시 열면 문제가 없었습니다.stackoverflow의 답변
StackOverFlow는 ``Use SBT shell for build and import''를 체크한다'는 답변이 있었습니다.
Go to Preference > Build, Execution, Deployment > SBT > check "Use SBT shell for build and import"> Press OK You can now refresh SBT projects and it should work . if you want, you could uncheck "Use SBT shell for build and import"and it will also work
「requires sbt 0.13.5+」라고 써 있으므로, 체크를 넣는 것이 좋습니까?
지금은 아직 잘 모르겠습니다.
Reference
이 문제에 관하여(IntelliJ에서 Scala 프로젝트를 열 때 "Some keys were defined with the same name but different types: 'ssExtractBuild'' 오류가 발생합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yuji38kwmt/items/71ded18c01e19d38da22텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)