English 中文(简体)
what is wrong when I compile my .coffee files
原标题:

Hi there Iam using coffeeScript for my apps now and I love it but recently I ve been having a lot of trouble with compilation, Iam using it for a rails application and when I run

coffee -w -c public/javascripts

It will compile correctly the first time but when I do some changes it just turns to

(function() {

})();

Some time before everything was working as expected compiling correctly every time a made a change (0.9.1), but I tried to upgrade to version 0.9.2 using npm and I really had trouble, nothing worked, I installed the first time using sudo, I downloaded the source and used sudo bin/cake install

问题回答

You might be running into this (now fixed) issue:

http://github.com/jashkenas/coffee-script/issues/closed#issue/665

.. which would occur when using --watch, if your text editor first saved out a blank file before saving the actual file contents. You can update to the latest master to fix it.

Might be carriage return character problem. I experienced that in Netbeans IDE until I started using the CoffeeScript plugin for netbeans.





相关问题
java in-memory on-the-fly class compilation (and loading)

I want to revisit an old question of mine about in-memory "compilation" of classes. Since about 1/2 a year have passed since I asked (and was somewhat answered), I d like to re-raise the issue and see ...

(c)make - resursive compile

Let s assume I have directories like: dir1 main.cpp dir2 abc.cpp dir3 def.cpp dir4 ghi.cpp jkl.cpp And let s assume that main.cpp ...

How to link to a static library in C?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a"...

Statically linking Winsock?

I m using Winsock 1.1 in my project. I include wsock32.lib in "Additional Dependencies". I m looking at the DLL project using depends.exe and notice that the DLL depends on wsock32.dll. How can I ...

热门标签