-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add Rust analyzer support #868
Conversation
Considering that there's soon a release, I wonder if we should merge this PR (after a small clean up). Showing syntax errors is already quite useful, and we could look into diagnostics in a follow-up PR. |
Agree - I'll do that and make a follow up for you 😸 |
src/workbench
Outdated
@@ -2,6 +2,7 @@ | |||
|
|||
export WEBKIT_DISABLE_DMABUF_RENDERER=1 | |||
# export G_MESSAGES_DEBUG=@app_id@ | |||
GSK_RENDERER=gl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having issues. It's going to be the default soon anyway
@@ -64,6 +65,7 @@ export function createSessionFromDemo(demo) { | |||
|
|||
const { file, settings } = session; | |||
copyDirectory(demo_dir, file); | |||
copyDirectory(rust_template_dir, file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will copy Rust template files such as Cargo.toml
and workbench.rs
when creating a new session from a demo.
We already do this on compile but if we want diagnostics to work before pressing "Run" we need this here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected 🦀
Great work @sonnyp!
Fixes #520
Only supports syntax diagnostics for now. I made a follow up for types #881
How to test
Diagnostics will appear for syntax errors.