Comments (8)
ah sweet, thank you :) I'll be sure to add this feature
from sublime-better-coffeescript.
@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.
Correction:
@idpsycho when compiled if there is an error it shows it in the status pane by default. :)
from sublime-better-coffeescript.
@aponxi two things
- 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?
- 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.
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.
- 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.
- 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
fromonWatch
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 inCompile and Display
andWatch Mode
. - 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.
@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.
@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)
- comment on js file HOT 1
- 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
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.