vscode-ruby-rubocop: Error on parsing output (It might non-JSON output) : ""

After the latest update I get this error every time rubocop is run.

Warn: Error on parsing output (It might non-JSON output) : ""

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Reactions: 4
  • Comments: 24 (3 by maintainers)

Commits related to this issue

Most upvoted comments

@tophattom I’m curious what configuration setting did you have to fix to get this to go away?

I got rid of this error as soon as I specified a rubocop config file in the extension settings ("ruby.rubocop.configFilePath": "<something>") and ensured that that file actually existed (an empty file is fine).

I had this error with some code I inherited. It seems that there were just flat out too many “violations”. Once I did autocorrect, everything seems to work as expected with no JSON error. Only problem is that autocorrect seems to autosave as well (i.e. it overwrote my pre-autocorrect version).

Maybe the JSON has a limit?

Yeah, this is happening to me too, already specified a config file

Not working for me, tried all the above solutions, installed it on every RVM Ruby, installed on system Ruby… it worked fine up until a week or two ago (don’t recall what changed, unfortunately). How can I debug the command being run and the output to ensure it is doing the right thing?