Skip to content

Conversation

rkeithhill
Copy link
Contributor

This error happens because when log level is set to Diagnostic, we use
Start-Transcript to log the output of Start-EditorServices.ps1.
But the log filename we we're using was always Start-EditorServices.log.
When we start a temp console debug session, it's using the
Start-EditorServices.ps1 script to start the debug session.
That attempts to log to the original log file which is locked.
This causes an error. The fix is to append the log filename
which will be unique per launch of the Start-ES script.

This error happens because when log level is set to Diagnostic, we use
Start-Transcript to log the output of Start-EditorServices.ps1.
But the log filename we we're using was always Start-EditorServices.log.
When we start a temp console debug session, is using the
Start-EditorServices.ps1 script to start the debug session.
That attempts to log to the original log file which is locked.
This causes an error. The fix is to append the log filename
which will be unique per launch of the Start-ES script.
Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@TylerLeonhardt TylerLeonhardt merged commit 045d65b into master Jun 28, 2018
@TylerLeonhardt TylerLeonhardt deleted the rkeithhill/fix-transcript-error branch June 28, 2018 18:38
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.

3 participants