This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi guys, I am seeing a strange error when I attempt to save and compile a LESS file in Visual Studio (I am using WWB Pro). I am getting the following error: SyntaxError: Unexpected identifier. I have tried stripping the LESS file right back to just: body { color:#ffffff; } Nothing else is in the file, not even white space. It's quite odd. I can even open another project I wrote recently using LESS and it compiles fine. Any ideas? Cheers, Danny |
|
|
Your file content is working for me. I can only guess that there is some 'invisible' content in there that is getting messed up -- we do carry out some internal transformations when passing the Less code to the compiler which could result in this error if they go wrong, and it's possible there are other things we don't know about that could confuse the Less compiler. Could you post the actual .less file that gives the error please? You can attach a file to a message using the "Upload a file" button below the Preview area. Thanks! |
|
|
Hi Ivan, Thanks for your help with this. I have reproduced the problem into a minimalistic website project (only a couple of files). Please find this attached. The funny thing I have found is that the issue doesn't occur if I save the files to my Documents/Visual Studio 2010/Projects folder (I am running Windows 7 64 bit). The problem does occur if I save the files to my desktop or to my network drive. I thought the issue may have been to do with file permissions, however I think I have ruled this out by successfully compiling both Coffee and Sass files in the same project. Interested to see what your thoughts are. Cheers, Danny |
|
|
I've figured it out! The name of the folder I was saving these files to included an apostrophe (') in the folder name. Once I took the apostrophe out, it compiled perfectly. Is that something that could be fixed in a future release? I have a few clients who have apostrophes in their names and would rather not have to rename them all. Cheers, Danny |
|
|
Excellent, thanks! We have reproduced and fixed the apostrophe problem and the fix will be included in the next nightly build (available from about 1200 GMT; see the FAQ sticky thread for download and installation instructions). |
|
|
Excellent, thanks for all your help. Cheers, Danny |
|