U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Upp 2007.1rc2 released
Upp 2007.1rc2 released [message #8234] Fri, 23 February 2007 00:09 Go to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Changes since rc1*

+ httpcli in examples
+ Grid01 in tutorial
+ DocEdit / LineEdit encoding cleanup
+ QTF in tooltips, text mast be prepended with '\1'
- fixed all major rc1 issues
- some GridCtrl fixes

*I made a mistake and instead of 2007.1rc1 there was 2007.2rc1.
Re: Upp 2007.1rc2 released [message #8236 is a reply to message #8234] Fri, 23 February 2007 07:59 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

All builds except for DrawX11.cpp due to missing gtk include files. I still have flagNOGTK set but sources appear not to use that anymore so I am guessing it is no longer optional.

Re: Upp 2007.1rc2 released [message #8237 is a reply to message #8236] Fri, 23 February 2007 08:08 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

Pretty sure I got:

-rw-r--r-- 1 lundman lundman 7187863 Feb 23 15:36 upp-src-2007.1rc2.zip

but it contains:

	DirectoryCreate(out);
	pi.Ad
	if(!CopyFolder(pi, Common


wasn't that the first thing found wrong in rc1?

I must be confused somewhere, not had much sleep recently Smile

Re: Upp 2007.1rc2 released [message #8238 is a reply to message #8237] Fri, 23 February 2007 10:15 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Install.cpp:
	DirectoryCreate(out);
	pi.Ad
	if(!CopyFolder(pi, Common, AppendFileName(supp, "Common")))


Me too. Wink (and I deleted the source directory before unpacking)
Re: Upp 2007.1rc2 released [message #8239 is a reply to message #8234] Fri, 23 February 2007 10:29 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Also I noticed two warnings with enums, proposed fixes (casting the enum to target type):

Goto.cpp:138
	mf.access = m.pos[l].impl ? (byte)WITHBODY : (byte)PUBLIC;


Uppwspc.cpp:413
	.Key(organizer ? (dword)K_DELETE : (dword)K_ALT_DELETE)

Re: Upp 2007.1rc2 released [message #8241 is a reply to message #8239] Fri, 23 February 2007 12:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Well, about enum -> integral type warnings... I am aware of them, but in this case I play passive resistance to GCC... (I believe it should not warn there and at least provide a switch to avoid that warning).
Re: Upp 2007.1rc2 released [message #8242 is a reply to message #8234] Fri, 23 February 2007 12:29 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Mirek: should I post bug topics all over the forum (in appropriate categories), or just here to make it simpler for you to fix rc3?

(I already reported bad KDE scrollbars in TheIDE part of forums)

Further problems:

Ctrl+F5 does not work for me, I must execute application trough menu.
This may be related to my setup of KDE (more likely to default KDE setup because I don't remember assigning anything on Ctrl+F5), or it may be bug in theIDE. Anyone else here with Gnome or KDE to try it out whether Ctrl+F5 works for him?

Examples Bombs: bad line in main.cpp:52
	cy = level.cy;
	field.
	for(int i = cx * cy - 1; i >= 0; i--)


I will try to compile/run all examples till today/tomorrow so I will report others later, if I find something.
Re: Upp 2007.1rc2 released [message #8243 is a reply to message #8241] Fri, 23 February 2007 12:31 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
luzr wrote on Fri, 23 February 2007 12:28

Well, about enum -> integral type warnings... I am aware of them, but in this case I play passive resistance to GCC... (I believe it should not warn there and at least provide a switch to avoid that warning).



Yeah, I didn't get the idea what's wrong with it from the gcc warning, I can understand this. Still I prefer no warnings and the typecasting makes sense there because the target variable is byte or dword, so the enum will be "casted" anyway.
Re: Upp 2007.1rc2 released [message #8246 is a reply to message #8242] Fri, 23 February 2007 12:53 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mr_ped wrote on Fri, 23 February 2007 06:29

Mirek: should I post bug topics all over the forum (in appropriate categories), or just here to make it simpler for you to fix rc3?

(I already reported bad KDE scrollbars in TheIDE part of forums)

Further problems:

Ctrl+F5 does not work for me, I must execute application trough menu.
This may be related to my setup of KDE (more likely to default KDE setup because I don't remember assigning anything on Ctrl+F5), or it may be bug in theIDE. Anyone else here with Gnome or KDE to try it out whether Ctrl+F5 works for him?



Yes, this is KDE trouble. It preassigns all Ctrl+F* (and many others).

Perhaps KDE version of U++ should come with other set of predefined keys...

Quote:


Examples Bombs: bad line in main.cpp:52
	cy = level.cy;
	field.
	for(int i = cx * cy - 1; i >= 0; i--)


I will try to compile/run all examples till today/tomorrow so I will report others later, if I find something.


Well, still learning the QA process... In fact, it should be part of release process - there is BuildAll package that builds all examples.

Mirek
Re: Upp 2007.1rc2 released [message #8247 is a reply to message #8246] Fri, 23 February 2007 13:14 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
luzr wrote on Fri, 23 February 2007 12:53

mr_ped wrote on Fri, 23 February 2007 06:29

Mirek: should I post bug topics all over the forum (in appropriate categories), or just here to make it simpler for you to fix rc3?

(I already reported bad KDE scrollbars in TheIDE part of forums)

Further problems:

Ctrl+F5 does not work for me, I must execute application trough menu.
This may be related to my setup of KDE (more likely to default KDE setup because I don't remember assigning anything on Ctrl+F5), or it may be bug in theIDE. Anyone else here with Gnome or KDE to try it out whether Ctrl+F5 works for him?



Yes, this is KDE trouble. It preassigns all Ctrl+F* (and many others).

Perhaps KDE version of U++ should come with other set of predefined keys...

Quote:


Examples Bombs: bad line in main.cpp:52
	cy = level.cy;
	field.
	for(int i = cx * cy - 1; i >= 0; i--)


I will try to compile/run all examples till today/tomorrow so I will report others later, if I find something.


Well, still learning the QA process... In fact, it should be part of release process - there is BuildAll package that builds all examples.

Mirek


predefined keys:
In Kdevelop the F9 is used, but that is Toggle breakpoint in TheIDE, so no easy solution. :/ (And I'm used to Ctrl+F5)

ad QA process: well, missing examples is one thing, but missing the Install.cpp problem two times in a row... Very Happy

----------------------
another bug:

I run TheIDE, clik on some menu, the submenu will appear, now when I switch to other application or to other desktop (press Ctrl+F1..4 .. AH, now I know where's the Ctrl+F5 hanging in KDE. Smile But as I use only 4 desktops, I would be fine with it.. I will probably try to reconfigure the KDE to pass it down to TheIDE), the menu stays on the screen and is above any other window.
It's possible to choose some submenu in it and execute it.
(looks quite weird with switching desktops Smile)
Re: Upp 2007.1rc2 released [message #8248 is a reply to message #8242] Fri, 23 February 2007 13:34 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

mr_ped wrote on Fri, 23 February 2007 06:29


Examples Bombs: bad line in main.cpp:52
	cy = level.cy;
	field.
	for(int i = cx * cy - 1; i >= 0; i--)





Strange. My build system tested all the examples and report no problems. Maybe my build system did sth wrong or I overlooked something. I'll check that out.
Re: Upp 2007.1rc2 released [message #8249 is a reply to message #8234] Fri, 23 February 2007 13:49 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Stop Debug not working as expected (at least by me that is):

Set the "EyeCare" example as main package
Run in debug mode with F5
... application is running ...
Click on Stop Debugging Shift-F5

TheIDE will freeze now till I manually exit the EyeCare application, than IDE will recover.
(i.e. it looks like it can't enforce exit of application)

Is it supposed to terminate the application like in MSVC/etc or is this desired behavior?
Re: Upp 2007.1rc2 released [message #8250 is a reply to message #8234] Fri, 23 February 2007 15:00 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
SDL Example:

Does not compile, missing SDL library.
It looks like it is intentionally left out from upp sources, and it should be added from the SDL zip?

----------

Example SQLApp not compilable:

SQLApp.h:5
#include <plugin/sqlite3/sqlite3.h>

but the file on disk is named "Sqlite3.h" (capitalized S)

/home/ped/upp/uppsrc/Sql/sch_header.h:35:23: error: plugin/Sqlite3/Sqlite3Schema.h: No such file or directory

(big "S" in directory name this time)

SQLApp.h:12
#define SCHEMADIALECT <plugin/Sqlite3/Sqlite3Schema.h>
main.cpp:3 (second definition, this time correct one)
#define SCHEMADIALECT <plugin/sqlite3/Sqlite3Schema.h>

Then several warnings about INT64 redefinition.

after compilation:
Linking...
c++: /home/ped/upp/out/plugin/Sqlite3/GCC.Gui.Shared/Sqlite3.a: No such file or directory


In package organizer there is "uses plugin/Sqlite3" package with capitalized S.
I'm still compiling it again so I'm not sure if changing the package to sqlite3 is the last fix needed, but I hope so.
Re: Upp 2007.1rc2 released [message #8251 is a reply to message #8250] Fri, 23 February 2007 17:19 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
mr_ped wrote on Fri, 23 February 2007 15:00

SDL Example:

Does not compile, missing SDL library.
It looks like it is intentionally left out from upp sources, and it should be added from the SDL zip?



Installing standard dev SDL package solved this one, works like charm. Smile

Ok, enough of testing 2007.1 RC2 for today, I will try some more things during weekend, but I'm already looking forward to RC3 :/ or 2007.2+.
Looks like the upp needs much more polishing to "just work". But it certainly looks very promising.
Re: Upp 2007.1rc2 released [message #8252 is a reply to message #8236] Fri, 23 February 2007 19:06 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
I had a similar, if not the same, problem on Linux. I got a lot further with it... I'll post a solution ASAP.

Sorry I dissapeared for awhile -- minor case of what looks like heavy-metal poisoning on a job site... I'll take a quick look at RC2 tonight and will post fixes if they are quick, otherwise I will followup on the Gentoo ebuilds and the Linux makefile updates when I get back home late next week.

Thaks for all the great work guys!

EBo --
Re: Upp 2007.1rc2 released [message #8254 is a reply to message #8234] Fri, 23 February 2007 20:47 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
(Debian) Linux Bugs:
- UWord can now load files with whitespace in filename
- saving fails silently. No files created at all.
- Pdf export totally broken. This was true for the previous
rc as well
whole page gets printed on top of a single line at page-bottom
Saving to pdf fails either. I attached the pdf from prior rc
(looks the same)
Unfortunately I can't say when it broke, because prior Debian
packages didn't work on my system. I know it all worked, when the
feature was first introduced.

LSB related notes:
- must include <limits.h> prior gtk header inclusion
- the gdk/private header isn't allowed, and upp actually doesn't
need it currently, so just remove that line
- gtk_widget_set() isn't part of the LSB API either. Don't know why.
I tried the GTK_SET_FLAGS macro - not supported either Rolling Eyes
- I could compile TheIDE successfully with the LSB sandbox, but linking failed.
For some mysterious reason, libXrender.a complained about
missing libX11 symbols (_XFlush...).
How can I see the link line?
Guess: -lX11 misplaced in link line.

General X11 build notes:
Upp needs to support pkg-config one way or other,
now that we link to gtk.
Currently X11 builds aren't fun to set up.
I finally resorted to pasting the output of
pkg-config --cflags gtk+-2.0 --libs gtk+-2.0

into the compiler field in build methods.
But the X11 upp packages really should have that preconfigured.
In a clean way.


Sorry to bother you like that Confused

Guido
  • Attachment: Waffeln.pdf
    (Size: 26.53KB, Downloaded 529 times)
Re: Upp 2007.1rc2 released [message #8257 is a reply to message #8234] Fri, 23 February 2007 21:10 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
More bugs:

- HomeBudget builds fine, but craps out with corrupted
database error dialog. Removing old ~/.HomeBudget
directory doesn't help

Another LSB related note:
- libpng isn't part of it yet
- but zlib is

Guido
Re: Upp 2007.1rc2 released [message #8258 is a reply to message #8254] Fri, 23 February 2007 21:18 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
guido,

The updates to the makefile include pkg-config for GTK, but I got stopped with not all the X11 libraries being included. That is where I left it. WIth any luck I will have this issue addressed tonight or sometime at the end of next week.

EBo --
Re: Upp 2007.1rc2 released [message #8261 is a reply to message #8257] Fri, 23 February 2007 22:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
guido wrote on Fri, 23 February 2007 15:10


Another LSB related note:
- libpng isn't part of it yet
- but zlib is



Uh oh... That is really strange as gtk uses libpng. In fact, I cannot link with gtk when I have png as statically linked package.

Real showstopper.
Re: Upp 2007.1rc2 released [message #8262 is a reply to message #8261] Sat, 24 February 2007 01:42 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Fri, 23 February 2007 22:58



Uh oh... That is really strange as gtk uses libpng. In fact, I cannot link with gtk when I have png as statically linked package.

Real showstopper.



Actually, gtk didn't link directly to libpng in the past.
The dependency was hidden by dlopen()ing the pixbuf loader.
It comes from cairo! But cairo can and should be hidden
from the linker, as it is an optional backend.
So you use --as-needed linker flag when compiling gtk and
thus cairo and with it libpng disappear as link time dependencies.
That's the case for the LSB sandbox, apparently:
guido@Sid:~$ export PKG_CONFIG_PATH=/opt/lsb/lib/pkgconfig/
guido@Sid:~$ pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -L/opt/lsb/lib -lgtk-x11-2.0 
-lgdk-x11-2.0-lX11 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
guido@Sid:~$ pkg-config --cflags gtk+-2.0
-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API 
-I/opt/lsb/include/gtk-2.0 -I/opt/lsb/lib/gtk-2.0/include 
-I/usr/X11R6/include -I/opt/lsb/include/atk-1.0 
-I/opt/lsb/include/pango-1.0 -I/usr/include/freetype2 
-I/usr/include/freetype2/config -I/opt/lsb/include/glib-2.0 
-I/opt/lsb/lib/glib-2.0/include


--as-needed doesn't only get rid of fake dependencies,
but also in the course cuts off from startup time.
Why regular Debian gtk isn't compiled like that, only
the pundits know.

Guido
Re: Upp 2007.1rc2 released [message #8263 is a reply to message #8262] Sat, 24 February 2007 06:03 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

Ok just adding #ifdef flagNOGTK around the includes makes it work, so they were just missed.

However, after compiling and everything runs, I find the "edit" window in the new IDE is double-wide font for everything. Presumably it detects I start in JPN locale (but using C for everything) and changes to wide font.

This is quite undesirable Smile I have to clean my env every time to start the IDE now.
Re: Upp 2007.1rc2 released [message #8264 is a reply to message #8257] Sat, 24 February 2007 08:56 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

guido wrote on Fri, 23 February 2007 15:10


- HomeBudget builds fine, but craps out with corrupted
database error dialog. Removing old ~/.HomeBudget
directory doesn't help



Try to build it in debug mode. If debug flag is on database is created. In release mode database just must be ready to use - it must be already created.
But I think I'll change it - it seems to be troublesome.
Re: Upp 2007.1rc2 released [message #8268 is a reply to message #8252] Sun, 25 February 2007 21:32 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
Here is the portage ebuild noted. I still need to clean things up a bit, but it builds and installs fine. The pkg-config calls and install are now in the ebuild.

Hope this is useful...

EBo --
Re: Upp 2007.1rc2 released [message #8285 is a reply to message #8254] Wed, 28 February 2007 13:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
guido wrote on Fri, 23 February 2007 14:47


- Pdf export totally broken. This was true for the previous
rc as well
whole page gets printed on top of a single line at page-bottom
Saving to pdf fails either. I attached the pdf from prior rc
(looks the same)
Unfortunately I can't say when it broke, because prior Debian
packages didn't work on my system. I know it all worked, when the
feature was first introduced.



Tested with Ubuntu, PDF export seems OK. Can you post the text file (*.qtf) you have used in UWord please?

The same is true for spaces in filename - saved as "My test", loaded "My test.qtf", changed content, saved - everything OK. Perhaps you are using another scenario?

Mirek
Re: Upp 2007.1rc2 released [message #8286 is a reply to message #8285] Wed, 28 February 2007 14:13 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Wed, 28 February 2007 13:39



Tested with Ubuntu, PDF export seems OK. Can you post the text file (*.qtf) you have used in UWord please?

The same is true for spaces in filename - saved as "My test", loaded "My test.qtf", changed content, saved - everything OK. Perhaps you are using another scenario?

Mirek



Doesn't work here at all.
Maybe gcc compiler bug then.

gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

Testing with multi-threaded size-optimized release build of upp.

Guido

[Updated on: Wed, 28 February 2007 14:13]

Report message to a moderator

Re: Upp 2007.1rc2 released [message #8287 is a reply to message #8247] Wed, 28 February 2007 14:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mr_ped wrote on Fri, 23 February 2007 07:14


I run TheIDE, clik on some menu, the submenu will appear, now when I switch to other application or to other desktop (press Ctrl+F1..4 .. AH, now I know where's the Ctrl+F5 hanging in KDE. Smile But as I


Interesting, I was trying to solve that bug for year or two. But now I tried something really simple:

CtrlCore/X11Proc.cpp 104
	case FocusOut:
		if(w.xic)
			XUnsetICFocus(w.xic);
		if(this == focusCtrlWnd)
			KillFocusWnd();
		break;


and this seems to do the job. Please, anybody with a bit of time, check this patch!

Mirek

[Updated on: Wed, 28 February 2007 14:20]

Report message to a moderator

Re: Upp 2007.1rc2 released [message #8288 is a reply to message #8286] Wed, 28 February 2007 14:22 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
guido wrote on Wed, 28 February 2007 08:13



size-optimized

Guido


BTW, using size-optimized does not have too much advantage anymore. Use "Optimal" - it is both 98% of "speed" and 98% of "size". Size and speed settings are preserved only to compare "optimalness of optimal".

Mirek
Re: Upp 2007.1rc2 released [message #8289 is a reply to message #8286] Wed, 28 February 2007 14:25 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Well, what to say... I guess it can only be the font issue or compiler thing. Have you tried in "DEBUG"?
  • Attachment: test.pdf
    (Size: 26.26KB, Downloaded 475 times)

[Updated on: Wed, 28 February 2007 14:27]

Report message to a moderator

Re: Upp 2007.1rc2 released [message #8303 is a reply to message #8287] Thu, 01 March 2007 18:04 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
luzr wrote on Wed, 28 February 2007 14:20

mr_ped wrote on Fri, 23 February 2007 07:14


I run TheIDE, clik on some menu, the submenu will appear, now when I switch to other application or to other desktop (press Ctrl+F1..4 .. AH, now I know where's the Ctrl+F5 hanging in KDE. Smile But as I


Interesting, I was trying to solve that bug for year or two. But now I tried something really simple:

CtrlCore/X11Proc.cpp 104
	case FocusOut:
		if(w.xic)
			XUnsetICFocus(w.xic);
		if(this == focusCtrlWnd)
			KillFocusWnd();
		break;


and this seems to do the job. Please, anybody with a bit of time, check this patch!

Mirek


Works for me in case of desktop switching, thank you.
Any idea what else should I test to make sure this fix doesn't break something else?

BTW, I deleted Ctrl+F5 from KDE system settings -> keyboard -> keyboard shortcuts -> shortcut schemes -> shortcut sequences, and now it works in upp, so it was really KDE desktop switching stealing it from upp, nothing more.

[Updated on: Thu, 01 March 2007 18:08]

Report message to a moderator

Re: Upp 2007.1rc2 released [message #8307 is a reply to message #8234] Thu, 01 March 2007 19:15 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Hmmm... I think the problem with the non working "Stop debugging" was just first sign that something is broken.
Now I finally tried to debug some code, so I set up breakpoint, run the example with F5, and it runs ignoring breakpoint.

Looks like the whole upp + gdb combo is seriously broken on my box.
I'm not sure if it's the gdb broken on my system, or just upp not using it correctly, but if someone else has linux, I would appreciate his comments about how the debug works on his box.
Re: Upp 2007.1rc2 released [message #8310 is a reply to message #8307] Thu, 01 March 2007 20:55 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mr_ped wrote on Thu, 01 March 2007 13:15

Hmmm... I think the problem with the non working "Stop debugging" was just first sign that something is broken.
Now I finally tried to debug some code, so I set up breakpoint, run the example with F5, and it runs ignoring breakpoint.

Looks like the whole upp + gdb combo is seriously broken on my box.
I'm not sure if it's the gdb broken on my system, or just upp not using it correctly, but if someone else has linux, I would appreciate his comments about how the debug works on his box.


Please, it might sound stupid, but make sure you have debug info settings set to "Full" (in the output mode).

Mirek
Re: Upp 2007.1rc2 released [message #8311 is a reply to message #8303] Thu, 01 March 2007 21:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mr_ped wrote on Thu, 01 March 2007 12:04

luzr wrote on Wed, 28 February 2007 14:20

mr_ped wrote on Fri, 23 February 2007 07:14


I run TheIDE, clik on some menu, the submenu will appear, now when I switch to other application or to other desktop (press Ctrl+F1..4 .. AH, now I know where's the Ctrl+F5 hanging in KDE. Smile But as I


Interesting, I was trying to solve that bug for year or two. But now I tried something really simple:

CtrlCore/X11Proc.cpp 104
	case FocusOut:
		if(w.xic)
			XUnsetICFocus(w.xic);
		if(this == focusCtrlWnd)
			KillFocusWnd();
		break;


and this seems to do the job. Please, anybody with a bit of time, check this patch!

Mirek


Works for me in case of desktop switching, thank you.
Any idea what else should I test to make sure this fix doesn't break something else?



Well, just use it for a while, please, I guess problems would be soon revealed. (I am not using Linux too often at this phase, therefore independent beta-tester is needed).

Mirek
Re: Upp 2007.1rc2 released [message #8315 is a reply to message #8310] Fri, 02 March 2007 01:53 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 826
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
luzr wrote on Thu, 01 March 2007 20:55

mr_ped wrote on Thu, 01 March 2007 13:15

Hmmm... I think the problem with the non working "Stop debugging" was just first sign that something is broken.
Now I finally tried to debug some code, so I set up breakpoint, run the example with F5, and it runs ignoring breakpoint.

Looks like the whole upp + gdb combo is seriously broken on my box.
I'm not sure if it's the gdb broken on my system, or just upp not using it correctly, but if someone else has linux, I would appreciate his comments about how the debug works on his box.


Please, it might sound stupid, but make sure you have debug info settings set to "Full" (in the output mode).

Mirek


You never can sound as stupid as I can actually *DO* Very Happy ... I was compiling in Release-optimal mode all the time. In MSVC I think it warns you at the start of the exe the debug information is missing?
Maybe you will eventually make it more robust one day (not very important for me, I will *now* remember forever *blushing*) and TheIDE will warn user about doing something so stupid Very Happy.

About focus patch:
So far I have no idea what else may be broken, but I did notice another funny thing:
When I hover over file name (AddressBook.cpp for example), I get tooltip with full name after short time. Now when I switch to other window or other desktop, the tooptip stays there and is functional (clicking on it opens the file in editor).

I didn't notice any problem with menus since the patch, but I don't use TheIDE very often Sad.
I will try to test as much as possible, but in the end if I manage 1 hour per day, I will be happy.
But I'm looking forward to start coding on some graphics project under linux soon, so far I'm toying with idea of using SDL, so maybe I will use TheIDE for development (either that or KDevelop or maybe even both Very Happy for some time until I decide one of them) and than I will use it almost on daily basis.
Re: Upp 2007.1rc2 released [message #8316 is a reply to message #8315] Fri, 02 March 2007 13:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
mr_ped wrote on Thu, 01 March 2007 19:53


You never can sound as stupid as I can actually *DO* Very Happy ... I was compiling in Release-optimal mode all the time. In MSVC I think it warns you at the start of the exe the debug information is missing?



Well, I always found that warning to be very annoying as I am often debugging release mode without debug info... (usually to test my theories about what compiler does to my C++ code...).

Mirek
Re: Upp 2007.1rc2 released [message #8320 is a reply to message #8307] Fri, 02 March 2007 15:08 Go to previous messageGo to next message
ebojd is currently offline  ebojd
Messages: 225
Registered: January 2007
Location: USA
Experienced Member
mr_ped,

I'm running the Linux distribution Gentoo with cross-platform development to Win-XP. What distro are you using? That will give me a clue on what suggestion to make on how to proceed.

EBo --
Re: Upp 2007.1rc2 released [message #8328 is a reply to message #8289] Sat, 03 March 2007 01:08 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Wed, 28 February 2007 14:25

Well, what to say... I guess it can only be the font issue or compiler thing. Have you tried in "DEBUG"?


I did a DEBUG build and that fixed pdf exporting.
Oddly UWord writes out the exported pdf, but renaming
the original QTF still fails silently with no indication
where or what might have gone wrong.
I also built without gtk and did another DEBUG build
with gcc-3.4.6, but that doesn't fix the second bug either.
Also despite built "DEBUG full", breakpoints are ignored
and "Run to cursor" fails with "No code at chosen location",
so I can't check what's up.
Saving doesn't work as well with the little LineEdit based
Notepad clone, I coded as a learning experience some time
ago.

So I think I'll give up for now. Don't know what to do.

Guido
Re: Upp 2007.1rc2 released [message #8329 is a reply to message #8328] Sat, 03 March 2007 08:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
guido wrote on Fri, 02 March 2007 19:08

luzr wrote on Wed, 28 February 2007 14:25

Well, what to say... I guess it can only be the font issue or compiler thing. Have you tried in "DEBUG"?


I did a DEBUG build and that fixed pdf exporting.
Oddly UWord writes out the exported pdf




Interesting. This would indicate either a compiler bug (IMO less likely) or some variable initializastion problem (read: unintialized variable Smile. (I am speaking about PDF export problem here...)

Quote:


I also built without gtk and did another DEBUG build
with gcc-3.4.6, but that doesn't fix the second bug either.



What about .pdf export with 3.4.6 in release mode?

Quote:


So I think I'll give up for now. Don't know what to do.



I guess I will install pure debian into vmware and try to reproduce the problem.

Mirek
Re: Upp 2007.1rc2 released [message #8330 is a reply to message #8328] Sat, 03 March 2007 09:27 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Ok. With the frustration settled, I investigated further.

Files can be loaded, and changes are written back.
But renaming doesn't work.
With my Notepad clone it seemed like it was a problem related to filename extensions. On Unix plain text files don't carry the .txt extension usually. When I added the .txt extension, renaming suddenly worked. But then, with UWord's qtf files no such luck, whatever I try. Tried with files without umlauts/spaces to eliminate this as a cause.
I suspect this breakage is related to your recent filename escaping fix. That's all I can think of.

Guido
Re: Upp 2007.1rc2 released [message #8333 is a reply to message #8329] Sat, 03 March 2007 10:46 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Sat, 03 March 2007 08:56


What about .pdf export with 3.4.6 in release mode?


Ok.
Release (Optimal) also works (pdf) with gcc-3.4.6.
Well, -Os caused sometimes trouble in the past.
I'll do an "Optimal" build with gcc-4.1.1 and report.

Guido
Re: Upp 2007.1rc2 released [message #8335 is a reply to message #8333] Sat, 03 March 2007 11:45 Go to previous messageGo to previous message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
guido wrote on Sat, 03 March 2007 10:46


Well, -Os caused sometimes trouble in the past.
I'll do an "Optimal" build with gcc-4.1.1 and report.


So I did.
Yes, size optimization somehow breaks pdfdraw.
"Optimal" works with gcc-4.1.1 too.
The saving bug remains.

Guido
Previous Topic: Upp 2007.1beta3 released
Next Topic: upp-portage experimental release
Goto Forum:
  


Current Time: Tue Apr 28 02:10:19 GMT+2 2026

Total time taken to generate the page: 0.02155 seconds