Skip to content

Cargo check not allowing all features #16

@Seven0492

Description

@Seven0492

Lapce Version

0.2.4

System information

Arch Linux kernel version: 5.15.81-1-lts

Describe the problem

I was working on a Rust project, I had changed it to a library model for ease of organization.

But then I made the GUI a feature which is not compiled by default.

And then the only thing showing up now were syntax highlighting, the only exception was compile-time errors, warnings were ignored.

I have to add the GUI feature to the default temporarily so everything works has expected each time I want to work on it.
(And I have to remember to remove it from the default in the next git push)

Describe the bug

Adding the cargo check flag --all-features or --features '*' show me an error on restart and ask me to check the server logs...

But the thing is, the server logs of what? How am I supposed to magically just 'know' where that log file is?

And the features flag should have worked, this is clearly a bug/error in the Rust plugin.

Problem resumed

Cargo check gives an error when passing the --all-features flag in the Rust plugin configuration.

Lack of information of what server (Probably rust-analyzer or cargo) is the logs from and where the logs even are.

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