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

internal: Show more project building errors to the user #11960

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 11, 2022

Should help out with #9720
Fixes #11223

@@ -94,17 +94,17 @@ impl WorkspaceBuildScripts {
by_id.insert(workspace[package].id.clone(), package);
}

let mut callback_err = None;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were never using this "error case" here, but once set we stop working through the build script output, so this might be the cause of #9720 not working for people without any apparent reason?

Comment on lines +122 to +124
// deliberately enable all `error` logs if the user has not set RA_LOG, as there is usually useful
// information in there for debugging
logger::Logger::new(log_file, filter.as_deref().or(Some("error"))).install()?;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any arguments against this? The way this PR is structured now is that we do small error popups for build errors and others that only appear on project load and put the bulkier information into the server logs as most notification UIs (or maybe really only VSCode who knows) don't handle big messages that well.

@bors
Copy link
Contributor

bors commented Apr 13, 2022

☔ The latest upstream changes (presumably #11956) made this pull request unmergeable. Please resolve the merge conflicts.

@Veykril
Copy link
Member Author

Veykril commented Apr 14, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Apr 14, 2022

📌 Commit b23b276 has been approved by Veykril

@bors
Copy link
Contributor

bors commented Apr 14, 2022

⌛ Testing commit b23b276 with merge 13f36e7...

@bors
Copy link
Contributor

bors commented Apr 14, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 13f36e7 to master...

@bors bors merged commit 13f36e7 into rust-lang:master Apr 14, 2022
@Veykril Veykril deleted the config-valid branch April 14, 2022 09:59
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 this pull request may close these issues.

no highliting when cmake compilation fails
2 participants