From: <no...@tc...> - 2025-10-05 08:03:55
|
Automated mail by fx, on behalf of no...@tc... Ticket Change [99175819ef6ccf2064254a8de7cf76218710ce7be8c81e6e613dbadc80a07cd6] [pluginmgr doesn't find modules in subdirectories] By juliannoble2 For Tcllib On 2025-10-05T07:56:46.110 Details https://core.tcl-lang.org/tcllib/tinfo?name=99175819ef6ccf2064254a8de7cf76218710ce7be8c81e6e613dbadc80a07cd6 Ticket https://core.tcl-lang.org/tcllib/tktview/dffc63972b36e91815406c8ade6577de5c1b738e Changed Fields assignee: nobody closer: nobody comment: The list method uses the following to try to trigger a scan of packages: $sip eval {catch {package require bogus-package}} This is sufficient to trigger a scan for pkgIndex.tcl based packages, but not for any modules within subdirectories. It seems the -pattern for pluginmgr only works effectively when specified as the last element in a path such as ::project::packages::* (not documented as so - but the regexp capture makes it seem that's the intention e.g using -pattern proj* would return something truncated like "ect") Given that behaviour - using the pattern to create a bogus package require of the right depth might be a better way to update the package database so that list will match the right patterns from 'package names'. set bogus [string map {* bogus-package} $pattern] $sip eval [list catch [list package require $bogus]] is_private: 0 login: juliannoble2 priority: 5 Medium private_contact: 957fdfcd8744611e3fe1f4896c7538b1d9bf47b2 resolution: None severity: Minor status: Open submitter: juliannoble2 subsystem: pluginmgr title: pluginmgr doesn't find modules in subdirectories type: Bug ------------------------------------------------------------ See Tcl/Tk development @ http://core.tcl-lang.org/ ------------------------------------------------------------ |