fix(standalone): bump KICAD_VERSION_DIR 9.99 -> 10.0 so seeded lib tables are read
After the kicad fork was rebased onto KiCad 10.0.4, GetMajorMinorVersion() (and
thus PATHS::GetUserSettingsPath()'s version subdir) became "10.0", but the
standalone still seeded the global sym-lib-table / config under
~/.config/kicad/kicad/9.99/. The WASM read .../10.0/ and found nothing, so
LIBRARY_MANAGER loaded 0 symbol-table rows and the Add Symbol / Add Power
choosers came up empty ("0 items loaded") with no library list requests.
Aligning KICAD_VERSION_DIR with the build's version makes the chooser load all
222 CDN libraries (19,779 symbols) again. Verified in the local demo against live
R2 (libs/kicad/10.0.3). The footprint editor / pcbnew read the same dir, so this
fixes their libraries too.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e8d964d871
commit
a77f7ae346
1 changed files with 5 additions and 1 deletions
|
|
@ -7,8 +7,12 @@ import type { Tool } from "@pcbjam/shared";
|
|||
* NOTE (spec §11.1): this path is KiCad-version dependent and confirmed by
|
||||
* tests/kicad/load-pcb-probe.spec.ts. If the build's version dir changes, this
|
||||
* must change too — a candidate for reading from the module at runtime later.
|
||||
* It MUST match KiCad's GetMajorMinorVersion() (== PATHS::GetUserSettingsPath()'s
|
||||
* version subdir); otherwise the seeded sym-lib-table/config is written to a dir
|
||||
* the WASM never reads and the symbol/footprint choosers come up empty. The
|
||||
* KiCad 10.0.4 rebase bumped this from "9.99" to "10.0".
|
||||
*/
|
||||
export const KICAD_VERSION_DIR = "9.99";
|
||||
export const KICAD_VERSION_DIR = "10.0";
|
||||
export const MEMFS_PROJECTS_DIR = `/home/kicad/documents/kicad/${KICAD_VERSION_DIR}/projects`;
|
||||
|
||||
/** Where KiCad expects images.tar.gz (compiled-in KICAD_DATA path). */
|
||||
|
|
|
|||
Loading…
Reference in a new issue