Tcl Library Source Code

View Ticket
Login
Ticket UUID: dffc63972b36e91815406c8ade6577de5c1b738e
Title: pluginmgr doesn't find modules in subdirectories
Type: Bug Version:
Submitter: juliannoble2 Created on: 2025-10-05 07:56:46
Subsystem: pluginmgr Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2025-10-05 07:56:46
Resolution: None Closed By: nobody
    Closed on:
Description:
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]]