You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have my plugin.yml, src folder and resources folder symlinked into the source plugin folder on my test server and upon running /makeplugin {plugin_name} I receive this error:
[06:28:53] [Server thread/CRITICAL]: Unhandled exception executing command 'makeplugin Components' in makeplugin: Iterator RegexIterator returned a path "/Users/Jack/Documents/CrazedCraft/Components/plugin.yml" that is not in the base directory "/Users/Jack/Stuff/PocketMine/CC – Duels/plugins/ALPHA_Components/"
[06:28:53] [Server thread/CRITICAL]: UnexpectedValueException: "Iterator RegexIterator returned a path "/Users/Jack/Documents/CrazedCraft/Components/plugin.yml" that is not in the base directory "/Users/Jack/Stuff/PocketMine/CC – Duels/plugins/ALPHA_Components/"" (EXCEPTION) in "/plugins/DevTools.phar/src/DevTools/DevTools" at line 249
I managed to get around this by replacing this code:
//If paths contain any of these, they will be excluded
$excludedSubstrings = [
"/.", //"Hidden" files, git information etc
realpath($pharPath) //don't add the phar to itself
];
$regex = sprintf('/^(?!.*(%s))^%s(%s).*/i',
implode('|', $this->preg_quote_array($excludedSubstrings, '/')), //String may not contain any of these substrings
preg_quote($basePath, '/'), //String must start with this path...
implode('|', $this->preg_quote_array($includedPaths, '/')) //... and must be followed by one of these relative paths, if any were specified. If none, this will produce a null capturing group which will allow anything.
);
$count = count($phar->buildFromDirectory($basePath, $regex));
$sender->sendMessage("[DevTools] Added $count files");
* Disclaimer: I'm running a slightly modified version of devtools so it loads on older versions of PocketMine but I haven't altered anything that would cause this to occur. *
The text was updated successfully, but these errors were encountered:
I have my plugin.yml, src folder and resources folder symlinked into the source plugin folder on my test server and upon running
/makeplugin {plugin_name}
I receive this error:I managed to get around this by replacing this code:
With this older code from the original repo:
* Disclaimer: I'm running a slightly modified version of devtools so it loads on older versions of PocketMine but I haven't altered anything that would cause this to occur. *
The text was updated successfully, but these errors were encountered: