-
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
Attempt to fix import sequencing #2246
Conversation
lukeapage
commented
Oct 23, 2014
- make the imports always loaded in a consistent order
- - stretch goal process the imports containing variables after all of imports have been processed
…he end of a global queue
Not working in this pull request main
x
In this situation the var does not get overridden because less see's x's scope as a scope which is different from main. Thats because the work to flatten the import into main's scope doesn't happen till after imports have been processed. |
Yes, this looks the only way to solve this is to force
|
@seven-phases-max we are always in dodgy territory because I was thinking how to fix it and so we have to flatten the imports in. I should probably have a go at that here but I feel zapped this week. What do you think about this pull-request? The first commits are quite understandable and I think make less more predictable which is good but I do worry that allowing better variable imports it just providing another way to do things in less, making it more complicated and increasing technical debt "in the field" because its better if everyone does something 1 way than a whole mix. |
I totally rely on your opinion in this case. Of course this will raise some new strange and hard-to-debug issues first, but hey they get what they want - we can always find an excuse like "Sorry guys, it's a self-recursion that is impossible to solve so use this at your own risk :)" (probably offering some more Less-friendly solutions if possible as we always do). Of course I'll try to perform some more tests with this PR to find if it's leading to something really strange. |
anyone not ok with me pulling into beta 2? Seems appropriate to be part of v2 even if it isn't in beta 1 and being in a beta means we might find any bugs out before its released as stable |
I think this should be your decision. I'm 100% cool with whatever you decide. |
well.. lets go with it, Any problems should be easy to fix. |
Attempt to fix import sequencing