Comments (4)
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.
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.
@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.
Hello, I am also having the same problem. I am trying to use merlin with reason-react-example. I tried the following:
- Installing merlin as a local dev dependency
- Installing merlin globally via npm
- 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)
- Error "connection got disposed off" (but not on save as in #247 and #142 but on start/load) HOT 5
- Error starting reason-vscode "expected string", fix error message for invalid bsconfig.json HOT 1
- Options for ReasonML formatting?
- BSC.exe: Wrong Argument. -bs-jsx expects an integer HOT 4
- Incorrect problem matcher for ocaml >= 4.09
- Wrong module for "go to definition" HOT 3
- merlin error reporting can be excessive
- [Feature] Completion on labelled arguments
- Unable to run first ocaml "hello world" program.
- Double error/warning dislayed
- WSL: opam local switch environment
- What does this highlighting of a whole function mean?
- Ternary Operators are Highlighted as bool
- Restart Merlin? HOT 1
- Why is the highlighting for OCaml so weird?
- Node module errors preventing extension from working
- Autocomplete not working HOT 1
- OCaml: Incorrect syntax highligthing if identifier starts with let
- Request textDocument/formatting failed
- VS Code: we have marked your extension as deprecated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-reasonml.