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

IDE Support for Rust #685

Open
3 tasks
dcvz opened this issue Aug 10, 2023 · 1 comment
Open
3 tasks

IDE Support for Rust #685

dcvz opened this issue Aug 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@dcvz
Copy link

dcvz commented Aug 10, 2023

This is a "megaticket" of sorts for Rust support in IDE's. The issues encountered so far are:

@dcvz
Copy link
Author

dcvz commented Aug 10, 2023

Investigation Details

STD Definitions in IDEs

std type referencing in IDE's happens by them referencing Rust's standard library definitions. In my research it seems that this can be defined by RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"

This std definitions are separately installed via rustup using rustup component add rust-src but this is something that tea's Rust is currently not providing. Some IDE's automatically will leverage rustup to find / install these.

Problem is if you use rustup, you first have to install a toolchain and these will be installed to .rustup/toolchains/XXX which is in conflict with tea trying to provide you a rust toolchain that lives in .tea/rust-lang.org

proc macros can't be expanded

The error on VSCode is: cannot find proc-macro server in sysroot. An issue filed seems to ask that the user checks the contents of their $(rustc --print sysroot)/libexec folder. This does not exist in the installation that .tea provides.

However installations done with rustup do include this folder, so pkgxdev/pantry#2796 should fix this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants