Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
marcospb19 opened this issue Feb 20, 2022 · 0 comments · Fixed by #483
Closed

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

marcospb19 opened this issue Feb 20, 2022 · 0 comments · Fixed by #483

Comments

@marcospb19
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant