MTP build preflight errors leave Test Results run output empty
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- developer-experience, testing
Línea de trabajo
Start with the preserved regression tests in src/editors/vscode/src/test/suite/test-build-output.test.ts and the retained results under target/codex1-release-v0330/. Run the extension-host regression with RUN_RELEASE_REGRESSIONS=1 and trace how MTP preflight failures reach TestRun.appendOutput. Done means Run and Coverage output includes the error marker, code, and file across the documented fixture combinations.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Released behavior
The official published v0.33.0 VSIX reports Microsoft.Testing.Platform preflight compiler/MSBuild failures in the Testing failure message and cache, but calls no TestRun.appendOutput for that failure. The Test Results run-output stream stays empty.
This violates [TEST-RUN-OUTPUT], which requires a build error from the runner console to appear as the run's own output. It is separate from #442, where the invocation logger correctly records only the failure's presence.
Live reproduction
Actual VS Code1.145.2 on macOS arm64, official v0.33.0 darwin-arm64 VSIX installed in production mode, with its own published host and compiler engines. No local SharpLsp runtime or extension implementation was executed. The only development extension is an observer harness loading regression tests.
- Create real SDK xunit.v3 MTP projects using the existing F# and C# fixtures. Exercise both native MTP detection and global.json SDK opt-in.
- Discover a real passing test and run it through the published extension's actual registered Run profile. Require a pass.
- Add a real Directory.Build.targets target before BeforeBuild that emits Error with code SLSP9999, file Preflight.txt and a unique text marker. This is an actual SDK/MSBuild failure, not a mocked runner response.
- Invoke the actual Run and Coverage profiles. Both produce errored TestRun verdicts and notRun cached outcomes. Both Testing messages retain the unique marker.
- Observe actual TestRun.appendOutput calls, forwarding all calls unchanged. Both run-output strings are empty.
- Remove only the failing targets file. Run the selected test again and require a pass.
- Assert each failure's run output includes the marker, code and file. The output assertion fails after the baseline and repaired executions have passed.
Results and preserved regression
All four combinations reproduce the same failure, F# first, then C#, each with SDK opt-in disabled/enabled. Eight genuine failed profile invocations have empty output. All four initial and four repaired Run controls pass.
Preserved in src/editors/vscode/src/test/suite/test-build-output.test.ts. The four tests are explicitly skipped by default, per the audit instruction. Set RUN_RELEASE_REGRESSIONS=1 to enable them in an extension-host test run. The scenario reuses existing MTP fixture writers, actual profile invocation helpers and the passive TestRun observer. It uses no local production runner/controller functions.
The audit ran the compiled test module through a separate extension-host harness against the unmodified released extension, rather than activating this checkout's implementation. Raw results are retained under target/codex1-release-v0330/vsix-build-output-enabled-results.json and vsix-build-output-enabled-vscode.log. All four failures are the intended output assertion with the actual pair of empty strings. TypeScript compilation, ESLint and formatting pass.
- Lenguaje dominante
- TypeScript
- Estrellas
- 185
- Forks
- 12
- Merge medio
- 7 h 33 min
- PR fusionados (30 d)
- 63
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Nimblesite/SharpLsp
-
Fix All + Enforce overwrites unsaved edits to .editorconfig / Directory.Build.props / sharplsp.tomlAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Nimblesite/SharpLsp#644 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Nimblesite/SharpLsp#641 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Nimblesite/SharpLsp#640 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Nimblesite/SharpLsp#639 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Nimblesite/SharpLsp#510 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Nimblesite/SharpLsp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
audacity/audacity.github.io#118 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
crxjs/chrome-extension-tools#1261 ·
-
Resources: Update work of fuzhouPosiblemente ocupada @rmt-svc la tomó hoy. Abiertoresources
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
railmapgen/rmp-gallery#4245 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
mike-north/AgentMonitors#717 ·
Los mantenedores suelen responder en 1 día