CSSReorder icon indicating copy to clipboard operation
CSSReorder copied to clipboard

Rearrange @import not working

Open mriehema opened this issue 11 years ago • 11 comments

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

mriehema avatar Jul 03 '13 09:07 mriehema

Whoooa, nice one! Thank you, will fix

anton-rudeshko avatar Jul 03 '13 11:07 anton-rudeshko

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

anton-rudeshko avatar Jul 03 '13 19:07 anton-rudeshko

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

mriehema avatar Jul 04 '13 08:07 mriehema

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

anton-rudeshko avatar Jul 04 '13 18:07 anton-rudeshko

screenshot_138

mriehema avatar Jul 05 '13 08:07 mriehema

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

anton-rudeshko avatar Jul 05 '13 13:07 anton-rudeshko

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

mriehema avatar Jul 05 '13 13:07 mriehema

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

anton-rudeshko avatar Jul 05 '13 19:07 anton-rudeshko

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.

anton-rudeshko avatar Jul 07 '13 19:07 anton-rudeshko

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.

mriehema avatar Jul 09 '13 13:07 mriehema

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.

rudolfschmidt avatar Feb 05 '17 18:02 rudolfschmidt