Jump to content

typescript and autocomplete in sublimetext, help needed


nuvorm
 Share

Recommended Posts

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

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

solved this by:

removed the typescript folder in packages. which was created

using 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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...