-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: pyRevit CLI Doesn't look for 100% match in extension names when parsing #2367
Comments
This is by design, since the pyRevit/dev/pyRevitLabs/pyRevitLabs.PyRevit/PyRevitExtensions.cs Lines 29 to 33 in f9fa0d2
To perform an exact search, you should use |
Huh, well that answers that. Would it be fair to say then that the regex search is why |
To my knowledge, this is the main entrypoint for extensions to be discovered (and IIRC for the extensions window to be properly populated), so yes, we still need it. |
have you tried to do the exact match search as stated in my first answer, using the |
FYI, this is the regular expression explained, in which you can see the exact match working https://regex101.com/r/MW4qfM/1 |
✈ Pre-Flight checks
🐞 Describe the bug
When I go to perform extenion-centreic commands in the pyRevit CLI, I notice (when using the
--debug
suffix) that the CLI is not looking for a 100% match in name when parsing though extensions.I have create a suite of extensions for the firm I work for, with one general extension for all Revit users, and two other, discipline specific, ones. They are named:
I've noticed when using the CLI, for example the command
pyrevit extensions info TPpyRevitTools --debug
, that the CLI does not look for a 100% match in the name in the extension, resulting the first extension (TPpyRevitTools) matching with all three.This appears to be causing issues elsewhere, like calling
pyrevit extensions
will pull the right extension type for the disciple specific extensions, but not the general one (sample output below)⌨ Error/Debug Message
Below is the output when running the above-mentioned command in the CLI, where the fault is shown at the end when it matches TPpyRevitTools with the two other discipline-specific extensions as well
And below is the output when calling pyrevit extensions, alongside the extensions.json file
and here's the associated extensions.json
♻️ To Reproduce
⏲️ Expected behavior
When parsing though extensions, pyRevit CLI should only register a 100% match and not register if the target name is contained in the name being checked.
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
Side note/Question: should we still be needing the extensions.json file? I though the bundle.yaml in each of the extensions root was supposed to take care of holding information for each extension to be displayed when running
pyrevit extensions
as well as in the extension page on the pyRevit toolbar.The text was updated successfully, but these errors were encountered: