Git Product home page Git Product logo

coloredprintf's People

Contributors

vbfox 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

Watchers

 avatar  avatar  avatar

coloredprintf's Issues

Please do an FSharp.Core 5.0 compatible release

Greetings!

With .Net 5.0/F# 5.0 out FSharp.Core 5.0.0 has also been released.
When using ColoredPrintf from a project using the version above nuget warnings are issued (but otherwise working correctly)

NU1608 Detected package version outside of dependency constraint: BlackFox.ColoredPrintf 1.0.3 requires FSharp.Core (>= 4.2.3 && < 5.0.0) but version FSharp.Core 5.0.0 was resolved.

Please provide a newer release where this constraint is loosened/adjusted.

Thank you!

F# 5 string interpolation

๐Ÿ‘‹ Is ColoredPrintf expected to work with F# 5 string interpolation?

(tasks
   |> Array.iter (fun t -> colorprintf $"$gray[{t.Title}]"))

throws this error

Unhandled exception. System.Exception: Expected function with 1 arguments
   at BlackFox.MasterOfFoo.Core.PrintfBuilding.go@356-3(Int32 n, Type[] buf, Type ty, Int32 i)
   at BlackFox.MasterOfFoo.Core.PrintfBuilding.extractCurriedArguments(Type ty, Int32 n)
   at BlackFox.MasterOfFoo.Core.PrintfBuilding.PrintfBuilder`3.parseFromFormatSpecifier(PrintableElement prefix, String s, Type funcTy, Int32 i)
   at BlackFox.MasterOfFoo.Core.PrintfBuilding.PrintfBuilder`3.parseFormatString(String s, Type funcTy)
   at BlackFox.MasterOfFoo.Core.PrintfBuilding.PrintfBuilder`3.Build[T](String s)
   at BlackFox.MasterOfFoo.Core.PrintfCache.Cache`4.generate(String fmt)
   at [email protected](String delegateArg0)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at BlackFox.MasterOfFoo.MasterOfFooModule.doPrintfFromEnv[Printer,State,Residue,Result,a](PrintfFormat`4 format, a env)

Not stable behavior when using parameters %

Hello Julian.
I'm trying to use your library. Thank interesting library.
Unfortunately found not stable behavior.

Correct behavior:

> printfn "1 2 3" 
1 2 3
> colorprintfn "1 2 3" 
1 2 3

Incorrect behavior:

// Partial reverse. Missing spaces.
> printfn "1 2 %d" 3
1 2 3
> colorprintfn "1 2 %d" 3
31 2

> printfn "1 %d %d" 2 3
1 2 3
> colorprintfn "1 %d %d" 2 3
231

// Missing spaces:
printfn "%d %d %d" 1 2 3
1 2 3
> colorprintfn "%d %d %d" 1 2 3
123

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.