Title: Summaries are not generated due to FileNotFoundException · Issue #1227 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Summaries are not generated due to FileNotFoundException · Issue #1227 · UnitTestBot/UTBotJava
X Title: Summaries are not generated due to FileNotFoundException · Issue #1227 · UnitTestBot/UTBotJava
Description: Description Summaries are not generated due to FileNotFoundException thrown in the SourceCodeParser.kt:45 The error message is the following: "C:\Users
Open Graph Description: Description Summaries are not generated due to FileNotFoundException thrown in the SourceCodeParser.kt:45 The error message is the following: "C:\Users
X Description: Description Summaries are not generated due to FileNotFoundException thrown in the SourceCodeParser.kt:45 The error message is the following: "C:\Users<username>.jdks\corretto-11.0.16.1\...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1227
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Summaries are not generated due to FileNotFoundException ","articleBody":"**Description**\r\n\r\nSummaries are not generated due to FileNotFoundException thrown in the [SourceCodeParser.kt:45](https://github.com/UnitTestBot/UTBotJava/blob/main/utbot-summary/src/main/kotlin/org/utbot/summary/ast/SourceCodeParser.kt#L45)\r\n\r\nThe error message is the following: \"C:\\Users\\\u003cusername\u003e\\.jdks\\corretto-11.0.16.1\\lib\\src.zip!\\java.base\\java\\lang\\Math.java (??????? ?? ??????? ????? ????????? ????)\"\r\n\r\nNeed to say that the Math.java file is exist as a Zip entry in the archive with sources mentioned above\r\n\r\n**To Reproduce**\r\n\r\n1. Run runIde Gradle task\r\n2. Copy to the open project the mentioned below snippet of code\r\n3. Use plugin to generate tests for DoubleFunctions::hypo method\r\n\r\n```\r\npublic class DoubleFunctions {\r\n public double hypo(double a, double b) {\r\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));\r\n }\r\n\r\n @SuppressWarnings(\"ManualMinMaxCalculation\")\r\n public double max(double a, double b) {\r\n return a \u003e b ? a : b;\r\n }\r\n\r\n public double circleSquare(double r) {\r\n if (r \u003c 0 || Double.isNaN(r) || r \u003e 10000) {\r\n throw new IllegalArgumentException();\r\n }\r\n double square = Math.PI * r * r;\r\n if (square \u003e 777.85) {\r\n return square;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n\r\n public int numberOfRootsInSquareFunction(double a, double b, double c) {\r\n\r\n double result = b * b - 4 * a * c;\r\n if (result \u003e 0) {\r\n return 2;\r\n } else if (result == 0) {\r\n return 1;\r\n }\r\n return 0;\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nTests with summaries should be generated.\r\n\r\n**Actual behavior**\r\n\r\nTests are generated without summaries.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\r\n\r\n**Environment**\r\n\r\nThe Coretto jdk 11.0.16.1 is installed and used in both, initial and debug IDEs\r\n\r\n\r\n","author":{"url":"https://github.com/amandelpie","@type":"Person","name":"amandelpie"},"datePublished":"2022-10-25T08:49:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1227/UTBotJava/issues/1227"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fef2891c-63cb-8420-b5f3-4c5095facb55 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB9C:4ACA0:C07D:F458:698E75FB |
| html-safe-nonce | c9386198a6552c91a99de59563e08cd8586126f5f857bf414ae8617e689a6d04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjlDOjRBQ0EwOkMwN0Q6RjQ1ODo2OThFNzVGQiIsInZpc2l0b3JfaWQiOiI3MDc2NzkzMzc0NTk0NzI1MzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 009a254577baf3fbd5b2d4f858723e2eb5e0064e42153fa4a8d2e64b73a1e628 |
| hovercard-subject-tag | issue:1422101399 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/1227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d553e24ff15cd5a7d463dfd8f61e357ac4dba64754cbff4c6d0ae41d61ac204/UnitTestBot/UTBotJava/issues/1227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d553e24ff15cd5a7d463dfd8f61e357ac4dba64754cbff4c6d0ae41d61ac204/UnitTestBot/UTBotJava/issues/1227 |
| og:image:alt | Description Summaries are not generated due to FileNotFoundException thrown in the SourceCodeParser.kt:45 The error message is the following: "C:\Users |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amandelpie |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width