type aliasing doesn't allow aliasing Map
The following snippet should reproduce the error:
<?hh
// Unbound name: Map
type MyType = Map<string, string>;
As far as I can tell, the hhi files are installed correctly, no symlinking or anything. Using the official .deb build.
I can't reproduce this in any environment where I have hhi properly installed. So it looks an awful awful lot like you have not properly installed them. Can you triple-check that
- the files are copied, not symlinked
- they are copied into a directory underneath where you have
.hhconfigso that the typechecker can find them - one of
hh_client --show Maporhh_client --show '\Map'outputs a bunch of information aboutMap(which one you need depends on what build exactly you have) -- if that fails, try withException-- if the hhi files are installed these classes should be known and dump info hh_client restartdoesn't help- there are no other errors produced; errors can cascade or mask others, so we often don't try to carry on after hitting one error
- you aren't on NFS, AFS, VirtualBox (Vagrant) shared FS, or any other network or network-ish filesystem where inotify might not work. (
hh_client restartshould help here, forcing it to pick up changes.)
D'oh. Massive pebkac.
Turns out, I copied the hhi files into the project dir on a machine different from the one where hh_server was actually running due to my somewhat convoluted development setup. Closing this. :)
Heh -- glad you got it working :)