Bug 437787

Summary: kdesrc-run unable to run apps with kde invent folder structure
Product: [Developer tools] kdesrc-build Reporter: Alex <alex765>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alex 2021-05-28 15:19:57 UTC
This might be a problem on my end, but I have tried to uninstall and reinstall kdesrc-build, and it still happens.

To reproduce, I tried to `kdesrc-build neochat`, and then `kdesrc-run neochat`. I get an error:

bash: /home/alex/kde/build/neochat/prefix.sh: No such file or directory
Comment 1 Nate Graham 2021-06-03 12:59:54 UTC
Looks like the code is assuming the use of the `flat` file structure. See https://invent.kde.org/sdk/kdesrc-build/-/merge_requests/96

In the meantime, you can source the prefix.sh file by hand from the path relevant to the `invent` file structure:

/home/alex/kde/build/[something]/neochat/prefix.sh

...Where in this case, [something] is equal to "network".

If you feel as I do that using the `invent` file structure is inefficient and inappropriate for newcomers, please feel free to leave a supportive comment on https://invent.kde.org/sdk/kdesrc-build/-/merge_requests/96 and give it a thumbs-up.
Comment 2 Alex 2021-06-03 13:48:56 UTC
Another workaround seems to be to run it like this:

kdesrc-run network/neochat
Comment 3 Alex 2022-09-28 15:45:20 UTC
Looks like this bug is fixed since that MR was merged. Thanks Nate.
Comment 4 Nate Graham 2022-09-28 15:46:50 UTC
You're welcome!