mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
67 stars 23 forks source link

Cannot read property 'numerator' of undefined #87

Closed elinkx-rko closed 2 years ago

elinkx-rko commented 2 years ago

Hi, when trying to save LESS file, this Cannot read property 'numerator' of undefined error pops out and @import statement gets underlined (see screenshot). As a result of that I am unable to compile LESS files.

Any ideas of what might be the issue?

image

elinkx-rko commented 2 years ago

Let me add that the very same code got compiled in the past (like a year ago or so) without problems.

mrcrowl commented 2 years ago

Hard to be sure without the source, but from what I've googled, it might be worth searching your less files for division /.

Because / was introduced as valid css syntax in recent years (I don't recall where), certain math operations need to be wrapped with parentheses.

e.g. @n * 3 / 4 --> (@n * 3 / 4)

elinkx-rko commented 2 years ago

Hard to be sure without the source, but from what I've googled, it might be worth searching your less files for division /.

Because / was introduced as valid css syntax in recent years (I don't recall where), certain math operations need to be wrapped with parentheses.

e.g. @n * 3 / 4 --> (@n * 3 / 4)

Good idea, however, from what I see in the suspected file all equations are properly wrapped.

image

mrcrowl commented 2 years ago

Closing until source is provided for further investigation.