-
Hi I am trying to use the slint-lsp format command on MacOS. All the lsp features except for the format is working. #[derive(Clone, clap::Parser)]
#[command(author, version, about, long_about = None)]
pub struct Cli {
#[arg(
short = 'I',
name = "Add include paths for the import statements",
number_of_values = 1,
action
)]
include_paths: Vec<std::path::PathBuf>,
/// The style name for the preview ('native' or 'fluent')
#[arg(long, name = "style name", default_value_t, action)]
style: String,
/// The backend or renderer used for the preview ('qt', 'femtovg', 'skia' or 'software')
#[arg(long, name = "backend", default_value_t, action)]
backend: String,
/// Start the preview in full screen mode
#[arg(long, action)]
fullscreen: bool,
/// Hide the preview toolbar
#[arg(long, action)]
no_toolbar: bool,
#[command(subcommand)]
command: Option<Commands>,
}
#[derive(Subcommand, Clone)]
enum Commands {
/// Format slint files
Format(Format),
}
#[derive(Args, Clone)]
struct Format {
#[arg(name = "path to .slint file(s)", action)]
paths: Vec<std::path::PathBuf>,
/// modify the file inline instead of printing to stdout
#[arg(short, long, action)]
inline: bool,
} Below a screenshot from the output of trying to use the slint-lsp Any idea what I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You're not doing anything wrong per-se, it's just that the changes that merged this into the If you wanted, you could run |
Beta Was this translation helpful? Give feedback.
You're not doing anything wrong per-se, it's just that the changes that merged this into the
slint-lsp
command are not in a release yet. Socargo install slint-lsp
won't show it.If you wanted, you could run
cargo install --git https://github.com/slint-ui/slint slint-lsp
- I think that should work.