编写 IDE 调试器插件时遇到问题
作者: lloiser创建于 2018年4月21日更新于 2018年12月12日
目前我正在尝试编写一个 atom-ide-ui 调试器。如 atom-ide-ui 的 README 中所述,调试器集成应遵循 atom-ide-debugger-node 的模式。该项目使用了 nuclide-debugger-common/AutoGenLaunchAttachProvider。因此,我创建了一个新项目,并将 flow-bin (0.70.0) 和 nuclide-debugger-common (0.7.0) 添加到我的依赖中。现在,当我导入 nuclide-debugger-common/AutoGenLaunchAttachProvider 时,flow status 会报告 52 个错误。以下是 flow status 的输出:errors-52.txt 当我将 https://GitHub.com/facebook/nuclide/blob/master/flow-libs/atom.js.flow 添加到我的 flow-libs 目录中(并将其添加到 flowconfig 中)时,错误数量降至 38:errors-38.txt 在将 atom.js.flow 中添加 type IDisposable = { dispose(): mixed; } 后,错误数量降至 29:errors-29.txt 我只是想构建一个新的调试器...
内容来源: facebookarchive/nuclide