如何在 Spyder 4 中开启 on/off 代码分析功能
How to turn on/off code analysis features in Spyder 4
将 Spyder 更新到 4.0.0 后,我看不到任何用于打开或关闭“实时代码分析”的复选框
这里可以看到找不到的菜单步骤:
How to suppress a certain warning in Spyder editor?
其中包含:
你需要去
[工具 > 首选项 > 编辑器 > 代码 Introspection/Analysis
并停用名为
实时代码分析]
对于 4.1.3 及以下的版本,存在以下问题,可能仅在 Windows 上存在:
我无法打开警告,例如显示哪些变量是未知的。通常,如果我将代码移动到一个单独的函数,我只需滚动代码中的红线即可找到该函数所需的所有参数。
连正常的代码补全都不行。首先,在点后输入 3 个字母后没有弹出任何内容。然后,当 Spyder 似乎开始搜索时,它不再有反应了。
(此处为 Spyder 维护者) Spyder 4 中的代码分析选项得到了显着扩展,并移至我们首选项中名为 Completion and linting
的新条目,如下所示:
要停用所有 linting(在“实时代码分析”之前调用),您需要关闭上面屏幕截图中名为 Enable basic linting
的选项。
请更新到 4.1.4 或更高版本以避免 Windows 上提到的错误。
版本 4.0.0 到 4.1.3 的解决方法
github 帮助的结果:在调试 模式下启动 spyder
spyder --debug-info verbose --debug-output file
见https://github.com/spyder-ide/spyder/issues/10993#issuecomment-563414784
调试模式返回所有代码分析功能。您可能可以删除 --debug-output file
(未经测试)。对于 4.0.0 至 4.1.4 版本,您需要始终像这样启动 Spyder,否则丢失的 linting returns(至少在 Windows 上)。 此错误已在 Spyder 4.1.4 中修复。
问题已被Spyder 4.1.4版本修复,请更新您的Spyder。使用 https://github.com/spyder-ide/spyder/releases.
上的更新步骤
ccordoba12 on GitHub有好消息,再看:https://github.com/spyder-ide/spyder/issues/10993#issuecomment-647616536
We had a long time trying to figure out why code completion and
linting were failing. However, I think we finally nailed the issue: it
was a problem that only appeared on Windows and @OverLordGoldDragon
was critical in providing us a reproducible use case with which I
could finally fix it. The fix will be available in our next version
(4.1.4), to be released by the end of this week or early during the
next one.
将 Spyder 更新到 4.0.0 后,我看不到任何用于打开或关闭“实时代码分析”的复选框
这里可以看到找不到的菜单步骤: How to suppress a certain warning in Spyder editor? 其中包含: 你需要去 [工具 > 首选项 > 编辑器 > 代码 Introspection/Analysis 并停用名为 实时代码分析]
对于 4.1.3 及以下的版本,存在以下问题,可能仅在 Windows 上存在:
我无法打开警告,例如显示哪些变量是未知的。通常,如果我将代码移动到一个单独的函数,我只需滚动代码中的红线即可找到该函数所需的所有参数。
连正常的代码补全都不行。首先,在点后输入 3 个字母后没有弹出任何内容。然后,当 Spyder 似乎开始搜索时,它不再有反应了。
(此处为 Spyder 维护者) Spyder 4 中的代码分析选项得到了显着扩展,并移至我们首选项中名为 Completion and linting
的新条目,如下所示:
要停用所有 linting(在“实时代码分析”之前调用),您需要关闭上面屏幕截图中名为 Enable basic linting
的选项。
请更新到 4.1.4 或更高版本以避免 Windows 上提到的错误。
版本 4.0.0 到 4.1.3 的解决方法
github 帮助的结果:在调试 模式下启动 spyder
spyder --debug-info verbose --debug-output file
见https://github.com/spyder-ide/spyder/issues/10993#issuecomment-563414784
调试模式返回所有代码分析功能。您可能可以删除 --debug-output file
(未经测试)。对于 4.0.0 至 4.1.4 版本,您需要始终像这样启动 Spyder,否则丢失的 linting returns(至少在 Windows 上)。 此错误已在 Spyder 4.1.4 中修复。
问题已被Spyder 4.1.4版本修复,请更新您的Spyder。使用 https://github.com/spyder-ide/spyder/releases.
上的更新步骤ccordoba12 on GitHub有好消息,再看:https://github.com/spyder-ide/spyder/issues/10993#issuecomment-647616536
We had a long time trying to figure out why code completion and linting were failing. However, I think we finally nailed the issue: it was a problem that only appeared on Windows and @OverLordGoldDragon was critical in providing us a reproducible use case with which I could finally fix it. The fix will be available in our next version (4.1.4), to be released by the end of this week or early during the next one.