I’m on Windows using Sublime. LSP Py-right is failing on my system giving out this error:
I do have Node installed and in PATH:
Any suggestions for why it’s not working?
I’m on Windows using Sublime. LSP Py-right is failing on my system giving out this error:
I do have Node installed and in PATH:
Any suggestions for why it’s not working?
Is the node there before you install pyright or it’s just installed? maybe try restart ST or logout Windows?
It was installed before Pyright but I uninstalled/reinstalled after this problem occurred. But still it doesn’t work.
Are my Node Environment variables okay? It looks like a problem with Sublime.
If any Sublime dev or support is looking at this, could you please see if there’s any issue with Sublime?
That’s the problem. I don’t know any commands and I changed the default by doing sublime.version()
(a command I stumbled upon on StackOver) to check if its working. Sorry. Total noob.
Edit: Help a noob?
Click on View > Show Console from the top menubar. You can paste the text here.
You may need to click on the little “hamburger” first to make the menubar appear.
DPI mode: per-monitor v2
startup, version: 4121 windows x64 channel: stable
executable: /C/Program Files/Sublime Text/sublime_text.exe
application: /C/Program Files/Sublime Text
working dir: /C/Program Files/Sublime Text
packages path: /C/Users/meta/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/meta/AppData/Roaming/Sublime Text 3/Local
zip path: /C/Program Files/Sublime Text/Packages
zip path: /C/Users/meta/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages: ["Rust"]
scan: /C/Users/meta/AppData/Roaming/Sublime Text 3/Packages/User/Dracula Color Scheme/.git/logs/refs/remotes has been seen before, skipping (using content fingerprint) previous path: /C/Users/meta/AppData/Roaming/Sublime Text 3/Packages/User/Dracula Color Scheme/.git/refs/remotes fingerprint: 7390898629174262673
pre session restore time: 0.200966
startup time: 0.331966
first paint time: 0.331966
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
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.html_print
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.keymap
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
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.quick_panel
reloading plugin Default.rename
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.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading python 3.3 plugin 0_package_control_loader.00-package_control
reloading plugin Default.symbol
reloading python 3.3 plugin 0_package_control_loader.01-sublime_lib
reloading plugin Default.transform
reloading python 3.3 plugin 0_package_control_loader.10-lsp_utils
reloading plugin Default.transpose
reloading python 3.3 plugin 0_package_control_loader.10-shellenv
reloading python 3.3 plugin 0_package_control_loader.10-wcwidth
reloading plugin Default.ui
reloading python 3.3 plugin 0_package_control_loader.40-pywinpty
reloading python 3.3 plugin 0_package_control_loader.50-backrefs
reloading python 3.3 plugin 0_package_control_loader.50-bracex
reloading python 3.3 plugin 0_package_control_loader.50-pyte
reloading python 3.3 plugin 0_package_control_loader.50-pyyaml
reloading plugin CSS.css_completions
reloading python 3.3 plugin 0_package_control_loader.55-jsonschema
reloading python 3.3 plugin 0_package_control_loader.55-mdpopups
reloading python 3.3 plugin 0_package_control_loader.55-wcmatch
reloading python 3.3 plugin Julia.unicode
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin Vintage.vintage
reloading plugin Vintage.vintage_commands
reloading plugin Vintage.vintage_motions
reloading python 3.3 plugin LSP-pyright.commands
reloading python 3.3 plugin LSP-pyright.plugin
reloading python 3.3 plugin LSP-rust-analyzer.plugin
reloading python 3.3 plugin LSP.boot
reloading python 3.3 plugin Package Control.1_reloader
reloading python 3.3 plugin Package Control.2_bootstrap
reloading python 3.3 plugin Package Control.Package Control
reloading python 3.3 plugin Rust Enhanced.cargo_build
reloading python 3.3 plugin Rust Enhanced.SyntaxCheckPlugin
reloading python 3.3 plugin Rust Enhanced.toggle_setting
reloading python 3.3 plugin SublimeLinter.__init__
reloading python 3.3 plugin SublimeLinter._init
reloading python 3.3 plugin SublimeLinter.active_linters_view
reloading python 3.3 plugin SublimeLinter.busy_indicator_view
reloading python 3.3 plugin SublimeLinter.goto_commands
reloading python 3.3 plugin SublimeLinter.highlight_view
reloading python 3.3 plugin SublimeLinter.log_handler
reloading python 3.3 plugin SublimeLinter.message_view
reloading python 3.3 plugin SublimeLinter.panel_view
reloading python 3.3 plugin SublimeLinter.quick_actions
reloading python 3.3 plugin SublimeLinter.status_bar_view
reloading python 3.3 plugin SublimeLinter.sublime_linter
reloading python 3.3 plugin Terminus.main
reloading python 3.3 plugin SublimeLinter-contrib-julialint.linter
SublimeLinter: ERROR: julialint: Defining 'cls.syntax' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.
ERROR:SublimeLinter.lint.linter:julialint: Defining 'cls.syntax' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.
SublimeLinter: ERROR: julialint: Defining 'cls.selectors' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.
ERROR:SublimeLinter.lint.linter:julialint: Defining 'cls.selectors' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.
SublimeLinter: WARNING: julialint: Defining 'cls.inline_settings' has no effect. Please cleanup and remove this setting.
WARNING:SublimeLinter.lint.linter:julialint: Defining 'cls.inline_settings' has no effect. Please cleanup and remove this setting.
SublimeLinter: WARNING: julialint: Defining 'cls.inline_overrides' has no effect. Please cleanup and remove this setting.
WARNING:SublimeLinter.lint.linter:julialint: Defining 'cls.inline_overrides' has no effect. Please cleanup and remove this setting.
SublimeLinter: WARNING: julialint: Defining 'cls.comment_re' has no effect. Please cleanup and remove this setting.
WARNING:SublimeLinter.lint.linter:julialint: Defining 'cls.comment_re' has no effect. Please cleanup and remove this setting.
SublimeLinter: ERROR: julialint disabled. 'selector' is mandatory in 'cls.defaults'.
See http://www.sublimelinter.com/en/stable/linter_settings.html#selector
ERROR:SublimeLinter.lint.linter:julialint disabled. 'selector' is mandatory in 'cls.defaults'.
See http://www.sublimelinter.com/en/stable/linter_settings.html#selector
plugins loaded
git: using configuration from C:\Program Files\Git\cmd\git.exe
git: ignoring working dir /C/Users/meta
LSP-pyright: Error: Ignoring system Node.js runtime due to an error. Error resolving node version:
'C:\MinGW\bin\mingwstartup.bat' is not recognized as an internal or external command,
operable program or batch file.
v16.13.0
LSP-pyright: Error: Ignoring local Node.js runtime due to an error. Error resolving node version:
'C:\MinGW\bin\mingwstartup.bat' is not recognized as an internal or external command,
operable program or batch file.
v14.17.6
Unable to start subprocess for LSP-pyright
Traceback (most recent call last):
File "C:\Users\meta\AppData\Roaming\Sublime Text 3\Installed Packages\LSP.sublime-package\plugin/core/windows.py", line 335, in start_async
if plugin_class.needs_update_or_installation():
File "C:\Users\meta\AppData\Roaming\SUBLIM~1\Packages\LSP_UT~1\st3\lsp_utils\_client_handler\abstract_plugin.py", line 101, in needs_update_or_installation
server = cls.get_server()
File "C:\Users\meta\AppData\Roaming\SUBLIM~1\Packages\LSP_UT~1\st3\lsp_utils\npm_client_handler.py", line 100, in get_server
'skip_npm_install': cls.skip_npm_install,
File "C:\Users\meta\AppData\Roaming\SUBLIM~1\Packages\LSP_UT~1\st3\lsp_utils\server_npm_resource.py", line 33, in create
raise Exception('Failed resolving the Node Runtime. Please see Sublime Text console for more information')
Exception: Failed resolving the Node Runtime. Please see Sublime Text console for more information
Package Control: No updated packages
I just pasted everything.
For some reason it’s trying to call C:\MinGW\bin\mingwstartup.bat to find out the version instead of node. Not sure why
I see the same error message about mingwstartup.bat when you run npm
in the command-line, so I’m guessing something went wrong during installation of Node.js.
Are you using Windows 7? That’s unsupported in modern node versions from what I remember.