-
Notifications
You must be signed in to change notification settings - Fork 522
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
Koala automatically compiles all files after adding a new folder #367
Comments
Seconded. Even a folder setting would be helpful: "options": { TIP: one way to minimize the clean up from this is to move all imports into a subfolder and configure Koala to ignore the mixins folder (assuming the latest version of Bootstrap). This way, when Koala triggers a full recompile again, mixins are skipped and the unwanted css files are all in one folder. Naturally, you have to adjust the @import statements for the new location: @import "components/variables.less"; IE: |
Third'ed this. It would seem that default should be to not compile anything, and allow people to toggle all on later. |
Auto compiles all after adding a folder is for get the |
Thanks for the reply @oklai! I haven't used plain |
This was really annoying. I just switched to Koala because an older compiler could not handle LESS imports correctly. The only way to create a new project was to add the entire folder. Although I only want to build 5 files , there were over 100 LESS files (everything is modularized in our system and most were "library" items). Everything got added and everything auto-compiled. Having the default to auto-compile is beyond annoying, especially when starting a project can only be done by importing an entire folder! |
This auto-compilation is very annoying. I've spent several hours to understand how it works But, there is a way to achieve custom behavior without touching core - just add an "autocompile": false to filetypes you don't want to autocompile into this file... Just like it is done here Hope this helps |
I was just testing out Koala for the first time. Instead of dragging and dropping a folder I clicked the + symbol assuming it would give me the opportunity to select a folder and then proceed. It did pop up a folder menu. I clicked through in the OSX file menu to find a project, then double clicked a root folder containing a lot of projects to navigate deeper. It auto selected that root folder and tried to add it as the project. Since auto compile is on it started to process EVERY scss and less file. There is no warning in advance this behavior would occur. I do not think anything should be done without prompting the user. I was lucky it hit a few errors and was able to exit out of the application. To make it worse, it overwrites the CSS files that may or may not have existed already. Now I have 200+ CSS and related map files to sort through. What a PITA. I'm lucky it only hit 5 projects. It could have caused thousands of unwanted file changes. I instantly uninstalled this app. |
Please add more options. Added a project almost on production with +500 js, coffee, sass, css and less files and you probably know what happened. I read somwhere that you can rename your file with _ starting and it will be ignored....i cannot do that and i do not agree that should be the resolve. Just one button with "Auto-Compile" should do exactly the trick. You can enable what you want and you can disable them all at first. It's not gonna be used by a lot of people if it's gonna screw projects like this. |
How is this really still an issue this has been going on for way too long. I tried every one of what I thought might be viable implementations of Yelbaev's vague suggestion. Damn I am glad I came back to this tab because despite all that I had missed his core fix. It's hardly a hack. Just invert T/F instances in the value on that line. Finally. |
Actually I tried to switch it off according to @Yelbaev . However when I dragged a file into Koala, it is still the same. I read the code for a while and I figured it out that in a file called projectManager.js, it would autoCompileWhenAdded LESS/Sass/CoffeeScript. And after i annotate call of that function, it finally worked. Hope to help someone want to close autocompile of LESS/Sass/CoffeeScript. |
The fix you pushed for this doesn't seem to work anymore -- the box is unticked, but it is still autocompiling all of my sass files when i add a new project. |
As of 2.0.4. (at least, I cannot remember this happening with 2.0.3.), Koala automatically compiles all files instantly after adding a folder. Consider following:
bootstrap.less
is supposed to be compiled.Simple test case would be:
My suggestion would be either
or
The text was updated successfully, but these errors were encountered: