Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Import-Module in profile causes freeze #15

@vr8hub

Description

@vr8hub

PS 5.1 on Win10 1709.

Create a profile.ps1 with a single line in it:
Import-Module PSColor

Start ISE (regular or Administrator) with that profile file. It freezes — no response to keyboard, mouse, etc. It has to be killed from Task Manager.

Rename the profile.ps1 to something like pscolor.ps1. Start ISE (without any profile file). Then source the file with
. ./pscolor.ps1

It works fine. Something is happening different in the profile file than in sourcing the file.

I've had this replicated by someone else on a different system, so it's not just my system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions