-
-
Notifications
You must be signed in to change notification settings - Fork 222
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 generates invalid shadow-cljs call #2239
Comments
Hi! Can you share the steps you take to get that command line generated? I don't think know how to make it add |
I can, yes, here it is: "calva.replConnectSequences": [
{
"name": "redsky Server",
"projectType": "deps.edn",
"cljsType": "none",
"menuSelections": {
"cljAliases": [
"dev/deps",
"dev/env"
]
}
},
{
"name": "redsky Server + Client",
"projectType": "shadow-cljs",
"cljsType": "shadow-cljs",
"menuSelections": {
"cljAliases": [
"dev/deps",
"dev/env"
],
"cljsLaunchBuilds": [
"app",
"portfolio"
],
"cljsDefaultBuild": "app"
}
}
] This works on Linux and MacOS, but not on Windows, for some reason. Alternatively, I also tried to use |
Thanks! Which version of Calva are you using? |
According to the output when running it, it's v2.0.374. |
Hi again, sorry for the radio silence. I've hadn't had the time yet to try reproduce this. I'm pretty sure I can and that we will be able to fix the issue pretty easily. Meanwhile: @thheller mentioned, in that other issue, that you can provide the clj aliases in the shadow-cljs file. You would change from |
Thank you a lot! Unfortunately, that workaround does not work for us, since we already have an alias in there, and adding Anyway, we did find a different workaround for now, also mentioned by @thheller which is setting the customJackInCommandLine to
|
Thanks for updating about the workaround not working. Helps me prioritize the issue. Great that you found a workaround. It should work with a custom command line like so too:
It's a matter of preference where you like the shadow-cljs output to go. In that other issue you mentioned that |
This should be fixed in this dev build: Can you test it for us on Windows, @zilti? |
I don't think this is going to work, and likely broke all other hosts too?
|
Thanks for having a look, @thheller! 🙏 It generates this command line on Mac:
Which works. But you could very well be right that it doesn't help with the issue on Windows. |
The problem is that "printed" this command line appears totally normal, but at least on the JVM an arglist of |
Indeed. I now fired up my Windows test machine, and it was still failing there. Adding the flag and the aliases to the args array separately works. Thanks again for the holler! |
I updated the docs around this a bit, as it was a bit unclear. They now look like so: https://deploy-preview-2254--calva-docs.netlify.app/connect/#shadow-cljs-in-full-stack-projects I hope they make more sense now... |
Fixed in 2.0.239. |
Thanks! |
Calva generates an unsupported shadow-cljs call for project type
shadow-cljs
, see this issue report on the shadow-cljs repository. For some reason, the generated command line still works on macOS and Linux, but it does not work on Windows.The text was updated successfully, but these errors were encountered: