-
Notifications
You must be signed in to change notification settings - Fork 132
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
PSA integration changed? #693
Comments
We had a big refactoring leading to 0.15, so this might be related to #634 A couple of questions:
|
welllllll, to be honest, I was using PowerShell and not going through WSL at all.
|
@ntwilson I see, it looks like Lines 116 to 130 in 9fe8bfa
Now, the place where we decide if we should use Lines 228 to 237 in 9fe8bfa
I am not sure if we can do anything at all about this. @stkb any thoughts on this? 🤔 |
It would be nice if spago could fetch PSA from a per-project install with The |
@f-f, can I ask how your non-WSL Windows installation is setup? Perhaps I can mirror the same thing. I'd love to have the latest spago changes, but right now I'm stuck on 0.14.0 because I can't switch to WSL. |
@ntwilson it's just a vanilla Windows 10 where I installed the tooling with |
Do you have PSA installed at all, and are you able to use PSA with spago? |
I don't use |
Oh, sorry, I think I just misunderstood your comment above.
I thought you meant to make it work with PSA, and I was curious how you did it. If there's anything I can do to try to resolve this, I'm happy to help, but I'll confess I've got very little familiarity with Haskell + Windows + file systems, so I'd potentially need some guidance on all the edge cases we're trying to support. |
I can repro and will look into this. Update: PR will be incoming. |
In `getPurs` we were just using the standard `Directory.findExecutable` to look for `psa`, forgetting to check for `psa.cmd` too. In windows this was looking for `psa.exe`, which doesn't exist. To help prevent this happening again, a self-written `findExecutable` function in `Prelude` is added, instead of just exporting `Directory.findExecutable`. This new version will always first check for a `.cmd` version of the executable name on Windows.
In `getPurs` we were just using the standard `Directory.findExecutable` to look for `psa`, forgetting to check for `psa.cmd` too. In windows this was looking for `psa.exe`, which doesn't exist. To help prevent this happening again, a self-written `findExecutable` function in `Prelude` is added, instead of just exporting `Directory.findExecutable`. This new version will always first check for a `.cmd` version of the executable name on Windows.
In `getPurs` we were just using the standard `Directory.findExecutable` to look for `psa`, forgetting to check for `psa.cmd` too. In windows this was looking for `psa.exe`, which doesn't exist. To help prevent this happening again, a self-written `findExecutable` function in `Prelude` is added, instead of just exporting `Directory.findExecutable`. This new version will always first check for a `.cmd` version of the executable name on Windows.
In `getPurs` we were just using the standard `Directory.findExecutable` to look for `psa`, forgetting to check for `psa.cmd` too. In windows this was looking for `psa.exe`, which doesn't exist. To help prevent this happening again, a self-written `findExecutable` function in `Prelude` is added, instead of just exporting `Directory.findExecutable`. This new version will always first check for a `.cmd` version of the executable name on Windows.
It seems the
psa
integration isn't working for me anymore. My build script usesspago build --purs-args "--stash"
. This works using spago 0.14.0. As soon as I update to 0.15.2, 0.15.3, or 0.16.0, I get the error:Which I'm pretty sure means it's not finding
psa
anymore and trying to use purs.bin directly. Is this a regression, or did something change about the integration with psa? I have psa installed globally and local to the project. I also have spago installed globally and local to the project. I've tried this with psa versions 0.7.3 and 0.8.0.OS: Windows 10
spago version: 0.15.2-0.16.0
purescript version: 0.13.6
psa version: 0.7.3-0.8.0
Thanks!
The text was updated successfully, but these errors were encountered: