sublime-tern icon indicating copy to clipboard operation
sublime-tern copied to clipboard

support sublime text 3

Open santagada opened this issue 12 years ago • 8 comments

It appear that it doesn't support sublime text 3 yet, is there any chance of it happening?

santagada avatar Aug 13 '13 14:08 santagada

:+1:

janhancic avatar Oct 28 '13 10:10 janhancic

ST3 is supported from the very first release

sergeche avatar Oct 28 '13 10:10 sergeche

But you can't install it trough package control as it's marked as ST2 only. I'll try installing it manually.

janhancic avatar Oct 28 '13 10:10 janhancic

It was mistakenly marked as ST2-only plugin. I’ve sent PR to make it appear for ST3 too

sergeche avatar Oct 28 '13 10:10 sergeche

I can install it manually. But it's unusable, it locks up every time I enter something. Granted we have a fairly large codebase so I guess it's not ready yet for big projects. Shame :/

janhancic avatar Oct 28 '13 10:10 janhancic

http://emmet.io/blog/sublime-tern/

sergeche avatar Oct 28 '13 10:10 sergeche

I've read that and only included the files I actually want. Still no dice I'm afraid.

janhancic avatar Oct 28 '13 10:10 janhancic

The basic functionality works fine in SL3 for me but it doesn't integrate well with new SL3 features. SL3 has a built in jump stack as well as go to definition support. So I have to rebind by go to definition button ("goto_definition") to use the "tern_jump_to_def" command instead. When I use "tern_jump_to_def" the sublime.active_window().open_file doesn't record the current cursor position before jumping for some reason so the SL3 built in jump stack doesn't work. This could be a bug in SL3 though. This means that I have to use "tern_jump_back" instead which works okay but I can only go back from tern definition jumps and not any jump. Also there is no jump forward.

I also had to patch TernJumpToDef() to remove that annoying error message that pops up when the definition doesn't exist.

hnsl avatar Jul 13 '14 15:07 hnsl