Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8928733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:30:53+00:00 2026-06-15T08:30:53+00:00

How can I connect to an ensime server on a remote host? My netbook

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:30:54+00:00Added an answer on June 15, 2026 at 8:30 am

    The problem is the ensime can not find “config” of the connection (made through ensime-connect).

    and then following line will throws error:

    (if (and loose (ensime-file-in-directory-p file project-root))
    

    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-connect to connect.

    (defun ensime-stackoverflow-connect (host port)
      (interactive (list
            (read-from-minibuffer "Host: " ensime-default-server-host)
            (read-from-minibuffer "Port: " (format "%d" ensime-default-port)
                          nil t)))
      (let ((c (ensime-connect host port))
        (config (ensime-config-load "/Users/whunmr/lab/scala/.ensime")))
        (ensime-set-config c config)
        (setq ensime-buffer-connection c))
      )
    

    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.

    (defun ensime-my-connection (host port)
          (interactive (list
                (read-from-minibuffer "Host: " ensime-default-server-host)
                (read-from-minibuffer "Port: " (format "%d" ensime-default-port)
                              nil t)))
          (let ((c (ensime-connect host port))
            (config '(:project-name "test" :project-package "com.whunmr" :sources ("./src") :compile-jars ("./" "../../apps/scala/lib/") :target "./bin" :root-dir "/Users/twer/lab/scala/")))
            (ensime-set-config c config)
            (setq ensime-buffer-connection c))
          )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a bare repository on a remote server that people can connect to
I can connect to server and get json data. it is in this format:
I know you can connect to a remote X11 server to use them like
I can connect to remote SQL Server database and I want to create a
Is there a way that I can connect to a TCP server using a
Is there any way that I can connect to a server DB (Oracle, MS
Is there any way I can connect to a remote SQL server with Windows
Essentially I have built a socket server that multiple clients can connect to and
I need help in writing java code that can connect to a remote UNIX
How can connect iPhones, so that when a function is called on one iPhone,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.