Bug 437787 - kdesrc-run unable to run apps with kde invent folder structure
Summary: kdesrc-run unable to run apps with kde invent folder structure
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-28 15:19 UTC by Alex
Modified: 2022-09-28 15:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!