Repository navigation
add further tracing when spawning shells on Windows - #3975
Merged
Merged
Conversation
Gulddreng
approved these changes
Feb 10, 2018
Gulddreng
approved these changes
Feb 10, 2018
Gulddreng
approved these changes
Feb 10, 2018
Gulddreng
approved these changes
Feb 10, 2018
Gulddreng
approved these changes
Feb 10, 2018
Gulddreng
approved these changes
Feb 10, 2018
shiftkey
force-pushed
the
even-moar-tracing
branch
from
February 11, 2018 06:45
c32269b to
5ccdba7
Compare
shiftkey
changed the base branch from
better-error-handling-ENOENT
to
master
February 11, 2018 06:45
shiftkey
commented
Feb 13, 2018
| process.env.SystemRoot || 'C:\\Windows' | ||
| ) | ||
|
|
||
| if (await pathExists(path)) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
09.02.2018. 05.59, "Brendan Forster" <[email protected]> је
написао/ла:
… 🌵🌵🌵 **TODO: rebase this after #3954
<#3954> is merged, as this builds
upon that 🌵🌵🌵
I was refreshing the docs in #3962
<#3962> and realised this area of
the codebase had gotten rather gnarly, so here's what I want to address:
- improve readability of the main function by extracting the logic out
and making the flow a bit easier to understand
- use pathExists where appropriate as a sanity check (if it doesn't
exist, we're gonna have a bad time) or log a debug message if this
assumption fails
- test these shells locally to ensure they work as expected for known
good configs
------------------------------
You can view, comment on, or merge this pull request online at:
#3975
Commit Summary
- extract this fiddly code to make it a bit easier to follow
- extract PowerShell function
- reorder imports
- add tracing and checks when resolving shells
File Changes
- *M* app/src/lib/shells/win32.ts
<https://github.com/desktop/desktop/pull/3975/files#diff-0> (150)
Patch Links:
- https://github.com/desktop/desktop/pull/3975.patch
- https://github.com/desktop/desktop/pull/3975.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3975>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AghpNYyq0aqhZqIoZPVJPshSr6-B_4Mlks5tS9DIgaJpZM4R_a4Z>
.
|
Member
Author
|
This is less pressing given that #4044 is the root cause of our shells issue, but it's still some nice improvements to have. Moving to 1.1.x to review once things have settled down. |
niik
approved these changes
Feb 28, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was refreshing the docs in #3962 and realised this area of the codebase had gotten rather gnarly, so here's what I want to address:
pathExistswhere appropriate as a sanity check (if it doesn't exist, we're gonna have a bad time) or log a debug message if this assumption fails