ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Hacklang Typechecker and Autocompletion

by SiebelsTim ALL

Hack's typechecker & autocompletion inside Sublime Text

Details

Installs

  • Total 6K
  • Win 4K
  • Mac 1K
  • Linux 898
Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
01234Jan 6Jan 3Dec 31Dec 28Dec 25Dec 22Dec 19Dec 16Dec 13Dec 10Dec 7Dec 4Dec 1Nov 28Nov 25Jan 6 Linux: 0 Mac: 0 Windows: 0Jan 5 Linux: 0 Mac: 0 Windows: 0Jan 4 Linux: 0 Mac: 0 Windows: 0Jan 3 Linux: 0 Mac: 0 Windows: 0Jan 2 Linux: 0 Mac: 0 Windows: 0Jan 1 Linux: 0 Mac: 0 Windows: 0Dec 31 Linux: 0 Mac: 0 Windows: 0Dec 30 Linux: 0 Mac: 0 Windows: 0Dec 29 Linux: 0 Mac: 0 Windows: 0Dec 28 Linux: 0 Mac: 0 Windows: 0Dec 27 Linux: 0 Mac: 0 Windows: 0Dec 26 Linux: 0 Mac: 0 Windows: 0Dec 25 Linux: 0 Mac: 0 Windows: 0Dec 24 Linux: 0 Mac: 1 Windows: 2Dec 23 Linux: 0 Mac: 0 Windows: 0Dec 22 Linux: 0 Mac: 0 Windows: 0Dec 21 Linux: 0 Mac: 0 Windows: 0Dec 20 Linux: 0 Mac: 0 Windows: 0Dec 19 Linux: 0 Mac: 0 Windows: 0Dec 18 Linux: 0 Mac: 1 Windows: 0Dec 17 Linux: 0 Mac: 0 Windows: 0Dec 16 Linux: 0 Mac: 0 Windows: 0Dec 15 Linux: 0 Mac: 0 Windows: 1Dec 14 Linux: 0 Mac: 0 Windows: 0Dec 13 Linux: 0 Mac: 0 Windows: 0Dec 12 Linux: 0 Mac: 0 Windows: 0Dec 11 Linux: 0 Mac: 0 Windows: 0Dec 10 Linux: 0 Mac: 0 Windows: 0Dec 9 Linux: 0 Mac: 0 Windows: 0Dec 8 Linux: 0 Mac: 0 Windows: 0Dec 7 Linux: 0 Mac: 0 Windows: 0Dec 6 Linux: 1 Mac: 0 Windows: 0Dec 5 Linux: 0 Mac: 1 Windows: 0Dec 4 Linux: 0 Mac: 0 Windows: 0Dec 3 Linux: 0 Mac: 0 Windows: 0Dec 2 Linux: 0 Mac: 0 Windows: 0Dec 1 Linux: 0 Mac: 0 Windows: 0Nov 30 Linux: 0 Mac: 0 Windows: 0Nov 29 Linux: 0 Mac: 0 Windows: 0Nov 28 Linux: 0 Mac: 0 Windows: 2Nov 27 Linux: 0 Mac: 0 Windows: 0Nov 26 Linux: 0 Mac: 0 Windows: 0Nov 25 Linux: 0 Mac: 0 Windows: 0Nov 24 Linux: 0 Mac: 0 Windows: 0Nov 23 Linux: 0 Mac: 0 Windows: 0Jan 6 Linux: 0 Mac: 0 Windows: 0Jan 5 Linux: 0 Mac: 0 Windows: 0Jan 4 Linux: 0 Mac: 0 Windows: 0Jan 3 Linux: 0 Mac: 0 Windows: 0Jan 2 Linux: 0 Mac: 0 Windows: 0Jan 1 Linux: 0 Mac: 0 Windows: 0Dec 31 Linux: 0 Mac: 0 Windows: 0Dec 30 Linux: 0 Mac: 0 Windows: 0Dec 29 Linux: 0 Mac: 0 Windows: 0Dec 28 Linux: 0 Mac: 0 Windows: 0Dec 27 Linux: 0 Mac: 0 Windows: 0Dec 26 Linux: 0 Mac: 0 Windows: 0Dec 25 Linux: 0 Mac: 0 Windows: 0Dec 24 Linux: 0 Mac: 1 Windows: 2Dec 23 Linux: 0 Mac: 0 Windows: 0Dec 22 Linux: 0 Mac: 0 Windows: 0Dec 21 Linux: 0 Mac: 0 Windows: 0Dec 20 Linux: 0 Mac: 0 Windows: 0Dec 19 Linux: 0 Mac: 0 Windows: 0Dec 18 Linux: 0 Mac: 1 Windows: 0Dec 17 Linux: 0 Mac: 0 Windows: 0Dec 16 Linux: 0 Mac: 0 Windows: 0Dec 15 Linux: 0 Mac: 0 Windows: 1Dec 14 Linux: 0 Mac: 0 Windows: 0Dec 13 Linux: 0 Mac: 0 Windows: 0Dec 12 Linux: 0 Mac: 0 Windows: 0Dec 11 Linux: 0 Mac: 0 Windows: 0Dec 10 Linux: 0 Mac: 0 Windows: 0Dec 9 Linux: 0 Mac: 0 Windows: 0Dec 8 Linux: 0 Mac: 0 Windows: 0Dec 7 Linux: 0 Mac: 0 Windows: 0Dec 6 Linux: 1 Mac: 0 Windows: 0Dec 5 Linux: 0 Mac: 1 Windows: 0Dec 4 Linux: 0 Mac: 0 Windows: 0Dec 3 Linux: 0 Mac: 0 Windows: 0Dec 2 Linux: 0 Mac: 0 Windows: 0Dec 1 Linux: 0 Mac: 0 Windows: 0Nov 30 Linux: 0 Mac: 0 Windows: 0Nov 29 Linux: 0 Mac: 0 Windows: 0Nov 28 Linux: 0 Mac: 0 Windows: 2Nov 27 Linux: 0 Mac: 0 Windows: 0Nov 26 Linux: 0 Mac: 0 Windows: 0Nov 25 Linux: 0 Mac: 0 Windows: 0Nov 24 Linux: 0 Mac: 0 Windows: 0Nov 23 Linux: 0 Mac: 0 Windows: 0Jan 6 Linux: 0 Mac: 0 Windows: 0Jan 5 Linux: 0 Mac: 0 Windows: 0Jan 4 Linux: 0 Mac: 0 Windows: 0Jan 3 Linux: 0 Mac: 0 Windows: 0Jan 2 Linux: 0 Mac: 0 Windows: 0Jan 1 Linux: 0 Mac: 0 Windows: 0Dec 31 Linux: 0 Mac: 0 Windows: 0Dec 30 Linux: 0 Mac: 0 Windows: 0Dec 29 Linux: 0 Mac: 0 Windows: 0Dec 28 Linux: 0 Mac: 0 Windows: 0Dec 27 Linux: 0 Mac: 0 Windows: 0Dec 26 Linux: 0 Mac: 0 Windows: 0Dec 25 Linux: 0 Mac: 0 Windows: 0Dec 24 Linux: 0 Mac: 1 Windows: 2Dec 23 Linux: 0 Mac: 0 Windows: 0Dec 22 Linux: 0 Mac: 0 Windows: 0Dec 21 Linux: 0 Mac: 0 Windows: 0Dec 20 Linux: 0 Mac: 0 Windows: 0Dec 19 Linux: 0 Mac: 0 Windows: 0Dec 18 Linux: 0 Mac: 1 Windows: 0Dec 17 Linux: 0 Mac: 0 Windows: 0Dec 16 Linux: 0 Mac: 0 Windows: 0Dec 15 Linux: 0 Mac: 0 Windows: 1Dec 14 Linux: 0 Mac: 0 Windows: 0Dec 13 Linux: 0 Mac: 0 Windows: 0Dec 12 Linux: 0 Mac: 0 Windows: 0Dec 11 Linux: 0 Mac: 0 Windows: 0Dec 10 Linux: 0 Mac: 0 Windows: 0Dec 9 Linux: 0 Mac: 0 Windows: 0Dec 8 Linux: 0 Mac: 0 Windows: 0Dec 7 Linux: 0 Mac: 0 Windows: 0Dec 6 Linux: 1 Mac: 0 Windows: 0Dec 5 Linux: 0 Mac: 1 Windows: 0Dec 4 Linux: 0 Mac: 0 Windows: 0Dec 3 Linux: 0 Mac: 0 Windows: 0Dec 2 Linux: 0 Mac: 0 Windows: 0Dec 1 Linux: 0 Mac: 0 Windows: 0Nov 30 Linux: 0 Mac: 0 Windows: 0Nov 29 Linux: 0 Mac: 0 Windows: 0Nov 28 Linux: 0 Mac: 0 Windows: 2Nov 27 Linux: 0 Mac: 0 Windows: 0Nov 26 Linux: 0 Mac: 0 Windows: 0Nov 25 Linux: 0 Mac: 0 Windows: 0Nov 24 Linux: 0 Mac: 0 Windows: 0Nov 23 Linux: 0 Mac: 0 Windows: 0

Readme

Source
raw.​githubusercontent.​com

Installation

Download the zip-archive and move it into Sublime Text's config folder.

wget https://github.com/SiebelsTim/hack-sublime/raw/master/Hack.sublime-package
mv Hack.sublime-package ~/.config/sublime-text-3/Installed\ Packages/Hack.sublime-package

Change the folder to sublime-text-2 if you use Sublime Text 2

How to use

The typechecker is triggered on saving files. The files need to begin with <?. So both <?php and <?hh will work. The filetype is ignored.

Autocompletion is triggered on your keyboard shortcut. Look it up under Preferences -> Key Bindings and search for auto_complete.

Windows

If you use Windows you can install a virtual machine running linux. This plugin will then log into ssh and run hh_client remotely. You'll have to have your ssh credentials setup so you don't have to enter your password.

This plugin then defines three new settings. - hack_ssh_enable - enables ssh support - hack_ssh_folder - the remote folder to run hh_client on - hack_ssh_address - user@ipaddress

The plugin will fall back to locally executing hh_client if one of these settings is missing.

Example Preferences.sublime-settings

To edit your settings go to Preferences -> Settings - User

{
  "hack_ssh_folder": "/home/tim/project/",
  "hack_ssh_address": "tim@10.0.0.1",
  "hack_ssh_enable": true
}