Closed wellyal closed 5 years ago
I have the same issue, but not all the time and not in all projects.
running :ElmFormat
works fine.
The difference between the 2 projects is: working:
problem:
The problem is that the plugin is not using the latest version of elm (0.19) while the elm-webpack-loader is using elm 0.19. Run elm --version
in case your elm version is updated to the latest version try this code as the ElmComponent wrapper instead of this plugin.
I may be mistaken, but I believe this pull request should have fixed this issue no that it will fall back to FindRootDirectory. Are you able to check and report back?
@ckipp01 Your PR is working for every command except format...
The reason? elm format
is being called with system
and not s:ExecuteInRoot
@Hermanverschooten I'll look into that. I have another PR that is dealing with elmMake
so hopefully if that gets merged in I can start working on some of the other issues with various commands, including what you just mentioned.
EDIT: Actually, just seeing you sent a PR in to fix that. Cool. :+1:
Ok, thanks
This would be awesome to have a fix for.
The problem was with elm-format itself, and it's already fixed there (version 0.8.2).
I always have to
cd
for the root folder where elm.json is located so the elm-format plugin triggers correctly. Otherwise I keep receiving this error message.