-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add bucklescript #17
Comments
I was thinking about that... the problem is that Everything else is installed globally 😕 I don't know how to make it work, because I don't want to mess with the npm version the user has. |
The official guide recommends to install it globally And by default, on the vscode extension, we're relying on cc @chenglou for confirmation |
Nice, so I think we can add it. |
Yeah bs-platform is ideally installed globally for the tooling. You'd still model it as a devDependencies for contributors to We had the idea of having everything as a devDep, but it went overboard and asked folks to start their editor with the correct environment (the project's specific merlin, reason, bs versions, all modeled as devDeps). People didn't like doing that. Thus the few global binaries we ask people to install. Isn't this still a problem? reasonml/reasonml.github.io#195 (comment) Tldr yeah let's add it to the windows workflow. |
From what @superherointj mentioned, the problem with PPX lines in Installing I think the Reason "install on Windows" docs should include clearly that all the tooling needs to run on WSL, to avoid this kind of situations. Disclaimer: i have no Windows machine 😂 this is just based on what I discussed with superhero. |
I tried to add bs-platform but it is failing to install on WSL. Does anyone know what is causing this? I ran I'm using node 8.6 and npm 5.4.2.
> [email protected] postinstall /usr/lib/node_modules/bs-platform
> node scripts/install.js
Working dir /usr/lib/node_modules/bs-platform Error: EACCES: permission denied, rename '/usr/lib/node_modules/bs-platform/vendor/ninja-build/ninja.linux64' -> '/usr/lib/node_modules/bs-platform/bin/ninja.exe' |
Is this relevant? rescript-lang/rescript#2051 |
I created #18 to add bs-platform. I also removed ocaml-windows, because it requires ocaml 4.04.0. Now it's installing 4.02.3.
|
One of the things @superherointj has figured out is that, in order for Merlin to work,
bucklescript
should be running on WSL as well.The problem that @fhelwanger mentioned in this comment:
is due to Bucklescript being executed from Windows, while merlin being executed from Linux, and interpreting file paths differently.
@fhelwanger Would it be very hard to add BuckleScript to this project? I think that would help streamlining the installation on Windows + it would also guarantee that all binaries are "seeing" file paths etc from the same point of view, which would hopefully avoid issues. It makes sense to keep things consistent.
The text was updated successfully, but these errors were encountered: