Skip to content

Loading…

Compatibility with CoffeeScript? #28

Closed
jonarrien opened this Issue · 20 comments
@jonarrien

I would like to know if there is some way to use this plugin with coffeescript. As Ruby developer, i don't compile the source code into javascript until production deployment.

@sokolovstas
Owner

How? I don't know how is this posible? If only open your compiled scripts like file right in sublime. But for what?

@jonarrien

Sorry, may be i did't explain it correctly. In Rails projects, CoffeeScript is by default, and Rails take care to convert this coffee script files to javascript on the fly when you are developing. I think CoffeeScript makes my life easier to develop web apps.

I was only wondering if I could use this plugin with coffeescript, but i know is not an easy task and I don't know if it is possible to link them. Thanks for the fast response. Really awesome plugin!

@sokolovstas
Owner

Yes I have found a way, but this is not so easy. I surely think about this.

@jonarrien

Thanks, will be awesome.

@matthiasg

basically you would have to add source map (single step or multi step lookup) into your package (which looks awesome BTW)...

There is a node module which parses source maps at https://github.com/mozilla/source-map for reference

@sokolovstas
Owner

Yes, when I find time for this

@stephanvane

Coffeescript supports source map generation since a few months (1.6.1 / March).

There is also a gem to automatically create the source maps in Rails: coffee-rails-source-maps

You might be able to use this gem to support rails-coffee-script in SublimeWebInspector. This would make an awesome tool for all rails developers.

Good luck!

@hems

:+1: 000

@xixixao

+1

@ckknight

If this is implemented, it should be done in a way to support any compile-to-JS language that has SourceMap support, not a CoffeeScript-specific thing. That'll be more future-proof anyway.

@hems

I'm so anxious to see it working with CS !!!

@nickdima

I've started a bounty on bountysource.com for backing this feature. It's just $15 for now but if you guys would like to contribute maybe @sokolovstas or someone else will implement this feature and get the bounty.
https://www.bountysource.com/issues/1183794-compatibility-with-coffeescript

@Cottin

+1

@m1sta

+1

@danmosemsft
Collaborator

Resolving as a duplicate of #55, which came later but has a more general title. It seems there is nothing specific here to CoffeeScript, that would not also apply to Typescript, etc. Essentially, source maps need to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.