Eclipse 拼写引擎不存在

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48390/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 16:08:52  来源:igfitidea点击:

Eclipse spelling engine does not exist

c++eclipsespell-checkingeclipse-3.4eclipse-cdt

提问by pesche

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 提出并被接受,但现在已丢失。

采纳答案by Ande Turner

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 相关的膨胀。:)

回答by elryno

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. Open the exported file in a text editor.
  3. Find the line that says

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

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

  5. Save the preferences file.

  6. Import the preferences back into Eclipse (File > Import > General > Preferences).
  1. 导出 Eclipse 首选项(文件 > 导出 > 常规 > 首选项)。
  2. 在文本编辑器中打开导出的文件。
  3. 找到说的那一行

    /instance/org.eclipse.ui.editors/spellingEngine=org.eclipse.jdt.internal.ui.text.spelling.DefaultSpellingEngine
  4. 将其更改为

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

  5. 保存首选项文件。

  6. 将首选项导入回 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 必须能够访问和打开该文件(即它必须存在 - 一个空文件将起作用)

回答by Ande Turner

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 上首选项设置的顶部)。