vim-reason-plus icon indicating copy to clipboard operation
vim-reason-plus copied to clipboard

node_modules/bs-platform/lib/bsppx.exe -bs-jsx 3: No such file or directory File ""

Open MarcCoquand opened this issue 5 years ago • 5 comments

When trying to use vim-reason-plus I get the following error:

sh: node_modules/bs-platform/lib/bsppx.exe -bs-jsx 3: No such file or directory File "", line 1: Error: Error while running extern.....

However compiling reasonml works fine otherwise. It's just in the editor I get this error. Formatting still works fine however hovering does not. I'm using Coc.vim and ale however removing these doesn't change anything.

MarcCoquand avatar May 04 '19 04:05 MarcCoquand

This seems to be related to this: https://github.com/jaredly/reason-language-server/issues/232. Same error in visual studio code.

MarcCoquand avatar May 04 '19 04:05 MarcCoquand

Hi! This is related to https://github.com/jaredly/reason-language-server/issues/275 and can be fixed like this:

open the .merlin file in your project

-FLG -ppx '/Users/vincentspeelman/Projects/reason-repo-list/node_modules/bs-platform/lib/bsppx.exe -bs-jsx 3'

+FLG -ppx '/Users/vincentspeelman/Projects/reason-repo-list/node_modules/bs-platform/lib/bsppx.exe' -bs-jsx 3

note the change in the placement of the second '.

VinSpee avatar May 11 '19 23:05 VinSpee

Yes that fixed the issue.

MarcCoquand avatar May 15 '19 08:05 MarcCoquand

@MarcCoquand / @VinSpee In my project, whenever I make the above change, it gets instantly overwritten when I open nvim. Is there any workaround?

hew avatar May 19 '19 04:05 hew

Nvm the issue cleared up with the newest release of Reason Language Server.

hew avatar May 22 '19 20:05 hew