René's URL Explorer Experiment


Title: Loading modules.json with the wrong encoding · Issue #218 · microsoft/unitysetup.powershell · GitHub

Open Graph Title: Loading modules.json with the wrong encoding · Issue #218 · microsoft/unitysetup.powershell

X Title: Loading modules.json with the wrong encoding · Issue #218 · microsoft/unitysetup.powershell

Description: After installing Unity Editor 2019.4.15f1 with Unity Hub 2.4.2 on Japanese Windows 10 Pro 2004, Get-UnitySetupInstance complains with the following error: PS C:\Program Files\Unity\Hub\Editor\2019.4.15f1> Get-UnitySetupInstance 警告: ':' ま...

Open Graph Description: After installing Unity Editor 2019.4.15f1 with Unity Hub 2.4.2 on Japanese Windows 10 Pro 2004, Get-UnitySetupInstance complains with the following error: PS C:\Program Files\Unity\Hub\Editor\2019....

X Description: After installing Unity Editor 2019.4.15f1 with Unity Hub 2.4.2 on Japanese Windows 10 Pro 2004, Get-UnitySetupInstance complains with the following error: PS C:\Program Files\Unity\Hub\Editor\2019....

Opengraph URL: https://github.com/microsoft/unitysetup.powershell/issues/218

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Loading modules.json with the wrong encoding","articleBody":"After installing Unity Editor 2019.4.15f1 with Unity Hub 2.4.2 on Japanese Windows 10 Pro 2004, `Get-UnitySetupInstance` complains with the following error:\r\n\r\n```console\r\nPS C:\\Program Files\\Unity\\Hub\\Editor\\2019.4.15f1\u003e Get-UnitySetupInstance\r\n警告: ':' または '}' ではなく無効なオブジェクトが渡されました。 (7767): [{\"id\":\"visualstudio\",\"name\":\"Microsoft Visual Studio Community 2019\",\"description\":\"Downloads and installs.... (snipped)\r\n```\r\n\r\nIt orignates from this line:\r\n\r\nhttps://github.com/microsoft/unitysetup.powershell/blob/602fb720ea42220dae7a85b5b63cbc5538ff06a4/UnitySetup/UnitySetup.psm1#L1236\r\n\r\n`Get-Content -Raw` loads `modules.json` with the wrong encoding which causes subsequent `ConvertFrom-Json` to fail:\r\n\r\n```console\r\nPS C:\\Program Files\\Unity\\Hub\\Editor\\2019.4.15f1\u003e Get-Content .\\modules.json -Raw | ConvertFrom-Json\r\nConvertFrom-Json : ':' または '}' ではなく無効なオブジェクトが渡されました。 (7767): [{\"id\":\"visualstudio\",\"name\":\"Microsoft Visual Studio Community 2019\",\"description\":\"Downloads and installs.... (snipped)\r\n```\r\n\r\n`modules.json` is actually in UTF-8 without BOM.  `Get-Content -Encoding UTF8` would workaround this case, but I'm not confident whether it's a correct fix:\r\n\r\n```console\r\nPS C:\\Program Files\\Unity\\Hub\\Editor\\2019.4.15f1\u003e Get-Content .\\modules.json -Encoding UTF8 | ConvertFrom-Json\r\n\r\n\r\nid            : visualstudio\r\nname          : Microsoft Visual Studio Community 2019\r\ndescription   : Downloads and installs Microsoft Visual Studio Community 2019. By installing this you accept the license terms for Visual Studio.\r\ndownloadUrl   : https://go.microsoft.com/fwlink/?linkid=2086755\r\ncategory      : Dev tools\r\ninstalledSize : 1331200000\r\ndownloadSize  : 1363148800\r\nvisible       : True\r\nselected      : False\r\ncmd           : --productId \"Microsoft.VisualStudio.Product.Community\" --add \"Microsoft.VisualStudio.Workload.ManagedGame\" --add \"Microsoft.VisualStudio.Workload.NativeDesktop\" --add \"Microsoft.VisualStudio.Component.VC.Tools.x86.x64\" --add \"Microsoft.VisualStudio.Comp\r\n                onent.Windows10SDK.16299.Desktop\" --campaign \"Unity3d_Unity\" --passive --norestart --wait\r\neulaUrl1      : https://go.microsoft.com/fwlink/?linkid=2092534\r\neulaLabel1    : Visual Studio 2019 Community License Terms\r\neulaMessage   : Please review and accept the license terms before downloading and installing Microsoft Visual Studio.\r\n\r\n...(snipped)...\r\n\r\nid            : language-ja\r\nname          : 日本語\r\ndescription   : 日本語\r\ndownloadUrl   : https://new-translate.unity3d.jp/v1/live/54/2019.4/ja\r\ncategory      : Language packs (Preview)\r\nvisible       : True\r\nselected      : False\r\ndestination   : {UNITY_PATH}/Editor/Data/Localization\r\ninstalledSize : 1739231\r\ndownloadSize  : 1739231\r\n\r\n...(snipped)\r\n```\r\n\r\nIt would be better to have a fall back path on modules.json parsing failures by adding a try-catch block.","author":{"url":"https://github.com/yaegashi","@type":"Person","name":"yaegashi"},"datePublished":"2020-11-29T05:20:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/218/unitysetup.powershell/issues/218"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:977cf5ab-7a80-77a4-6ba9-e2b7c377c1a8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABB4:1C3EE2:395342E:4AA13A2:697D8CDC
html-safe-nonce8cd6d64800e26c5ee1fd7b882a1a75ac617a191e9532160dea8f703d5bd08fcb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkI0OjFDM0VFMjozOTUzNDJFOjRBQTEzQTI6Njk3RDhDREMiLCJ2aXNpdG9yX2lkIjoiNDY0OTIzNTk3MDA3ODM3OTIyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4956e54f7e8b9e72f12d6e1df3aea64ea2b262654e15491ef25da4374bf1bf6f
hovercard-subject-tagissue:752842027
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/microsoft/unitysetup.powershell/218/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7180bd9ac31098f1544a87e52034a9066f8d41a8ea3a31c82c7096693147bba7/microsoft/unitysetup.powershell/issues/218
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7180bd9ac31098f1544a87e52034a9066f8d41a8ea3a31c82c7096693147bba7/microsoft/unitysetup.powershell/issues/218
og:image:altAfter installing Unity Editor 2019.4.15f1 with Unity Hub 2.4.2 on Japanese Windows 10 Pro 2004, Get-UnitySetupInstance complains with the following error: PS C:\Program Files\Unity\Hub\Editor\2019....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyaegashi
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/microsoft/unitysetup.powershell git https://github.com/microsoft/unitysetup.powershell.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id112545453
octolytics-dimension-repository_nwomicrosoft/unitysetup.powershell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id112545453
octolytics-dimension-repository_network_root_nwomicrosoft/unitysetup.powershell
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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues/218#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Funitysetup.powershell%2Fissues%2F218
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Funitysetup.powershell%2Fissues%2F218
Sign up https://patch-diff.githubusercontent.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=microsoft%2Funitysetup.powershell
Reloadhttps://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues/218
Reloadhttps://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues/218
Reloadhttps://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues/218
microsoft https://patch-diff.githubusercontent.com/microsoft
unitysetup.powershellhttps://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2Funitysetup.powershell
Fork 46 https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2Funitysetup.powershell
Star 186 https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2Funitysetup.powershell
Code https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell
Issues 31 https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues
Pull requests 6 https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/pulls
Actions https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/actions
Models https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/models
Security 0 https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/security
Insights https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/pulse
Code https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell
Issues https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues
Pull requests https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/pulls
Actions https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/actions
Models https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/models
Security https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/security
Insights https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/unitysetup.powershell/issues/218
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/unitysetup.powershell/issues/218
Loading modules.json with the wrong encodinghttps://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/issues/218#top
bughttps://github.com/microsoft/unitysetup.powershell/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/yaegashi
https://github.com/yaegashi
yaegashihttps://github.com/yaegashi
on Nov 29, 2020https://github.com/microsoft/unitysetup.powershell/issues/218#issue-752842027
unitysetup.powershell/UnitySetup/UnitySetup.psm1https://github.com/microsoft/unitysetup.powershell/blob/602fb720ea42220dae7a85b5b63cbc5538ff06a4/UnitySetup/UnitySetup.psm1#L1236
602fb72https://patch-diff.githubusercontent.com/microsoft/unitysetup.powershell/commit/602fb720ea42220dae7a85b5b63cbc5538ff06a4
bughttps://github.com/microsoft/unitysetup.powershell/issues?q=state%3Aopen%20label%3A%22bug%22
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

Viewport: width=device-width


URLs of crawlers that visited me.