Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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