Comments (24)
Make sure you have activated at least one action (for example the "organize imports" action) in "File > Settings > Other Settings > Save actions". Make sure those are checked:
- "Activate save actions"
- "Organize imports"
Then go in a file (Java ?) and type an unused import "import java.util.Map. Then either (I) change window OR (II) save-all with CTRL-S. You should instantly see the import go away.
If that doesn't work, send me your exact Intellij and plugin version.
from intellij-plugin-save-actions.
Oh and the plugin is dependent on your "organize import" and "reformat code" configuration, which are visible from "File > Settings > Editor > General > Formatting". Tick the boxes, then organize imports or reformat code which will show the dialog boxes, and check your config.
from intellij-plugin-save-actions.
Did exactly that, but it still does nothing. These are my versions:
- IntelliJ Ultimate 14.0.2 build #IU-139.659
- JRE 1.7.0_71-b14
- Save Actions Version 0.2
And btw code formatting/optimize imports works with the ctrl-alt-l and ctrl-alt-o shortcuts, so nothing wrong in that area...
from intellij-plugin-save-actions.
CTRL-ALT-L ? What OS are you using ?
from intellij-plugin-save-actions.
Windows 7
from intellij-plugin-save-actions.
I have an idea I check it out and keep you posted.
EDIT: I checked in a Windows 8 box (I'm on Linux) and it works. I'll try to reproduce with your exact same env, but for now I cannot reproduce.
from intellij-plugin-save-actions.
Confirmed today on a coworker's windows machine
from intellij-plugin-save-actions.
It seems it is corrected by #7
from intellij-plugin-save-actions.
Still does nothing on my IntelliJ Ultimate 14.1.2, on Windows 7, even with the hints from #7
from intellij-plugin-save-actions.
Confirmed working on all machines at work (Windows / Unix / Mac) and many versions.
I'll do something: I'll add some logging in the next plugin version (0.5), and you'll send me the log file so I can debug more easily.
EDIT: see #11
from intellij-plugin-save-actions.
Does not work for me on Mac
with Java
from intellij-plugin-save-actions.
I cannot reproduce @scheglov, but I'll add log info for cases like yours. Make sure you have installed the plugin through Intellij's plugin management, and that it is activated in the settings.
from intellij-plugin-save-actions.
Same problem as @scheglov, doesn't work on Mac.
I have the same exact version.
I did install the plugin through IntelliJ's plugin management and it is activated.
from intellij-plugin-save-actions.
Does not work for me on Windows 7. I tried with AndroidStudio 1.3.2 and IntelliJ 14.1.4.
Just does nothing.
If you added the logs, where can we look at them?
from intellij-plugin-save-actions.
Not working for me on Mac either. Jus happens nothing. Same version as @scheglov, but version before didn't work too.
from intellij-plugin-save-actions.
I'm going to add the logs asap, it's almost done. I'll keep you posted.
from intellij-plugin-save-actions.
Any updates on this? I'm seeing similar behavior. I'm using Windows 7, IntelliJ 15.03, Build #IU-143.1821. I have a Windows 10 machine with the same setup, and it works. Maybe a clue?
from intellij-plugin-save-actions.
I compiled your 0.5 plugin that had the logging, and I think I have an idea of what may be going on.
If the project is configured to so that project files are kept in a separate folder than the source files I see something like this:
2016-01-29 09:01:14,526 [ 386532] DEBUG - com.dubreuia.SaveActionManager - File C:/Users/pcalouch/Repos/spat/src/main/java/com/calouche/spat/controller/HomeController.java not in project Project 'C:\Users\pcalouch\Projects\spat' spat
If the project files are not separate then it works:
2016-01-29 09:11:43,706 [1015712] DEBUG - com.dubreuia.SaveActionManager - Running processors [optimize imports processor, null, reformat code processor - all text], file PsiJavaFile:HomeController.java, project Project 'C:\Users\pcalouch\Repos\spat' spat
This would explain why it worked for me on the Windows 10 machine too. I'm not keeping the project files in a separate folder in that setup.
I hope this information is helpful.
from intellij-plugin-save-actions.
Thanks a lot @pcalouche for the debug. I thought it was the problem but couldn't confirm it. I'll correct the problem, it's a side effect of the correction for bug #1.
from intellij-plugin-save-actions.
Corrected in 0.5
from intellij-plugin-save-actions.
Glad I could help @dubreuia and glad it is closed. How long does it take the IntelliJ Plugin Repository to update to the newest version?
from intellij-plugin-save-actions.
Jetbrains validates them pretty fast, normally 1 business day.
I did a release too and attached the binary if you want to try it before: https://github.com/dubreuia/intellij-plugin-save-actions/releases/tag/v0.5
from intellij-plugin-save-actions.
Changes look good @dubreuia . Thanks for the update. I think I noticed a typo in the options screen after the change. I think Organize organize used to be Organize imports.
from intellij-plugin-save-actions.
The plugin is out. Thanks for the heads up about the typo.
from intellij-plugin-save-actions.
Related Issues (20)
- StackOverlfow.
- CustomUnqualifiedStaticUsageInspection: display name should be overridden or configured via XML [Plugin: com.dubreuia] HOT 5
- bulk save action performance
- The specified parameters not match any of the following constructors: public com.dubreuia.model.Storage() HOT 1
- Exception in Save Actions 2.3.0 HOT 1
- Save Actions not working in WebStorm EAP version HOT 4
- Removal of required suppress warning annotation HOT 1
- Looking for gradle tasks integration option in save action plugin HOT 1
- Exception in IntelliJ 2023.1 HOT 1
- RuntimeException in IntelliJ 2023.1 HOT 21
- Cannot create configurable error on fresh plugin install HOT 7
- Cannot create configurable HOT 3
- Request: for "Reformat file" on save, please prevent it in case it changes logic or when the code has errors HOT 10
- Cannot save, launch, or commit changes, due to RuntimeException: Cannot invoke (class=SaveActionManager, method=beforeAllDocumentsSaving, topic=FileDocumentManagerListener) HOT 4
- Exception: Cannot create configurable HOT 2
- Can not commit git By idea2023.1 HOT 2
- Unexception: Save Actions occurs errors when starting tomcat server HOT 2
- com.intellij.diagnostic.PluginException: No display name is specified for configurable com.dubreuia.ui.Configuration in xml file HOT 2
- com.intellij.diagnostic.PluginException: No display name specified in plugin descriptor XML file for configurable com.dubreuia.ui.Configuration; specify it using 'displayName' or 'key' attribute to avoid necessity to load the configurable class when Settings dialog is opened [Plugin: com.dubreuia] HOT 3
- java.lang.RuntimeException: Cannot invoke (class=SaveActionManager, method=beforeAllDocumentsSaving, topic=FileDocumentManagerListener) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-plugin-save-actions.