-
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
Continuous "Reference not found from AST node:" errors #247
Comments
I also tried to install |
Happy to help debug. Is this your first time downloading the extension? Also, what operating system are you using?
The "Reference not found from AST node" messages are actually just debug information, so you can safely ignore them.
Yep that's correct; the formatter is built into the extension, so it should work out of the box without installing anything. You should also be okay without installing Mops for the |
Hi again! I am using macOS Ventura, up to date. After spending some time testing things, now I think I made it working. It seems some syntax error in the motoko code prevented the auto-formatting to work, I expected to have vscode messages for these kind of issues, like eslint or similar, but I think we are not there yet (not complaining, tho, I appreciate how hard is to build a tool like this). It is weird because some issues like typos on keywords or wrong imports, show up as problems on vscode, but things like missing semicolon after a expression are not raising an issue apparently (but they prevent auto-formatting to work properly) The inputs (intellisense) also seem to work. Another missing part is with imports from the extension, by calling "Motoko: Import Mops Package", the import shows up as not found, but I guess there is already an open issue for that. I will keep debugging and try to be more specific or helpful reporting issues as I learn and better understand the scope of the extension. Thank so much for the support and patience. |
This is very unusual; syntax errors should be showing up in the editor. Thank you for reporting this so we can try and find a solution in case anyone else is also running into this. Did you happen to change anything in the extension settings?
This feature was contributed very recently by the author of Mops. Pinging @ZenVoich in case he has any suggestions. |
Do you have a Does the error appear on the import line or somewhere else? If you could provide a full error message, that would be helpful. |
Hello, I am facing some issues with the extension.
I have latest vscode, with prettier and motoko extension installed.
I installed latest
dfx 0.14.4
following the official guide (curl)I created a simple project with
dfx new sample_project
The vscode extension does not seem to work, no formatting, no inputs, no syntax highligting, intellisense or import actions...
The extension output looks like this after hovering some part of the motoko file:
![image](https://private-user-images.githubusercontent.com/5030059/268075446-55b0d723-24c5-42a8-ab3f-8205115cb4ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyOTE0MTEsIm5iZiI6MTcyNDI5MTExMSwicGF0aCI6Ii81MDMwMDU5LzI2ODA3NTQ0Ni01NWIwZDcyMy0yNGM1LTQyYTgtYWIzZi04MjA1MTE1Y2I0ZWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjJUMDE0NTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjU0MjFjZjRjY2RkMzM3ZTMwMjIwMjQyYTMxNGNlOGNiODVmZDRmMjZmMzRkNzI4M2RmYjBjNzhlMjMzY2IwMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.L_N6z8mgaZF-QWrlYmyzoxsC1t7KPdOnswpR0S_HC2Q)
Any idea?
Do I need to install or configure mops for the extension to work? (I don't have it installed)
The text was updated successfully, but these errors were encountered: