You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
M-x cider-jack-in base64-encodes a powershell command when I've set cider-clojure-cli-command to "pwsh" for powershell core.
Actual behavior
M-x cider-jack-in tries to call pwsh as if it's the clojure cli, without base64-encoding a call to clj, and it fails.
I had to edit cider.el cider--update-jack-in-cmd to check for both "powershell" and "pwsh", after which it appears to be working. I don't know if hardcoding both names is the kind of solution you'd want to merge, but realistically, powershell will be running under one of these two names in almost every case.
Now install cider in emacs, and try to use it. cider-jack-in tries to call powershell, where the module isn't installed, and fails. So, set your cider-clojure-cli-command to "pwsh" to get past that. At this point, cider doesn't realize it's dealing with powershell anymore, and issues a non-base64 command that fails.
So, to work around the issue, edit your cider.el cider--update-jack-in-cmd to check for both "powershell" and "pswh" in the if-check. Now it works.
The recent powershell executables (in the .NET Core era) are
named pwsh.exe, and should be treated the same as powershell
for the purposes of cider-jack-in.
Expected behavior
M-x cider-jack-in
base64-encodes a powershell command when I've setcider-clojure-cli-command
to "pwsh" for powershell core.Actual behavior
M-x cider-jack-in
tries to call pwsh as if it's the clojure cli, without base64-encoding a call to clj, and it fails.I had to edit cider.el
cider--update-jack-in-cmd
to check for both "powershell" and "pwsh", after which it appears to be working. I don't know if hardcoding both names is the kind of solution you'd want to merge, but realistically, powershell will be running under one of these two names in almost every case.Steps to reproduce the problem
Install the powershell module under pwsh (powershell core) on Windows as described in the docs (at https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows).
Now install cider in emacs, and try to use it.
cider-jack-in
tries to callpowershell
, where the module isn't installed, and fails. So, set yourcider-clojure-cli-command
to "pwsh" to get past that. At this point, cider doesn't realize it's dealing with powershell anymore, and issues a non-base64 command that fails.So, to work around the issue, edit your cider.el
cider--update-jack-in-cmd
to check for both "powershell" and "pswh" in the if-check. Now it works.CIDER version information
Emacs version
27.2
Operating system
Windows 10
The text was updated successfully, but these errors were encountered: