Title: IllegalStateException is thrown in IDEA together with notification that file exceeds configured limit · Issue #1295 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: IllegalStateException is thrown in IDEA together with notification that file exceeds configured limit · Issue #1295 · UnitTestBot/UTBotJava
X Title: IllegalStateException is thrown in IDEA together with notification that file exceeds configured limit · Issue #1295 · UnitTestBot/UTBotJava
Description: Description IllegalStateException thrown in IDEA together with notification that generated file exceeds configured limit. It is about UtUtils.java exceeds configured limit. To Reproduce In ~/.utbot/settings.properties: set maxTestFileSiz...
Open Graph Description: Description IllegalStateException thrown in IDEA together with notification that generated file exceeds configured limit. It is about UtUtils.java exceeds configured limit. To Reproduce In ~/.utbot...
X Description: Description IllegalStateException thrown in IDEA together with notification that generated file exceeds configured limit. It is about UtUtils.java exceeds configured limit. To Reproduce In ~/.utbot...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1295
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IllegalStateException is thrown in IDEA together with notification that file exceeds configured limit","articleBody":"**Description**\r\n\r\nIllegalStateException thrown in IDEA together with notification that generated file exceeds configured limit.\r\nIt is about UtUtils.java exceeds configured limit.\r\n\r\n**To Reproduce**\r\n\r\n1. In `~/.utbot/settings.properties`: set `maxTestFileSize=1000`\r\n2. Install [latest build from main](https://github.com/UnitTestBot/UTBotJava/actions/runs/3377312923) into IDEA 2022.2.3\r\n3. Open UTBotJava project\r\n4. Generate tests with 95% Symbolic execution for `StringExamples`\r\n\r\n**Expected behavior**\r\n\r\nOnly notification should be displayed for the user.\r\nNo exception should be thrown to IDEA.\r\n\r\n**Actual behavior**\r\n\r\nTogether with notification\r\n`java.lang.IllegalStateException: Size of UtUtils.java exceeds configured limit (100 bytes), reformatting was skipped. The limit can be configured in '{HOME_DIR}/.utbot/settings.properties' with 'maxTestFileSize' property\r\n`\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\nThe following exception is thrown:\r\n\r\n~~~java\r\njava.lang.IllegalStateException: Size of UtUtils.java exceeds configured limit (100 bytes), reformatting was skipped. The limit can be configured in '{HOME_DIR}/.utbot/settings.properties' with 'maxTestFileSize' property\r\n\tat org.utbot.intellij.plugin.ui.ErrorNotifier.notify(Notifications.kt:52)\r\n\tat org.utbot.intellij.plugin.ui.Notifier.notify$default(Notifications.kt:28)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.reformat(CodeGenerationController.kt:755)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.access$reformat(CodeGenerationController.kt:100)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController$createOrUpdateUtilClass$1.run(CodeGenerationController.kt:338)\r\n\tat com.intellij.openapi.command.WriteCommandAction.lambda$runWriteCommandAction$4(WriteCommandAction.java:362)\r\n\tat com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$1(WriteCommandAction.java:150)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1023)\r\n\tat com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$2(WriteCommandAction.java:148)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:184)\r\n\tat com.intellij.openapi.command.WriteCommandAction$BuilderImpl.doRunWriteCommandAction(WriteCommandAction.java:157)\r\n\tat com.intellij.openapi.command.WriteCommandAction$BuilderImpl.run(WriteCommandAction.java:124)\r\n\tat com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:362)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.createOrUpdateUtilClass(CodeGenerationController.kt:337)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.createUtilityClassIfNeed(CodeGenerationController.kt:246)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController.access$createUtilityClassIfNeed(CodeGenerationController.kt:100)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController$generateTests$2$1$1$1.run(CodeGenerationController.kt:170)\r\n\tat org.utbot.intellij.plugin.util.IntelliJApiHelper$run$wrapper$1.run(IntelliJApiHelper.kt:31)\r\n\tat org.utbot.intellij.plugin.util.IntelliJApiHelper$run$$inlined$runWriteAction$1.compute(actions.kt:60)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.lambda$runWriteAction$13(ApplicationImpl.java:1032)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:1011)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1032)\r\n\tat org.utbot.intellij.plugin.util.IntelliJApiHelper.run(IntelliJApiHelper.kt:67)\r\n\tat org.utbot.intellij.plugin.generator.CodeGenerationController$generateTests$2$1$1.run(CodeGenerationController.kt:169)\r\n\tat org.utbot.intellij.plugin.util.IntelliJApiHelper$run$wrapper$1.run(IntelliJApiHelper.kt:31)\r\n\tat org.utbot.intellij.plugin.util.IntelliJApiHelper$run$$inlined$invokeLater$1.run(ApplicationUtils.kt:94)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)\r\n\tat java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)\r\n\tat java.base/java.security.AccessController.doPrivileged(AccessController.java:399)\r\n\tat java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)\r\n\tat com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)\r\n\tat java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)\r\n~~~\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.2.3\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-11-02T14:48:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1295/UTBotJava/issues/1295"}
| 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:347fd38a-0465-da74-dcca-28a2855540ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB22:1D47:F21B9B:13121F8:699014A9 |
| html-safe-nonce | 4d44d991ffd79a18f51f227387fe33372af7f4d7b9a09fa407376dc24ebd0604 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjIyOjFENDc6RjIxQjlCOjEzMTIxRjg6Njk5MDE0QTkiLCJ2aXNpdG9yX2lkIjoiMTQ4NTI2ODAwODQ3NzY2MDMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1a046de6b48515622b5534dab5ffd05f511951a670cce6e3479998303a0a3409 |
| hovercard-subject-tag | issue:1433281385 |
| 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/1295/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd0b869a6be965d49038c2e66b6dd473a41012ad0aad35fd54155fbf257256bf/UnitTestBot/UTBotJava/issues/1295 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd0b869a6be965d49038c2e66b6dd473a41012ad0aad35fd54155fbf257256bf/UnitTestBot/UTBotJava/issues/1295 |
| og:image:alt | Description IllegalStateException thrown in IDEA together with notification that generated file exceeds configured limit. It is about UtUtils.java exceeds configured limit. To Reproduce In ~/.utbot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width