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

Building twice in VS is broken. #74314

Closed
CyrusNajmabadi opened this issue Jul 9, 2024 · 4 comments
Closed

Building twice in VS is broken. #74314

CyrusNajmabadi opened this issue Jul 9, 2024 · 4 comments
Labels
Priority:0 Work that we can't release without untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@CyrusNajmabadi
Copy link
Member

On commit: 5c2d76c
VS:
image

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jul 9, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@CyrusNajmabadi
Copy link
Member Author

Building once succeeds. The second time you get:

24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(1471,87,1471,98): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level
24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(1511,90,1511,101): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level
24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(1534,87,1534,98): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level
24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(1549,90,1549,101): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level
24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(1582,100,1582,111): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level
24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(1602,96,1602,107): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level
24>D:\github\roslyn\src\VisualStudio\CSharp\Impl\CodeModel\CSharpCodeModelService.cs(790,18,790,34): error CS0122: 'NotNullIfNotNullAttribute' is inaccessible due to its protection level
24>Done building project "Microsoft.VisualStudio.LanguageServices.CSharp.csproj" -- FAILED.
25>------ Build started: Project: RoslynDeployment, Configuration: Debug Any CPU ------
26>------ Build started: Project: Microsoft.VisualStudio.IntegrationTest.Setup, Configuration: Debug Any CPU ------
27>------ Build started: Project: IntegrationTestBuildProject, Configuration: Debug Any CPU ------
27>PrepareTests -> D:\github\roslyn\artifacts\bin\PrepareTests\Debug\net8.0\PrepareTests.dll
27>Roslyn.VisualStudio.Setup.Dependencies -> D:\github\roslyn\artifacts\bin\Roslyn.VisualStudio.Setup.Dependencies\Debug\net472\Roslyn.VisualStudio.Setup.Dependencies.dll
27>Roslyn.VisualStudio.Setup.Dependencies -> D:\github\roslyn\artifacts\VSSetup\Debug\Roslyn.VisualStudio.Setup.Dependencies.vsix
27>VisualStudio.SetupPackage -> D:\github\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Compilers.Setup.x64\Debug\net472\Microsoft.CodeAnalysis.Compilers.x64.vsix
27>VisualStudio.SetupPackage -> D:\github\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Compilers.Setup.arm64\Debug\net472\Microsoft.CodeAnalysis.Compilers.arm64.vsix
27>Roslyn.VisualStudio.DiagnosticsWindow -> D:\github\roslyn\artifacts\bin\Roslyn.VisualStudio.DiagnosticsWindow\Debug\net472\Roslyn.VisualStudio.DiagnosticsWindow.dll
27>RunTests -> D:\github\roslyn\artifacts\bin\RunTests\Debug\net8.0\RunTests.dll
27>Roslyn.VisualStudio.DiagnosticsWindow -> D:\github\roslyn\artifacts\VSSetup\Debug\Roslyn.VisualStudio.DiagnosticsWindow.vsix
27>VisualStudio.SetupPackage -> D:\github\roslyn\artifacts\obj\Microsoft.CodeAnalysis.Compilers.Setup.x86\Debug\net472\Microsoft.CodeAnalysis.Compilers.x86.vsix
27>Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests -> D:\github\roslyn\artifacts\bin\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests\Debug\net472\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.dll
27>Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests -> D:\github\roslyn\artifacts\bin\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests\Debug\net8.0\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.dll
========== Build: 23 succeeded, 4 failed, 180 up-to-date, 0 skipped ==========
========== Build completed at 11:10 AM and took 26.628 seconds ==========
Visual Studio accelerated 1 project(s), copying 4 file(s). See https://aka.ms/vs-build-acceleration.

full log is at: https://gist.github.com/CyrusNajmabadi/6f17341a7ce5c2aa3cb651aa274b3b17

@CyrusNajmabadi CyrusNajmabadi added the Priority:0 Work that we can't release without label Jul 9, 2024
@Cosifne
Copy link
Member

Cosifne commented Aug 14, 2024

Fixed in
#74205
#74486

@Cosifne Cosifne closed this as completed Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:0 Work that we can't release without untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants