-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Jack In does not complete when used with mixed Lein / Shadow-CLJS projects #314
Comments
Hello there! Now there is a prerelease of Calva containing a fix for this issue. Can you put it to a test and see if you agree it is fixed? https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.37-wip-sequence-portfile To test it. Download the VSIX file in that release. Then install it in VS Code via the Extensions pane meatballs menu: Install from VSIX.... |
Hi! Wow - quick turn-around 😄 Yes, the bug appears to be fixed at a high-level. Evaluation steps:
Code evaluated:
Additional Notes: Terminal output of compilation stage - note message re:
My local Leiningen configuration:
Hope that helps! Please let me know if you want more info. |
Thanks for the test report! The lack of output from stdout is an issue Calva has with shadow-cljs. The warnings confuse me. I don't get those. The output looks like so on my machine:
I'm also using Leiningen 2.9.1 (as can be seen in the output even). I am using Java 12, however. Maybe that makes some difference... |
I continue to hit this issue with current Calva (i.e. not completing cljs jack in) with the lein re-frame template. After making settings.json edits above and following @aeberts evaluation steps I hit this classpath error:
My workaround is to start the app in a terminal with Bit much for my little brain to remember! :) Same results with JDK8 and 12. |
@gmp26 What if you remove the settings.json changes and:
Does it still not work? |
@PEZ Brilliant :) Thank you so much! I suspect my settings.json were initially a hangover from a previous project and so I started following this issue to fix the problem. So now I just have
which works fine. Maybe I could even delete that? |
Awesome! Yes, you are probably better off without that as well. |
It's gone, and we still have jack-in! |
I'm having a similar issue:
|
I am having a similar issue too |
Oh, I've missed your comment, @loganpowell . Sorry about that. Are you still having the problem? @muhajirdev , ”similar” can mean many things. 😄 Can you elaborate some? What are the steps you take, what happens/does not happen? Such things. |
Hi @PEZ sorry for not providing extra details I recorded this video, https://www.loom.com/share/ec1afd444d394fac90097fca5de18ced as additional information I am using calva 2.0.187 Also, when I tried with luminusweb.com, it can connect repl. I don't know if this problem is specific to reframe-template Thanks for your help @PEZ :) |
Thanks for the repro video. That does look like something is broken. Can you file it as a new issue? |
I got it working, btw. But let's continue in a separate issue, because this is different than the OP. |
Also update Calva in the README:s. Fixes day8#155 Fixes BetterThanTomorrow/calva#1121 Fixes BetterThanTomorrow/calva#314
Also update Calva in the README:s. Fixes #155 Fixes BetterThanTomorrow/calva#1121 Fixes BetterThanTomorrow/calva#314
Config:
Summary:
Issuing the command
Calva: Start a Project REPL and Connect (aka Jack In)
does not complete when used with mixed Lein / Shadow-CLJS projects.Reproduction Steps
lein new re-frame projectname
Calva: Start a Project REPL and Connect
Expected Behaviour
Actual Behaviour
Notes:
Note that the terminal window does appear pops up and code appears to be compiled correctly. The app is running and I'm able to visit the app url in the browser. Devtools in Chrome shows that
shadow-cljs
successfully created a websocket and a REPL connections but no REPL window is created.The message at the bottom of VS Code:
Launching a REPL using Leiningen
andDisconnected
One other thing to note is that this template uses both
leiningen
andshadow-cljs
. Theproject.clj
is setup withlein
aliases that callshadow-cljs
like this:Workaround:
Workaround suggested by @PEZ on Slack #calva-dev
(https://clojurians.slack.com/archives/CBE668G4R/p1568316523297200)
I think it’ll be a bit of work to fix it properly. I’d appreciate if you could file an issue about this. Since it is a template that I presume is pretty popular, we’ll put it on high priority. That said, all is not lost. There is a quirky workaround to get the repl connected:
Quirky, as advertised. 😃 Here’s a way to unquirk it some. Put this in workspace settings.json:
Then:
The text was updated successfully, but these errors were encountered: