Skip to content

collect-linux command reports an error on accessing CursorVisible #5752

@RikkiGibson

Description

@RikkiGibson

Description

Repro: run dotnet-trace collect-linux command:

$ /home/rikki/.dotnet/tools/dotnet-trace collect-linux
==========================================================================================
The collect-linux verb is a new preview feature and relies on an updated version of the
.nettrace file format. The latest PerfView release supports these trace files but other
ways of using the trace file may not work yet. For more details, see the docs at
https://learn.microsoft.com/dotnet/core/diagnostics/dotnet-trace.
==========================================================================================
[ERROR] System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.ConsolePal.get_CursorVisible()
   at System.Console.get_CursorVisible()
   at Microsoft.Diagnostics.Tools.Common.DefaultConsole.get_CursorVisible() in /_/src/Tools/Common/DefaultConsole.cs:line 29
   at Microsoft.Diagnostics.Tools.Trace.CollectLinuxCommandHandler.CollectLinux(CollectLinuxArgs args) in /_/src/Tools/dotnet-trace/CommandLine/Commands/CollectLinuxCommand.cs:line 110

Configuration

  • OS: Linux Mint 22.3 64-bit
  • x64 arch
  • dotnet SDK version: 10.0.102
  • dotnet-trace version: 10.0.715501+86150ac0275658c5efc6035269499a86dee68e54
  • Running in a bash terminal.

Regression?

Don't know.

Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions