Skip to content

Example compiler hook code does not seem to work #2681

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

Closed
ghost opened this issue Jan 26, 2013 · 1 comment
Closed

Example compiler hook code does not seem to work #2681

ghost opened this issue Jan 26, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 26, 2013

Specifically, that which is documented here:

https://github.com/jashkenas/coffee-script/wiki/[Extensibility]-Hooking-into-the-Command-Line-Compiler

If I actually run that with something like

% coffee -r ./hook.coffee -c some_other_file.coffee

the CoffeeScript variable is undefined because module.parent.children is an empty array.

The more straightforward require("coffee-script") does not work either, since there is no on method as noted in this issue with no obvious solution proposed that I can see: #1023

Running 1.4.0 if that matters.

@jashkenas
Copy link
Owner

Thanks for reporting -- the hook/events were removed a while back, but the command-line switch was left in, and the wiki page wasn't deleted. I'll do those now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant