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

import issue [observing lists] #3586

Closed
axd1967 opened this issue Jan 10, 2024 · 10 comments
Closed

import issue [observing lists] #3586

axd1967 opened this issue Jan 10, 2024 · 10 comments
Assignees
Labels
bug Something likely wrong in the code importance: low Small problem, rarely visible, no crash state: confirmed A developer can reproduce the issue
Milestone

Comments

@axd1967
Copy link
Contributor

axd1967 commented Jan 10, 2024

Expected Behaviour

Actual Behaviour

Describe or maybe attach a screenshot?

Steps to reproduce

  1. open observing lists dialog
  2. open import dialog
  3. make sure to filter for *.json
  4. import attached JSON file 2024-ssb.json
  5. BUG: observe that some comets are not imported

System

  • Stellarium version: Version 24.4.8-0de39da [master] Based on Qt 5.12.8
    Operating System: Kubuntu 20.04
    KDE Plasma Version: 5.18.8
    KDE Frameworks Version: 5.68.0
    Qt Version: 5.12.8
    Kernel Version: 5.4.0-169-generic
    OS Type: 64-bit
    Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
    Memory: 15.3 GiB of RAM

Logfile

log.txt

@alex-w
Copy link
Member

alex-w commented Jan 10, 2024

Please attach your ssystem_minor.ini file, because in my environment the 3 lines are missing, but this is OK - no objects, no import.

@axd1967
Copy link
Contributor Author

axd1967 commented Jan 10, 2024

ssystem_minor.ini.txt

that could explain it, even if it's conceptually not OK. in such a case, at least a warning should be issued for the missing objects. the user should be able to import the missing objects, even if this is a drag.

WORKAROUND

Before importing a bookmark file, ensure all objects have prior been imported via the SSB editor. This is not workable for large files, but OTOH it is a temporary issue.

@axd1967
Copy link
Contributor Author

axd1967 commented Jan 10, 2024

Looks like those comets are present in my ssystem file. except
C/2023 A3 (Tsuchinshan-ATLAS)

@alex-w alex-w added bug Something likely wrong in the code state: confirmed A developer can reproduce the issue importance: low Small problem, rarely visible, no crash labels Jan 10, 2024
Copy link

Hello @axd1967!

OK, developers can reproduce the issue. Thanks for the report!

@gzotti
Copy link
Member

gzotti commented Jan 10, 2024

It is only a bug if objects existing in ssystem_minor.ini are not found. Else it is expected that imported lists have been exported from a fully compatible program.

The message in the logfile could be expanded to echo the inconvertible passage. Else, I disagree yet another time about having to automatically import missing objects via SSE plugin first. This only makes things more complicated. If an object is not found, a popup window could be shown. OTOH, if you create a bookmark file with 2000 asteroids, then delete the ssystem_minor.ini and try to import the bookmark file, you will have to acknowledge 2000 "object not found: XY" popups. Not what I want. The only change could be

  • echo the bad section to logfile to know which object gives trouble. Avoid same error message at two even closely related places in code.
  • Show generalized popup warning "There were errors. See logfile".

@alex-w
Copy link
Member

alex-w commented Jan 10, 2024

It is only a bug if objects existing in ssystem_minor.ini are not found. Else it is expected that imported lists have been exported from a fully compatible program.

Please try use attached files - I can confirm the issue in linux

@gzotti
Copy link
Member

gzotti commented Jan 12, 2024

The problem is that a legacy bookmarks file is being loaded. We have extended the bookmarks feature into observing lists, but did not remove the code to load 2020-style bookmarks before going 1.0. Actually, after loading, for a last time after upgrading from 0.20 or so, some old bookmarks should be imported as first observing list, and users would never go back to the old format. In a perfect world, users would load only real obslists after 2021, and we could remove that compatibility code which may indeed be broken for some reason.

gzotti added a commit that referenced this issue Jan 12, 2024
Also start on #3586, try to echo unreadable section.
@gzotti gzotti self-assigned this Jan 21, 2024
@gzotti gzotti added this to the 24.1 milestone Jan 21, 2024
@gzotti gzotti closed this as completed in d3f5532 Jan 23, 2024
@gzotti
Copy link
Member

gzotti commented Jan 23, 2024

OMG, that was really messed up. We have list names and OLUD. Duplicate names broke the entire list system. I hope this is OK now.

@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label Jan 27, 2024
Copy link

Hello @axd1967!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Mar 26, 2024
Copy link

Hello @axd1967!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something likely wrong in the code importance: low Small problem, rarely visible, no crash state: confirmed A developer can reproduce the issue
Development

No branches or pull requests

3 participants