[IronPython] Line numbers in snippets...
Dino Viehland
dinov at exchange.microsoft.com
Mon May 15 13:20:41 PDT 2006
We recently made a change so that PythonSyntaxError contains a Line, Column, Filename, and some other properties on it that you should be able to get at for this information. Is that what you're looking for?
Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Alex Henderson
Sent: Monday, May 15, 2006 1:09 PM
To: 'Discussion of IronPython'
Subject: [IronPython] Line numbers in snippets...
We've been using IronPython as a scripting engine in one of our products
that's in development for a while now, works great :)
However when executing code which has syntax errors in it we can't seem to
get line numbers back from the exception, or find any compilation context we
can examine for a list of errors - which makes it difficult to diagnose
problems obviously.
I figure this is probably a limitation of the execute method, unless I've
missed something... is there a different approach we could use where we will
get line numbers when an error occurs?
Chez,
- Alex
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the users
mailing list