Skip to content

Commit

Permalink
Merge pull request #81 from pavog/paper-missing-dependency
Browse files Browse the repository at this point in the history
Detect missing / unknown dependencies errors in newer versions of Paper
  • Loading branch information
matthi4s authored Jul 4, 2024
2 parents 8085011 + 649e533 commit d5bbc27
Show file tree
Hide file tree
Showing 9 changed files with 1,163 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/Analysis/Problem/Bukkit/PluginDependenciesProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public function getMessage(): string
*/
public static function getPatterns(): array
{
return ['/Could not load \'(plugins[\/\\\]((?!\.jar).*)\.jar)\' in folder \'[^\']+\'\norg\.bukkit\.plugin\.UnknownDependencyException\: Unknown\/missing dependency plugins: \[([\w ,]+)\]/'];
return [
'/Could not load \'(plugins[\/\\\]((?!\.jar).*)\.jar)\' in (?:folder )?\'[^\']+\''
. '\norg\.bukkit\.plugin\.UnknownDependencyException\: Unknown\/missing dependency plugins: \[([\w ,]+)\]/'];
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Analysis/Problem/Bukkit/PluginDependencyProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public function getMessage(): string
*/
public static function getPatterns(): array
{
return ['/Could not load \'(plugins[\/\\\]((?!\.jar).*)\.jar)\' in folder \'[^\']+\'\norg\.bukkit\.plugin\.UnknownDependencyException\: (?:(\w+)\n|Unknown dependency (\w+)\.)/'];
return [
'/Could not load \'(plugins[\/\\\]((?!\.jar).*)\.jar)\' in (?:folder )?\'[^\']+\''
. '\norg\.bukkit\.plugin\.UnknownDependencyException\: (?:(\w+)\n|Unknown dependency (\w+)\.)/'];
}

/**
Expand Down
Loading

0 comments on commit d5bbc27

Please sign in to comment.