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

[Bug]: commas as decimal separators importing from ods is broken #2963

Open
3 tasks done
frforest47 opened this issue Oct 12, 2024 · 5 comments
Open
3 tasks done

[Bug]: commas as decimal separators importing from ods is broken #2963

frforest47 opened this issue Oct 12, 2024 · 5 comments
Assignees
Labels
Bug: Critical Bugs that are breaking functionality, and must be fixed. Component: Import/Export

Comments

@frforest47
Copy link

JASP Version

0.19.1

Commit ID

No response

JASP Module

Unrelated

What analysis are you seeing the problem on?

toutes les analyses

What OS are you seeing the problem on?

macOS Intel

Bug Description

Erreurs de lecture du fichier original LibreOffice, non respect des virgules au lieu des points, certaines variables X 10, 100 ou 1000 sans correspondance avec les décimales orignales, toutes les variables affichées avec des points dans Jasp; quand une analyse réussit à se rendre au bout sans crash, résultats complètement farfelus, mais le système s'effondre avant la plupart du temps. J'ai des images concernant la mauvaise lecture, ci-joint.
Jasp erreurs de lecture
À gauche, le fichier original Libre Office, à droite le fichier généré par Jasp. Seule la colonne "cal act OR" semble avoir été lue correctement, et la colonne "pas quot" affiche 6 décimales après un point, et non une virgule; de plus, cette colonne est classée comme qualitative.J'ai essayé de nombreuses versions de Jasp, sans en trouver une qui fonctionne correctement; j'ai aussi ssayé plusieurs versions e LibreOffice, sans plus de résultats. Je travaille avec ces 2 logiciels depuis de nombreuses années, sans problème. Ce n'est que depuis les modifications du système OS (actuellement: 15.0.1, mais je ne sais pas à partir de quelle version les problèmes sont apparus, ça change tellement vite!) que j'éprouve ces difficultés. Le coupable: Mac OS, LibreOffice, ou Jasp ???? Que faire ??? Merci!

Expected Behaviour

Lecture des fichiers LibreOffice comme avant, sans problème, et analyses subséquentes aussi comme avant, sans problème.

Steps to Reproduce

  1. Ouvrir un fichier LibreOffice
  2. Le fichier Jasp est déjà corrompu à la simple lecture
  3. Crash de Jasp, ou résultats d'analyses complètement farfelus
    JASP 2024-10-12 11_01_18 Desktop.log
    JASP 2024-10-12 11_01_18 Engine 0.log
    JASP 2024-10-12 11_05_40 Desktop.log
    JASP 2024-10-12 11_05_40 Engine 0.log
    JASP 2024-10-12 11_07_01 Desktop.log
    JASP 2024-10-12 11_07_01 Engine 0.log

...

Log (if any)

JASP 2024-10-12 11_01_18 Desktop.log
JASP 2024-10-12 11_01_18 Engine 0.log
JASP 2024-10-12 11_05_40 Desktop.log
JASP 2024-10-12 11_05_40 Engine 0.log
JASP 2024-10-12 11_07_01 Desktop.log
JASP 2024-10-12 11_07_01 Engine 0.log

More Debug Information

-------- Application Info --------
JASP Version: JASP 0.19.1 (Intel)
Build Branch: development
Build Date: Sep 9 2024 22:46:00 (Netherlands)
Last Commit: 8ac10c9c7aec029fdd695262d7bb4c3742a8ec89

-------- Basic Info --------
Operating System: macOS 15.0
Product Version: 15.0
Kernel Type: darwin
Kernel Version: 24.0.0
Architecture: x86_64
Install Path: /Applications/JASP.app/Contents/MacOS
Platfotm Name: cocoa
System Local: en_CA

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.
@boutinb
Copy link
Contributor

boutinb commented Oct 14, 2024

Hi @frforest47 What kind of file is it exactly (ods, csv, ...)?
Would it be possible to send us this file: for this just drag-and-drop the file in a comment in this GitHub issue.

@shun2wang
Copy link
Contributor

shun2wang commented Oct 14, 2024

I can't read that text, but from the pictures, the left and right sides just show different precisions, JASP shows the exact value.If that's the case, it just depends on decimal placess showing you set in the LibreOffice.

JASP does not yet support showing commas as decimal separators, and this is on the todo list.

@shun2wang shun2wang changed the title [Bug]: MacBook Air, OS Sequoia 15.0.1, LibreOffice 24.8.1 (X86_64): Jasp a rencontré une erreur interne inattendue: The engine crashed... Jasp ne peut pas continuer et va fermer. Erreurs de lecture du fichier original LibreOffice, non respect des virgules au lieu des points, certaines variables X 10, 100 ou 1000 sans correspondance avec les décimales orignales, toutes les variabls affichées avec des points dans Jasp; quand une analyse réussit à se rendre au bout sans crash, résultats complètement farfelus, mais le système s'effondre avant la plupart du temps. J'ai des images concernant la mauvaise lecture, mais ne sais pas comment vous les transmettre. [Bug]: commas as decimal separators Oct 14, 2024
@tomtomme
Copy link
Member

tomtomme commented Oct 14, 2024

@shun2wang
this is about strange results when importing an ODS file that uses comma instead of dot as a separator (most browsers can translate websites on the fly, maybe (re)activate this).

@frforest47 @boutinb
JASP supported commas on import from ODS just fine in the past - so this is a regression. On import those commas get recoded as dots as intended. But now the decimal places move on import - the screenshots show this! I can also reproduce this with some data I just made up here:

x.ods.zip
x.jasp.zip

This is a bad regression. Thx for reporting it!

@tomtomme tomtomme added Bug: Critical Bugs that are breaking functionality, and must be fixed. Component: Import/Export and removed OS: macOS Intel Bug labels Oct 14, 2024
@shun2wang shun2wang changed the title [Bug]: commas as decimal separators [Bug]: commas as decimal separators importing from ods is broken Oct 14, 2024
@frforest47
Copy link
Author

frforest47 commented Oct 14, 2024 via email

@shun2wang
Copy link
Contributor

Yes you are right, it was my oversight, there is indeed a problem here, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Critical Bugs that are breaking functionality, and must be fixed. Component: Import/Export
Projects
None yet
Development

No branches or pull requests

4 participants