-
Notifications
You must be signed in to change notification settings - Fork 102
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
Add support to all intellij products #18
Comments
Thanks, I'll add that, but I'll need to test it in all intellij products. |
From twitter: "Hi there, I just installed Save Actions on phpstorm 9.0.2 but cannot find the settings as described in the documentation." |
Lots of demand for this:
|
Guess the php webstorm support never made it in? Was really excited when I found this plugin and it installed fine, just cannot find the settings anywhere. |
Hey @XXChester I'm working on bringing the plugin to all products right now, PhpStorm will soon be supported. I closed specific issues because they are duplicate with this one (I'll release it for all products at the same time). |
👍 Awesome. I thought it was abandoned date, glad to hear it is not. |
Glad to hear you are working on making it work on a variety of platforms. Is it possible to release a port as soon as its finished instead of waiting for release until all other platforms are done? This would help so much. I personally feel that my quality of codes degrades without SaveActions. I really want this on Android Studio. |
Is Android Studio a JetBrains product? I'm testing for:
|
The branch all-products works, I just haven't properly tested it yet |
Dubreuia, Android Studio is based on Intellij IDEA. So practically the IDEA extension/plugins should work but it doesn't - in fact, and this is where the troubles com in, it cant even be downloaded as a plugin from the Plugin repository browser inside Android Studio. Its just not listed. I just verified this. Appears in Idea (version 15) but doesnt in Android Studio (lastest) 2.1.1. As its entirely based on Idea I would assume its not too much effort to enable it for Android Studio. Anyway I keep waiting :) Keep up the good work! |
You need to put |
@krasa Thanks already done! The problem is that I have Java specific elements, so I need to split the plugin in two parts so it doesn't crash on startup with PyCharm, etc. @sgeier OK it is not a JetBrains product but it should work too, note to self : https://developer.android.com/studio/index.html I should release the all-product version this weekend if all goes well |
@dubreuia Any update on the release of the all-product branch? We'd like to start using it across the dev team here as soon as it's ready I'm happy to support in any testing as well, let me know. 👍 |
Actually it's already ready, but I don't have time to test it so I didn't release it. I'll send you the jar so you can test if you want. |
Unzip, inside you have a .jar that you can import by hand in Intellij (Settings > Plugins > Import from jar). It is version 0.12-RC, it is based on 0.10 (not the latest available, you have probably on 0.11 right now). |
@dubreuia I can confirm that zipped version works on WebStorm 2016.2.3. |
The zip file works fine in WebStorm 2016.2.4. Thanks for this awesome plugin. |
Thanks for your feedback, I'll make that available on the Jetbrains plugin repository. |
Ok with PHPStorm! |
Doesn't work with Gogland 1.0 EAP (163.10615.6) for golang using 0.12. Would be awesome if it could be supported 😄 |
Any way we could get this added to the Jetbrains' plugin repository for PhpStorm? |
Hey @spencero91, try the save-actions zip I uploaded in this issue, you can import it directly in PhpStorm. I don't want to upload it to the plugin repository just now, I haven't tested it in all products, and I don't have time to correct all the issues that are opened only for intellij... The code is on branch master-all-product. Keep me posted if that works for you |
It seems that the plugin is doing it's job in Rider as you should expect, as it calls the |
@bobvandevijver Thank you for the debug. I'm pretty sure the reformat in Rider and PyCharm (maybe others) is not done by |
I tried some more with the plugin, and it seems that the whole I can trigger the reformat with the following, ugly hack: ActionManager.getInstance().getAction("ReformatCode")
.actionPerformed(new AnActionEvent(null, DataManager.getInstance().getDataContext(),
ActionPlaces.UNKNOWN, new Presentation(), ActionManager.getInstance(), 0)); This triggers the following logging in the frontend, which is the same when triggered from the menu/shortcut:
It does not play nice with any other action being executed simultaneously (such as "OptimizeImports"), so it is in no way an suitable solution. So, it looks like the ReSharper action is simply not triggered/created when the There are also some other issues when compiling the plugin with the Rider SDK, mostly missing classes, so I'm not sure if it's even possible to compile the current plugin for Rider. See bobvandevijver@0a1d0af for the classes I needed to remove in order to being able to build for Rider. Edit: I also created a ticket at JetBrains: https://youtrack.jetbrains.com/issue/RIDER-20225 (btw, if you want to open an another issue for this discussion just let me know) |
@bobvandevijver
I will ask colleagues about calling reformat and OptimizeImports simultaneously. |
Yes, I used the same structure for "OptimizeImports". I just used your examples (needed to retrieve the editor component with Another thing noteworthy is the fact that your example triggers the save action handlers twice, while the version I posted earlier didn't... not sure what causes that though. Another question I have with this solution: it probably doesn't support VCS changed code either... I really hope that JetBrains will just implement the |
@bobvandevijver I have asked about multiple commands but no workaround for now.
|
@van800 To reformat only changed lines according to your VCS (eg. git) (which is one of the options of the |
@van800 @bobvandevijver If you have an almost-working solution (or various possible solutions), could you post a PR with "WIP" prefix so we keep that code somewhere. Also I'm creating an issue for Rider (see #198) |
Any plan to support GoLand IDE? It would be awesome to support GoLand IDE. |
Hey @hwangjr, would you mind downloading the latest jar in the release section (https://github.com/dubreuia/intellij-plugin-save-actions/releases/tag/v1.2.0) and test it in GoLang IDE. It might actually work. Can you report back on that? Thanks.
|
@dubreuia yes, it works. Can you add to jetbrains plugin center? we can download from repositories directly. |
Ok @hwangjr I've added GoLand IDE to the list of compatible IDEs. You should uninstall the local plugin and reinstall it from the plugin repository so you get updates. Thanks!
|
OK, Thanks. |
is it possible to vote for AppCode? 😄 I would be also happy to test it |
you can test it then tell @dubreuia the test result. |
@bbakermmc I've created a plugin which "works" (is sometimes errors, only has the basic capabilities), which you can find here: https://github.com/dubreuia/intellij-plugin-save-actions/files/2449110/Save.Actions-0.0.1.zip. See #198 for more information. |
@ned1988 Thanks for testing. The option "No action if compile errors" requires a compiler, and since it is platform specific (java, python, etc.) I haven't coded this already outside the Java ecosystem. There's a "core" plugin, used everywhere, and a "java" plugin, used for java products. We'll need "language" plugin for each product we want to fully support, Rider included. If it woks fine I'll mark it as supported then. |
I'm thinking of splitting this issue for each products, this issue is 4 years old... |
Any update? |
Hello @keyvchan ! I don't have time to work on this, but PRs are welcomed. Which product do you use? |
I've created 3 issues for each of Rider, AppCode and CLion. Can you guys go vote and post in the issues to see which is needed?
I'm closing this issue. Thanks |
If you add
com.intellij.modules.lang
to the plugin.xml it will on all intellij products like webstorm.
Great plugin btw.
The text was updated successfully, but these errors were encountered: