Skip to content

NGSPICE: model parser bug when an underscore is in model name

Description

I'm not really shure if this is a bug or if the lib if not correct. I didn't know NGSPICE good enough. But I got a lot of these errors with some libs from the internet. Please check... It seems, that the "_" is not accepted in a model name

This model name drops an error message

grafik

grafik

Deleting the underscore makes the model work!

Steps to reproduce

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: (7.0.0-rc2-187-g9b9ebebb2d), release build

Libraries:
	wxWidgets 3.2.1
	FreeType 2.12.1
	HarfBuzz 5.0.1
	FontConfig 2.14.1

Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.1 (wchar_t,wx containers)
	Boost: 1.80.0
	OCC: 7.6.2
	Curl: 7.83.1-DEV
	ngspice: 38
	Compiler: Visual C++ 1934 without C++ ABI

Build settings:
	KICAD_SPICE=ON