-
Notifications
You must be signed in to change notification settings - Fork 17
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
Import can't find files #223
Comments
Thanks for the bug report; I'll see if I can reproduce this on my end. Everything seems alright for a simplified example, so would you be able to send a screenshot of your file / directory structure? Also, does anything seem unusual in the extension log ("Output" -> "Motoko Language Server")? The language server is able to handle multiple |
Just to confirm, did this fix the original issue ("sometimes Motoko language server works and finds its files, sometimes it doesn't")? I'll look into fixing this infinite loop condition to minimize the chance of the same situation happening in the future. |
That is quite strange. What operating system are you using? This might have something to do with VS Code itself rather than the extension, since the error messages indicate that the system path doesn't include |
MacOs 13.4 |
Thanks! I'll let you know if I find a way to reproduce this issue on my end (also on macOS 13.4). You could try running |
Hi @infu, are you still running into this issue? Here are a few more debugging steps that might help narrow down what's happening:
|
same issue here |
Thanks for the details and screenshots!
This is correct. We have a workaround in the backlog. For the time being, it's necessary for all the Motoko files to be contained in the VS Code workspace. |
Actually, removing defaults.build.packtool worked. I guess you are doing it internally in a different way |
Glad you found a workaround! I've also experienced what you're describing but haven't yet been able to reliably reproduce the issue. This is most likely related to how VS Code passes environment variables to extensions, especially if |
I'll have to go back to packtool: "cat mops.sources" |
Sometimes Motoko language server works and finds its files, sometimes it doesn't. Reloading doesn't help. Everything seems to be set properly, mops & dfx.json. Can't even find a local file. The only difference I can see is my git root is not where dfx.json is. Perhaps that path is being used? How the language server detects its dfx.json ?
The text was updated successfully, but these errors were encountered: