loading pyRevitLabs.json in PyrevitCLI manually if assembly is not found#2539
Conversation
|
Automatic code review is enabled for this repository. Reviewing this PR now. |
There was a problem hiding this comment.
I've reviewed the changes for manually loading the Newtonsoft.Json assembly. The solution effectively addresses the reported issue. I've suggested some improvements to make the assembly matching more precise and add helpful debug logging. The changes look good overall and solve the core problem.
Co-authored-by: devloai[bot] <168258904+devloai[bot]@users.noreply.github.com>
…/pyRevit into dev/cli-assembly-resolve
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25024+1520-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25024+1957-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25025+1310-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25030+1056-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25030+1130-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25030+1138-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25031+1700-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25032+1615-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25032+1635-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25032+1841-wip |
|
Just for the record: I had a similar issue with another addin and it turned out one of the other dependencies had a dependency on a specific version of a specific assembly that had trouble loading, so I might have a look on all the other dependencies, if this is the case here. |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25033+1337-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25033+1402-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25034+1241-wip |
|
📦 New work-in-progress (wip) builds are available for 5.0.0.25034+1511-wip |
|
📦 New public release are available for 5.0.0.24174+2300 |
Name of your PR
Description
I couldn't make the CLI work from the develop branch, it always resulted in
The only way I've found to solve this issue is to explicitly force assembly resolution.
Checklist
Before submitting your pull request, ensure the following requirements are met:
pipenv run black {source_file_or_directory}Thank you for contributing to pyRevit! 🎉