Skip to content

-s/--stdin requires exactly one path, relative to the root of the project. #149

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

Open
ssoulless opened this issue Apr 27, 2021 · 4 comments

Comments

@ssoulless
Copy link

Im using VScode with Rubocop version 1.13

for some reason I started to get this warning:
-s/--stdin requires exactly one path, relative to the root of the project. RuboCop will use this path to determine which cops are enabled (via eg. Include/Exclude), and so that certain cops like Naming/FileName can be checked.

along with this one:
command bundle exec rubocop returns empty output! please check configuration.

This is happening only on a specific project Im working. I tried to remove the contents of .rubocop.yml file from the project but still get the warnings. Any idea?

@karansapolia
Copy link

I am getting a similar error whenever I'm trying to format Rails files on save. Rubocop version: 1.18.4, Rubocop rails version: 2.11.3
Screen Shot 2021-08-31 at 17 30 08

@quaos
Copy link

quaos commented Mar 22, 2022

I am getting a similar error whenever I'm trying to format Rails files on save. Rubocop version: 1.18.4, Rubocop rails version: 2.11.3 Screen Shot 2021-08-31 at 17 30 08

I also get these errors!

(bundled) rubocop v1.16.1
(bundled) rubocop-rails v2.9.1

@danielgomezrico
Copy link

Me too:

  • rubocop gem: 1.13.0
  • ruby-rubocop vs extension: 0.8.6

@chuttam
Copy link

chuttam commented Feb 12, 2025

If the workspace file path contains spaces in it, the trouble may be related to #78 (specific comment)

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

5 participants