-
Notifications
You must be signed in to change notification settings - Fork 1.3k
updating included files even in case of compilation error (Lint Mode) #680
Comments
We have another level of refactoring going on. After all the other v2.1 dust is settled, we will add this feature. Some notes for future:
I am adding it to unknown milestone for now. Thanks for reporting this. |
@xzyfer , We are already using sass-graph in sass-loader to support watchers. But we are facing some problems. We can avoid sass-graph dependency if stats are available to error handler. |
@akiran, technically it is possible to implement it so the error object is imploded with stats in error cb, but then we would have to make another call to collect stats in case of error; which is one reason it being a bad design. So IMO having the linter separated would be better. That will enable you to: 1- lint before compile if needed. This will cause no impact on performance for user, who did not wanted stats / diagnostic information. |
@am11, Yes, that will be great. In case of sass-loader, we need list of includedFiles even in case of error to register dependencies with watcher. It is ok for us to call a different API function to get this info before compile step. |
The other approach is to make it disableable option. Two reasons not to do so: 1- Too many (micro) options mean sloppy architecture.
Hence the non-persistent behavior. Compare to:
|
Does it mean that linting is a separate function? From our point of view it does not make sense to parse the files two times, one time for linting and the other time for compiling. In that case we'd probably lint the files after an error occurred to extract the included files. |
@jhnns, yes because libsass has it as a separate function and IMO we should not merge both in a single API call. |
Yeah, you're right. From our POV it would be ideally to receive the |
Add support for the not expression
I previously opened this issue in libsass.
sass/libsass#638
@mgreter made changes to API in libsass.
When can we expect this in node-sass ?
The text was updated successfully, but these errors were encountered: