Skip to content
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 prologue breaks VS Code error highlighting #253

Open
dawdmaow opened this issue Dec 22, 2024 · 1 comment
Open

import prologue breaks VS Code error highlighting #253

dawdmaow opened this issue Dec 22, 2024 · 1 comment

Comments

@dawdmaow
Copy link

dawdmaow commented Dec 22, 2024

When the import is present, there is no red underline for the underlined symbol:

import prologue

blah

Upon running nimble run, the compiler outputs the expected Error: undeclared identifier for the line, so it's not something wrong with the import itself.

@PhilippMDoerner
Copy link
Contributor

Sadly this is a tough one. The error highlighting likely stems from nimsuggest incorrectly interacting with something inside prologue. What that is, is really hard to debug given the size of prologue's codebase.

As I do not have the error highlighting in general and therefore can't reproduce, the best offer I can make is going to your local prologue installation and its application file (likely in your .nimble dir under .nimble/pkgs2/prologue-<version>-<hash>/prologue/core/application.nim), uncommenting all exports in that file and see if that makes it work. And from there enabling them one by one to see which one might be the culprit.

That would be the basis for an issue in the nimsuggest repo, as that'd allow them to look at that particular file and seeing what inside of it nimsuggest can't deal with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants