Am I the only one that cannot run or debug contrib plugins from the CodeBlocks_wx30-unix.workspace or CodeBlocks-unix.workspace?
I think this worked in the past, but I might be wrong. Currently every plugin fails to start, because it cannot find the resources.
And I have to use a patch like:
@@ -6,15 +6,16 @@
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="default">
<Option output="../../../devel30/share/codeblocks/plugins/AutoVersioning" prefix_auto="1" extension_auto="1" />
+ <Option working_dir="../../../devel30/" />
<Option object_output="../../../.objs30/plugins/contrib/AutoVersioning" />
<Option type="3" />
<Option compiler="gcc" />
<Option parameters="--debug-log --multiple-instance -ns -ni -p debug" />
- <Option host_application="../../../devel30/codeblocks" />
+ <Option host_application="./codeblocks" />
<Option run_host_application_in_terminal="0" />
<Compiler>
<Add option="$(#CB_RELEASE_TYPE)" />
<Add option="`$(WX_CONFIG) --cflags`" />
<Add option="-fPIC" />
I've tried an old version and it had the same problem.
I've tried to revert my recent commit related to the relative paths to the resources and it failed without it.
Am I remembering wrong and this never worked or something broke recently?
What version of C::B are you using to open the workspace?
I've used svn #11825, slightly modified for my personal usecase.
To check if current trunk (#11866) works, I did simply run "./output30/run.sh CodeBlocks_wx30-unix.workspace", set 'AutoVersioning' as the active project, hit run and/or debug. It works as expected. The debug-log below shows #11866 (./output30) debugging #11866 (./devel30):
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
default
Adding source dir: /share/daten/c/osdt/codeblocks/gitsvn/src/plugins/contrib/AutoVersioning/
Adding source dir: /share/daten/c/osdt/codeblocks/gitsvn/src/plugins/contrib/AutoVersioning/
Adding file: ../../../devel30/codeblocks
Changing directory to: /share/daten/c/osdt/codeblocks/gitsvn/src/plugins/contrib/AutoVersioning/.
Set variable: LD_LIBRARY_PATH=.:/share/daten/c/osdt/codeblocks/gitsvn/src/devel30:/usr/lib/x86_64-linux-gnu:/share/daten/c/osdt/codeblocks/gitsvn/src/output30:
Starting debugger: /usr/bin/gdb -nx -fullname -quiet -args ../../../devel30/codeblocks
Setting SHELL to '/bin/sh'
done
Setting breakpoints
Debugger name and version: GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
No source file named /share/daten/c/osdt/codeblocks/gitsvn/src/plugins/contrib/AutoVersioning/AutoVersioning.cpp.
Haltepunkt 2 ("/share/daten/c/osdt/codeblocks/gitsvn/src/plugins/contrib/AutoVersioning/AutoVersioning.cpp:68") anstehend.
Child process PID: 11977
At /share/daten/c/osdt/codeblocks/gitsvn/src/plugins/contrib/AutoVersioning/AutoVersioning.cpp:69
Continuing...