René's URL Explorer Experiment


Title: feat(logging): LuaLS 日志写入宿主会话日志目录 by xiaoyumuxi · Pull Request #6 · Lithe-IDEA/lithe-plugin-lua · GitHub

Open Graph Title: feat(logging): LuaLS 日志写入宿主会话日志目录 by xiaoyumuxi · Pull Request #6 · Lithe-IDEA/lithe-plugin-lua

X Title: feat(logging): LuaLS 日志写入宿主会话日志目录 by xiaoyumuxi · Pull Request #6 · Lithe-IDEA/lithe-plugin-lua

Description: 概要 Lua 插件接入结构化日志 v2:插件升到插件 API 2,通过启动模板 ${logDir} 把宿主分配的会话日志目录传给 LuaLS,LuaLS 只保留 warn/error 并写入该目录,不再在用户缓存目录下自建 log/。语言服务生命周期、window/logMessage 和有界 stderr 仍由宿主统一写入 lsp/lua 通道。本插件没有后端,也不使用 SDK。 依赖: 宿主 https://github.com/1lck/Lithe-IDEA/pull/1676(插件 API 2 的 ${logDir} 启动模板,已合入 preview,尚未进入稳定版) 与宿主 #1699 和 SDK #17 没有代码依赖;一起提交是因为同属结构化日志 v2 的插件接入。 清单(plugin.json) pluginAPIVersion 从 1 改为 2。 语言服务器启动参数从 [] 改为 ["${logDir}"]。 启动器(bin/lithe-lua-language-server) 第一个参数必须是宿主提供的日志目录: 缺失时以 “Lithe must supply the current session log directory” 退出。 不是绝对路径时以退出码 64 拒绝。 校验后 shift,其余参数照旧传给 LuaLS。 只创建 $state_dir/meta,不再创建 $state_dir/log。 LuaLS 参数改为 --logpath="$log_dir" --loglevel=warn;--metapath 仍指向用户缓存目录。 README 日志去向:LuaLS 的警告和错误写入当前会话的 plugins/io.github.lithe-idea.lua-support/files/;生成的标准库定义仍在 ~/Library/Caches/io.github.lithe-idea.lua-support/meta/(设置 XDG_CACHE_HOME 时用其对应目录),两者生命周期独立。 安装要求改为支持插件 API 2、结构化日志 v2 和本地 logDirectory 的最新 macOS Lithe preview。 新增“诊断日志”一节: --logpath、--loglevel、--metapath 是 LuaLS 3.19.1 的公开 CLI 参数;默认只保留 warn/error,避免 trace/debug 的协议和文档内容写进文件。 LuaLS 原生文件只用于单独排障,不等同于宿主脱敏后的 v2 事件。 启动器不删除旧版本留在缓存目录里的日志。 旧宿主或远程进程缺少 logDirectory 时,按已有启动契约明确拒绝 ${logDir},不回退到安装目录。 只发布 macOS;Windows 仍是 v1,不声明支持 Windows v2。 目录说明和“改造成其他插件”步骤同步更新。 验证 本地: sh -n 检查启动器语法通过。 传相对路径时退出码 64,不传参数时报上面的提示并退出。 node scripts/package.mjs 通过,生成 arm64、x64 两个包。 此前在 Codex 工作区(计划记录):固定 SHA 的 LuaLS 3.19.1 两架构打包;真实 arm64 启动;1214 个安装文件哈希在运行后不变,进程正常回收。 本地没有跑 Lithe Store 规则校验,交给 CI。 预期的 CI 状态与合并顺序 CI 只打包并做 Store 规则校验,不检出宿主,预期通过。 发布要等包含 #1676 的 Lithe 稳定版:不含 #1676 的宿主不提供 ${logDir},LuaLS 无法启动。 与宿主 #1699 无合并先后要求。 本 PR 没有改插件版本号(仍为 0.3.0)。 限制 只覆盖 macOS 宿主;Windows 仍是 v1 writer。 未在 Lithe 整机日志窗口里做端到端验收。 配套 PR: 宿主 Core:1lck/Lithe-IDEA#1699 SDK:Lithe-IDEA/lithe-plugin-docs#17 Database 插件:Lithe-IDEA/lithe-plugin-database#2 Docker 插件:Lithe-IDEA/lithe-plugin-docker#3 HTTP Client 插件:Lithe-IDEA/lithe-plugin-http-client#5 Cargo 插件:https://github.com/Lithe-IDEA/lithe-plugin-cargo/pull/5 SVN 插件:Lithe-IDEA/lithe-plugin-svn#2 Maven 插件:Lithe-IDEA/lithe-plugin-maven#9 Lua 插件:https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6(本 PR) Go 插件:Lithe-IDEA/lithe-plugin-go#3 Gradle 插件:Lithe-IDEA/lithe-plugin-gradle#5 LLDB 插件:Lithe-IDEA/lithe-plugin-lldb#3 PHP 插件:Lithe-IDEA/lithe-plugin-php#3

Open Graph Description: 概要 Lua 插件接入结构化日志 v2:插件升到插件 API 2,通过启动模板 ${logDir} 把宿主分配的会话日志目录传给 LuaLS,LuaLS 只保留 warn/error 并写入该目录,不再在用户缓存目录下自建 log/。语言服务生命周期、window/logMessage 和有界 stderr 仍由宿主统一写入 lsp/lua 通道。本插件没有后端,也不使用 SDK。 依赖: ...

X Description: 概要 Lua 插件接入结构化日志 v2:插件升到插件 API 2,通过启动模板 ${logDir} 把宿主分配的会话日志目录传给 LuaLS,LuaLS 只保留 warn/error 并写入该目录,不再在用户缓存目录下自建 log/。语言服务生命周期、window/logMessage 和有界 stderr 仍由宿主统一写入 lsp/lua 通道。本插件没有后端,也不使用 SDK。 依赖: ...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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:797435b5-acd3-ad6a-7ebe-57aa35d3f863
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id976E:2636FF:1B4C224:256CF17:6B071AFD
html-safe-nonce2a6353a4cfdf79670f1104d9f2df12ecac3a605536d934d82431be2462b01576
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzZFOjI2MzZGRjoxQjRDMjI0OjI1NkNGMTc6NkIwNzFBRkQiLCJ2aXNpdG9yX2lkIjoiMTA2NTY4ODcyNzc1NTg4OTQwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac384c565f41617e15251e2dd7e903d4f451d71eaeccfde3e9dc52c2e8c08a5cea
hovercard-subject-tagpull_request:5148242243
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-lua/pull/6/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概要 Lua 插件接入结构化日志 v2:插件升到插件 API 2,通过启动模板 ${logDir} 把宿主分配的会话日志目录传给 LuaLS,LuaLS 只保留 warn/error 并写入该目录,不再在用户缓存目录下自建 log/。语言服务生命周期、window/logMessage 和有界 stderr 仍由宿主统一写入 lsp/lua 通道。本插件没有后端,也不使用 SDK。 依赖: ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Lithe-IDEA/lithe-plugin-lua git https://github.com/Lithe-IDEA/lithe-plugin-lua.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1415781792
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1415781792
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-lua
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
release44c43783771de038e2c401dd343799000e8d1253
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-lua%2Fpull%2F6%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-lua%2Fpull%2F6%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-lua
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-luahttps://github.com/Lithe-IDEA/lithe-plugin-lua
Codehttps://github.com/Lithe-IDEA/lithe-plugin-lua
Issueshttps://github.com/Lithe-IDEA/lithe-plugin-lua/issues
Pull requestshttps://github.com/Lithe-IDEA/lithe-plugin-lua/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-lua/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-lua/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-lua/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-lua/insights
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-lua%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-lua%2Fissues%2Fnew%2Fchoose
xiaoyumuxihttps://github.com/xiaoyumuxi
mainhttps://github.com/Lithe-IDEA/lithe-plugin-lua/tree/main
codex/plugin-logging-v2https://github.com/Lithe-IDEA/lithe-plugin-lua/tree/codex/plugin-logging-v2
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6
Commits 1 https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/commits
Checks 1 https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
feat(logging): LuaLS 日志写入宿主会话日志目录 https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#top
Show all changes 1 commit https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
6632183 feat(logging): LuaLS 日志写入宿主会话日志目录 xiaoyumuxi Nov 4, 2026 https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/commits/6632183810b24ad3ded9e25dbf911066bcd1e0e4
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files
README.md https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
lithe-lua-language-server https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-8e310343bbc31d6d0058284e6db6f63b395ded00c0f089fb14e82f60ae1ba720
plugin.json https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-ccab950d4589918c2387d686e6a16242240a5873770832c89b92f7480da261d8
README.mdhttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/Lithe-IDEA/lithe-plugin-lua/blob/6632183810b24ad3ded9e25dbf911066bcd1e0e4/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
io.github.lithe-idea.lua-support/bin/lithe-lua-language-serverhttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-8e310343bbc31d6d0058284e6db6f63b395ded00c0f089fb14e82f60ae1ba720
View file https://github.com/Lithe-IDEA/lithe-plugin-lua/blob/6632183810b24ad3ded9e25dbf911066bcd1e0e4/io.github.lithe-idea.lua-support/bin/lithe-lua-language-server
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/{{ revealButtonHref }}
io.github.lithe-idea.lua-support/plugin.jsonhttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-ccab950d4589918c2387d686e6a16242240a5873770832c89b92f7480da261d8
View file https://github.com/Lithe-IDEA/lithe-plugin-lua/blob/6632183810b24ad3ded9e25dbf911066bcd1e0e4/io.github.lithe-idea.lua-support/plugin.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-ccab950d4589918c2387d686e6a16242240a5873770832c89b92f7480da261d8
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-ccab950d4589918c2387d686e6a16242240a5873770832c89b92f7480da261d8
https://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/files#diff-ccab950d4589918c2387d686e6a16242240a5873770832c89b92f7480da261d8
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-lua/pull/6/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.