dragos / dragos-vscode-scala

Other
253 stars 39 forks source link

CPU spins and nothing happens #73

Closed tSte closed 6 years ago

tSte commented 6 years ago

Hey,

I have this installed with VSCode 1.17.2 on ArchLinux 64.

My ensime:

cat .sbt/1.0/plugins/plugins.sbt 
addSbtPlugin("org.ensime" % "sbt-ensime" % "2.0.1")

I ran sbt ensimeConfig, it created .ensime file and .ensime_cache directory. It seems to me that everything is just fine (correct me if I am wrong)

However nothing happens in my VSCode (no code completion, errors, etc.). When I want to use it "actively" (e.g. jump to definition or something) then my CPU spins up to maximum and ~95% of it is a some java process.

I can see that there is an ensime-langserver.log in my project root. There are a few errors:

[2017-10-24 14:32:53,621] ERROR org.github.dragos.vscode.EnsimeLanguageServer - Unknown notification Initialized()
[2017-10-24 14:32:53,621] ERROR org.github.dragos.vscode.EnsimeLanguageServer - Unknown notification Initialized()

and

[2017-10-24 14:32:59,060] ERROR akka.dispatch.Dispatcher - Cannot open local storage '/home/path/to/my/project/.ensime_cache/graph-2.0.4' with mode=rw
    DB name="graph-2.0.4"

Do you have any idea what is the problem and how can I fix this? Thanks

tSte commented 6 years ago

OK now... I have changed scalaLanguageServer.heapSize to 4G and after some time of "noisy CPU fans", it seems to work. Didn't consider simple GraphQL API server that large...