rust-analyzer: Another crash "can't resolve local ptr to SyntaxNode"

Haven’t seen this one reported yet:

thread '<unnamed>' panicked at 'can't resolve local ptr to SyntaxNode: SyntaxNodePtr { range: [170; 182), kind: RECORD_FIELD }', crates\ra_syntax\src\ptr.rs:30:28

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Is procMacro flag enabled ?

If so, it might be #4315

It finally finished:

Database loaded, 384 roots, 2.251894s
Crates in this dir: 5
Total modules found: 86
Total declarations: 1675
Total functions: 629
Item Collection: 26.9912433s, 0b allocated 0b resident
Total expressions: 15499
Expressions of unknown type: 1579 (10%)
Expressions of partially unknown type: 2046 (13%)
Type mismatches: 111
Inference: 2351.7644739s, 0b allocated 0b resident
Total: 2378.7566213s, 0b allocated 0b resident