Skip to content

[Bug]: Can't Create Libraries #535

Closed
@CyanVoxel

Description

@CyanVoxel

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

main branch

Operating System & Version

Windows 10

Description

Attempting to create a library results in a version mismatch error instead of falling back to new library creation. This is likely due to the code introduced in #503 that creates a library version mismatch error when no version value is found, which would also be true if there is no library in the first place.

Expected Behavior

Creating a new library/opening a library at a location which does not already contain a library should result in a new library being created.

Steps to Reproduce

  1. Go to File -> Create/Open Library
  2. Select a location that does not already contain a TagStudio library

Alternative:
2. Pass "-o" "" as launch arguments before running the program

Logs

2024-10-07 15:48:37 [info     ] resources registered           count=24
2024-10-07 15:48:37 [info     ] Config File not specified, using default one filename=C:/Users/Faceboji/AppData/Roaming/TagStudio/TagStudio.ini
2024-10-07 15:48:41 [info     ] update_widgets                 selected=[]
2024-10-07 15:48:41 [info     ] opening library                connection_string=sqlite:///F:\Example 2\.TagStudio\ts_library.sqlite library_dir=WindowsPath('F:/Example 2')
2024-10-07 15:48:41 [info     ] creating db tables

Metadata

Metadata

Assignees

No one assigned

    Labels

    TagStudio: LibraryRelating to the TagStudio library systemType: BugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions