How can I connect to an ensime server on a remote host? My netbook is a bit slow for that kind of stuff. I copied the data over and use tramp to edit the files remotely. I ran bin/server to create the server and an ssh forwarding to be able to connect to it. I use ensime-connect to connect to the port on localhost. The ensime server on the remote server answers with Got connection, creating handler..., but that’s about it. Ensime is in [ENSIME: wtf] mode in the emacs status line. How do I fix this?
How can I connect to an ensime server on a remote host? My netbook
Share
The problem is the ensime can not find “config” of the connection (made through ensime-connect).
and then following line will throws error:
because project-root is nil.
By setting the connection to ensime-buffer-connection, the problem can be fixed.
try adding following function to your ensime.el
and using the
ensime-stackoverflow-connectto connect.remember to change the config path in the code: “/Users/whunmr/lab/scala/.ensime”
EDIT1:
the “.ensime” file was created by M-x ensime command, in your scala project folder.
actually, by just hardcode the config, you can ignore the file.