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

"Run Test" code lens issues bare "cargo run" #69

Open
FallenWarrior2k opened this issue Sep 13, 2020 · 0 comments
Open

"Run Test" code lens issues bare "cargo run" #69

FallenWarrior2k opened this issue Sep 13, 2020 · 0 comments

Comments

@FallenWarrior2k
Copy link

As the title says, triggering a "Run Test" CodeLens action issues a bare cargo run in a new terminal window instead of executing the specified test.

This can be reproduced as follows:

  1. Create a minimal vimrc (e.g. mini.vim) with the following contents (inspired by coc.nvim issue template):
set nocompatible
set runtimepath^=/path/to/coc.nvim
filetype plugin indent on
syntax on
set hidden
nmap <F2> <Plug>(coc-codelens-action)
  1. Create a minimal project with cargo new --lib asdf.
  2. Open the source file with nvim -u mini.vim asdf/src/lib.rs.
  3. Trigger the "Run Test" CodeLens once it shows up.

As I wasn't able to find anything pertaining to CodeLens in this repo, I'm guessing this is an issue somewhere deeper down, but I am not familiar enough with the coc.nvim ecosystems to make an educated guess as to where that might be.
To make sure this wasn't an issue with the RLS itself, I also installed the RLS extension for VSCode, which correctly executed just that one test.

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

No branches or pull requests

1 participant