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

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

Open
piradata opened this issue Nov 22, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@piradata
Copy link

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 piradata added the bug Something isn't working label Nov 22, 2022
@piradata
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant