8000 autofocus not working with Rust / syn · Issue #155 · sxzz/ast-explorer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
autofocus not working with Rust / syn #155
Open
@blueglyph

Description

@blueglyph

Describe the bug

The standard library to parse Rust is now syn 2.0, so it's great that it's supported by this AST explorer. Unfortunately, the autofocus doesn't work, neither with the tree or JSON representation.

I'm not sure whether it's a bug or a feature request, but the option is there and not working, so I reported it as a bug.

With other languages, the feature is working (I only checked Javascript and HTML): when I move the cursor in the left panel, the right panel is expanding the AST to show and focus on the corresponding elements. Without that, it's almost impossible to use the tool.

How to reproduce

  • https://ast-explorer.dev/
  • select Rust and syn
  • move the cursor or select any part of the sample code
    => no focus on the right panel (either with tree or JSON representation)

Reproduction

100 %

System Info

Website version at https://ast-explorer.dev/ with AST Explorer version 0.27.1
Brave v1.77.95 or Firefox 137.0
(Windows 10 x64 22H2)

Used Package Manager

n/a

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0