KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.84k stars 154 forks source link

Don't know if Mix.Dep option `runtume` is important for determining location of dependency #1392

Closed melardev closed 5 years ago

melardev commented 5 years ago

Hi, I auto-generated this issue, I was running mix deps.get after adding guardian, which succeeds, but I saw a toast message popping up on IntelliJ saying there was an error, this is how it looks like. It is weird because I added guardian in a lot of other projects and never happened to me. From what I see, the problem is in the mix.exs guardian file.

Version

3.5.0.1

Exception

Message

*** exception class was changed or removed

Stacktrace

Don't know if Mix.Dep option `runtume` is important for determining location of dependency

### Excerpt

{:jason, "~> 1.1", only: [:dev, :test], runtume: false}

 Line(s) 170-170 in /home/laro/Desktop/hddStorage/workspace/elixir/auth_ueber_guardian/deps/guardian/mix.exs

### Element Class Name

org.elixir_lang.psi.impl.ElixirTupleImpl


org.elixir_lang.errorreport.Logger.error(Logger.java:51)
org.elixir_lang.mix.Dep$Companion.from(Dep.kt:50)
org.elixir_lang.mix.Dep$Companion.from(Dep.kt:29)
org.elixir_lang.mix.DepGathererKt.deps(DepGatherer.kt:141)
org.elixir_lang.mix.DepGathererKt.deps(DepGatherer.kt:44)
org.elixir_lang.mix.DepGathererKt.access$deps(DepGatherer.kt:1)
org.elixir_lang.mix.DepGatherer$visitElement$1.invoke(DepGatherer.kt:36)
org.elixir_lang.mix.DepGatherer$visitElement$1.invoke(DepGatherer.kt:21)
org.elixir_lang.mix.DepGathererKt.foldDepsDefinersWhile(DepGatherer.kt:64)
org.elixir_lang.mix.DepGathererKt.access$foldDepsDefinersWhile(DepGatherer.kt:1)
org.elixir_lang.mix.DepGatherer.visitElement(DepGatherer.kt:35)
com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274)
org.elixir_lang.psi.impl.ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.accept(ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.java:38)
com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200)
com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:730)
org.elixir_lang.mix.DepGatherer$visitFile$$inlined$runReadAction$1.compute(actions.kt:64)
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:959)
org.elixir_lang.mix.DepGatherer.visitFile(DepGatherer.kt:143)
com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:70)
org.elixir_lang.mix.watcher.Resolution$Companion$packagePsiFileToDepSet$$inlined$runReadAction$1$lambda$1.compute(Resolution.kt:111)
com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:140)
com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:88)
com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:139)
org.elixir_lang.mix.watcher.Resolution$Companion$packagePsiFileToDepSet$$inlined$runReadAction$1.compute(actions.kt:64)
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:963)
org.elixir_lang.mix.watcher.Resolution$Companion.packagePsiFileToDepSet(Resolution.kt:122)
org.elixir_lang.mix.watcher.Resolution$Companion.packageVirtualFileToDepSet(Resolution.kt:97)
org.elixir_lang.mix.watcher.Resolution$Companion.rootVirtualFileToDepSet(Resolution.kt:80)
org.elixir_lang.mix.watcher.Resolution$Companion.resolution(Resolution.kt:38)
org.elixir_lang.mix.watcher.TransitiveResolution.transitiveResolution(TransitiveResolution.kt:17)
org.elixir_lang.mix.Watcher.syncLibraries(Watcher.kt:43)
org.elixir_lang.DepsWatcher.syncLibraries(DepsWatcher.kt:184)
org.elixir_lang.DepsWatcher.syncLibraries(DepsWatcher.kt:167)
org.elixir_lang.DepsWatcher.syncLibraries(DepsWatcher.kt:162)
org.elixir_lang.mix.Project$createModulesForOtpApps$3.run(Project.kt:90)
com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:442)
com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$10(ApplicationImpl.java:592)
com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
KronicDeth commented 5 years ago

runtime is misspelled as runtume. guardian fixed it in https://github.com/ueberauth/guardian/pull/568. Update to guardian 1.2.1 to get the fix.

KronicDeth commented 5 years ago

Duplicate of #1386.