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

Calva Jack in fails #1182

Closed
SockworkOrange opened this issue May 16, 2021 · 5 comments
Closed

Calva Jack in fails #1182

SockworkOrange opened this issue May 16, 2021 · 5 comments
Labels

Comments

@SockworkOrange
Copy link

When I run "Calva: Start a Project REPL and Connect (aka Jack-In)" it fails with:
command "...." resulted in an error(running the contributed command calva.jackin failed).

I can't find any additional indicative message.

vscode version: 1.56.2
calva version: latest
leiningen version: 2.9.1
clojure version: 1.10.3
java version: 11
operating system: kubuntu 20.04 (I have the exact same OS in a different computer - there it works perfectly).

image

@bpringe
Copy link
Member

bpringe commented May 16, 2021

Hello! Thanks for the report and info. Let's troubleshoot.

  1. Does the terminal where the repl is being started show any error messages? Another place where you may be able to find some useful information is the developer console. Help -> Toggle Developer Tools -> Console tab.
  2. Please describe the choices you make during jack-in (project type, etc.)
  3. Does this happen in a fresh, new, minimal project? (such as one created with lein new app ...)

@SockworkOrange
Copy link
Author

  1. No errors in the terminal. In the console you can see these errors:
    workbench.desktop.main.js:2237 [[object Object]]Cannot read property 'setDecorations' of undefined workbench.desktop.main.js:2237 TypeError: Cannot read property 'setDecorations' of undefined at /home/kubuntu/.vscod…/out/extension.js:2 at Array.forEach (<anonymous>) at W (/home/kubuntu/.vscod…/out/extension.js:2) at Timeout.M [as _onTimeout] (/home/kubuntu/.vscod…/out/extension.js:2) at listOnTimeout (internal/timers.js:554) at processTimers (internal/timers.js:497) workbench.desktop.main.js:735 Command 'Calva: Start a Project REPL and Connect (aka Jack-In)' resulted in an error (Running the contributed command: 'calva.jackIn' failed.)

  2. Don't fully understand the question here. It happens on every jack in on that computer - regardless of the choice, and it doesn't happen in the 2nd computer - regardless any choice.

  3. Yes, I tested it with a new project and an existing project - behaves the same.

@bpringe
Copy link
Member

bpringe commented May 19, 2021

Hmm, it's hard to figure out what's going wrong with being able to repro it myself. On the machine where it doesn't work, if you run Calva in dev mode and set a breakpoint in the jack-in command and step through it, you should get an idea of where it's going wrong.

The jackin process starts here: https://github.com/BetterThanTomorrow/calva/blob/a1afb5799bc8f1e4063badb8964f462b1da7dfcc/src/nrepl/jack-in.ts#

@SockworkOrange
Copy link
Author

will test it this weekend and will update here

@SockworkOrange
Copy link
Author

can't re-produce since I formatted my computer (unrelated reason) and the issue isn't reproduced there.
if it will occur again, will re-open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants