reasonml-editor / atom-ide-reason

ReasonML/OCaml language support for Atom-IDE, using ocaml-language-server under the hood.
MIT License
34 stars 8 forks source link

$OCAMLLIB': -c: line 0: unexpected EOF while looking for matching `'' $OCAMLLIB': -c: line 1: syntax error: unexpected end of file #46

Closed Et7f3 closed 5 years ago

Et7f3 commented 5 years ago

Hello,

I try to use ide-reason with atom but can't correctly.

step to reproduce: image click 👆 close atom open cmd.exe as administrator travel to my directory and execute atom .

image

Ok so it don't work

I have tried esy atom.cmd .

image

they are text hidden: Unix.Unix_error(_, "opendir", "")Raised by primitive operation at file "unix.ml", line 360, characters 32-73 Called from file "util/Files.re", line 185, characters 9-28 Called from file "src/analyze/State.re", line 445, characters 4-58 Called from file "list.ml", line 88, characters 20-23 Called from file "src/analyze/State.re", line 442, characters 26-446 Called from file "src/analyze/State.re", line 602, characters 24-75 Called from file "src/lsp/NotificationHandlers.re", line 74, characters 24-72 Called from file "src/lsp/BasicServer.re", line 84, characters 11-35

zaaack commented 5 years ago

Looks like windows problems, I haven't use ide-reason in windows, did you installed ocaml/reason environment via reason-cli?

zaaack commented 5 years ago

you can try with another language server in settings page: image

Et7f3 commented 5 years ago

after changing language server atom . => do nothing image and same for esy atom.cmd . I have installed OCaml via esy packages.json "ocaml": "^4.7.0", in dependencies and when I do esy ocaml I can execute ocaml so I think it correctly installed. same of ocamlmerlin copie of my web dev console image

zaaack commented 5 years ago

@Et7f3 I haven't use esy before, perhaps you can install ocaml in global environment. The errors comes from upstream projects, like reason-language-server and ocaml language server.

Et7f3 commented 5 years ago

Yep the error was solve when reinstalling project 👍