Git Product home page Git Product logo

Comments (8)

let-def avatar let-def commented on May 22, 2024

I have some problem understanding your configuration, and I can't reproduce this error.

How did you install the ocaml system? Did you use brew?

from merlin.

g15ecb avatar g15ecb commented on May 22, 2024

I used brew to install ocaml and brew to install opam.

from merlin.

g15ecb avatar g15ecb commented on May 22, 2024

It seems that compiling ocaml with opam seems to have fixed the error. I must have misunderstood how opam works.

from merlin.

let-def avatar let-def commented on May 22, 2024

Well, it should have worked with system compiler, so there is a problem somewhere…
Any way, it is safer to use opam managed compiler.

from merlin.

rgrinberg avatar rgrinberg commented on May 22, 2024

I've recently came about a similar error. I think the issue was:

  1. Merlin was using the system's ocamlbuild which was using the system's ocamlfind

  2. menhir, etc. were installed using opam's local ocamlfind.

from merlin.

let-def avatar let-def commented on May 22, 2024

I plan to tag v1.1 this week-end. It would be nice to close this issue, but I don't understand why this is causing problem…

Normally, make is called from opam, so its environment use opam's PATH ?!

from merlin.

rgrinberg avatar rgrinberg commented on May 22, 2024

It is using opam's PATH. But I don't think it's using opam's ocamlbuild. But it's also using the system's ocamlbuild @ /usr/bin/ocamlbuild when using the "system" ocaml installation. For example on the system where I've encountered the problem:

opam switch system followed by eval opam config env (don't know how to escape backquotes in md)

  1. which ocamlbuild -> /usr/bin/ocamlbuild

  2. which ocamlfind -> ~/.opam/system/bin/ocamlfind

Which is obviously wrong...

In any case this is definitely not a bug with merlin so you can safely close this. I'm just wandering whether the OPAM people should be aware of this...

from merlin.

let-def avatar let-def commented on May 22, 2024

Oh I see! That's probably what happened.

A solution may be that opam exports OCAMLFIND_CONF / OCAML_PATH variables… I'll ask OPAM people.

from merlin.

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.