Skip to content

Can't Type After Clicking Rust Check Compiler Error Bookmark #465

Open
@turchiad

Description

@turchiad

Description

Using packages Rust Enhanced, RustFmt and LSP with rust-analyzer, when compiling using Cntrl+S, errors may sometimes provide clickable links to the source of the error (e.g. See Primary: ↓: 99). After clicking on the link, typing is disabled until the file is closed out and reopened. Reopening Sublime does not solve this. Note: this is not an issue with Vintage being ignored or not.

Steps to reproduce

  1. Start Sublime Text (Build 4107) with Rust Enhanced, Rustfmt, and LSP with rust-analyzer
  2. Produce an error that makes the compiler provide a clickable link (such as the code below)
enum Test {
    TestOne,
    TestTwo,
}

fn main() {
    match TestOne {
        TestOne => println!("Test"),
    }
}
  1. Save, letting Rust check run.
  2. Click "See Primary: ↓: 7"
  3. Attempt to type.

Expected behavior

It's expected to reposition the cursor near the error.

Actual behavior

The cursor is repositioned near the error, but typing is disabled until the file is closed and reopened. view.is_read_only() returns True

Environment

  • Build: 4107
  • Operating system and version: Fedora 34
  • Desktop Environment and/or Window Manager: Gnome

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-messagesArea: Build messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions