defunkt / coffee-mode

Emacs Major Mode for CoffeeScript
http://ozmm.org/posts/coffee_mode.html
574 stars 147 forks source link

Compile region does not produce any output #340

Closed dmh43 closed 8 years ago

dmh43 commented 8 years ago

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 8 years ago

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 8 years ago

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

syohex commented 8 years ago

Sorry too late reply. I cannot reproduce this issue.

coffee-compile-region

Could you tell us following information ?

dmh43 commented 8 years ago

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.

syohex commented 8 years ago

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