Skip to content

.loreignore: one unsupported line silently discards the entire file #182

Description

@jochenhz

Lore version

lore 0.9.0+783

Installation method

Prebuilt release binary

Operating system / architecture

Windows -- x86_64

Steps to reproduce

  1. In any Lore repository, create .loreignore:
**/DerivedDataCache/
!**/Plugins/*/Binaries/

The second line is valid .gitignore and appears in some Unreal ignore templates.

  1. Add a file under an ignored path, e.g. Unreal/DerivedDataCache/VT/TEXTURE_ABC
  2. Run lore status --scan

Result: every DerivedDataCache file is reported as changed. The first rule in the .loreignore is
silently dead too — one unsupported line discards the whole file, including rules
that appear before it. Nothing in the output, at any verbosity, indicates that
.loreignore failed to load.

Removing only the second line makes the first rule work again.

Expected vs actual behavior

Expected

  1. A warning on lore status that .loreignore could not be parsed, naming the
    offending line and why.
  2. The rest of the file still applied — DerivedDataCache should remain ignored (debatable).
  3. Documentation of which .gitignore subset .loreignore supports.

Actual

.loreignore is not applied at all — every rule in the file is discarded, including
those preceding the offending line — and no warning, error, or trace is emitted at
any log level.

Component

Client (CLI)

Server context

No response

Regression?

No response

Relevant logs or output

Activity

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

    bugSomething isn't workingneeds-triageNot yet reviewed by a maintainer, awaiting initial triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions