Skip to content

Allow PowerJS to start when PowerShell profiles take a long time to load#13

Open
IsaacUtah1379 wants to merge 2 commits intoxipid:masterfrom
IsaacUtah1379:profile-loading
Open

Allow PowerJS to start when PowerShell profiles take a long time to load#13
IsaacUtah1379 wants to merge 2 commits intoxipid:masterfrom
IsaacUtah1379:profile-loading

Conversation

@IsaacUtah1379
Copy link
Copy Markdown

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