Cannot start Elixir module or test

已回答

When I try to run a simple hello world project in idea, I got an exception:

Already disposed: -------------Own trace: com.intellij.openapi.util.TraceableDisposable$DisposalException: 740583472 at com.intellij.openapi.util.TraceableDisposable.getStackTrace(TraceableDisposable.java:121) at com.intellij.openapi.vfs.impl.VirtualFilePointerContainerImpl.checkDisposed(VirtualFilePointerContainerImpl.java:391) at com.intellij.openapi.vfs.impl.VirtualFilePointerContainerImpl.getOrCache(VirtualFilePointerContainerImpl.java:201) at com.intellij.openapi.vfs.impl.VirtualFilePointerContainerImpl.getFiles(VirtualFilePointerContainerImpl.java:292) at com.intellij.openapi.projectRoots.impl.RootsAsVirtualFilePointers.getFiles(RootsAsVirtualFilePointers.java:41) at com.intellij.openapi.projectRoots.impl.ProjectJdkImpl$MyRootProvider.getFiles(ProjectJdkImpl.java:285) at org.elixir_lang.Erl.ebinDirectories(Erl.kt:48) at org.elixir_lang.Erl.prependCodePaths(Erl.kt:39) at org.elixir_lang.Erl.setErl(Erl.kt:62) at org.elixir_lang.Erl.commandLine(Erl.kt:16) at org.elixir_lang.Elixir.commandLine(Elixir.kt:20) at org.elixir_lang.Mix.commandLine(Mix.kt:19) at org.elixir_lang.ExUnit.commandLine(ExUnit.kt:16) at org.elixir_lang.exunit.Configuration.commandLine(Configuration.kt:100) at org.elixir_lang.exunit.State.startProcess(State.kt:22) at org.elixir_lang.exunit.State.execute(State.kt:30) at com.intellij.execution.runners.DefaultProgramRunnerKt.executeState(DefaultProgramRunner.kt:32) at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.kt:26) at com.intellij.execution.runners.DefaultProgramRunner$execute$1.invoke(DefaultProgramRunner.kt:20) at com.intellij.execution.runners.DefaultProgramRunner$execute$1.invoke(DefaultProgramRunner.kt:14) at com.intellij.execution.impl.ExecutionManagerImpl$startRunProfile$1.invoke(ExecutionManagerImpl.kt:147) at com.intellij.execution.impl.ExecutionManagerImpl$startRunProfile$1.invoke(ExecutionManagerImpl.kt:60) at com.intellij.execution.impl.ExecutionManagerImpl$doStartRunProfile$startRunnable$1.run(ExecutionManagerImpl.kt:208) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:322) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:132) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47) at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:188) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:967) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:450) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:449) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:497) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


I have Erlang and Elixir SDKs installed  Erlang for Elixir 23, Elixir 1.1.0.4

How to resolve this issue? I am new to Elixir, I have created the project with

mix new my_app

IntelliJ IDEA 2020.2 (Ultimate Edition)
Build #IU-202.6397.94, built on July 27, 2020
Licensed to Jacek Gajek
Subscription is active until January 31, 2021
Runtime version: 11.0.7+10-b944.20 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-42-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 7964M
Cores: 12
Registry: undo.documentUndoLimit=9999, js.debugger.webconsole=false
Non-Bundled Plugins: Base64 for IDEA and Storm, Dilbert, IdeaVIM, Mongo Plugin, PlantUML integration, Statistic, YAML/Ansible support, com.alayouni.ansiHighlight, com.bluewaitor.tsReact, com.github.leomillon.uuidgenerator, com.intellij.apacheConfig, com.intellij.ideolog, AutoConstructor, Lombook Plugin, REST Client plugin, com.euphoricity.gitignore, com.intellij.bigdecimal-folding, com.linsage, de.u-mass.idea.copyConstructor, marcglasberg.HibernateInspectionsPlugin, com.jetbrains.plugins.ini4idea, com.intellij.plugins.watcher, com.jinsihou.react.snippets, com.sburlyaev.terminal.plugin, de.ax.powermode, luonq.ScrollFromSource, net.seesharpsoft.intellij.plugins.csv, org.elixir_lang, org.intellij.RegexpTester, mobi.hsz.idea.gitignore, org.zalando.intellij.swagger, org.sylfra.idea.plugins.linessorter, pl.lksztmczk.openinterminal, send2terminal, com.deadlock.scsyntax, com.ifengxue.plugin.jpa-support, com.intellij.react.css.modules, com.cursiveclojure.cursive, org.jetbrains.kotlin, com.bruce.intellijplugin.generatesetter, com.intellij.plugins.html.instantEditing, com.jetbrains.php, Pythonid, net.ashald.envfile, ru.adelf.idea.dotenv, nl.rubensten.texifyidea
Current Desktop: ubuntu:GNOME

1

For anyone encountered that problem:

File>Invalidate Caches & Restart

helped

2

After invalidating and restarting and another couple of restarts it started working.

 

Please note that you should configure the Elixir and Erlang SDKs for your project.

0

请先登录再写评论。