tomlokhorst / coffeesharp Goto Github PK
View Code? Open in Web Editor NEWCoffeeScript compilation for Windows
Home Page: http://tomlokhorst.github.io/CoffeeSharp
License: Other
CoffeeScript compilation for Windows
Home Page: http://tomlokhorst.github.io/CoffeeSharp
License: Other
Since CoffeeSharp is currently not strong-named, it cannot be used in projects which are strong-named. Please sign CoffeeSharp with a strong name key as part of the build process.
I launched this command inside my js directory
coffee -c ./ -o ./ --watch
I have one coffee file in this directory. First compile went well, then I've edited this coffee file in Intellij IDEA, but js file was not regenerated. Why is that? Everything works fine when editing in some another text editor (I've tried notepad++).
AFAICT CoffeeSharp's watch mode does not watch for new files being added, requiring a manual restart of the process.
It would be useful if CoffeeSharp could automatically watch for and compile new files being added.
Cheers!
First of all, thanks for an awesome product. I've started using it in my latest Visual Studio extension https://visualstudiogallery.msdn.microsoft.com/3b329021-cd7a-4a01-86fc-714c2d05bb6c and it rocks!!
Is there a chance to get support for the latest CoffeeScript compiler version 1.9.3?
Coffee.exe -w -o test -c test.coffee
produces:
Unhandled Exception: System.ArgumentException: The directory name is invalid.
at System.IO.FileSystemWatcher..ctor(String path, String filter)
at System.IO.FileSystemWatcher..ctor(String path)
at Program.watch[a](String dir, FSharpList1 fns, Boolean bare, Boolean print, FSharpOption
1 outputDir)
at [email protected](String src)
at Microsoft.FSharp.Primitives.Basics.List.map[T,TResult](FSharpFunc2 mapping, FSharpList
1 x)
at Program.main(String[] args)
It seems the directory which is passed to the filesystemwatcher is always string empty.
Ive played for a while now with Coffeescript inside of a Visual Studio solution. The most annoying part is that i need to open an external editor to get syntax coloring.
Hi, I love how simple you made it to compile Coffee to Js on Windows, but CoffeeScript 1.2.0 was released at least 3 months ago. I'm using the commandline executable.
Is an upgrade planned, please? Many thanks in advance.
Hi,
I downloaded the CoffeeSharp-0.5.zip from the CoffeeSharp website but when I try to run Coffee.exe I get a "FSharp.Core 4.0.0 FileNotFound" exception.
I am running on Win8 64bit and have VS2013 with F# installed.
Do you have any idea why I am getting this error? Is there something wrong with the package?
-- Update
Not your fault! I suck and had breaks in it .. thats js not coffeescript. writing pass there makes it all work better.
//Case closed
I took your source, compiled a dll and used it to compile the dummy code (with imagined correct indentation):
switch "apa"
when "banan" then break
when "apa" then break
(since it broke when I tried to compile Milk with it https://github.com/pvande/Milk )
It handles one when clause just fine and the resulting js is correct, but as soon as I ad more it crashes with a nullpointer exception and the partial stack trace:
at Jurassic.ScriptEngine.CallGlobalFunction(String functionName, Object[] arg
umentValues)
at Jurassic.ScriptEngine.CallGlobalFunction[T](String functionName, Object[]
argumentValues)
at CoffeeSharp.CoffeeScriptEngine.Compile(String code, Boolean bare, Boolean
globals, String filename)
at CoffeeCompiler.Program.Main(String[] args)
C:\coffee>coffee.exe -o .\bin -c .\src --watch
Unhandled Exception: System.IO.IOException: The process cannot access the file '
C:\coffee\src\test.coffee' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I
nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o
ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolea
n useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detec
tEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at Program.compileScript(String dir, String fn, Boolean bare, Boolean print,
FSharpOption`1 outputDir, Boolean log)
at [email protected](FileSystemEventArgs e)
at Microsoft.FSharp.Control.CommonExtensions.SubscribeToObservable@1766.OnNex
t(T value)
at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.h@720.Invoke(Object
_arg1, TArgs args)
at [email protected](Object sender, FileSystemEventArgs e)
at System.IO.FileSystemWatcher.OnChanged(FileSystemEventArgs e)
at System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32 action, String
name)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt
32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
It's currently listed as an option for coffee.exe
, but it doesn't work.
Since the star time of CoffeeSharp is really slow, it would be a good idea to create an small app which dose the watch mode invisible as system tray app. It could be look like the Visual Studio Development Webserver.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.