Open farhan687 opened 8 years ago
It's working on mine (same version). What errors are you seeing?
I'm also using build 3103 and my paste is not working. There may be other things as well that are not working, but this Paste issue is quite annoying as I cannot easily move code blocks here and there and is hampering my development workflow. Logged an issue #453
I'm also having problems with TypeScript plugin 0.1.12 on ST3 build 3103. My issues are not related to copy-paste, but general TypeScript usability.
Colleagues on my team using 0.1.12 are all experiencing the same issues. Those still using 0.1.11 have no problems.
All systems involved are running Sublime Text 3 build 3101 on Mac OS X.
@bloveridge Do you have any error messages on your sublime console? It seems that other people are having this issue too, though I couldn't repro this issue on my mac mini. If you didn't see any error message, could you do:
LOG_CONSOLE_LEVEL
to logging.DEBUG
In addition, what is your node version?
Thanks!
Have you guys tried the nightly drops? I am also using v0.1.12 of the plugin but the nightlies for the ts compiler (v1.9.0 something). So far no deal-breaking issues. Worst case, you might want to just copy the tsc.js, tssserver.js, lib.d.ts, and lib.es6.d.ts from the npm nightlies over to the sublime ts plugin folder inside of the [tsserver] directory. Upgrade nodejs to latest also. Referencing nightlies.
@zhengbli Node version=4.2.1; TSC version=1.8.7.
Console output from ST3 startup opening a TS file:
reloading plugin TypeScript.main
2016-03-04 22:00:54,952: 140735218975488: INFO: Logging configured to log to file: /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/typescript/TS.log
[logger] INFO Logging configured to log to file: /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/typescript/TS.log
2016-03-04 22:00:54,976: 140735218975488: WARNING: TypeScript plugin initialized.
[__init__] WARNING TypeScript plugin initialized.
plugins loaded
[listeners] DEBUG on_text_command
Packages/TypeScript/popup.html
[popup_manager] INFO Popup resource path: Packages/TypeScript/popup.html
[popup_manager] INFO Loaded tooltip template from Packages/TypeScript/popup.html
Path of tsserver.js: /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
Path of tsc.js: /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsc.js
Trying to spawn node executable from: /usr/local/bin/node
[node_client] DEBUG opening /usr/local/bin/node /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
[node_client] DEBUG server proc <subprocess.Popen object at 0x10ab0eb10>
[node_client] DEBUG starting reader thread
[node_client] DEBUG Posting command: {"arguments": {"formatOptions": {"tabSize": 4, "convertTabsToSpaces": true, "indentSize": 4}, "hostInfo": "Sublime Text version 3103", "file": null}, "command": "configure", "seq": 1, "type": "request"}
[node_client] DEBUG Posting command: {"arguments": {"file": "path to one of my files here"}, "command": "open", "seq": 2, "type": "request"}
[listeners] DEBUG on_text_command_with_info
[listeners] DEBUG on_text_command
[listeners] DEBUG on_text_command_with_info
[listeners] DEBUG on_post_text_command
[listeners] DEBUG on_post_text_command
[main] DEBUG plugin_loaded started
lang_service_enabled: True
Path of tsserver.js: /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
Path of tsc.js: /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsc.js
Trying to spawn node executable from: /usr/local/bin/node
[node_client] DEBUG opening /usr/local/bin/node /Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
[node_client] DEBUG server proc <subprocess.Popen object at 0x10ab2ad90>
[node_client] DEBUG starting reader thread
[node_client] DEBUG Posting command: {"arguments": {"formatOptions": {"tabSize": 4, "convertTabsToSpaces": true, "indentSize": 4}, "hostInfo": "Sublime Text version 3103", "file": null}, "command": "configure", "seq": 1, "type": "request"}
ref view not found
After setting the logging level to logging.DEBUG
and going to type "a.substr", here is a chunk of the console output:
2016-03-04 22:09:24,610: 140735218975488: DEBUG: on_text_command
[listeners] DEBUG on_text_command
2016-03-04 22:09:24,611: 140735218975488: DEBUG: on_text_command_with_info
[listeners] DEBUG on_text_command_with_info
2016-03-04 22:09:24,617: 140735218975488: DEBUG: on_activated
[listeners] DEBUG on_activated
2016-03-04 22:09:24,618: 140735218975488: DEBUG: on_activated_with_info
[listeners] DEBUG on_activated_with_info
2016-03-04 22:09:24,619: 140735218975488: DEBUG: on_selection_modified
[listeners] DEBUG on_selection_modified
2016-03-04 22:09:24,619: 140735218975488: DEBUG: on_selection_modified_with_info
[listeners] DEBUG on_selection_modified_with_info
2016-03-04 22:09:24,622: 140735218975488: DEBUG: on_post_text_command
[listeners] DEBUG on_post_text_command
2016-03-04 22:09:24,742: 140735218975488: DEBUG: on_selection_modified
[listeners] DEBUG on_selection_modified
2016-03-04 22:09:24,743: 140735218975488: DEBUG: on_selection_modified_with_info
[listeners] DEBUG on_selection_modified_with_info
2016-03-04 22:09:24,819: 140735218975488: DEBUG: on_idle
[idle] DEBUG on_idle
2016-03-04 22:09:24,820: 140735218975488: DEBUG: Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 62}
[node_client] DEBUG Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 62}
2016-03-04 22:09:24,845: 140735218975488: DEBUG: on_selection_idle
[idle] DEBUG on_selection_idle
2016-03-04 22:09:24,847: 140735218975488: DEBUG: Posting command: {"command": "quickinfo", "type": "request", "arguments": {"line": 221, "offset": 37, "file": "PATH TO MY FILE HERE"}, "seq": 63}
[node_client] DEBUG Posting command: {"command": "quickinfo", "type": "request", "arguments": {"line": 221, "offset": 37, "file": "PATH TO MY FILE HERE"}, "seq": 63}
2016-03-04 22:09:24,848: 140735218975488: DEBUG: Posting command: {"command": "documentHighlights", "type": "request", "arguments": {"line": 221, "offset": 37, "filesToSearch": ["PATH TO MY FILE HERE"], "file": "PATH TO MY FILE HERE"}, "seq": 64}
[node_client] DEBUG Posting command: {"command": "documentHighlights", "type": "request", "arguments": {"line": 221, "offset": 37, "filesToSearch": ["PATH TO MY FILE HERE"], "file": "PATH TO MY FILE HERE"}, "seq": 64}
2016-03-04 22:09:24,847: 4368465920: DEBUG: Read body of length: 133
[node_client] DEBUG Read body of length: 133
2016-03-04 22:09:24,848: 4368465920: DEBUG: Body sequence#: 63
[node_client] DEBUG Body sequence#: 63
2016-03-04 22:09:24,849: 4368465920: DEBUG: Read body of length: 142
[node_client] DEBUG Read body of length: 142
2016-03-04 22:09:24,849: 4368465920: DEBUG: Body sequence#: 64
[node_client] DEBUG Body sequence#: 64
2016-03-04 22:09:25,646: 140735218975488: DEBUG: on_window_command
[listeners] DEBUG on_window_command
2016-03-04 22:09:34,773: 140735218975488: DEBUG: on_window_command
[listeners] DEBUG on_window_command
2016-03-04 22:09:34,781: 140735218975488: DEBUG: on_text_command
[listeners] DEBUG on_text_command
2016-03-04 22:09:34,781: 140735218975488: DEBUG: on_text_command_with_info
[listeners] DEBUG on_text_command_with_info
2016-03-04 22:09:34,781: 140735218975488: DEBUG: on_post_text_command
[listeners] DEBUG on_post_text_command
2016-03-04 22:09:34,782: 140735218975488: DEBUG: on_text_command
[listeners] DEBUG on_text_command
2016-03-04 22:09:34,782: 140735218975488: DEBUG: on_text_command_with_info
[listeners] DEBUG on_text_command_with_info
2016-03-04 22:09:34,783: 140735218975488: DEBUG: on_text_command
[listeners] DEBUG on_text_command
2016-03-04 22:09:34,783: 140735218975488: DEBUG: on_text_command_with_info
[listeners] DEBUG on_text_command_with_info
2016-03-04 22:09:34,785: 140735218975488: DEBUG: on_post_text_command
[listeners] DEBUG on_post_text_command
2016-03-04 22:09:34,785: 140735218975488: DEBUG: on_modified
[listeners] DEBUG on_modified
2016-03-04 22:09:34,786: 140735218975488: DEBUG: on_modified_with_info
[listeners] DEBUG on_modified_with_info
2016-03-04 22:09:34,786: 140735218975488: DEBUG: Format on key
[format] DEBUG Format on key
2016-03-04 22:09:34,787: 140735218975488: DEBUG: last_command:_vi_o, args:{'count': 1, 'mode': 'mode_internal_normal'}
[format] DEBUG last_command:_vi_o, args:{'count': 1, 'mode': 'mode_internal_normal'}
2016-03-04 22:09:34,787: 140735218975488: DEBUG: redo_command:
[format] DEBUG redo_command:
2016-03-04 22:09:34,787: 140735218975488: DEBUG: post_on_modified
[listeners] DEBUG post_on_modified
2016-03-04 22:09:34,787: 140735218975488: DEBUG: on_selection_modified
[listeners] DEBUG on_selection_modified
2016-03-04 22:09:34,788: 140735218975488: DEBUG: on_selection_modified_with_info
[listeners] DEBUG on_selection_modified_with_info
2016-03-04 22:09:34,788: 140735218975488: DEBUG: on_post_text_command
[listeners] DEBUG on_post_text_command
2016-03-04 22:09:34,788: 140735218975488: DEBUG: on_post_text_command_with_info
[listeners] DEBUG on_post_text_command_with_info
_vi_o
2016-03-04 22:09:34,789: 140735218975488: DEBUG: Posting command: {"command": "reload", "type": "request", "arguments": {"file": "PATH TO MY FILE HERE", "tmpfile": "/Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/.tmpbuf8"}, "seq": 65}
[node_client] DEBUG Posting command: {"command": "reload", "type": "request", "arguments": {"file": "PATH TO MY FILE HERE", "tmpfile": "/Users/ben/Library/Application Support/Sublime Text 3/Packages/TypeScript/.tmpbuf8"}, "seq": 65}
2016-03-04 22:09:34,888: 140735218975488: DEBUG: on_idle
[idle] DEBUG on_idle
2016-03-04 22:09:34,890: 140735218975488: DEBUG: Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 66}
[node_client] DEBUG Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 66}
2016-03-04 22:09:35,825: 140735218975488: DEBUG: on_window_command
[listeners] DEBUG on_window_command
2016-03-04 22:09:36,039: 140735218975488: DEBUG: on_selection_idle
[idle] DEBUG on_selection_idle
2016-03-04 22:09:36,041: 140735218975488: DEBUG: Posting command: {"command": "documentHighlights", "type": "request", "arguments": {"line": 222, "offset": 25, "filesToSearch": ["PATH TO MY FILE HERE"], "file": "PATH TO MY FILE HERE"}, "seq": 67}
[node_client] DEBUG Posting command: {"command": "documentHighlights", "type": "request", "arguments": {"line": 222, "offset": 25, "filesToSearch": ["PATH TO MY FILE HERE"], "file": "PATH TO MY FILE HERE"}, "seq": 67}
2016-03-04 22:09:36,042: 4368465920: DEBUG: Read body of length: 142
[node_client] DEBUG Read body of length: 142
2016-03-04 22:09:36,042: 4368465920: DEBUG: Body sequence#: 67
[node_client] DEBUG Body sequence#: 67
2016-03-04 22:09:36,157: 140735218975488: DEBUG: on_query_context
[listeners] DEBUG on_query_context
2016-03-04 22:09:36,158: 140735218975488: DEBUG: on_query_context
[listeners] DEBUG on_query_context
2016-03-04 22:09:36,159: 140735218975488: DEBUG: on_query_context
[listeners] DEBUG on_query_context
2016-03-04 22:09:36,160: 140735218975488: DEBUG: on_modified
[listeners] DEBUG on_modified
2016-03-04 22:09:36,160: 140735218975488: DEBUG: on_modified_with_info
[listeners] DEBUG on_modified_with_info
2016-03-04 22:09:36,161: 140735218975488: DEBUG: Posting command: {"command": "change", "type": "request", "arguments": {"line": 222, "offset": 25, "endLine": 222, "file": "PATH TO MY FILE HERE", "insertString": "a", "endOffset": 25}, "seq": 68}
[node_client] DEBUG Posting command: {"command": "change", "type": "request", "arguments": {"line": 222, "offset": 25, "endLine": 222, "file": "PATH TO MY FILE HERE", "insertString": "a", "endOffset": 25}, "seq": 68}
2016-03-04 22:09:36,161: 140735218975488: DEBUG: Format on key
[format] DEBUG Format on key
2016-03-04 22:09:36,161: 140735218975488: DEBUG: last_command:insert, args:{'characters': 'a'}
[format] DEBUG last_command:insert, args:{'characters': 'a'}
2016-03-04 22:09:36,161: 140735218975488: DEBUG: redo_command:
[format] DEBUG redo_command:
2016-03-04 22:09:36,162: 140735218975488: DEBUG: post_on_modified
[listeners] DEBUG post_on_modified
2016-03-04 22:09:36,162: 140735218975488: DEBUG: on_selection_modified
[listeners] DEBUG on_selection_modified
2016-03-04 22:09:36,163: 140735218975488: DEBUG: on_selection_modified_with_info
[listeners] DEBUG on_selection_modified_with_info
2016-03-04 22:09:36,216: 140735218975488: DEBUG: on_query_completions
[listeners] DEBUG on_query_completions
2016-03-04 22:09:36,217: 140735218975488: DEBUG: Posting command: {"command": "completions", "type": "request", "arguments": {"line": 222, "offset": 26, "file": "PATH TO MY FILE HERE", "prefix": "a"}, "seq": 69}
[node_client] DEBUG Posting command: {"command": "completions", "type": "request", "arguments": {"line": 222, "offset": 26, "file": "PATH TO MY FILE HERE", "prefix": "a"}, "seq": 69}
2016-03-04 22:09:36,219: 4368465920: DEBUG: Read body of length: 135
[node_client] DEBUG Read body of length: 135
2016-03-04 22:09:36,219: 4368465920: DEBUG: Body sequence#: 69
[node_client] DEBUG Body sequence#: 69
2016-03-04 22:09:36,263: 140735218975488: DEBUG: on_idle
[idle] DEBUG on_idle
2016-03-04 22:09:36,264: 140735218975488: DEBUG: Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 70}
[node_client] DEBUG Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 70}
2016-03-04 22:09:36,700: 140735218975488: DEBUG: on_query_context
[listeners] DEBUG on_query_context
2016-03-04 22:09:36,701: 140735218975488: DEBUG: on_modified
[listeners] DEBUG on_modified
2016-03-04 22:09:36,702: 140735218975488: DEBUG: on_modified_with_info
[listeners] DEBUG on_modified_with_info
2016-03-04 22:09:36,703: 140735218975488: DEBUG: Posting command: {"command": "change", "type": "request", "arguments": {"line": 222, "offset": 26, "endLine": 222, "file": "PATH TO MY FILE HERE", "insertString": ".", "endOffset": 26}, "seq": 71}
[node_client] DEBUG Posting command: {"command": "change", "type": "request", "arguments": {"line": 222, "offset": 26, "endLine": 222, "file": "PATH TO MY FILE HERE", "insertString": ".", "endOffset": 26}, "seq": 71}
2016-03-04 22:09:36,703: 140735218975488: DEBUG: Format on key
[format] DEBUG Format on key
2016-03-04 22:09:36,703: 140735218975488: DEBUG: last_command:insert, args:{'characters': 'a.'}
[format] DEBUG last_command:insert, args:{'characters': 'a.'}
2016-03-04 22:09:36,703: 140735218975488: DEBUG: redo_command:
[format] DEBUG redo_command:
2016-03-04 22:09:36,703: 140735218975488: DEBUG: post_on_modified
[listeners] DEBUG post_on_modified
2016-03-04 22:09:36,704: 140735218975488: DEBUG: on_selection_modified
[listeners] DEBUG on_selection_modified
2016-03-04 22:09:36,705: 140735218975488: DEBUG: on_selection_modified_with_info
[listeners] DEBUG on_selection_modified_with_info
2016-03-04 22:09:36,757: 140735218975488: DEBUG: on_query_completions
[listeners] DEBUG on_query_completions
2016-03-04 22:09:36,759: 140735218975488: DEBUG: Posting command: {"command": "completions", "type": "request", "arguments": {"line": 222, "offset": 27, "file": "PATH TO MY FILE HERE", "prefix": ""}, "seq": 72}
[node_client] DEBUG Posting command: {"command": "completions", "type": "request", "arguments": {"line": 222, "offset": 27, "file": "PATH TO MY FILE HERE", "prefix": ""}, "seq": 72}
2016-03-04 22:09:36,759: 4368465920: DEBUG: Read body of length: 135
[node_client] DEBUG Read body of length: 135
2016-03-04 22:09:36,760: 4368465920: DEBUG: Body sequence#: 72
[node_client] DEBUG Body sequence#: 72
2016-03-04 22:09:36,806: 140735218975488: DEBUG: on_idle
[idle] DEBUG on_idle
2016-03-04 22:09:36,807: 140735218975488: DEBUG: Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 73}
[node_client] DEBUG Posting command: {"command": "geterr", "type": "request", "arguments": {"delay": 500, "files": ["PATH TO MY FILE HERE"]}, "seq": 73}
2016-03-04 22:09:37,727: 140735218975488: DEBUG: on_window_command
[listeners] DEBUG on_window_command
2016-03-04 22:09:37,955: 140735218975488: DEBUG: on_selection_idle
Haven't tried nightlies, but will do so.
Grabbed the nightly tsserver.js, tsc.js, lib.es6.d.ts, and lib.d.ts. Replacing with those had no effect.
I didn't see any exception / error happening from the log file. However, it is weird that every log message was repeated once by some other plugin. I guess maybe other plugin was interfering with TypeScript plugin. What other plugins do you have?
Of the installed packages I have, I assumed Vintageous would be most likely to do as you suggest. But I disabled Vintageous and its related packages and the problem didn't go away. So here is my complete Package Control.sublime-settings
file.
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Angular Material Snippets",
"AngularJS",
"Block Cursor Everywhere",
"Color Highlighter",
"Copy to HipChat",
"DocBlockr",
"Dockerfile Syntax Highlighting",
"EJS",
"Emmet",
"Git",
"Git Config",
"GitGutter",
"Handlebars",
"Jasmine JS",
"JSHint Gutter",
"Less Tabs",
"MarkdownEditing",
"Origami",
"Package Control",
"RailsCasts Colour Scheme",
"Railscasts Extended",
"Sass",
"SideBarEnhancements",
"Theme - Soda",
"Theme - SoDaReloaded",
"TypeScript",
"Vintageous",
"Vintageous - Region To Selection",
"VintageousPluginSurround"
]
}
I also have that problem. Paste also doesn't work for me, but entire plugin goes bad, there are lags and warps.
What I see in the console:
http://paste.ubuntu.com/15333440/
edit: pasting with shift + insert works.
@kichooo Thanks for your log information. It looks like your issue is similar with https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/361. Can you try set node_path
in the settings to make sure the node executable can be found correctly? It should be set to the path of the node
executable file.
@zhengbli Thank you for the support.
looks like something helped here, probably installing typscript with -g option and restarting sublime completely.
After some more testing it sometimes works, sometimes errors out. Random behaviour.
Not surprisingly, the commit that causes the plugin to stop working for me is 90ac22ba1c588c463d3cd2acbd7dd9d30e2003b7, where tsserver was updated to 1.8. What other information can I provide to help debug this?
@bloveridge is that happening for all projects, or a specific project? if a specific project, is there a chance you can share the sources?
Plugin version: 0.1.12 Sublime Text 3 version: 3103 OS: Windows 10 Home
I have the same problem as @kichooo, consistently lagging on input and even text selection. Sublime will proceed to crash if I continue to input characters while it is lagging.
With logging set to DEBUG
I have the following on startup
DPI scale: 1 startup, version: 3103 windows x64 channel: stable executable: /C/Program Files/Sublime Text 3/sublime_text.exe working dir: /C/Program Files/Sublime Text 3 packages path: /C/Users/myname/AppData/Roaming/Sublime Text 3/Packages state path: /C/Users/myname/AppData/Roaming/Sublime Text 3/Local zip path: /C/Program Files/Sublime Text 3/Packages zip path: /C/Users/myname/AppData/Roaming/Sublime Text 3/Installed Packages ignored_packages: ["Emmet", "Seti_UI", "Themr", "Vintage"] pre session restore time: 0.0649839 startup time: 0.0839839 first paint time: 0.0869839 reloading plugin Default.block reloading plugin Default.comment reloading plugin Default.convert_syntax reloading plugin Default.copy_path reloading plugin Default.delete_word reloading plugin Default.detect_indentation reloading plugin Default.duplicate_line reloading plugin Default.echo reloading plugin Default.exec reloading plugin Default.fold reloading plugin Default.font reloading plugin Default.goto_line reloading plugin Default.history_list reloading plugin Default.indentation reloading plugin Default.kill_ring reloading plugin Default.mark reloading plugin Default.new_templates reloading plugin Default.open_context_url reloading plugin Default.open_file_settings reloading plugin Default.open_in_browser reloading plugin Default.pane reloading plugin Default.paragraph reloading plugin Default.paste_from_history reloading plugin Default.profile reloading plugin Default.profile_syntax_definition reloading plugin Default.quick_panel reloading plugin Default.run_syntax_tests reloading plugin Default.save_on_focus_lost reloading plugin Default.scroll reloading plugin Default.set_unsaved_view_name reloading plugin Default.side_bar reloading plugin Default.sort reloading plugin Default.swap_line reloading plugin Default.switch_file reloading plugin Default.symbol reloading plugin Default.transform reloading plugin Default.transpose reloading plugin Default.trim_trailing_white_space reloading plugin CSS.css_completions reloading plugin Diff.diff reloading plugin HTML.encode_html_entities reloading plugin HTML.html_completions reloading plugin Python.syntax_test_python reloading plugin 0_package_control_loader.00-package_control reloading plugin 0_package_control_loader.02-bz2 reloading plugin AutoFileName.autofilename reloading plugin AutoFileName.getimageinfo reloading plugin Package Control.1_reloader reloading plugin Package Control.2_bootstrap reloading plugin Package Control.Package Control reloading plugin Schemr.schemr reloading plugin JSHint Gutter.JSHint reloading plugin TypeScript.main 2016-03-16 09:16:27,121: 6876: INFO: Logging configured to log to file: C:\Users\myname\AppData\Roaming\Sublime Text 3\Packages\TypeScript\typescript\TS.log 2016-03-16 09:16:27,155: 6876: WARNING: TypeScript plugin initialized. plugins loaded 2016-03-16 09:16:27,156: 6876: DEBUG: plugin_loaded started lang_service_enabled: True Path of tsserver.js: C:\Users\myname\AppData\Roaming\Sublime Text 3\Packages\TypeScript\tsserver\tsserver.js Path of tsc.js: C:\Users\myname\AppData\Roaming\Sublime Text 3\Packages\TypeScript\tsserver\tsc.js Trying to spawn node executable from: node 2016-03-16 09:16:27,158: 6876: DEBUG: server proc <subprocess.Popen object at 0x00000162631A70B8> 2016-03-16 09:16:27,158: 6876: DEBUG: starting reader thread 2016-03-16 09:16:27,158: 6876: DEBUG: Posting command: {"arguments": {"formatOptions": {"tabSize": 4, "convertTabsToSpaces": false, "indentSize": 4}, "file": null, "hostInfo": "Sublime Text version 3103"}, "command": "configure", "type": "request", "seq": 1} ref view not found 2016-03-16 09:16:27,159: 6876: DEBUG: plugin_loaded ended 2016-03-16 09:16:27,161: 6876: DEBUG: on_activated 2016-03-16 09:16:27,389: 4168: DEBUG: Read body of length: 81 2016-03-16 09:16:27,389: 4168: DEBUG: Body sequence#: 1 Package Control: Skipping automatic upgrade, last run at 2016-03-16 09:10:42, next run at 2016-03-16 10:10:42 or after 2016-03-16 09:16:29,555: 6876: DEBUG: on_window_command 2016-03-16 09:16:29,556: 6876: DEBUG: on_activated 2016-03-16 09:16:29,557: 6876: DEBUG: on_activated_special_view
This is how sublime behaves when I input text. The lag you see at the start is me having typed in alertsS
but the characters haven't yet been rendered on screen. You'll also notice the delay for autocomplete and the popup.
I have tried installing typescript globally and manually setting the node_path
but neither make a difference. I have also tried disabling every package but the Typescript one, also to no avail. This is making development nearly impossible.
On input of the text in the gif I get the following log
EDIT: Whether this is relevant or not, this issue started only yesterday.
EDIT2: With a fresh install of sublime text with only the Typescript plugin enabled this problem still exists
@garethdn can you share a sample code base that can repro the problem? Does the problem occur in a fresh session, or only occur after editing for a while? And did you do anything different "yesterday", like update node, change typescript_sdk location etc?
@bloveridge Hey, I took another look at the logging messages you posted earlier. Just want confirm that did you add PATH TO MY FILE HERE
and path to one of my files here
to the file names in these messages?
In addition, are you working on a mounted file system (network file system etc.)? Or do you have a tsconfig.json file with allowJs
set to true
, while didn't exclude node_modules
folder and bower_components
folder? These could be a cause too.
@zhengbli Thanks for the tip on checking the filesystem type, that seems to be the problem.
I develop in OS X, keeping the filesystem case insensitive, but some of the projects I work on aren't very resilient to case insensitivity. To get around this, the developers create a case sensitive sparsebundle, store all our dev resources on it, and mount it at a path in our home directory.
If I edit a TS file within that sparsebundle, TS doesn't work at all. But things work great if I edit files that are part of the root filesystem.
Aside from moving development resources out of the mounted filesystem (which, unfortunately, isn't a very viable option), do you have any suggestions to work around or solve this problem? Is this going to be addressed in an upcoming release or will it be an ongoing problem?
Yes I'm working on a fix for the problem now. It is logged at https://github.com/Microsoft/TypeScript/issues/7154 Though unfortunately I don't have a workaround for now. I'll keep this issue updated with the progress.
@bloveridge If you are advantageous... can you give this a try:
https://gist.github.com/zhengbli/6c07bca6b9a6ec86d691
Hit the "Download ZIP" button, download and replace the four files under [Plugin folder]/tsserver
and let me know if it fixes your problem. Thanks!
@zhengbli I have the same issue and I replaced the files, now it works. :)
@zhengbli I have the same issue and I replaced the files, now it works. :)
Replacing those files has me closer, but not yet all the way there. One of my projects works now, another (the one I work in most frequently) does not. Opening files that are not part of a project works. Re-opening the project did not fix the issue. Changing the file syntax to JS and then back to TypeScript didn't help. I'm going to try deleting the project and re-creating to see if that changes anything.
@bloveridge it is not your problem, it is only that the temp solution only works participial (when your project and your sublime plugin files are in the same file system). I'm working on a more comprehensive solution and will keep you updated. Thanks for trying!
@zhengbli It seems there must be more to the problem than that. Both of the projects I tried—one that worked and one that didn't work—are stored on my mounted file system, with the TypeScript plugin files stored on my main system partition.
I spent some time (much more time than I should have, probably) trying to reduce this down to a simpler test case so I could provide you some files that might help, and I've at least partially succeeded.
Source files tarball: https://dl.dropboxusercontent.com/u/10088305/ts-test.tgz Video demonstration: https://dl.dropboxusercontent.com/u/10088305/ts-test-video.webm
Test workflow:
main.ts
openmain.ts
openThis isn't a complete reproduction of what I see, because in my failing project it doesn't matter how many times I close and re-open my TS files, the plugin remains nonfunctional.
Hope this helps, and thanks for digging into this problem.
@bloveridge Thank you very much for the detailed demonstration! I noticed in the video you have -- INSERT --
in the bottom left corner. Did you try disable vintage mode? Would that help with this particular case?
@zhengbli Disabling Vintageous, and all related plugins, does not change the behavior for me.
Not sure if it is the same for you, but I am on a mac and the plugin stopped working for me when the project I was working on was on a case-sensitive file system. After moving the same project to a case-insensitive file system, the plugin started working again.
@brieb same here, just reinstalled OS X with case sensitive file system, them this plugin didn't work anymore.
@opsxcq @brieb @bloveridge @kichooo
Hey all, a fix for file name case sensitivity was merged in TypeScript master. Can you give it a try by downloading the gist, unzip it, and replace the four files in your [Plugin folder]/tsserver
folder? Thanks!
@zhengbli This works much better. Sublime complains that it uses TSC 1.9 and only 1.8.9 has been released, but ignoring that I am getting completion again in my project that previously was broken.
It's not 100% for me—sometimes when I open ST3, TypeScript doesn't work for files that automatically opened with the session unless I close and re-open them (as described in the sample workflow I posted above)—but whereas before it never worked in one of my projects, it now does work in that project with the occasional glitch I can workaround by re-opening the file.
Thanks for confirming that it at least solves this particular issue. The fix will ship next time along with an tsserver update (when TS ships a new version), in the meantime, one can just use the nightly version of TypeScript as instructed in the wiki page
Managed to get paste working (sigh of relief) by setting typescript_auto_format
to false in the package settings.
Very frustrating to not have paste capability :P.
Have same issue on OSX with just paste not working with ts files. changing typescript_auto_format to false also fixed the issue.
Any update on this? :/
EDIT: A simple file like
class ClassName {
constructor(argument) {
// code...
var thing = 'bru';
thing.charAt(0);
}
}
works, but I'm developing with more complicated files angular2 + ionic...
I seem to have the same pb as @bloveridge had, but on Windows 10 with ST3 build 3126, see #574
I'm still seeing this happen.
Most auto-complete within my application is working, but I am not getting autocompletion for file paths.
I'm not getting anything for TypeScript either --- no highlighting --- no auto-complete.
I've installed the package using the following: cd "F:\Program Files\Sublime Text 3\Packages" git clone --depth 1 https://github.com/Microsoft/TypeScript-Sublime-Plugin.git TypeScript
I typically install software to a partition other than C-drive (F).
Could that make any difference?
EDIT: This is for Windows 10 Home, and Sublime 3.
Auto-complete does work, but there is no drop-down list when typing. I can type the first few letters, then hit tab, and it inserts a selection.
My sublime text 2, (which I still use on my desktop), works perfectly fine. But when I use my laptop (sublime 3), I never get all the same autocompletes that I do in sublime text 2; Notably, the file paths
same here, ST3 fresh install, no autocompletion, no type-checking, etc.
Same problem here, no autocompletion etc, Sublime Text 3.2.2 build 3211
Hi, plugin is working on sublime text 2, but not on current version of sublime text 3.