Skip to content

[BUG] getting elin to connect on windows/neovim #42

@BorisVSchmid

Description

@BorisVSchmid

Describe the bug
I'm trying to get elin to work on windows/neovim. I have elin working on a mac/neovim.

To Reproduce
Go to a clojure project (defined by deps.edn), open the source file from a windows powershell (nvim src/spikey/core2.clj). See a message pop up of Elin trying to connect (attached screenshot)

Expected behavior
Some way to connect Elin to nrepl, either automatically, or after starting a repl in the terminal

Environment (please complete the following information):

  • Editor: Neovim
  • Editor version: 0.10.4
  • Babashka version: 1.12.197

Configuration file (if you have):
User configuration ($XDG_CONFIG_HOME/elin/config.edn or$HOME/.config/elin/config.edn)

{} ;; I think. Not sure what directory that would be on windows. Don't have a .config.

Project local configuration (YOUR_PROJECT/.elin/config.edn)

{} ;; none.

Additional context
This is my edn file:

{:description "A spiking neural network approach for Numer.ai Signals data"

 :paths ["src"]

 ;:mvn/local-repo "C:/.m2" ;; uncomment if you don't want .m2 to be locate in the root of C:/. Putting .m2 there helps avoid otherwise overly long classpaths in Java.

 ;; We need this for pinned openblas snapshot! If you're just using MKL (recommended on Linux and Windows) you don't need this.
 :mvn/repos {"snapshots" {:url "https://oss.sonatype.org/content/repositories/snapshots"}}

 :deps {org.clojure/clojure {:mvn/version "1.11.3"}
        ;
        ;; neanderthal
        ;; on mac: no need for this. org.bytedeco/mkl-platform-redist {:mvn/version "2024.0-1.5.10"}
        uncomplicate/neanderthal {:mvn/version "0.53.0"}
        uncomplicate/fluokitten {:mvn/version "0.10.0"}
        ;; on mac: we need this:
        org.bytedeco/openblas {:mvn/version "0.3.28-1.5.12-20250223.142442-74"}
        ;
        ;; reading files
        com.techascent/tmd-parquet {:mvn/version "1.001"}
        org.clojure/data.csv {:mvn/version "1.1.0"}
        com.taoensso/nippy {:mvn/version "3.2.0"} ;; 3.4.2 doesn't work with stick anymore.
        ;neanderthal-stick/neanderthal-stick {:mvn/version "0.4.0"}
        ;
        ;; multithreading
        org.clj-commons/claypoole {:mvn/version "1.2.2"}
        ;
        ;; debug
        org.clojars.abhinav/snitch {:mvn/version "0.1.15"}
        ;
        ;; time and http
        tick/tick {:mvn/version "0.7.5"}
        ;
        ;; visualization. This library is getting stale, but there is no replacement yet.
        metasoarous/oz {:mvn/version "2.0.0-alpha5"}}

;start with clj -M:repl
:aliases {:repl {:extra-deps {nrepl/nrepl {:mvn/version "1.3.1"}
cider/cider-nrepl {:mvn/version "0.53.0"}}
:main-opts ["-m" "nrepl.cmdline" "--interactive"]
:exec-args {:middleware ["cider.nrepl/cider-middleware"]}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"
"-XX:+UseG1GC"
"-XX:MaxDirectMemorySize=64g"
"--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED"]}}}

This is the error message when running ElinConnect

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions