Author Topic: Symbols browser issue of CC has been fixed for my Linux  (Read 10326 times)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #45 on: April 12, 2020, 05:48:22 am »
Read the topic from the beginning. :)
//scratching my head
i did, that's why i applied the patch to see if it would work "good enough" on my small projects. Not sure how to enable the browser..
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6996
    • My Best Post
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #46 on: April 12, 2020, 12:56:45 pm »
Read the topic from the beginning. :)
//scratching my head
i did, that's why i applied the patch to see if it would work "good enough" on my small projects. Not sure how to enable the browser..

Did you see if the plugin manager list the plugin?

Plugins -> Manage Plugins

If listed, try to enable if disabled.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12817
    • Travis build status
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #47 on: April 12, 2020, 01:26:32 pm »
If the option is disabled after the patch application, you need to search for the text in the code, then find the code which disables it and remove it...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tigerbeard

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #48 on: April 12, 2020, 03:07:25 pm »
@tiger,
  How do i enable symbols browser with wx3 ?  or, as the warning states, it will crash and burn the app?
I really would not want to go back to wx2 - the look&feel is so dated :(

I applied the patch to latest nightly  12040
In my builds I used wx3.1.3 compiler with gcc.8.1.0._64bit . In Linux same wx version, compiler I just used the default one. The most complex part was to compile the special version of wx for Codeblocks.
I can not recall any compile errors. Once it started it went though ok. Also I can not remember any evil warnings, but I did not check the build log really.
 
In my case the symbol browser was enabled already. If not check Menu/Settings/Editor/CodeCompletion/SymbolBrowser. If you do not have an enabled checkbox to enable/disable Symbol browser, something might have gone wrong when applying the patch to the sources before compiling.
It did not crash and the only things I found I listed above. Not sure what you mean with "burn the app".

To be honest, I did not note a big difference between CB with wx2.8/wx3.0.

Help it helps.



« Last Edit: April 12, 2020, 03:09:06 pm by tigerbeard »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12817
    • Travis build status
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #49 on: April 12, 2020, 03:11:21 pm »
To be honest, I did not note a big difference between CB with wx2.8/wx3.0.
His wxgtk3 is probably using gtk3 and that is why he is seeing this "non-dated" look. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #50 on: April 12, 2020, 09:06:56 pm »
@tiger,
  How do i enable symbols browser with wx3 ?  or, as the warning states, it will crash and burn the app?
I really would not want to go back to wx2 - the look&feel is so dated :(

I applied the patch to latest nightly  12040
In my builds I used wx3.1.3 compiler with gcc.8.1.0._64bit . In Linux same wx version, compiler I just used the default one. The most complex part was to compile the special version of wx for Codeblocks.
I can not recall any compile errors. Once it started it went though ok. Also I can not remember any evil warnings, but I did not check the build log really.
 
In my case the symbol browser was enabled already. If not check Menu/Settings/Editor/CodeCompletion/SymbolBrowser. If you do not have an enabled checkbox to enable/disable Symbol browser, something might have gone wrong when applying the patch to the sources before compiling.
It did not crash and the only things I found I listed above. Not sure what you mean with "burn the app".

To be honest, I did not note a big difference between CB with wx2.8/wx3.0.

Help it helps.


Gents,
 thank you for trying to help.
The plugin is enabled according to the plugin manager.

BUT, in the Editor setting, the "enable" option is unavailable.

I didn't examine the build log. Let me check what i can find there.
see update below.

grep for gtk:
Code: [Select]
rpm -qa | grep gtk
PackageKit-gtk3-module-1.1.12-8.fc30.x86_64
libindicator-gtk3-12.10.1-14.fc30.x86_64
bluebird-gtk3-theme-1.3-2.fc30.noarch
clutter-gtk-1.8.4-5.fc30.x86_64
compat-wxGTK3-gtk2-devel-3.0.4-8.fc30.x86_64
greybird-gtk2-theme-3.22.10-1.fc30.noarch
ibus-gtk2-1.5.20-5.fc30.x86_64
gtk2-2.24.32-6.fc30.x86_64
gtk2-devel-2.24.32-6.fc30.x86_64
gtkmathview-0.8.0-27.fc30.x86_64
webkit2gtk3-jsc-2.28.0-6.fc30.x86_64
gtkspell-2.0.16-18.fc30.x86_64
compat-wxGTK3-gtk2-3.0.4-8.fc30.x86_64
bluebird-gtk2-theme-1.3-2.fc30.noarch
lightdm-gtk-2.0.5-3.fc30.x86_64
greybird-gtk3-theme-3.22.10-1.fc30.noarch
albatross-gtk3-theme-1.7.4-6.fc30.noarch
webkit2gtk3-2.28.0-6.fc30.x86_64
gtk3-devel-3.24.11-1.fc30.x86_64
libreoffice-gtk3-6.2.8.2-2.fc30.x86_64
gstreamer1-plugins-good-gtk-1.16.0-1.fc30.x86_64
libpeas-gtk-1.22.0-10.fc30.x86_64
libcanberra-gtk3-0.30-19.fc30.x86_64
gtk-xfce-engine-3.2.0-9.fc30.x86_64
transmission-gtk-2.94-6.fc30.x86_64
albatross-gtk2-theme-1.7.4-6.fc30.noarch
libreport-gtk-2.12.0-1.fc30.x86_64
gtk-unico-engine-1.0.3-0.13.20140109bzr152.fc30.x86_64
pygtk2-2.24.0-25.fc30.x86_64
gtk-murrine-engine-0.98.2-16.fc30.x86_64
gtksourceview3-3.24.11-1.fc30.x86_64
gtk-update-icon-cache-3.24.11-1.fc30.x86_64
libappindicator-gtk3-12.10.0-24.fc30.x86_64
compat-wxGTK3-gtk2-gl-3.0.4-8.fc30.x86_64
adwaita-gtk2-theme-3.28-5.fc30.x86_64
gtkmm30-3.24.2-1.fc30.x86_64
gtk3-3.24.11-1.fc30.x86_64
ibus-gtk3-1.5.20-5.fc30.x86_64
colord-gtk-0.1.26-11.fc30.x86_64
libdbusmenu-gtk3-16.04.0-11.fc30.x86_64
compat-wxGTK3-gtk2-media-3.0.4-8.fc30.x86_64
gtk2-engines-2.20.2-18.fc30.x86_64
xdg-user-dirs-gtk-0.10-15.fc30.x86_64

Here is the relevant section from the mock's build:
Code: [Select]
<skipped>
Building target platforms: x86_64
Building for target x86_64
Wrote: /builddir/build/SRPMS/codeblocks-20.03.svn.12045-1.fc30.src.rpm
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/codebloc
ks.spec'], chrootPath='/var/lib/mock/fedora-30-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOST
NAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-ch
root> \\s-\\v\\$ ', 'LANG': 'en_US.utf8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7fa39c1c5c50>timeout=0ui
d=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.t9ehylqn:/etc/resolv.conf', '--bi
nd=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '
--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--
bind=/dev/loop11']unshare_net=TrueprintOutput=True)
Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.t9ehylqn:/etc/resolv.conf', '--bind=/dev/loop-contr
ol', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5'
, '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'c6daa95895f642f298141ca5a7752a01', '-D', '/var/lib/mock/fedora-30-x86
_64/root', '-a', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.t9ehylqn:/etc/resolv.conf', '--bind=/dev/loop-control', '-
-bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bi
nd=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--set
env=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/u
sr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007"', '--setenv=PS1=<mock-chroot> \\s-\\v\\$ ', '--seten
v=LANG=en_US.utf8', '-u', 'mockbuild', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/S
PECS/codeblocks.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bi
n:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en
_US.utf8'} and shell False
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7JoSBB
 umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf codeblocks-17.12.svn/trunk
+ /usr/bin/gzip -dc /builddir/build/SOURCES/codeblocks-20.03.svn.12045.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd codeblocks-17.12.svn/trunk
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
Patch #0 (symbol_browser.patch):
+ echo 'Patch #0 (symbol_browser.patch):'
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/ccoptionsdlg.cpp
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/cctreectrl.h
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/classbrowser.cpp
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/classbrowserbuilderthread.cpp
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/classbrowserbuilderthread.h
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/codecompletion.cpp
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/plugins/codecompletion/nativeparser.cpp
+ ./bootstrap
Found revision: '0' ''
rm: missing operand
Try 'rm --help' for more information.
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:26: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:22: installing './install-sh'
configure.ac:22: installing './missing'
src/base/tinyxml/Makefile.am: installing './depcomp'
+ find . -type f -and -not -name '*.cpp' -and -not -name '*.h' -and -not -name '*.png' -and -not -name '*.bmp' -and -not -name '*
.c' -and -not -name '*.cxx' -and -not -name '*.ico' -exec dos2unix -q --keepdate '{}' ';'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rfi2F2
 umask 022
+ cd /builddir/build/BUILD
+ cd codeblocks-17.12.svn/trunk
<skipped>
checking whether to use gtk-notebook as default notebook... yes
checking which (if any) contrib plugins to build... all
checking if the compiler supports precompiled headers... yes
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.12... yes (version 3.0.4)
checking for wxWidgets static library... no
checking for wxWidgets platform... wxGTK
checking for GLIB2... yes
checking for HUNSPELL... yes
configure: gtk3 used
checking for GTK... yes
configure: gdk3 used
checking for GDK... yes
checking for GAMIN... yes
checking for FONTCONFIG... yes
checking for boostlib >=  (102000)... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking gcc version... 9
checking for wxWidgets >= 2.9.0... yes (version 3.0.4)
configure: (Re)setting libs for wxWidgets 3.0.4
checking for PIC flags... "-fPIC -DPIC"
checking whether g++ supports C++11 features by default... yes
configure: Configuring Code::Blocks...
configure: SVN revision 20.03svn0 ()
checking that generated files are newer than configure... done
configure: creating ./config.status
<skip>
config.status: creating src/plugins/codecompletion/Makefile
config.status: creating src/plugins/codecompletion/resources/Makefile
<skip>
make[3]: Entering directory '/builddir/build/BUILD/codeblocks-17.12.svn/trunk/src/plugins/codecompletion'
Making all in resources
make[4]: Entering directory '/builddir/build/BUILD/codeblocks-17.12.svn/trunk/src/plugins/codecompletion/resources'
<skip>
make[4]: Leaving directory '/builddir/build/BUILD/codeblocks-17.12.svn/trunk/src/plugins/codecompletion/resources'
make[4]: Entering directory '/builddir/build/BUILD/codeblocks-17.12.svn/trunk/src/plugins/codecompletion'
<skip>
In file included from parser/parserthread.h:21,
                 from parser/parser.h:22,
                 from cctreectrl.h:13,
                 from cctreectrl.cpp:20:
parser/parserthread.h: In member function 'virtual int ParserThread::Execute()':
parser/cclogger.h:161:18: warning: unused variable 'result' [-Wunused-variable]
  161 |             auto result = M.Lock();             \
      |                  ^~~~~~
parser/parserthread.h:190:9: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_LOCK'
  190 |         CC_LOCKER_TRACK_TT_MTX_LOCK(s_TokenTreeMutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
parser/cclogger.h:167:18: warning: unused variable 'result' [-Wunused-variable]
  167 |             auto result = M.Unlock();           \
      |                  ^~~~~~
parser/parserthread.h:194:9: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_UNLOCK'
  194 |         CC_LOCKER_TRACK_TT_MTX_UNLOCK(s_TokenTreeMutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include  -I/usr/lib64/wx/include/gtk3
-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../src/include -I../../../src
/sdk/wxscintilla/include -DCB_AUTOCONF  -DCB_PRECOMP -DPIC -DTIXML_USE_STL=YES   -O2 -g -pipe -Wall -Werror=format-security -Wp,-
D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redh
at/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-cla
sh-protection -fcf-protection -Winvalid-pch -fPIC -fexceptions -c -o classbrowserbuilderthread.lo classbrowserbuilderthread.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../src/include -I../../../src/sdk/wxscintilla/include -DCB_AUTOC
ONF -DCB_PRECOMP -DPIC -DTIXML_USE_STL=YES -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSE
RTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib
/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Winvali
d-pch -fPIC -fexceptions -c classbrowserbuilderthread.cpp  -fPIC -DPIC -o .libs/classbrowserbuilderthread.o
In file included from parser/parserthread.h:21,
                 from parser/parser.h:22,
                 from nativeparser.h:10,
                 from ccoptionsprjdlg.h:12,
                 from ccoptionsprjdlg.cpp:27:
parser/parserthread.h: In member function 'virtual int ParserThread::Execute()':
parser/cclogger.h:161:18: warning: unused variable 'result' [-Wunused-variable]
  161 |             auto result = M.Lock();             \
      |                  ^~~~~~
parser/parserthread.h:190:9: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_LOCK'
  190 |         CC_LOCKER_TRACK_TT_MTX_LOCK(s_TokenTreeMutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
parser/cclogger.h:167:18: warning: unused variable 'result' [-Wunused-variable]
  167 |             auto result = M.Unlock();           \
      |                  ^~~~~~
parser/parserthread.h:194:9: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_UNLOCK'
  194 |         CC_LOCKER_TRACK_TT_MTX_UNLOCK(s_TokenTreeMutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/include  -I/usr/lib64/wx/include/gtk3
-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../src/include -I../../../src
/sdk/wxscintilla/include -DCB_AUTOCONF  -DCB_PRECOMP -DPIC -DTIXML_USE_STL=YES   -O2 -g -pipe -Wall -Werror=format-security -Wp,-
D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redh
at/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-cla
sh-protection -fcf-protection -Winvalid-pch -fPIC -fexceptions -c -o codecompletion.lo codecompletion.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../src/include -I../../../src/sdk/wxscintilla/include -DCB_AUTOC
ONF -DCB_PRECOMP -DPIC -DTIXML_USE_STL=YES -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSE
RTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib
/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Winvali
d-pch -fPIC -fexceptions -c codecompletion.cpp  -fPIC -DPIC -o .libs/codecompletion.o
n file included from parser/parserthread.h:21,
                 from parser/parser.h:22,
                 from cctreectrl.h:13,
                 from classbrowser.h:15,
                 from classbrowser.cpp:43:
parser/parserthread.h: In member function 'virtual int ParserThread::Execute()':
parser/cclogger.h:161:18: warning: unused variable 'result' [-Wunused-variable]
  161 |             auto result = M.Lock();             \
      |                  ^~~~~~
parser/parserthread.h:190:9: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_LOCK'
  190 |         CC_LOCKER_TRACK_TT_MTX_LOCK(s_TokenTreeMutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
parser/cclogger.h:167:18: warning: unused variable 'result' [-Wunused-variable]
  167 |             auto result = M.Unlock();           \
      |                  ^~~~~~
parser/parserthread.h:194:9: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_UNLOCK'
  194 |         CC_LOCKER_TRACK_TT_MTX_UNLOCK(s_TokenTreeMutex)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
classbrowser.cpp: In member function 'void ClassBrowser::OnTreeItemDoubleClick(wxTreeEvent&)':
parser/cclogger.h:161:18: warning: unused variable 'result' [-Wunused-variable]
  161 |             auto result = M.Lock();             \
      |                  ^~~~~~
classbrowser.cpp:558:13: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_LOCK'
  558 |             CC_LOCKER_TRACK_TT_MTX_LOCK(s_TokenTreeMutex)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
parser/cclogger.h:167:18: warning: unused variable 'result' [-Wunused-variable]
  167 |             auto result = M.Unlock();           \
      |                  ^~~~~~
classbrowser.cpp:563:13: note: in expansion of macro 'CC_LOCKER_TRACK_TT_MTX_UNLOCK'
  563 |             CC_LOCKER_TRACK_TT_MTX_UNLOCK(s_TokenTreeMutex)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
classbrowser.cpp: In member function 'void ClassBrowser::OnSearch(wxCommandEvent&)':
parser/cclogger.h:161:18: warning: unused variable 'result' [-Wunused-variable]
  161 |             auto result = M.Lock();             \
      |                  ^~~~~~
...
The warnings about unused variables continue for a while. But nothing i can see results in the error.
I attached the build.log for the reference.

[/code]
« Last Edit: April 12, 2020, 09:26:15 pm by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #51 on: April 12, 2020, 09:32:14 pm »
build log attached
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6996
    • My Best Post
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #52 on: April 12, 2020, 09:35:01 pm »
Why did you post a picture of Code Completion plugin status?
Did you even check the status of the Symbol Table plugin?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline tigerbeard

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #53 on: April 12, 2020, 09:56:38 pm »
Why did you post a picture of Code Completion plugin status?
Did you even check the status of the Symbol Table plugin?
I'm afraid that is not really helpful. In CB16.0 the Symbol Table Plugin is version 1.0, in my patched 17 version it is still 1.0. Thats not really a surprise, when the only difference is some changed functions. It has not been an official plugin update, so so surprise that the version number was not touched, is it?

When the disable function is greyed out I would say the code patch did not work. @AZ did you check if your code has actually contains the new lines from the patch file?

If you like you could post the steps you actually did (right from the start step by step). Maybe I can spot something I did differently.




Offline stahta01

  • Lives here!
  • ****
  • Posts: 6996
    • My Best Post
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #54 on: April 12, 2020, 10:08:19 pm »
tigerbeard: If the symbol table plugin is disabled it will not work!
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12817
    • Travis build status
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #55 on: April 12, 2020, 10:20:18 pm »
@stahta01: Please stop causing confusion! The Symbol browser is part of the Code completion plugin! Settings -> Editor -> Code completion -> Symbols browser -> Disable symbols browser.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #56 on: April 13, 2020, 04:53:51 am »
Gents, hold on. i think i messed up somewhere ...
hmm. not sure.
this is from the mocked buildroot after patch was applied:
Code: [Select]
<mock-chroot> sh-5.0# ls -l  ../BUILD/codeblocks-17.12.svn/trunk/src/plugins/codecompletion/ccoptionsdlg.cpp
-rw-r--r-- 1 mockbuild mock 23731 Apr 11 19:11 ../BUILD/codeblocks-17.12.svn/trunk/src/plugins/codecompletion/ccoptionsdlg.cpp
this is from the source:
Code: [Select]
tar -tzvf codeblocks-20.03.svn.12045.tar.bz2 | grep ccoptionsdlg.cpp
-rw-rw-r-- az/az         24356 2019-11-24 13:58 ./codeblocks-17.12.svn/trunk/src/plugins/codecompletion/ccoptionsdlg.cpp


the spec looks like this :
Code: [Select]
# %%global svnrev             @[email protected]
%global svnrev             12045

%global VERSION 20.03

Name:       codeblocks
Version: %{VERSION}.svn.%{svnrev}
Release: 1%{?dist}
Summary: An open source, cross platform, free C++ IDE
License:    GPLv3+
URL:        http://www.codeblocks.org/
Source0: %{name}-%{VERSION}.tar.bz2
# Source0: %%{name}-17.12.svn.tar.bz2
Patch0: symbol_browser.patch

BuildRequires: libtool
BuildRequires: wxGTK3-devel
<skip>
%prep
%setup -q -n %{name}-17.12.svn/trunk
# %%setup -q -n %{name}[email protected]@
%patch0 -p0

./bootstrap

# convert EOLs
find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" -and -not -name "*.c
" -and -not -name "*.cxx" -and -not -name "*.ico" -exec dos2unix -q --keepdate {} \;

%build

%configure \
    --with-contrib-plugins=all \
    --with-boost-libdir=%{_libdir}

let me do the clean rebuild.

Yep, there was some old code somewhere. Now i can see the browser. Excellent.
« Last Edit: April 13, 2020, 06:39:48 am by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline tigerbeard

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #57 on: April 13, 2020, 01:07:24 pm »
Yep, there was some old code somewhere. Now i can see the browser. Excellent.
Glad it worked.
Should you have feedback or additional findings on the patch please collect it in this thread.

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #58 on: April 13, 2020, 03:58:02 pm »
Yep, there was some old code somewhere. Now i can see the browser. Excellent.
Glad it worked.
Should you have feedback or additional findings on the patch please collect it in this thread.

Gents,
 thank you for the help and getting the browser working.
Quote
Status

    A volunteer is neeed to run a profiler and to do the initial measurements in CodeBlocks.
    The total timing of the SymbolBrowser in the mean thread (and only in the main thread) is needed. All timings of the threads may be ignored. As I understaood the measurement should cover the times if SymbolBrowser is active and well as when it is not active (e.g. another management tab is open). Please post the results in this thead.

If somebody is willing to write up what exactly needs to be done, i'll try to help.

Full disclosure : i'm not a CPP programmer.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #59 on: April 19, 2020, 12:44:17 am »
After i recompiled for FC31 the window disappeared again. I see nothing in the logs. (attached).
It seems that it attempts to open the window, but then it fails. It doesn't matter, if i have a project open or not.

Is there a way to get more debug information from the app?
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)