FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DWT code generator bug in Entice

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
gekkonier



Joined: 27 Mar 2007
Posts: 28

PostPosted: Fri Apr 11, 2008 10:39 am    Post subject: DWT code generator bug in Entice Reply with quote

Hi!

I just found a reproducable bug in Entice ( 0.8.5.02 ), on both, Windows XP Professional English version, and Windows Vista Ultimate German version systems.

In short words: code generation in dwt works only correct, if you first activate the editor tab and start then to design the layout.

Steps to reproduce:

1. open entice
2. create a DWT main shell with the toolbox-> new
3. then do nothing else than:
click on label in the toolbox
draw a rect on the design area to create the label
4. look at the import section in the code editor

there you will see this (and others):

Code:
import dwt.DWT;
import dwt.widgets.Display, dwt.widgets.Shell;
import dwt.graphics.Color, dwt.graphics.Rectangle;
import dwt.widgets.MessageBox;


This produces compilation errors, because Label is not defined (because its not imported)

Workaround:

1. open entice
2. create a DWT main shell with the toolbox-> new
3. then click on the tab of the code editor
4. switch back into the design tab
5. draw a label
6. switch back and see this (and others):

Code:
import dwt.DWT;
import dwt.widgets.Label;
import dwt.widgets.Display, dwt.widgets.Shell;
import dwt.graphics.Color, dwt.graphics.Rectangle;
import dwt.widgets.MessageBox;
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Apr 11, 2008 4:52 pm    Post subject: Re: DWT code generator bug in Entice Reply with quote

Thanks, I think I have it fixed now. I somewhat knew about this bug but couldn't reliably reproduce it. Somehow my configuration was causing it to work fine, but I just figured out that the bug was happening with clean installs / different config.

What was happening: I was using scintilla's lexer style information to see if the import was in a comment or something so it would know not to count that as an import, but scintilla doesn't initialize that style information until it's needed, like when it's shown.
Back to top
View user's profile Send private message
EmanuelSan



Joined: 10 Jan 2008
Posts: 1
Location: Natal, RN - Brazil

PostPosted: Tue Dec 30, 2008 6:12 am    Post subject: Reply with quote

I got Entice 0.8.6pre4 and it's OK. I'm using it in Linux (Fedora 10) with Wine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
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