Skip to content

Deploy command: Disable live table rendering if ANSI disabled#18409

Merged
anthony-c-martin merged 1 commit into
mainfrom
ant/no_ansi
Nov 4, 2025
Merged

Deploy command: Disable live table rendering if ANSI disabled#18409
anthony-c-martin merged 1 commit into
mainfrom
ant/no_ansi

Conversation

@anthony-c-martin
Copy link
Copy Markdown
Member

@anthony-c-martin anthony-c-martin commented Nov 4, 2025

Fix the following error:

 Process stderr: Unhandled exception. System.IO.IOException: The handle is invalid.
   at System.ConsolePal.set_CursorVisible(Boolean)
   at System.Console.set_CursorVisible(Boolean)
   at Spectre.Console.LegacyConsoleCursor.Show(Boolean) in /_/src/Spectre.Console/Internal/Backends/Legacy/LegacyConsoleCursor.cs:line 7
   at Spectre.Console.CursorExtensions.Hide(IAnsiConsoleCursor) in /_/src/Spectre.Console/Extensions/CursorExtensions.cs:line 33
   at Spectre.Console.LiveDisplayRenderer.Started() in /_/src/Spectre.Console/Live/LiveDisplayRenderer.cs:line 15
   at Spectre.Console.LiveDisplay.<>c__DisplayClass18_0`1.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/LiveDisplay.cs:line 104
--- End of stack trace from previous location ---
   at Spectre.Console.Internal.DefaultExclusivityMode.RunAsync[T](Func`1) in /_/src/Spectre.Console/Internal/DefaultExclusivityMode.cs:line 40
   at Spectre.Console.LiveDisplay.StartAsync[T](Func`2) in /_/src/Spectre.Console/Live/LiveDisplay.cs:line 98
   at Spectre.Console.LiveDisplay.StartAsync(Func`2) in /_/src/Spectre.Console/Live/LiveDisplay.cs:line 78
   at Bicep.Cli.Helpers.Deploy.DeploymentRenderer.RenderLive(TimeSpan refreshInterval, Table table, Func`1 refreshFunc, CancellationToken cancellationToken)
   at Bicep.Cli.Helpers.Deploy.DeploymentRenderer.RenderDeployment(TimeSpan refreshInterval, Func`2 executeFunc, DeploymentOutputFormat outputFormat, CancellationToken cancellationToken)
   at Bicep.Cli.Commands.LocalDeployCommand.RunAsync(LocalDeployArguments args, CancellationToken cancellationToken)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 4, 2025

Test this change out locally with the following install scripts (Action run 19056059525)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 19056059525
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 19056059525"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 19056059525
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 19056059525"

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 4, 2025

Dotnet Test Results

    96 files   -     48      96 suites   - 48   42m 29s ⏱️ - 32m 58s
12 529 tests  -     13  12 529 ✅  -     13  0 💤 ±0  0 ❌ ±0 
28 803 runs   - 14 395  28 803 ✅  - 14 395  0 💤 ±0  0 ❌ ±0 

Results for commit ee18e44. ± Comparison against base commit 2212cd1.

This pull request removes 1958 and adds 661 tests. Note that renamed tests count towards both.

		nestedProp1: 1
		nestedProp2: 2
		prop1: true
		prop2: false
	1
	2
	\$'")
	prop1: true
	prop2: false
…
Bicep.Cli.UnitTests.Services.ReplEnvironmentTests ‑ ShouldSubmitBuffer_terminates_at_expected_point ("var foo = {
")
Bicep.Cli.UnitTests.Services.ReplEnvironmentTests ‑ ShouldSubmitBuffer_terminates_at_expected_point ("var multilineString = '''
Line 1
Line 2
Line 3
'''")
Bicep.Cli.UnitTests.Services.ReplEnvironmentTests ‑ ShouldSubmitBuffer_terminates_at_expected_point ("var outRoleAssignments object[] = union(map(
  filter(varMockedEntraGroupIds, item => !contains(item.uniqueName, 'DevOps')),
  group => {
    principalId: group.groupId
    definition: group.roleToAssign
    relativeScope: ''
    principalType: 'Group'
  }
),[
  {
    principalId: '22222222-2222-2222-2222-222222222222'
    definition: 'Reader'
    relativeScope: ''
    principalType: 'ServicePrincipal'
  }
])")
Bicep.Cli.UnitTests.Services.ReplEnvironmentTests ‑ ShouldSubmitBuffer_terminates_at_expected_point ("var test = {
  abc: 'def' // boo
}")
Bicep.Cli.UnitTests.Services.ReplEnvironmentTests ‑ ShouldSubmitBuffer_terminates_at_expected_point ("var varMockedEntraGroupIds = [
  {
    uniqueName: 'Reader-Group'
    roleToAssign: 'Reader'
    groupId: '11111111-1111-1111-1111-111111111111'
  }
  {
    uniqueName: 'Contributor-Group'
    roleToAssign: 'Contributor'
    groupId: '22222222-2222-2222-2222-222222222222'
  }
  {
    uniqueName: 'DevOps-Group'
    groupId: '33333333-3333-3333-3333-333333333333'
  }
]")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
��K
�0\u0010\u0006�=E�\u0001�$�\u0003���\u0008n<@lG��Z�\u0008\u0005��\u000bq��\u000f�|��@&���{�n���X"׊�\u0004��zJ���\u000e�5��(�ZJ�\u0010nG����:��Q���\u0007q��+JH�V��KI\u0012��b+_�\u0006Jl�k��iQ�В��U]w9н�\u0019�a�\u0017��&>��Qλ��\u0011URp��Y2������PA[C� �Ay�&����Zx.=[\u0010\u0004A0�\u0017�A�7\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
��K\u000e�0\u0010\u0006�=\u0005'(3C\u0007d�ޥWh��G(�B$1��bb�\u0002�\u0006����m&�>��x��M��ec%�)�R�
�T���\u00012
�^@@��BD�음�l�\u001b��\u0012k� ZG�=Ve�YJD	1J`�\u0013�Vnn79��E���3gS_�<��\u000c\u0005�T��\u0006����[G�)�\u0000$�\u001f\u0000D�W��.��d������� \u0008� ��\u0001�f\u001f�\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
��M\u000b�0\u0018\u0007��\u0014�\u000f0�G�a�!�\u0011\u0016\u0004]c� \u0003-�@��7��t�%h������Gܝ�WZ%�(	\u000f\u0004u	�\u001b5�﷎7��1�F\u0011��K�p�{'-�e�
��\u0018k� �XUi�C&\u0005\u0000x�\u0019\u0001�8�3S:u�X�o�:�i��\�k���:fO�G���\u0006�;�o��`��\u0019\u0005x�\u001cD\u0005����(����?�(>,6���ocg��\u000f<uO�eY��3�`o\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003�ӽ
�0\u0010\u0007��>E�\u0003�ɥI���Ep�\u0001b{b���V(��n;�K�K?\u0004�B��.�?���٢M���T`|F��[:\u0008z�;"\u0008�\u0008�8�Ҝ\u0010ڌ�I�{U۲]e�Y?\u0008\u000c�u�a$B
\u0000RH`\u0006$WƬ�Z<T\u0013kZ��\u001c�y�
�T��kφڗ~�3��������.\u0003"��\u0000\u001a�3�J�6��d������!Ǧ���d��\u0011KoCO�Z�s��\u001c�q��\u0000Z�4\u0004\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003�Խ
�0\u0010\u0007��>E�\u0001���� 8X�*\u0008�\u0012l�
��V(�\uda58\udcf8X\�\u0002�\u001bs��\u000b��\u0006+��R��eńB;`����R><oqi\u000877@�(
����<p�jW�Q>��\u0007�����t̍FD�\u0005gV\u0018kA�|m�U�Czr�~�\u0015IڰCu,�x�\u0015��5�\u000e��{_�g�\u000f(	W\u001c\u00105�\u0010\u0004�\u0012>M?������~\u0014o&�h����q�D�\u000f�홂 \u0008���\u0002U(G!\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
…

@anthony-c-martin anthony-c-martin merged commit 51987e1 into main Nov 4, 2025
42 of 43 checks passed
@anthony-c-martin anthony-c-martin deleted the ant/no_ansi branch November 4, 2025 02:42
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.

2 participants