Discussion:
[Qt-creator] Still no help...
Jason H
2018-05-16 14:15:51 UTC
Permalink
I have reverted to using the help button on the left pane. Why isn't F1 working?
I have help installed.. it works on some projects but not others.

Is there a way to troubleshoot what fails when I press F1?
Jason H
2018-05-16 14:42:42 UTC
Permalink
_______________________________________________
Qt-creator mailing list
Qt-***@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
t***@gmail.com
2018-05-16 15:09:42 UTC
Permalink
Hi,

AFAICT the F1 help won't work if there are syntax errors or when the
code model can't correctly parse your file. If the syntax highlight
doesn't work either, then it is good guess that there is some syntax
that it can't parse.

Which code model do you use?
These days I have good experience with the clang based one, so I
suggest to try to switch to using that and see if the error still
happens there.

Hope this helps,
Tim
Yeah, I noticed that too, but that's kinda understandable.
In this case, the code compiles and runs. I'm also not getting
purpling of Qt classes (Q*). But Q_FUNC_INFO is purple.
and other tokens are olive (emit, for, if, etc..)
strings and comments and inlude filename are green.
#includes are blue
Sent: Wednesday, May 16, 2018 at 10:22 AM
Subject: Re: [Qt-creator] Still no help...
Some time ago I reported that help is not triggered if you have
syntax errors. Can't remember the answer, but I recall the bug being
disregarded.
Ariel
Post by Jason H
I have reverted to using the help button on the left pane. Why isn't F1 working?
I have help installed.. it works on some projects but not others.
Is there a way to troubleshoot what fails when I press F1?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Ariel Molina R.
Oficina: +52 (222) 3723196
Movil: +521 2226 758874
http://edis.mx
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Jason H
2018-05-16 19:32:42 UTC
Permalink
Clang, screenshot included.
Sent: Wednesday, May 16, 2018 at 11:09 AM
Subject: Re: [Qt-creator] Still no help...
Hi,
AFAICT the F1 help won't work if there are syntax errors or when the
code model can't correctly parse your file. If the syntax highlight
doesn't work either, then it is good guess that there is some syntax
that it can't parse.
Which code model do you use?
These days I have good experience with the clang based one, so I
suggest to try to switch to using that and see if the error still
happens there.
Hope this helps,
Tim
Yeah, I noticed that too, but that's kinda understandable.
In this case, the code compiles and runs. I'm also not getting
purpling of Qt classes (Q*). But Q_FUNC_INFO is purple.
and other tokens are olive (emit, for, if, etc..)
strings and comments and inlude filename are green.
#includes are blue
Sent: Wednesday, May 16, 2018 at 10:22 AM
Subject: Re: [Qt-creator] Still no help...
Some time ago I reported that help is not triggered if you have
syntax errors. Can't remember the answer, but I recall the bug being
disregarded.
Ariel
Post by Jason H
I have reverted to using the help button on the left pane. Why isn't F1 working?
I have help installed.. it works on some projects but not others.
Is there a way to troubleshoot what fails when I press F1?
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Ariel Molina R.
Oficina: +52 (222) 3723196
Movil: +521 2226 758874
http://edis.mx
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Jason H
2018-05-17 15:08:33 UTC
Permalink
Thanks, I'll keep you posted. I did what you suggested but I don't currently have the problem. *shrug*
Sent: Thursday, May 17, 2018 at 2:37 AM
Subject: Re: [Qt-creator] Still no help...
Post by Jason H
I have reverted to using the help button on the left pane. Why isn't F1 working?
I have help installed.. it works on some projects but not others.
What do you mean by "help button on the left pane"?
For which code? (C++? QML/JS?)
Post by Jason H
Is there a way to troubleshoot what fails when I press F1?
For the clang code model, you can start Qt Creator within a run time
environment containing
QT_LOGGING_RULES=qtc.clangcodemodel.hover=true
to see debugging output when doing a mouse hover on e.g. identifiers.
This will query the help data base, basically triggering the F1 code
path (the tooltip will contain a F1 symbol do indicate that F1 can be
qtc.clangcodemodel.hover: Requesting tooltip info at 68
qtc.clangcodemodel.hover: Processing tooltip info "QCoreApplication"
qtc.clangcodemodel.hover: Querying help manager with
"QCoreApplication" "QCoreApplication" ClassOrNamespace
qtc.clangcodemodel.hover: Match!
Please put answer to these questions and the failing example into a bug
report.
Note that the clang code model is more sensitive to invalid code than
the built-in one. Error recovery is not that great.
Nikolai
Jason H
2018-05-23 18:05:05 UTC
Permalink
One thing I noticed is that when I run Creator from the command line, the debugger fails to import weakref in python.

Any idea what else I need to set to get Creator to behave as normal when I run it from the command line with the modified environment?
Sent: Thursday, May 17, 2018 at 11:08 AM
Subject: Re: [Qt-creator] Still no help...
Thanks, I'll keep you posted. I did what you suggested but I don't currently have the problem. *shrug*
Sent: Thursday, May 17, 2018 at 2:37 AM
Subject: Re: [Qt-creator] Still no help...
Post by Jason H
I have reverted to using the help button on the left pane. Why isn't F1 working?
I have help installed.. it works on some projects but not others.
What do you mean by "help button on the left pane"?
For which code? (C++? QML/JS?)
Post by Jason H
Is there a way to troubleshoot what fails when I press F1?
For the clang code model, you can start Qt Creator within a run time
environment containing
QT_LOGGING_RULES=qtc.clangcodemodel.hover=true
to see debugging output when doing a mouse hover on e.g. identifiers.
This will query the help data base, basically triggering the F1 code
path (the tooltip will contain a F1 symbol do indicate that F1 can be
qtc.clangcodemodel.hover: Requesting tooltip info at 68
qtc.clangcodemodel.hover: Processing tooltip info "QCoreApplication"
qtc.clangcodemodel.hover: Querying help manager with
"QCoreApplication" "QCoreApplication" ClassOrNamespace
qtc.clangcodemodel.hover: Match!
Please put answer to these questions and the failing example into a bug
report.
Note that the clang code model is more sensitive to invalid code than
the built-in one. Error recovery is not that great.
Nikolai
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Loading...