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

Paths concatenated multiple times #280

Open
dp-anto opened this issue Feb 6, 2025 · 3 comments
Open

Paths concatenated multiple times #280

dp-anto opened this issue Feb 6, 2025 · 3 comments

Comments

@dp-anto
Copy link

dp-anto commented Feb 6, 2025

These are my configurations:

"phpunit.paths": {
      "${workspaceFolder}": "/var/www/app/"
  },
  "phpunit.command": "ssh -i ~/.ssh/id_rsa -p 22022 root@localhost",
  "phpunit.phpunit": "/var/www/app/vendor/bin/phpunit",
  "phpunit.args": [     
      "--configuration",
      "/var/www/app/test_unit/phpunit.xml",
      "--stderr"
  ],

And this is what I get when I try to execute a test:

ssh -i ~/.ssh/id_rsa -p 22022 root@localhost php /var/www/app/var/var/www/app/www/var/www/app/app/var/www/app/vendor/var/www/app/bin/var/www/app/phpunit '--stderr' '--configuration=/var/www/app/var/var/www/app/www/var/www/app/app/var/www/app/test_unit/var/www/app/phpunit.xml' '--filter=^.*::(testLogin)( with (data set )?.*)?$' /var/www/app/home/var/www/app/joe/var/www/app/projects/var/www/app/todo/var/www/app/app/var/www/app/test_unit/var/www/app/tests/var/www/app/json/var/www/app/Tests.php '--colors=never' '--teamcity'

❌ Could not open input file: /var/www/appvar/var/www/appwww/var/www/appapp/var/www/appvendor/var/www/appbin/var/www/appphpunit

Similar thing happens if I try to remove the trailing slash /var/www/app/ to /var/www/app

@dp-anto
Copy link
Author

dp-anto commented Feb 12, 2025

@recca0120 any help?

@recca0120
Copy link
Owner

replace ${workspaceFolder} to realpath

@dp-anto
Copy link
Author

dp-anto commented Feb 12, 2025

/var/www/app/ that's the real path. I've always had such configurations, but with the lastest updates they don't work anymore

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

2 participants