Class names cannot contain unprintable characters error

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
twa_priv
Posts: 12
Joined: Mon Jan 14, 2008 7:47 pm

Class names cannot contain unprintable characters error

Post by twa_priv »

After upgrading to the latest version 8.13.0 I am getting the following error after opening Preferences and clicking on Document Classes:

Class names cannot contain unprintable characters, backslashes, nor start with spaces

I am unable to Cancel out of the Preferences dialog once this error is shown and the only solution is to kill the Textpad process.

Note that this was working fine with all prior versions including 8.12.0
User avatar
AmigoJack
Posts: 490
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

If you want to investigate you can find ConfigState.xml in your folder %appdata%\Helios\TextPad\8 (just paste that directly into the File Explorer's path line - it should become something like C:\Users\MyName\AppData\Roaming\Helios\TextPad\8) and sense that under <Document-Classes> each occurance of <class name=" stores a document class name. Inspect those for said errors.

Since not all characters can be visualized you should also inspect that file either with a hex editor (or opening it in binary mode in TextPad), or at least enable "View > Visible Spaces" from the menu.
twa_priv
Posts: 12
Joined: Mon Jan 14, 2008 7:47 pm

Post by twa_priv »

Thanks AmigoJack. No luck though. None of my classes have any unprintable characters, backslashes or start with spaces.

TextPad support - can you please help here? This issue started with the latest version. Also, I haven't added any document classes in a long time.
User avatar
bbadmin
Site Admin
Posts: 808
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

Please contact technical support about this issue using the form at:

https://www.textpad.com/emailus
User avatar
Drxenos
Posts: 210
Joined: Mon Jul 07, 2003 8:38 pm

Post by Drxenos »

twa_priv wrote:Thanks AmigoJack. No luck though. None of my classes have any unprintable characters, backslashes or start with spaces.

TextPad support - can you please help here? This issue started with the latest version. Also, I haven't added any document classes in a long time.
I had the same issue. What I did was manually remove all the classes from ConfigState.xml, then add them back one at a time until I found the offending one.

FYI: TextPad will complain if your class name contains a space, not just starts with one.
User avatar
bbadmin
Site Admin
Posts: 808
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

This is fixed in release 8.14.2 which is now available for download.
Post Reply