Closed command-tab closed 4 months ago
Sorry I'm just now following up on this - are you still having trouble? This extension does not use node
directly, but pyright-langserver
does. I'm not sure how it would be able to find that but not node, if you installed them from homebrew, since the pyright formula depends on node
.
Thanks for following up! I did get it working eventually. The secret was moving the contents of my .bashrc
to .bash_profile
. Apparently only the latter gets sourced when Nova uses a shell.
Hello! The Pyright server doesn't seem to be starting when this extension attempts to invoke it at Nova launch, or when I select the Extensions → Python → Restart Pyright menu item. When I do that, this is immediately logged to the Nova Extension Console:
I have both
node
andpyright
installed via Homebrew, and I can even run/opt/homebrew/bin/pyright-langserver --stdio
manually without issue. Homebrew-installed binaries are in my $PATH (/opt/homebrew/bin
is present), and Nova is set to "Automatically request environment from login shell" in the Tools settings. Other portions work, like theruff
checker — I see a few code suggestions in the editor UI as a result of it working, which is fantastic.I am stumped as to why attempting to start or restart pyright via this extension mentions
node
in the logs. Is that Nova trying and failing to invoke node? I couldn't find any motion ofnode
in this codebase.Any suggestions or insights you might have would be appreciated. Thank you!