fix: resolve several issues with watch command #137
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.
Jira Issue URL
N/A
High-Level Description
Addresses several issues with the watch command as described in the issues mentioned below in Changelog section.
watch
command so all testing performed againstwatch
was manual. Testing was performed on Windows 11 & Ubuntu 20.04 (via WSL) but not on Mac as I don't have a Mac. Without any tests, it's difficult to guarantee that no regressions have been introduced but manual testing of all the issues "passed" as did testing of random usage in/around the modified code.watch
deploys all files in modified file directory that start with same character as modified file #128) of the two issues (bug:watch
command deploys unmodified files that match a modified files filename #138 being the other) related to unmodified files being deployed by watch when a file is changed. Please see bug:watch
command deploys unmodified files that match a modified files filename #138 for the remaining issue that exists that likely should be considered a critical issue and addressed ASAP.Changelog:
Resolves #127 -
watch
encountersUnable to handle file change: stat : no such file or directory
exception if-d
option is not specifiedResolves #128 -
watch
deploys all files in modified file directory that start with same character as modified fileResolves #129 -
watch
command encountersindex out of range [1] with length 1
when-d
option contains a.
Resolves #130 -
watch
command encountersindex out of range [2] with length 2
exception when-d
directory name contains portion of its parent directory nameResolves #131 -
watch
command encountersindex out of range [0] with length 0
exceptionResolves #132 -
watch
command encountersindex out of range [1] with length 1
when file outside of-d
directory is modifiedAddresses the watch portion of #136 - Logging field capturing the target directory is blank when executing
retrieve
orwatch
without-d
option