User forums > Using Code::Blocks

Man page viewer issue

<< < (2/3) > >>

Ceniza:
I'm clueless. Could anyone else running *ubuntu 8.04 please check this, including the name of the dockable?

Jenna:

--- Quote from: Ceniza on June 15, 2008, 06:02:55 pm ---I'm clueless. Could anyone else running *ubuntu 8.04 please check this, including the name of the dockable?

--- End quote ---

The title is hardcoded in line 214 in "help_plugin.cpp" :

--- Code: ---    evt.title = _("Man/Html pages viewer");
--- End code ---

I had the same problem on debian sid/experimental svn r5095.

After removing all entries and renew the entry for man it seems to be gone, but I really don't know why.
Search a man-page from the textbox in the dockable also did not work before.

I found another bug in the help-plugin, while testing it.
If I delete the first entry, and it was not the only one, C::B reliably crashes for me.
This happens because an UpdateEntry is done on the deleted item.

I created a patch that seems to fix this problem.
It wolud be nice if you can test it.

I will not post it at berlios (at least not at the moment), because I cannot test it enough ( I will be without Internet the next week, but I perhaps find the time in the evenings after work to test some more).

Here's the patch:

--- Code: ------ codeblocks-1.0svn.orig/src/plugins/contrib/help_plugin/HelpConfigDialog.cpp 2008-03-10 14:08:47.000000000 +0100
+++ codeblocks-1.0svn.work/src/plugins/contrib/help_plugin/HelpConfigDialog.cpp 2008-06-15 20:57:53.000000000 +0200
@@ -143,7 +143,7 @@
 {
   wxListBox *lst = XRCCTRL(*this, "lstHelp", wxListBox);

-  if (lst->GetSelection() != m_LastSel)
+  if (lst->GetSelection() != -1 && lst->GetSelection() != m_LastSel)
   {
     UpdateEntry(m_LastSel);
   }

--- End code ---

libfab:
Hi
tested Jens' patch and works fine on Ubuntu hardy.
Now the man page viewer is back in working condition! I experienced the same issue as Jens and the solution was identical: deleting all entries in Settings > Environment > Help files and renewing man entry.
(Or maybe it's the new patch that improved things?)
Fab

Ceniza:
The Don is the one who modified the title of that dockable. Funnily enough it still has the old name here. Maybe it's stored in the config file or something.

Anyway, nice to see it works now, and thanks for pointing out that bug. I thought that bug, or a similar one, had been removed before. I just applied the patch and it seems to solve the crash. Thanks :)

I tried to commit the change, but I'm getting a "Permission denied" error. I'll have to try later.

Loaden:
I have the same problem.
Debian Lenny.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version