Skip to content
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

Calling purs needs to try some more candidates #138

Closed
justinwoo opened this issue Sep 4, 2018 · 4 comments
Closed

Calling purs needs to try some more candidates #138

justinwoo opened this issue Sep 4, 2018 · 4 comments

Comments

@justinwoo
Copy link
Collaborator

On Windows, purs.cmd, etc

@kritzcreek
Copy link
Member

Just use shell expansion when calling the process

@taiju
Copy link
Contributor

taiju commented Nov 15, 2018

npm-psc-package-bin-simple also has a same issue as #34.
Probably, this issue is in Turtle librarySystem.Process.createProcess. I reproduced it easy with ghci.

PS C:\Users\taiju> stack ghci

Warning: No local targets specified, so ghci will not use any options from your package.yaml /
         *.cabal files.

         Potential ways to resolve this:
         * If you want to use the package.yaml / *.cabal package in the current directory, use
           stack init to create a new stack.yaml.
         * Add to the 'packages' field of C:\sr\global-project\stack.yaml

Configuring GHCi with the following packages:
GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from C:\Users\taiju\AppData\Local\Temp\ghci16748\ghci-script
Prelude> import System.Process
Prelude System.Process> createProcess $ proc "purs" ["--version"]
*** Exception: purs: createProcess: does not exist (No such file or directory)
Prelude System.Process>

@taiju
Copy link
Contributor

taiju commented Nov 15, 2018

My workaround.

  1. Download purs for windows binary from https://github.com/purescript/purescript/releases Copy /path/to/node_modules/purescript/purs.bin to purs.exe
  2. Put it where there is purs.cmd. (e.g. C:\Users\you\AppData\Roaming\npm)

@justinwoo
Copy link
Collaborator Author

Fixed by #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants