Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Syntax error parsing trivial Python code
Syntax error parsing trivial Python code [message #632319] Tue, 12 October 2010 14:41 Go to next message
Alexander Lamaison is currently offline Alexander LamaisonFriend
Messages: 3
Registered: July 2009
Junior Member
The Python IDE with v2 of the DLTK IDE seems to croak on the simplest Python code.

This code:
class Bob(object):
    def fun(self, a):
        a.m()

gives the following error on line 1:
Syntax Error:mismatched input '<EOF>'	mod_test.py

I've tried v2 release and the latest git HEAD. This is on Eclipse v3.5, 64-bit Ubuntu 10.04, Python 2.6. The only related post I can find is http://www.eclipse.org/forums/index.php?t=rview&goto=557 656&th=175064 but I don't understand enough to track the problem down.

Am I doing something stupid?

Thanks.
Alex
Re: Syntax error parsing trivial Python code [message #632804 is a reply to message #632319] Thu, 14 October 2010 10:40 Go to previous messageGo to next message
Alexander Lamaison is currently offline Alexander LamaisonFriend
Messages: 3
Registered: July 2009
Junior Member
Turns out, it was because the file didn't end with a newline. Filed a bug.
Re: Syntax error parsing trivial Python code [message #768578 is a reply to message #632804] Tue, 20 December 2011 11:54 Go to previous message
Matej Cepl is currently offline Matej CeplFriend
Messages: 9
Registered: July 2009
Junior Member
On 14.10.2010 12:40, Alexander Lamaison wrote:
> Turns out, it was because the file didn't end with a newline. Filed a bug.

Sorry, for reviving a year old thread, but I would be curious if you
managed to make DTLK/Python IDE working for you. I understand that the
full size code completion (like what PyDev does) is not yet available,
but does at least Alt+/ (completion based on the current buffer) works?

Thanks for any reply (from anybody),

Matěj
Previous Topic:Reference Python implementation on Eclipse Labs
Next Topic:trouble with content assist example
Goto Forum:
  


Current Time: Sun Dec 21 17:28:50 GMT 2014

Powered by FUDForum. Page generated in 0.03560 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software