Bug 310237 - [spell-check] Impossible to create a user dictionary
Summary: [spell-check] Impossible to create a user dictionary
Status: REOPENED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 normal with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 406783
  Show dependency tree
 
Reported: 2010-04-23 04:06 EDT by Jens Seidel CLA
Modified: 2021-02-08 02:39 EST (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Seidel CLA 2010-04-23 04:06:25 EDT
Build Identifier: 3.6.0 M6

I tried from a C++ editor to add a missing word in my (not yet existing) dictionary and Eclipse asks:

"Missing User Dictionary

A user dictionary is needed to add words.
Do you want to configure it now?"

I replied with yes and chose /home/jens/.eclipse/dictionary.en_GB where
/home/jens/.eclipse is my workspace. I selected OK in the dialog, tried adding the word again and got the same "Missing User Dictionary" dialog.

Mhm, what now? I created an empty file but it still does not work. Even after a restart of Eclipse it doesn not work. I also added the missing word ("Destructor"), still no success ...

Reproducible: Always
Comment 1 Dani Megert CLA 2010-04-23 04:15:42 EDT

*** This bug has been marked as a duplicate of bug 306929 ***
Comment 2 Jens Seidel CLA 2010-04-23 04:48:21 EDT
This is not bug #306929 as it is about a missing spell engine. I have a working spell engine.

Now I found a solution: In the preferences I switch the spelling engine from "default spelling engine" to "C/C++ spelling engine" and the user defined dictionary was not set after this. So it seems that my input in the dialog
was not properly propagated ...

Neverthless you're right that I have no JDK plugins installed.
Comment 3 Allan Pratt CLA 2010-09-15 15:57:00 EDT
I suffered from this too - and so do others on the web, where I searched to find out what was wrong and how to fix it.

The problem is that answering "Yes" to "Do you want to configure a user dictionary?" leads to the user-dictionary config page, but the page opens to the settings for the "default" engine, not the C++ engine. There is no way to discover that you need to change the selection to the C++ engine FIRST, and THEN fill out the form.

If there is no way to force the Preferences window's Spelling dialog to open with the C++ engine pre-selected, then the dialog that leads you there should tell you to "Select the C++ engine on the Preferences page" or something. That is not a preferred UI but it's better than what is there now.
Comment 4 Olexiy Buyanskyy CLA 2010-12-14 17:35:37 EST
This is platform independent issue. I had troubles on Windows too. I have spent 20 minutes until found this kind of solution.
Comment 5 Glenn Burkhardt CLA 2011-06-16 09:03:41 EDT
The solution explained by Allan Pratt works.  The bug is that when the Preferences dialog opens, the selection for "Spelling Engine to use" isn't automatically set to "C/C++ spelling engine".

The solution was also noted here:

http://syncor.blogspot.com/2011/03/eclipse-adding-user-dictionary-for-cdtc.html
Comment 6 Steven Pehrson CLA 2012-10-29 18:03:04 EDT
Problem still exists in 4.2.1.  Allen Pratt's solution worked, but it's not very user friendly. The idea to bring up the dialog when a user dictionary needs to be created is good, but it is non-obvious that you need to select the C++ spelling engine.
Comment 7 Jeff Muir CLA 2015-01-05 00:16:18 EST
Still a problem in 4.4.0 in 2015.
Comment 8 Rick Rankin CLA 2016-11-29 11:25:37 EST
If anyone cares, it's still an issue in 4.6.1 in Nov 2016. Allan Pratt's solution still works, but it's not easy to find.
Comment 9 John Penn CLA 2018-05-25 13:56:22 EDT
Also still a problem in 4.7.1.
Comment 10 Peng Zheng CLA 2018-10-08 08:56:11 EDT
 Thanks to Allan Pratt. This bug is very annoying even for experienced users, please fix it.
Comment 11 Gabriel Staples CLA 2021-02-04 12:08:39 EST
This exact bug still exists as of 4 Feb. 2021 in Eclipse Version 2020-09 (4.17.0) on Ubuntu 20.04. I've created the dictionary a dozen times, restarting Eclipse each time, trying shorter dictionary names, etc, still with no success.
Comment 12 Gabriel Staples CLA 2021-02-08 02:39:32 EST
As others have pointed out, the answer is I must select the "C/C++ spelling engine" for the spellcheck dictionary to work! See here: 

1. https://syncor.blogspot.com/2011/03/eclipse-adding-user-dictionary-for-cdtc.html
2. https://stackoverflow.com/questions/23237111/how-to-create-a-user-dictionary-in-eclipse/28207075#28207075