-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Get "No Elm workspace contains..." with nested projects #94
Comments
Yeah, it's not supposed to work like that, you want to open the examples either as another vscode workspace or as another vscode window. |
I guess the sensible thing here would be to document this in the FAQ https://github.com/elm-tooling/elm-language-client-vscode#faq and close this issue thereafter. |
I ran into this today. Why does this work this way? Requiring an inner project to be opened in its own window seems arbitrary to me. The extension seems to handle projects that are siblings just fine, so there doesn't seem to be a problem with having multiple Elm projects within the same VS window per se. |
The problem is, that your editor window is not able to choose between the elm projects, should it open in the context of the parent or in the context of the child? |
I would say, the context of the child, because it is the more specific one. It means you can have another project inside a bigger one and have the extension use the config of the subproject. It also means that there is a chance for each config to be used (depending on the file's location), whereas if you pick the parent context, there is no file location that would use the child config. |
I would like to have it the other way around, as it makes no sense to me, that I end up not finding references to the child project otherwise. |
And what about tests folder ? I get same error, what is the workaround, if i want features provided by elm-languag-client for all my tests ? |
haven't really looked into that |
Runned into this issue myself. I agree that the closest |
An unconfirmed idea, does elm-ls work with multiple Elm apps inside a root project, as long as they are NOT nested? Example:
My intuition says yes, but not tried yet. |
I have a project with nested Elm apps (one root Elm app and two child Elm apps directories) and a quick test has shown this indeed works! |
https://github.com/VladimirLogachev/elm-format-problem This repo illustrates elm formatting issues. When the repo is opened as a workspace, formatting doesn't work properly. It only works for one of the apps, randomly Extension output:
|
That seems to be a different problem, as those projects are not nested. I would guess the client gets something wrong and talks to the wrong server. As you can see, that the other server updates the text files correctly. |
Sure! |
Yes, but I'm not sure when I can look at it. |
I checked out the elm-3d-scene project from here https://github.com/ianmackenzie/elm-3d-scene and when I was inside the examples, elm-format was not happening on save.
Expected Behavior
Elm formatting to work on a file in the examples/ directory in elm-3d-scene.
Current Behavior
Elm format does not work on files in the examples/ sub directory.
Possible Solution
It's probably because it finds the
elm.json
in the parent folder and then never looks for theelm.json
in the examples folder.Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: