Stories

Detail Return Return

vscode、trae 無法智能提示 pydantic 相關的函數了,變成白色的解決方案 - Stories Detail

一開始 trae 發現不能只能提示 pydantic 相關的函數了,以為是 trae 的問題,換了 vscode 打開同一個項目也還是不行。

以為是 pipenv 虛擬環境出問題了,但是重新裝了 pipenv 環境也不行

重啓電腦也不行,重啓 vscode、trae 等等都不行

然後我想會不會是 .vscode 目錄下的東西出問題了

但是 ls -lah 發現沒有 .vscode 目錄

但是看到了一個 __pycache__ 目錄,然後我刪除了它,然後重啓一下 vscode、trae 問題就好了

所以解決方案就是

rm -rf __pycache__
user avatar shumile_5f6954c414184 Avatar java_3y Avatar kuaidi100api Avatar birenxuemou Avatar xixindepaiqiu Avatar downtoearth Avatar piano Avatar edagarli Avatar yufan_645f1d6e3f1d1 Avatar flydehuli Avatar
Favorites 10 users favorite the story!
Favorites

Add a new Comments

Some HTML is okay.