Skip to content

rspecCommand-setting is not recognized #74

Open
@wuarmin

Description

@wuarmin

Hey 👋

thank you for this great addon. Unfortunately, I can't get it to work yet. I think I set up all correctly, see:

VS code shows the options properly
Image

All Ruby Lsp Features are enabled:

Image

at my settings.json I added following:

  "rubyLsp.addonSettings": {
    "Ruby LSP RSpec": {
      "rspecCommand": "bundle exec rspec",
      "debug": true,
      "useRelativePaths": true
    }
  }

But when I click on Run in terminal, the spec cannot run, because the wrong rspec command is used:

ruby-lsp-test-exec bundle exec ruby -Ispec /home/user/app/spec/slices/documents/interactors/create_document_spec.rb --name "/^Documents::Interactors::CreateDocument#test_\d{4}_should\ fail\$/"
/home/user/app/spec/slices/documents/interactors/create_document_spec.rb:3:in '<main>': uninitialized constant RSpec (NameError)

RSpec.describe Documents::Interactors::CreateDocument, :db, :storage do
^^^^^

Maybe someone can help me. Just for info: I'm developing in a dev-container(docker)

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions