instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alvinunreal__oh-my-opencode-slim__254 | alvinunreal/oh-my-opencode-slim | 254 | defect | d96353def5c96c83d2c1f90e9df93831a130f966 | 44d1bd13e978c5ce8d7e1278b46cd99da87276bd | Fix auto-update bun install cwd | ## Summary
- run auto-update \\`bun install\\` from the OpenCode cache directory instead of the active project directory
- add a regression test that locks the auto-update install directory to the cache path
- avoid creating \\`bun.lock\\` and \\`node_modules\\` in pnpm project roots when the plugin checks for updates
... | diff --git a/src/hooks/auto-update-checker/index.test.ts b/src/hooks/auto-update-checker/index.test.ts
new file mode 100644
index 000000000..3057b5b0d
--- /dev/null
+++ b/src/hooks/auto-update-checker/index.test.ts
@@ -0,0 +1,30 @@
+import { describe, expect, mock, test } from 'bun:test';
+
+mock.module('./constants', ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the now-unused `ctx` parameter from `runBunInstallSafe` (and update the call site at line 145 to `runBunInstallSafe()`), since `ctx.directory` was replaced by `installDir` and the parameter is dead code that may trigger `noUnusedParameters` TypeScript warnings.", "category": "maintainabil... | null |
alvinunreal__oh-my-opencode-slim__269 | alvinunreal/oh-my-opencode-slim | 269 | defect | 39d7e6b9c073521c40cfe776b8f8612d11cd9526 | f780fc0092d5960644264b22a055b55a0a7cf5c2 | fix(hooks): make file-tool nudge ephemeral | ## Summary
Make the `post-file-tool-nudge` workflow reminder ephemeral instead of appending it to persisted file tool output.
This keeps the existing delegation guardrail for the orchestrator, but changes the transport so `Read`/`Write` results stay clean:
- queues a pending reminder after `Read`/`Write` tool calls
... | diff --git a/codemap.md b/codemap.md
index 8c91c30fe..e9883b099 100644
--- a/codemap.md
+++ b/codemap.md
@@ -49,7 +49,7 @@ The plugin integrates with OpenCode to provide:
| `src/hooks/` | Lifecycle hooks for message transforms, error recovery, and rate-limit fallbacks. | [View Map](src/hooks/codemap.md) |
| `src/hook... | 1 | 1 | 0 | [{"id": "G0", "claim": "The exported POST_FILE_TOOL_NUDGE is just a re-export of PHASE_REMINDER_TEXT and unused externally, so the export alias should be removed and PHASE_REMINDER_TEXT used inline where needed inside the hook.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
alvinunreal__oh-my-opencode-slim__272 | alvinunreal/oh-my-opencode-slim | 272 | defect | 39d7e6b9c073521c40cfe776b8f8612d11cd9526 | 0c18e3591b550e0538dfef6486ba709b76a63011 | feat(config): support provider-specific model options in agent/preset config | Originally suggested by @alexzoo in #256.
## Summary
Add `options` field to agent and preset configuration, enabling provider-specific parameters (e.g., OpenAI `textVerbosity`, Anthropic `thinking` budget, Google `thinkingConfig`) to be passed through to the underlying AI SDK without prompt-level workarounds.
Closes... | diff --git a/docs/configuration.md b/docs/configuration.md
index 6e3306a01..2d99863c4 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -88,6 +88,7 @@ All config files support **JSONC** (JSON with Comments):
| `presets.<name>.<agent>.variant` | string | — | Reasoning effort: `"low"`, `"medium"`, `"high... | 2 | 2 | 1 | [{"id": "G0", "claim": "applyOverrides assigns override.options directly, discarding any default options already present on the agent's config, which is inconsistent with how other merged fields are handled; a shallow object-spread would be safer.", "category": "correctness", "verdict": "supported", "priority": "P1", "... | null |
alvinunreal__oh-my-opencode-slim__283 | alvinunreal/oh-my-opencode-slim | 283 | defect | fd1c20cb937f932cadd5f2fcb26ca52f236f7879 | 3d71513c11926eb4a60411b5b14dabf8bc5141a8 | improve intra-turn todo hygiene for stale incomplete todos | ## Summary
- add an intra-turn todo hygiene reminder for orchestrator sessions
- reduce stale `in_progress` / `pending` todo state during active runs
- strengthen the closing case where the last active todo may be left `in_progress`
## Changes
- add `src/hooks/todo-continuation/todo-hygiene.ts`
- wire todo hygiene i... | diff --git a/src/hooks/todo-continuation/index.test.ts b/src/hooks/todo-continuation/index.test.ts
index a0856c8d6..181bb853d 100644
--- a/src/hooks/todo-continuation/index.test.ts
+++ b/src/hooks/todo-continuation/index.test.ts
@@ -1,6 +1,10 @@
import { describe, expect, mock, test } from 'bun:test';
import { SLIM_I... | 2 | 2 | 1 | [{"id": "G0", "claim": "When `shouldInject` returns false, `clear(sessionID)` removes the session from both `pending` and `done`, so the next tool execution re-arms and each turn of a non-orchestrator session with open todos costs 2 extra `getTodoState` API calls indefinitely; moving the session to `done` instead of fu... | null |
alvinunreal__oh-my-opencode-slim__292 | alvinunreal/oh-my-opencode-slim | 292 | defect | d02fa2878bb013f1fc18fcc552eac56c0f23c841 | 0d3b595a083f9e2e14fa0887e410a3def920a9c5 | fix(auto-update): clarify failed install state | ## Summary
- stop telling users to restart OpenCode when `bun install` fails, and report the failure as an install error instead
- add regression coverage for the auto-update flow across local-dev skip, install-root preparation failure, successful installs, and failed installs
- make the async hook test helper wait ... | diff --git a/src/hooks/auto-update-checker/index.test.ts b/src/hooks/auto-update-checker/index.test.ts
index 2b7bd37b7..f4021543c 100644
--- a/src/hooks/auto-update-checker/index.test.ts
+++ b/src/hooks/auto-update-checker/index.test.ts
@@ -1,33 +1,258 @@
-import { describe, expect, mock, test } from 'bun:test';
+impor... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 200 ms wall-clock deadline in waitForCalls is thin for a mock-only test suite on a loaded CI runner and may cause rare CI flakiness; the deadline should be bumped (e.g. to 1000 ms).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alvinunreal__oh-my-opencode-slim__296 | alvinunreal/oh-my-opencode-slim | 296 | defect | d02fa2878bb013f1fc18fcc552eac56c0f23c841 | 7777bc5cee78735b257b88c973c7c8030ccd4c76 | fix(cli): store stable plugin paths during install | Fixes:
- https://github.com/alvinunreal/oh-my-opencode-slim/issues/293
- https://github.com/alvinunreal/oh-my-opencode-slim/issues/279 | diff --git a/src/cli/config-io.test.ts b/src/cli/config-io.test.ts
index 8dd8c347e..058481ab1 100644
--- a/src/cli/config-io.test.ts
+++ b/src/cli/config-io.test.ts
@@ -3,6 +3,7 @@
import { afterEach, beforeEach, describe, expect, mock, test } from 'bun:test';
import {
existsSync,
+ mkdirSync,
mkdtempSync,
... | 2 | 1 | 1 | [{"id": "G0", "claim": "isPluginEntry matches path-based entries only when the path itself contains the package name as a segment, so a local-dev checkout stored under a different directory name is not recognized — a second addPluginToOpenCodeConfig run leaves a duplicate plugin entry and detectCurrentConfig().isInstal... | null |
alvinunreal__oh-my-opencode-slim__300 | alvinunreal/oh-my-opencode-slim | 300 | defect | 0374135b6bb1be17378cc74e731e1847830e050c | 6a9456ce3a095e859c78fc1647102b490b06e90b | improve round-based todo hygiene and request boundary handling | Advances https://github.com/alvinunreal/oh-my-opencode-slim/pull/283.
## Summary
- refines todo hygiene from a simple intra-turn nudge into a round-based flow that injects at most one reminder per model round
- keeps hygiene scoped to the current request after `todowrite`, instead of trying to reconcile stale todos at... | diff --git a/src/hooks/todo-continuation/index.test.ts b/src/hooks/todo-continuation/index.test.ts
index 181bb853d..20944c931 100644
--- a/src/hooks/todo-continuation/index.test.ts
+++ b/src/hooks/todo-continuation/index.test.ts
@@ -67,6 +67,23 @@ describe('createTodoContinuationHook', () => {
return call;
}
... | 4 | 3 | 0 | [{"id": "G0", "claim": "The type of the messages.transform output in src/index.ts omits info.id, which is the key field for the new boundary-stability logic, though the bot notes the cast is runtime-safe.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
alvinunreal__oh-my-opencode-slim__309 | alvinunreal/oh-my-opencode-slim | 309 | defect | e8fac37f7a1ccfc8a312d1d7fc7c574331b244ec | a237d6970588cfd70f83b314828de20284a96b93 | feat: add per-session log rotation with auto-cleanup | ## Summary
- Replace single flat log file with per-session log files (`oh-my-opencode-slim.YYYYMMDDTHHMMSS.log`)
- Fix Windows-incompatible path (`process.env.HOME` → `os.homedir()`)
- Auto-cleanup log files older than 7 days on session init
- Add `OPENCODE_LOG_DIR` env var for test isolation
## Changes
| File | Cha... | diff --git a/docs/superpowers/plans/2026-04-16-logger-infrastructure.md b/docs/superpowers/plans/2026-04-16-logger-infrastructure.md
new file mode 100644
index 000000000..f4c4d4fb0
--- /dev/null
+++ b/docs/superpowers/plans/2026-04-16-logger-infrastructure.md
@@ -0,0 +1,477 @@
+# Logger Infrastructure Implementation Pl... | 6 | 3 | 2 | [{"id": "G0", "claim": "In serve mode, where a single process serves multiple chats, all log() calls share the one startup-time log file derived from a timestamp, so logs are mixed across sessions and per-session debugging is unreliable; the logger should be initialized or switched using the real OpenCode session ID wh... | null |
alvinunreal__oh-my-opencode-slim__322 | alvinunreal/oh-my-opencode-slim | 322 | defect | ae6755823d3ca9dbd29c8051d28f4e0282aaf02f | 4b7c57e71f9bf37df20f7eb08f4426d99782ff5c | fix: persist background task results to disk to survive plugin reinitialization | ## Problem
`background_output(task_id)` always returns **"Task not found"** when called after context compaction fires in the parent session.
**Root cause**: `BackgroundTaskManager` stores tasks in a plain `new Map()`. When context compaction occurs, the plugin reinitializes and creates a fresh empty Map — all comple... | diff --git a/src/background/background-manager.test.ts b/src/background/background-manager.test.ts
index 2f903a7d6..ae6285ecb 100644
--- a/src/background/background-manager.test.ts
+++ b/src/background/background-manager.test.ts
@@ -1,4 +1,7 @@
-import { describe, expect, mock, test } from 'bun:test';
+import * as fs f... | 2 | 2 | 0 | [{"id": "G0", "claim": "Nothing ever deletes the persisted bg-tasks/*.json files, so unlike the log files (which have a 7-day retention sweep) they accumulate indefinitely in long-running environments with frequent background tasks; a cleanup step such as a 7-day RETENTION_MS sweep should be added.", "category": "perfo... | null |
alvinunreal__oh-my-opencode-slim__325 | alvinunreal/oh-my-opencode-slim | 325 | defect | ae6755823d3ca9dbd29c8051d28f4e0282aaf02f | ee6b4d831989683b2680f2c9d9bf9a6bb67aa166 | feat: agent display names with custom @ invocations | ## Summary
- Add configurable display names for agents shown in OpenCode `@` autocomplete menu
- Custom agent names (e.g. `@advisor`) invoke configured agents via `@` mention
- Original internal names (e.g. `@oracle`) remain recognized
- Runtime alias resolution for background tasks and hook wiring
- Full test coverage... | diff --git a/.gitignore b/.gitignore
index d5bd379c0..aac60e0a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -56,6 +56,8 @@ GOAL.md
GOALS.md
PR-NOTES.md
REVIEW.md
+docs/plans
+docs/superpowers
# Python
__pycache__/
diff --git a/oh-my-opencode-slim.schema.json b/oh-my-opencode-slim.schema.json
index 827d9cb70..888... | 3 | 1 | 1 | [{"id": "G0", "claim": "injectDisplayNames uses the raw displayName in prompt replacement, so a user-configured displayName of '@advisor' or ' advisor ' produces '@@advisor' or '@ advisor ' in the orchestrator prompt and the SDK will not route it correctly; these inputs pass the Zod schema which only enforces minLength... | null |
alvinunreal__oh-my-opencode-slim__335 | alvinunreal/oh-my-opencode-slim | 335 | defect | 5cc945de0bbf7c6a7a43bf734ed8855bbddbb2cc | c00a588b716911f9deb38d161666f5752c1d6891 | feat(background): non-blocking question relay for background subagents | Ref #290
## Summary
Background subagents (oracle, explorer, fixer, etc.) can call OpenCode's built-in `question` tool, which blocks the session waiting for user input that never comes. This causes stuck subagents and confusing UX.
This PR:
1. **Denies the `question` tool** for all background task sessions via `calcu... | diff --git a/docs/tools.md b/docs/tools.md
index 798322b1a..a8fce0a24 100644
--- a/docs/tools.md
+++ b/docs/tools.md
@@ -15,8 +15,11 @@ Launch agents asynchronously and collect results later. This is how the Orchestr
| Tool | Description |
|------|-------------|
| `background_task` | Launch an agent in a new session... | 3 | 3 | 2 | [{"id": "G0", "claim": "Question display in background_output sanitizes only '\\n' and not '\\r', leaving a minor CR sanitization gap in the markdown-injection prevention; '\\r' should be sanitized alongside '\\n'.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
alvinunreal__oh-my-opencode-slim__336 | alvinunreal/oh-my-opencode-slim | 336 | defect | 5cc945de0bbf7c6a7a43bf734ed8855bbddbb2cc | 3b6ebea4376e5c47932c3acd7222bd95b7d1ebf4 | fix: collapse system messages for Qwen3.5 compatibility | ## Summary
Qwen3.5 models throw `"System message must be at the beginning"` error because the plugin's hooks push multiple entries into `output.system[]`, which OpenCode converts to separate `{"role": "system"}` messages in the API call. Qwen rejects multiple system messages.
Closes #315
## Root Cause
Two-part chai... | diff --git a/src/hooks/todo-continuation/todo-hygiene.test.ts b/src/hooks/todo-continuation/todo-hygiene.test.ts
index 7438ce78f..044e54b27 100644
--- a/src/hooks/todo-continuation/todo-hygiene.test.ts
+++ b/src/hooks/todo-continuation/todo-hygiene.test.ts
@@ -86,7 +86,7 @@ describe('todo hygiene', () => {
await h... | 1 | 1 | 0 | [{"id": "G0", "claim": "If output.system is an empty array, the collapse yields [''] (a single-element array containing an empty string) rather than staying []; use the more defensive form so no empty system message is emitted.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
alvinunreal__oh-my-opencode-slim__363 | alvinunreal/oh-my-opencode-slim | 363 | defect | f811de706277ef44a5ee2d3e76ef092f1c13b6a6 | 052aea70dc95d434d987f910717648b8fb68c126 | fix(agent-permissions): restrict council_session access | ```
⚙ council_session [prompt=Review the agent model fallback feature in this repo for bugs/edge cases/design issues. Focus on src/index.ts (runtimeChains/modelArrayMap + config hook model resolution + event hook), src/hooks/foreground-fallback/index.ts, src/agents/index.ts, src/agents/orchestrator.ts, src/config/sche... | diff --git a/src/agents/index.test.ts b/src/agents/index.test.ts
index 0a4b6c6d3..e1ec13570 100644
--- a/src/agents/index.test.ts
+++ b/src/agents/index.test.ts
@@ -129,6 +129,14 @@ describe('orchestrator agent', () => {
expect((orchestrator?.config.permission as any).question).toBe('allow');
});
+ test('orc... | 3 | 2 | 1 | [{"id": "G0", "claim": "The two `expect(...).rejects.toThrow(...)` assertions in the 'blocks orchestrator agent from invoking council session' and 'blocks disallowed agents from invoking council session' tests are not awaited, so the tests pass even if the runtime guard is removed and never validate the protection they... | null |
alvinunreal__oh-my-opencode-slim__365 | alvinunreal/oh-my-opencode-slim | 365 | defect | 685906f398459c601fb33fad5e6f796657d1fba5 | 2cc112cf217ead77d0237ea24e4f1dd910fbac6f | feat(agents): support custom subagent routing prompts | Allow custom agents to define prompt and orchestratorPrompt blocks while tightening validation, display-name handling, and runtime resolution. Also limit Bun test discovery to the plugin src tree so root test runs don’t recurse into the nested opencode checkout.
| diff --git a/README.md b/README.md
index 498754e0f..f839dc096 100644
--- a/README.md
+++ b/README.md
@@ -83,6 +83,10 @@ The default generated configuration looks like this:
To use Kimi, GitHub Copilot, ZAI Coding Plan, or a mixed-provider setup, use **[Configuration](docs/configuration.md)** for the full reference. ... | 3 | 1 | 1 | [{"id": "G0", "claim": "A whitespace-only orchestratorPrompt (e.g. \" \") trims to an empty string, so the startsWith('@name') guard is skipped and the field passes validation, and because Boolean(\" \") is truthy the untrimmed whitespace is later concatenated into the orchestrator prompt as invisible noise; the re... | null |
alvinunreal__oh-my-opencode-slim__370 | alvinunreal/oh-my-opencode-slim | 370 | defect | 18efaf0b2de1f99bffd3d5cc25669623f5768a0f | 85cb15a122933345c046a382c79e00388aba6bbf | fix(council): preserve pre-1.0.0 master.model as fallback for council agent | ## Summary
Fixes #369: after upgrading to 1.0.0, the council agent silently falls back to `openai/gpt-5.4-mini` (the hardcoded default) instead of using the model configured in the deprecated `council.master.model`.
This affects **every** pre-1.0.0 user who had council configured, not an edge case...
## Root Cause
... | diff --git a/src/agents/index.test.ts b/src/agents/index.test.ts
index 53a85656a..4c0caa469 100644
--- a/src/agents/index.test.ts
+++ b/src/agents/index.test.ts
@@ -2,6 +2,7 @@ import { describe, expect, test } from 'bun:test';
import type { PluginConfig } from '../config';
import {
AgentOverrideConfigSchema,
+ C... | 1 | 1 | 1 | [{"id": "G0", "claim": "The deprecation warning can falsely claim that council.master's model is 'currently used as a fallback' when an explicit preset override actually wins, because getLegacyMasterModel() returns the raw config value without regard to whether the fallback was really applied.", "category": "correctnes... | null |
alvinunreal__oh-my-opencode-slim__379 | alvinunreal/oh-my-opencode-slim | 379 | defect | 577aa6d55f0c96c99d9e232f2ef7a56f1aa78b2c | 5638b7d9cab057e1666b06603e9d4218e462330b | feat(preset): add /preset slash command for runtime agent preset switching | ## Summary
Add `/preset` slash command for runtime agent preset switching. Users can switch between predefined agent model configurations without restarting OpenCode. Closes #351.
## What changed
- New `createPresetManager()` factory that handles `/preset` via `command.execute.before` hook
- Calls `client.config.upd... | diff --git a/src/index.ts b/src/index.ts
index ffd215c80..0e2a8813a 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -28,6 +28,7 @@ import {
ast_grep_replace,
ast_grep_search,
createCouncilTool,
+ createPresetManager,
createWebfetchTool,
} from './tools';
import { resolveRuntimeAgentName, rewriteDisplayNa... | 2 | 2 | 0 | [{"id": "G0", "claim": "The multi-word guard `arg.includes(' ')` only catches ASCII spaces, so tab-separated arguments bypass it and fall through to switchPreset, producing a \"not found\" error without the helpful suggestion.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
alvinunreal__oh-my-opencode-slim__381 | alvinunreal/oh-my-opencode-slim | 381 | defect | 54aabe6d97e40bfca66703eb2b5d7e9aa6e74c46 | 817c31deb4138728e5daef48b62b6030244cd0c1 | fix: mutate system array in-place for Qwen compatibility | Fixes #315 - for real this time I hope.
## Problem
PR #336 attempted to fix multiple system messages breaking Qwen models (via VLLM/DashScope) by collapsing `output.system` to a single element. However, the fix was a no-op:
```ts
// PR #336 — creates a new array OpenCode never sees
output.system = joined ? [... | diff --git a/src/index.ts b/src/index.ts
index 0e2a8813a..c5f4ef814 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -717,12 +717,19 @@ const OhMyOpenCodeLite: Plugin = async (ctx) => {
);
// Collapse to single system message for provider compatibility.
- // Some providers (e.g. Qwen3.5 via DashScop... | 2 | 1 | 1 | [{"id": "G0", "claim": "The test suite does not exercise the actual experimental.chat.system.transform hook (M002 asked for a regression test pinning the in-place mutation contract; M001 and M004 note the added tests instead call a locally-defined copy of the collapse logic), so a regression in src/index.ts back to rea... | null |
alvinunreal__oh-my-opencode-slim__383 | alvinunreal/oh-my-opencode-slim | 383 | defect | 345c06b7c1454fde90c7e7237f45805642d5a8b9 | 0dec84a91bafcae0c7fd554634881d5b9187ae42 | feat(config): allow notification-only plugin updates | ## Summary
- expose a top-level `autoUpdate` config flag and pass it through to the startup auto-update checker
- keep update notifications enabled while letting users opt out of background installs
- add schema, docs, and tests for the new manual-update mode and clarify that pinned plugin entries remain the true versi... | diff --git a/docs/configuration.md b/docs/configuration.md
index b303e8f1e..3fbec2c16 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -99,6 +99,7 @@ Presets can also be switched at runtime without restarting using the `/preset` c
| `agents.<customAgent>.orchestratorPrompt` | string | — | Exact `@agen... | 1 | 1 | 0 | [{"id": "G0", "claim": "The sentence \"When enabled, this is notification-only mode\" in the Manual Update Mode docs reads as if autoUpdate must be true for notification-only behavior, when the mode actually activates when autoUpdate is false, potentially giving skimming readers an inverted mental model.", "category": ... | null |
alvinunreal__oh-my-opencode-slim__403 | alvinunreal/oh-my-opencode-slim | 403 | defect | 280e7c1edd9d457e6c1077a2304bf632abd16251 | 71ad60bcd6347e27922a3e0f37dc31dfba83e0d1 | feat: add read context to resumable sessions | ## Summary
- Track files read by delegated task sessions and surface them in the orchestrator's resumable session prompt
- Include line counts, filter tiny reads, and cap rendered context to recent substantial files
- Update session-management docs and tests for read-context rendering
## Verification
- bun test src/ho... | diff --git a/docs/session-management.md b/docs/session-management.md
index 1ee4b9b84..56f9b0ab6 100644
--- a/docs/session-management.md
+++ b/docs/session-management.md
@@ -39,10 +39,19 @@ The orchestrator sees a compact reminder in its system context, for example:
```text
### Resumable Sessions
-explorer: exp-1 Se... | 3 | 3 | 1 | [{"id": "G0", "claim": "The tool.execute.after handler for read events tracks context for every session, regardless of whether it is managed, because the read branch skips the options.shouldManageSession check that every other path in the hook applies, so reads from unmanaged or ephemeral sessions accumulate entries in... | null |
alvinunreal__oh-my-opencode-slim__406 | alvinunreal/oh-my-opencode-slim | 406 | defect | 2473e6bf6187695c557a1c56e3a3b966bc20fcd4 | 747ebdc3621d3a35c58667b03010cccff334082f | fix: improve apply_patch stale patch rescue performance | ## Summary
This PR improves the plugin-side `apply_patch` rescue layer for stale patches while preserving OpenCode’s native `apply_patch` execution and rendering flow.
The hook still runs before native execution and only rewrites patch text when it can produce a safer, canonical patch. Native OpenCode remains respons... | diff --git a/src/hooks/apply-patch/codec.test.ts b/src/hooks/apply-patch/codec.test.ts
index 078bcc11b..1e45ffe3f 100644
--- a/src/hooks/apply-patch/codec.test.ts
+++ b/src/hooks/apply-patch/codec.test.ts
@@ -82,6 +82,31 @@ PATCH`);
]);
});
+ test('parsePatchStrict preserves End Patch text when it is hunk co... | 2 | 2 | 0 | [{"id": "G0", "claim": "The post-loop `if (hits.size > 1)` guard in rescueByPrefixSuffix is dead code because the inner loop already returns on the first ambiguous hit, and it misleadingly implies a second ambiguity-detection opportunity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope... | null |
always-further__nono__278 | always-further/nono | 278 | defect | 4a0c9dff3216601696ebb2a184880979a20c19b1 | 0ef106bfcd079f1f803e364a66098ff9a707a246 | feat: add environment variable equivalents for CLI flags (#270) | Add `NONO_ALLOW`, `NONO_NET_BLOCK`, `NONO_NET_ALLOW`, `NONO_PROFILE`, `NONO_NETWORK_PROFILE`, and `NONO_ENV_CREDENTIA`L env vars for configuring nono in CI/CD pipelines and wrapper scripts.
CLI flags take precedence.
Boolean vars accept 1/0/true/false/yes/no via BoolishValueParser.
Closes: #270 | diff --git a/crates/nono-cli/Cargo.toml b/crates/nono-cli/Cargo.toml
index f9ea426a6..0d8482626 100644
--- a/crates/nono-cli/Cargo.toml
+++ b/crates/nono-cli/Cargo.toml
@@ -19,7 +19,7 @@ path = "src/main.rs"
[dependencies]
nono = { version = "0.12.0", path = "../nono" }
nono-proxy = { version = "0.12.0", path = "../... | 3 | 1 | 0 | [{"id": "G0", "claim": "Using value_delimiter = ',' on the --allow flag makes clap split any path containing a comma into multiple separate paths, which can grant the sandbox unintended filesystem access for comma-containing paths; multiple flag instances would be safer for security-sensitive path specifications.", "ca... | null |
always-further__nono__722 | always-further/nono | 722 | defect | 2eb9fd3b3791fa073ab110a65ca9abd9349929ef | 3c8b67565641b9210f01cdc381a18dded99f57e3 | feat(claude): add no-keychain profile and expand existing access | Introduce a new `claude-no-kc` built-in profile, providing Claude Code CLI agent functionality without macOS keychain access. This allows users to opt out of keychain interaction if desired.
The existing `claude-code` profile on macOS has its keychain access broadened to include the user's `~/Library/Keychains` root... | diff --git a/crates/nono-cli/README.md b/crates/nono-cli/README.md
index 8ca809bb0..aea039b39 100644
--- a/crates/nono-cli/README.md
+++ b/crates/nono-cli/README.md
@@ -84,6 +84,7 @@ Precedence is: CLI flag, then `NONO_THEME`, then config file, then the default `
| Profile | Command |
|---------|---------|
| Claude ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The added `policy` patch with `override_deny` on `$HOME/Library/Keychains` makes sandbox initialization fail on platforms where that directory does not exist, because profile override_deny entries without a resolvable grant fail validation instead of being skipped, and the tests patch around it ... | null |
amacneil__dbmate__202 | amacneil/dbmate | 202 | defect | 53c9c19e82818d2f3f2fb66e171c5593fb532995 | 1690eda6fd5526c4ff5904a839da207df3764783 | make the "invalid url" error message give more information | make the "invalid url" error message give more information for somebody that hasn't ready documentation and just runs the application
**Input**
```sh
dbmate up
```
**Output**
```
Error: invalid url, have you set your --url flag or DATABASE_HOST environment variable?
``` | diff --git a/pkg/dbmate/db.go b/pkg/dbmate/db.go
index b9556868..87b7f2a0 100644
--- a/pkg/dbmate/db.go
+++ b/pkg/dbmate/db.go
@@ -72,7 +72,7 @@ func New(databaseURL *url.URL) *DB {
// GetDriver initializes the appropriate database driver
func (db *DB) GetDriver() (Driver, error) {
if db.DatabaseURL == nil || db.Da... | 1 | 1 | 1 | [{"id": "G0", "claim": "The error message added by this PR names the wrong environment variable: it tells users to set DATABASE_HOST when the variable is actually DATABASE_URL.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
amacneil__dbmate__242 | amacneil/dbmate | 242 | defect | fb17e8eecad1b499503cc50e417290bb8c96a8dc | fe7a0ad7808e3cec0b3ceb524ebf899c026e8a57 | Make Status read only | So we have this use case where our developers have read-only access to our databases, and want to be able to run `dbmate status` before running a migration as part of our CI/CD pipeline.
Surprisingly, `dbmate status` has the potential side-effect of creating the migrations table if it's not there, which fails for a ... | diff --git a/pkg/dbmate/db.go b/pkg/dbmate/db.go
index f64dd887d..cb70ed7e4 100644
--- a/pkg/dbmate/db.go
+++ b/pkg/dbmate/db.go
@@ -576,17 +576,26 @@ func (db *DB) CheckMigrationsStatus(drv Driver) ([]StatusResult, error) {
return nil, fmt.Errorf("no migration files found")
}
- sqlDB, err := db.openDatabaseForM... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the blank line added to pkg/driver/sqlite/sqlite_test.go (line 236 of S1) to avoid creating merge conflicts where there is no need to.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test making sure the migra... | null |
amacneil__dbmate__267 | amacneil/dbmate | 267 | defect | 5cd9e25fb1015217264830426e5f9988d1a6c3b7 | 7f636b2edb363ce9912a82c14227c7d2121e9733 | Fix UNIX socket support for MySQL in dump action | `mysqldumpArgs` was missing the `--socket` parameter when launching `mysqldump` for UNIX socket connections. This pull request adds the parameter if the `socket` query option is added in the database URL
Closes #235 | diff --git a/pkg/driver/mysql/mysql.go b/pkg/driver/mysql/mysql.go
index fd257471..f54163ad 100644
--- a/pkg/driver/mysql/mysql.go
+++ b/pkg/driver/mysql/mysql.go
@@ -145,6 +145,9 @@ func (drv *Driver) mysqldumpArgs() []string {
if password, set := drv.databaseURL.User.Password(); set {
args = append(args, "--pass... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test to cover the new mysqldumpArgs socket functionality.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
amacneil__dbmate__383 | amacneil/dbmate | 383 | defect | 646a1aa8a9cc418ed067d49bbc7244f5dabd5292 | c820cade1f7cfa39a75aa7923404c3844b7121f1 | SQLite: Do not dump system tables | Pass the `--nosys` flag through to the SQLite `.schema` command. This will stop the `sqlite` command from writing out system tables `sqlite_*`.
This flag is documented:
```
sqlite> .help .schema
.schema ?PATTERN? Show the CREATE statements matching PATTERN
Options:
--indent Try to ... | diff --git a/pkg/driver/sqlite/sqlite.go b/pkg/driver/sqlite/sqlite.go
index 0009710b..d4150d30 100644
--- a/pkg/driver/sqlite/sqlite.go
+++ b/pkg/driver/sqlite/sqlite.go
@@ -131,7 +131,7 @@ func (drv *Driver) schemaMigrationsDump(db *sql.DB) ([]byte, error) {
// DumpSchema returns the current database schema
func (d... | 2 | 1 | 1 | [{"id": "G0", "claim": "The \"--nosys\" flag should be passed to sqlite3 as a separate argument rather than concatenated onto \".schema\" in one string.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test never failed before the change, so the new... | null |
amacneil__dbmate__469 | amacneil/dbmate | 469 | defect | 6245b8c7d0bb994cd0f11169da2442f518e38c1f | a0bafd4c1b6d7cffdafd6ea7cf82649028219d30 | Add load command to import schema | I'm suggesting to add the ability to import a schema from file as is done in [Active Record Migrations](https://guides.rubyonrails.org/active_record_migrations.html)
**Potential Benefits:**
- No extra dependencies and simpler configuration, to setup environments for tests it's enough just to import the schema.sql, ... | diff --git a/.gitignore b/.gitignore
index a653472a..beeeb119 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
dist
node_modules
.vscode
+.idea
diff --git a/README.md b/README.md
index 36fd2871..72936ba9 100644
--- a/README.md
+++ b/README.md
@@ -128,7 +128,8 @@ dbmate migrate # run any pending migrations
... | 1 | 1 | 1 | [{"id": "G1", "claim": "Splitting Migrate into Migrate/migrate so the len(migrations)==0 check moves out forces every db.Migrate() call to run db.FindMigrations() twice, which dossy feels is a mistake.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
amacneil__dbmate__488 | amacneil/dbmate | 488 | defect | 26dd5ea397d7e4aa7da960805cf59023b82f313e | 96f28737af132e344da2d0bd2825a5b276bd0db1 | Add Redshift support | This small fix checks that the database is Redshift and make client-side quoting instead of server quoting. | diff --git a/pkg/dbmate/version.go b/pkg/dbmate/version.go
index cf82132b..d6997732 100644
--- a/pkg/dbmate/version.go
+++ b/pkg/dbmate/version.go
@@ -1,4 +1,4 @@
package dbmate
// Version of dbmate
-const Version = "2.6.0"
+const Version = "2.7.0"
diff --git a/pkg/driver/postgres/postgres.go b/pkg/driver/postgres/... | 3 | 3 | 2 | [{"id": "G0", "claim": "It is unclear why the Redshift change is even necessary, since the server-side quoting should work for ordinary Postgres as well, and no reproducer is given for the error the PR claims to fix, so someone else cannot verify that there is a problem fixed by this PR.", "category": "correctness", "v... | null |
amacneil__dbmate__491 | amacneil/dbmate | 491 | defect | 26dd5ea397d7e4aa7da960805cf59023b82f313e | f5290e5ca52da417904e9af6dedda586c9e66c1e | support --env-file CLI option (#274) | I filing pr after I looked at this discussion https://github.com/amacneil/dbmate/discussions/354.
This pr add support for ability to use different env files than the default one `.env` | diff --git a/main.go b/main.go
index 83b85bf8..867c806e 100644
--- a/main.go
+++ b/main.go
@@ -17,8 +17,6 @@ import (
)
func main() {
- loadDotEnv()
-
app := NewApp()
err := app.Run(os.Args)
@@ -37,6 +35,12 @@ func NewApp() *cli.App {
app.Version = dbmate.Version
defaultDB := dbmate.New(nil)
+
+ app.Bef... | 7 | 7 | 4 | [{"id": "G0", "claim": "The new --env-file flag should not have the alias `f`; it should have no alias, as other tools such as Docker Compose do not either.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loadDotEnv signature should match godotenv.Loa... | null |
amacneil__dbmate__550 | amacneil/dbmate | 550 | defect | 0e1b2d084d5a94975b30a8f58d08931160e9988c | c7c89d5b48f899542fc0d1c0acf9ddd99949fde3 | prints the migrate/rollback execution time | Example output
```
Applying: 20230110131043_change-updated_at-fields.sql
Applied: 20230110131043_change-updated_at-fields.sql in 45.098471ms
``` | diff --git a/README.md b/README.md
index ca1e25bf..dd5e7ebc 100644
--- a/README.md
+++ b/README.md
@@ -191,6 +191,7 @@ Dropping: myapp_test
$ dbmate -e TEST_DATABASE_URL --no-dump-schema up
Creating: myapp_test
Applying: 20151127184807_create_users_table.sql
+Applied: 20151127184807_create_users_table.sql in 123us
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The regexp.MatchString-based assertions in TestWaitBeforeVerbose yield no useful failure diagnostic; the reviewer proposes masking the captured output (replacing the elapsed duration with \"ELAPSED\") and asserting with require.Contains so failures show the full expected and actual strings.", "c... | null |
amacneil__dbmate__582 | amacneil/dbmate | 582 | defect | f9c7be229f6aaa97906dcdee3330a38219c9c543 | 0f850e2d814dbedfd773567e1fc85345fe4e4681 | Enable FTS5 in SQLite migrations | This statically compiles in the FTS5 module, allowing dbmate to handle migrations that use the full-text search features of SQLite.
## History
Issue #237 raised the question of handling migrations that included FTS5 tables. It was later converted to a discussion (#357).
## Solution
It is possible to enable ... | diff --git a/Makefile b/Makefile
index da9b57af..f842b791 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,10 @@ OUTPUT ?= dbmate
GOOS := $(shell go env GOOS)
ifeq ($(GOOS),linux)
# statically link binaries to support alpine linux
- override FLAGS := -tags netgo,osusergo,sqlite_omit_load_extension,sqlite_json -ldfl... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test should not repeat testing drv.CreateMigrationsTable(), as it is already covered by other tests; lines 410-417 should be replaced with just the driver and prepared-db setup.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
amacneil__dbmate__676 | amacneil/dbmate | 676 | defect | 0e1e83aeabfbe1254ab95a5d2ca91e94ae8628e2 | 80214ffac6ba42ba926e5254a522a80a5467d6ec | Fix clickhouse schema dump with non-default database | This fixes the issue of using a generated `schema.sql` with ClickHouse in Docker.
The ClickHouse entrypoint runs every `.sql` file in `/docker-entrypoint-initdb.d` during server startup, but it executes them against the default database.
It works if the schema dump was created from the default database, but it fail... | diff --git a/pkg/driver/clickhouse/clickhouse.go b/pkg/driver/clickhouse/clickhouse.go
index b1945c4d..5b52d9a1 100644
--- a/pkg/driver/clickhouse/clickhouse.go
+++ b/pkg/driver/clickhouse/clickhouse.go
@@ -141,8 +141,8 @@ func (drv *Driver) escapeString(str string) string {
// CreateDatabase creates the specified d... | 1 | 1 | 0 | [{"id": "G0", "claim": "DropDatabase() should use the new quotedDatabaseName() helper instead of the old databaseName() + quoteIdentifier() pattern, for consistency with CreateDatabase() and consistent (quoted) logging output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
amacneil__dbmate__694 | amacneil/dbmate | 694 | defect | 3fe53666be9f71bc3772b5739a34d70afd6884fb | b2b6fa6cd88954324fb11ff73522388b5e3179f1 | feat: allow passing extra arguments to mysqldump/pgdump | feat: allow passing extra arguments to mysqldump/pgdump & fix broken tests (mysql & postgres)
Allow passing extra arguments to the dump command as follows:
`dbmate dump -- --flag1 --flag2`
Everything after `--` will be passed to pgdump or mysqldump.
We can further allow passing extra arguments for other su... | diff --git a/README.md b/README.md
index 12721284..283528b7 100644
--- a/README.md
+++ b/README.md
@@ -111,18 +111,19 @@ docker run --rm -it --network=host -v "$(pwd)/db:/db" ghcr.io/amacneil/dbmate ne
## Commands
```sh
-dbmate --help # print usage help
-dbmate new # generate a new migration file
-dbmate u... | 9 | 6 | 1 | [{"id": "G0", "claim": "The pull request mixes a feature with test fixes and should be decoupled into separate PRs that can be reviewed and considered independently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding a parameter to the export... | null |
amacneil__dbmate__713 | amacneil/dbmate | 713 | defect | 3fe53666be9f71bc3772b5739a34d70afd6884fb | 9e6911938606a7b53730316f6ecb5b246775b12b | feat: issue #489 support clickhouse+http/s schemes and --driver flag + env var | This PR addresses issue #489 by adding comprehensive support for ClickHouse HTTP/S protocols and allowing users to explicitly specify the driver via a CLI flag.
Key Changes:
1. New Driver Schemes:
- Added support for clickhouse+http:// and clickhouse+https:// schemes.
- Added support for clickhouse+tcp:// ali... | diff --git a/README.md b/README.md
index 12721284..6dc27a33 100644
--- a/README.md
+++ b/README.md
@@ -130,6 +130,7 @@ dbmate wait # wait for the database server to become available
The following options are available with all commands. You must use command line arguments in the order `dbmate [global options] com... | 1 | 1 | 1 | [{"id": "G0", "claim": "Switching from u.Host to u.Hostname() when setting the default port breaks IPv6 addresses (Go's Hostname() strips the brackets, producing an invalid host like ::1:9000 instead of [::1]:9000); use net.JoinHostPort or u.Host instead.", "category": "correctness", "verdict": "supported", "priority":... | null |
amacneil__dbmate__750 | amacneil/dbmate | 750 | defect | d45e02115c4be59c9010487e16e5f6b5dcdcdcb3 | a26066e2465425e7c523b296469820a80d5c9ca8 | fix: lib/pq v1.11.1 broke connecting to Supavisor | lib/pq v1.11.1 broke connecting to Supavisor. Pin to lib/pq v1.10.9
until upstream fix is available.
Closes #746
**Update:** lib/pq v1.11.2 released which fixes the connection issue, so rather than pinning to v1.10.9, we'll bump the depenency to v1.11.2, instead.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **L... | diff --git a/docker-compose.supavisor.yml b/docker-compose.supavisor.yml
new file mode 100644
index 00000000..2df5318a
--- /dev/null
+++ b/docker-compose.supavisor.yml
@@ -0,0 +1,84 @@
+services:
+ dev:
+ depends_on:
+ supavisor-db:
+ condition: service_healthy
+ supavisor:
+ condition: serv... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `dev` service lacks a `depends_on` with `condition: service_completed_successfully` on `supavisor-create-tenant`, so tests using `SUPAVISOR_TEST_URL` can fail because the `dev_tenant` tenant and `dbmate_test` database it references are not created yet.", "category": "correctness", "verdict":... | null |
amacneil__dbmate__76 | amacneil/dbmate | 76 | defect | 87c22515a9511c680e0391199cc3f53e0fc57eaf | bb4b723d63b5adba8c370c28ceff013916fc70a7 | Fix special chars passwords in MySQL Driver | This PR aims to fix #57
When MySQL password included special chars such as exclamation point or @ (at) MySQL backend errored out (invalid password).
https://github.com/amacneil/dbmate/blob/87c22515a9511c680e0391199cc3f53e0fc57eaf/pkg/dbmate/mysql.go#L21-L39
url.userinfo.String() (which gets called inside url.St... | diff --git a/pkg/dbmate/mysql.go b/pkg/dbmate/mysql.go
index 0edaad9e..edda4d84 100644
--- a/pkg/dbmate/mysql.go
+++ b/pkg/dbmate/mysql.go
@@ -35,7 +35,9 @@ func normalizeMySQLURL(u *url.URL) string {
normalizedURL.RawQuery = query.Encode()
str := normalizedURL.String()
- return strings.TrimLeft(str, "/")
+ decod... | 2 | 1 | 1 | [{"id": "G0", "claim": "The error value returned by url.QueryUnescape on the normalized URL string needs to be handled somehow instead of being discarded with _.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The mysql driver supports percent encodi... | null |
amaembo__streamex__183 | amaembo/streamex | 183 | defect | bcdec3153f6deb34901ea1767c76ff2ffba57aca | 2d303f1fb430e7b722a2627da7ba629669e1474e | Added flatOption methods for StreamEx and EntryStream | Added methods that allow one to `flatMap` mappers that return optional values without having to explicitly convert optionals to a stream.
TODO:
- [ ] Restore old formatting (mainly trailing whitespace) so it does not clutter this PR | diff --git a/src/main/java/one/util/streamex/AbstractStreamEx.java b/src/main/java/one/util/streamex/AbstractStreamEx.java
index 748e1f7b..f0e9ab58 100644
--- a/src/main/java/one/util/streamex/AbstractStreamEx.java
+++ b/src/main/java/one/util/streamex/AbstractStreamEx.java
@@ -24,8 +24,8 @@
import static one.util.str... | 6 | 5 | 4 | [{"id": "G0", "claim": "The flatOption* names are unsatisfactory because there is no \"option\" in Java, and the new methods should be renamed, e.g. flatOptional or mapPartial for StreamEx and flatOptionalKeys or mapKeysPartial (and likewise for the other EntryStream methods).", "category": "design", "verdict": "suppor... | null |
amaembo__streamex__201 | amaembo/streamex | 201 | defect | 7bb2cdb3e0cef14bb0221fcc9a927d2d51ff5b88 | a3926a3b3161477eae70da3672a2ed78978c779d | Improve StreamEx coverage | PIT 1.4.3 (default mutators): 100% line and mutation coverage of StreamEx by StreamExTest | diff --git a/src/main/java/one/util/streamex/StreamEx.java b/src/main/java/one/util/streamex/StreamEx.java
index 8ebcea80..cde519e1 100644
--- a/src/main/java/one/util/streamex/StreamEx.java
+++ b/src/main/java/one/util/streamex/StreamEx.java
@@ -26,8 +26,8 @@
import java.nio.charset.StandardCharsets;
import java.nio... | 7 | 5 | 1 | [{"id": "G0", "claim": "The production-code changes in into() (the prepareToAdd/extendedSize helpers) exist only to serve the mutation coverage tool and bloat the code with no value for end users, so they should be rolled back.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
amaembo__streamex__223 | amaembo/streamex | 223 | defect | b95f1d5fe3caa45a83393e64fbb3768b6522e799 | d4a1bf43c2b3952d467c234a2680ad9d4de7fb3c | Issue/#43 add morecollectors tomap methods | - 8 new shortcuts in **_MoreCollectors_** were created:
- entriesToMap with 4 signatures
- entriesToCustomMap with 4 signatures
- all signatures are covered by tests including cases with excpetions and different maps(TreeMap, LinkedHashMap)
| diff --git a/src/main/java/one/util/streamex/MoreCollectors.java b/src/main/java/one/util/streamex/MoreCollectors.java
index 3d4746e1..9237c2aa 100644
--- a/src/main/java/one/util/streamex/MoreCollectors.java
+++ b/src/main/java/one/util/streamex/MoreCollectors.java
@@ -168,6 +168,209 @@ private MoreCollectors() {
... | 14 | 14 | 5 | [{"id": "G0", "claim": "The javadoc of the new collector methods is missing @since tags and @see tags crosslinking the overloads.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new collector signatures should use PECS (Collector<Entry<? extend... | null |
amaembo__streamex__237 | amaembo/streamex | 237 | defect | 49e46f9a106f0a26e5e11b74aacb15a9a8e6dbaf | 74cf4df672fe1a474d8f48f9797b8cb8e06d2083 | Issue/#185 without | Hello my friend Tagir!
Hope everything is well with you ;)
Extend EntryStream with new methods for filtering:
> `withoutKey`,
> `withoutKeys`
> `withoutValue`
> `withoutValues` | diff --git a/src/main/java/one/util/streamex/EntryStream.java b/src/main/java/one/util/streamex/EntryStream.java
index 7f4e408a..50d44398 100644
--- a/src/main/java/one/util/streamex/EntryStream.java
+++ b/src/main/java/one/util/streamex/EntryStream.java
@@ -41,6 +41,7 @@
import java.util.function.BinaryOperator;
im... | 5 | 5 | 2 | [{"id": "G0", "claim": "Drop the non-vararg `withoutKey`/`withoutValue` methods and inline their logic into `withoutKeys`/`withoutValues`, since differently named near-duplicates pollute the API.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the jav... | null |
amannn__next-intl__493 | amannn/next-intl | 493 | defect | 0e7835bbde1b8c32ea8545603e2bcaf4522d7f07 | 515130596435455e1846708050229f24a070214d | fix: Allow unknown routes in localized pathnames navigation APIs | Very annoying! This should be (at most) logged as a warning.
<img width="1455" alt="Screenshot 2023-08-31 at 22 55 55" src="https://github.com/amannn/next-intl/assets/69924001/ff7017fb-138d-4476-9a6b-cf32c5f93906">
| diff --git a/packages/next-intl/src/navigation/createLocalizedPathnamesNavigation.tsx b/packages/next-intl/src/navigation/createLocalizedPathnamesNavigation.tsx
index ed808c015..02bc088f1 100644
--- a/packages/next-intl/src/navigation/createLocalizedPathnamesNavigation.tsx
+++ b/packages/next-intl/src/navigation/create... | 5 | 5 | 2 | [{"id": "G0", "claim": "The localized pathnames navigation APIs require every valid URL (including /api routes, external and mailto links) to be listed in the pathnames config or they throw a runtime error, which is an unreasonable requirement.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ... | null |
amannn__next-intl__86 | amannn/next-intl | 86 | defect | 955b3902b35f10b4d6dcd1f80381e86d14bd38eb | b11372167a80fdf854d4eeb16bcc7826d6c39c40 | feat: Default translation values | To achieve consistent usage and styling of rich text elements, I have included an option to define global defaults for rich text elements. The default will be overridden by a local definition of an element.
This approach is the same as the one from [react-intl](https://formatjs.io/docs/react-intl/components/#default... | diff --git a/packages/use-intl/src/IntlContext.tsx b/packages/use-intl/src/IntlContext.tsx
index 0a6684fa0..9ca6cec5f 100644
--- a/packages/use-intl/src/IntlContext.tsx
+++ b/packages/use-intl/src/IntlContext.tsx
@@ -2,6 +2,7 @@ import {createContext} from 'react';
import Formats from './Formats';
import IntlError fr... | 7 | 6 | 3 | [{"id": "G0", "claim": "One of use-intl's pre-existing tests (packages/use-intl/test/useIntl.test.tsx) appears broken due to a plural/singular spelling mistake in the expected error message.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Expand the prov... | null |
amannn__next-intl__983 | amannn/next-intl | 983 | defect | 78f88d1493eb796498b7fb2c986536ac49cffda0 | 752f01e8a0696fa39a4ae026d4dcc372bb621ef0 | feat: Automatically prefer localized pathnames that are more specific | This PR fixes the current behavior of the internal route handling of the `next-intl` middleware that does not prioritize static route paths over dynamic routes. This fix makes sure that static routes (e.g. `/products/new`) are preferred over dynamic routes such as `/products/[slug]`.
To make sure the current behavio... | diff --git a/docs/pages/docs/routing/middleware.mdx b/docs/pages/docs/routing/middleware.mdx
index 3443903bf..ce9916f62 100644
--- a/docs/pages/docs/routing/middleware.mdx
+++ b/docs/pages/docs/routing/middleware.mdx
@@ -322,20 +322,19 @@ export default createMiddleware({
de: '/ueber-uns'
},
- // Pathn... | 8 | 8 | 2 | [{"id": "G0", "claim": "The dynamic/catch-all flags in comparePathnamePairs are insufficient because nested dynamic routes like /articles/[category]/[articleSlug] vs /articles/[category]/just-in are treated as equal priority, and the reviewer asks to consider routes hierarchically (segment by segment).", "category": "c... | null |
amanusk__s-tui__272 | amanusk/s-tui | 272 | defect | 2ef565f0ff4b1460b2ea8389a2641398be31e10c | a8175dd3c9ba77f92f4eec367b0d75363633edc7 | Feat/new stresser | This PR introduces a built-in stress test for s-tui. So far it has relied on external tools only for enabling a stress test. While they are ubiquitous, they are not installed by default. Within this PR, we are adding several options for a stress test, which can be expanded later. For now, the external stress integratio... | diff --git a/.gitignore b/.gitignore
index 034a322..48b51ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,7 +11,6 @@ build/*
.idea/*
*.csv
env/*
-FIRESTARTER/*
s_tui/GraphData.py
TODO.md
Notes
diff --git a/.gitmodules b/.gitmodules
index 8e073a6..e69de29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,4 +0,0 @... | 4 | 4 | 3 | [{"id": "G0", "claim": "If p.start() raises an OSError partway through the spawn loop, workers already started are left running: the exception propagates to start_builtin_stress() without calling stop(), so is_running() returns True while the controller considers the stresser stopped, and the zombie workers consume CPU... | null |
amark__gun__1020 | amark/gun | 1,020 | defect | 4dc88e9ea86ddb18b62c4becc1c439eaec2d6353 | 5701b8b5812a7ac8b54a0534a3ad5fa699ef098a | Add SEA.certify(), upgrade SEA check.pub(). Tests passed. Bugs free. | FINALLY! We now have dACL for Gun! Today is a historical day.
I will write a detailed documentation for this later. For now, please use these files (zipped) for testing.
[tests.zip](https://github.com/amark/gun/files/5443689/tests.zip) | diff --git a/sea.js b/sea.js
index b71d070a4..59764292b 100644
--- a/sea.js
+++ b/sea.js
@@ -650,6 +650,67 @@
module.exports = SEA.secret;
})(USE, './secret');
+ ;USE(function(module){
+ var SEA = USE('./root');
+
+ // This is to certify that a group of "certificants" can "put" anything at a group ... | 8 | 3 | 2 | [{"id": "G0", "claim": "Unit tests for SEA.certify() should be added to test/sea/sea.js, likely in the 'types' test set.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the signed-put packing rewritten to drop the JSON.stringify call is stil... | null |
amark__gun__819 | amark/gun | 819 | defect | 14f6ba098addb10acb0969b09fdbba942d010d59 | a6fc7fd5c5728163c2b8b9ed5f62907fe3e521f0 | react native support | using isomorphic-webcrypto which uses @peculiar/webcrypto for node.
it also uses msrcrypto for environments without webcrypto (ie react native)
and also webcrypto-liner and asmcrypto under the hood to add missing support to pbkdf2
some SEA methods required to change syntax
example react-native app on expo that uses... | diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 000000000..f59ec20aa
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1 @@
+*
\ No newline at end of file
diff --git a/browser.js b/browser.js
new file mode 100644
index 000000000..d054b7cbd
--- /dev/null
+++ b/browser.js
@@ -0,0 +1,2 @@
+module.expo... | 13 | 10 | 1 | [{"id": "G0", "claim": "decrypt(encrypt('4e2')) returns 400 because encrypt leaves strings unstringified while decrypt always JSON.parses, so type info is lost; the encrypt method should be changed to always JSON.stringify rather than changing the tests to match the lossy behaviour.", "category": "correctness", "verdic... | null |
amazon-ion__ion-cli__100 | amazon-ion/ion-cli | 100 | defect | e8c44a71509ea34af12d0a3c470525043691313f | f3353491b6f3e585eddbda310563541242bac969 | Adds read-write API generation support for Java code generation | ### Issue #87:
### Description of changes:
This PR adds read-write API generation support for Java.
### Example generated APIs
This example uses schema `struct_with_fields` from `code-gen-projects/schema/`.
_Note: The generated code has been formatted here and actual code might have extra lines and tabs._
... | diff --git a/code-gen-projects/input/struct_with_fields.ion b/code-gen-projects/input/struct_with_fields.ion
index c94337ae..a4298921 100644
--- a/code-gen-projects/input/struct_with_fields.ion
+++ b/code-gen-projects/input/struct_with_fields.ion
@@ -2,4 +2,5 @@
A: "hello",
B: 12,
C: ["foo", "bar", "baz"],
+ D: 1... | 12 | 10 | 2 | [{"id": "G0", "claim": "The generated `readFrom` method should carry a Javadoc comment stating that it does not advance the reader at the current level and that the caller must position the reader on the value to read.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
amazon-ion__ion-cli__111 | amazon-ion/ion-cli | 111 | defect | b2cfecdd4124528a7b031ab98dd482c60c41606d | bddc3a12015e90addb67a4f43e0f146a70b27fca | Removes generating a separate class/struct for nested sequence and scalar type | ### Issue #110:
### Description of changes:
This PR works on generating nested sequence and scalar types in the same class/struct.
### What is the change?
Previously, code generator would generate nested sequence or scalar types as a separate nested class or struct in a nested module. But this new change does n... | diff --git a/code-gen-projects/input/bad/scalar/mismatched_type.ion b/code-gen-projects/input/bad/scalar/mismatched_type.ion
new file mode 100644
index 00000000..39c18a90
--- /dev/null
+++ b/code-gen-projects/input/bad/scalar/mismatched_type.ion
@@ -0,0 +1 @@
+12 // expected string
\ No newline at end of file
diff --gi... | 15 | 8 | 3 | [{"id": "G0", "claim": "The Java roundtrip tests should inject the location of the input directory (as is already done for the ion-cli executable) instead of using `../../` relative paths.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Detecting... | null |
amazon-ion__ion-cli__147 | amazon-ion/ion-cli | 147 | defect | 2fe17c122a5bf8228fc717e9fb39bdda87d5eb8a | 63aabf575cb383aac60ffb9b81a93ab51a58a845 | Adds new model changes for Rust code generation | ### Issue #136
### Description of changes:
This PR adds new model changes for Rust code generation.
### List of changes:
- [Adds changes for Rust templates](https://github.com/amazon-ion/ion-cli/commit/7f988f85ab66135f3ecac2291adbc9d375f07028)
* Adds changes for using the new model
* Adds changes for nest... | diff --git a/src/bin/ion/commands/generate/generator.rs b/src/bin/ion/commands/generate/generator.rs
index 54574d85..72ab0e29 100644
--- a/src/bin/ion/commands/generate/generator.rs
+++ b/src/bin/ion/commands/generate/generator.rs
@@ -212,7 +212,9 @@ impl<'a, L: Language + 'static> CodeGenerator<'a, L> {
_map:... | 7 | 7 | 1 | [{"id": "G0", "claim": "The TODO comments in the `\"rust\"` arms of src/bin/ion/commands/generate/mod.rs are outdated now that this pull request initializes and runs the Rust code generator, and should be removed here and below.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
amazon-ion__ion-cli__151 | amazon-ion/ion-cli | 151 | defect | 2045e78924f4fee5a19bf9ed2ce85738e9a637ce | 152c0a32c537cec9be7f7bf0bf2a93b5e7306510 | Update ion-schema and ion-rs dependencies | ### Issue #, if available:
None.
### Description of changes:
Updates `ion-rs` and `ion-schema` crates to the latest versions. There's also a bunch of clippy fixes that ended up here too.
----
_**By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 licens... | diff --git a/Cargo.lock b/Cargo.lock
index 9bb0efb8..6fe4ab01 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,10 +3,10 @@
version = 3
[[package]]
-name = "adler"
-version = "1.0.2"
+name = "adler2"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f26201604c87b1e01bd3d... | 1 | 1 | 0 | [{"id": "G0", "claim": "The bare `true` boolean arguments added in the model tests (src/bin/ion/commands/generate/model.rs lines 436 and 494) should be commented or given a name (e.g. replaced with an enum), because unexplained booleans in interfaces inhibit readability and maintainability.", "category": "maintainabili... | null |
amazon-ion__ion-cli__169 | amazon-ion/ion-cli | 169 | defect | a9d0cacc7e740c21c68a5d72aa72d30b264e1628 | edff0c7bf52f294540940099df38525dda8d67b6 | Adds support for imports in code generation | ### Description of changes:
This PR adds support for header import and inline import in code generation.
### Generated Code in Java:
Generated code in Java can be found [here](https://gist.github.com/desaikd/70b0d89edc1d3da34de384897125d815).
### List of changes:
- [Adds changes for generating code for schema ... | diff --git a/code-gen-projects/input/bad/sequence_with_import/mismatched_sequence_element_type.ion b/code-gen-projects/input/bad/sequence_with_import/mismatched_sequence_element_type.ion
new file mode 100644
index 00000000..3c2f0c38
--- /dev/null
+++ b/code-gen-projects/input/bad/sequence_with_import/mismatched_sequenc... | 4 | 4 | 3 | [{"id": "G0", "claim": "The comment about sorting directory paths so nested type names stay ordered via a counter is obsolete now that the nested type name counter is gone.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Skipping generation of im... | null |
amazon-ion__ion-cli__172 | amazon-ion/ion-cli | 172 | defect | 7509ba90226e8ef2f0115700d45b3440333257ab | 23373d7da7def5c0a9ab09d92f5997b78a0f8905 | Adds som README and CLI option changes for code generation | ### Issue #, if available:
### Description of changes:
This PR works on adding README change and CLI options change for code generation.
### List of changes:
- [Adds README changes](https://github.com/amazon-ion/ion-cli/commit/e60f854959216b4dede1dcc1fa72c0ac4cd0e3a6)
- [Adds changes for generate subcommand op... | diff --git a/README.md b/README.md
index aba2297d..eafee370 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
# `ion-cli`
+
[](https://crates.io/crates/ion-cli)
[](https://github.com/amazon-ion/ion-cli/blob/m... | 4 | 4 | 2 | [{"id": "G0", "claim": "The README install instructions should also mention `brew install ion-cli --HEAD` as a way to get the not-yet-released code-generation feature.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The note saying the `generate` s... | null |
amazon-ion__ion-cli__46 | amazon-ion/ion-cli | 46 | defect | 9ea7bb36efd4bd0fcee3abc90e5c9a05e5ce68e5 | 3f2153e08a6b27ca96b2c0cc9a728da817f310be | Adds 'head' option to allow user get the first specific number of ion values of the input file. | ### Issue #, if available:
N/A
### Description of changes:
This PR adds an option `head` to `ion-cli` tool, which allows to get the first specific number of top-level data in the input stream.
Here is the example of print out the fist 2 top-level value of testData.ion:
`ion beta head --number 2 --format lines ... | diff --git a/src/bin/ion/commands/beta/head.rs b/src/bin/ion/commands/beta/head.rs
new file mode 100644
index 00000000..3abd732d
--- /dev/null
+++ b/src/bin/ion/commands/beta/head.rs
@@ -0,0 +1,54 @@
+use std::io::{stdout, Write};
+use clap::{Arg, ArgMatches, Command};
+use ion_rs::*;
+use std::fs::File;
+use anyhow::{... | 13 | 12 | 3 | [{"id": "G0", "claim": "The PR description's example command says `--number 4` while showing two values; it should be `--number 2`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `values`/`-n` argument should default to 10, as other `head` imp... | null |
amazon-ion__ion-cli__56 | amazon-ion/ion-cli | 56 | defect | 3cc07475f1e38bccd5702b4c34d7924264dcb646 | 17919b2d6cf659c40f30c66a89233140813a98c4 | Command traits | This PR introduces two traits:
1. `IonCliCommand`, which captures functionality common to all commands/namespaces.
2. `WithIonCliArgument`, which adds extension methods to `clap`'s `Command` type, making it much easier for commands to use the same flag configurations as other commands.
This eliminates a large am... | diff --git a/src/bin/ion/commands/beta/count.rs b/src/bin/ion/commands/beta/count.rs
index abf465b7..7e857e91 100644
--- a/src/bin/ion/commands/beta/count.rs
+++ b/src/bin/ion/commands/beta/count.rs
@@ -1,39 +1,42 @@
+use crate::commands::{IonCliCommand, WithIonCliArgument};
use anyhow::{Context, Result};
-use clap::{... | 1 | 1 | 0 | [{"id": "G0", "claim": "The schema namespace's `about` text should say the command is \"related to Ion Schema\" instead of \"related to schema sandbox\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
amazon-ion__ion-cli__79 | amazon-ion/ion-cli | 79 | defect | 8138f1101d308393f0557bcc72d7884c0a60c5e1 | 33028a928e74363c957c831656017513e86571a2 | dump: autodetect and decompress gzip and zstd | ### Issue #, if available:
n/a
### Description of changes:
This change extends the `dump` subcommand to be able to automatically detect gzip- and zstd-compressed Ion files and stdin streams and transparently decompress them. A new option was added, `--no-auto-decompress`, to disable this automatic behavior and... | diff --git a/.gitignore b/.gitignore
index f419dc7b..853743fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
/.idea
/target
+*.swp
+*.swo
+*.swn
diff --git a/Cargo.lock b/Cargo.lock
index 44178d38..975c8db0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,6 +2,12 @@
# It is not intended for manual editing.
... | 1 | 1 | 1 | [{"id": "G0", "claim": "auto_decompressing_reader needs a loop to handle a read() that returns fewer than header_len bytes (more than zero but less than INFER_HEADER_LENGTH), however unlikely.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
amazon-ion__ion-cli__94 | amazon-ion/ion-cli | 94 | defect | 5281cca442f9da73960f859aed83009233e9c2b2 | 9e73f656f94a5ef889eb4d4dc90f6b2b6734ce1d | Adds changes for setting up integration roundtrip tests for generated code | ### Issue #88:
### Description of changes:
This PR works on adding set-up changes for integration roundtrip tests on generated code
### List of changes:
- Adds some changes for struct templates, that were resulting in specific errors with roundtrip testing
- Replaces `to_string()?` with `to_str()?.to_string(... | diff --git a/src/bin/ion/commands/beta/generate/generator.rs b/src/bin/ion/commands/beta/generate/generator.rs
index 570fb1d9..0e37ca1a 100644
--- a/src/bin/ion/commands/beta/generate/generator.rs
+++ b/src/bin/ion/commands/beta/generate/generator.rs
@@ -1,14 +1,16 @@
use crate::commands::beta::generate::context::{Abs... | 3 | 3 | 1 | [{"id": "G0", "claim": "Dropping `.append(true)` and letting the open clobber any existing file when writing `ion_generated_code.rs`, since running generate twice appends a second concatenated copy to the file.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
amazon-ion__ion-go__104 | amazon-ion/ion-go | 104 | defect | de8c4c7f42a5a2f71758703cf831ab0ec14d6641 | 4cae231195b00213a95f6e9e8ca473921a9e1a77 | Add annotations when Marshalling values | Encoder does not take annotations and consequently Marshal cannot serialize values with annotations.
To get the annotations when Marshalling, user should send a struct to Marshal() whereby one field of the struct is a slice of string and tagged as `ion:",annotations"`.
For instance:
```
type foo struct {
Va... | diff --git a/ion/fields.go b/ion/fields.go
index 40cf231e..21e6282d 100644
--- a/ion/fields.go
+++ b/ion/fields.go
@@ -8,11 +8,12 @@ import (
// A field is a reflectively-accessed field of a struct type.
type field struct {
- name string
- typ reflect.Type
- path []int
- omitEmpty bool
- hint T... | 4 | 4 | 1 | [{"id": "G0", "claim": "The annotation type error should read \"it must be of type []string\" instead of \"it must be []string\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test where an annotation is a symbol containing a space, e.g. 'i... | null |
amazon-ion__ion-go__128 | amazon-ion/ion-go | 128 | defect | 698d3525070b562403ce7e052297d3bd52c96424 | dba70cb916ce723d9314c9e4a1c6b7b99a0b5600 | Fix S-Expression Tests | By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/ion/integration_test.go b/ion/integration_test.go
index f49dfd54..8633c9c7 100644
--- a/ion/integration_test.go
+++ b/ion/integration_test.go
@@ -139,7 +139,6 @@ var malformedIonsSkipList = []string{
"nopPadTooShort.10n",
"nopPadWithAnnotations.10n",
"nullDotCommentInt.ion",
- "sexpOperatorAnnotation... | 2 | 2 | 1 | [{"id": "G0", "claim": "The syntax error message for operator-valued annotations should be generalized, since 'operator' is only meaningful inside s-expressions, along the lines of \"Annotations that include a '\" + val + \"' must be enclosed in quotes.\"", "category": "documentation", "verdict": "supported", "priority... | null |
amazon-ion__ion-go__14 | amazon-ion/ion-go | 14 | defect | 11e5dc792d76ab8a940fe5c923f814f54c9a43bf | 9ef2b29c1477668f7ce9eba9dfbb5969459edf5b | Adds SymbolToken and SymbolTable APIs. | Removes non-used `symbols.go` module which had a preliminary symbol
table implementation.
Adds SymbolToken as a pure data structure.
Adds SymbolTable as an abstract data type for
system/shared/local symbol tables.
None of the APIs are currently exported for making symbol tables.
Resolves #11
By submitt... | diff --git a/ion/symbols.go b/ion/symbols.go
deleted file mode 100644
index c6c2749c..00000000
--- a/ion/symbols.go
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License").
- * You may not use t... | 22 | 19 | 0 | [{"id": "G0", "claim": "The pull request's change to .github/workflows/go.yml should ensure that builds/tests run for pull requests coming from user forks, which currently do not trigger a build/test.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Symbo... | null |
amazon-ion__ion-go__155 | amazon-ion/ion-go | 155 | defect | 1e45452c49510bab7413bfa942ee609702e78ab4 | 0ab529d98716a53327e63bfa58a6c2b701d7ee8d | Handle Negative Zero and NaN Float | ion-hash-go needs these changes to get float tests passing for -0e0 and NaN.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/ion/binarywriter.go b/ion/binarywriter.go
index 94f99300..8d5be7a1 100644
--- a/ion/binarywriter.go
+++ b/ion/binarywriter.go
@@ -170,7 +170,8 @@ func (w *binaryWriter) writeBigInt(val *big.Int) error {
// WriteFloat writes a floating-point value.
func (w *binaryWriter) WriteFloat(val float64) error {
... | 2 | 1 | 0 | [{"id": "G0", "claim": "If NaN can be represented as a float32, the same unwanted-last-byte logic should be added to the float32 branch too.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Handle NaN as a special case right after -0 so the writer avoid... | null |
amazon-ion__ion-go__157 | amazon-ion/ion-go | 157 | defect | 5ba7cb4d4cced8ab08375cf8c87a88cfeada56d3 | ce3e4a6b17dde78c0df9857e2af42d10a3f9a24a | Reader api change | Resolves #152
As #152 explains, this pull request is to update Reader api interface.
| diff --git a/cmd/ion-go/process.go b/cmd/ion-go/process.go
index 11fcd7a0..4450007f 100644
--- a/cmd/ion-go/process.go
+++ b/cmd/ion-go/process.go
@@ -239,7 +239,7 @@ func (p *processor) process(in ion.Reader) error {
if err != nil {
return p.error(read, err)
}
- err = p.out.WriteBool(val)
+ err = p.ou... | 11 | 11 | 0 | [{"id": "G0", "claim": "readCurrentValue should stop special-casing null values before the switch and instead let null values flow through the per-type switch, writing nulls via WriteNullType under case SymbolType / testing that the value APIs return nil for nulls, and the reader.IsNull() pre-check (with its SymbolType... | null |
amazon-ion__ion-go__158 | amazon-ion/ion-go | 158 | defect | 5ba7cb4d4cced8ab08375cf8c87a88cfeada56d3 | fd6444671512ef8ca4698fbec2546066e754c343 | Update Reader Value APIs to symbol token abstraction | Issue #, if available:
#151
Description of changes:
-Update Reader API to return SymbolToken abstraction instead of string representation of Symbols.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/cmd/ion-go/eventwriter.go b/cmd/ion-go/eventwriter.go
index a242e794..9bc6c052 100644
--- a/cmd/ion-go/eventwriter.go
+++ b/cmd/ion-go/eventwriter.go
@@ -29,7 +29,7 @@ type eventwriter struct {
depth int
fieldname *string
- annotations []string
+ annotations []ion.SymbolToken
inStruct ma... | 13 | 10 | 1 | [{"id": "G0", "claim": "In processor.process the nested nil checks on the field name should be combined into a single `if name != nil && name.Text != nil` condition.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A getSymbolToken helper should b... | null |
amazon-ion__ion-go__185 | amazon-ion/ion-go | 185 | defect | 48a755c9f2e66f93e67fa6dd6ad8d143b186a68b | ca8c539fef34366ab23afb40a1783aa994d53ca7 | #184: Allow custom unmarshal implementation | Issue #, if available: #184
Description of changes:
Adds the unmarshalling equivalent of `Marshaler`. Allowing types to implement their own unmarshalling logic. It's basically the same implementation, but requires the `UnmarshalIon` method to be implemented with a pointer receiver as it needs to mutate the struct.
... | diff --git a/ion/unmarshal.go b/ion/unmarshal.go
index 2d4908c..e5121d3 100644
--- a/ion/unmarshal.go
+++ b/ion/unmarshal.go
@@ -38,6 +38,11 @@ var typesAcceptableKinds = map[Type][]reflect.Kind{
ListType: {reflect.Slice, reflect.Array},
}
+// Unmarshaler is the interface implemented by types that can unmarshal t... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Unmarshaler doc comment should say the interface is implemented by types that can unmarshal themselves from Ion, not to Ion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please provide an example of how to use Unmarsh... | null |
amazon-ion__ion-go__20 | amazon-ion/ion-go | 20 | defect | 11e5dc792d76ab8a940fe5c923f814f54c9a43bf | d6c9daf907ae246b343f02b456fc4d0fa459a54a | Fixes String/Symbol hex escape processing. | * Removes `unquoted` field and use of `strconv.Unquote` from `String`.
* Unifies `\x`, `\u`, and `\U` processing in `parse_text_simple.go`
for CLOB and String/Symbol.
Incremental improvement towards #17. There is a bit more DRY than
I'd prefer in the String/Symbol switch statements, but I think it
is importan... | diff --git a/internal/lex/lex_binary.go b/internal/lex/lex_binary.go
index e2cb1417..0dcf6571 100644
--- a/internal/lex/lex_binary.go
+++ b/internal/lex/lex_binary.go
@@ -110,6 +110,11 @@ Loop:
return x.error("unterminated short clob")
case !isEscapeAble(r):
return x.errorf("invalid character after escape... | 6 | 6 | 1 | [{"id": "G0", "claim": "The decodeHex comment should read \"Must be a power of two and no larger than uint32.\" instead of the typo \"no larger that uint32\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The \"Unexpected hex slice handed to deco... | null |
amazon-ion__ion-go__47 | amazon-ion/ion-go | 47 | defect | 30f3e38dc64915e20b6a2e49cea2f3ae2c851cd2 | a6df1b9dc1ffb54e83fc588966390dbe8b0c0117 | Start of an ion-go CLI | Resolves #2 (partially, at least)
An initial stab at creating a command-line tool for use with [ion-test-driver](https://github.com/amzn/ion-test-driver). Partially implements the `process` command, with the ability transform binary or text input to text, pretty text, binary, or a sequence of events.
Also adds su... | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..349c949f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/ion-go
+/cmd/ion-go/ion-go
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..333feaaf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+.PHONY: test
+test:
+ go test ./...... | 3 | 2 | 0 | [{"id": "G0", "claim": "Add a license header comment to the top of cmd/ion-go/eventwriter.go.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Call printHelp() after the error is printed out on an unrecognized command.", "category": "design", "verdict... | null |
amazon-ion__ion-go__50 | amazon-ion/ion-go | 50 | defect | c6d91a2c33946dec146c4946c614503a9f411482 | 70c21c69b41e8c17150db478ab1c68da33d0a68c | Invalid Ion Timestamps | Issue #44
Fix malformed Ion timestamps.
Fixes include:
- Year, month, day must be larger than 0 (minimum date is 0001-01-01)
- Months cannot be larger than 12.
- Days, depending on which month, should be either 28,29,30 or 31.
- All different valid formats should be parsed correctly.
- Timestamps with Hour, m... | diff --git a/ion/bitstream.go b/ion/bitstream.go
index 512aa109..0636a0cf 100644
--- a/ion/bitstream.go
+++ b/ion/bitstream.go
@@ -512,6 +512,13 @@ func (b *bitstream) ReadTimestamp() (time.Time, error) {
}
len -= vlen
ts[i] = int(val)
+
+ // When i is 3, it means we are setting hour component. A timestamp wi... | 7 | 7 | 0 | [{"id": "G0", "claim": "Return a SyntaxError, which also carries the position in the stream, instead of a plain fmt.Errorf for the hour-without-minute case in ReadTimestamp.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The timezone argument for binary ... | null |
amazon-ion__ion-go__58 | amazon-ion/ion-go | 58 | defect | e3d4ecd1abfcd47ce7c5fecaefb799510e10b31c | e53022af0e7f864b3993132c78c1091d18647c93 | Fix for string values | This pull request contains fixes for 2 cases:
- Single quote in a long string: ```''' ion's fun! '''```
- Strings with control characters
| diff --git a/ion/integration_test.go b/ion/integration_test.go
index 8a14252b..2dcda282 100644
--- a/ion/integration_test.go
+++ b/ion/integration_test.go
@@ -110,7 +110,6 @@ var textRoundTripSkipList = []string{
"lists.ion",
"localSymbolTableImportZeroMaxId.ion",
"nonNulls.ion",
- "nonNulls.ion",
"notVersionMa... | 7 | 5 | 1 | [{"id": "G0", "claim": "The new control-character checks in readString/readLongString should report the error through the existing t.invalidChar helper rather than building a SyntaxError inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sin... | null |
amazon-ion__ion-go__66 | amazon-ion/ion-go | 66 | defect | 82b4807fba6db435d6ffca0b304c72ad015080ef | 74c4cf0a310ebbab78a1b844b055fb08e6aa953c | Fix underscore in binary, Int and hex numbers | This is to fix invalid placement of underscore in numbers:
- Multiple underscores: ```12___3```
- AfterRadixPrefix: ```0x_76```
- BeforeDecimalPoint: ```12_.44```
- Trailing underscores: ```0b1011_```
| diff --git a/ion/integration_test.go b/ion/integration_test.go
index 60f506dd..51f39910 100644
--- a/ion/integration_test.go
+++ b/ion/integration_test.go
@@ -152,9 +152,6 @@ var malformedIonsSkipList = []string{
"annotationNested.10n",
"annotationSymbolIDUnmapped.10n",
"annotationSymbolIDUnmapped.ion",
- "binary... | 2 | 1 | 0 | [{"id": "G0", "claim": "The matcher parameter names pok/dok are hard to follow and should be renamed to more descriptive names such as isRadixMarker and isValidForRadix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The underscore-after-radix... | null |
amazon-ion__ion-go__76 | amazon-ion/ion-go | 76 | defect | 78eeb7783dea5be42554883602b6644ba8ed2c06 | 890071691e54189489c2d9b7afa05b57b202a76d | String with ISO-8859-1 characters |
This fix is to detect strings with latine-1 (ISO-8859-1) characters.
| diff --git a/ion/bitstream.go b/ion/bitstream.go
index afd34519..e31b8f84 100644
--- a/ion/bitstream.go
+++ b/ion/bitstream.go
@@ -8,6 +8,7 @@ import (
"io"
"math"
"math/big"
+ "strings"
"time"
)
@@ -638,7 +639,27 @@ func (b *bitstream) ReadString() (string, error) {
b.state = b.stateAfterValue()
b.clear... | 1 | 1 | 0 | [{"id": "G0", "claim": "ReadString's rune-by-rune toUtf8String helper is likely slower than checking utf8.Valid(buf) up front and returning string(buf) directly when the buffer already holds valid UTF-8.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
amazon-ion__ion-go__77 | amazon-ion/ion-go | 77 | defect | b61a4565684397fad27dbc7c3ddb94d45a092b78 | 18e27a1c6f418c2bf9f9b60e397362f6868b9a6a | Fix invalid negative int zero | Ion specs for [integer](http://amzn.github.io/ion-docs/docs/binary.html#2-and-3-int) reads:
> Zero is always stored as positive; negative zero is illegal.
| diff --git a/ion/bitstream.go b/ion/bitstream.go
index 88fa0e97..123bc342 100644
--- a/ion/bitstream.go
+++ b/ion/bitstream.go
@@ -407,18 +407,21 @@ func (b *bitstream) ReadInt() (interface{}, error) {
}
var ret interface{}
+ isZero := false
switch {
case b.len == 0:
// Special case for zero.
ret = int6... | 1 | 1 | 0 | [{"id": "G0", "claim": "The isZero check for the big.Int path constructs a new big.Int for 0 (often a heap allocation); reuse a constant for 0 if one exists, or define one in this package.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
amazon-ion__ion-go__86 | amazon-ion/ion-go | 86 | defect | 5ec243dae4cbfcfb3f72d21caed276cd10c8ce10 | b68ba34cb64fbaee94f16932b97d0b56618b64de | Fix for empty lobs | Resolves #82
When we are reading an empty Lob, the ```len``` is 0 and it causes ```b.readN(b.len)``` to return ```nil```.
| diff --git a/ion/bitstream.go b/ion/bitstream.go
index ae536d38..296c4efa 100644
--- a/ion/bitstream.go
+++ b/ion/bitstream.go
@@ -660,6 +660,11 @@ func (b *bitstream) ReadBytes() ([]byte, error) {
panic("not a lob")
}
+ // A0 and 90 are special cases, denoting an empty blob and an empty clob respectively, with ... | 2 | 2 | 1 | [{"id": "G0", "claim": "When b.len == 0, ReadBytes should return an empty slice literal instead of calling make, to avoid a small amount of overhead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The early return added for empty lobs (b.len == 0) s... | null |
amazon-ion__ion-go__92 | amazon-ion/ion-go | 92 | defect | 56af65edae2ff886eea5de8dd942f37e8f24da64 | df601d363b9b228874934ae86e375233c0bfc92c | Using go-cmp for equality check on timestamp, floats and decimal | To get a more accurate and custom way of checking equality between Ion values, we are going to use ```go-cmp``` package.
The implementation is limited to Decimal, Float and Timestamp, as we need custom equivalency. Other types are using ```reflect.DeepEqual()```.
-----
There are some discussions in [this draft p... | diff --git a/go.mod b/go.mod
index c52f576b..8e114253 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,5 @@
module github.com/amzn/ion-go
go 1.13
+
+require github.com/google/go-cmp v0.5.0
diff --git a/go.sum b/go.sum
index 426612cc..f104aca3 100644
--- a/go.sum
+++ b/go.sum
@@ -1,8 +1,22 @@
github.com/google/go-cmp v0... | 4 | 4 | 0 | [{"id": "G0", "claim": "cmpAnnotations could simply return DeepEquals(thisAnnotations, otherAnnotations) instead of the manual index loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cmpValueSlices could use the existing haveSameTypes helper ... | null |
amazon-ion__ion-go__93 | amazon-ion/ion-go | 93 | defect | 56af65edae2ff886eea5de8dd942f37e8f24da64 | f7a7835c7c5cef7587ef82cbc1e8033157cd3152 | Fix issues with struct | 1- Empty string is a valid value for field names.
Default value for strings in Go is empty string. Checking whether a fieldName is a set or not based on checking them against "", disallow us for having something like ```{"":empty}```.
One way to solve this issue is to change ```FieldName() string``` in Reader.go to `... | diff --git a/cmd/ion-go/eventwriter.go b/cmd/ion-go/eventwriter.go
index 40f9240e..55717c55 100644
--- a/cmd/ion-go/eventwriter.go
+++ b/cmd/ion-go/eventwriter.go
@@ -13,7 +13,7 @@ type eventwriter struct {
enc *ion.Encoder
depth int
- fieldname string
+ fieldname *string
annotations []string
inStru... | 3 | 1 | 1 | [{"id": "G0", "claim": "The PR should not use a secret \"UNDEFINED\" sentinel string that can never be used as a field name; instead it should use *string internally, keep the interface backwards compatible, and add a Reader.HasFieldName method for callers who need to distinguish an absent field name from the empty str... | null |
amazon-ion__ion-go__98 | amazon-ion/ion-go | 98 | defect | 0c30b5d01a9d6790add04dae077b4398ed11d28e | 29b4b616e8f8ede01a0a7b8ad83a1dfb9772a4a3 | Use Timestamp struct instead of time.Time | By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/cmd/ion-go/eventwriter.go b/cmd/ion-go/eventwriter.go
index 55717c55..e8a236ea 100644
--- a/cmd/ion-go/eventwriter.go
+++ b/cmd/ion-go/eventwriter.go
@@ -4,7 +4,6 @@ import (
"io"
"math/big"
"strings"
- "time"
"github.com/amzn/ion-go/ion"
)
@@ -106,7 +105,7 @@ func (e *eventwriter) WriteDecimal(... | 10 | 10 | 0 | [{"id": "G0", "claim": "The author should consider using an editor that automatically runs go fmt on save to avoid formatting-only commits.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The timestamp-related values ion.Second and ion.UTC feel o... | null |
amazon-ion__ion-java__1007 | amazon-ion/ion-java | 1,007 | defect | 0a17f822df7a11b3b6b91eab3097893bc6dd3f99 | 96b4f6ee162fba0546b3043bae73170579be9553 | Use default module instead of $ion_encoding | **Issue #, if available:**
None
**Description of changes:**
Changes `$ion_encoding` to the default module as described in https://github.com/amazon-ion/ion-docs/pull/369
This does not implement any new functionality. It just makes the current functionality match the new syntax.
_By submitting this pull r... | diff --git a/ion-tests b/ion-tests
index c83270f08..edbd1089a 160000
--- a/ion-tests
+++ b/ion-tests
@@ -1 +1 @@
-Subproject commit c83270f0842ce67e2eb4237998c5f52e9926cca2
+Subproject commit edbd1089a5626e6269493b12af9f2c1f6de4fdb2
diff --git a/src/main/java/com/amazon/ion/SystemSymbols.java b/src/main/java/com/amazon... | 4 | 4 | 1 | [{"id": "G0", "claim": "The IonException message in setMarker uses %s format specifiers where %d should be used for the long index values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The anonymous Supplier lambdas passed to errorIf are not fr... | null |
amazon-ion__ion-java__1013 | amazon-ion/ion-java | 1,013 | defect | 37a33d230564c2b52b3b0521175181ff05a2b273 | 30362502097f44aac96ad1872368d683dd31baa8 | Restack 1.1 macros and symbols to meet spec changes | See also: https://github.com/amazon-ion/ion-rust/pull/879
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. | diff --git a/ion-tests b/ion-tests
index edbd1089a..fd84d44d1 160000
--- a/ion-tests
+++ b/ion-tests
@@ -1 +1 @@
-Subproject commit edbd1089a5626e6269493b12af9f2c1f6de4fdb2
+Subproject commit fd84d44d1e2879be4800115f7b5dfa663d1d532c
diff --git a/src/main/java/com/amazon/ion/impl/SystemSymbols_1_1.kt b/src/main/java/com... | 3 | 3 | 1 | [{"id": "G0", "claim": "The comment on the added CSV row in testWriteSidFlexSym cites the wrong binary literal (01110101) for SystemSymbols_1_1.EMPTY_TEXT's id and should read 10000001.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trailing `... | null |
amazon-ion__ion-java__1033 | amazon-ion/ion-java | 1,033 | defect | 16b3cd008fc4303f976974e31ca34fe67ae07b00 | 2041189a90dd2a61393410b3da66cef31da8350b | Uses an iterator that adapts from SymbolToken to String in MacroEvaluatorAsIonReader.iterateTypeAnnotations instead of eagerly allocating a new collection. | *Description of changes:*
Before: 264 ms/op
After: 253 ms/op (-4.2%)
We may be able to improve performance further by reusing the iterator.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/src/main/java/com/amazon/ion/impl/macro/MacroEvaluatorAsIonReader.kt b/src/main/java/com/amazon/ion/impl/macro/MacroEvaluatorAsIonReader.kt
index bd7c82955..4e35ba0cd 100644
--- a/src/main/java/com/amazon/ion/impl/macro/MacroEvaluatorAsIonReader.kt
+++ b/src/main/java/com/amazon/ion/impl/macro/MacroEvaluat... | 1 | 1 | 1 | [{"id": "G0", "claim": "SymbolTokenAsStringIterator.next() should throw NoSuchElementException when index >= tokens.size, as the Iterator contract requires, but it will instead throw ArrayIndexOutOfBoundsException.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
amazon-ion__ion-java__1055 | amazon-ion/ion-java | 1,055 | defect | 0ee4895e79b4e9e0b47a8a0dc6297e6e7b37b510 | 805c9b28ff44baa7f21c32b5cb16f3fef164d7e8 | Fixes `IonReader.getIntegerSize()` calculation | *Issue #, if available:*
*Description of changes:*
This PR fixes the integer size calculation for `IonReader.getIntegerSize()`.
*List of changes:*
- Adds changes for integer boundary check
- Adds tests for within the boundary values
By submitting this pull request, I confirm that my contribution is made und... | diff --git a/src/main/java/com/amazon/ion/impl/IonReaderTextSystemX.java b/src/main/java/com/amazon/ion/impl/IonReaderTextSystemX.java
index c187682d5..c3d478ab4 100644
--- a/src/main/java/com/amazon/ion/impl/IonReaderTextSystemX.java
+++ b/src/main/java/com/amazon/ion/impl/IonReaderTextSystemX.java
@@ -191,8 +191,11 @... | 3 | 3 | 0 | [{"id": "G0", "claim": "In magnitudeLessThanOrEqualTo the char accessors should be used only once per iteration instead of calling lhs.charAt(i) in both comparisons.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In testGetIntegerSizeLongBoundar... | null |
amazon-ion__ion-java__1072 | amazon-ion/ion-java | 1,072 | defect | 2c67103563d8f0474313c20a01abaf5205478040 | eaa2c83dcb8ae410dafd4a32937964ef46b3a6b1 | Change `Event` and other `IonCursorBinary` enums to byte constants | **Issue #, if available:**
None.
**Description of changes:**
Change `IonCursor.Event` from an enum to a class containing `static final byte`s to improve performance of reading Ion binary.
| Git Ref | Ion 1.0 | Ion 1.1 |
|:--------------------------------... | diff --git a/src/main/java/com/amazon/ion/IonCursor.java b/src/main/java/com/amazon/ion/IonCursor.java
index e124bbb3b..bc5652643 100644
--- a/src/main/java/com/amazon/ion/IonCursor.java
+++ b/src/main/java/com/amazon/ion/IonCursor.java
@@ -13,41 +13,41 @@ public interface IonCursor extends Closeable {
/**
*... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should retain a copy of the enums so bytes can be upgraded back to enums for error messaging purposes, and keep a comment on them explaining why the byte-constant optimization was made.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
amazon-ion__ion-java__134 | amazon-ion/ion-java | 134 | defect | 1e814b66f04fb55691b1ec2e9381d510f0dcae69 | 66764e9ecb4445e49eb5eb0b253e686585b46692 | fixes isInStruct/getFieldName/getFieldNameSymbol behavior for DOM-backed readers | Fix for https://github.com/amzn/ion-java/issues/133 | diff --git a/src/software/amazon/ion/impl/IonReaderTreeSystem.java b/src/software/amazon/ion/impl/IonReaderTreeSystem.java
index 3901c7a8c0..f946ae15f5 100644
--- a/src/software/amazon/ion/impl/IonReaderTreeSystem.java
+++ b/src/software/amazon/ion/impl/IonReaderTreeSystem.java
@@ -60,7 +60,6 @@ class IonReaderTreeSyst... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test should use JUnit's ExpectedException rule instead of @Test(expected=...) so that the particular line where the exception is expected may be isolated.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When a DOM value is... | null |
amazon-ion__ion-java__147 | amazon-ion/ion-java | 147 | defect | 7992a822ba85fb538b3dd872f1a86b4d0e80906a | f136e54279d61da8301e5992bcfe69193278824a | Correctly detects overflow for VarUInt and VarInt | #146: Detects if a `VarUInt` or `VarInt` value fits inside a Java `int`, if not throws an exeception
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/src/software/amazon/ion/impl/IonReaderBinaryRawX.java b/src/software/amazon/ion/impl/IonReaderBinaryRawX.java
index 196d416872..839ac90639 100644
--- a/src/software/amazon/ion/impl/IonReaderBinaryRawX.java
+++ b/src/software/amazon/ion/impl/IonReaderBinaryRawX.java
@@ -888,127 +888,133 @@ protected final B... | 6 | 6 | 0 | [{"id": "G0", "claim": "The stray blank line in the new test code at the makeReader helper should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new max-value tests and their similar peers should be written as single-line assertE... | null |
amazon-ion__ion-java__155 | amazon-ion/ion-java | 155 | defect | d9388a70be2a29609640b8ad16087651a7654ff2 | de3b517feb13ee66a6b65c071e651fe12daaeaaf | IonStructLite bugfixes | *Description of changes:*
Updated ionstructlite so fieldmap will not always resolve as null on construction, added a boolean hasNullField to throw correctly when a fieldname does not resolve and correctness cannot be determined.
By submitting this pull request, I confirm that my contribution is made under the terms... | diff --git a/src/software/amazon/ion/UnknownSymbolException.java b/src/software/amazon/ion/UnknownSymbolException.java
index becfecd654..5f8d7a737b 100644
--- a/src/software/amazon/ion/UnknownSymbolException.java
+++ b/src/software/amazon/ion/UnknownSymbolException.java
@@ -29,10 +29,17 @@ public class UnknownSymbolExc... | 5 | 5 | 2 | [{"id": "G0", "claim": "The new condition in get() that throws UnknownSymbolException when hasNullFieldName is set needs a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The exception message thrown when hasNullFieldName is set is too wordy and co... | null |
amazon-ion__ion-java__157 | amazon-ion/ion-java | 157 | defect | 7243a57125d341477cc2e82bf84769457cd84172 | 613ea87b526fb429e899918c7453dca4c0ca7a21 | Updated number exceptions to indicate what the source of the error was. | Description of changes:
Updated IonReaderTextSystemX to throw parse errors on invalid binary ints and hexadecimals with descriptive messages.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/src/software/amazon/ion/impl/IonReaderTextSystemX.java b/src/software/amazon/ion/impl/IonReaderTextSystemX.java
index 459a067f10..6e85e30a39 100644
--- a/src/software/amazon/ion/impl/IonReaderTextSystemX.java
+++ b/src/software/amazon/ion/impl/IonReaderTextSystemX.java
@@ -41,6 +41,7 @@
import software.am... | 1 | 1 | 1 | [{"id": "G0", "claim": "The error messages for hex and binary should be made consistent (both say \"int\" or neither), a check that the character after the prefix is 'b' should be added to the binary branch like the hex branch's 'x' check, and the essentially identical hex and binary branches should be collapsed into a... | null |
amazon-ion__ion-java__162 | amazon-ion/ion-java | 162 | defect | 88d5d45c8532f34fa7195e5ba8d205de28bd6e04 | b008062716868f9c4bd1f20fd63fe0d464dc07ca | Implements workaround for java.util.Date bug described in issue 160 | See https://github.com/amzn/ion-java/issues/160. Also there are ample comments in the diff.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/src/software/amazon/ion/Timestamp.java b/src/software/amazon/ion/Timestamp.java
index bd036ae97e..389f8358ce 100644
--- a/src/software/amazon/ion/Timestamp.java
+++ b/src/software/amazon/ion/Timestamp.java
@@ -23,6 +23,7 @@
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCale... | 4 | 4 | 2 | [{"id": "G0", "claim": "The test loop's `if(tz.getRawOffset() >= 0) break;` is wrong and should skip the negative-offset-only assertions instead (e.g. `continue`, or preferably an `if (tz.getRawOffset() < 0)` guard around them), since `break` stops testing all remaining time zones.", "category": "correctness", "verdict... | null |
amazon-ion__ion-java__187 | amazon-ion/ion-java | 187 | defect | 62ebb7424fc438a8682765c7c430da6a551daae6 | 979e8c6bf30689f2afc1d084c869e9515772cc76 | Produces an error for a struct field that has no value | *Issue:* #186
*Description of changes:*
* updates ion-tests submodule to include a new bad/structWithIncompleteField.ion test
* fixes lexer state transitions such that an error is produced when a `}` is found where a value is expected
* removes lob test cases for values `[1, { c: } }` and `{a: 1, b: { c: } }`
... | diff --git a/ion-tests b/ion-tests
index 9bbb4ea124..ad489bf2df 160000
--- a/ion-tests
+++ b/ion-tests
@@ -1 +1 @@
-Subproject commit 9bbb4ea1244c707d77d0d0ff0d35a90d44b4d885
+Subproject commit ad489bf2df23381eedb3df8ccd69931f581dea18
diff --git a/src/software/amazon/ion/impl/IonReaderTextRawX.java b/src/software/amazo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The LOB_DATA array values are strings rather than clobs, so add {{ and }} around them to make them clobs and provide the lob test coverage the original author probably intended.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
amazon-ion__ion-java__188 | amazon-ion/ion-java | 188 | defect | cbd1ab93393fbf213d6cdffbd4200b00dd261029 | 88cace2f26ac30b2c9612d2f600775abc5848082 | Implements IonSequence#sublist | Implements sublist according to java List spec, i.e. sublist is a view
of the parent list so changes to the parent list are reflected on
the the sublist.
Java's List contract warns that the sublist semantics became undefined
after any structural changes, that affect size, to the parent list.
Most implementations... | diff --git a/src/software/amazon/ion/IonSequence.java b/src/software/amazon/ion/IonSequence.java
index 378d9dc261..3e95b2aeea 100644
--- a/src/software/amazon/ion/IonSequence.java
+++ b/src/software/amazon/ion/IonSequence.java
@@ -393,13 +393,18 @@ public void add(int index, IonValue child)
/**
- * This in... | 24 | 23 | 1 | [{"id": "G0", "claim": "The new subList javadoc should read \"its size after the sublist\" instead of \"its size after sublist\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new code should have a space between if/for and the following \"(\... | null |
amazon-ion__ion-java__201 | amazon-ion/ion-java | 201 | defect | 77ba31c570b6cd6c2f35f70a0896b0e0d0e472ac | 78fb1fec854d7ebe205612b227a3ca506711481f | Reworks the local symbol table append reading implementation for better performance. | *Description of changes:*
Treating each appended local symbol table as an import to the next local symbol table required a huge call stack to resolve a symbol ID from one of the early tables when many appended tables exist. This change flattens the structure by simply copying the imports and symbols into the new local... | diff --git a/src/software/amazon/ion/impl/BaseSymbolTableWrapper.java b/src/software/amazon/ion/impl/BaseSymbolTableWrapper.java
deleted file mode 100644
index 7e16d6e628..0000000000
--- a/src/software/amazon/ion/impl/BaseSymbolTableWrapper.java
+++ /dev/null
@@ -1,124 +0,0 @@
-package software.amazon.ion.impl;
-
-impo... | 3 | 2 | 0 | [{"id": "G0", "claim": "The shallow copy of imports should be done by cloning the array (e.g. imports.clone()) instead of manually allocating and System.arraycopy-ing it.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A question of whether the hand-rolle... | null |
amazon-ion__ion-java__224 | amazon-ion/ion-java | 224 | defect | a19302d1ebcc5e8ca41d19342581364f89d09c1a | c40627b49a287c2c79f3601f3a5a11c256072002 | Gzip memleak fix | This commit addresses the memleak caused by auto detecting and uncompressing gzipped ion data by either:
* Fixing the issue when possible, example IonSystem#singleValue
* Deprecating methods where a fix is not feasible providing a safe
alternative, example IonSystem#iterate(InputStream)
The alternative method tak... | diff --git a/src/software/amazon/ion/IonLoader.java b/src/software/amazon/ion/IonLoader.java
index 9b6e7819c5..336f8280ee 100644
--- a/src/software/amazon/ion/IonLoader.java
+++ b/src/software/amazon/ion/IonLoader.java
@@ -125,6 +125,11 @@ public IonDatagram load(byte[] ionData)
/**
+ * <p>
+ * <strong... | 8 | 6 | 0 | [{"id": "G0", "claim": "Remove the 'This method will auto-detect and uncompress GZIPped Ion data' line from the new load(IonReader)/iterate(IonReader) javadoc, since gzip handling pertains to the methods that construct the IonReader, not these methods.", "category": "documentation", "verdict": "supported", "priority": ... | null |
amazon-ion__ion-java__239 | amazon-ion/ion-java | 239 | defect | 9f713950875bc5a0c9ffb6ad126c824bad405e53 | aa21411a4569045204188835dc3d0bd3c03f1fd0 | Triggers sid resolution when getting annotations in text documents | https://github.com/amzn/ion-java/issues/237
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/src/com/amazon/ion/impl/IonReaderTextRawX.java b/src/com/amazon/ion/impl/IonReaderTextRawX.java
index 9a9049aa4f..0e1d7c11e2 100644
--- a/src/com/amazon/ion/impl/IonReaderTextRawX.java
+++ b/src/com/amazon/ion/impl/IonReaderTextRawX.java
@@ -1321,12 +1321,6 @@ public Iterator<String> iterateTypeAnnotations... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the new resolveAnnotationSymbols, getSymbolTable() is called inside the per-annotation loop even though it is loop-invariant, so it should be moved outside the loop.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The singl... | null |
amazon-ion__ion-java__267 | amazon-ion/ion-java | 267 | defect | 6112773c5f62fb23c2b33f38909add07c5c9072c | 6f3c946c117e3c2b06bdee4422e9ac43b74de1c2 | Optimizations for reading binary strings. | ## Description of changes
This PR optimizes the process by which the binary `IonReader` reads `string`s.
### Performance change summary
#### Reading small strings
When decoding strings that are small enough to fit in the reusable decoding buffer:
| Time Required | GC Time
| ----------- | :---------... | diff --git a/src/com/amazon/ion/impl/IonReaderBinaryRawX.java b/src/com/amazon/ion/impl/IonReaderBinaryRawX.java
index c5ece958f9..a8610c30e2 100644
--- a/src/com/amazon/ion/impl/IonReaderBinaryRawX.java
+++ b/src/com/amazon/ion/impl/IonReaderBinaryRawX.java
@@ -27,10 +27,16 @@
import com.amazon.ion.impl.UnifiedSavePo... | 5 | 4 | 0 | [{"id": "G0", "claim": "The comparison in the reusable-buffer fast path should be `<=` rather than `<`, so a string whose length equals the buffer size also takes that path.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fast-path check should c... | null |
amazon-ion__ion-java__297 | amazon-ion/ion-java | 297 | defect | b3115b27ee572e5d14af261dea445f72b8522d06 | 71c879ed93d5eef68359dbb0e9fa70f062afd96e | Make IonSequence.SubListView implement equals and hashCode | By changing `IonSequence.SubListView` to extend [`AbstractList`](https://docs.oracle.com/javase/7/docs/api/java/util/AbstractList.html) we inherit its implementation of `.equals` and `.hashCode`.
The only real work here was the unit tests and the javadoc.
Also adds `JUnitParams` as a test dependency since (IMHO) ... | diff --git a/pom.xml b/pom.xml
index bab0e92076..62ac58ae56 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,6 +76,12 @@
<version>4.12</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>pl.pragmatists</groupId>
+ <artifactId>JUnitParams</artifactId>
+ <version>1.1.1</ver... | 9 | 8 | 1 | [{"id": "G0", "claim": "The class-level API documentation of IonSequence still says that subList is not implemented at all, which must be updated now that the pull request implements it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new sente... | null |
amazon-ion__ion-java__302 | amazon-ion/ion-java | 302 | defect | b6842d54245fdef9366236856130d9cb086b6f37 | bbef742745f674f9113eb770869eb41f722261c5 | Adds Timestamp.forEpochSecond() | Implements #301 by adding `Timestamp.forEpochSecond` to allow easy conversion from Java 8's `java.time.Instant`.
This test works on my local machine when I target Java 8. (It's not included in this PR since we can't yet update `ion-java` to Java 8.)
```Java
@Test
public void convertFromInstantTest() {
Ins... | diff --git a/src/com/amazon/ion/Timestamp.java b/src/com/amazon/ion/Timestamp.java
index 39df6e0827..b6902a7718 100644
--- a/src/com/amazon/ion/Timestamp.java
+++ b/src/com/amazon/ion/Timestamp.java
@@ -84,18 +84,37 @@ public final class Timestamp
private static final int NO_SECONDS = 0;
private static final ... | 2 | 2 | 2 | [{"id": "G0", "claim": "forEpochSecond should probably accept a local offset, like forMillis does.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "forEpochSecond should not strip trailing zeros from the fraction — since it accepts nanoseconds, its Timesta... | null |
amazon-ion__ion-java__349 | amazon-ion/ion-java | 349 | defect | 30536fbee0cf93d7b21c1702cf4ba6df6a58965e | 037f6a192f8ee600b49acdc68674f80d3588aef3 | Catches exception of unkown sid bigger than INT_MAX. | ### Description:
For a file with text: `$33333333333333`, ion-java raise NumberFormatException exception instead of IonException.
The issue happens when we call the [hasNext()](https://github.com/amzn/ion-java/blob/30536fbee0cf93d7b21c1702cf4ba6df6a58965e/src/com/amazon/ion/impl/IonReaderTextRawX.java#L486) metho... | diff --git a/src/com/amazon/ion/impl/IonTokenConstsX.java b/src/com/amazon/ion/impl/IonTokenConstsX.java
index c361606636..92b380c54c 100644
--- a/src/com/amazon/ion/impl/IonTokenConstsX.java
+++ b/src/com/amazon/ion/impl/IonTokenConstsX.java
@@ -17,6 +17,7 @@
import com.amazon.ion.IonException;
import com.amazon.i... | 2 | 2 | 2 | [{"id": "G0", "claim": "A symbol ID that cannot fit into an int is not necessarily unknown, so throwing UnknownSymbolException is the wrong exception; decodeSid should instead throw an IonException with the parse exception as the cause.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
amazon-ion__ion-java__357 | amazon-ion/ion-java | 357 | defect | 0eb62ba92633f03e9f3175bb77f1b3214fcc1cdd | 771dacbcf86460073d352a63d5635f427c8b0240 | Fix unexpected assertion error. | **Description:**
Assertions error raised in IonUTF8.java when uses unexpected encoding, e.g. `iso-8859-1`.
**Summary of the code:**
Changed assert to IonException and added unit test.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.... | diff --git a/src/com/amazon/ion/impl/IonUTF8.java b/src/com/amazon/ion/impl/IonUTF8.java
index 4b1c718bc0..711006a19e 100644
--- a/src/com/amazon/ion/impl/IonUTF8.java
+++ b/src/com/amazon/ion/impl/IonUTF8.java
@@ -381,14 +381,16 @@ public final static boolean needsSurrogateEncoding(int unicodeScalar) {
return... | 1 | 1 | 0 | [{"id": "G0", "claim": "The validity check duplicated in highSurrogate and lowSurrogate should instead live in the shared API above them (needsSurrogateEncoding), simplified to `if (unicodeScalar > Character.MAX_CODE_POINT)`, with the precondition assertions kept as asserts and a more helpful error message like \"Inval... | null |
amazon-ion__ion-java__367 | amazon-ion/ion-java | 367 | defect | 23a7f457c5f5ff6587d097aa5fedb238a3c110c0 | 2c172f430beec64c17790f90aa8f387667f7bc6e | Fixes handling of NaN and +/-Inf when downconverting to json | **Issue #, if available:**
N/A
**Description of changes:**
The Ion Docs section on [Down Converting to Json](https://amzn.github.io/ion-docs/guides/cookbook.html#down-converting-to-json) says:
> Floats are printed as JSON *number* with `nan` and `+-inf` converted to JSON *null*
Right now, `ion-java` just... | diff --git a/src/com/amazon/ion/impl/IonWriterSystemText.java b/src/com/amazon/ion/impl/IonWriterSystemText.java
index 0cbb85942a..4c7b2c2192 100644
--- a/src/com/amazon/ion/impl/IonWriterSystemText.java
+++ b/src/com/amazon/ion/impl/IonWriterSystemText.java
@@ -604,7 +604,7 @@ public void writeFloat(double value)
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The NaN/infinity JSON-writing behaviour should be covered by separate test methods for each value instead of one combined test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks what _float_nan_and_inf_as_null mean... | null |
amazon-ion__ion-java__404 | amazon-ion/ion-java | 404 | defect | cf97f97c04cda01a9e2806b1a27e8d04394bda3f | 7f1300a58cb883d2cc7d1dcf4824f16ac0291cef | Eliminates allocations in the binary writer | This patch changes some very hot code paths in the binary writer
to eliminate unnecessary allocations.
In particular:
* Setting the annotations list no longer constructs a temporary
array of `SymbolToken`s.
* `prepareValue` (which is called for every value in the stream)
now uses a plain `for` loop instead ... | diff --git a/src/com/amazon/ion/impl/bin/IntList.java b/src/com/amazon/ion/impl/bin/IntList.java
new file mode 100644
index 0000000000..8c0ba5c214
--- /dev/null
+++ b/src/com/amazon/ion/impl/bin/IntList.java
@@ -0,0 +1,105 @@
+package com.amazon.ion.impl.bin;
+
+/**
+ * A list of integer values that grows as necessary.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The testSize test should add the value 0 (twice) instead of 1, 2 and 3, so the test does not pass merely because the added values coincide with non-zero defaults.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
amazon-ion__ion-java__407 | amazon-ion/ion-java | 407 | defect | 0747831d0d8a8fe05a65f94e612f669e209c2f52 | dcd0480eac4a0be2a1958bfdbbb7983f967d080b | Optimizes the incremental reader's symbol table reading logic for tables with imports. | *Description of changes:*
Profiling has revealed that the incremental reader's existing handling of shared symbol tables performs poorly, and becomes noticeable when reading small values with shared symbol tables or streams that contain many symbol tables with imports.
This inefficiency was due to the fact that t... | diff --git a/src/com/amazon/ion/impl/ImportLocation.java b/src/com/amazon/ion/impl/ImportLocation.java
new file mode 100644
index 0000000000..acd5873887
--- /dev/null
+++ b/src/com/amazon/ion/impl/ImportLocation.java
@@ -0,0 +1,53 @@
+package com.amazon.ion.impl;
+
+/**
+ * A SymbolToken's import location, allowing for... | 2 | 1 | 0 | [{"id": "G0", "claim": "The hand-rolled hashCode could use the standard state-vector idiom (e.g. Arrays.hashCode or Immutables) instead of manual arithmetic, as a rapid and foolproof implementation.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
amazon-ion__ion-java__426 | amazon-ion/ion-java | 426 | defect | 9d1b3659a97810fe840bc41a4e87f13096167c08 | 9cbc640041ce166d9eea7c19740781b44e2175c5 | Fixes a bug that prevented the incremental reader from recovering from an oversized value that occurred mid-stream. | *Description of changes:*
The existing tests failed to cover the case where an oversized value occurs mid-stream. Tests in a consuming package uncovered this issue. Before this fix, a `BufferOverflowException` would be raised in this situation because the buffer's write index was not shifted left to make room for more... | diff --git a/src/com/amazon/ion/impl/IonReaderLookaheadBuffer.java b/src/com/amazon/ion/impl/IonReaderLookaheadBuffer.java
index 174045c30e..7012cdfab3 100644
--- a/src/com/amazon/ion/impl/IonReaderLookaheadBuffer.java
+++ b/src/com/amazon/ion/impl/IonReaderLookaheadBuffer.java
@@ -516,6 +516,7 @@ private void shiftInd... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test comment wrongly states the maximum buffer size is less than the second and third values; it should only say it is less than the second value (it is greater than the third value).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
amazon-ion__ion-java__433 | amazon-ion/ion-java | 433 | defect | ab41cd18e6727ad53ca354752cdefcaa374a503c | 23ba66509e15c4eb40ae808a7da3bf6c42df973e | Jar info changes | *Issue #, if available:* #432
*Description of changes:* Uses a `build.properties` file interpolated from Maven variables at build time to make project version and build time information available through `JarInfo`. This approach does not fail when multiple instances of `ion-java` are available on the classpath.
... | diff --git a/ion-tests b/ion-tests
index ef0451a72a..c125f571d2 160000
--- a/ion-tests
+++ b/ion-tests
@@ -1 +1 @@
-Subproject commit ef0451a72a39f572175ad8e90b1a77110e9aec4c
+Subproject commit c125f571d2b459e0e610eac5ca11900bd3b6d493
diff --git a/pom.xml b/pom.xml
index 4a3d696a2c..781b0d20f2 100644
--- a/pom.xml
+++ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The removal of the release profile's <jdkVersion>1.5</jdkVersion> properties block in pom.xml appears unrelated to the PR's purpose; the reviewer asks whether it is a related change and what its implications are.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduce... | null |
amazon-ion__ion-java__499 | amazon-ion/ion-java | 499 | defect | a84b606d858203764a8ab3ca0aaed6359223d030 | d908b9d2a1804a4c306306d6d1da08db69a5dd8d | Makes IonSystemLite load values iteratively, not recursively | `IonSystemLite` uses recursion to materialize an `IonReader`'s
current value into an `IonValueLite`. If the data is especially
deeply nested, this can lead to stack exhaustion.
This patch introduces a private helper class called `ValueLoader`
that performs the same logic iteratively, avoiding stack exhaustion
an... | diff --git a/src/com/amazon/ion/impl/lite/IonSystemLite.java b/src/com/amazon/ion/impl/lite/IonSystemLite.java
index 2bc8cec3bd..c72839dca4 100644
--- a/src/com/amazon/ion/impl/lite/IonSystemLite.java
+++ b/src/com/amazon/ion/impl/lite/IonSystemLite.java
@@ -24,6 +24,7 @@
import static com.amazon.ion.impl._Private_Uti... | 2 | 2 | 0 | [{"id": "G0", "claim": "The removal of local SIDs from symbol tokens whose text is defined (in cloneAnnotationsIfAny, and likewise for field names) is fairly expensive and, as far as the reviewer can see, provides no benefit and should be dropped.", "category": "performance", "verdict": "supported", "priority": "P2", "... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.