anton-rudeshko / CSSReorder

:warning: This plugin is not maintained and may not work in modern IntelliJ IDE's. Reorder CSS properties at your needs. Right now plugin in very early dev stage, be patient and stay tuned for updates.
http://plugins.jetbrains.com/plugin?pr=&pluginId=7164
MIT License
60 stars 4 forks source link

Rearrange @import not working #15

Open mriehema opened 11 years ago

mriehema commented 11 years ago

I'm using version 0.4.

/* YAML Framework CSS file */
@import url(common/yaml.css);
  /* YAML Builder settings */
@import url(quickstart/basemod.css);
  /* import vendor files */
@import url(../vendor/jquery-ui/css/smoothness/jquery-ui-1.10.1.custom.css);
@import url(../vendor/slimbox/css/slimbox2.css);

will be converted to

/* YAML Framework CSS file */
@import url(commolder

s
/*
YAML
Buin/yaml.css
)
;
ettings *

/
@import url(quickstart/basemod.css);
/* import vendor files */
@import url(../vendor/jquery-ui/css/smoothness/jquery-ui-1.10.1.custom.css);
@import url(../vendor/slimbox/css/slimbox2.css);

screenshot_122 screenshot_124 screenshot_125

anton-rudeshko commented 11 years ago

Whoooa, nice one! Thank you, will fix

anton-rudeshko commented 11 years ago

Hmmm, cant reproduce =( What happens if you do only Code → Rearrange?

mriehema commented 11 years ago

Hi, just tested it. a) Code format without rearrange. Everything is fine. b) Use Code → Rearrange screenshot_137

anton-rudeshko commented 11 years ago

Oh... o_O That's really strange. Can you tell me which IDE you're using?

mriehema commented 11 years ago

screenshot_138

anton-rudeshko commented 11 years ago

Thank you. Will try to resolve it somehow, but right now i have no idea how does it happened =(

mriehema commented 11 years ago

I will test 32bit and 64bit Version and different JDK.

anton-rudeshko commented 11 years ago

I think it's irrelevant, don't waste your time

anton-rudeshko commented 11 years ago

Could you please try to disable CSSReorder plugin and then rearrange your code? And if you don't mind, could you share your plugins list? Thank you.

mriehema commented 11 years ago

Reformat Code without this plugin or with disabled option "Rearrange entries" works fine. :( My Plugins are all Bundled Plugins + AutoPackage, CSS-X-Fire, Jangaroo, PHP, IDEA DocBook. I disabled all custom Plugins, bit the result is still the same.

rudolfschmidt commented 7 years ago

I have the same issue. If I use the plugin and reformat my code with ctrl+alt+l I get corrupt css because of @import declarations. without @import it works fine. deinstalling or disabling the plugin leads to no changes after pressing ctrl+alt+l. so it seems to be a bug in the plugin.

And I dont agree, its irrelevant. I would like to have an alpabetic order, but I cant because of necessary import declarations.