The facebook team is really pushing hard with the HHVM theese days so it would be interesting to support the new language features provided by HHVM hack extension which brings a lot of interesting features on top of zend PHP.
HHVM has launched a new website with a detailed documentation of their hack language.
More editor area, reassigning. Thanks.
Would be very nice.
This is actually something that should be considered sooner rather than later.
Yes please, support for Hack would be super cool!
Hey, I'm Josh Watzman, an engineer at Facebook working on the Hack typechecker, in particular the open source side of things. Having Hack support in NetBeans would be really cool! I sadly don't have any time to devote to actually building this myself, but I'm happy to help NetBeans or anyone else putting together such support with any questions about it they may have. If you want to chat, you can email me (my email is "jwatzman" at Facebook's corp domain, "fb.com") or if you like IRC feel free to come by #hhvm on Freenode, I and several others are there during the working day US Pacific time.
Some initial thoughts to get started. There are two major pieces of such an integration:
1) Adding syntax support for Hack, such as type annotations, short lambdas, and collections. Nothing here is (AFAIK) terribly difficult, just a somewhat wide surface area. But it also doesn't necessarily have to be perfect in v1.0 to be useful.
2) Talking to the `hh_client` static analysis tool which normally runs on the command-line on a Linux or (soon) Mac machine in order to display type errors in the IDE. `hh_client --json` generates a machine-readable output -- the likely hard part here is that we don't have Windows support; the FBIDE implementation talks to a remote Linux server, but I have no idea what you will or will not want to do here, or what makes sense for NetBeans. But getting this working is pretty important -- most of the type system is enforced only by this static analysis tool, not HHVM, so you're missing out on most of the power of Hack if this isn't working.
An example integration for vim is here: https://github.com/hhvm/vim-hack I don't think it's be updated to use the newer `--json` output formats and so does some string parsing BS instead, but you should be able to get the idea for how the typechecker and some of its niceties (e.g., autocomplete and type-at-position) integrate.
Again, happy to help anyone working on this with any questions!
any news on this one ?
@Ondrej Brejla, do we have an update?
@ceo: Yes, we have. Unfortunately we don't have a time for almost anything ;) Sry...
No time for only this big feature or you mean any new/requested features for netbeans?
One of the developers behind Hack all but offered to do it for you, and you still don't have time?
I don't have time for NB features right now. Once I'll have it, I'll definitely be in contact with Josh Watzman. His offer is really cool.
JordanLeDoux: NB is open source, if you have a time, you can write that support by yourself and provide it to NB, no problem. Thanks.
Any news for this ticket?
seems like it faded to oblivion. phpstorm will have hack support in Q1 2015 if anyone interested.
Any updates? I tried searching for a plugin related for HHVM and Hack features but found nothing.
Is it possible only syntax coloring? It looks like easy because Hacklang is subset of PHP.
There is sample: https://github.com/hhvm/vim-hack/blob/master/after/syntax/php.vim
Yes, at least syntax highlighting, please.