LumaPictures / pymel

Python in Maya Done Right
Other
494 stars 132 forks source link

MelSyntaxError not printing proper context in some cases #206

Open pmolodo opened 9 years ago

pmolodo commented 9 years ago

From chad...@gmail.com on March 10, 2010 23:17:51

try this

mel.source('/Applications/Autodesk/maya2009/Maya.app/Contents/script s/others/renderLayerParent.mel')

and this:

source "/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re nderLayerParent.mel" // Error: if(catch(`editRenderLayerGlobals -currentRenderLayer $current)) { // // Error: "/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re nderLayerParent.mel" line 90.63: Syntax error // // Error: } // // Error: "/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re nderLayerParent.mel" line 92.2: Procedure is missing a return statement. // // Error: return( $status ); // // Error: "/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re nderLayerParent.mel" line 94.18: "$status" is an undeclared variable. // // Error: } // // Error: "/Applications/Autodesk/maya2009/Maya.app/Contents/scripts/others/re nderLayerParent.mel" line 95.1: Syntax error //

the mel provides some explanations, which should be detected and included with the exception

Original issue: http://code.google.com/p/pymel/issues/detail?id=171

pmolodo commented 9 years ago

From chad...@gmail.com on March 11, 2010 23:17:14

Labels: Priority-Low