﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5999	icon generator does not work with classnames ending on numeral	Dietmar Winkler	Martin Sjölund	"When trying to generate the HTML help for the latest 4.0.0 MSL release I noticed that the `generate_icons.py` does not seem to like class names ending on a numeral. So you get an error for `ObsoleteModelica4`

{{{
 2020-06-05 23:53:01.154984 Generating SVGs for package(s) ['ObsoleteModelica4']
2020-06-05 23:53:01,194 - generate_icons.py - INFO - Loading package: ObsoleteModelica4
Traceback (most recent call last):
  File ""/usr/lib/python3.8/runpy.py"", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File ""/usr/lib/python3.8/runpy.py"", line 86, in _run_code
    exec(code, run_globals)
  File ""/usr/lib/python3.8/cProfile.py"", line 196, in <module>
    main()
  File ""/usr/lib/python3.8/cProfile.py"", line 189, in main
    runctx(code, globs, None, options.outfile, options.sort)
  File ""/usr/lib/python3.8/cProfile.py"", line 19, in runctx
    return _pyprofile._Utils(Profile).runctx(statement, globals, locals,
  File ""/usr/lib/python3.8/profile.py"", line 62, in runctx
    prof.runctx(statement, globals, locals)
  File ""/usr/lib/python3.8/cProfile.py"", line 100, in runctx
    exec(cmd, globals, locals)
  File ""/usr/bin/../share/doc/omc/testmodels/generate_icons.py"", line 1335, in <module>
    sys.exit(main())
  File ""/usr/bin/../share/doc/omc/testmodels/generate_icons.py"", line 1279, in main
    logger.critical('Failed to load packages in %.1f seconds: %s' % (time.time()-t,omc.sendExpression('getErrorString()')))
  File ""/home/dietmarw/.venv/ttws3/lib/python3.8/site-packages/OMPython/__init__.py"", line 606, in sendExpression
    answer = OMTypedParser.parseString(result)
  File ""/home/dietmarw/.venv/ttws3/lib/python3.8/site-packages/OMPython/OMTypedParser.py"", line 120, in parseString
    return omcGrammar.parseString(string)[0]
  File ""/home/dietmarw/.venv/ttws3/lib/python3.8/site-packages/pyparsing.py"", line 1955, in parseString
    raise exc
  File ""/home/dietmarw/.venv/ttws3/lib/python3.8/site-packages/pyparsing.py"", line 3814, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pyparsing.ParseException: Expected end of text, found '4'  (at char 117), (line:2, col:38)
}}}

Unfortunately that error will cause also other icons from being generated.
Looking at https://build.openmodelica.org/Documentation/ObsoleteModelica3.html this is an issue that has been around for some time. "	defect	assigned	blocker	1.19.0	Scripts	v1.16.0-dev			
