connorshea / vscode-ruby-test-adapter

A Ruby test adapter extension for the VS Code Test Explorer
https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter
MIT License
85 stars 52 forks source link

Can't find project work directory without explicity extension config #109

Open piradata opened 1 year ago

piradata commented 1 year ago

Your environment

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 commented 1 year ago

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 :)