Skip to content

Adding ":" character to design block name leads to errors

Description

Trying to add the ":" character on any of the design blocks in the design block libraries causes KiCad V9 to throw an error and discard all of the data then far entered. KiCad does not warn about any illegal characters at the time of typing the name, but only at the end when you press the OK button. Thi causes all of the details carefully typed to be "lost" to an error.

If there are illegal characters that are not allowed in any of the input fields, KiCad should let the user know about while typing it and prevent any confirmation operations (such as the OK button) to be performed.

I was trying to add the LM66200DRLR which is a "2:1" ORing selector. Trying to add a name like "LM66200DRLR_2:1_OR_Selector" causes KiCad to throw the error.

image

image

image

This obviously happens because of the MSW's limitations on the folder naming. But I think there should be a better way of handling such errors.

Steps to reproduce

  1. Open any design block Properties window.
  2. Type in as many as details to the block.
  3. In the final step, add an illegal character such as ":" to the name of the block and press OK.
  4. All of the typed data will be lost to the unhandled error.

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 9.0.1, release build

Libraries:
	wxWidgets 3.2.6
	FreeType 2.13.3
	HarfBuzz 10.2.0
	FontConfig 2.15.0
	libcurl/8.11.1-DEV Schannel zlib/1.3.1

Platform: Windows 11 (build 26120), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: NVIDIA Corporation, NVIDIA GeForce RTX 3060/PCIe/SSE2, 4.6.0 NVIDIA 560.94

Build Info:
	Date: Mar 30 2025 01:11:30
	wxWidgets: 3.2.6 (wchar_t,wx containers)
	Boost: 1.86.0
	OCC: 7.8.1
	Curl: 8.11.1-DEV
	ngspice: 44
	Compiler: Visual C++ 1942 without C++ ABI
	KICAD_IPC_API=ON

Locale: 
	Lang: en_IN
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Vishnu Mohanan