Coder Social home page Coder Social logo

Comments (8)

aponxi avatar aponxi commented on July 21, 2024

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 to false by default

Thank you for your input! And I hope it helps. Keep me posted!

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

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.

aponxi avatar aponxi commented on July 21, 2024

@adilwali did it work?

from sublime-better-coffeescript.

adilwali avatar adilwali commented on July 21, 2024

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.

aponxi avatar aponxi commented on July 21, 2024

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.

aponxi avatar aponxi commented on July 21, 2024

@adilwali Were you able to confirm this?

from sublime-better-coffeescript.

adilwali avatar adilwali commented on July 21, 2024

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.

aponxi avatar aponxi commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.