Title: InFinite loop when evaluating dependency · Issue #11 · Visual-Code-Space/AndroidIDE · GitHub
Open Graph Title: InFinite loop when evaluating dependency · Issue #11 · Visual-Code-Space/AndroidIDE
X Title: InFinite loop when evaluating dependency · Issue #11 · Visual-Code-Space/AndroidIDE
Description: Issue Checklist I confirm that this issue is not a duplicate and hasn't been reported before. I agree to follow the project's code of conduct. I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-...
Open Graph Description: Issue Checklist I confirm that this issue is not a duplicate and hasn't been reported before. I agree to follow the project's code of conduct. I have checked and verified that I am using the latest...
X Description: Issue Checklist I confirm that this issue is not a duplicate and hasn't been reported before. I agree to follow the project's code of conduct. I have checked and verified that I am using th...
Opengraph URL: https://github.com/Visual-Code-Space/AndroidIDE/issues/11
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"InFinite loop when evaluating dependency ","articleBody":"### Issue Checklist\n\n- [X] I confirm that this issue is not a duplicate and hasn't been reported before.\n- [X] I agree to follow the project's code of conduct.\n- [X] I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.\n\n### Additional terms\n\n- [X] I understand that providing incomplete or inaccurate information may result in the issue being closed.\n- [x] I agree to provide all requested details promptly for a comprehensive bug report.\n\n### Issue explanation\n\n[idelog.txt](https://github.com/user-attachments/files/18218913/idelog.txt)\r\n\n\n### Expected behavior\n\nShould check if library is already checked or not before checkout it\r\n\r\nError is in `AndroidProjectImpl#fillLibrary`\r\n\r\n```kt\r\n private fun fillLibrary(item: GraphItem, libraries: Map\u003cString, Library\u003e,\r\n seen: HashMap\u003cString, DefaultLibrary\u003e): DefaultLibrary? {\r\n\r\n val lib = libraries[item.key] ?: return null\r\n val library = copy(lib)\r\n\r\n for (dependency in item.dependencies) {\r\n val dep = fillLibrary(dependency, libraries, seen)!!\r\n library.dependencies.add(dep.key)\r\n }\r\n\r\n seen[item.key] = library\r\n\r\n return library\r\n }\r\n```\r\n\r\nMust be something like this\r\n```kt\r\n // Avoid reprocessing if already in 'seen'\r\n seen[item.key]?.let { return it }\r\n\r\n```\n\n### Version name\n\nVersion : v2.7.1-beta (27101)\r\nCI Build : true\r\nBranch : dev\r\nCommit : 8c48a0aa3\r\nVariant : armeabi-v7a (release)\r\nBuild type : OFFICIAL\r\nF-Droid Build : false\r\nF-Droid Version : null\r\nF-Droid Version code : -1\r\nSDK Version : 29\r\nSupported ABIs : [armeabi-v7a, armeabi]\r\nManufacturer : Xiaomi\r\nDevice : M2006C3MII\n\n### Download source\n\nGitHub\n\n### Relevant log output\n\n_No response_","author":{"url":"https://github.com/DevVigilante","@type":"Person","name":"DevVigilante"},"datePublished":"2024-12-21T15:18:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/11/AndroidIDE/issues/11"}
| 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:7c8168a8-ac5c-b5c4-a0ec-77cc7e545116 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1A0:E7451:38FE:4D0F:6981EF00 |
| html-safe-nonce | 6a12fde1c2da124987690833fc11624527a53355e35a5eee28354033c20ad0d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUEwOkU3NDUxOjM4RkU6NEQwRjo2OTgxRUYwMCIsInZpc2l0b3JfaWQiOiI3MTU2ODg4NzgwODgyOTY0MjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6c972e32cf16ff7a13e91669698705ae2ffa1e230268dd6df6ac98e4effb9936 |
| hovercard-subject-tag | issue:2754139358 |
| 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/Visual-Code-Space/AndroidIDE/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9947ecdf74d7bd8eb810a0c77f4cfc189ffcf51b2188cf420164fffa5709643a/Visual-Code-Space/AndroidIDE/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9947ecdf74d7bd8eb810a0c77f4cfc189ffcf51b2188cf420164fffa5709643a/Visual-Code-Space/AndroidIDE/issues/11 |
| og:image:alt | Issue Checklist I confirm that this issue is not a duplicate and hasn't been reported before. I agree to follow the project's code of conduct. I have checked and verified that I am using the latest... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DevVigilante |
| hostname | github.com |
| expected-hostname | github.com |
| None | ebfdf8d3e0fd17b103f41cc6696d84938694ebebdfecaf11fe00dbe4a9785801 |
| turbo-cache-control | no-preview |
| go-import | github.com/Visual-Code-Space/AndroidIDE git https://github.com/Visual-Code-Space/AndroidIDE.git |
| octolytics-dimension-user_id | 129018176 |
| octolytics-dimension-user_login | Visual-Code-Space |
| octolytics-dimension-repository_id | 867002997 |
| octolytics-dimension-repository_nwo | Visual-Code-Space/AndroidIDE |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 387801795 |
| octolytics-dimension-repository_parent_nwo | AndroidIDEOfficial/AndroidIDE |
| octolytics-dimension-repository_network_root_id | 387801795 |
| octolytics-dimension-repository_network_root_nwo | AndroidIDEOfficial/AndroidIDE |
| 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 | ac4541b58a15c144d6ed4fc868b9ea4bb99bb4b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width