Skip to content

configure cider to use PowerShell 7.x and not Windows PowerShell 5.1 on windows  #3588

Closed
@shishini

Description

@shishini

Cider fails to jack in a repl , and this initially seem to be because its trying to start the repl using

c:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
instead of
C:\Program Files\PowerShell\7\pwsh.exe

I installed Clojure CLI in a path that is only accessible for PowerShell 7.x not for Windows PowerShell 5.1

So how can i configure cider (or emacs) to use pwsh (which is the command for Powershell 7.x) not powershell (which is the command for the older Windows Powershell 5.1)


I can confirm that adding the clojure cli module to a Windows Powershell 5.1 modules path, fixes my initial issue
so i just want the ability to configure either cider or emacs to use pwsh not powershell


Also you might want to check this calva issue BetterThanTomorrow/calva#1000 for suggestion on how to solve this, since this is basically the same issue but in emacs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions