The following forum message was posted by epdowd at
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3793026:
On my Mac (3.5.8 - Leopard), I\'ve installed PyDev (1.6.0.2010071813) on
Eclipse (Helios) along with Jpython (2.5.1).
In my PyDev project, I create a main.py:
[img]file:///Users/rockhold/Desktop/main.png[/img]
[code]if __name__ == \"__main__\":
print \"Hi again\"
[/code]
As you can see from the attached image (hopefully), PyDev has flagged the
\'print\' line as an error:
[code]
Description Resource Path Location Type
Encountered \"\\\"Hi Again.\\\"\" at line 3, column 11. Was expecting one of:
<NEWLINE> ... \"(\" ... \"[\" ... \";\" ... \",\" ...
\".\" ... \"+\" ... \"-\" ... \"*\" ... \"/\" ... \"//\"
... \"<<\" ... \">>\" ... \"%\" ... \"^\" ... \"|\" ...
\"&\" ... \"=\" ... \">\" ... \"<\" ... \"==\" ... \"<=\"
... \">=\" ... \"!=\" ... \"+=\" ... \"-=\" ... \"*=\" ...
\"/=\" ... \"//=\" ... \"%=\" ... \"&=\" ... \"|=\" ...
\"^=\" ... \"<<=\" ... \">>=\" ... \"**=\" ... \"or\" ...
\"and\" ... \"not\" ... \"is\" ... \"in\" ... \"if\" ...
\";\" ... \",\" ... main.py /TryJ2/src line 2 Problem
Description Resource Path Location Type
Undefined variable: print main.py /TryJ2/src line 2 PyDev Problem
[/code]
I can, of course, run the file without error.
I\'m having trouble with other, more complex statements being flagged as
errors, but hopefully I can resolve them by tackling this simple one first.
Thanks in advance for any help.
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users