LESS support - @import not supported - seems to me that this is a general problem

Hi PhpStorm-Team,

that's a great and wonderful feature/news but it's not fully supported because it seems to me that there is a general problem with the @import rule within a css file.

If a use LESS syntax in my existing css files like

@bgOrange : #ff6600;

#header {
  background-color: @bgOrange;

everything work fine. But the if i want to import a style for example from @import "/less/less_global.less"; then i don't have any access to the variables of the imported style.
I think now that this is the same problem that i describe in thread http://devnet.jetbrains.net/thread/290325. From my point of view there is a general problem with the @import statement within a css file.

If you have full support then i would except that



Importing works pretty much as expected. You can import a

file, and all the variables in it will be available. If the file is a
, the extension is optional:
@import "library";
@import "typo.css";

should work.

(Used version 96.1061)



Daniel, isn't better post bug reports directly to the bt: http://youtrack.jetbrains.net/issues/WI ? I guess developers opens bt more often than forum.


Hello Daniel,

Please ensure you use less file type for your less coding, because *.css  are treated just as plain css files.
If something goes wrong after this, please create sample project and create corresponding issue at youtrack.jetbrains.net



Developers are monitoring both forum and bug tracker, however the preferred way of posting questions is forum, and if you are 100o% sure that you've found a bug feel free to post it directly to bugtracker.



@Dmitry please avoid all kinds of speculations and doublecheck your tone when posting to other users. Its better to focus on problem in question. You again starting to sound at least inpolite.

All our resources are monitored in realtime.


Hello Oleg,

in the other thread i have add a small project, that shows the described behaviour. => http://devnet.jetbrains.net/thread/290325

I will add the project to the bugtracker item => http://youtrack.jetbrains.net/issue/WI-2974?projectKey=WI



Please sign in to leave a comment.