René's URL Explorer Experiment


Title: UnifiedDiffParserException: expected file start line not found occurred when parse one Git format patch file · Issue #84 · java-diff-utils/java-diff-utils · GitHub

Open Graph Title: UnifiedDiffParserException: expected file start line not found occurred when parse one Git format patch file · Issue #84 · java-diff-utils/java-diff-utils

X Title: UnifiedDiffParserException: expected file start line not found occurred when parse one Git format patch file · Issue #84 · java-diff-utils/java-diff-utils

Description: Describe the bug UnifiedDiffParserException: expected file start line not found occured when parse one Git format patch file To Reproduce Steps to reproduce the behavior: Example data simple programm snippet See error the git format patc...

Open Graph Description: Describe the bug UnifiedDiffParserException: expected file start line not found occured when parse one Git format patch file To Reproduce Steps to reproduce the behavior: Example data simple progra...

X Description: Describe the bug UnifiedDiffParserException: expected file start line not found occured when parse one Git format patch file To Reproduce Steps to reproduce the behavior: Example data simple progra...

Opengraph URL: https://github.com/java-diff-utils/java-diff-utils/issues/84

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UnifiedDiffParserException: expected file start line not found occurred when parse one Git format patch file","articleBody":"**Describe the bug**\r\nUnifiedDiffParserException: expected file start line not found occured when parse one Git format patch file\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Example data\r\n2. simple programm snippet\r\n3. See error\r\n\r\nthe git format patch file is here:\r\n```\r\nFrom b53e612a2ab5ff15d14860e252f84c0f343fe93a Mon Sep 17 00:00:00 2001\r\nFrom: nmancus1 \u003cnmancus1\r\nDate: Thu, 4 Jun 2020 11:46:34 -0400\r\nSubject: [PATCH] minor: Add input file for Java14 instanceof with pattern\r\n matching (#7290)\r\n\r\n---\r\n config/ant-phase-verify.xml                        |  2 +\r\n .../InputJava14InstanceofWithPatternMatching.java  | 76 ++++++++++++++++++++++\r\n 2 files changed, 78 insertions(+)\r\n create mode 100644 src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14InstanceofWithPatternMatching.java\r\n\r\ndiff --git a/config/ant-phase-verify.xml b/config/ant-phase-verify.xml\r\nindex d27ffef..e0285ce 100644\r\n--- a/config/ant-phase-verify.xml\r\n+++ b/config/ant-phase-verify.xml\r\n@@ -148,6 +148,8 @@\r\n          \u003cexclude name=\"**/InputMainFrameModelIncorrectClass.java\"/\u003e\r\n          \u003cexclude name=\"**/InputBeforeExecutionExclusionFileFilterIncorrectClass.java\"/\u003e\r\n          \u003cexclude name=\"**/InputJavaParser.java\"/\u003e\r\n+         \u003c!-- until https://github.com/checkstyle/checkstyle/issues/7290 --\u003e\r\n+         \u003cexclude name=\"**/InputJava14InstanceofWithPatternMatching.java\"/\u003e\r\n          \u003c!-- Cannot parse until Java 14 support --\u003e\r\n          \u003cexclude name=\"**/InputJava14Records.java\"/\u003e\r\n         \u003c/fileset\u003e\r\ndiff --git a/src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14InstanceofWithPatternMatching.java b/src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14InstanceofWithPatternMatching.java\r\nnew file mode 100644\r\nindex 0000000..8fa3eba\r\n--- /dev/null\r\n+++ b/src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/java14/InputJava14InstanceofWithPatternMatching.java\r\n@@ -0,0 +1,76 @@\r\n+//non-compiled with javac: Compilable with Java14\r\n+package com.puppycrawl.tools.checkstyle.grammar.java14;\r\n+\r\n+import java.util.Arrays;\r\n+import java.util.Locale;\r\n...... I removed it\r\n+        }\r\n+    }\r\n+}\r\n--\r\n2.7.4\r\n```\r\n\r\nwhen I run the follow codes, the exception happened in `UnifiedDiffReader.parseUnifiedDiff`\r\n```java\r\nfinal String fullFileName = getPath(fileName);\r\n        final FileInputStream ins = new FileInputStream(fullFileName);\r\n        return UnifiedDiffReader.parseUnifiedDiff(ins);\r\n```\r\n\r\nerror information:\r\n```sh\r\ncom.github.difflib.unifieddiff.UnifiedDiffParserException: expected file start line not found\r\n\r\n\tat com.github.difflib.unifieddiff.UnifiedDiffReader.parse(UnifiedDiffReader.java:90)\r\n\tat com.github.difflib.unifieddiff.UnifiedDiffReader.parseUnifiedDiff(UnifiedDiffReader.java:136)\r\n\tat com.github.checkstyle.patchfilter.SuppressionPatchFilterTest.getUnifiedDiff(SuppressionPatchFilterTest.java:232)\r\n\tat com.github.checkstyle.patchfilter.SuppressionPatchFilterTest.testGitFormatPatchLinuxTwo(SuppressionPatchFilterTest.java:151)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)\r\n\tat com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)\r\n\r\n```\r\n\r\n**Expected behavior**\r\nA clear and concise description of what you expected to happen.\r\n\r\nI hope to parse this file correctly.\r\n**System**\r\n - Java version 1.8\r\n - Version [e.g. 22]\r\nMaven plugin\r\n```\r\n  \u003cgroupId\u003eio.github.java-diff-utils\u003c/groupId\u003e\r\n  \u003cartifactId\u003ejava-diff-utils\u003c/artifactId\u003e\r\n  \u003cversion\u003e4.5\u003c/version\u003e\r\n```\r\n\r\n","author":{"url":"https://github.com/HuGanghui","@type":"Person","name":"HuGanghui"},"datePublished":"2020-06-18T09:36:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/84/java-diff-utils/issues/84"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:291373b5-54d5-c61a-0cf6-a0bef17a8815
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAC88:4D9DF:1C4927D:27E7F3F:696909AB
html-safe-nonceae361ff1aecb133bd894e2795689acb4412e4144a6aad27cf20f643ab406718f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzg4OjREOURGOjFDNDkyN0Q6MjdFN0YzRjo2OTY5MDlBQiIsInZpc2l0b3JfaWQiOiIzMzE0ODIxMDU3NDg1NTM5NzU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2c27b9719f812fcf35e969522595bb2c55dcae7b69c069d7ee8a6b9529ada8fb
hovercard-subject-tagissue:641060299
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/java-diff-utils/java-diff-utils/84/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0bd6f80c245745184637e98736d4a22b3c5251c89354a0f09a06937a825779f2/java-diff-utils/java-diff-utils/issues/84
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0bd6f80c245745184637e98736d4a22b3c5251c89354a0f09a06937a825779f2/java-diff-utils/java-diff-utils/issues/84
og:image:altDescribe the bug UnifiedDiffParserException: expected file start line not found occured when parse one Git format patch file To Reproduce Steps to reproduce the behavior: Example data simple progra...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHuGanghui
hostnamegithub.com
expected-hostnamegithub.com
Nonee6156bd4ef9f2dc8dadf4c49a8f7ed8532186388cef72eda3ccb9f0ab3b8cfca
turbo-cache-controlno-preview
go-importgithub.com/java-diff-utils/java-diff-utils git https://github.com/java-diff-utils/java-diff-utils.git
octolytics-dimension-user_id40540835
octolytics-dimension-user_loginjava-diff-utils
octolytics-dimension-repository_id86663812
octolytics-dimension-repository_nwojava-diff-utils/java-diff-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id86663812
octolytics-dimension-repository_network_root_nwojava-diff-utils/java-diff-utils
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
releaseee2210c3e58153aae53400c942f8a7b4bbb43ec4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/java-diff-utils/java-diff-utils/issues/84#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F84
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F84
Sign up https://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=java-diff-utils%2Fjava-diff-utils
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/84
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/84
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/84
java-diff-utils https://github.com/java-diff-utils
java-diff-utilshttps://github.com/java-diff-utils/java-diff-utils
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/84
Notifications https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Fork 215 https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Star 1.5k https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Code https://github.com/java-diff-utils/java-diff-utils
Issues 1 https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests 1 https://github.com/java-diff-utils/java-diff-utils/pulls
Discussions https://github.com/java-diff-utils/java-diff-utils/discussions
Actions https://github.com/java-diff-utils/java-diff-utils/actions
Projects 0 https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/java-diff-utils/java-diff-utils/security
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/84
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
Code https://github.com/java-diff-utils/java-diff-utils
Issues https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests https://github.com/java-diff-utils/java-diff-utils/pulls
Discussions https://github.com/java-diff-utils/java-diff-utils/discussions
Actions https://github.com/java-diff-utils/java-diff-utils/actions
Projects https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security https://github.com/java-diff-utils/java-diff-utils/security
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/84
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/84
UnifiedDiffParserException: expected file start line not found occurred when parse one Git format patch filehttps://github.com/java-diff-utils/java-diff-utils/issues/84#top
https://github.com/HuGanghui
https://github.com/HuGanghui
HuGanghuihttps://github.com/HuGanghui
on Jun 18, 2020https://github.com/java-diff-utils/java-diff-utils/issues/84#issue-641060299
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.