René's URL Explorer Experiment


Title: feat: 缺少 gopls、dlv 时可以在插件详情里安装(commandInstallers) by xiaoyumuxi · Pull Request #8 · Lithe-IDEA/lithe-plugin-go · GitHub

Open Graph Title: feat: 缺少 gopls、dlv 时可以在插件详情里安装(commandInstallers) by xiaoyumuxi · Pull Request #8 · Lithe-IDEA/lithe-plugin-go

X Title: feat: 缺少 gopls、dlv 时可以在插件详情里安装(commandInstallers) by xiaoyumuxi · Pull Request #8 · Lithe-IDEA/lithe-plugin-go

Description: 背景 试装 Go 插件时,电脑上没有 gopls 或 dlv 的话,插件详情里只显示英文原始错误(“plugin package path is not usable: none of the plan's commands is available”),不知道缺什么、怎么装。 Lithe-IDEA/Lithe-core-rust#53(main c550c2b)加入了通用的 commandInstallers 契约(API-23):插件声明“用哪个已注入的工具、什么参数安装哪些命令”,Core 校验并展开。1lck/Lithe-IDEA#1971(Draft)让宿主在能力卡片上显示“未找到 xxx”和安装按钮,用户选安装位置、看清要运行的命令后确认。宿主和 Core 里没有任何 Go 专属代码,本 PR 只在插件清单里声明 gopls 和 dlv 怎么装。 改动 plugin.json(版本仍是 0.1.0:0.1.0 还没发布,这些内容并进 0.1.0) requires 加入 commandInstallers: 0。 新增 requiresTools: ["go"]:安装器用的 go 工具来自插件自己的 toolDefinitions[go]。 permissions 加入 commands.install:安装对话框里显示为“安装插件所需的命令行工具(每次安装前都会征得你的同意)”。 新增 commandInstallers,两项结构相同: id 命令 参数 gopls gopls install golang.org/x/tools/gopls@latest dlv dlv install github.com/go-delve/delve/cmd/dlv@latest tool: go,minimumVersion: 1.21(Go 1.21 起有 GOTOOLCHAIN,go install 能取命令模块要求的更新 Go),mayUseNetwork: true,超时用默认的 10 分钟。 targets.managed:环境变量 GOBIN=${installDirectory},装进 Lithe 管理的目录(插件状态目录下,卸载插件时删除),不动 Go 的默认目录。 targets.toolDefault:不设 GOBIN;用 go env GOBIN 找目录,为空时用 go env GOPATH 的第一项加 bin。卸载插件时不删这些文件。 README.md 预发布说明补上对 1lck/Lithe-IDEA#1971(Core c550c2b)的依赖。 「依赖的程序」:gopls 和 dlv 的查找方式改为先找 Lithe 记下的安装目录,再找 PATH;新增在插件详情里安装的步骤和两种安装位置的说明;权限列表加上安装命令行工具;保留在终端用 go install 手动安装的写法。 docs/releases/v0.1.0.md:功能里加上安装 gopls 和 dlv;权限加 commands.install;依赖的程序改写;兼容性改为需要 Core c550c2b 或更新版本的桌面端,并说明更早的桌面端为什么会拒绝安装。 docs/feature-matrix.md go-support-plugin:能力、证据、依赖的宿主能力加上 commandInstallers;验证方法第 4 步写明 gopls 也可能来自安装目录,第 7 步改为语言服务器卡片显示“未找到 gopls”和安装按钮、两种位置各装一次后的检查;最近验证注明安装没有被覆盖。 go-debug-delve:能力、证据、依赖的宿主能力同样更新;验证方法第 6 步改为调试器卡片显示“未找到 dlv”和安装按钮、安装后能停在断点。 e2e/host/lithe-host.json:宿主固定到 a9bddd922(1lck/Lithe-IDEA#1971 的分支头提交:preview 4caa57a33 加上 Core c550c2b 和命令安装)。原来的 b03dbf0c0 不认识 commandInstallers,装这个清单会被拒绝。 验证 检查 结果 用宿主 #1971 的 Core c550c2b 校验清单(临时测试,没有提交):pluginhost.Validate + Declared(),再调 plugins.commandInstallers.requirements、plan(managed、toolDefault)、defaultDirectory 通过:requirements 列出语言服务器 go → gopls、调试适配器 delve → dlv;managed 展开为 go install …@latest 加 GOBIN=<目录>;toolDefault 没有额外环境,两个探测命令;GOBIN 为空、GOPATH=/Users/x/go 时默认目录是 /Users/x/go/bin node scripts/package.mjs 通过 Lithe Store 规则 读过 Lithe-store/scripts/validate-index.mjs 的 checkManifest:只检查 schemaVersion、pluginAPIVersion、requires 格式、版本一致和 signatureRequirement,没有权限白名单,新字段不影响;CI 会实际跑一遍 e2e 测试文件在新宿主上编译:把 e2e/host/desktop/** 拷进 #1971 的检出跑 go vet ./internal/workbench/ ./internal/projectgen/,跑完删掉 通过 node scripts/e2e-host.mjs(宿主端到端测试) 没有跑:测试很重,要先征得同意 真实宿主里点安装按钮 没有做,待试装 合入前 依赖 1lck/Lithe-IDEA#1971。#1971 合入后,把 e2e/host/lithe-host.json 改成它在 preview 上的合入提交。 0.1.0 要等包含 #1971 的桌面端预发布版发布后再发版。

Open Graph Description: 背景 试装 Go 插件时,电脑上没有 gopls 或 dlv 的话,插件详情里只显示英文原始错误(“plugin package path is not usable: none of the plan's commands is available”),不知道缺什么、怎么装。 Lithe-IDEA/Lithe-core-rust#53(main c550c2b)加入了通用的 com...

X Description: 背景 试装 Go 插件时,电脑上没有 gopls 或 dlv 的话,插件详情里只显示英文原始错误(“plugin package path is not usable: none of the plan&#39;s commands is available”),不知道缺什么、怎么装。 Lithe-IDEA/Lithe-core-rust#53(main c550c2b)加入了通用的...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:99c2d40f-4908-8062-5a24-626d6f4e9bda
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB0F6:25B433:5CF8F1:7E43C2:6B07E45D
html-safe-nonce59769e0cf564d996c677dac3eddbd3f45a1d0f249c228122f8f8ebdc886fae3f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEY2OjI1QjQzMzo1Q0Y4RjE6N0U0M0MyOjZCMDdFNDVEIiwidmlzaXRvcl9pZCI6Ijc1MzU1ODM4Mzg0Njc1MTU0ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac54fc3040cc95073f0cf1828f7d5a4b26678a0e871833ec42b8494ce14bedf21e
hovercard-subject-tagpull_request:5321085567
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
twitter:imagehttps://avatars.githubusercontent.com/u/145102356?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/145102356?s=400&v=4
og:image:alt背景 试装 Go 插件时,电脑上没有 gopls 或 dlv 的话,插件详情里只显示英文原始错误(“plugin package path is not usable: none of the plan's commands is available”),不知道缺什么、怎么装。 Lithe-IDEA/Lithe-core-rust#53(main c550c2b)加入了通用的 com...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0168e23a2b2810079baf03b0f12cd0e1e2092b544d3ac9fc0696e797ed643c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/lithe-plugin-go git https://github.com/Lithe-IDEA/lithe-plugin-go.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1426387415
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-go
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1426387415
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-go
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb23e2273e07767111c5ecbe6358628e57161e5ee
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-go%2Fpull%2F8%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-go%2Fpull%2F8%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Lithe-IDEA%2Flithe-plugin-go
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-gohttps://github.com/Lithe-IDEA/lithe-plugin-go
Codehttps://github.com/Lithe-IDEA/lithe-plugin-go
Issues1 (1)https://github.com/Lithe-IDEA/lithe-plugin-go/issues
Pull requests1 (1)https://github.com/Lithe-IDEA/lithe-plugin-go/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-go/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-go/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-go/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-go/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-go%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FLithe-IDEA%2Flithe-plugin-go%2Fissues%2Fnew%2Fchoose
xiaoyumuxihttps://github.com/xiaoyumuxi
mainhttps://github.com/Lithe-IDEA/lithe-plugin-go/tree/main
feat/command-installershttps://github.com/Lithe-IDEA/lithe-plugin-go/tree/feat/command-installers
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8
Commits 2 https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/commits
Checks 1 https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
feat: 缺少 gopls、dlv 时可以在插件详情里安装(commandInstallers) https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#top
Show all changes 2 commits https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
527a510 feat: 缺少 gopls、dlv 时可以在插件详情里安装 xiaoyumuxi Nov 15, 2026 https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/commits/527a510d427a1c224c408be2fb958c93e1277e3c
241d4c2 docs: 预发布说明和 0.1.0 发布说明补上 commandInstallers 的宿主依赖 xiaoyumuxi Nov 15, 2026 https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/commits/241d4c24976d518d6ed450d4ba6855b464fc3f26
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
README.md https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
feature-matrix.md https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
v0.1.0.md https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-ec01c11e230ce6438a71b9d968c5098a4fa99897cc758328debed3da97f58af3
lithe-host.json https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-c013178d58d8dfd69f434e74897cd81b468b0e418d164ee2635da2652bb100ca
plugin.json https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-dce9d92a8c340c7698d19edcb4c1b2743899db3bd6c27250e173ea599be6f4e8
README.mdhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/Lithe-IDEA/lithe-plugin-go/blob/241d4c24976d518d6ed450d4ba6855b464fc3f26/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/feature-matrix.mdhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
View file https://github.com/Lithe-IDEA/lithe-plugin-go/blob/241d4c24976d518d6ed450d4ba6855b464fc3f26/docs/feature-matrix.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-230cb4405678cb67c93fbdcd7658be5c10575acce6ff9051e59d28c27c7f73b0
docs/releases/v0.1.0.mdhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-ec01c11e230ce6438a71b9d968c5098a4fa99897cc758328debed3da97f58af3
View file https://github.com/Lithe-IDEA/lithe-plugin-go/blob/241d4c24976d518d6ed450d4ba6855b464fc3f26/docs/releases/v0.1.0.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-ec01c11e230ce6438a71b9d968c5098a4fa99897cc758328debed3da97f58af3
e2e/host/lithe-host.jsonhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-c013178d58d8dfd69f434e74897cd81b468b0e418d164ee2635da2652bb100ca
View file https://github.com/Lithe-IDEA/lithe-plugin-go/blob/241d4c24976d518d6ed450d4ba6855b464fc3f26/e2e/host/lithe-host.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-c013178d58d8dfd69f434e74897cd81b468b0e418d164ee2635da2652bb100ca
io.github.lithe-idea.go-support/plugin.jsonhttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-dce9d92a8c340c7698d19edcb4c1b2743899db3bd6c27250e173ea599be6f4e8
View file https://github.com/Lithe-IDEA/lithe-plugin-go/blob/241d4c24976d518d6ed450d4ba6855b464fc3f26/io.github.lithe-idea.go-support/plugin.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-dce9d92a8c340c7698d19edcb4c1b2743899db3bd6c27250e173ea599be6f4e8
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-dce9d92a8c340c7698d19edcb4c1b2743899db3bd6c27250e173ea599be6f4e8
https://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files#diff-dce9d92a8c340c7698d19edcb4c1b2743899db3bd6c27250e173ea599be6f4e8
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-go/pull/8/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.