-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to compile when subclass constructor calls super #244
Comments
super's not implemented yet, so yeah. |
Makes sense. Thanks for the great work you are doing. I got started using this based on the recommendation from this blogpost about getting coffee-script to work best with Jetbrains WebStorm: http://blog.jetbrains.com/webide/2013/03/coffeescript-debugging-with-sourcemaps-in-webstorm-6-phpstorm-6/ Is there a schedule for when you will implement features like this? |
Progress is here. Also, you should be thanking @michaelficarra, not me (which also means I can't answer your last question). |
Got here through half a year old question on super in Redux, and after 6 months... :). I absolutely understand that this project is now left with whatever time anyone willing to help have spare. But could someone explain to me what is the point of a half finished compiler while we have a working compiler? The roadmap now has no due dates. Wouldn't it be better to abandon this project and make sure people like @olegam don't get confused by articles which suggest using redux? Anytime I see "Fixed in redux" tag on the main repo, something moves inside of me. With all due respect to the contributors here... |
@xixixao: There are some issues with jashkenas/coffee-script that will be incredibly hard to fix because of the compiler's design. The remaining issues here will just take a bit of time to implement. This project is just not as interesting for me right now as some of the other projects I'm working on. I have a lot of really cool stuff coming out soon. I use this compiler pretty much every day and fix bugs immediately as I come upon them. I don't know why many other people aren't motivated to contribute to OSS projects. |
How soon are you going to fix it? These two problems are the only things that prevent me (and I suspect a huge number of people like me) from switching to CoffeeScript redux |
@antonkulaga: I recently negotiated 10% time to work on outstanding OSS issues for Groupon. I'll be prioritising work on CSR, especially these two issues, starting 2014. |
@michaelficarra Is there any way to run the CS test suite with Redux (I attempted this, but the internal API is different)? If not, would nice to enable that as well. |
Not trolling but I've seen you mention this a number of times. Is there an up-to-date list of things that are possible in CSR that aren't possible (or are hard) to fix in jashkenas/coffee-script? The wiki page lists four and the open issues page lists 37, none of which are particularly compelling. What reason would I have to use CSR over CS these days? |
jashkenas/coffeescript#2342 |
duplicate of issue #147 |
Still no support of |
stumbled over this too .. a suggested workaround should at least be presented or documented shouldnt it ? |
This issue hasn't been addressed and the project seems to be abandonware. There is no real substitute for |
there's a PR for this over here: #313 ... not sure what's left to do on it |
try: class Foo
constructor: (@name) ->
class Bar extends Foo
constructor: () ->
Foo.apply this, ["Peter"] |
Only a substitute for |
Really? class Foo
constructor: (@name) ->
bla: (message) ->
console.log "#{message} by #{@name}"
class Bar extends Foo
constructor: () ->
Foo.apply this, ["Peter"]
bla: (message) ->
Foo.prototype.bla.apply this, [message]
new Bar().bla "No super" # No super by Peter I don't like the fact that I need to do this way, but works... |
You can also do this: Foo::bla.apply this, [message] But that isn't the point. This issue isn't that workarounds to not supporting |
I agree. |
…or this, which is faster: Perhaps, the reason why it is called CoffeeScript Redux is that it is missing some of the features… :) Yet omitting |
Since this specific item seems rather easy to fix.. Are the any other obvious omissions from this compiler ? -----Original Message----- …or this, which is faster: Foo::bla.call @, message. |
I can't compile this
Seems to be correct syntax but I get:
See related question on SO: http://stackoverflow.com/questions/18914349/why-do-i-get-syntax-error-trying-to-call-super
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1742549-fails-to-compile-when-subclass-constructor-calls-super?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).The text was updated successfully, but these errors were encountered: