Eclipse拼写引擎不存在

时间:2023-02-05 12:09:14

I'm using Eclipse 3.4 (Ganymede) with CDT 5 on Windows.

我在Windows上使用Eclipse 3.4(Ganymede)和CDT 5。

When the integrated spell checker doesn't know some word, it proposes (among others) the option to add the word to a user dictionary.

当集成的拼写检查器不知道某个单词时,它建议(以及其他)将该单词添加到用户词典的选项。

If the user dictionary doesn't exist yet, the spell checker offers then to help configuring it and shows the "General/Editors/Text Editors/Spelling" preference pane. This preference pane however states that "The selected spelling engine does not exist", but has no control to add or install an engine.

如果用户词典尚不存在,则拼写检查器会提供帮助配置它并显示“常规/编辑/文本编辑器/拼写”首选项窗格。但是,此首选项窗格指出“所选拼写引擎不存在”,但无法控制添加或安装引擎。

How can I put a spelling engine in existence?

我怎样才能使用拼写引擎?

Update: What solved my problem was to install also the JDT. This solution was brought up on 2008-09-07 and was accepted, but is now missing.

更新:解决了我的问题是安装了JDT。这个解决方案在2008-09-07提出并被接受,但现在已经丢失了。

3 个解决方案

#1


1  

Are you using the C/C++ Development Tools exclusively?

The Spellcheck functionality is dependent upon the Java Development Tools being installed also.

The spelling engine is scheduled to be pushed down from JDT to the Platform,
so you can get rid of the Java related bloat soon enough. :)

您是否专门使用C / C ++开发工具?拼写检查功能还取决于正在安装的Java开发工具。拼写引擎计划从JDT推送到平台,因此您可以尽快摆脱Java相关的膨胀。 :)

#2


6  

The CDT version of Ganymede apparently shipped improperly configured. After playing around for a while, I have come up with the following steps that fix the problem.

Ganymede的CDT版本显然配置不正确。玩了一会儿后,我想出了以下修复问题的步骤。

  1. Export your Eclipse preferences (File > Export > General > Preferences).
  2. 导出Eclipse首选项(文件>导出>常规>首选项)。

  3. Open the exported file in a text editor.
  4. 在文本编辑器中打开导出的文件。

  5. Find the line that says

    找到说的那一行

    /instance/org.eclipse.ui.editors/spellingEngine=org.eclipse.jdt.internal.ui.text.spelling.DefaultSpellingEngine
  6. Change it to

    将其更改为

    /instance/org.eclipse.ui.editors/spellingEngine=org.eclipse.cdt.internal.ui.text.spelling.CSpellingEngine

  7. Save the preferences file.

    保存首选项文件。

  8. Import the preferences back into Eclipse (File > Import > General > Preferences).
  9. 将首选项导入Eclipse(“文件”>“导入”>“常规”>“首选项”)。

You should now be able to access the Spelling configuration page as seen above.

您现在应该能够访问拼写配置页面,如上所示。

Note: if you want to add a custom dictionary, Eclipse must be able to access and open the file (i.e. it must exist - an empty file will work)

注意:如果要添加自定义词典,Eclipse必须能够访问并打开文件(即它必须存在 - 空文件才能工作)

#3


0  

Just a word of warning: If you follow the advice to replace the preference as above, it will affect spell checking if you also use Java. I think all I needed to do was change the "Select spelling engine to use" to the C++ engine (near the top of the preference setting on the preference page General->Editors->Text Editors->Spelling).

只是一句警告:如果你按照上面的建议更换偏好,如果你也使用Java,它将影响拼写检查。我想我需要做的就是将“选择拼写引擎使用”更改为C ++引擎(在首选项页面General-> Editors-> Text Editors-> Spelling的首选项设置顶部附近)。

#1


1  

Are you using the C/C++ Development Tools exclusively?

The Spellcheck functionality is dependent upon the Java Development Tools being installed also.

The spelling engine is scheduled to be pushed down from JDT to the Platform,
so you can get rid of the Java related bloat soon enough. :)

您是否专门使用C / C ++开发工具?拼写检查功能还取决于正在安装的Java开发工具。拼写引擎计划从JDT推送到平台,因此您可以尽快摆脱Java相关的膨胀。 :)

#2


6  

The CDT version of Ganymede apparently shipped improperly configured. After playing around for a while, I have come up with the following steps that fix the problem.

Ganymede的CDT版本显然配置不正确。玩了一会儿后,我想出了以下修复问题的步骤。

  1. Export your Eclipse preferences (File > Export > General > Preferences).
  2. 导出Eclipse首选项(文件>导出>常规>首选项)。

  3. Open the exported file in a text editor.
  4. 在文本编辑器中打开导出的文件。

  5. Find the line that says

    找到说的那一行

    /instance/org.eclipse.ui.editors/spellingEngine=org.eclipse.jdt.internal.ui.text.spelling.DefaultSpellingEngine
  6. Change it to

    将其更改为

    /instance/org.eclipse.ui.editors/spellingEngine=org.eclipse.cdt.internal.ui.text.spelling.CSpellingEngine

  7. Save the preferences file.

    保存首选项文件。

  8. Import the preferences back into Eclipse (File > Import > General > Preferences).
  9. 将首选项导入Eclipse(“文件”>“导入”>“常规”>“首选项”)。

You should now be able to access the Spelling configuration page as seen above.

您现在应该能够访问拼写配置页面,如上所示。

Note: if you want to add a custom dictionary, Eclipse must be able to access and open the file (i.e. it must exist - an empty file will work)

注意:如果要添加自定义词典,Eclipse必须能够访问并打开文件(即它必须存在 - 空文件才能工作)

#3


0  

Just a word of warning: If you follow the advice to replace the preference as above, it will affect spell checking if you also use Java. I think all I needed to do was change the "Select spelling engine to use" to the C++ engine (near the top of the preference setting on the preference page General->Editors->Text Editors->Spelling).

只是一句警告:如果你按照上面的建议更换偏好,如果你也使用Java,它将影响拼写检查。我想我需要做的就是将“选择拼写引擎使用”更改为C ++引擎(在首选项页面General-> Editors-> Text Editors-> Spelling的首选项设置顶部附近)。