| Summary: | [spell checking] Unable to add a text phrase to the spelling file | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marcus Walla <marcus.walla> |
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Anton Leherbauer <aleherb+eclipse> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | cdtdoug, malaperle, Michael_Rennie, remy.suen, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Marcus Walla
Sorry, I don't quite understand the bug. Can you provide more details? Ok, here is a short description: 1. Download Eclipse 3.6.2 for Mac OS and installed it 2. Create an empty dictionary file under <dir>/spelling.txt on a terminal 3. Start Eclipse 4. Install CDT (C/C++ plugin, version 7.0.2) from Eclipse update side and restart it 5. Open the preference panel for spelling (menu path): Eclipse -> Preferences... -> General -> Editors -> Text Editor -> Spelling 6. Toggle the item "Enable spell checking" to selected 7. Under the group "Directories" browse to the dictionary file: <dir>/spelling.txt 8. Tell Eclipse to accept the changes with the "OK" button 9. Create a new C++ file and entered a phrase which is unknown to the dictionary. Under the up coming popup menu I wanted to add the phrase to the dictionary 10. After this Eclipse always opens a dialog box because the dictionary file seems not to be configured. This is a failure because I already have configured it under step 7 Hope this helps. BTW, with Java files I can add new text elements but with C++ files not. Do you have Java/JDT installed? If so, could you test there too? With Java/JDT I can add text elements to the dictionary file but don't under C++/CDT. (In reply to comment #4) > With Java/JDT I can add text elements to the dictionary file but don't under > C++/CDT. Looks like this belongs to CDT then. Do you have a spelling engine selected in Eclipse -> Preferences... -> General -> Editors -> Text Editor -> Spelling ? This looks similar to bug 310237 Hi Marc-Andre, sorry for the long delay! Yes, I have selected the spelling engine with that preference path. Cheers, Marcus (In reply to comment #7) > sorry for the long delay! Yes, I have selected the spelling engine with that > preference path. And do you have a dictionary file set for the C/C++ Spelling engine? I think what's happening here is similar to bug 310237 comment 3 No. From my point of view there seem to be only one preference panel in which I can manipulate a spelling file. This preference page can be found under the already mentioned path: Eclipse -> Preferences... -> General -> Editor -> Text Editor -> Spelling. So, there seem to be another spelling file for C/C++ files? Can you give me a hint where to find these settings? Currently I have no clue how to create a spelling file for C++ files! (... I filled in the filter in the preference dialog pages in the top left corner with "spelling" which only provides the the upper path) (In reply to comment #9) > No. From my point of view there seem to be only one preference panel in which I > can manipulate a spelling file. This preference page can be found under the > already mentioned path: Eclipse -> Preferences... -> General -> Editor -> Text > Editor -> Spelling. So, there seem to be another spelling file for C/C++ files? > Can you give me a hint where to find these settings? Currently I have no clue > how to create a spelling file for C++ files! (... I filled in the filter in the > preference dialog pages in the top left corner with "spelling" which only > provides the the upper path) In that same page, you should have a combo box 'Select spelling engine to use:". If it's set to 'Default spelling engine', try selecting 'C/C++ spelling engine' and then setting the dictionary file. I can't reproduce this issue with CDT 9.2. (In reply to Marc-André Laperle from comment #10) > (In reply to comment #9) > > No. From my point of view there seem to be only one preference panel in which I > > can manipulate a spelling file. This preference page can be found under the > > already mentioned path: Eclipse -> Preferences... -> General -> Editor -> Text > > Editor -> Spelling. So, there seem to be another spelling file for C/C++ files? > > Can you give me a hint where to find these settings? Currently I have no clue > > how to create a spelling file for C++ files! (... I filled in the filter in the > > preference dialog pages in the top left corner with "spelling" which only > > provides the the upper path) > > In that same page, you should have a combo box 'Select spelling engine to > use:". If it's set to 'Default spelling engine', try selecting 'C/C++ > spelling engine' and then setting the dictionary file. I do not see that combo box, or any other reference to an "engine", on that preference page. (In reply to Nathan Ridge from comment #11) > I do not see that combo box, or any other reference to an "engine", on that > preference page. Do you have both JDT and CDT installed (or in your target) ? I think maybe that combo box doesn't appear unless there are multiple engines. I don't quite remember how this works though. (In reply to Marc-André Laperle from comment #12) > (In reply to Nathan Ridge from comment #11) > > I do not see that combo box, or any other reference to an "engine", on that > > preference page. > > Do you have both JDT and CDT installed (or in your target) ? I think maybe > that combo box doesn't appear unless there are multiple engines. I don't > quite remember how this works though. You're right. After installing JDT, I now see the "Select spelling engine to use" combo box on the Spelling preference page. I can confirm that the different spelling engines can use different user-defined dictionary files, and that in the C/C++ editor, "Add to dictionary" will add things to the user-defined dictionary for the C/C++ spelling engine. This seems to be working as intended, so I'm going to close this bug. |