microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 237 forks source link

Command typescript_project_error_list is not working #740

Closed aNickPlx closed 4 years ago

aNickPlx commented 4 years ago

I just realized that the command "typescript_project_error_list" is broken. When the panel is about to open, it hangs and sublime console displays the following error.

Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 1052, in run_ return self.run() File "/home/LOFT.BR/bruno.rafael/.config/sublime-text-3/Packages/TypeScript/typescript/commands/error_list.py", line 22, in run cli.worker_client.start() File "/home/LOFT.BR/bruno.rafael/.config/sublime-text-3/Packages/TypeScript/typescript/libs/node_client.py", line 310, in start node_args = pref_settings.get('node_args', []) NameError: global name 'pref_settings' is not defined

I was able to bisect the error to the commit 7be868e1f50023d31bbc5c491d3e82dd60486181

It looks like there was a Copy&PasteException on line 310 on the file typescript/libs/node_client.py the missing line is: pref_settings = sublime.load_settings('Preferences.sublime-settings')