News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Spellchecker, SFML and linux

Started by Gryf, June 26, 2018, 06:51:35 AM

Previous topic - Next topic

oBFusCATed

Ok, so you've missed my comment about when spell checker works, haven't you?
Type something like:

// blabla test alabsdfa
callfunc("blabla this will be spell check, but the code won't");

(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!]

Gryf

#16
Update:

I'm so sorry but I didn't realize that the spellchecker doesn't work for all in C++;
I can use it for autocomplete name of variables but he don't correct me when I write a function name with a mistake

In a code like that :
std::string variableName = "abcdtestghikj";
variableName.find("test");

It will propose me the variableName at line 2 but don't tell me anything for the contains function or for the "string" at line 1

sodev

Uhm, this is not spellchecking, this is code completion you are talking about.

Spellchecking checks the spelling of "natural" language and not a programming language, it especially skips every C++ "grammar".

oBFusCATed

Also C::B at this moment doesn't have inline error messages.
So if you want to see if your code is correct you'll have to compile 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!]

Gryf

#19
Ok I see. sorry for the confusion

but oBFusCATed if I do that I lost the adventage of using C::B, I can also use vim

oBFusCATed

Patches welcome.
The advantage of C::B over vim is alt-g.
(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!]

Gryf

#21
I want to patch it but that I ask how can I do it ?

stahta01

#22
Quote from: Gryf on June 28, 2018, 04:04:04 PM
I want to patch it but that I ask how can I do it ?

Step 1: Be able to build Code::Blocks core from Source http://wiki.codeblocks.org/index.php/Developer_documentation
Edit: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks
Step 2: If needed be able to build an [contrib] C::B Plugin (if you need to edit an contrib Plugin)
Step 3: Do the code changes to fix or add feature
Step 4: Submit an Subversion(SVN) patch file to sourceforge.net (sf.net) http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_(Patch_Tracker)

Edit2: I am guessing you would need to edit the Code Completion (CC) Plugin; but, this is a big guess on my part.
Edit3: You might want to look at the Clang CC Plugin that another person is working on and see if it works for you.
http://forums.next.codeblocks.org/index.php?topic=20623.225

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Gryf

That's not what I meant. I want to fix it but I don't want to edit any plugin. I just ask you which package exactly I need to install or what I need to change in the settings.

oBFusCATed

The only plugin which has this feature at the moment is https://github.com/yvesdm3000/ClangLib I think, but I have not tried it.
Hopefully in the not so distant future we would have a language server plugin, which will also support this.
(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!]

Gryf

I did not found a compilable version or a version for archlinux.
I will search plugin for the autocompletion.
Thank's very much for your help ;D

BlueHazzard

Yes the clang plugin has jit error detection and a lot other things. On unix it should be easy to compile....

BlueHazzard

Quote from: oBFusCATed on June 28, 2018, 05:33:24 PM
Hopefully in the not so distant future we would have a language server plugin, which will also support this.
Are you working on it? Do you have some code to show?

oBFusCATed

Yes, I'm (paused now, but I'll get back to it at some moment this year).
It is too crude and useless at the moment. And doesn't do diagnostics. Also clangd is too early in its development.
(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!]