junichi11 / cakephp-netbeans

CakePHP support in NetBeans
http://cakephp.org
71 stars 18 forks source link

css preprocessor (scss) conflict #75

Closed luke83 closed 10 years ago

luke83 commented 10 years ago

Hi there, i love this plugin, netbeans and also sass compiler <3

When i enable cakephp plugin sass watcher stops to work, when i save scss they are not compiled by netbeans.

When i disable the cakephp plugin scss files are correctly compiled everytime i save them.

The issue is present in fresh new project and in old one "enabled".

Any hints about how to fix this?

[cakephp plugin version 0.9.8 on netbeans 7.4 (Build 201310111528)]

junichi11 commented 10 years ago

Hi,

Sorry, I can not reproduce it. Could you write reproducible your steps? (like the followings:)

  1. something...
  2. ...
  3. ...

It would be helpful if you can provide reproducible small project(zip).

Thanks.

luke83 commented 10 years ago

Writing down the steps i noticed that now everything is working.. so maybe this afternoon my laptop was a bit confused about life troubles or other stuff and showed the odd behaviour, anyway i put here the steps in the case the bug show up again..


Steps to reproduce the bug:

  1. Css preprocessor configuration 0.1. Tools > Options > Miscellaneous > CSS Preprocessors in sass path goes the sass compilator, under windows you need to install ruby and than sass (then the pat will be: C:\Program Files\Ruby200\bin\sass.bat)
  2. create a simple project
  3. create two folders in the project root
root
|- scss
|- css
  1. create scss file 3.1. right click on scss folder 3.2. new > Sass File 3.3. _YOU NEED TO CHECK "Complie Sass File On Save" OPTION _ (in this way everytime a scss file in the directory configured is saved will be compiled)
$color: red;
b {
    color: $color
}

When you save this file a new file will be created by the compile so the situation will be:

root
|- scss
|-- test.css
|- css
|-- test.scss

test.css is the compiled sass file and will look like this:

b {
    color: red
}

Also in the output window you will find a sass panel with something like this:

"C:\Program Files\Ruby200\bin\sass.bat" "--cache-location" "C:\Users\Luca\AppData\Local\NetBeans\Cache\7.4\sass-compiler" "D:\Dropbox\Projects\test\scss\test.scss" "D:\Dropbox\Projects\test\css\test.css"
Done.

NOW

  1. Enable cakephp plugin 4.1. right click on project root 4.2. properties > Frameworks > CakePHP and check Enable option, fix path and errors if needed 4.3. try to modify or create new scss.. compiler is never invoked
junichi11 commented 10 years ago

Thank you for writing your steps! It's so easy to understand :)

I tried it again. But I can't reproduce it.

Writing down the steps i noticed that now everything is working..

Please let me know again if you will get a reproducible state or steps always. I close this issue once. If you have some problems, please reopen simply ;)

Thanks for your reporting!