Add leaveOpen overloads for SepReaderOptions.From* via SepTextReaderDisposers#530
Conversation
Agent-Logs-Url: https://github.com/nietras/Sep/sessions/e25d2005-3363-428e-86f5-1be461f8babc Co-authored-by: nietras <10798831+nietras@users.noreply.github.com>
|
this is bad, you shouldn't add a new set of types for disposal |
|
also use StreamReader(Stream, Encoding, Boolean, Int32, Boolean) ctor |
|
@copilot continue work as detailed by previous comments, don't add unnecessary stuff, simplify, keep succinct. |
Agent-Logs-Url: https://github.com/nietras/Sep/sessions/19904039-5cc6-4f0a-a6cd-55ebc5c309c7 Co-authored-by: nietras <10798831+nietras@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nietras/Sep/sessions/19904039-5cc6-4f0a-a6cd-55ebc5c309c7 Co-authored-by: nietras <10798831+nietras@users.noreply.github.com>
Updated in db7fc04. I removed the extra disposal types and restored the original
Updated in db7fc04. The stream-based reader overloads now use the
Addressed in db7fc04. The change is simplified and limited to the native stream-based Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot ok you we're right to include Reader equivalent to below, so revert to that and ensure leaveOpen for Reader matches Writer closely. interface ISepTextWriterDisposer sealed class SepTextWriterDisposer : ISepTextWriterDisposer sealed class NoopSepTextWriterDisposer : ISepTextWriterDisposer |
Agent-Logs-Url: https://github.com/nietras/Sep/sessions/f84c8c35-3a73-427d-87d8-8392b865b1ba Co-authored-by: nietras <10798831+nietras@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nietras/Sep/sessions/f84c8c35-3a73-427d-87d8-8392b865b1ba Co-authored-by: nietras <10798831+nietras@users.noreply.github.com>
Updated in b9d8a63. I restored the reader-side disposer pattern, brought back the text-reader leave-open overloads/tests, and aligned async reader disposal with the same leave-open flow. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
leaveOpen overloads for SepReaderOptions.From* via SepTextReaderDisposers
|
@copilot review PR after I fixed issues. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #530 +/- ##
==========================================
- Coverage 99.64% 99.58% -0.07%
==========================================
Files 56 57 +1
Lines 4794 4815 +21
Branches 538 540 +2
==========================================
+ Hits 4777 4795 +18
Misses 14 14
- Partials 3 6 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Reviewed current head e01cb76. I don’t see any remaining issues in the leave-open reader changes, and the focused Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
Fix #529 |
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [Sep](https://github.com/nietras/Sep) | `0.13.0` → `0.14.1` |  |  | --- ### Release Notes <details> <summary>nietras/Sep (Sep)</summary> ### [`v0.14.1`](https://github.com/nietras/Sep/releases/tag/v0.14.1): 0.14.1 #### What's Changed - Improve SepReaderOptions.Unescape/.Trim comments by [@​nietras](https://github.com/nietras) in [#​542](nietras/Sep#542) - Improve SepReader/WriterExtensions.Strict() comments by [@​nietras](https://github.com/nietras) in [#​543](nietras/Sep#543) **Full Changelog**: <nietras/Sep@v0.14.0...v0.14.1> ### [`v0.14.0`](https://github.com/nietras/Sep/releases/tag/v0.14.0): 0.14.0 #### What's Changed - Add `leaveOpen` overloads for SepReaderOptions.From\* via SepTextReaderDisposers by [@​Copilot](https://github.com/Copilot) in [#​530](nietras/Sep#530) - Bump MSTest from 4.2.1 to 4.2.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​533](nietras/Sep#533) - Bump github/codeql-action from 4.35.2 to 4.35.3 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​532](nietras/Sep#532) - Bump step-security/harden-runner from 2.19.0 to 2.19.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​531](nietras/Sep#531) - Confirm statuses:write is the correct minimum permission for super-linter (not checks:write) by [@​Copilot](https://github.com/Copilot) in [#​540](nietras/Sep#540) **Full Changelog**: <nietras/Sep@v0.13.0...v0.14.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNzguMCIsInVwZGF0ZWRJblZlciI6IjQzLjE3OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/98
SepReaderIO extension methods always closed the underlying stream/reader on dispose, unlike the corresponding writer APIs. This made ownership hard to control when composing readers over externally managed streams.API surface
leaveOpenoverloads for reader creation from:StreamFunc<string, Stream>TextReaderFunc<string, TextReader>Implementation
StreamReader(Stream, Encoding, Boolean, Int32, Boolean)for stream-backed reader overloads.SepReaderleave-open behavior matches writer closely for both sync and async disposal paths.leaveOpen: false) for current callers.Coverage
leaveOpen: trueandleaveOpen: falsepaths.> [!WARNING]
>
>