defunkt/coffee-mode

Compile region does not produce any output

Closed this issue · 5 comments

dmh43 commented

To reproduce:

  1. In a buffer type: (my_vars) -> console.log('hello')
  2. C-x h
  3. M-x coffee-compile-region

Nothing happens. The coffee compiled buffer is also empty. I expect the selected region to be compiled to JS. This seems like a simple enough fix.

dmh43 commented

When I went to troubleshoot the issue, I instrumented the function coffee-compile-region for debugging and was able to reproduce the issue but realized that the buffer would get cleared when the function exited. I de-instrumented the function and now the command works as expected.

Will reopen the issue if I notice it happening again.

dmh43 commented

I'm having this issue again. Has anyone else had the same experience with the compile region functionality?

Sorry too late reply. I cannot reproduce this issue.

coffee-compile-region

Could you tell us following information ?

  • Emacs version
  • OS
  • CoffeeScript version
  • Can you use coffee command within Emacs ? For example M-x shell-command, coffee --version
  • etc
dmh43 commented

CoffeeScript version: 1.10.0 (from within emacs)
GNU Emacs 24.5.1 (x86_64-apple-darwin15.3.0, NS apple-appkit-1404.34) of 2016-03-02
OS X 10.11.3

Compile buffer works for me. Compile region is the only one giving me trouble. I'm also using prelude if that's relevant.

I have fixed at #343. Thanks for reporting issue.