-
Notifications
You must be signed in to change notification settings - Fork 15
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 |
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 ?
![image](https://private-user-images.githubusercontent.com/24810/251184912-a7f7ce3f-3edd-4850-835a-8b92f42b7c9b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzMDM5NTAsIm5iZiI6MTcyNDMwMzY1MCwicGF0aCI6Ii8yNDgxMC8yNTExODQ5MTItYTdmN2NlM2YtM2VkZC00ODUwLTgzNWEtOGI5MmY0MmI3YzliLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDA1MTQxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4ZGRlMzJmZWRjYmJiNzMxM2ExMDA2YjBhOTc3OTUxMWUyNThiYmNmOTc1ZjYzZGQ5MzQzYTI1ZjZkZTJkMjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dRS08EeF2JRbu_IbA4VZW7Q1BfLLoXnwEm-pvFYeeHg)
The text was updated successfully, but these errors were encountered: