Skip to content

How-to guides

How to install the Pyright executables#

Choose one that works for you:

$ pip install pyright
$ uv tool install pyright
$ uv pip install pyright
$ uv add --dev pyright
$ npm install pyright
$ yarn add pyright
$ pnpm install pyright
$ bun install pyright
$ brew install pyright

See also Pyright's official installation guide.

How to restart the language server#

LSP4IJ mode#

From the LSP Consoles of the Language Servers toolwindow, find the line that says "Pyright".

Right click the line below it, then click "Stop". The line should then say "Disabled". Right click that line again, then click "Restart".

Native LSP client mode#

In the status bar, find the cell that has either Pyright's icon or a pair of braces. Click it, then click the loop icon.

How do I find the IDE log files?#

Open the action panel using Ctrl Shift A or your corresponding shortcut, then choose Show Log in Explorer. For macOS, this action is called Show Log in Finder.

This should open a directory containing a file called idea.log and possibly other files that have the idea.<number>.log naming schema. idea.log is the most recent log file; idea.<number>.logs are archived ones.

Open idea.log using your favourite text editor/reader. Note that it might be up to 10 MB in size.

Alternatively, navigate to the directories documented here.

How to enable language server logging#

Add the following line to the Debug Log Settings panel (Help | Diagnostic Tools):

com.intellij.platform.lsp