sustained/CoffeeScript-Sublime-Plugin

Merge with "official" CoffeeScript Text Editor Plugin?

Opened this issue · 3 comments

Hey Joe.

I switched over to Sublime a few months back, and have been greatly enjoying your CoffeeScript bundle -- fun stuff.

Over the last few days, I've been hacking on it a bit in an effort to get it to recognize the newly-merged "literate" CoffeeScript style. I was wondering if you'd like me to start maintaining the plugin officially, and publishing updates alongside the Textmate bundle ... or if you'd prefer me to send you a pull request here.

Whatever works best.

Hey Jeremy.

As much as I would love to work on this plugin... honestly I've just been suffering from burn out for quite a long time now, so perhaps it's better that I pass it on to someone else. I think the plugin deserves more and so I think it would probably be better if you maintained it.

For the moment though can you send a pull request? I'd like to see if I can get back into the swing of things. I had a few ideas in mind (like the watch mode stuff) which I actually had implemented locally a long time ago.

Thank you for creating CoffeeScript anyway!

@Xavura I would love to continue the project, I have already branched myself out and added your brilliant idea of making a watch mode. If you think you would like to transfer the project let me know :) here is my repo

OK, so... who's it gonna be, guys? Who am I goin' home with tonite?
CS v1.6.1 is broken. See jashkenas/coffeescript#2828
Here is my workaround:
In C:/Users/Dave/AppData/Roaming/Sublime Text 2/Packages/CoffeeScript/CoffeeScript.py

Old code: Line 69...

args = ['-c', self.view.file_name()]
if no_wrapper:
    args = ['-b'] + args
print "In CompileCommand > args => " + str(args)
result = run("coffee", args=args)

New code:

filename = path.basename(self.view.file_name())
dirname = path.dirname(self.view.file_name())
args = ['-c', filename]
if no_wrapper:
    args = ['-b'] + args
print "In CompileCommand > args => " + str(args)
result = run("coffee", args=args, cwd = dirname)

I'm not a GitHub-ista. Yet. But if you guys figure out who's gonna be the official repo/maintainer, I can fork and do a pull request.
Let me know...