Author Topic: code completion breaks after changing header file  (Read 9730 times)

Offline Hyena

  • Multiple posting newcomer
  • *
  • Posts: 33
Re: code completion breaks after changing header file
« Reply #15 on: May 25, 2025, 07:57:33 am »
Did you use the : "./configure --with-contrib-plugins=all" method or did you compile contribs with one of the config .cbp or .workspace files?

I used "./configure --with-contrib-plugins=all" as the BUILD file suggests.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Re: code completion breaks after changing header file
« Reply #16 on: May 25, 2025, 09:40:09 pm »
I am not able to re-create the described error.
I believe I have the same environment Monjaro and CodeBlocks build the same as you did.

Do this for me. Right click on the far left log tab named "Code::Blocks" after restarting codeblocks and loading a project.

Right click on the tab, select copy to clipboard paste it in a code tags (the hash mark above a reply block).
I want to compare CB messages with the ones I get.
« Last Edit: May 25, 2025, 09:45:13 pm by Pecan »

Offline Hyena

  • Multiple posting newcomer
  • *
  • Posts: 33
Re: code completion breaks after changing header file
« Reply #17 on: May 25, 2025, 10:44:22 pm »
Code
Loaded config file '/home/hyena/.config/codeblocks/default.conf' (personality: 'default')
Scanning for lexers in /opt/codeblocks/share/codeblocks/lexers/...
Found 62 lexers
Loading lexer_perl
Loading lexer_hitasm
Loading lexer_ruby
Loading lexer_po
Loading lexer_java
Loading lexer_batch
Loading lexer_cg
Loading lexer_vhdl
Loading lexer_OgreMaterial
Loading lexer_prg
Loading lexer_fortran
Loading lexer_pascal
Loading lexer_xml
Loading lexer_ihex
Loading lexer_glsl
Loading lexer_rc
Loading lexer_html
Loading lexer_OgreCompositor
Loading lexer_nsis
Loading lexer_caml
Loading lexer_A68k
Loading lexer_ada
Loading lexer_lisp
Loading lexer_javascript
Loading lexer_latex
Loading lexer_bibtex
Loading lexer_gm
Loading lexer_properties
Loading lexer_masm
Loading lexer_cpp
Loading lexer_python
Loading lexer_powershell
Loading lexer_yaml
Loading lexer_tehex
Loading lexer_objc
Loading lexer_smalltalk
Loading lexer_haskell
Loading lexer_nim
Loading lexer_vbscript
Loading lexer_lua
Loading lexer_cmake
Loading lexer_inno
Loading lexer_cu
Loading lexer_diff
Loading lexer_make
Loading lexer_autotools
Loading lexer_squirrel
Loading lexer_registry
Loading lexer_verilog
Loading lexer_plain
Loading lexer_angelscript
Loading lexer_postscript
Loading lexer_proto
Loading lexer_bash
Loading lexer_markdown
Loading lexer_d
Loading lexer_css
Loading lexer_srec
Loading lexer_sql
Loading lexer_matlab
Loading lexer_coffee
Loading lexer_f77
Configured 0 tools
Scanning for plugins in /home/hyena/.local/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /opt/codeblocks/lib/codeblocks/plugins
Manager failed to load XRC resource '/opt/codeblocks/share/codeblocks/DisplayEvents.zip'.
Tools Plus Plugin: Registering shell type Piped Process Control
Loaded 59 plugins
Loading:
HelpPlugin
Help plugin ini file: /opt/codeblocks/share/codeblocks/docs/index.ini
SmartIndentXML
cbDragScroll
ReopenEditor
AutoVersioning
wxSmith
wxSmithMime
HeaderFixup
Profiler
HexEditor
ToDoList
Abbreviations
CodeSnippets
CppCheck
cbKeyBinder
wxSmithAui
DisplayEvents
clangd_client
copystrings
EnvVars
Debugger
SmartIndentLua
BYOGames
ThreadSearch
Compiler
BrowseTracker
ClassWizard
OpenFilesList
wxSmithContribItems
RegExTestbed
IncrementalSearch
ProjectsImporter
Cccc
Valgrind
FilesExtensionHandler
SpellChecker
Loading image: '/usr/share/codeblocks/SpellChecker/svg/disabled.svg' failed!
ProjectOptionsManipulator
Exporter
CB_Koders
SmartIndentPython
EditorTweaks
CodeStat
DoxyBlocks
AStylePlugin
SmartIndentHDL
Autosave
ScriptedWizard
OccurrencesHighlighting
SmartIndentFortran
EditorConfig
SmartIndentPascal
SmartIndentCpp
ToolsPlus
NassiShneidermanPlugin
Initial scaling factor is 1.000 (actual: 1.000)
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
Opening /home/hyena/Desktop/temp/testcpp/testcpp/testcpp.cbp
Done.
SpellChecker: Thesaurus files '/usr/share/codeblocks/SpellChecker/th_en_US.idx' not found!
ClangdClient: allocating ProxyProject (phase 1).
Opening /home/hyena/.config/codeblocks/CC_ProxyProject.cbp
Done.
ClangdClient: loading ProxyProject (phase 2.
Opening /home/hyena/.config/codeblocks/CC_ProxyProject.cbp
Done.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Re: code completion breaks after changing header file
« Reply #18 on: May 27, 2025, 04:52:04 am »
As it turns out, a timeout wxMutex on Manjaro always returns wxMUTEX_MISC_ERROR.

I'm having to change all wxMutex.LockTimeout()s to std::timed_mutex(s) which do work on Manjaro.

This means that any code that was protected by a timed wxMutex never executes.

8>{

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Re: code completion breaks after changing header file
« Reply #19 on: May 31, 2025, 09:10:47 pm »
@Hyena

Have a look at:
https://github.com/pecanh/Clangd_client/blob/main

And read https://github.com/pecanh/Clangd_client/blob/main/HowToInstall.txt

I updated Clangd_client to accommodate the Manjaro wxMutex problem and tested the install instructions twice.

See if they work for you and let me know of any errors.

Thanks

Offline Hyena

  • Multiple posting newcomer
  • *
  • Posts: 33
Re: code completion breaks after changing header file
« Reply #20 on: June 01, 2025, 08:19:57 am »
Sorry, that's too much to ask. Perhaps it would make sense to contact Antonio Rojas for this (see screenshot for e-mail). He seems to be responsible for packaging C::B on Manjaro's package manager. The package provided is still at version 20.03 anyway, so pumping it to the newest version might be a good idea.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Re: code completion breaks after changing header file
« Reply #21 on: June 02, 2025, 07:03:56 pm »
Fixed svn r13668