Coder Social home page Coder Social logo

Comments (24)

dubreuia avatar dubreuia commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

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.

yrn1 avatar yrn1 commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

CTRL-ALT-L ? What OS are you using ?

from intellij-plugin-save-actions.

yrn1 avatar yrn1 commented on June 5, 2024

Windows 7

from intellij-plugin-save-actions.

dubreuia avatar dubreuia commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

Confirmed today on a coworker's windows machine

from intellij-plugin-save-actions.

dubreuia avatar dubreuia commented on June 5, 2024

It seems it is corrected by #7

from intellij-plugin-save-actions.

yrn1 avatar yrn1 commented on June 5, 2024

Still does nothing on my IntelliJ Ultimate 14.1.2, on Windows 7, even with the hints from #7

from intellij-plugin-save-actions.

dubreuia avatar dubreuia commented on June 5, 2024

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.

scheglov avatar scheglov commented on June 5, 2024

Does not work for me on Mac
image with Java
image

from intellij-plugin-save-actions.

dubreuia avatar dubreuia commented on June 5, 2024

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.

crisfl avatar crisfl commented on June 5, 2024

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.

LeonidVlad avatar LeonidVlad commented on June 5, 2024

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.

mstefancic avatar mstefancic commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

I'm going to add the logs asap, it's almost done. I'll keep you posted.

from intellij-plugin-save-actions.

pcalouche avatar pcalouche commented on June 5, 2024

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.

pcalouche avatar pcalouche commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

Corrected in 0.5

from intellij-plugin-save-actions.

pcalouche avatar pcalouche commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

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.

pcalouche avatar pcalouche commented on June 5, 2024

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.

dubreuia avatar dubreuia commented on June 5, 2024

The plugin is out. Thanks for the heads up about the typo.

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.