Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

CSInstallRoslyn fails due to unauthorized access to nuget packages #33

Open
samuelcadieux opened this issue Apr 25, 2024 · 5 comments
Open

Comments

@samuelcadieux
Copy link

I'm getting this error running CSInstallRoslyn, I've hopped into the temp directory and I'm getting this error when executing the dotnet restore command manually:
Response status code does not indicate success: 401 (Unauthorized - No local versions of package 'microsoft.windowsdesktop.app.ref'; please provide authentication to access versions from upstream that have not yet been saved to your feed.

Is there a requirement I'm missing?

@pegma-repo
Copy link

Just a few days ago it worked for me but I'm getting the same error now. Maybe microsoft's nuget feed decided to stop access for those packages. I'm trying to find a workaround.

@pegma-repo
Copy link

pegma-repo commented Apr 25, 2024

Managed to work around it by cloning the repo, changing global.json > version to 7.0.408 and executing this function i wrote inside init.lua

function M.install()
	require("roslyn.install").install(M.server_config.dotnet_cmd, M.server_config.roslyn_version)
end

i'm a total noob, free free to laugh :)

@svermeulen
Copy link

The suggested workaround here didn't work for me on windows. Is this related to this issue?

@zaphar
Copy link

zaphar commented May 17, 2024

I submitted that issue. Resolving it would fix this one by offering a way to download or build the lsp directly. It appears that the real cause is that they don't keep old packages of the lsp around and they are expiring at what seems to be increasing rates... At least I presume it is.

Perhaps this project should allow you to configure the version and use that value in the global.json during install.

@Tomiscout
Copy link

For some reason when running :CSInstallRoslyn it fails. Tried doing steps from roslyn/install.lua manually - I get 401 errors when trying to restore packages. No idea how to authorize this nuget feed, but when I've logged in to msft_consumption with Microsoft account I was able to download .nupkg file, that i passed in local nuget source, and was able to install roslyn.

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

No branches or pull requests

5 participants