Closed joshgoebel closed 5 years ago
I was able to resolve this by modifying my source to usecurrentSourcePath()
to eliminate the issue by not caring where it's compiled form.
I've modified the current development branch to change the working directory to that of the file being checked, however it's better to have your code support a compile running from any directory.
I have a project in
~/git/nim/pastie
.I'm editing the files with Sublime 3 (my project root is
~/git/nim/pastie
) and when saving them the built innim check
is going bonkers. I know why. I have a macro that's running from this file that walks the directory and pulls in other files to compile them. The path passed towalkDir
seems to be relative to the path you are running the compiler from. When NimLime runsnim check
it's running it from some other location, the macro fails to import the files, and then check reports errors because of missing code.I skimmed the source but I didn't see any setting or concept of running check in the context of any given path or not.
Any ideas?
Saving the file in my editor
From the shell
From a console prompt in this folder (works fine):