Skip to content
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

build.gradle editing with auto save on #14

Closed
wujek-srujek opened this issue Jul 3, 2015 · 9 comments
Closed

build.gradle editing with auto save on #14

wujek-srujek opened this issue Jul 3, 2015 · 9 comments
Assignees
Labels

Comments

@wujek-srujek
Copy link

When I edit a build.gradle file while the plugin is turned on, the code is formatted immediately as I type. This make it unusable. For example, I write:
println
and then press space, and the space is immediately removed.

This makes it pretty much impossible to code. As far as I know, this issue exist only on build.gradle files.

I'm using it in IDEA Ultimate 14.1.4.

@dubreuia
Copy link
Owner

dubreuia commented Jul 5, 2015

I'm going to check this out, but as a workaround, add your files to the ignore list:

Go to "File > Settings > Other Settings > Save Actions", then in the file path exclusion section, add a new exclusion for each build.gradle files. The format is described here: https://github.com/dubreuia/intellij-plugin-save-actions#file-path-exclusions

@dubreuia dubreuia added the bug label Jul 5, 2015
@dubreuia dubreuia self-assigned this Jul 5, 2015
@wujek-srujek
Copy link
Author

Thanks for the tip.

@yissachar
Copy link

I can confirm this issue. This was driving me crazy and I was about to turn off Save Actions entirely. Luckily, the file path exclusion workaround fixes it.

@fluidsonic
Copy link

@dubreuia Using Path Exclusions doesn't solve the issue since they don't work at all.

No matter which of the following exclusions I add, I keep getting the popup "Organizing Imports…" after each keystroke:

  • .*/.*\.gradle
  • .*/.*
  • .*

It only goes away when I completely disable Save Actions.

@yissachar
Copy link

This is what I have in my file path exclusions and it works for me:

.*/.*\.gradle
.*\.gradle

I found I needed both in order to properly exclude both at the root level, as well as nested.

@dubreuia
Copy link
Owner

dubreuia commented Feb 8, 2016

@fluidsonic I added debug information in version 0.5 so we can check out why path exclusions do not work

@fluidsonic
Copy link

@dubreuia

Why isn't 0.5 available through the plugin repository?

I installed the 0.5 jar file manually and the settings pane looks quite different now.
And the file path exclusions are finally working :)

Thanks!

@dubreuia
Copy link
Owner

dubreuia commented Feb 9, 2016

@fluidsonic Jetbrains has to validate it. Should be fast, like couple of days.

Happy to hear it works!

@dubreuia
Copy link
Owner

#29 corrected I'm closing this one too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants