René's URL Explorer Experiment


Title: test-live 偶发失败:保存原生编译目标时返回 java.nativeSettings.failed(约 1/23),错误码无法区分 46 处原因 · Issue #20 · Lithe-IDEA/lithe-plugin-java · GitHub

Open Graph Title: test-live 偶发失败:保存原生编译目标时返回 java.nativeSettings.failed(约 1/23),错误码无法区分 46 处原因 · Issue #20 · Lithe-IDEA/lithe-plugin-java

X Title: test-live 偶发失败:保存原生编译目标时返回 java.nativeSettings.failed(约 1/23),错误码无法区分 46 处原因 · Issue #20 · Lithe-IDEA/lithe-plugin-java

Description: 现象 scripts/compiler/test-live.mjs 的第 3 步 “Save native compiler target and verify real JDT effective settings” 偶发失败,14.7 ms 内直接返回: Error: {"code":-32000,"data":{"code":"java.nativeSettings.failed"},"message":"Reload Java project settings ...

Open Graph Description: 现象 scripts/compiler/test-live.mjs 的第 3 步 “Save native compiler target and verify real JDT effective settings” 偶发失败,14.7 ms 内直接返回: Error: {"code":-32000,"data":{"code":"java.nativeSettings.failed"},...

X Description: 现象 scripts/compiler/test-live.mjs 的第 3 步 “Save native compiler target and verify real JDT effective settings” 偶发失败,14.7 ms 内直接返回: Error: {"code":-32000,"data":{"code":...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test-live 偶发失败:保存原生编译目标时返回 java.nativeSettings.failed(约 1/23),错误码无法区分 46 处原因","articleBody":"## 现象\n\n`scripts/compiler/test-live.mjs` 的第 3 步 “Save native compiler target and verify real JDT effective settings” 偶发失败,14.7 ms 内直接返回:\n\n```\nError: {\"code\":-32000,\"data\":{\"code\":\"java.nativeSettings.failed\"},\"message\":\"Reload Java project settings and check that their native files are readable.\"}\n```\n\n- 环境:macOS arm64,Temurin/Homebrew OpenJDK 21.0.11,JDT LS 1.61.0(`scripts/prepare-jdtls.sh` 准备的测试版本),unmanaged 项目;插件包为 v3.0.0 草稿发布里下载的 `Lithe-Java-Support-3.0.0-darwin-arm64.zip`。\n- 频率:同一台机器共跑约 23 次(本地构建包 + 下载包,unmanaged/eclipse 两种),失败 1 次;失败那次是解压下载包后的第一次运行,随后 15 次连续复跑都通过。\n- 前两步(发现项目、保存引用 JAR 并确认 JDT 类路径)都已通过,失败发生在 `compiler.settings` → `compiler.prepareSettings(editSource)` 之间。\n\n## 分析(未确认)\n\n`backend/src/project_settings.rs` 的 `fail()` 在 46 处调用,全部返回同一个错误码和文案,日志里也没有原因,所以无法从现有输出判断是哪一处。可能的竞态:\n\n1. `edit` 读到的 `.settings/org.eclipse.jdt.core.prefs` 摘要和 `compiler.settings` 返回的 `revision` 不一致(JDT LS 在上一步更新类路径后异步改写了设置文件);\n2. `compiler.settings` 列出来源时,JDT LS 正处在类路径更新的中间状态,返回的项目路径不在工作区根下,`strip_prefix(&root)` 失败。\n\n对用户的影响:在 JDT LS 刚更新类路径时保存编译设置,可能得到“请重新加载 Java 项目设置”的错误,重试可成功;CI 的 macOS 打包任务会因此偶发失败。\n\n由 #16(2248d64)引入的代码,在 #18 / v3.0.0 发版验证时发现,与 #18 的改动无关(#18 没有改 `project_settings.rs`)。\n\n## 建议方案\n\n1. 先让失败可诊断:`fail()` 区分原因(至少区分“revision 不一致”“路径越界”“读写失败”),并按插件日志规范写一条带原因的日志,错误码对“来源已变化”用单独的码,宿主可以提示重新读取而不是笼统报错。\n2. 再按复现出的原因修根因:如果是 revision 竞态,属于正常并发,应返回“来源已变化”让宿主重新读取;如果是 JDT 中间状态,测试和产品都应等 JDT 类路径更新完成后再列出来源。\n3. 测试按 write-stable-tests 规则改成有界等待,不靠重试掩盖。","author":{"url":"https://github.com/1lck","@type":"Person","name":"1lck"},"datePublished":"2026-11-16T14:39:11Z","url":"https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4e4c0584-0ded-5497-6cc5-39e6640f210e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD9EC:138617:821FA6:B400D2:6B070E01
html-safe-nonce98751218cb6bee8377cbdf7180fa921fefa027fce1fd71ae7a9eb59ac022d8c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUVDOjEzODYxNzo4MjFGQTY6QjQwMEQyOjZCMDcwRTAxIiwidmlzaXRvcl9pZCI6IjE2OTAxOTI3Mzk0MTkyMjk2OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4034961a31b4da5017a8a1f7624dc26db1525e7c458f85f86c21084a443ab312
hovercard-subject-tagissue:6423626498
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Lithe-IDEA/lithe-plugin-java/20/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6252f6627fb96f1b43ce1a26bc08b1e24bd4b176aba508cca74e1049671cbc27/Lithe-IDEA/lithe-plugin-java/issues/20
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6252f6627fb96f1b43ce1a26bc08b1e24bd4b176aba508cca74e1049671cbc27/Lithe-IDEA/lithe-plugin-java/issues/20
og:image:alt现象 scripts/compiler/test-live.mjs 的第 3 步 “Save native compiler target and verify real JDT effective settings” 偶发失败,14.7 ms 内直接返回: Error: {"code":-32000,"data":{"code":"java.nativeSettings.failed"},...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username1lck
hostnamegithub.com
expected-hostnamegithub.com
None9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e
turbo-cache-controlno-preview
go-importgithub.com/Lithe-IDEA/lithe-plugin-java git https://github.com/Lithe-IDEA/lithe-plugin-java.git
octolytics-dimension-user_id340144206
octolytics-dimension-user_loginLithe-IDEA
octolytics-dimension-repository_id1446370282
octolytics-dimension-repository_nwoLithe-IDEA/lithe-plugin-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1446370282
octolytics-dimension-repository_network_root_nwoLithe-IDEA/lithe-plugin-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/Lithe-IDEA/lithe-plugin-java/issues/20#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-java%2Fissues%2F20
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-java%2Fissues%2F20
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Lithe-IDEA%2Flithe-plugin-java
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
Lithe-IDEAhttps://github.com/Lithe-IDEA
lithe-plugin-javahttps://github.com/Lithe-IDEA/lithe-plugin-java
Codehttps://github.com/Lithe-IDEA/lithe-plugin-java
Issues3 (3)https://github.com/Lithe-IDEA/lithe-plugin-java/issues
Pull requests1 (1)https://github.com/Lithe-IDEA/lithe-plugin-java/pulls
Actionshttps://github.com/Lithe-IDEA/lithe-plugin-java/actions
Projectshttps://github.com/Lithe-IDEA/lithe-plugin-java/projects
Security and qualityhttps://github.com/Lithe-IDEA/lithe-plugin-java/security
Insightshttps://github.com/Lithe-IDEA/lithe-plugin-java/insights
https://github.com/Lithe-IDEA/lithe-plugin-java
New issuehttps://github.com/login?return_to=https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
New issuehttps://github.com/login?return_to=https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
test-live 偶发失败:保存原生编译目标时返回 java.nativeSettings.failed(约 1/23),错误码无法区分 46 处原因https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20#top
https://github.com/1lck
1lckhttps://github.com/1lck
on Nov 16, 2026https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20#issue-6423626498
#16https://github.com/Lithe-IDEA/lithe-plugin-java/pull/16
#18https://github.com/Lithe-IDEA/lithe-plugin-java/pull/18
#18https://github.com/Lithe-IDEA/lithe-plugin-java/pull/18
#18https://github.com/Lithe-IDEA/lithe-plugin-java/pull/18
Sign up for freehttps://github.com/signup?return_to=https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
Sign in to commenthttps://github.com/login?return_to=https://github.com/Lithe-IDEA/lithe-plugin-java/issues/20
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.