Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
Using Code::Blocks / Underlining Errors in editor before compilation/building
« Last post by kakas on April 08, 2024, 08:26:56 am »
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)
62
Plugins development / Re: Code completion using LSP and clangd
« Last post by tomay3000 on April 08, 2024, 06:55:47 am »
- "Find declaration of: ..." does not work for me.
- "Reparse this project" has become a must so that the menu entry "Find declaration of: ..." appears.

What is going wrong ?

OS : Windows 7 with SP1 x64
C::B : Nightly build 13496
clangd : 18.1.2

Not enough info.
Can you give us a simple example (code) to recreate the problem?
What steps can we perform to recreate the problem?

Here is my C::B project
Note that if I revert to using Code Completion back, then "Find declaration of: ..." starts working as expected.

@tomay3000
Thanks for providing the source.

Responses from Clangd are dependent on the symbols produced by the compiler being used.

Your project is using what looks like a 32 bit mingw compiler.
Where did you obtain that compiler so I can mirror your environment.

Using my default gcc 64 bit compiler gets a slew of compiler errors which means I won't get the same errors you do.

Also, what declaration are you trying to display so I can attempt to mimic the error.
The compiler I am using is: https://github.com/tomay3000/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev1/i686-13.2.0-release-posix-sjlj-ucrt-rt_v11-rev1.7z

Any declaration gives an error.
63
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on April 07, 2024, 06:18:16 pm »
- "Find declaration of: ..." does not work for me.
- "Reparse this project" has become a must so that the menu entry "Find declaration of: ..." appears.

What is going wrong ?

OS : Windows 7 with SP1 x64
C::B : Nightly build 13496
clangd : 18.1.2

Not enough info.
Can you give us a simple example (code) to recreate the problem?
What steps can we perform to recreate the problem?

Here is my C::B project
Note that if I revert to using Code Completion back, then "Find declaration of: ..." starts working as expected.

@tomay3000
Thanks for providing the source.

Responses from Clangd are dependent on the symbols produced by the compiler being used.

Your project is using what looks like a 32 bit mingw compiler.
Where did you obtain that compiler so I can mirror your environment.

Using my default gcc 64 bit compiler gets a slew of compiler errors which means I won't get the same errors you do.

Also, what declaration are you trying to display so I can attempt to mimic the error.
64
Plugins development / Re: Code completion using LSP and clangd
« Last post by tomay3000 on April 07, 2024, 01:16:05 pm »
- "Find declaration of: ..." does not work for me.
- "Reparse this project" has become a must so that the menu entry "Find declaration of: ..." appears.

What is going wrong ?

OS : Windows 7 with SP1 x64
C::B : Nightly build 13496
clangd : 18.1.2

Not enough info.
Can you give us a simple example (code) to recreate the problem?
What steps can we perform to recreate the problem?

Here is my C::B project
Note that if I revert to using Code Completion back, then "Find declaration of: ..." starts working as expected.
65
Contributions to C::B / Re: Wiki login
« Last post by tigerbeard on April 06, 2024, 08:47:11 pm »
Thanks it works now.
I had the no-logout problem, too. Seems that is by design: I was logged out as soon as I logged out from the forum. Actually a nice feature.

66
Contributions to C::B / Re: Code::Blocks' translation to german language
« Last post by rechtsanwaltsteyer on April 06, 2024, 03:29:08 pm »
Hello everyone, over time I have made a very extensive translation into German and can make it available (mo/po files). The latest version is also in Launchpad.
Regards
Michael
67
Plugins development / Re: Show diagnostics on clicking error/warning marker
« Last post by christo on April 06, 2024, 05:37:37 am »
@Pecan Thank you for spending time to get the patch in. Availability of the feature is more important than the implementation. I too think it is always better to do it in a way you are comfortable with as you are the plugin developer. Thank you once again for this plugin as this helps to increase developer productivity.  :)
68
Contributions to C::B / Re: Wiki login
« Last post by ollydbg on April 06, 2024, 05:35:37 am »
When I open the page:

https://wiki.codeblocks.org/index.php/Main_Page

I see I was already logged in.

But I can't find a way to "log out".

So, I can't test the "log in" steps.
69
Plugins development / Re: Show diagnostics on clicking error/warning marker
« Last post by Pecan on April 05, 2024, 07:47:53 pm »
It is much helpful to show diagnostic message when clicking on error/warning marker instead of scrolling through the LSP messages tab. Attaching patch for that, it shows the message in a message box.

Patch applied with mods on Head r13497.
Mods:
1) Simplify some code.
2) Add "Show fix if available" to the margin popup menu.
3) Change Diagnostic messageBox display from Left-Mouse click to Alt-Left-Mouse click on margin marker to avoid conflict with break points margin marker.

A note: The Christo patch use of the Alt-Left-Mouse click on the warning/error margin marker to directly display/apply the diagnostic/fix message box is a really nice touch. Thanks Christo. 

@Christo
If the code simplifications make you queasy; first, cover the keyboard.  :)
I'm the kind of geezer that opts for simple minded reliability over admittedly admirable sophisticated coding. I come from an assembly/C history where KISS coding was the rule.
70
Contributions to C::B / Re: Wiki login
« Last post by tigerbeard on April 05, 2024, 02:40:03 pm »
Thanks for your reply.
Got the same result with "T" at the begin. PW must be correct, since it got me in the forum
Pages: 1 2 3 4 5 6 [7] 8 9 10