-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Confusion with paths detected by elm-review (windows OS) #693
Comments
Can you run |
I use a minimal source file: module Main exposing (..)
import Browser
import Html exposing (Html)
init =
""
view model =
Html.text "Hello, World!"
update msg model =
model
main =
Browser.sandbox
{ init = init
, view = view
, update = update
}
The output of
|
Would you be able to build #694 and test it? Basically do https://github.com/elm-tooling/elm-language-client-vscode#contributing--debugging and switch the branch of the server repo |
Sorry, but this is my first time debugging with vscode extensions. I have not success with it. I paste the same message with elm-review as before:
As you can see, the resource path is missing the prefix
|
Can you check if |
The output json of
|
Well, we seem to be combining it with the workspace root path https://github.com/elm-tooling/elm-language-server/blob/main/src/providers/diagnostics/elmReviewDiagnostics.ts#L170 So I guess that's for some reason not correct? Still it uses that path before to check if the ReviewConfig.elm even exists :/ |
I understand the problem. The fix is to keep
That works now with my windows installation. |
Thank you, seems to work fine like that on linux too. |
With windows OS, messages from elm-review are not displayed into the editor, only messages from the elm LSP. With linux, all works fine.
Expected Behavior
With windows, elm-review seems not working with Visual Code and Elm extension.
Messages from LSP and elm-review are listed in the problems pane, but only messages from LSP are displayed into the code editor. Messages from elm-review are missing.
Current Behavior
I put in
src/Main.elm
an unused import:In the problems pane, I saw messages from LSP and elm-review:
LSP:
elm-review:
If in the problems pane, I click in the message from elm-review, I got an error message:
Something wrong is happening with the path.
Possible Solution
LSP and elm-review are using distint schemas for the path. Perhaps, vscode has facilities for homogenizing the use of routes.
Your Environment
The text was updated successfully, but these errors were encountered: