Skip to content

fix: CLI, removed exception from ClearAllCaches#2579

Merged
jmcouffin merged 8 commits intopyrevitlabs:developfrom
thumDer:fix/2570
Feb 20, 2025
Merged

fix: CLI, removed exception from ClearAllCaches#2579
jmcouffin merged 8 commits intopyrevitlabs:developfrom
thumDer:fix/2570

Conversation

@thumDer
Copy link
Copy Markdown
Contributor

@thumDer thumDer commented Feb 13, 2025

Description

The CLI installer process runs actions with the installed CLI, and in some scenarios (the %APPDATA%\pyRevit directory doesn't exist yet) it throws an exception breaking the installer, that just rolls back.


Related Issues

Copy link
Copy Markdown
Contributor

@devloai devloai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the changes that remove the exception from ClearAllCaches. The changes look good and appropriately address the installer failure issue. I have a couple of minor suggestions:

  1. Consider using the class's logger instance instead of Console.WriteLine for consistency
  2. Some minor code style improvements around comment placement

Follow-up suggestion: @devloai apply all suggested changes

jmcouffin and others added 4 commits February 13, 2025 16:49
Co-authored-by: devloai[bot] <168258904+devloai[bot]@users.noreply.github.com>
Co-authored-by: devloai[bot] <168258904+devloai[bot]@users.noreply.github.com>
jmcouffin
jmcouffin previously approved these changes Feb 13, 2025
@jmcouffin
Copy link
Copy Markdown
Contributor

thanks @thumDer

Copy link
Copy Markdown
Contributor

@sanzoghenzo sanzoghenzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My two cents.
We could even remove the debug messages (and thus the else branches) since, as the comment says, the request is satisfied anyway

@jmcouffin jmcouffin added Command Line Utility (CLI) Issues related to pyRevit CLI tool [subsystem] Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] labels Feb 14, 2025
@jmcouffin jmcouffin changed the title removed exception from ClearAllCaches fix: CLI, removed exception from ClearAllCaches Feb 15, 2025
@jmcouffin jmcouffin merged commit e91baa5 into pyrevitlabs:develop Feb 20, 2025
@jmcouffin
Copy link
Copy Markdown
Contributor

Thanks @thumDer and @sanzoghenzo

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.0.0.25051+1224-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.0.1.25051+1231-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New public release are available for 5.0.1.25051+1323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Command Line Utility (CLI) Issues related to pyRevit CLI tool [subsystem]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CLI Installer issues

3 participants