Author Topic: Spellchecker, SFML and linux  (Read 7923 times)

Offline Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Spellchecker, SFML and linux
« on: June 26, 2018, 06:51:35 am »
Hello,
I'have a problem with the spellchecker of codeblocks he had not the dictionnary (.dic and .aff) into his files, I had to download these files and copy them into the spellchecker folder.
But when I configured my project for use SFML I realized that the spellchecker don't work for the SFML.
I'm using archlinux, I think there is a rapport but I preferred post my message on this forum
Please I need help, it's very awkward to program without spellchecker.

PS : Excuse me for the mistakes in my text, I don't speak english very well

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Spellchecker, SFML and linux
« Reply #1 on: June 26, 2018, 08:48:37 am »
I hope, you know that the spell checker works only in comments and string literals.
Generally you don't have to copy files, just install the myspell packages with pacman and then point the spell checker to the correct folder.
On my machine it is /usr/share/myspell.
(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 BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Spellchecker, SFML and linux
« Reply #2 on: June 26, 2018, 03:40:47 pm »
Does it work on other porjects? Did it ever worked? Only for this project? What language?

Offline Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Spellchecker, SFML and linux
« Reply #3 on: June 26, 2018, 03:46:42 pm »
Sorry but what it the myspell package (disctionnary, thesaurus or both) ?
If it's the dictionnary I didn't found package in pacman, I musted download it.

I did not test on other projects but on windows that work. I use C++ for my project

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Spellchecker, SFML and linux
« Reply #4 on: June 26, 2018, 04:37:00 pm »
I guess aspell could work, too.
On my gentoo I use myspell and on centos 6 I use aspell.

On both the paths are set to /usr/share/myspell. I have all paths set to point to myspell.
(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 Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Spellchecker, SFML and linux
« Reply #5 on: June 26, 2018, 04:47:44 pm »
That's the problem, I don't have any folder here, I have all my paths set to point to /usr/share/codeblocks/SpellChecker
How can I use aspell in codeblocks ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Spellchecker, SFML and linux
« Reply #6 on: June 26, 2018, 07:50:25 pm »
Do you have it installed? Do you have any dictionaries installed?
Use pacman to find where are the dictionaries the use the correct paths.
I don't have arch to check where is everything placed.
(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 Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Spellchecker, SFML and linux
« Reply #7 on: June 26, 2018, 10:22:18 pm »
yes I have aspell installed and I already have install a dictionnary but codeblocks don't use it for SFML :(

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Spellchecker, SFML and linux
« Reply #8 on: June 26, 2018, 10:42:42 pm »
What is the path where the dictionary is located?
What path have you entered in settings?
Do you see a flag in the status bar with your language?
(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 Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Spellchecker, SFML and linux
« Reply #9 on: June 26, 2018, 11:19:27 pm »
the dictionanry is located here :/usr/share/codeblocks/SpellChecker and that's the folder that I entered in setting
Yes I see an american flag in the status bar

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Spellchecker, SFML and linux
« Reply #10 on: June 27, 2018, 01:19:25 am »
Screenshot?
(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 stahta01

  • Lives here!
  • ****
  • Posts: 7576
    • My Best Post
Re: Spellchecker, SFML and linux
« Reply #11 on: June 27, 2018, 04:18:19 am »
Did you install "hunspell" or another spell check library on Linux? If yes, which one did you install?
https://www.archlinux.org/packages/extra/x86_64/hunspell/

Edit https://www.archlinux.org/packages/extra/any/hunspell-en/

Tim S.
« Last Edit: June 27, 2018, 04:20:02 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Spellchecker, SFML and linux
« Reply #12 on: June 27, 2018, 06:45:56 pm »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Spellchecker, SFML and linux
« Reply #13 on: June 27, 2018, 07:19:23 pm »
Can I see a screenshot of the editor you expect to be spell checked?
(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 Gryf

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Spellchecker, SFML and linux
« Reply #14 on: June 27, 2018, 08:13:34 pm »
Sorry but I don't understand what screenshot I need to send.
There is no correction for all I write wich use SFML
« Last Edit: June 27, 2018, 08:15:34 pm by Gryf »