当前位置: 首页 > article >正文

vscode@python语言插件组合@语言服务器插件功能异常排查

文章目录abstractastral系列产品python插件功能配置和异常排查pylancetyabstractvscode中python基础插件和增强插件:Python - Visual Studio Marketplace支持 Python 语言并提供 IntelliSense (Pylance)、调试 (Python Debugger)、代码检查、格式化、重构、单元测试等扩展访问点。本插件是许多其他python插件的基础(依赖项)Pylance - Visual Studio MarketplaceVS Code 中高性能、功能丰富的 Python 语言服务器;安装时可能不依赖于上述的基础python插件,可以独立安装;ty - Visual Studio Marketplace除了pylance,较新的ty是一个用 Rust 编写的、速度极快的 Python 类型检查器和语言服务器。其他Python 扩展提供可插拔的访问点用于扩展各种功能领域从而进一步提升您的 Python 开发体验。这些扩展都是可选的具体取决于您的项目配置和偏好。下面这些插件依赖于python基础插件:Python formatters Python 格式化程序Python linters Python 代码检查器社区提供的ruff方案兼顾python程序的格式化和代码检查,且性能好,是一个不错的选择;Ruff - Visual Studio Marketplace此插件需要ruff程序提供支持.(powered byastral)astral系列产品Astral致力于为 Python 生态系统构建高性能开发者工具。Astral Docs最著名的作品包括 Python 包管理器 uv以及代码检查和格式化工具 Ruff。Ruffpython插件功能配置和异常排查不恰当的项目目录(工作区)配置会导致python插件提供的部分甚至主要功能失效;除了系统级和用户级配置,在vscode在工作区(项目根目录)中针对python的配置.vscode/settings.json文件中通常有3个配置项:pylance这些配置项在vscode的设置中都可以找到(python插件pylance插件){python.languageServer:Default,python.analysis.diagnosticsSource:Pylance,python.analysis.languageServerMode:default}其中最为重要的是python language server;如果语言服务器运行异常,那么许多基础功能,例如符号分析和跳转都无法工作;可以通过vscode的OUTPUT选项卡中的python相关的下拉选项中查看插件的日志输出;Output: Focus on Output View日志输出示例:2026-04-23 11:50:39.231 [info] Client: Pylance client (2026.2.1) started with python extension (2026.4.0) 2026-04-23 11:50:39.957 [info] (6952): Server root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2026.2.1/dist 2026-04-23 11:50:40.047 [info] (6952): Pylance language server 2026.2.1 (pyright version 1.1.408, commit 138238b4) starting 2026-04-23 11:50:40.055 [info] (6952): Starting service instance woo_df for workspace c:\Users\Administrator\Desktop\woo_df 2026-04-23 11:50:40.937 [info] (6952): Loading background bundle file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2026.2.1/dist/copilot-background.bundle.js into file:///c%3A/Users/Administrator/Desktop/woo_df... 2026-04-23 11:50:41.023 [info] (6952): Starting Mcp server id:52946 ... 2026-04-23 11:50:41.048 [info] (6952): FG(woo_df): Loading configuration file at c:\Users\Administrator\Desktop\woo_df\pyrightconfig.json 2026-04-23 11:50:41.049 [error] (6952): FG(woo_df): Config file c:\Users\Administrator\Desktop\woo_df\pyrightconfig.json could not be parsed. Verify that format is correct. 2026-04-23 11:50:41.061 [info] (6952): FG(woo_df): Setting environmentName for service woo_df: 3.12.12 (base conda) 2026-04-23 11:50:41.061 [info] (6952): FG(woo_df): Setting pythonPath for service woo_df: C:\scoop\apps\miniforge\25.11.0-1\python.exe 2026-04-23 11:50:41.062 [info] (6952): FG(woo_df): No include entries specified; assuming c:\Users\Administrator\Desktop\woo_df 2026-04-23 11:50:41.062 [info] (6952): FG(woo_df): Auto-excluding **/node_modules 2026-04-23 11:50:41.063 [info] (6952): FG(woo_df): Auto-excluding **/__pycache__ 2026-04-23 11:50:41.063 [info] (6952): FG(woo_df): Auto-excluding **/.* 2026-04-23 11:50:41.125 [info] (6952): FG(woo_df): Assuming Python version 3.12.12.final.0 2026-04-23 11:50:41.248 [info] (6952): [Editable Installs] Starting dynamic pth file resolution for Python: C:\scoop\apps\miniforge\25.11.0-1\python.exe 2026-04-23 11:50:41.257 [info] (6952): [Editable Installs] No sandbox available for Python C:\scoop\apps\miniforge\25.11.0-1\python.exe. Dynamic pth file resolution requires Python 3.13 or later. 2026-04-23 11:50:41.338 [info] (6952): FG(woo_df): Found 74 source files 2026-04-23 11:50:41.353 [info] (6952): Settings have not changed. Skipping update. 2026-04-23 11:50:41.696 [info] (6952): PQ(woo_df): Priority queue background worker(2) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2026.2.1/dist 2026-04-23 11:50:41.696 [info] (6952): PQ(woo_df): Priority queue background worker(2) started 2026-04-23 11:50:41.833 [info] (6952): FG(woo_df): IDX(woo_df): Indexer background runner(3) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2026.2.1/dist (index) 2026-04-23 11:50:41.834 [info] (6952): FG(woo_df): IDX(woo_df): Indexing(3) started 2026-04-23 11:50:43.271 [info] (6952): FG(woo_df): IDX(woo_df): scanned(3) 635 files over 1 exec env 2026-04-23 11:50:43.607 [info] (6952): FG(woo_df): IDX(woo_df): indexed(3) 635 files over 1 exec env 2026-04-23 11:50:43.710 [info] (6952): FG(woo_df): IDX(woo_df): Indexing finished(3).语言服务器插件会跳过一些通常不适合检索的目录,例如node_modules,__pycache__以及.开头的(通常被视为隐藏文件)下面是一些语言服务器插件输出的日志示例ty高性能的python语言服务器插件如果使用这个方案代替pylance,它是自动配置的,如果行为不符合预期,可以尝试在vscode设置中进一步配置;启动日志示例2026-04-23 17:05:19.384 [info] Name: ty 2026-04-23 17:05:19.384 [info] Module: ty 2026-04-23 17:05:19.384 [info] Python extension loading 2026-04-23 17:05:19.384 [info] Waiting for interpreter from python extension. 2026-04-23 17:05:22.216 [info] Python extension loaded 2026-04-23 17:05:22.268 [info] Using interpreter: c:\scoop\apps\miniforge\25.11.0-1\python.exe 2026-04-23 17:05:22.316 [info] Initialization options: {} 2026-04-23 17:05:22.379 [info] Using the ty binary: c:\scoop\apps\miniforge\25.11.0-1\Scripts\ty.exe 2026-04-23 17:05:22.382 [info] Found executable at c:\scoop\apps\miniforge\25.11.0-1\Scripts\ty.exe 2026-04-23 17:05:22.382 [info] Server run command: c:\scoop\apps\miniforge\25.11.0-1\Scripts\ty.exe server 2026-04-23 17:05:22.383 [info] Server: Start requested. 2026-04-23 17:05:22.407 [info] ty server version: 0.0.32 (4d1e1fc57 2026-04-20)2026-04-23 16:59:06.723737600 INFO Version: 0.0.32 (4d1e1fc57 2026-04-20) 2026-04-23 16:59:06.764138700 INFO Defaulting to python-platform win32 2026-04-23 16:59:06.765158200 INFO Python version: Python 3.12, platform: win32 2026-04-23 16:59:13.035895900 INFO Indexed 100 file(s) in 0.016s 2026-04-23 16:59:15.425918000 INFO Checking file c:\Users\Administrator\Desktop\woo_df\woosqlitedb.py took more than 100ms (457.1503ms)

相关文章:

vscode@python语言插件组合@语言服务器插件功能异常排查

文章目录abstractastral系列产品python插件功能配置和异常排查pylancetyabstract vscode中python基础插件和增强插件: Python - Visual Studio Marketplace 支持 Python 语言,并提供 IntelliSense (Pylance)、调试 (Python Debugger)、代码检查、格式化、重构、单元…...

JDK异常处理No appropriate protocol

异常展示 javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)at sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:171) ~[na:1.8.0_292]at sun.security.ssl.ClientHandshakeC…...

终极Jetpack Compose指南:SSComposeCookBook高效UI组件库全面解析

终极Jetpack Compose指南&#xff1a;SSComposeCookBook高效UI组件库全面解析 【免费下载链接】SSComposeCookBook A Collection of major Jetpack compose UI components which are commonly used.&#x1f389;&#x1f51d;&#x1f44c; 项目地址: https://gitcode.com/g…...

2026 网络安全全指南:基础防护→实战进阶,新手快速上手

2026网络安全全指南&#xff1a;从基础防护到实战进阶&#xff0c;新手也能快速上手 数字化时代&#xff0c;网络安全已成为企业、个人不可或缺的“安全屏障”&#xff0c;APT攻击、勒索软件、钓鱼攻击等威胁频发&#xff0c;小到个人信息泄露&#xff0c;大到企业核心数据被盗…...

终极NHS UK Frontend教程:3步构建专业医疗网站界面

终极NHS UK Frontend教程&#xff1a;3步构建专业医疗网站界面 【免费下载链接】nhsuk-frontend NHS.UK frontend contains the code you need to start building user interfaces for NHS websites and services. 项目地址: https://gitcode.com/gh_mirrors/nh/nhsuk-fronte…...

终极优化神器:Optimization.jl 完整指南 - 高性能科学计算解决方案

终极优化神器&#xff1a;Optimization.jl 完整指南 - 高性能科学计算解决方案 【免费下载链接】Optimization.jl Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimiz…...

2026 转行必看:运维转网安从 0 到 1 系统规划,稳扎稳打

运维转行网安&#xff5c;从0到1落地指南&#xff0c;2026最稳转型路径 在IT行业&#xff0c;“运维转行网安”早已不是新鲜事。很多运维从业者在长期工作中&#xff0c;逐渐陷入“重复劳动、技术瓶颈、薪资天花板”的困境——每天围着服务器、监控、部署打转&#xff0c;看似…...

避开ORAN部署大坑:从O-RU延迟报告精度(200ns)看时间窗对齐的隐藏风险

避开ORAN部署大坑&#xff1a;从O-RU延迟报告精度&#xff08;200ns&#xff09;看时间窗对齐的隐藏风险 在ORAN架构的实际部署中&#xff0c;时间同步问题往往成为系统稳定性的"阿喀琉斯之踵"。当O-RU设备报告其接收/发送窗边界精度为200ns时&#xff0c;这个看似微…...

AngularJS Material-Start完全指南:从零开始构建现代化Web应用

AngularJS Material-Start完全指南&#xff1a;从零开始构建现代化Web应用 【免费下载链接】material-start Starter Repository for AngularJS Material 项目地址: https://gitcode.com/gh_mirrors/ma/material-start AngularJS Material-Start是一个基于AngularJS Mat…...

如何开发Shuttle播放器插件:从入门到实战的完整指南

如何开发Shuttle播放器插件&#xff1a;从入门到实战的完整指南 【免费下载链接】Shuttle Shuttle Music Player 项目地址: https://gitcode.com/gh_mirrors/shut/Shuttle Shuttle Music Player是一款功能强大的开源音乐播放器&#xff0c;支持自定义插件扩展功能。本文…...

ml-intern人道主义应用:AI助力人道主义救援的完整指南

ml-intern人道主义应用&#xff1a;AI助力人道主义救援的完整指南 【免费下载链接】ml-intern &#x1f917; ml-intern: an open-source ML engineer that reads papers, trains models, and ships ML models 项目地址: https://gitcode.com/GitHub_Trending/ml/ml-intern …...

终极Android ViewPager动画指南:PageTransformerHelp完整安装与配置教程

终极Android ViewPager动画指南&#xff1a;PageTransformerHelp完整安装与配置教程 【免费下载链接】PageTransformerHelp :1: A PageTransformer library for Android ViewPager,have some Banner styles. ViewPager 实现轮播图、实现卡片切换。 项目地址: https://gitcode…...

Intel Realsense D435在Windows上从零配置到显示彩色图像(VS2022 + OpenCV 4.8 + SDK 2.54)

Intel Realsense D435在Windows平台下的完整开发指南&#xff1a;从环境配置到彩色图像显示 1. 开发环境准备与SDK安装 在开始使用Intel Realsense D435深度相机进行开发前&#xff0c;我们需要搭建一个稳定的开发环境。Windows平台下推荐使用Visual Studio 2022作为主要开发工…...

终极指南:如何快速掌握 Iris Web Framework 完整示例项目

终极指南&#xff1a;如何快速掌握 Iris Web Framework 完整示例项目 【免费下载链接】examples This repository contains small and practical examples for the Iris Web Framework. 项目地址: https://gitcode.com/gh_mirrors/examples22/examples Iris Web Framewo…...

10分钟快速上手:Iris Web Framework 完整安装与配置指南

10分钟快速上手&#xff1a;Iris Web Framework 完整安装与配置指南 【免费下载链接】examples This repository contains small and practical examples for the Iris Web Framework. 项目地址: https://gitcode.com/gh_mirrors/examples22/examples GitHub 加速计划 /…...

基石SQLGeniusAgent:AI驱动的数据库智能助手

**** 基石SQLGeniusAgent是基于Dify (基石智算) DeepSeek技术栈构建的AI数据库智能助手**** 测试和验证结果 测试流程截图&#xff1a;一、名称解析 基石 “基石” 代表基石智算&#xff0c;它是整个产品的坚实后盾。在如今数据爆炸的时代&#xff0c;企业级AI算力是高效处理…...

java后端和javaweb开发区别;项目流程图;常见公司分类;产品经理的主要工作内容;产品经理日常产出

Java后端和JavaWeb应用开发的区别 项目流程图 【软件开发流程介绍】简单的学习一下项目管理软件_哔哩哔哩_bilibili 1-3、初始化团队_哔哩哔哩_bilibili&#xff0c;3:28 常见公司分类 1-5、常见的公司分类_哔哩哔哩_bilibili 产品经理的主要工作内容 黑马程序员产品经理基础…...

UDA文本分类实战:从IMDB情感分析到BERT集成

UDA文本分类实战&#xff1a;从IMDB情感分析到BERT集成 【免费下载链接】uda Unsupervised Data Augmentation (UDA) 项目地址: https://gitcode.com/gh_mirrors/ud/uda Unsupervised Data Augmentation&#xff08;UDA&#xff09;是一种革命性的半监督学习方法&#x…...

ezXSS入门指南:5分钟快速搭建专业的XSS测试环境

ezXSS入门指南&#xff1a;5分钟快速搭建专业的XSS测试环境 【免费下载链接】ezXSS ezXSS is an easy way for penetration testers and bug bounty hunters to test (blind) Cross Site Scripting. 项目地址: https://gitcode.com/gh_mirrors/ez/ezXSS ezXSS是一款专为…...

写给做审批系统的你:状态和权限一旦没分层,后面一定越来越乱

Activiti/Flowable 工作流实战&#xff1a;业务状态和流程状态怎么保持一致&#xff1f;再讲清 RBAC 数据权限 工作流项目真正难的地方&#xff0c;往往不是“怎么发起流程”&#xff0c;而是“流程跑起来之后&#xff0c;状态别乱、权限别乱、数据别乱”。 这个项目里我能明显…...

别再只会用kafka-topics.sh了!这5个Kafka命令行实战场景,运维和开发都得会

别再只会用kafka-topics.sh了&#xff01;这5个Kafka命令行实战场景&#xff0c;运维和开发都得会 Kafka作为现代数据管道的核心组件&#xff0c;其命令行工具远不止于基础的topic管理。真正的高手往往能在故障排查、性能调优等关键时刻&#xff0c;通过命令行组合拳快速定位问…...

终极指南:掌握pyenv-virtualenv与Pyenv无缝集成的10个技巧

终极指南&#xff1a;掌握pyenv-virtualenv与Pyenv无缝集成的10个技巧 【免费下载链接】pyenv-virtualenv a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv) 项目地址: https://gitcode.com/gh_mirrors/py/pyenv-virtualenv pyenv-virtualenv是一个Pyen…...

Optuna超参数优化:提升机器学习模型调优效率

1. 超参数优化入门&#xff1a;为什么选择Optuna&#xff1f;在机器学习项目中&#xff0c;模型调优往往是最耗时的环节之一。传统网格搜索(Grid Search)和随机搜索(Random Search)虽然简单直接&#xff0c;但当参数空间较大时&#xff0c;这两种方法要么计算成本过高&#xff…...

保姆级教程:用Vector Davinci Configurator搞定AUTOSAR CAN通信协议栈(从DBC导入到错误清零)

AUTOSAR通信协议栈实战&#xff1a;从DBC导入到错误清零的完整指南 在汽车电子开发领域&#xff0c;AUTOSAR通信协议栈的配置一直是工程师们面临的重大挑战之一。特别是对于刚接触Vector Davinci工具链的开发人员&#xff0c;当导入DBC文件后&#xff0c;面对工具中CAN、CANIF、…...

Lagent与主流LLM集成:OpenAI、HuggingFace、LMDeploy深度整合

Lagent与主流LLM集成&#xff1a;OpenAI、HuggingFace、LMDeploy深度整合 【免费下载链接】lagent A lightweight framework for building LLM-based agents 项目地址: https://gitcode.com/gh_mirrors/la/lagent Lagent作为一款轻量级LLM&#xff08;大语言模型&#x…...

Pwnagotchi完全指南:从零开始构建你的WiFi安全分析利器

Pwnagotchi完全指南&#xff1a;从零开始构建你的WiFi安全分析利器 【免费下载链接】pwnagotchi-bookworm (⌐■_■) - Raspberry Pi instrumenting Bettercap for Wi-Fi pwning. 项目地址: https://gitcode.com/gh_mirrors/pw/pwnagotchi-bookworm Pwnagotchi是一款基于…...

RAG幻觉检测技术:原理、实现与优化策略

1. RAG幻觉检测技术概述在当今信息检索与生成式AI结合的领域&#xff0c;检索增强生成&#xff08;Retrieval-Augmented Generation&#xff0c;简称RAG&#xff09;系统已经成为连接海量知识库与自然语言生成的重要桥梁。但就像人类会"记忆模糊"一样&#xff0c;RAG…...

全同态加密与AI Agent融合:构建隐私优先的去中心化预测系统

1. 项目概述&#xff1a;当AI Agent遇上全同态加密最近在捣鼓一个挺有意思的开源项目&#xff0c;来自Mind Network的mind-sdk-deepseek-rust。简单来说&#xff0c;这是一个用Rust写的SDK&#xff0c;它干了一件挺“缝合”但又极具前瞻性的事&#xff1a;让DeepSeek这样的AI大…...

2026 年最佳 SEO 报告软件大揭秘:Semrush 等谁能脱颖而出?

SEO 报告现状与软件价值你已深知 SEO 策略成效显著&#xff0c;排名攀升、流量上升&#xff0c;内容吸引自然流量。然而&#xff0c;当被问及“投资换来了什么”时&#xff0c;2026 年多数 SEO 专业人士会在周日手忙脚乱地从五个仪表盘拼凑截图。虽有数据&#xff0c;但转化为清…...

Go-arg终极指南:5分钟学会基于结构体的命令行参数解析

Go-arg终极指南&#xff1a;5分钟学会基于结构体的命令行参数解析 【免费下载链接】go-arg Struct-based argument parsing in Go 项目地址: https://gitcode.com/gh_mirrors/go/go-arg Go-arg是一款强大的Go语言命令行参数解析库&#xff0c;它允许开发者通过定义结构体…...