Coder Social home page Coder Social logo

Request: for "Reformat file" on save, please prevent it in case it changes logic or when the code has errors about intellij-plugin-save-actions HOT 10 OPEN

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 20, 2024
Request: for "Reformat file" on save, please prevent it in case it changes logic or when the code has errors

from intellij-plugin-save-actions.

Comments (10)

fishermans avatar fishermans commented on June 20, 2024

Turn off auto save in your IDE to prevent reformatting. This plugin is triggered on "save" if the first option is enabled. "Save" means "save" (also auto save).

from intellij-plugin-save-actions.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 20, 2024

But I want it to auto-save.

from intellij-plugin-save-actions.

fishermans avatar fishermans commented on June 20, 2024

Disable first option and use short cuts (second option). That's how it works.

from intellij-plugin-save-actions.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 20, 2024

But I want this turned on too. That's one of the reasons I use this plugin...

from intellij-plugin-save-actions.

fishermans avatar fishermans commented on June 20, 2024

See my first answer. If save is triggered, this plugin is doing its job. Feel free to fork it and try to modify it.
I am using the short cut option for many years without any issues.

from intellij-plugin-save-actions.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 20, 2024

I know it's doing its job. It does it well, but when I leave the IDE, I don't want it to do anything, because I'm not ready yet for formatting in case the code gets this way.
Sometimes I write something, and go to another window to check what I should write next, and then this happens.

So, my request is to prevent it from happening in such cases.

from intellij-plugin-save-actions.

fishermans avatar fishermans commented on June 20, 2024

I know what you mean but it is triggered by save even if save is triggered in background every 15 sec..
The author of this plugin won't do anything anymore.

There were problems in the past when the plugin was run only in the active window, especially since files can be open in multiple windows at the same time.

Therefore only remains:

  • Choose other settings and press three buttons if needed (that's how I do it).
  • Modify the plugin according to your needs
  • Live with the Auto Save formatting

from intellij-plugin-save-actions.

markiewb avatar markiewb commented on June 20, 2024

from intellij-plugin-save-actions.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 20, 2024

@fishermans Are you saying this plugin won't get updated anymore?
:(

@markiewb Sadly this setting ("No action if compile errors...") doesn't work for the case I've shown:

    notificationManager.
    notificationManager.notify(123, notification)

Perhaps it's related to the fact that it's Kotlin?

from intellij-plugin-save-actions.

KnoxasKing avatar KnoxasKing commented on June 20, 2024

As @fishermans said, unfortunately this plugin has been abandoned and therefore is incompatible with new versions of the Jetbrains IDEs.

In alternative you can use this fork:

https://plugins.jetbrains.com/plugin/21538-save-actions-tool
https://github.com/wanghuan9/intellij-plugin-save-action-tool
But for more information check the thread: #427

from intellij-plugin-save-actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.