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

fix: use new workspace reload command #36

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

eero-lehtinen
Copy link
Contributor

Description of changes

There is an error when saving Cargo.toml. The plugin tries to call a non-existent command.

"Cargo.toml" 19L, 599B written
Error detected while processing BufWritePost Autocommands for "*/Cargo.toml":
Error executing lua callback: /home/eero/repos/rustaceanvim/lua/rustaceanvim/lsp.lua:184: Command not found: RustReloadWorkspace
stack traceback:
        [C]: in function 'RustReloadWorkspace'
        /home/eero/repos/rustaceanvim/lua/rustaceanvim/lsp.lua:184: in function </home/eero/repos/rustaceanvim/lua/rustaceanvim/lsp.lua:183> 

I changed the command to the current one. I first tried to call the lua function directly, but it prompted to press enter, so I opted for calling it with a vim command and silent!. Maybe you have a better way of achieving this, but this works.

Things done

@mrcjkb
Copy link
Owner

mrcjkb commented Oct 31, 2023

Thanks 😃

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

Successfully merging this pull request may close these issues.

2 participants