Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31441 - [lazarus-gtk2] help function (F1) doesn't work

Attached to Project: Community Packages
Opened by Rumcajs Lasowy (Rumcajs) - Thursday, 06 September 2012, 17:36 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 14 March 2013, 13:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

After Pressing F1 in the Source Editor Window when the cursor is set on a keyword like (TButton, Tobject, ...) i get a error dialog-box instead of help information.

---------------------------------------------------------
Lazarus IDE v1.0 - project1
: This operation is illegal when the server is inactive.

Press OK to ignore and risk data corruption.
Press Cancel to kill the program.
---------------------------------------------------------



Additional info:
* lazarus-gtk2 1.0-1



Steps to reproduce:
First set the correct path for the help files in Tools->Options->Help->HelpOptions->CHM Help Viewer->HelpFilesPath it should be : /usr/share/doc/lazarus/chm/
Now in the Source Window set the cursor on a keyword like (TButton, Tobject, ...) and press F1


Solution:
i have installed the qt4pas package because /usr/lib/lazarus/components/chmhelp/lhelp/lhelp need the libQt4Pas.so.5 lib
and qt4pas provides it. Dunno why lhelp from lazarus-gtk2 depends on qt staff, in my case its not a problem because qt was installed any way, but if someone don't have qt qt4pas will pull in a lot of packages so adding qt4pas as a dependency is not a option. We need a gtk2 only version of lhelp.

if possible set the HelpFilesPath to /usr/share/doc/lazarus/chm/ in the lazarus-gtk2 and lazarus-qt package, then the Help function will work out of the box in lazarus-qt and in lazarus-gtk2 to if the bug get fixed.

Bye
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 14 March 2013, 13:49 GMT
Reason for closing:  Not a bug
Comment by Sergej Pupykin (sergej) - Monday, 17 September 2012, 11:04 GMT
I think it is feature or upstream bug.

/usr/lib/lazarus/components/chmhelp/lhelp/lhelp depends on /usr/lib/libQt4Pas.so.5
Comment by Sergej Pupykin (sergej) - Tuesday, 18 September 2012, 16:30 GMT
I fixed help path and add comment about help viewer to lazarus' qt4pas optdepend.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 10 January 2013, 14:16 GMT
When moving the cursor to the word "procedure" and pressing F1, I get a message box with the following:

": This operation is illegal when the server is inactive.

Press OK to ignore and risk data corruption.
Press Cancel to kill the program."

If I press "Cancel", all windows belonging to lazarus disappears and lazarus closes.

Selecting "Online Help" from the menu doesn't work either, but a symbolic link at /usr/lib/lazarus/docs/index.html pointing to /usr/share/doc/lazarus/index.html, might perhaps solve this.
Comment by Sergej Pupykin (sergej) - Thursday, 10 January 2013, 21:09 GMT
Can not reproduce.

lazarus-gtk2 1.0.4-2

start lazarus

add empty procedure

procedure qwe;
begin
end;

press F1 when cursor on word "procedure" - help opens
Comment by Alexander F. Rødseth (xyproto) - Friday, 11 January 2013, 11:48 GMT
Weirdness. I'll try to reset my configuration and test some more. Thanks for reproducing.
Comment by Sergej Pupykin (sergej) - Monday, 11 February 2013, 15:05 GMT
Does lazarus-1.0.6 work? Can this issue be closed?
Comment by Alexander F. Rødseth (xyproto) - Monday, 11 February 2013, 17:44 GMT
I will see if I can reproduce the issue with 1.0.6.
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 12 February 2013, 21:02 GMT
It's still an issue with 1.0.6.

I get this on stdout/stderr:

TChmHelpViewer.ShowNode Filename="lcl.chm" SearchPath="/usr/lib/lazarus/docs/html;/usr/lib/lazarus/docs/html/lcl;/usr/lib/lazarus/docs/chm" Found="/usr/lib/lazarus/docs/html/lcl.chm"
/usr/lib/lazarus//components/chmhelp/lhelp/lhelp: error while loading shared libraries: libQt4Pas.so.5: cannot open shared object file: No such file or directory
TApplication.HandleException : This operation is illegal when the server is inactive.

And then a window appears saying this:

: This operation is illegal when the server is inactive.
Press OK to ignore and risk data corruption.
Press Cancel to kill the program.
Comment by Sergej Pupykin (sergej) - Thursday, 14 March 2013, 10:16 GMT
libQt4Pas.so.5 is in qt4pas which is optdep for lazarus
Comment by Alexander F. Rødseth (xyproto) - Thursday, 14 March 2013, 11:52 GMT
Ah, thanks. Since help functions have traditionally been very integrated with Pascal programming environments (F1 and Ctrl-F1 worked great even in Turbo Pascal 5.5), perhaps it could be a regular dependency?
Comment by Sergej Pupykin (sergej) - Thursday, 14 March 2013, 12:19 GMT
qt4pas needs qtwebkit which needs qt4 and gstreamer.
I think it is heavy dep for help.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 14 March 2013, 13:41 GMT
I agree. 142M is a bit large to defend making it a regular dependency instead of an optional one. I think this bug can be closed.

Loading...