-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
feat: implement importing excel (.xls .xlsx) files #5638
Conversation
498b502
to
3bf0660
Compare
What nice!!! I'll try it tomorrow on Mac. |
I wonder why you did not use conan to load the freexl library. |
@@ -18,6 +18,7 @@ brotli/1.0.9 | |||
sqlite3/3.46.0 | |||
gmp/6.3.0 | |||
mpfr/4.2.1 | |||
freexl/2.0.0 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
official FreeXL has a bug, so we using a patch version from my fork.
because it cannot read more than 700 cols Excel files so I made a patch and build it manually. see my first comment. |
Do we maintain a repo of JASP, I am just using my fork for now. @boutinb |
But if I see your PR, you are using a freeXL version set in rtools. |
Yes, we using rtools msys2 build toolchain to build it on Windows and the
We have received complaints from users about multi-column importing, and Rens has applied a fix temporarily for that. Yes I had filed bugs to that project but I dont think it will be merged for quite some time, because freeXL is updated very infrequently to ensure stability, and the last release was a year ago. Your concerns are valid, EDIT: no, I used a dev branch of FreeXL which including some bugfix important. I think maybe build it manually is best choice for now. |
I agree with Bruno that adding more manual stuff to the build is not very maintainable...
I agree that staying under 700 columns until they merge your fix is not at all a problem.
What bug was fixed? I will now do an indepth review of your code ^^ |
Also, if we are going to use our modified version I would like to move that code to jasp-stats and use that one. |
Already a thing: in qml and c++ files we use tabs not spaces. So perhaps you could clean up your indentation to be tabs of 4 instead of the spaces? Edit: I see that you do use tabs in a lot of places, just not everywhere? |
Thanks for your reviews! OK let's use conan version to make build easier. and ignore 700 cols limitation. then I will following the official release. 🍻 |
d8f2695
to
0da1937
Compare
0da1937
to
298a421
Compare
298a421
to
334410c
Compare
4e6a79b
to
031fc6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works really well on Mac.
I think we can merge this for 0.19.2
I agree! Very nice @shun2wang 😃 |
* implement importing excel files * update ubuntu build bot * work on Windows * code style formatting and cleanup * add to installer and file type support * showing file type filter as a list * Use conan to load freexl * add some missing supported filetypes to macos manifest thing * use jasp-stats fork of shuns fixes for freexl * address reviews suggestions * fix build on Linux * some cleanup and comments * replace newlines in excel cell value --------- Co-authored-by: boutinb <b.boutin@uva.nl> Co-authored-by: Joris Goosen <joris@jorisgoosen.nl>
Close: jasp-stats/jasp-issues#2134
Close: https://github.com/jasp-stats/INTERNAL-jasp/issues/1390
Close: https://github.com/jasp-stats/INTERNAL-jasp/issues/412
JASP can now import excel files from first workbook and the first sheet by default.
I introduced a third-party library freexl to parse the excel files. but a known limitation is that you cannot import files with more than 705 columns (this is a bug of freexl), I made a patch to lifte this limitation temporarily.