Skip to content

Skip lines possessively in Forge loading failed pattern - #199

Open
pavog wants to merge 1 commit into
masterfrom
forge-loading-failed-pattern-backtracking
Open

pavog wants to merge 1 commit into
masterfrom
forge-loading-failed-pattern-backtracking

Conversation

@pavog

@pavog pavog commented Nov 13, 2026

Copy link
Copy Markdown
Member

The loading-failed-exception pattern of ModDependencyProblem skipped lines with (?:.*\n)*, which hits the JIT stack limit on entries of about 1 MB, so the missing dependency wasn't reported.

This PR makes the line possessive (.*+), so backtracking happens per line instead of per character.
The outer repetition stays greedy on purpose: a lazy one would report the first instead of the last dependency in the list and change existing results.

Knowingly not covered: only one dependency of the list is reported, that's a separate change.

Changes

  • make the skipped lines possessive in ModDependencyProblem
  • remove it from KNOWN_UNSAFE_PATTERNS

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant