Skip to content

Hang / High CPU usage with tracing macros #18876

Closed
@SludgePhD

Description

@SludgePhD

rust-analyzer version: 0.3.2253-standalone

rustc version: rustc 1.83.0 (90b35a623 2024-11-26)

editor or extension: VS Code

relevant settings: none

code snippet to reproduce:

fn main() {
    tracing::error!()
}

This snippet causes rust-analyzer to take 100% of one CPU for several dozen seconds. It is completely unresponsive during that time, so this is making it pretty hard to use.

This is with tracing = "0.1.41".

Metadata

Metadata

Labels

A-macromacro expansionBroken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions