You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
I'm trying to import Tock OS into eclipse, and I keep getting an error when I open a rust file.
LSP (org.eclipse.corrosion.RLS)
Error reading manifest path: Error message { msg: "could not find Cargo.toml in or any parent directory"}
TockOS is an embedded operative system written in Rust. The project organization is a little odd: it is written with a Makefile at the top of the project. This Makefile actually handles calling cargo in the different parts of the operative system. Each chip or board has his own cargo project, and every time I try to open a rust file, I get the message listed above, because the Cargo.toml file is not present at the root of the project.
I have to import Tock using "Existing code as a Makefile project", since there isn't any main Cargo.toml file at the root of the project. It's only a Makefile, and the cargo files are inside the different parts of the project. The thing is: the different parts of the project do NOT compile independently unless you set some variables that are generated inside the Makefile, so you can't import them as independent project separately.
Is there any way to workaround this? Right now I don't have any choice, so I had to completely disable RLS. Thank you
The text was updated successfully, but these errors were encountered:
At the moment RLS only works with and expects a Cargo project (which means it has to have a Cargo.toml and whatnot).
As of now, the RLS needs to consume "save-analysis" files (generated by rustc ... -Zunstable-options -Zsave-analysis for each rustc call) in order to work. As a quick workaround, you can use the external build plan (#988) option. It's not ideal (e.g. doesn't support diagnostics) but if you could execute the build you're interested in yourself, generate the appropriate save-analysis files (needs nightly) and point the RLS to them (more info at #988) you would still get go to definition, find references and all the IDE features.
Other than that it's not possible; however I'm currently working on integration with more build systems so hopefully this can extend to supporting Tock OS as well.
I'm trying to import Tock OS into eclipse, and I keep getting an error when I open a rust file.
TockOS is an embedded operative system written in Rust. The project organization is a little odd: it is written with a Makefile at the top of the project. This Makefile actually handles calling cargo in the different parts of the operative system. Each chip or board has his own cargo project, and every time I try to open a rust file, I get the message listed above, because the Cargo.toml file is not present at the root of the project.
I have to import Tock using "Existing code as a Makefile project", since there isn't any main Cargo.toml file at the root of the project. It's only a Makefile, and the cargo files are inside the different parts of the project. The thing is: the different parts of the project do NOT compile independently unless you set some variables that are generated inside the Makefile, so you can't import them as independent project separately.
Is there any way to workaround this? Right now I don't have any choice, so I had to completely disable RLS. Thank you
The text was updated successfully, but these errors were encountered: