Commit Graph
25 Commits
Author SHA1 Message Date
Dean 2609e1b118 Merge pull request #11234 from hyvvs/fix/stubgen-preserve-known-exports
fix(tools): preserve verified NID names in generated exports
2026-10-27 18:33:23 +13:00
Dean 5782d0fcf3 Merge pull request #10883 from natreal/fix/stubgen-reject-invalid-db-rows
fix(tools): reject malformed NID database rows in stubgen
2026-10-27 16:51:12 +13:00
hyvvs a0de29a1a6 fix(tools): preserve stubgen single-pass iterable inputs 2026-10-26 00:00:37 +01:00
hyvvs 0134af3f62 fix(tools): preserve verified NID names in generated exports 2026-10-25 23:22:36 +01:00
plexerPK 7259cf0a87 fix(tools): shorten stubgen temporary filenames 2026-10-25 15:25:23 +01:00
Nathan Desaindes df55659d08 fix(tools): reject malformed NID database rows in stubgen
parse_db silently skipped a row that had no symbol name and accepted any
text as a NID, so a malformed database produced Unknown stubs and
technical-debt lines for NIDs that did have a name, with no hint that the
database was at fault. Reject such rows with a path:line error, the way
parse_nids already rejects malformed NIDs.
2026-10-25 03:06:41 -04:00
emirplus ca6c91ff98 fix(tools): reconfigure streams with backslashreplace in stubgen 2026-10-22 18:56:17 +03:00
emirplus 8836668ef4 fix(tools): preserve lf line endings on stderr in stubgen 2026-10-19 18:52:56 +03:00
simonbronk e54ea3ea29 fix(stubgen): reject read-only outputs before replacement 2026-10-16 10:51:42 +02:00
Adrià 1d1c7615c3 Merge pull request #5767 from GalaxyGamingFR/fix/stubgen-func-name
fix(stubgen): report named stubs by __func__
2026-10-15 14:41:41 +02:00
Adrià f7a90d6fd6 Merge pull request #5721 from GalaxyGamingFR/fix/stubgen-module-prx-suffix
fix(tools): strip .prx suffix from stubgen module name
2026-10-15 14:16:14 +02:00
Adrià c2b55c66fb Merge pull request #4974 from ideabsassistenza/fix/stubgen-readonly-cleanup
fix(stubgen): clean read-only staged files after failure
2026-10-14 19:39:04 +02:00
GalaxyGamingFRandClaude Opus 5.5 25527f97a0 fix(stubgen): report named stubs by __func__
CONTRIBUTING.md says unimplemented exports call
NotImplemented_nid_no_patch(__func__), and 362 calls in core/ do. A stub
generated for a NID with a known name passed the NID string instead,
so its log line showed tNn5WBkta60 rather than sceAmprCommandBufferNop
and the output had to be edited by hand. Named stubs now use __func__;
stubs with an unknown name keep the NID, the only identifier they have.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012zyXkUzTZGh3nBwNMtrLaW
2026-10-14 02:50:53 -07:00
GalaxyGamingFRandClaude Opus 5.5 813a7f2691 fix(tools): strip .prx suffix from stubgen module name
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012zyXkUzTZGh3nBwNMtrLaW
2026-10-14 01:43:14 -07:00
Adrià FranchandClaude ff6c1ea5f3 fix(stubgen): reconfigure stdout only when it supports it
Callers that replace sys.stdout (test_stubgen redirect_stdout) have no reconfigure().

Co-Authored-By: Claude <[email protected]>
2026-10-13 12:07:13 +02:00
GalaxyGamingFRandClaude Fable 5.1 f6d5404f45 fix(stubgen): write LF to stdout on Windows
When --out was not given, stubgen wrote the generated code and debt lines to
sys.stdout, which translates LF to CRLF on Windows, so redirecting stdout
produced CRLF files. stdout is now reconfigured to utf-8 with LF newlines,
matching the --out path. A subprocess test checks the bytes on stdout.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V9UU71SP1UKGR51Sowbgmq
2026-10-13 12:06:59 +02:00
Simon 149aea5061 fix(stubgen): clean read-only staged files after failure 2026-10-13 09:45:59 +02:00
Adrià FranchandClaude 555099ae23 feat(tools): keep technical debt in one file per library
Co-Authored-By: Claude <[email protected]>
2026-10-12 20:38:17 +02:00
Adrià Franch 8b73fe7a76 fix(stubgen): give new output files the default umask permissions 2026-10-11 17:11:35 +02:00
MrMha 83be8dfb27 fix(stubgen): protect input files and keep stdout valid C++ 2026-10-11 18:23:13 +04:00
GalaxyGamingFRandClaude Fable 5.1 efbf36f637 fix(tools): make stubgen debt links resolve from docs/dev
stubgen emitted TechnicalDebt links as repo-relative paths, but
TechnicalDebt.md lives in docs/dev and the conventions checker resolves
links relative to it, so pasted lines failed CI. The derived default path
now carries a ../../ prefix; an explicit --td-path is used as given.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01V9UU71SP1UKGR51Sowbgmq
2026-10-11 11:58:25 +02:00
Pouare514 4a6775c389 fix(tools): stubgen imports NID scheme, fixes libkernel TD path 2026-10-09 20:08:56 +02:00
Pouare514 85720b9b57 fix(tools): stubgen uses real names plain, runtime postfix, TD lines 2026-10-09 20:07:07 +02:00
Pouare514 ddca247c0d fix(tools): stubgen emits throwing stubs only, no comments 2026-10-09 20:07:07 +02:00
Pouare514 e8e308fc23 feat(tools): generate Export.cpp skeletons from missing NIDs 2026-10-09 20:07:07 +02:00