Coder Social home page Coder Social logo

Comments (8)

aponxi avatar aponxi commented on July 21, 2024

ah sweet, thank you :) I'll be sure to add this feature

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

@idpsycho I have added the feature you requested... to be honest the way I wrote the functions for watch-mode, I was able to do it with just two lines :) I have tested it and it works - meaning that it can compile the coffeescript into the same folder.

Now I just saw that you also requested a way to see the error output... I totally missed that, sorry. I will have to patch that soon, right now I want to test the plugin a little bit and see what else needs patching. Would you be kind to test it out and write your own findings too? Also would you like to see any other enhancements to this added? Maybe like building coffee to another dir or something?

I hope you like it :)

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

Correction:

@idpsycho when compiled if there is an error it shows it in the status pane by default. :)

from sublime-better-coffeescript.

idpsycho avatar idpsycho commented on July 21, 2024

@aponxi two things

  1. I got back after few weeks, and the script seems to be updated - is that how it works? Sublime auto-updates it when you commit it somewhere?
  2. Error message is not there, it only says "compilation failed". I had to add it manually again. Am I doing something wrong?

from sublime-better-coffeescript.

idpsycho avatar idpsycho commented on July 21, 2024

Also, when you call CompileCommand from onPostSave, status message is then cleared by actual sublime's Save() function, for that reason, I added timeout to rewrite it. I know it is hack, but I need to know when the compilation fails while I'm developing...

    later = lambda: sublime.status_message(status); print status
    sublime.set_timeout(later, 300)

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

@idpsycho

  1. From what I understand you are talking about the changes I made here and how it was updated on sublime right? When I push the new version to this repository's master branch, it is updated on wbond's package system therefore when you launch sublime text, it auto updates if there's a new version. Now if you had made any differences to the python file in the plugin I would have to assume that it would get replaced by the new version that is published at this repo (Is that what happened?) However I cannot say that for sure that it gets replaced over your locally modified version for I only vaguely remember something like this happening in the past.
  2. You are right it only says compilation failed. I will add that it outputs it to the console. However I need to separate printing the error message to the console onSave from onWatch mode so that the console doesn't get cluttered when writing in watch mode or whenever the compilation is printed elsewhere like on a new tab (as in Compile and Display and Watch Mode.
  3. I will look into the status message and see how the delay will work.

I appreciate the input, I really do. Thanks!

from sublime-better-coffeescript.

idpsycho avatar idpsycho commented on July 21, 2024

@aponxi thank you for answers
After using the delayed status message, I've realised i'm not watching status, since the errors are not that frequent. So to make errors stand out I have now added actual error message. Now I won't miss when something is wrong.

 ...else:
        status = 'Coffee FAILED: '+result['err'].splitlines()[0]
        sublime.error_message(status);

from sublime-better-coffeescript.

aponxi avatar aponxi commented on July 21, 2024

@idpsycho you are welcome! I will add this feature asap. However feel free to send a pull request if you wrote a stable solution :)

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.