vscode-ruby-test-adapter icon indicating copy to clipboard operation
vscode-ruby-test-adapter copied to clipboard

Can't find project work directory without explicity extension config

Open piradata opened this issue 2 years ago • 1 comments

Your environment

  • vscode-ruby-test-adapter version: 0.9.1
  • Ruby version: 3.1.2
  • VS Code version: 1.73.1
  • Operating System: Windows 11 with WSL on Ubuntu 22.4 using devcontainer on linux alpine
  • RSpec or Minitest version: RSpec 3.12.0

Expected behavior

Plugin should work automatically after innitial setup

Actual behavior

image

The problem is, my working directory is actually one folder above the "normal" project folder

image

So if i run the command there of the extension

image

if fails because Spring was unable to find your config/application.rb file. Your project root was detected at /app, so Spring looked for /app/config/application.rb but it doesn't exist. You can configure the root of your application by setting Spring.application_root in config/spring.rb

Is there any way to change the directory where this command will be run? like another extension config with the workspace directory or something similar?

piradata avatar Nov 22 '22 05:11 piradata

If i open the folder mainapp as workdir

image

it works fine (before it was loading infinitely and giving the error mentioned above of failed to find an RSpec test suite...)

image

so if there was just one config of in which path to run the command or changing the workdir would suffice :)

piradata avatar Nov 22 '22 05:11 piradata