-
Notifications
You must be signed in to change notification settings - Fork 99
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
Fix language service panic when file isn't listed in the files
field of qsharp.json
#2109
Conversation
…eld of qsharp.json
a3d9843
to
b24e63b
Compare
files
field of qsharp.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just left a few comments!
Hello @minestarks! On
But removing all files from qsharp.json makes tests pass! Does this mean we now are required to not list any .qs files if under src/ in the manifest? Or maybe there is a bug? To reproduce this, you can clone this repo and run |
@fedimser Thanks for pointing us to the repo! I was able to try it in GitHub.dev (the extension works in the browser, even from the phone), and it looks like the project runs fine: I wonder if it could be an issue with case sensitivity in the file system... are there any files or folders on your disk that are part of the project where the capitalization differs? |
The issue happens when you run I tried to repro it on github.dev, but that would require installing |
…d of `qsharp.json` (#2109) Fixes #2090 Notably, this also changes how we treat the `files` field in `qsharp.json` for local projects their local dependencies. Previously, if the `qsharp.json` explicitly listed any `files` , that list would take priority and we would skip crawling the directory. With this change: we always crawl the `src/` directory and include all found `*.qs` files in the project. But we raise an explicit error to the user if any of those files are missing from the `files` list.
Fixes #2090
Notably, this also changes how we treat the
files
field inqsharp.json
for local projects their local dependencies.Previously, if the
qsharp.json
explicitly listed anyfiles
, that list would take priority and we would skip crawling the directory.With this change: we always crawl the
src/
directory and include all found*.qs
files in the project. But we raise an explicit error to the user if any of those files are missing from thefiles
list.