Skip to content

Conversation

@IsaacUtah1379
Copy link

As described in #12, PowerShell will write a message to stderr if loading the PowerShell profiles takes longer than 500 ms, causing an error to be thrown when PowerJS is instantiated. This pull request allows the instantiation of PowerJS even when the profiles take more than 500 ms to load by altering the statement checking #readerr to instead check a copy of #readerr that has had all matches to the RegEx /Loading personal and system profiles took \d+ms\./g replaced with the empty string and extraneous whitespace trimmed away.

Closes #12.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PowerJS fails to start if the PowerShell profile takes too long to load

1 participant