Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dep on Formatting.jl? #210

Closed
haberdashPI opened this issue Jul 24, 2023 · 9 comments · Fixed by #211
Closed

Remove dep on Formatting.jl? #210

haberdashPI opened this issue Jul 24, 2023 · 9 comments · Fixed by #211

Comments

@haberdashPI
Copy link

haberdashPI commented Jul 24, 2023

Given the somewhat scary errors one can get with Formatting.jl is there a good reason not to use the standard library Printf instead?

@ericphanson
Copy link
Contributor

I think this is very concerning. PrettyTables is very widely used (e.g. by DataFrames) and this is the kind of thing that can cause papers to need to be retracted, delivered analyses to be incorrect, etc.

@ronisbr
Copy link
Owner

ronisbr commented Jul 25, 2023

Done!

@haberdashPI thanks for the report!
@ericphanson thanks for the PR that fixed it! :)

@pdeffebach
Copy link
Contributor

One reason: Printf doesn't allow the %'0.2f syntax, allowing for commas as thousands separator.

So I would be supportive of moving back to Formatting.jl once their bug is fixed.

@haberdashPI
Copy link
Author

haberdashPI commented Jul 28, 2023 via email

@palday
Copy link

palday commented Jul 29, 2023

@pdeffebach @haberdashPI to the extent that we want that functionality, we could probably just migrate the relevant chunk of Formatting.jl, which is actually just wrapping Printf:

https://github.com/JuliaIO/Formatting.jl/blob/e4c9f60020e965a72abae049ddac7e02bf986067/README.md?plain=1#L139-L144

@ScottPJones
Copy link

Well, maybe you would consider moving to Format.jl 😄
I'm fixing the bugs and getting PRs that have been languishing in Formatting.jl ported and merged into Format.jl

@ronisbr
Copy link
Owner

ronisbr commented Jul 29, 2023

Hi @ScottPJones !

That would be awesome! Are the bugs that started this thread fixed in Format.jl?

@pdeffebach
Copy link
Contributor

@palday Here is the relevant issue (there seems to be an open PR).

@ScottPJones
Copy link

@ronisbr I've fixed one of them (at the Hackathon 😄 ) and I'm working on the issue with the "e" format right now.
I'm also going to look at the rest of the PRs submitted to Formatting.jl, as they seem to be languishing there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants