0

Nuclide 据说支持错误检查,但我不知道如何设置它。

  • 我有全新安装的 Atom
  • 我通过安装核素apm install nuclide-installer
  • hh_client我已经通过在命令行上从我的项目目录运行验证了 Hack 已正确安装,它确实报告了错误
  • 我的项目根目录中有一个.hhconfig,但它是空的(不知道在里面放什么)
  • 守望者已安装

IDE 中未显示任何错误(请参见屏幕截图)。我还有其他事情要做吗?

破解截图

$ atom --version
1.0.11
$ hh_client
hacktest.php:4:10,21: Invalid return type (Typing[4110])
  hacktest.php:3:22,24: This is an int
  hacktest.php:4:10,21: It is incompatible with a string
hacktest.php:9:1,0: Expected ; (Parsing[1002])
$ watchman --version
3.7.0
$ stat .hhconfig
  File: ‘.hhconfig’
  Size: 0           Blocks: 16         IO Block: 4096   regular empty file
4

1 回答 1

1

I suspect that's an installer issue (we had experienced a similar incident), so the hack package isn't properly installed/activated. Could you try building Nuclide from source and see it that fixes the issue for you: https://github.com/facebook/nuclide#building-from-source

于 2015-09-17T19:46:39.813 回答