JuliaEditorSupport / julia-intellij

:computer: Julia Plugin for IntelliJ IDEA ┗:smiley:┛ ┏:smiley:┓ ┗:smiley:┛
GNU General Public License v3.0
294 stars 29 forks source link

Exception thrown by IDE when running Julia file #304

Open nombreinvicto opened 5 years ago

nombreinvicto commented 5 years ago

Using: Pycharm 2018.3.3 Julia Plugin: v 0.3.6 OS: Win 10 Julia: v 0.7

After creation of a Julia project and the creation of a julia file in the src folder, when the file is run, the following error message constantly appears in the event log.

Julia REPL Configuration Error: SciView unavailable, Run again to enable it.

The file runs and shows output in the run console successfully but the error message keeps on appearing. Additionally, when selecting the path of the Julia .exe in the Julia package manager, the following exception is thrown by the IDE.

java.io.FileNotFoundException: C:\Users\mhasa\.julia\environments\v0.7\Project.toml (The system cannot find the path specified)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at kotlin.io.FilesKt__FileReadWriteKt.forEachLine(FileReadWrite.kt:166)
    at kotlin.io.FilesKt__FileReadWriteKt.readLines(FileReadWrite.kt:195)
    at kotlin.io.FilesKt__FileReadWriteKt.readLines$default(FileReadWrite.kt:193)
    at org.ice1000.julia.lang.module.ModuleUtils__Julia_package_managerKt.loadNamesListByEnvFile(julia-package-manager.kt:61)
    at org.ice1000.julia.lang.module.ModuleUtils.loadNamesListByEnvFile(Unknown Source)
    at org.ice1000.julia.lang.module.ui.JuliaPackageManagerImpl$loadPackages$1.run(ui-impl.kt:256)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:727)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
zxj5470 commented 5 years ago

Sorry about our ambiguous hint message SciView unavailable, Run again to enable it.. It's a bug, sciview only works if project contains julia file when project opening. SO maybe just close the project and reopen it~ We'll fix this bug.

As for package manager, it seems to incompatible for the version >= 0.7 (We are working something more important like Stub, which provides global completion.)

zxj5470 commented 5 years ago

We need to refactor this feature!

ice1000 commented 5 years ago

Is this exception fixed?

nombreinvicto commented 5 years ago

Just tested with the updated plugin. The exception is still there.