Zeus IDE Forum Index Zeus IDE
Use this forum to ask for help, submit a bug report or make a suggestion.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

python issues

 
Post new topic   Reply to topic    Zeus IDE Forum Index -> Reporting a Bug
View previous topic :: View next topic  
Author Message
abushne
Guest





PostPosted: Thu Sep 22, 2005 8:06 pm    Post subject: python issues Reply with quote

I am evaluating zeus for use on a large body of python code and have found what appears to be a couple of bugs/issues:

#1: It does not handle """ properly, it treats them as a single quoted string with the single quote character, so for example a python block as follows:
"""
Some comments etc.
"""

does not get syntax color highlited properly. Either treating it as a block comment or as a second type of string literal would be nice.

#2: auto-indentation does not seem to work when typing a block in python, so if I type the following:

if some_check:

after pressing return after typing the :, it indents at the beginning of the if I would expect it to indent 4 spaces or whatever my indent setting is set to.

Pardon if there are some settings to address these, I did not find any right away.
Back to top
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2187

PostPosted: Fri Sep 23, 2005 12:13 am    Post subject: Reply with quote

Quote:
#1: It does not handle """ properly, it treats them as a single quoted string

Unfortunately at present Zeus does not support triple quoted string Sad

Quote:
#2: auto-indentation does not seem to work when typing a block in python

I did manage to configure this using the templates section of the Document Type.

This is what I did:
  1. Options, Document Types
  2. Edit the Python Document Type
  3. Change to the Templates section
  4. Delete Brace Prefix entry (ie {[(<)
  5. Delete Brace Postfix entry (ie }])>)
  6. Define : as the Brace Prefix String
  7. Apply the changes

Now if you enter this
Code:
if some_check:

the cursor should be automatically indented by one tab space.

Quote:
Pardon if there are some settings to address these, I did not find any right away.

You posting has highlighted a slight bug in the software Smile

Unfortunately to get this to work the brace prefix and postfix strings need to be deleted which has the unfortunate side effect of breaking the auto indenting and brace matching for of these characters Sad

This bug will be fixed in the next update Smile

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2187

PostPosted: Mon Oct 31, 2005 3:50 am    Post subject: Reply with quote

The smart indenting bug is now fixed in the latest patch Smile

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2187

PostPosted: Wed Dec 14, 2005 10:33 pm    Post subject: Reply with quote

The latest Zeus patch now has support for Python triple quotes Smile

To enable this features you need to edit the Python document type and in the Keywords section, enable the triple quotes option.

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
amix



Joined: 22 Aug 2007
Posts: 49

PostPosted: Wed Aug 22, 2007 4:31 pm    Post subject: Reply with quote

You said, that the problem is fixed. So I did not remove the Brace Prefixes/Postfixes but simply added : to the Brace Prefix String.

If I do the following construct:
Code:
class MyClass:
  def __init__(self):

the cursor gets positioned allright after MyClass: but after (self): it gets positioned below the 'def'.
It should be intended by a full tab however. Did I miss something ?

Edit:
Persists with 3.96i, added : to the Prefix as seen in the 3.96i original settings. (I copied my old settings over).
Back to top
View user's profile Send private message
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2187

PostPosted: Fri Aug 24, 2007 5:12 am    Post subject: Reply with quote

Quote:
It should be intended by a full tab however. Did I miss something ?

There is a bug in Zeus in that it is not correctly detecting the Python indent point Sad

The indent point is define by the : character but unfortunately because there is no space before the : it is not being detected.

For example if the code had looked like this then the indenting would have worked just fine:
Code:
class MyClass :
  def __init__(self) :


Alternatively if you remvoe the ( and ) characters from the delimiter list in the keyword section of the document type this will also fix the problem.

In any case this bug will be fixed in the Zeus next patch Wink

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
amix



Joined: 22 Aug 2007
Posts: 49

PostPosted: Fri Aug 24, 2007 11:43 am    Post subject: Reply with quote

Allright, thanks Wink
Back to top
View user's profile Send private message
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2187

PostPosted: Mon Sep 17, 2007 1:04 am    Post subject: Reply with quote

This bug should be fixed in the latest Zeus 3.96j patch found here: http://www.zeusedit.com/forum/viewtopic.php?t=1251

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Zeus IDE Forum Index -> Reporting a Bug All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group