NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.44k stars 13.64k forks source link

Cannot open qt cretor help #59580

Open LinArcX opened 5 years ago

LinArcX commented 5 years ago

Issue description

Hi. when i want to open documentation in qtcreator i get this error, and i can't see any documentation: QTextBrowser: No document for qthelp://org.qt-project.qtcreator.462/doc/index.html

Steps to reproduce

install direnv and create shell.nix in the root of your project and paste these lines into it:

{ pkgs ? import <nixpkgs> {} }:
  pkgs.mkShell {
    buildInputs = [
                    pkgs.qt5.full
                    pkgs.gcc
                    pkgs.qt5.qtquickcontrols2
                    pkgs.qt5.qtquickcontrols
                    pkgs.qtcreator
                    pkgs.qt5.qtdoc
                    pkgs.clang-analyzer
                    pkgs.clang-tools
                  ];
}

and then run qtcretor.

Also i tested it with nix-shell with same behavior:

nix-shell -p qt5Full -p qtcreator --run qtcreator

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the results.

 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.33, NixOS, 19.09pre174426.acbdaa569f4 (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2`
 - channels(root): `"nixos-19.09pre174426.acbdaa569f4"`
 - channels(linarcx): `"nixos-19.09pre174426.acbdaa569f4"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
LinArcX commented 5 years ago

If i run qt-creator from terminal and go to help part, i get this error message: QTextBrowser: No document for qthelp://org.qt-project.qtcreator.462/doc/index.html

LinArcX commented 5 years ago

A guy recommended me to use this: nix-shell -p qt5Full "(qtcreator.override {withDocumentation = true;})" --run qtcreator. But it gives me another error:

these derivations will be built:
  /nix/store/vz9brvymn7nrrzs0c8aixc500v3rs0qr-qtcreator-4.9.1.drv
building '/nix/store/vz9brvymn7nrrzs0c8aixc500v3rs0qr-qtcreator-4.9.1.drv'...
unpacking sources
unpacking source archive /nix/store/r76y1hhvn13sjfg1r43zylxsg1ijrpj5-qt-creator-opensource-src-4.9.1.tar.xz
source root is qt-creator-opensource-src-4.9.1
setting SOURCE_DATE_EPOCH to timestamp 1558787173 of file qt-creator-opensource-src-4.9.1/tests/unit/unittest/utf8positionfromlinecolumn-test.cpp
patching sources
configuring
Info: creating stash file /build/qt-creator-opensource-src-4.9.1/.qmake.stash
Info: creating cache file /build/qt-creator-opensource-src-4.9.1/.qmake.cache
building
ln: failed to create symbolic link '/share': Permission denied
builder for '/nix/store/vz9brvymn7nrrzs0c8aixc500v3rs0qr-qtcreator-4.9.1.drv' failed with exit code 1
error: build of '/nix/store/vz9brvymn7nrrzs0c8aixc500v3rs0qr-qtcreator-4.9.1.drv' failed
LinArcX commented 5 years ago

@dtzWill @Thra11 @vcunat @ttuegel @matthewbauer @Ma27 @tarigo

Any idea?

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
bjornfor commented 4 years ago

still important to me

LinArcX commented 4 years ago

Seems this bot doesn't understand the importance of things :)

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

jsravn commented 1 year ago

The withDocumentation flag is just plain broken. See: https://github.com/NixOS/nixpkgs/blob/8ff7b290e6dd47d7ed24c6d156ba60fc3c83f100/pkgs/development/tools/qtcreator/default.nix#L76

Not sure why it's disabled by default in the first place - usually you always want the docs with an IDE.