Skip to content

Working with a remote REPL does not enable cider-mode when opening local files  #2520

@behrica

Description

@behrica

Expected behavior

Opening a local clj file, while connected to a remote repl, should enable cider mode automatically . And after this the evaluation of code should work and happen on the remote REPL.

Actual behavior

Cider-mode does not get enabled, it stays in clojure-mode only. And therefore the "cider eval" commands are not working.
Typying manually "cider-mode" in the buffer does work and the code evaluation works as expected

Steps to reproduce the problem

  1. Open a local project.clj file
  2. connect to a remote repl with (cider-connect '(:host "serveo.net" :port 35868 :project-dir "/home/carsten/Dropbox/sources/expertDossier") )
    This establishes the connection and the repl can be used.
  3. the current "project.clj" seems to be associated with the repl session, and cider mode is enabled
  4. the sesman browser seems to suggest that things are linked:
    CIDER Sessions:

1: sources/expertDossier:serveo.net:35868
linked-to: proj(~/Dropbox/sources/expertDossier/)
objects: cider-repl %s(clj)

  1. open a new local clojure file in the same project does NOT enable cider mode.
    (running "cider-mode" by hand does work and enable it and it shows the connection information in the mode line)

Environment & Version information

CIDER version information

;; Connected to nREPL server - nrepl://serveo.net:35868
;; CIDER 0.19.0snapshot (package: 20181110.1413), nREPL 0.2.12
;; Clojure 1.9.0, Java 1.8.0_181

Lein/Boot version

Leiningen 2.8.1 on Java 1.8.0_192 OpenJDK 64-Bit Server VM

Emacs version

emacs 26.1

Operating system

arch linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions