nuvorm Posted May 10, 2013 Share Posted May 10, 2013 Hello, Is there any guideline on how to enable typescript autocomplete in sublimetext on osx (10.7.5)? currently i have two files- Main.ts- Test.ts The test class has a public function doTest(); With this setup i should be able to get codecompletion (if i understood correct) in the Main.ts file when i set a reference path at the top of Main.ts to:/// <reference path="Test.ts" /> in the constructor in Main.ts var test:Test=new Test()test.<--- no autocomplete here (well sort of..), only functions in the Main.ts are shown. Am i missing some very crucial setup, plugin or path settings? Kind regards, Wouter Quote Link to comment Share on other sites More sharing options...
Jorasso Posted May 10, 2013 Share Posted May 10, 2013 Have you installed this plugin?https://github.com/raph-amiard/sublime-typescript Quote Link to comment Share on other sites More sharing options...
nuvorm Posted May 10, 2013 Author Share Posted May 10, 2013 yes i did, removed the package and installed it again. sublimetext gives me a message"the node executable hasnt been found, you might want to set it in your typescript settings by ading the node_path key" i might have ignored that at first. looking in to setting the node_path, i'll update on this. Quote Link to comment Share on other sites More sharing options...
nuvorm Posted May 10, 2013 Author Share Posted May 10, 2013 added "node_path": "/usr/local/bin/node" to typescript.sublime-settings restarted sublimetext plugin is not in the expected directory. Quote Link to comment Share on other sites More sharing options...
nuvorm Posted May 13, 2013 Author Share Posted May 13, 2013 solved this by:removed the typescript folder in packages. which was createdusing the sublimetext package control to load the typescript plugin.(found it here: http://wbond.net/sublime_packages/package_control) cloned git with terminal into sublime text 2 packages folder:$ git clone --recursive https://github.com/raph-amiard/sublime-typescript added the node_path to sublime-settings"node_path": "/usr/local/bin/node" added PATH variable to .profile (within HOME folder)export PATH="/usr/local/bin/node" (how to show invisible files: http://www.mikesel.info/show-hidden-files-mac-os-x-10-7-lion/) plugin is loading now, fingers crossed. MIght be usefull for someone else. Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted May 14, 2013 Share Posted May 14, 2013 I guess the plugin repo path is: https://github.com/raph-amiard/sublime-typescript Quote Link to comment Share on other sites More sharing options...
nuvorm Posted May 14, 2013 Author Share Posted May 14, 2013 yes indeed, my bad. corrected Quote Link to comment Share on other sites More sharing options...
nuvorm Posted May 15, 2013 Author Share Posted May 15, 2013 still no luck. i need to restart sublimetext in order to get the sublime-typescript plugin pick up the functions added to a class.someone experience the same problem? Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted May 15, 2013 Share Posted May 15, 2013 My problem is the plugin always gives the information "Loading typescript plugin" and when I type a dot after any words it takes few seconds to show me the autocomplete list. I am considering using the plugin provided by package manager which only features syntax highlighting. Quote Link to comment Share on other sites More sharing options...
nuvorm Posted May 15, 2013 Author Share Posted May 15, 2013 might be a good idea. I also posted an issue on github. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.