Skip to content

Changes to plugins aren't picked up after bot restart #117

@Tadas

Description

@Tadas

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 ?

Import-Module -Name $manifestPath -Scope Local -Verbose:$false -WarningAction SilentlyContinue

Steps to Reproduce (for bugs)

  1. Create a new plugin module, install
  2. !help and observe functions in our plugin
  3. Add new function to plugin module
  4. Restart bot without restarting PowerShell session
  5. !help and 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions