question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No longer formatting files

See original GitHub issue

In Rubocop 0.87.0 the behaviour of autocorrect (-a) was changed (https://github.com/rubocop-hq/rubocop/issues/8156).

I assume this extension is using -a since it has stopped formatting my .rb files with the frozen_string_literal comment.

To get the same formatting behaviour as before the flag needs to now be -A (more info).

I assume this issue is the same as https://github.com/misogi/vscode-ruby-rubocop/issues/120, https://github.com/misogi/vscode-ruby-rubocop/issues/121.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
bobmaertencommented, Sep 21, 2020

I have the same problem. Extension reports an error during autocorrection, but I found no log to trace back and debug.

Capture d’écran 2020-09-21 à 16 41 40
2reactions
giuliano108commented, Oct 3, 2020

Annoyingly RuboCop 0.86 suffers from https://github.com/rubocop-hq/rubocop/issues/8713 :

An error occurred while Layout/LineLength cop was inspecting ...
can't modify frozen Array
Read more comments on GitHub >

github_iconTop Results From Across the Web

Word document formatting is not retained ... - Microsoft Support
Word document formatting is not retained when document is inserted as a file - Microsoft Support.
Read more >
Format on Save (prettier) stopped working with latest update
My biggest problem is after setting a defaultFormatter, anything not formatted with Prettier (Go, Terraform, etc) throws "prettier can't format ...
Read more >
Visual Studio formatting no longer honors indent_size for ...
After upgrading to latest 16.3.2 I'm unable to change default indent size for .js javascript files using .editorconfig file. I could swear it...
Read more >
Prettier not formatting LESS files - visual studio code
I suddenly have a problem where prettier can't format .less files. I get this error message Extension 'Prettier - Code formatter' is ...
Read more >
Code formatting | CLion Documentation - JetBrains
You can reformat a part of code, the whole file, group of files, ... Switch to the Formatter tab and in the Do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found