Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyright shows a function error #23051

Open
1 task done
huhu415 opened this issue Jan 13, 2025 · 0 comments
Open
1 task done

Pyright shows a function error #23051

huhu415 opened this issue Jan 13, 2025 · 0 comments
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue

Comments

@huhu415
Copy link

huhu415 commented Jan 13, 2025

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

My python environment can get the function definition normally, because I can click on the function to enter the function implementation, and there is no error prompt when I use the cursor.
but zed shows Pyright: "DateTime" is not exported from module "gradio".
By the way I noticed that the log shows that the node version is too low, I don't know if this is the reason.

Zed Version and System Specs

xxx@iZ2ze261qnzsvcw67q6sxiZ:~/.zed_server$ ll
total 50740
drwxrwxr-x 2 xxx xxx 4096 Jan 9 14:24 ./
drwxr-x--- 18 xxx xxx 4096 Jan 13 14:29 ../
-rwxr-xr-x 1 xxx xxx 51948408 Jan 9 14:24 zed-remote-server-stable-0.168.2*

If applicable, add screenshots or screencasts of the incorrect state / behavior

截屏2025-01-13 14 31 22 `Pyright: "DateTime" is not exported from module "gradio"`

If applicable, attach your Zed.log file to this issue.

Zed.log
2025-01-13T14:17:30.089217+08:00 [ERROR] (remote server) node at /usr/bin/node is too old. want: 18.0.0, got: 12.22.9
2025-01-13T14:17:30.760151+08:00 [INFO] open paths ["/Users/hello/.config/zed/settings.json"]
2025-01-13T14:17:30.771266+08:00 [INFO] attempting to start language server "json-language-server", path: "/Users/hello/.config/zed/settings.json", id: 1
2025-01-13T14:17:30.771626+08:00 [INFO] Initializing default prettier with plugins {}
2025-01-13T14:17:30.781978+08:00 [INFO] fetching latest version of language server "json-language-server"
2025-01-13T14:17:30.78232+08:00 [INFO] Node runtime install_if_needed
2025-01-13T14:17:30.857797+08:00 [INFO] using project environment variables shell launched in "/Users/hello/.config/zed/settings.json". PATH="/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/corplink/mdm/opt/corplink-mdm/bin:/Users/hello/.orbstack/bin:/Users/hello/go/bin:/Applications/WebStorm.app/Contents/MacOS:/Users/hello/.local/bin:/Users/hello/.orbstack/bin:/Users/hello/go/bin:/Applications/WebStorm.app/Contents/MacOS:/Users/hello/.local/bin"
2025-01-13T14:17:31.382914+08:00 [ERROR] (remote server) node at /usr/bin/node is too old. want: 18.0.0, got: 12.22.9
2025-01-13T14:17:31.492033+08:00 [ERROR] (remote server) node at /usr/bin/node is too old. want: 18.0.0, got: 12.22.9
2025-01-13T14:17:31.932746+08:00 [INFO] Node runtime install_if_needed
2025-01-13T14:17:32.040447+08:00 [INFO] Node runtime install_if_needed
2025-01-13T14:17:32.125505+08:00 [INFO] language server "json-language-server" is already installed
2025-01-13T14:17:32.125715+08:00 [INFO] starting language server process. binary path: "/Users/hello/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/Users/hello/.config/zed", args: ["/Users/hello/Library/Application Support/Zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2025-01-13T14:17:36.706907+08:00 [ERROR] oneshot canceled
2025-01-13T14:17:46.90922+08:00 [ERROR] failed to get git blame data: RPC request BlameBuffer failed: Failed to blame "gradio/lib/python3.10/site-packages/fastapi/applications.py": Broken pipe (os error 32)
2025-01-13T14:17:46.90998+08:00 [ERROR] (remote server) server:error handling message. type:BlameBuffer, error:Failed to blame "gradio/lib/python3.10/site-packages/fastapi/applications.py": Broken pipe (os error 32)

@huhu415 huhu415 added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant