Coder Social home page Coder Social logo

Comments (4)

 avatar commented on July 20, 2024

Hi @maun, can you give me a bit more detail on what you are asking for?

In general, the errors from merlin for the current file should already be showing up in the problems panel. Is that what you are referring to or something else?

Regarding merlin not being found, can you tell me how you have your project set up and what your Reason development environment looks like?

The extension does try to check for the ocamlmerlin binary when it loads and report an error if it cannot be found but it may be that this is not working for some reason here.

from vscode-reasonml.

 avatar commented on July 20, 2024

Hi @freebroccolo, sorry I thought this behavior is known/intentional:
I use the newest extension on an ArchLinux VM with vscode 1.9. I am using this code and ran npm install.

When I start vscode without ocamlmerlin in my node_modules/path, or ocamlmerlin ends with an error I see no error in vscode, but at the bottom right the text "[loading]". There is also no error in the developer console.

With the posted source code I have a working installation with working autocomplete, I can reproduce the described behavior as follows.

No error for ocamlmerlin errors:

  • Rename _build to 2build
  • Start vscode either with npm run env -- code . or normally with the project folder open
  • Open a reason file from the project

For the missing ocamlmerlin binary I did the following:

  • Rename ocamlmerlin in node_modules to ocamlmerlin2
  • Start vscode either with npm run env -- code . or normally with the project folder open
  • Open a reason file from the project

Someone on discord also mentioned that this extension shows no errors for ocamlmerlin.
I can remember having seen an error dialog some time ago that ocamlmerlin cannot be found.
By the way, this extension is great, thanks 👍

from vscode-reasonml.

 avatar commented on July 20, 2024

@maun thanks for the details. I know there used to be some issues with the server not always reporting the failure properly if the call to execute ocamlmerlin under node_modules failed.

I thought I fixed that but maybe not. I'll take a look and see if I can figure out what's going on.

from vscode-reasonml.

pjhenning avatar pjhenning commented on July 20, 2024

Hello, I am also having the same problem. I am trying to use merlin with reason-react-example. I tried the following:

  1. Installing merlin as a local dev dependency
  2. Installing merlin globally via npm
  3. Manually adding the location of the globally installed binary to my system PATH

I am running MacOS 10.12.4, VS Code 1.10.2, Reason plugin 0.0.99.

from vscode-reasonml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.