-
Notifications
You must be signed in to change notification settings - Fork 16
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
Files appear to have changes, although no visible changes are seen + Compile on save. #65
Comments
Can you try upgrading the extension to the latest version? If that doesn’t fix it, can you provide the scss file and your compilerconfig so that I can try to replicate the issue? // I’m planning a new release next week if I can replicate this issue I can hopefully squeeze this in |
According to VS2022 I am already on the latest stable version (1.14.9.1). I tried reinstalling the extension but the issue persists. As for the files, I am able to provide compilerconfig.json, but the target scss file is merely a bunch of imports. compilerconfig.json:
mockup homepage.scss:
|
I’d be happy to take a look at it if you can get me a reproduction sample; config and scss files. |
sure, here goes: compilerconfig.json
homepage.scss
wwwroot/libs/first-file.scssThis one is just a library, i.e bootstrap so the contents are from their cdn: https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap-theme.min.css wwwroot/homepage/second-file.scss
steps to reproduceCheckout to a different branch. Sometimes a git operation (pull/merge) or a rebuild is required but ultimately, the .css files (homepage and homepage.min) will appear in git changes, having 0 visible modifications. Thanks for the patience |
@failwyn any updates on this issue? |
@razvan000 I'm not able to replicate it; I'm compiling all of the Kendo SASS themes in my application and I'm not seeing any unintended changes in git. Is it possible that your git is changing the line endings? |
I'm still having this issue, i'm on VS2022 Pro, the files actually show as having a LF ending, but i'm on windows. I tried setting the linefeeds to CRLF, but no dice. |
We have the same problem. Is it possible to add a parameter to choose the type of end of line? Using the Git function to transform the end of lines under Windows, the differences disappear after a "Git add" but it is very disturbing because sometimes it does not and after a while we no longer pay attention to what we cancel in Git as we have to cancel everytime a bundle / minification happens. |
so, i was researching. the less compiler always outputs as LF files, git will autocrlf files to/from the server to match the client settings (windows vs linux, etc). This is what is causing the "difference". |
I added a .gitattributes with this
The other options would be to tag into this compiler to set the cr/lf based on the settings here, but that is beyond what I have time for. |
When trying to solve this, I've realized "options": {
"lineFeed": "crlf",
"outputStyle": "expanded"
},
"useNodeSass": true |
I'm going to be removing Node Sass from future release since it is no longer supported and gives errors when trying to compile it. |
Hello and thanks for maintaining this project.
I have two issues for which I can't find a solution:
CSS bundles (both minified and only bundled versions) get regenerated - can be seen in the Git Changes tab - everytime I am switching from a branch to another, even if there are no changes in the scss files that make them up. I figured it might be a CLRF thing, but I can't find any evidence to that, and neither a solution. As it is quite annoying, having to revert the files everytime I am on a new branch, any help with this would be appreciated.
The extension's context menu is not available when right clicking any of the files in my project and neither can I see any tasks in the Task Runner Explorer. How can I enable compile on save?
Installed product versions
Thanks in advance.
The text was updated successfully, but these errors were encountered: