You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% gptree -i
Enter the root directory of the project [.]: lib
Combining files in lib into gptree_output.txt...
Found .gitignore in: /Users/breitburg/Developer/pollyanna
Traceback (most recent call last):
File "/Users/breitburg/.local/bin/gptree", line 8, in <module>
sys.exit(main())
~~~~^^
File "/Users/breitburg/.local/pipx/venvs/gptree-cli/lib/python3.13/site-packages/cli_tool_gptree/main.py", line 510, in main
combined_content, selected_files = combine_files_with_structure(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
path,
^^^^^
...<3 lines>...
safe_mode=config["safeMode"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/breitburg/.local/pipx/venvs/gptree-cli/lib/python3.13/site-packages/cli_tool_gptree/main.py", line 203, in combine_files_with_structure
selected_files = interactive_file_selector(file_list)
File "/Users/breitburg/.local/pipx/venvs/gptree-cli/lib/python3.13/site-packages/cli_tool_gptree/main.py", line 176, in interactive_file_selector
curses.wrapper(draw_menu)
~~~~~~~~~~~~~~^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/Users/breitburg/.local/pipx/venvs/gptree-cli/lib/python3.13/site-packages/cli_tool_gptree/main.py", line 137, in draw_menu
stdscr.addstr(idx + 2, 0, f"{prefix} {file[:70]}")
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_curses.error: addwstr() returned ERR
The text was updated successfully, but these errors were encountered:
Running on macOS 15.3.1 (24D70). I think I found the root cause: The command works normally without -i, but crashes when using the -i flag if the terminal window is too small. Then this crash occurs consistently, across all directories.
One more thing I think you might want to try — if you've installed it using pip or pipx, try installing it via Homebrew. The binary loads itself completely differently. I'd give it a higher probability of working
When I run
gptree -i
the app crashes.The text was updated successfully, but these errors were encountered: