-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No root directory found" #334
Comments
I'm getting this, too. Happens with new, empty OCaml project with just one |
It happens even if create 2 or 3 .ml files. I see a function getPackage L525 of Packages.re that seems to trigger that message "No root directory found" on L 529. What is happening is unclear to me. I can say that type state is defined here: TopTypes.re rootForUri is defined her: TestUtils.re What do you think about that code? BTW, is there an reason2ocaml converter? I chose OCaml for its conciseness and little number of brackets/curly braces/parens, and this bunch of reason curly braces and parens is making me sick! |
I got a little further by creating a But now I got this error error instead:
I created an empty file by that name (even though Dune says it's deprecated file), and the error went away. Instead, I now get:
I have an $ which ocamlopt.opt
/usr/local/bin/ocamlopt.opt
$ $ ls -l $(which ocamlopt.opt)
lrwxr-xr-x 1 alex admin 39 Dec 18 2018 /usr/local/bin/ocamlopt.opt -> ../Cellar/ocaml/4.07.1/bin/ocamlopt.opt So I did
I restarted my VSCode window and, for kicks, deleted
I had no idea what (Now VSCode says Now I don't get any extension errors, at least not yet... However, I do get errors about unbound modules, even though my file compiles fine and the module is declared in Why is this so difficult? (I tried to get formatting to work. I select the VSCode command "Format document with..." and select I'm also a little unnerved by the fact that the extension creates a |
One of my files tree has node_modules/.lsp/debug.log I didn't find any documentation. |
Same issue when creating a new project with bsb -init test-project -theme basic-reason Actual error
autocompletion and suggestions do not work |
Same issue for folders starting with |
Related issue: #177 |
for what it's worth, i'm pretty sure that this issue blew up after upgrading to a newer version of npm. I had received this error in the past when trying to work with sample projects that had been built using previous versions of bucklescript, whereas my global |
edit: Don't do this: I did I still get For code formatting, I use OCaml Formatter |
I'm having this same issue, VSCode extension fails to find a root directory when I created a new directory. Am I doing something wrong in regards to using Dune? Does Dune require you to essentially |
I have this same issue but since I was using dune, I created a minimal dune build definition and executed It seems looking at findRoot at
/ .
|
as @abhijat mentioned, that |
This works! @atombender |
The Ocaml syntax is supported but I continuously get "No root directory found" when I save a .ml file.
I see that there is no
node_modules/
directory. I just created a directory, "added it to workspace" and "saved workspace as".Can you give a hint about how to use (ocaml)reason-language-server the right way?
Is there a feature that generates the .merlin files without using Dune build tool (that generates them)?
Also, how do you enable the indentation feature? (ocp-indent)
Thanks
Version: 1.38.1
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:30:08.229Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.19.0-5-amd64
The text was updated successfully, but these errors were encountered: