SUMMARY When using target settings imported from the kate project specification, the kate working directory seems to be used instead of the one specified in the project specification. In my setup, the make file is located in the same folder as the .kateproject file. Thus I specified "directory": "." in the build section of the kate project file. Trying to build fails because the make file is not found. Patching the build command to print $PWD shows that kate's working dir is used. STEPS TO REPRODUCE 1. Prepare kate build directory as described in https://kate-editor.org/build-it/ 2. Open kate such that its working dir is not the git clone's top-level dir (e.g. using krunner or the main KDE menu) 3. Open an arbitrary file from the kate git clone 4. Try to build using build plugin OBSERVED RESULT The build fails and the build output window shows the following content: > make: *** No targets specified and no makefile found. Stop. EXPECTED RESULT The build process starts and succeeds. SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSUSE Tumbleweed 20190814 KDE Plasma Version: KDE Frameworks Version: 5.60.0 Qt Version: Qt 5.13.0 (built against 5.13.0)
Kåre, should we alter the code to make relative paths from .kateproject absolute in relation to the project file location?
Christoph, Yes, I think that is the right solution.
Git commit 98a6cb9bec29c90e96ae705f29ad903ef2287ee9 by Christoph Cullmann. Committed on 04/11/2019 at 06:30. Pushed by cullmann into branch 'master'. handle build path as relative to project path M +7 -1 addons/katebuild-plugin/plugin_katebuild.cpp https://invent.kde.org/kde/kate/commit/98a6cb9bec29c90e96ae705f29ad903ef2287ee9
Git commit 98a6cb9bec29c90e96ae705f29ad903ef2287ee9 by Christoph Cullmann. Committed on 04/11/2019 at 06:30. Pushed by scmsync into branch 'master'. handle build path as relative to project path M +7 -1 addons/katebuild-plugin/plugin_katebuild.cpp https://commits.kde.org/kate/98a6cb9bec29c90e96ae705f29ad903ef2287ee9
Just tried it out with the current master version. Works perfect, thx for the fix!