Skip to content

Do not log missing generated output directory for Venus design-time project - #86533

Merged
tmat merged 4 commits into
dotnet:mainfrom
tmat:LagacyCompilationOutputAssemblyFilePath
Nov 20, 2026
Merged

tmat merged 4 commits into
dotnet:mainfrom
tmat:LagacyCompilationOutputAssemblyFilePath

Conversation

@tmat

@tmat tmat commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Adds a simple heuristic to avoid logging confusing messages.

@tmat
tmat requested a review from a team as a code owner November 18, 2026 22:59
Copilot AI balanced review requested due to automatic review settings November 18, 2026 22:59
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@tmat

tmat commented Nov 18, 2026

Copy link
Copy Markdown
Member Author

@jasonmalinowski Simple change, ptal

@tmat
tmat force-pushed the LagacyCompilationOutputAssemblyFilePath branch from f1c3744 to f013cc9 Compare November 18, 2026 23:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new tests lack the required MEF export-provider scope and can fail before assertions, while missing coverage of IgnoreForEditAndContinue leaves the logging regression unprotected.

2 open issues
What changed in this PR

This PR reduces confusing Edit and Continue logging for Venus design-time projects while keeping them excluded from runtime updates.

Changes:

  • Adds a heuristic using project names and design-time projection documents to suppress missing generated-output-directory messages for Venus projects.
  • Changes remaining project-exclusion messages to warning severity.
  • Adds recognition tests covering C# and Visual Basic projections, invalid names, and mismatched or non-design-time documents.
File Description
src/​Features/​Test/​EditAndContinue/​ExtensionsTests.cs Adds positive and negative tests for Venus project recognition.
src/​Features/​Core/​Portable/​EditAndContinue/​Utilities/​Extensions.cs Adds Venus detection, selectively suppresses logging, and updates exclusion-message severity.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 18, 2026 23:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The tests cover only project recognition, so removing the logging guard would still pass them; regression coverage must verify that Venus projects remain silent while ordinary misconfigured projects still log and both remain ignored.

2 open issues

Review effort: Balanced

Mark the MEF-backed tests with UseExportProvider and cover IgnoreForEditAndContinue so Venus projects stay silent while ordinary projects still log the missing directory.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 19, 2026 00:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of the targeted Venus design-time logging change.

1 open issue
1 resolved since last review

Review effort: Balanced

/// the number depends on creation order. The returned display name is that URL and retains the underscores.
/// The page document is the project document whose name ends with ".__projection.g.cs" or ".__projection.g.vb".
/// </summary>
internal static bool IsVenusDesignTimeProject(Project project)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have better ways to do this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How?

Copilot AI balanced review requested due to automatic review settings November 19, 2026 18:02
@tmat

tmat commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

Updated the code to report we intentionally skipped the project

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The logging assertion expects the wrong message format, causing both language cases of the theory to fail.

1 open issue
1 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 19, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Venus Edit and Continue logging update.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@tmat
tmat merged commit 3ba3337 into dotnet:main Nov 20, 2026
23 checks passed
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants