Вопрос

So I was excited to jump into some Hacklang and HHVM, and after finally managing to get it running on a CentOS 6 VM (tip: servergrove.com have a RPM from a repo of theirs, but it still needed MySQL 5.0 shared libraries to work - still the closest I could find to an easy CentOS 6 install though...), I thought I would tackle a reasonably small PHP project of mine as a good test case for converting to strict Hack code.

I'm getting through the code alright, but I don't think I fully understand how hh_client is supposed to work. I created a .hhconfig file in the root of my project, and then ran hh_client start from the directory, and it seems to start ok - I see three hh_server -d /var/www/html/groundwork processes running after doing this. However every time I want to type check my code, I have to run a hh_client check, where as the language being used in the docs and other sources keeps suggesting this is supposed to be a real time checker that automatically feeds back - I could run a watch hh_client check I guess, but it seems like I'm missing something.

I made sure to get a copy of the hhi files as suggested by Common php functions in hack

Also, sometimes when I start hh_client it reports stuff that a check straight afterwards won't, despite not changing anything in code. The check is often fewer in errors. Stopping and starting hh_client reports more again.

Thanks.

Это было полезно?

Другие советы

If you are using this on Mac OSX 10.10 you have to use Vagrant. If you are using Vagrant and importing the files from the local machine to your vagrant box hh_client will not detect the changes. To fix this you can log into the vagrant box in another terminal and run the following.

watch hh_server . --check

As of a few weeks ago brew not can install hhvm on your mac. This should no longer be necessary.

disable extension called "Hack" from Visual Studio

enter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top