1

I am using the official bootstrap LESS files and am modifying them in Visual Studio 2015. I'm using Koala as my LESS compiler, and it's worked fine until I started making changes in variables.less. For instance, looking at narbar.less, Visual Studio is giving me the "Undeclared variable" error for all of my LESS variables, even though they're all defined in variables.less. The error is confirmed when I try to save navbar.less when Koala gives me an error saying that the variables are undefined.

I've read around that this may be related to Visual Studio encoding files by adding a BOM, so I installed the Fix File Encoding extension. I believe I configured it correctly: my setting for the extension is set as \.(htm|html|less)$ (a regex determining affected files). Even after saving the files with this extension installed, I'm still getting the error.

I just can't seem to get Koala to work after editing LESS files. Please help! If there's some major problem with Koala, can you recommend another simple LESS compiler? Thanks.

Jacob Stamm
  • 1,660
  • 1
  • 29
  • 53

0 Answers0