René's URL Explorer Experiment


Title: Unable to format records · Issue #460 · google/google-java-format · GitHub

Open Graph Title: Unable to format records · Issue #460 · google/google-java-format

X Title: Unable to format records · Issue #460 · google/google-java-format

Description: To reproduce: build 16b56a3 with mvn clean verify create Foo.java in core\target: record Foo(int id) {} in core\target, run java -jar google-java-format-1.8-SNAPSHOT-all-deps.jar Foo.java an exception occurs at https://github.com/google/...

Open Graph Description: To reproduce: build 16b56a3 with mvn clean verify create Foo.java in core\target: record Foo(int id) {} in core\target, run java -jar google-java-format-1.8-SNAPSHOT-all-deps.jar Foo.java an except...

X Description: To reproduce: build 16b56a3 with mvn clean verify create Foo.java in core\target: record Foo(int id) {} in core\target, run java -jar google-java-format-1.8-SNAPSHOT-all-deps.jar Foo.java an except...

Opengraph URL: https://github.com/google/google-java-format/issues/460

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to format records","articleBody":"To reproduce:\r\n* build 16b56a3 with `mvn clean verify`\r\n* create `Foo.java` in core\\target:\r\n````java\r\nrecord Foo(int id) {}\r\n````\r\n* in core\\target, run `java -jar google-java-format-1.8-SNAPSHOT-all-deps.jar Foo.java`\r\n* an exception occurs at https://github.com/google/google-java-format/blob/master/core/src/main/java/com/google/googlejavaformat/java/java14/Java14InputAstVisitor.java#L121:\r\n````\r\nFoo.java:1:2: error: java.util.NoSuchElementException\r\n        at com.google.common.collect.MoreCollectors$ToOptionalState.getElement(MoreCollectors.java:158)\r\n        at com.google.common.collect.MoreCollectors.lambda$static$1(MoreCollectors.java:70)\r\n        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:582)\r\n        at com.google.googlejavaformat.java.java14.Java14InputAstVisitor.visitRecordDeclaration(Java14InputAstVisitor.java:121)\r\n        at com.google.googlejavaformat.java.java14.Java14InputAstVisitor.visitClass(Java14InputAstVisitor.java:86)\r\n        at com.google.googlejavaformat.java.java14.Java14InputAstVisitor.visitClass(Java14InputAstVisitor.java:44)\r\n        at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:823)\r\n        at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)\r\n        at com.google.googlejavaformat.java.JavaInputAstVisitor.scan(JavaInputAstVisitor.java:330)\r\n        at com.google.googlejavaformat.java.JavaInputAstVisitor.visitCompilationUnit(JavaInputAstVisitor.java:375)\r\n        at com.google.googlejavaformat.java.JavaInputAstVisitor.visitCompilationUnit(JavaInputAstVisitor.java:158)\r\n        at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:603)\r\n        at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)\r\n        at com.google.googlejavaformat.java.JavaInputAstVisitor.scan(JavaInputAstVisitor.java:330)\r\n        at com.google.googlejavaformat.java.Formatter.format(Formatter.java:170)\r\n        at com.google.googlejavaformat.java.Formatter.getFormatReplacements(Formatter.java:291)\r\n        at com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:267)\r\n        at com.google.googlejavaformat.java.FormatFileCallable.call(FormatFileCallable.java:45)\r\n        at com.google.googlejavaformat.java.FormatFileCallable.call(FormatFileCallable.java:26)\r\n        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\r\n        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)\r\n        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)\r\n        at java.base/java.lang.Thread.run(Thread.java:832)\r\n````","author":{"url":"https://github.com/anthonyvdotbe","@type":"Person","name":"anthonyvdotbe"},"datePublished":"2020-04-26T16:45:17Z","url":"https://github.com/google/google-java-format/issues/460"}

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:ff386e85-dd11-3a38-50fb-04afab23b941
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id957E:12CF1F:17F441:213F48:6AFBDEDF
html-safe-noncee5da08fd88cba0e6a66eb0075a228bfd67909ce75300fe8df6654ba67025c8f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTdFOjEyQ0YxRjoxN0Y0NDE6MjEzRjQ4OjZBRkJERURGIiwidmlzaXRvcl9pZCI6IjUzNzY1ODI1MDAxOTcyNTAyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac27793a017bf91891672fabf29c2337ce1b8cc6230309b4c68d94e8169384105f
hovercard-subject-tagissue:607056296
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/google/google-java-format/460/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a78a218c163a4e3d47f16c95c932d3052dc17645deea37716a910105027ecf45/google/google-java-format/issues/460
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a78a218c163a4e3d47f16c95c932d3052dc17645deea37716a910105027ecf45/google/google-java-format/issues/460
og:image:altTo reproduce: build 16b56a3 with mvn clean verify create Foo.java in core\target: record Foo(int id) {} in core\target, run java -jar google-java-format-1.8-SNAPSHOT-all-deps.jar Foo.java an except...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameanthonyvdotbe
hostnamegithub.com
expected-hostnamegithub.com
None744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec
turbo-cache-controlno-preview
go-importgithub.com/google/google-java-format git https://github.com/google/google-java-format.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id35448780
octolytics-dimension-repository_nwogoogle/google-java-format
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35448780
octolytics-dimension-repository_network_root_nwogoogle/google-java-format
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
releasedf859c48a4c8b4c0009c19bb4e82101aacb4b998
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/google/google-java-format/issues/460#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fgoogle-java-format%2Fissues%2F460
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%2Fgoogle%2Fgoogle-java-format%2Fissues%2F460
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=google%2Fgoogle-java-format
Reloadhttps://github.com/google/google-java-format/issues/460
Reloadhttps://github.com/google/google-java-format/issues/460
Reloadhttps://github.com/google/google-java-format/issues/460
googlehttps://github.com/google
google-java-formathttps://github.com/google/google-java-format
Codehttps://github.com/google/google-java-format
Issues84 (84)https://github.com/google/google-java-format/issues
Pull requests35 (35)https://github.com/google/google-java-format/pulls
Actionshttps://github.com/google/google-java-format/actions
Projectshttps://github.com/google/google-java-format/projects
Wikihttps://github.com/google/google-java-format/wiki
Security and qualityhttps://github.com/google/google-java-format/security
Insightshttps://github.com/google/google-java-format/pulse
https://github.com/google/google-java-format
New issuehttps://github.com/login?return_to=https://github.com/google/google-java-format/issues/460
New issuehttps://github.com/login?return_to=https://github.com/google/google-java-format/issues/460
#461https://github.com/google/google-java-format/pull/461
Unable to format recordshttps://github.com/google/google-java-format/issues/460#top
#461https://github.com/google/google-java-format/pull/461
https://github.com/cushon
https://github.com/anthonyvdotbe
anthonyvdotbehttps://github.com/anthonyvdotbe
on Apr 26, 2020https://github.com/google/google-java-format/issues/460#issue-607056296
16b56a3https://github.com/google/google-java-format/commit/16b56a33b0019f83c22f5a8969410ded7ca1d2b0
https://github.com/google/google-java-format/blob/master/core/src/main/java/com/google/googlejavaformat/java/java14/Java14InputAstVisitor.java#L121https://github.com/google/google-java-format/blob/master/core/src/main/java/com/google/googlejavaformat/java/java14/Java14InputAstVisitor.java#L121
cushonhttps://github.com/cushon
on Apr 26, 2020https://github.com/google/google-java-format/issues/460#event-3273461325
cpovirkhttps://github.com/cpovirk
on Apr 27, 2020https://github.com/google/google-java-format/issues/460#event-3277119252
Fix formatting of records without an explicit constructorhttps://github.com/google/google-java-format/commit/a399e821dab2ad6286d5f5ad4ff8299cbc8b41fb
a399e82https://github.com/google/google-java-format/commit/a399e821dab2ad6286d5f5ad4ff8299cbc8b41fb
cpovirkhttps://github.com/cpovirk
completedhttps://github.com/google/google-java-format/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#461https://github.com/google/google-java-format/pull/461
on Apr 27, 2020https://github.com/google/google-java-format/issues/460#event-3277150551
cpovirkhttps://github.com/cpovirk
on Apr 27, 2020https://github.com/google/google-java-format/issues/460#event-3277150650
Fix formatting of records without an explicit constructorhttps://github.com/google/google-java-format/commit/ca529a291f766936da8ff70aaa706f4ccf2442b2
ca529a2https://github.com/google/google-java-format/commit/ca529a291f766936da8ff70aaa706f4ccf2442b2
robfighttps://github.com/robfig
on Dec 17, 2020https://github.com/google/google-java-format/issues/460#event-4126199961
Sync upstream changes. (#3)https://github.com/yext-eng/yext-java-format/commit/1b384317e0f4f62a35b8247a14283912994394b0
#3https://github.com/yext-eng/yext-java-format/pull/3
1b38431https://github.com/yext-eng/yext-java-format/commit/1b384317e0f4f62a35b8247a14283912994394b0
Sign up for freehttps://github.com/signup?return_to=https://github.com/google/google-java-format/issues/460
Sign in to commenthttps://github.com/login?return_to=https://github.com/google/google-java-format/issues/460
cushonhttps://github.com/cushon
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.