Skip to content

Python error messages should include more information #1237

@simonwaid

Description

@simonwaid

I'm trying to write a PCell using the integrated editor.

Of course I make mistakes. From other development tools (eclipse with PyDev) I'm used to get error messages from python that point me the location of the mistake.

In Klayout I get error messages such as:

ERROR: syntax error (class SyntaxError)
ERROR: argument 2 must be sequence of length 4, not 6 (class TypeError)

No information about which line is affected. It is very, very painful to debug code like that.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions