Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting a repl fails with Windows WSL extension enabled #2314

Open
kyle-howley opened this issue Sep 17, 2023 · 5 comments
Open

Starting a repl fails with Windows WSL extension enabled #2314

kyle-howley opened this issue Sep 17, 2023 · 5 comments

Comments

@kyle-howley
Copy link

The error is "ERROR: Unhandled REPL handler exception processing message {:op eval, :code ns, :id 1}"

It happens when executing the "fire up a getting started repl", or when trying to use jack-in with a project.

@PEZ PEZ added the jack-in label Sep 17, 2023
@PEZ
Copy link
Collaborator

PEZ commented Sep 17, 2023

Thanks for reporting! Can you give us some details about your machine, os, VS Code version, and such? What do you see in the Jack-in terminal? The REPL/Output window logs a few things during this process, and it would be good to know what you see there as well.

@kyle-howley
Copy link
Author

Windows 10, VS code version 1.82.2, calva is a fresh install.

In the terminal I see:

⚡️ Starting the REPL ⚡️ using the below command line:
pushd c:\Users\KYLEHO~1\AppData\Local\Temp\betterthantomorrow.calva\0mnsud & java -jar ".calva\deps.clj.jar" -Sdeps "{:deps {nrepl/nrepl {:mvn/version,""1.0.0""},cider/cider-nrepl {:mvn/version,""0.28.5""}}}" -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" & popd
nREPL server started on port 64046 on host kubernetes.docker.internal - nrepl://kubernetes.docker.internal:64046
ERROR: Unhandled REPL handler exception processing message {:op eval, :code ns, :id 1}

and in the jack-in window I see:

; Jacking in...
; Starting Jack-in Terminal: pushd c:\Users\KYLEHO~1\AppData\Local\Temp\betterthantomorrow.calva\0mnsud & java -jar ".calva\deps.clj.jar" -Sdeps "{:deps {nrepl/nrepl {:mvn/version,""1.0.0""},cider/cider-nrepl {:mvn/version,""0.28.5""}}}" -M -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" & popd
; Using host:port kubernetes.docker.internal:64520 ...
; Hooking up nREPL sessions ...

@PEZ
Copy link
Collaborator

PEZ commented Sep 17, 2023

This seems to happen in a docker container. Can you describe a bit around that setup?

@kyle-howley
Copy link
Author

kyle-howley commented Sep 17, 2023

I'm not sure how to find that information. Calva appears to be trying to start a docker container, but I am but I am not using docker for any project. I tried a standard test project using the "https://github.com/seancorfield/deps-new" tool and started a project (deps.edn, build) repl, but it failed with the error above. I tried without creating a project at all and using calvas in-built "fire up a getting started repl" command and it is throwing the same error. So I assume Calva is using docker...

@kyle-howley
Copy link
Author

I fixed the issue by disabling the Microsoft official WSL extension in vs code.

@PEZ PEZ changed the title starting a repl fails out of the box. Starting a repl fails with Windows WSL extension enabled Sep 18, 2023
@PEZ PEZ added the ms-windows label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants