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.

"Reformat code" action doesn't work

See original GitHub issue

Hotkey nor dialog isn’t doing anything, not even showing “no lines changed” popup like for example in TypeScript. In Code -> Haskell both items are grayed out. I saw in a status bar the plugin was installing ormolu. I don’t see any errors in Messages tab nor anything at bottom right (siren icon with crashes).

Test code:

data    A =            A Int

test    []    =     []   
test   x            =   [head    x]

Tried reformat action, same action with selection, and reformat file dialog. All of those did nothing.

In plugin settings I left the defaults, so “Build tools using system GHC*” checked and “Use custom Haskell tools” unchecked. From those options I get the impression it should be working without me installing and setting up anything manually.

Plugin version: 1.0.0-beta66 IntelliJ IDEA 2019.3.4 (Ultimate Edition) Linux (Manjaro stable, updated today)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Apr 3, 2020

Or maybe change default settings to not have it enabled?

Yes, I should consider that because people don’t read the README 😄

You can still use Stylish-Haskell but it’s mapped to the default way of reformatting.

1reaction
rikvdkleijcommented, Mar 31, 2020

Yes, I also see nothing relevant in the log.

Isn’t it possible to enable more verbose logging from the plugin?

Yes, will do that in next version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reformat code | IntelliJ IDEA Documentation - JetBrains
Either open your file in the editor and press Ctrl+Alt+Shift+L or in the Project tool window, right-click the file and select Reformat Code....
Read more >
IntelliJ IDEA code reformat not working - Stack Overflow
editorconfig file. This generally has just a few key settings, including indent_size=4. I was experimenting with Google's checkstyle xml ...
Read more >
Format on Save (prettier) stopped working with latest update
For python, we use black formatter and now that's not working because I have selected prettier as the default formatter.
Read more >
Feature Request: An action to reformat the code - LeetCode
you can go to settings use vim mode and enter command gg = G. This works for C++. Hope same goes with java...
Read more >
Editing Python in Visual Studio Code
Custom arguments for the formatter are incorrect. Check that the appropriate python.formatting.<formatter>Path setting does not contain arguments, and that ...
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