ysync 0009 phase 4: sym_convert --lint mode (kicad_lint folded into the converter)
sym_convert --lint [--strict] <file...>: full parse for .kicad_sch (restored LoadSchematicFile + minimal headless PGM/SETTINGS_MANAGER runtime, aSetActive=false) and .kicad_sym/.lib; structure-only for other s-expr files; dup-uuid identity lints (walker) on every s-expr input; errors as file:line:offset, exit 0/1/2. Convert mode byte-identical (qa gate). Fixes en route: 64KB stack local overflowed the default wasm stack (mimalloc corruption); pre-js now inherits process.env into getenv (KICAD_CONFIG_HOME / SYM_CONVERT_TRACE); font abort stub retired (SCH_SCREEN::Append bbox resolves draw fonts) -> 18.0MB; six GetMsgPanelInfo typeinfo stubs; BUILD_3D_VIEWER defaults OFF for headless CLIs (gl1 shim needs glm). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0142yAmMGZ3Ejrq3wwVr2Yq2
This commit is contained in:
parent
33e59fde00
commit
28388990ee
6 changed files with 559 additions and 41 deletions
|
|
@ -7,6 +7,17 @@
|
|||
// with an in-memory store: every read returns "absent" → KiCad falls back to
|
||||
// defaults; writes live only for the process lifetime. Semantics mirror
|
||||
// wxwidgets/build/wasm/wx.js exactly (sans persistence).
|
||||
// Emscripten does NOT inherit the host environment into the wasm getenv()
|
||||
// table (node included) — without this, KICAD_CONFIG_HOME / SYM_CONVERT_TRACE
|
||||
// set by the caller silently never arrive. Copy process.env in before main.
|
||||
Module['preRun'] = Module['preRun'] || [];
|
||||
Module['preRun'].push( function() {
|
||||
if( typeof process !== 'undefined' && process.env && typeof ENV !== 'undefined' )
|
||||
{
|
||||
for( var k in process.env ) ENV[k] = process.env[k];
|
||||
}
|
||||
} );
|
||||
|
||||
(function( g ) {
|
||||
if( !g.localStorage )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue