-
-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
While working on a plugin I've added a new function to the plugin module. I've restarted PoshBot but the new function isn't detected. Changes to existing functions seem to get picked up.
Expected Behavior
If I make changes to a plugin module and restart the bot I'd expect the changes to become live
Current Behavior
Possible Solution
Add -Force to Import-Module ?
PoshBot/PoshBot/Classes/PluginManager.ps1
Line 467 in d1fba82
| Import-Module -Name $manifestPath -Scope Local -Verbose:$false -WarningAction SilentlyContinue |
Steps to Reproduce (for bugs)
- Create a new plugin module, install
!helpand observe functions in our plugin- Add new function to plugin module
- Restart bot without restarting PowerShell session
!helpand observe functions in our plugin
Context
Your Environment
- Module version used: 0.11.0
Name Value
---- -----
PSVersion 5.1.17763.1
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels