User forums > Using Code::Blocks

Underlining Errors in editor before compilation/building

(1/1)

kakas:
When I write gibberish in the editor and save the file. Code Blocks doesn't seem to be aware of the error.
It's only when I try to build the project it gives an error. That too just a mark on the corresponding line in the editor and not the specific word.

I don't know if I am supposed to install some external extension or simple turn on something in the settings.
I searched up this problem and visited multiple issues, but they were all about syntax highlighting issues.
(Idk how attaching images to post works, I tried)

nenin:
Hate to say that, but highlighting is not a spellchecking. It is just enhance readability of the code, nothing more.
You can detect errors in C/C++ only by compiler or tools like lint.

kakas:
Is there anyway to get code blocks to highlight/underline specific errors in editor before compiling?

Pecan:

--- Quote from: kakas on April 08, 2024, 08:41:39 pm ---Is there anyway to get code blocks to highlight/underline specific errors in editor before compiling?

--- End quote ---

You might want to look at the CodeBlocks Nightly builds section. It contains CodeBlocks with a Clangd_client plugin which marks error in the left margin when you save a file.
https://forums.codeblocks.org/index.php/board,20.0.html

See this in order to enable it:
https://wiki.codeblocks.org/index.php/CB_Clangd_Client

kakas:

--- Quote from: Pecan on April 09, 2024, 06:21:37 am ---
--- Quote from: kakas on April 08, 2024, 08:41:39 pm ---Is there anyway to get code blocks to highlight/underline specific errors in editor before compiling?

--- End quote ---

You might want to look at the CodeBlocks Nightly builds section. It contains CodeBlocks with a Clangd_client plugin which marks error in the left margin when you save a file.
https://forums.codeblocks.org/index.php/board,20.0.html

See this in order to enable it:
https://wiki.codeblocks.org/index.php/CB_Clangd_Client

--- End quote ---
Thanks  :D!!!

Navigation

[0] Message Index

Go to full version