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

Issue auto-guessing project file #254

Open
MrSFGriffin opened this issue Oct 4, 2024 · 1 comment
Open

Issue auto-guessing project file #254

MrSFGriffin opened this issue Oct 4, 2024 · 1 comment

Comments

@MrSFGriffin
Copy link

Hello,

I hit an issue where find all reference was not working. I identified the issue as being due to getProjectFileAutoGuess only search upto 2 directory levels, which meant it was not reaching the .nimble file directory, and so had to use a less certain method than nimble dump to identify the project file. This led to the wrong project file being guessed, which broke the referencing functionality. I wrote about it all at: https://forum.nim-lang.org/t/12538#77190.

It can be fixed simply by uping the number of directory levels the autoguessing travels in search of the .nimble file. In my local langserver repo I upped it from 2 to 10 to get things working.

Do you want me to create a pull request with my change?

@jmgomez
Copy link
Collaborator

jmgomez commented Oct 4, 2024

Sure, go ahead. Although a better solution would be to make nimble dump work in subfolders.
In any case, make sure to add a test case showcasing your issue in tprojectsetup.nim

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