Comments (8)
Thank you for your kind words.
I will be able to look at the code tonight, however first thing that comes to mind is this:
Compiling on save...
is printed in the console when you choose the option that compiles on save. Which is related to #14. Now that is totally different than the watch mode iirc. So what compiles the js files is that option. You are saving the files right? And then it compiles it?
Like here:
Writing file /Users/kempair3/GitHub/HumanCloud/app/assets/javascripts/angular/directives/scoped_add_to_collection.js.coffee with encoding UTF-8
Compiling on save...
What I don't get is this part though,
Writing file /Users/kempair3/GitHub/HumanCloud/app/views/dashboard/templates/angular/_hiiro_template_scoped_add_to_collection.haml with encoding UTF-8
Compiling on save...
Writing file /Users/kempair3/GitHub/HumanCloud/app/views/dashboard/templates/angular/_hiiro_template_scoped_add_to_collection.haml with encoding UTF-8
Compiling on save...
If it is compiling something other than coffee files, it shouldn't be like that because compile feature should work only if the syntax highlight mode is coffee. (or something, its in CoffeeScript.py#L49-L52 under isCoffee()
function).
Is it compiling something other than coffee? That's an important thing for me.
Anyway, for your case the solution is simply setting:
"compileOnSave": false
to false
, like that. Let me know if the problem continues and I'm gonna note here to:
- Set
compileOnSave
tofalse
by default
Thank you for your input! And I hope it helps. Keep me posted!
from sublime-better-coffeescript.
Oh and one more thing. The watch mode is only on when you hit shift+alt+w
or enable it from the command pallet, and it is off when you close the tab that compiled javascript is in. That's how I use it at least, I'm sure toggling works too but I usually close the js file to stop compiling the coffee script whenever I type something.
from sublime-better-coffeescript.
@adilwali did it work?
from sublime-better-coffeescript.
Woops! Sorry for the late response. I am not getting the notifications from github. CompileOnSave is false now. I'll pop in update in a couple hours to confirm if it worked.
Also, to answer your question from before: nothing other than Coffee has been compiled. And yep, I've used ctrl+alt+w before, but you are right, I think it's the 'turning off' that's the problem. Because I've turned it off and then checked the console to be sure it was off, but have had the files continue to appear (even after I've deleted them!)
from sublime-better-coffeescript.
My bad it should be alt+shift+w - Toggle watch mode
instead of ctrl+alt+w
. I edited the comment now. So anyway, the problem isn't about watch mode
but compile on save
. After you turn it off, if console doesn't say Compiling On Save...
then js files should not be appearing. Feel free to close the issue once you can confirm :) Happy coding!
from sublime-better-coffeescript.
@adilwali Were you able to confirm this?
from sublime-better-coffeescript.
This is going to sound silly, but I've upgraded to Sublime Text 3 beta, and now the sublime-better-coffeescript settings don't appear under 'Preferences -> Package Settings." Are you working on Sublime Text 3 compatibility? If not, I guess I should probably just close the issue for now.
from sublime-better-coffeescript.
As of now I'm not working on Sublime Text 3 compatibility. Maybe as soon as it is released I will upgrade. The main reason for this is because I don't have access to ST3.
Feel free to make pull requests regarding compatibility, I can have a separate branch for version 3.
from sublime-better-coffeescript.
Related Issues (20)
- How to pass in custom arguments to coffeescript binary
- Not working on Windows ? HOT 1
- Plugin Not Working HOT 1
- Cake task output
- Execute me, how to write a similar key binding for ES6 ${}
- Separate CSON from CoffeeScript
- Why is so slow the saving with SublimeText3 and Better-coffescript?
- This keeps popping when loading: rule scope:source.rust##anon_struct-tuple_0 has a scope name, but is unreachable HOT 1
- modules - import and export HOT 1
- Ability to use variable path for binDIR and envPATH HOT 2
- # -> #{} Code Snippet Not Limited to CoffeeScript Files
- Would it be possible to properly highlight regex literals?
- Please update for CS v2.0 HOT 3
- NEED NEW MAINTAINER - PLEASE POST HERE HOT 6
- [Feature request] Regular expressions highlights HOT 1
- if "class" appears in coffeescript code, e.g., class_name, subsequent lines are indented
- Nothing matching obj.method 'arg'
- Add support for Sublime Text 4 (build 4121) HOT 1
- Last character missing in auto-suggest in ST4 HOT 1
- Could "console.dir" be added so it is highlighted similar to "console.log"?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-better-coffeescript.