Repository navigation
|
For some reason the Codex desktop app cannot find the clj.exe executable which can be run successfully from a command prompt. |
Replies: 3 comments 1 reply
|
Apparently it's some permission problem: |
|
Codex itself suggested to add a shim located in some folder where lookups work. |
|
It isn't a PATH problem. The Codex shell runs in a sandbox that can't read The simplest fix I can see is to put Clojure where the sandbox can always read it. That path looks like the per-user default of the clj-msi installer. Uninstall it, run the MSI again, click Advanced and pick "Install for all users of this machine", which goes to Without reinstalling, this in [sandbox_workspace_write]
writable_roots = ['C:\Users\diego\AppData\Local\Apps\clojure']The Once To be clear about what I checked: I'm on macOS, so none of this was run on Windows. The sandbox parts come from the source at rust-v0.166.0, the installer paths and labels from dumping the MSI's tables, and the |
It isn't a PATH problem. The Codex shell runs in a sandbox that can't read
C:\Users\diego\AppData\Local\Apps\clojure(yourAccess to the path ... is deniedshows that), and PowerShell's command lookup skips a PATH folder it can't list, so you get "not recognized" rather than "access denied". #38222 has the same symptom with probes:Test-Pathtrue,Get-ChildItemdenied, running the exe fails, and all fine underdanger-full-access. Trying that mode once is a quick way to confirm it.The simplest fix I can see is to put Clojure where the sandbox can always read it. That path looks like the per-user default of the clj-msi installer. Uninstall it, run the MSI again, click Advanced and pick "In…