-
Notifications
You must be signed in to change notification settings - Fork 3.4k
No output with option --depends in version 2.7.x #2925
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
Comments
This was implemented in #2830. So what is the use-case of using both ("depends list" and "css") simultaneously? |
The first run of the Makefile, CSS files must be generated as they do not yet exist. As a byproduct of producing the CSS files, the dependency files are created simultaneously. This avoid shelling out to two processes when one will do. Thus, theoretically, parsing the less files needs to happen only once. As the files are rebuilt, the dependencies will also be updated. As an example, this is how GCC works. See the article Auto-Dependency Generation. Particularly the section titled "Combining Compilation and Dependency Generation". |
I think this is basically leads us to #2476 (comment). |
When considering Maybe there are use cases outside of |
Just run So the only drawback is that you need additional:
in your scripts. Well, I guess this is survivable. And I still can't imagine a use-case of having the css output before the deps. I.e. if your already got your CSS why do you need its dependencies at all? |
added "Consider Closing" due to lack of clear use-case description. |
The description in #2830 describes that With the new behaviour, the only way to gain any benefit from I'm working on a few more improvements to dependency tracking. I'll submit a PR soon. |
In case it is not clear: there is no point in having dependency information before the generated output. The dependency tracking makes sure that If there is no output file yet, |
So the only use of these generated dependencies is to trigger recompilation when they changed? |
@seven-phases-max: yes, that is what Note that I submitted #3087, which makes the default behaviour what we had before #2830, but also adds a More info available there. |
Also, I guess that there might be use cases outside of |
Is this still an issue that needs addressing? If so, what is the expected result for an incoming PR to solve? |
@kevinpeno If I understand it right #3087 had the behaviour we were finally agreed upon - it was not merged just because it forced four or five extra bloatware options. |
@seven-phases-max so basically:
Am I correct in this understanding? |
Can we invent something w/o adding new options? |
@seven-phases-max I can implement it however you like, I was just trying to digest the PR you mentioned into an actionable new PR to help close this issue. If you'd like me to just complete item 1, that's fine. If there's something I'm missing, please elaborate. |
@kevinpeno Since I do not use this options myself, my only wish is to not burden the further maintenance by adding surplus options (then tests, then documentation, then issue reports etc.). So for me something like #2925 (comment) would do the trick. |
I had a need for more flexible dependency tracking again today, so I started this: https://github.com/de-vri-es/lessc-make Still a work in progress, but it should already work for simple use cases with source maps and dependency tracking. No plugins or other compiler options yet. |
If run lessc 2.7.x with option '--depends' (lessc in.less out.css --depends), depends writen in console, output file - not writed.
In version 2.6.1 - all ok.
The text was updated successfully, but these errors were encountered: