Skip to content
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

Unable to load compilation data: No root directory found #24

Closed
hartmut27 opened this issue Mar 31, 2020 · 1 comment
Closed

Unable to load compilation data: No root directory found #24

hartmut27 opened this issue Mar 31, 2020 · 1 comment

Comments

@hartmut27
Copy link

hartmut27 commented Mar 31, 2020

I am using VS Code with extension reason-vscode Reason Language Server (RLS).
I cloned the re-web demo application with git clone https://github.com/yawaramin/fullstack-reason.git test01. OCaml native backend end NPM reason frontend both work very well, this is very encouraging :)

The non-critical problem: In file backend/App.re, when I navigate to open ReWeb; (see screenshot), reWeb.ml is opened. Starting from here, I can't lookup the symbols because of "No root directory found" in VS Code's error message.

The problem does not relate to ReWeb directly, sure the origin lies more in Reason Language Server's handling of native esy compiled ocaml-files, but I could find a solution yet.

If anybody have found an work-around, please let me know.
No problem if you close this issue, then it could be used for reference reasons - then perhaps it helps other people wanting get in touch ReWeb and search a way around this problem.

Following RLS issues are relating (not solved yet): 162, 177, 334

image
image

@yawaramin
Copy link
Owner

Hi, thanks for trying it out :-) I think this is a general problem with OCaml tooling–editor support tools only work within the project itself, not on dependencies. See this thread: https://discuss.ocaml.org/t/merlin-goto-definition-inside-installed-libraries/2788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants