Skip to content

Running check on build.rs outputs failure message. #481

Closed
@marcospb19

Description

@marcospb19

Sublime Text Version

E.g Sublime Text 4 (Build 4126)

Rust Enhanced Version

2.24.0

Operating system

Fedora (probably unrelated)

Actual behavior

When saving file in a build.rs file, rust-enhanced writes to the status bar:

Rust check failed, see console or debug log.

The debug log:

+0.000 Running: cargo metadata --no-deps
+0.092 Rust Enhanced: Failed to find target for '/home/joao/ouch/build.rs'

Expected behavior

rust-enhanced should be able to check the build.rs file at the root of the project, or, if it's not possible, give a better description of what happened.

The debug log left me debugging for several minutes what could be the error reason.

Steps to reproduce

  1. cargo new foo
  2. subl foo/build.rs
  3. Add the contents fn main() {}.
  4. Press Ctrl + S to save
  5. See status bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions