-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race Condition #1898
Comments
cool many thanks for the repro case, I'll take a look |
I've changed import-once to work out duplicates in a consistent way rather than relying on always taking the first file load that returns |
Thanks |
Because I haven't tried it yet, the fixed outcome should be red?
|
@pmonegan It will become
|
Is this based only on node.js non - blocking, or as well in browser.
|
I did not test in a browser, but it should be the same (and should not be affected by blocking/non-blocking stuff, unless there're some other hidden bugs of course). |
Ok. I'll let you know if you haven't tested it by then.
|
It doesn't block loading files it just changes when it decides on the |
Currently out of 100 browser refresh tests (FF, IE11) , @import is doing On Fri, Feb 28, 2014 at 12:38 PM, Luke Page [email protected]:
|
In less 1.6.3 there is an issue with the same imports across different nested imports. E.g. if the same import is used in 2 different less files the order of loading is not guaranteed. To ensure reproducibility of this issue the build is run 50 times. refs: less/less.js#1898
In less 1.6.3 there is an issue with the same imports across different nested imports. E.g. if the same import is used in 2 different less files the order of loading is not guaranteed. To ensure reproducibility of this issue the build is run 50 times. refs: less/less.js#1898
In less 1.6.3 there is an issue with the same imports across different nested imports. E.g. if the same import is used in 2 different less files the order of loading is not guaranteed. To ensure reproducibility of this issue the build is run 50 times. refs: less/less.js#1898
In less 1.6.3 there is an issue with the same imports across different nested imports. E.g. if the same import is used in 2 different less files the order of loading is not guaranteed. To ensure reproducibility of this issue the build is run 50 times. refs: less/less.js#1898
I've found what I think is a race condition in less. Unfortunately the minimum example I can come up with involves 5 files. With the
lessc
command line it then outputs one of two different things at random. If you add the sync-imports flag, the problem is mitigated.Inputs
index.less
indirect-a.less
indirect-b.less
variables.less
override.less
Command
Output
One of the following two options is output at random:
Aprox 95% of the time:
Aprox 5% of the time:
This occurs with the latest version in npm and with the version currently in the GitHub repo.
The text was updated successfully, but these errors were encountered: