Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

TockOS subproject errors #1057

Open
Open
@dc740

Description

@dc740

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions