-
Notifications
You must be signed in to change notification settings - Fork 18
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
The example should probably switch to psc
and make psa
optional, or make external dependencies more clear
#5
Comments
psc
and make psa
optionalpsc
and make psa
optional, or make external dependencies more clear
I think it is a great idea to be explicit about all of the dependencies. Putting this in the README would be a welcome addition. In terms of not having psa installed, shouldn't it be installed when the user runs |
No it's not installed. In my understanding, |
I would try |
Right, the |
You're right
|
Glad it works! Note that for
|
Yeah, for
|
Anyway, there is something strange going on because it occasionally fails and occasionally not, even with
|
Thanks for reporting this. I haven't tried it on Nix. I am not quite sure what is going on. Do you think it is related to the purs-loader or how npm is installing dependencies? |
I think I figured out what was causing this. This appears to be Nix related. Basically, npm puts the binary in
Normally, Nix would patch it and provide another path to the library as seen here, when psc is installed through Nix:
In npm's case, if you even call So, when you run webpack that's installed globally it looks at $PATH for compiler and finds the one that is linked properly. When you run |
Great! Glad that you got this working. Do you think we should say anything about this in the troubleshooting section in the purs-loader README? |
Yeah, probably. I think Nix usage among Purescript crowd will be higher than other JS transpilers, based on similarities in philosophy. |
Would you be willing to write up a short description of how you fixed this?
…On Sat, Feb 25, 2017 at 10:55 cyrbon ***@***.***> wrote:
Yeah, probably. I think Nix usage among Purescript crowd will be higher
than other JS transpilers, based on similarities in philosophy.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVYy0ofEA9OI1NE4rbJI-d88yP0-_xnks5rgE7qgaJpZM4MMBt4>
.
|
Of course. I'll create a pull request soon. |
Thanks!
…On Sat, Feb 25, 2017 at 10:58 cyrbon ***@***.***> wrote:
Of course. I'll create a pull request soon.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVYyxzhiN00VDepY_MgUZr2jsmOQDN0ks5rgE-UgaJpZM4MMBt4>
.
|
Currently, if there is no
purescript-psa
installed, then the example fails with a very ambiguous error:This is going to be very discouraging for anybody who wants to quickly try
purs-loader
andpurescript
withwebpack
. Onpurs-loader
page, it mentions quickly that it usespurescript-psa
, but I think it's a good idea to make the example repository as fail-safe as possible and mention it loudly here as well.My suggestion is to list every external dependency clearly upfront in the
README.md
. If I'm not missing anything, this consists ofpurescript-psa
(psa
) andpurescript
(psc
),nodejs
(node
),webpack
(webpack
). I have specified their CLI names in brackets to that it's easier to verify whether each one exists by running--version
on each of them. I can create a PL later.The text was updated successfully, but these errors were encountered: