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 `allow_pre` is important for determining location of dependency at org.elixir_lang.mix.Dep$Companion.from(Dep.kt:55) #2487

Open pkgodara opened 2 years ago

pkgodara commented 2 years ago

System

Plugin Version: 12.2.0 Application: PyCharm Community Edition (2021.3.1) Operating System: Mac OS X (12.0.1)

Event

Message

Excerpt

{:opentelemetry_api, "~> 1.0.0-rc", allow_pre: true}

From: /Users/pradeep.kumar/Documents/GitHub/spidey/deps/opentelemetry_ecto/mix.exs:43 To: /Users/pradeep.kumar/Documents/GitHub/spidey/deps/opentelemetry_ecto/mix.exs:43

Element Class Name

org.elixir_lang.psi.impl.ElixirTupleImpl

Exception

Stacktrace

java.lang.Throwable: Don't know if Mix.Dep option `allow_pre` is important for determining location of dependency
    at org.elixir_lang.errorreport.Logger.error(Logger.kt:43)
    at org.elixir_lang.mix.Dep$Companion.from(Dep.kt:55)
    at org.elixir_lang.mix.Deps.fromTuple(Deps.kt:61)
    at org.elixir_lang.mix.Deps.from(Deps.kt:18)
    at org.elixir_lang.mix.DepGathererKt$deps$2.invoke(DepGatherer.kt:140)
    at org.elixir_lang.mix.DepGathererKt$deps$2.invoke(DepGatherer.kt:140)
    at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:315)
    at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
    at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:786)
    at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:816)
    at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:807)
    at org.elixir_lang.mix.DepGathererKt.deps(DepGatherer.kt:140)
    at org.elixir_lang.mix.DepGathererKt.deps(DepGatherer.kt:42)
    at org.elixir_lang.mix.DepGathererKt.access$deps(DepGatherer.kt:1)
    at org.elixir_lang.mix.DepGatherer$visitElement$1.invoke(DepGatherer.kt:34)
    at org.elixir_lang.mix.DepGatherer$visitElement$1.invoke(DepGatherer.kt:33)
    at org.elixir_lang.mix.DepGathererKt.foldDepsDefinersWhile(DepGatherer.kt:62)
    at org.elixir_lang.mix.DepGathererKt.access$foldDepsDefinersWhile(DepGatherer.kt:1)
    at org.elixir_lang.mix.DepGatherer.visitElement(DepGatherer.kt:33)
    at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:273)
    at org.elixir_lang.psi.impl.ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.accept(ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.java:38)
    at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:185)
    at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:754)
    at org.elixir_lang.mix.DepGatherer$visitFile$$inlined$runReadAction$1.compute(actions.kt:60)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:852)
    at org.elixir_lang.mix.DepGatherer.visitFile(DepGatherer.kt:142)
    at com.intellij.extapi.psi.PsiFileBase.accept(PsiFileBase.java:60)
    at org.elixir_lang.mix.watcher.Resolution$Companion$packagePsiFileToDepSet$1$1.compute(Resolution.kt:111)
    at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158)
    at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
    at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
    at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
    at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
    at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
    at org.elixir_lang.mix.watcher.Resolution$Companion$packagePsiFileToDepSet$$inlined$runReadAction$1.compute(actions.kt:60)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:852)
    at org.elixir_lang.mix.watcher.Resolution$Companion.packagePsiFileToDepSet(Resolution.kt:122)
    at org.elixir_lang.mix.watcher.Resolution$Companion.packageVirtualFileToDepSet(Resolution.kt:97)
    at org.elixir_lang.mix.watcher.Resolution$Companion.rootVirtualFileToDepSet(Resolution.kt:80)
    at org.elixir_lang.mix.watcher.Resolution$Companion.resolution(Resolution.kt:38)
    at org.elixir_lang.mix.watcher.TransitiveResolution.transitiveResolution(TransitiveResolution.kt:17)
    at org.elixir_lang.mix.Watcher.syncLibraries(Watcher.kt:57)
    at org.elixir_lang.DepsWatcher.syncLibraries(DepsWatcher.kt:198)
    at org.elixir_lang.DepsWatcher.syncLibraries(DepsWatcher.kt:181)
    at org.elixir_lang.DepsWatcher.syncLibraries(DepsWatcher.kt:176)
    at org.elixir_lang.mix.project.DirectoryConfigurator$configureRootOtpApp$2.run(DirectoryConfigurator.kt:66)
KronicDeth commented 2 years ago

Is allow_pre a new option? 🤔