Skip to content

2.0.1 file import: file:/// link to a directory crashes the db-worker (null lastIndexOf/toLowerCase), following files silently dropped #1403

Open

Description

@oliveremmler

Repro: A block with [📁](file:///Users/me/Some%20Folder/) (trailing slash, or path with literal parentheses). path/filename returns nil, split-ext/lower-case throw inside the worker. The renderer then reports db-worker has not been initialized for the next files; in our run 430 pages were silently missing from the result. Master guards pdf-file? with some->; 2.0.1 does not.

Environment

  • macOS 26.6 (Apple Silicon), Logseq Stable 2.0.1 (b09316a, 2026-07-13), Logseq Nightly 20260919, master 22a29b30 via nbb-logseq 1.2.173-feat-db-v34
  • Graph: 4,440 Markdown files (3,457 pages, 982 journals), 754 assets, German (umlauts), heavy use of namespaces, tags::, Readwise and Zotero exports

Found while migrating a 4,400-file graph; happy to provide more details or test a fix.

Activity

  1. yuxi-liu-wired commented on Oct 28, 2026

    @yuxi-liu-wired

    This looks fixed on current master (d06ded9971): 6d2d0d253c (2026-09-02) guards pdf-file? with (string? (path/filename path)) (deps/graph-parser/src/logseq/graph_parser/exporter.cljs:1356-1360). This can probably be closed; reopen if it still happens on a recent build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions