René's URL Explorer Experiment


Title: fix(run): 启动和调试 Java 程序时默认使用 UTF-8 编码 by AACS111 · Pull Request #21 · Lithe-IDEA/lithe-plugin-java · GitHub

Open Graph Title: fix(run): 启动和调试 Java 程序时默认使用 UTF-8 编码 by AACS111 · Pull Request #21 · Lithe-IDEA/lithe-plugin-java

X Title: fix(run): 启动和调试 Java 程序时默认使用 UTF-8 编码 by AACS111 · Pull Request #21 · Lithe-IDEA/lithe-plugin-java

Description: 关联 Issue / Linked issue 无对应 Issue。问题在 Lithe 0.8.1 + Java Support 2.0.1 上复现,详见下文。 类型 / Type fix:缺陷修复 背景 / Why 在中文 Windows 上用 Java Support 运行或调试 Spring Boot 应用(Java 17)时,应用启动失败: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1 ... Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'serve.system' in value "${serve.system}" 控制台中文 banner 和日志也是乱码。同一项目在 IntelliJ IDEA 中正常启动。 根因:Java 18 之前,JVM 用平台字符集读取文本,中文 Windows 上是 GBK。插件启动 JVM 时没有指定编码,Spring 从配置中心拉到的 UTF-8 YAML 被按 GBK 解析失败,配置缺失导致启动失败。IntelliJ IDEA 在启动时会固定 -Dfile.encoding=UTF-8,所以那边正常。Lithe 的运行窗口按 UTF-8 解码进程输出,控制台流也需要固定 UTF-8。 改动 / Changes backend/src/run.rs 新增 with_utf8_encoding:在每次运行、调试和测试启动的参数最前面加入 -Dfile.encoding=UTF-8、-Dsun.stdout.encoding=UTF-8、-Dsun.stderr.encoding=UTF-8。 启动参数里已经设置的同名属性不再重复添加,保留用户的选择。 在 start 中对主类和测试两种启动统一应用;调试时 JDWP agent 仍排在最前。 新增两个单元测试:参数顺序在主类之前;已设置的编码属性被保留。 对 Java 18 及以上版本这些值与默认一致,不改变行为;不限于 Windows,因为宿主运行窗口在所有平台都按 UTF-8 解码输出。 验证 / Verification 命令 平台 结果 cargo test -p lithe-java-backend --lib run:: Windows 11 x64 21 passed(含 2 个新测试) 同一补丁应用到 v2.0.1 并构建 lithe-java-backend,替换本机 2.0.1 插件后端 Windows 11 x64 构建成功;启动 Spring 应用的端到端验证待补 未能执行:端到端验证(用修复后的后端启动 Spring Boot 应用、确认不再出现 MalformedInputException)还没有完成,完成后在本 PR 补充结果。macOS / Linux 未运行。 🤖 Generated with Claude Code

Open Graph Description: 关联 Issue / Linked issue 无对应 Issue。问题在 Lithe 0.8.1 + Java Support 2.0.1 上复现,详见下文。 类型 / Type fix:缺陷修复 背景 / Why 在中文 Windows 上用 Java Support 运行或调试 Spring Boot 应用(Java 17)时,应用启动失败: org.yaml.snakeyaml.er...

X Description: 关联 Issue / Linked issue 无对应 Issue。问题在 Lithe 0.8.1 + Java Support 2.0.1 上复现,详见下文。 类型 / Type fix:缺陷修复 背景 / Why 在中文 Windows 上用 Java Support 运行或调试 Spring Boot 应用(Java 17)时,应用启动失败: org.yaml.snakeyaml.er...

Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:a0ef80de-e22e-e9f8-cb92-3d07ab21b6c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDE98:119623:9B4EA6:D565EE:6B071373
html-safe-noncecbb533a16fe0c8d238b65f539c2042f4d074c9bc3616665f091c7cabd03bf26f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTk4OjExOTYyMzo5QjRFQTY6RDU2NUVFOjZCMDcxMzczIiwidmlzaXRvcl9pZCI6IjU4MTQzMTgyNTM3MDI4NDUyOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5c2471fea55b66a158ddf893ca7358e7c67d2b2c8c9b4de91c1666bbb3dbbf19
hovercard-subject-tagpull_request:5348942078
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-java/pull/21/files
twitter:imagehttps://avatars.githubusercontent.com/u/103710223?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/103710223?s=400&v=4
og:image:alt关联 Issue / Linked issue 无对应 Issue。问题在 Lithe 0.8.1 + Java Support 2.0.1 上复现,详见下文。 类型 / Type fix:缺陷修复 背景 / Why 在中文 Windows 上用 Java Support 运行或调试 Spring Boot 应用(Java 17)时,应用启动失败: org.yaml.snakeyaml.er...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e
turbo-cache-controlno-preview
diff-viewunified
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-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-java/pull/21/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FLithe-IDEA%2Flithe-plugin-java%2Fpull%2F21%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-java%2Fpull%2F21%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-java
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
Reloadhttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
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
Sign up for GitHub https://github.com/signup?return_to=%2FLithe-IDEA%2Flithe-plugin-java%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-java%2Fissues%2Fnew%2Fchoose
AACS111https://github.com/AACS111
Lithe-IDEA:mainhttps://github.com/Lithe-IDEA/lithe-plugin-java/tree/main
AACS111:fix/windows-utf8-launchhttps://github.com/AACS111/lithe-plugin-java/tree/fix/windows-utf8-launch
Conversation 0 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21
Commits 1 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/commits
Checks 0 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/checks
Files changed https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
fix(run): 启动和调试 Java 程序时默认使用 UTF-8 编码 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files#top
Show all changes 1 commit https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
13ead74 fix(run): 启动和调试 Java 程序时默认使用 UTF-8 编码 Nov 17, 2026 https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/commits/13ead74bc09717efbf5ff771dc9a4a1d014b9862
Clear filters https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
Please reload this pagehttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files
backend/src/run.rshttps://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
View file https://github.com/Lithe-IDEA/lithe-plugin-java/blob/13ead74bc09717efbf5ff771dc9a4a1d014b9862/backend/src/run.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/{{ revealButtonHref }}
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
https://github.com/Lithe-IDEA/lithe-plugin-java/pull/21/files#diff-2121cdbdcf570c918916968fcfdfcff4cc9815c8d2cd5f0775862bbebe73d3af
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.