-
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
One unavailable package feed breaks PackageReference auto-complete #87
Comments
On recent versions of VS Code, there are actually 2 different output panes (seems to be a limitation of the extension / language server APIs). You will find the logs in the other one (and in the next release the panes will have different names). |
OK, I got some logs now. This is the output when pressing Ctrl+Space to find a version (second screenshot):
Through Fiddler I figured out that one of the package feeds in
So it seems that one feed returning a 404 causes the auto-complete to stop working entirely. |
Ah - sorry about that 🙂 It was a deliberate design decision (fail fast) but maybe I can add a switch for that behaviour? |
A switch would be excellent. I can see how the current behaviour makes sense in case of temporary unavailability of a feed, but in this case the response will always be a 404. |
Would the ability to ignore a feed by name or URL be enough, do you think? |
Ignoring a feed by name sounds fine. |
Oops! Sorry, it turns out I already added support for this due to a similar issue a while back (got pretty busy with work and forgot about it!)… 🤦♂️ tintoy/msbuild-project-tools-server#24 (comment) (haven’t finished testing the new version yet but it should do what you want, as well as being a little clearer what the problem is if a feed doesn’t support the required NuGet APIs) I’ll try to get a final version published sometime this week but feel free to install from the linked VSIX package in that other issue in the meanwhile if you need to 🙂 |
I'm working on a new system and I can't get the PackageReference auto-complete to work. I've seen it work just fine on other systems, but I just can't figure it out for this one and I can't find any logs either.
SDKs and runtimes:
settings.json:
Output for MSBuild Project Tools:
Screenshots:
The text was updated successfully, but these errors were encountered: