Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 10, 2025

Summary

Fixed a bug where the --structure option was displaying link IDs in the formatted output instead of showing a clean nested structure representation.

Before: (4:(2:(1: ) 1) 2)
After: ((( ) 1) 2)

Changes Made

  • Modified Program.cs to change the FormatStructure call parameters from (true, true) to (false, false)
  • This disables showing link IDs in the structure representation, providing cleaner output

Test Plan

  • Reproduced the original issue locally
  • Verified the fix produces the expected output format
  • Tested structure formatting for multiple link IDs (1, 2, 3, 4)
  • Confirmed all structure outputs now match the expected clean format

Verification

# Create test links
dotnet run --project Foundation.Data.Doublets.Cli -- '() ((1: 0 0))'
dotnet run --project Foundation.Data.Doublets.Cli -- '() ((2: 1 1))' 
dotnet run --project Foundation.Data.Doublets.Cli -- '() ((3: 2 1))'
dotnet run --project Foundation.Data.Doublets.Cli -- '() ((4: 2 2))'

# Test structure formatting
dotnet run --project Foundation.Data.Doublets.Cli -- --structure 4
# Output: ((( ) 1) 2)   ✅ Clean nested structure

Fixes #19

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #19
@konard konard self-assigned this Sep 10, 2025
konard and others added 2 commits September 10, 2025 17:07
The --structure option was showing link IDs in the formatted output like '(4:(2:(1: ) 1) 2)'
instead of the expected simplified format like '((( ) 1) 2)'.

Fixed by changing the FormatStructure call parameters from (true, true) to (false, false)
to disable showing link IDs in the structure representation.

Fixes #19

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] Looks like a bug with formatting of structure Fix structure formatting to hide link IDs in output Sep 10, 2025
@konard konard marked this pull request as ready for review September 10, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Looks like a bug with formatting of structure

2 participants