Git Product home page Git Product logo

coffeesharp's People

Contributors

tomlokhorst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

coffeesharp's Issues

When can we expect an upgrade?

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.

Watching throws The directory name is invalid.

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, FSharpOption1 outputDir)
at [email protected](String src)
at Microsoft.FSharp.Primitives.Basics.List.map[T,TResult](FSharpFunc2 mapping, FSharpList1 x)
at Program.main(String[] args)

It seems the directory which is passed to the filesystemwatcher is always string empty.

Visual Studio 2010 Syntaxhighlighting

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.

Make CoffeeSharp assembly strong-named

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.

Watch and compile as SystemTrayApp

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.

Switch when clauses crash

-- 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)

Why --watch could not work in Intellij IDEA?

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++).

FR: watch for new files

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!

FSharp.Core 4.0.0 FileNotFound exception

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?

watch locking test.coffee?

C:\coffee>coffee.exe -o .\bin -c .\src --watch

  1. Watch initially runs correctly. 2) make a a change to .\src\test.coffee and save: output shows that it compiled 2twice. eg 1:30:04 PM - compiled test.coffee
    1:30:13 PM - compiled test.coffee
  2. save test.coffee again and I get the following error:

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.