Error occurred during initialization of VM Could not reserve enough
space for 2097152KB object heap
This error I'm receiving while trying run a simple test or anything else with Intellij 2020.2.
I decrease it to 1gb as I saw in other answers but the problem is still exist, although I have 32 GB RAM with a lot of free memory.
Custom VM Options:
-Xms128m
-Xmx1024m
Memory Settings: 1024 mb
Build process heap size: 1024 mb
Memory Usage:
How can I solve this error?
P.S. I don't know where the '2097152KB' comes from..
Product Version: 202.6397.94
Restore IDE Settings not help.
EDIT - IntelliJ Log (remove some lines):
2020-09-02 16:11:27,788 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2020-09-02 16:11:27,837 [ 49] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-202.6948.69, 25 Aug 2020 00:29)
2020-09-02 16:11:27,840 [ 52] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2020-09-02 16:11:27,840 [ 52] INFO - #com.intellij.idea.Main - JRE: 11.0.8+10-b944.31 (JetBrains s.r.o.)
2020-09-02 16:11:27,840 [ 52] INFO - #com.intellij.idea.Main - JVM: 11.0.8+10-b944.31 (OpenJDK 64-Bit Server VM)
2020-09-02 16:11:27,842 [ 54] INFO - #com.intellij.idea.Main - JVM Args: exit -Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf=true -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Djb.vmOptionsFile=C:\Users\{user}\AppData\Roaming\JetBrains\IntelliJIdea2020.2\idea64.exe.vmoptions -Djava.library.path=C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.1\jbr\\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.1\jbr\\bin\server -Didea.jre.check=true -Dide.native.launcher=true -Didea.vendor.name=JetBrains -Didea.paths.selector=IntelliJIdea2020.2 -XX:ErrorFile=C:\Users\{user}\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\{user}\java_error_in_idea.hprof
2020-09-02 16:11:27,842 [ 54] INFO - #com.intellij.idea.Main - library path: C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.1\jbr\\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.1\jbr\\bin\server
2020-09-02 16:11:27,842 [ 54] INFO - #com.intellij.idea.Main - boot library path: C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.1\jbr\bin
2020-09-02 16:11:27,851 [ 63] INFO - #com.intellij.idea.Main - locale=en_US JNU=Cp1252 file.encoding=Cp1252
idea.config.path=C:\Users\{user}\AppData\Roaming\JetBrains\IntelliJIdea2020.2
idea.system.path=C:\Users\{user}\AppData\Local\JetBrains\IntelliJIdea2020.2
idea.plugins.path=C:\Users\{user}\AppData\Roaming\JetBrains\IntelliJIdea2020.2\plugins
idea.log.path=C:\Users\{user}\AppData\Local\JetBrains\IntelliJIdea2020.2\log
2020-09-02 16:11:28,495 [ 707] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 644 ms
2020-09-02 16:11:28,503 [ 715] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2020-09-02 16:11:29,913 [ 2125] INFO - ntellij.idea.ApplicationLoader - CPU cores: 12; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool#6ca66aa2[Running, parallelism = 11, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory#184debc3
2020-09-02 16:11:30,112 [ 2324] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (202.6948.69), com.intellij.platform.images (202.6948.69), JetBrains maven model api classes (202.6948.69), JetBrains Repository Search (202.6948.69), HTML Tools (202.6948.69), Perforce (202.6948.69), Refactor-X (202.6948.69), Subversion (202.6948.69), XPathView + XSLT (202.6948.69), XSLT Debugger (202.6948.69), Smali Support (202.6948.69), IDE Settings Sync (202.6948.69), Configuration Script (202.6948.69), Copyright (202.6948.69), CSS (202.6948.69), W3C Validators (202.6948.69), Less (202.6948.69), Sass (202.6948.69), Stylus (202.6948.69), Gradle (202.6948.69), Java (202.6948.69), Bytecode Viewer (202.6948.69), JUnit (202.6948.69), ZKM-Unscramble (202.6948.69), Spring AOP/#AspectJ (202.6948.69), Dependency Structure Matrix (202.6948.69), Java IDE Customization (202.6948.69), Java Stream Debugger (202.6948.69), Eclipse Interoperability (202.6948.69), Java Bytecode Decompiler (202.6948.69), Recommenders for Java and Python (202.6948.69), Windows 10 Light Theme (202.6948.69), Properties (202.6948.69), Ant (202.6948.69), UML (202.6948.69), Guice (202.6948.69), Java Internationalization (202.6948.69), UI Designer (202.6948.69), Velocity (202.6948.69), Resource Bundle Editor (202.6948.69), Machine Learning Code Completion (202.6948.69), Task Management (202.6948.69), Time Tracking (202.6948.69), FTP/SFTP Connectivity (ex. Remote Hosts Access) (202.6948.69), Gherkin (202.6948.69), Cucumber for Java (202.6948.69), Mercurial (202.6948.69), Webp Support (202.6948.69), EditorConfig (202.6948.69), Haml (202.6948.69), Terminal (202.6948.69), Git (202.6948.69), ChangeReminder (202.6948.69), Next File Prediction (202.6948.69), GitHub (202.6948.69), Performance Testing (202.6948.69), Shared Indexes (202.6948.69), SSH Remote Run (202.6948.69), WSL Support Framework (202.6948.69), Shell Script (202.6948.69), TextMate Bundles (202.6948.69), YAML (202.6948.69), Docker (202.6948.69), Microservices Application Configuration (202.6948.69), Settings Repository (202.6948.69), IntelliLang (202.6948.69), TestNG (202.6948.69), Code Coverage for Java (202.6948.69), Emma (202.6948.69), Groovy (202.6948.69), Cucumber for Groovy (202.6948.69), Maven (202.6948.69), AspectJ (202.6948.69), Gradle-Java (202.6948.69), Plugin DevKit (202.6948.69), Gradle Extension (202.6948.69), Frameworks Starters (202.6948.69), Gradle-Maven (202.6948.69), Reactive Streams (Reactor, RxJava) (202.6948.69), JavaFX (202.6948.69), Markdown (202.6948.69), Grazie (202.6948.69), JavaScript and TypeScript (202.6948.69), JavaScript Intention Power Pack (202.6948.69), TSLint (202.6948.69), Angular and AngularJS (202.6948.69), Database Tools and SQL (202.6948.69), Java SQL Libraries (202.6948.69), Persistence Frameworks (202.6948.69), Java EE Platform (202.6948.69), JavaScript Debugger (202.6948.69), Node.js (202.6948.69), Spy-js (202.6948.69), CoffeeScript (202.6948.69), Kotlin (1.3.72-release-IJ2020.1-6), Android (10.4.0.202.6948.69), Java EE: Persistence (JPA) (202.6948.69), Java EE: Enterprise Java Beans (EJB) (202.6948.69), Hibernate (202.6948.69), Java EE: Bean Validation (202.6948.69), Java EE: Contexts and Dependency Injection (CDI) (202.6948.69), Helidon (202.6948.69), Java EE: Batch Applications (202.6948.69), Java EE: Application Servers Integration (202.6948.69), GlassFish (202.6948.69), WildFly (202.6948.69), Debugger Support for JSP (JSR45) (202.6948.69), Jetty (202.6948.69), Tomcat and TomEE (202.6948.69), WebSphere (202.6948.69), WebLogic (202.6948.69), Java EE: Web/Servlets (202.6948.69), Java Server Pages (JSP) (202.6948.69), Java EE: Server Faces (JSF) (202.6948.69), Application Servers View (202.6948.69), Java EE: Message Service (JMS) (202.6948.69), Java EE: WebSockets (202.6948.69), JBoss Frameworks Base (202.6948.69), Drools (202.6948.69), Arquillian (202.6948.69), Spring (202.6948.69), Spring Security (202.6948.69), Thymeleaf (202.6948.69), Spring Data (202.6948.69), Java EE: Web Services (JAX-WS) (202.6948.69), Spring Web Services (202.6948.69), Grails (202.6948.69), FreeMarker (202.6948.69), Spring Batch (202.6948.69), Spring Messaging (202.6948.69), Spring Integration Patterns (202.6948.69), Spring WebSocket (202.6948.69), Spring OSGi (202.6948.69), Maven Extension (202.6948.69), HTTP Client (202.6948.69), Spring MVC (202.6948.69), Spring Web Flow (202.6948.69), Spring Boot (202.6948.69), Java EE: RESTful Web Services (JAX-RS) (202.6948.69), Quarkus (202.6948.69), Micronaut (202.6948.69), Java HTTP Clients (202.6948.69), OpenAPI Specifications (202.6948.69)
2020-09-02 16:11:30,368 [ 2580] INFO - cloudConfig.CloudConfigManager - === Exit: JBA_NOT_FOUND ===
2020-09-02 16:11:30,908 [ 3120] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2020-09-02 16:11:30,924 [ 3136] INFO - m.intellij.util.io.StorageLock - lower=100; upper=500; buffer=10; max=1959
2020-09-02 16:11:30,940 [ 3152] INFO - tellij.util.io.FileChannelUtil - un-interruptible FileChannel-s will be used for indexes
2020-09-02 16:11:31,092 [ 3304] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0
2020-09-02 16:11:31,158 [ 3370] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2020-09-02 16:11:31,391 [ 3603] INFO - gs.impl.UpdateCheckerComponent - channel: release
2020-09-02 16:11:31,782 [ 3994] INFO - BridgeProjectLifecycleListener - Using legacy project model to open project
2020-09-02 16:11:31,799 [ 4011] INFO - atform.impl.SharedIndexStorage - Shared Indexes Storage is opened: <empty>
2020-09-02 16:11:32,248 [ 4460] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.1\bin\fsnotifier64.exe
2020-09-02 16:11:32,300 [ 4512] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2020-09-02 16:11:32,721 [ 4933] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [<Project>]
2020-09-02 16:11:33,122 [ 5334] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2020-09-02 16:11:33,400 [ 5612] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=org.jetbrains.android.compose.AndroidComposeAutoDocumentation)
2020-09-02 16:11:35,733 [ 7945] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2020-09-02 16:11:35,908 [ 8120] WARN - tartup.impl.StartupManagerImpl - Activities registered via registerPostStartupActivity must be dumb-aware: org.jetbrains.kotlin.idea.configuration.ui.KotlinConfigurationCheckerComponent$projectOpened$1#1669daaa
2020-09-02 16:11:37,950 [ 10162] INFO - penapi.application.Experiments - Experimental features enabled for user: wsl.p9.support, wsl.p9.show.roots.in.file.chooser, inline.browse.button, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, copy.reference.popup, new.large.text.file.viewer, property.value.inplace.editing, terminal.shell.command.handling
2020-09-02 16:11:38,157 [ 10369] INFO - PerformancePlugin - Performance Plugin is in silent mode
2020-09-02 16:11:38,400 [ 10612] INFO - leBasedIndexDataInitialization - Initialization done: 7238
2020-09-02 16:11:39,469 [ 11681] INFO - #git4idea.commands.GitHandler - [.] git version
2020-09-02 16:11:39,489 [ 11701] INFO - ge.ExternalProjectsDataStorage - Load external projects data in 63 millis (read time: 3)
2020-09-02 16:11:39,577 [ 11789] INFO - cloudConfig.CloudConfigManager - === StatusBar ignored ===
2020-09-02 16:11:39,618 [ 11830] INFO - pl.projectlevelman.NewMappings - Mapped Roots: 1
2020-09-02 16:11:39,816 [ 12028] INFO - .OnDiskSharedIndexChunkLocator - Scanning C:\Users\{user}\AppData\Local\JetBrains\IntelliJIdea2020.2\shared-index for shared indexes...
2020-09-02 16:11:39,920 [ 12132] INFO - CompilerWorkspaceConfiguration - Available processors: 12
2020-09-02 16:11:39,934 [ 12146] INFO - #git4idea.commands.GitHandler - git version 2.25.1.windows.1
2020-09-02 16:11:39,958 [ 12170] INFO - ea.config.GitExecutableManager - Git version for C:\Program Files\Git\cmd\git.exe: 2.25.1.0 (MSYS)
2020-09-02 16:11:40,288 [ 12500] INFO - ProjectRootPostStartUpActivity - C:/CodeCloud/OCP/ocp-infra/.idea case-sensitivity: expected=false actual=false
2020-09-02 16:11:40,369 [ 12581] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 1921ms; general responsiveness: ok; EDT responsiveness: 0/2 sluggish, 1/2 very slow
2020-09-02 16:11:40,561 [ 12773] INFO - llij.database.util.SqlDialects - SQL dialects initialized in 1 ms
2020-09-02 16:11:40,826 [ 13038] INFO - tor.impl.FileEditorManagerImpl - Project opening took 9187 ms
2020-09-02 16:11:41,050 [ 13262] INFO - exImpl$StubIndexInitialization - Initialization done: 2649
2020-09-02 16:11:41,636 [ 13848] INFO - #org.jetbrains.idea.maven - Sent token to maven server
2020-09-02 16:11:41,743 [ 13955] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1487ms; general responsiveness: ok; EDT responsiveness: 1/1 sluggish
2020-09-02 16:11:42,090 [ 14302] WARN - com.intellij.util.xmlb.Binding - no accessors for org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2020-09-02 16:11:46,201 [ 18413] INFO - gnostic.WindowsDefenderChecker - Windows Defender status: not used
2020-09-02 16:11:48,899 [ 21111] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace:connect timed out
2020-09-02 16:11:49,205 [ 21417] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 7460ms; general responsiveness: ok; EDT responsiveness: ok
2020-09-02 16:11:49,240 [ 21452] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to index
2020-09-02 16:11:50,198 [ 22410] WARN - reporter.KotlinReportSubmitter - connect timed out
2020-09-02 16:11:50,513 [ 22725] INFO - red.download.SharedIndexLookup - Connection expired by timeout at https://index-cdn.jetbrains.com/v1/jdk/3d7ad7bbcee6fd9a3348b63fcef6c9bd73069698/index.json.xz for JdkIndexRequest(sdkName=1.8, hash=3d7ad7bbcee6fd9a3348b63fcef6c9bd73069698, aliases=[1.8.0_221, 1.8], innerVersion='v1', kind='jdk'). connect timed out
2020-09-02 16:11:50,819 [ 23031] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace:connect timed out
2020-09-02 16:11:50,973 [ 23185] INFO - .diagnostic.PerformanceWatcher - Searching for external libraries with Android resources. Found 0 libraries. took 4ms; general responsiveness: ok; EDT responsiveness: ok
2020-09-02 16:11:52,627 [ 24839] WARN - util.DeprecatedMethodException - The default implementation of method 'com.intellij.execution.configurations.ConfigurationFactory.getId' is deprecated, you need to override it in 'class org.jetbrains.kotlin.idea.nodejs.protractor.KotlinProtractorConfigurationType$1'. The default implementation delegates to 'getName' which may be localized but return value of this method must not depend on current localization.
com.intellij.util.DeprecatedMethodException: The default implementation of method 'com.intellij.execution.configurations.ConfigurationFactory.getId' is deprecated, you need to override it in 'class org.jetbrains.kotlin.idea.nodejs.protractor.KotlinProtractorConfigurationType$1'. The default implementation delegates to 'getName' which may be localized but return value of this method must not depend on current localization.
at com.intellij.util.DeprecatedMethodException.reportDefaultImplementation(DeprecatedMethodException.java:38)
at com.intellij.execution.configurations.ConfigurationFactory.getId(ConfigurationFactory.java:80)
at com.intellij.execution.impl.RunManagerImplKt.getFactoryKey(RunManagerImpl.kt:1313)
at com.intellij.execution.impl.RunManagerImplKt.access$getFactoryKey(RunManagerImpl.kt:1)
at com.intellij.execution.impl.RunManagerImpl.getConfigurationTemplate(RunManagerImpl.kt:326)
at com.intellij.execution.impl.RunManagerImpl.createConfiguration(RunManagerImpl.kt:251)
at com.intellij.execution.actions.RunConfigurationProducer.cloneTemplateConfigurationStatic(RunConfigurationProducer.java:258)
at com.intellij.execution.actions.RunConfigurationProducer.cloneTemplateConfiguration(RunConfigurationProducer.java:248)
at com.intellij.execution.actions.RunConfigurationProducer.createConfigurationFromContext(RunConfigurationProducer.java:97)
at com.intellij.execution.actions.RunConfigurationProducer.findOrCreateConfigurationFromContext(RunConfigurationProducer.java:198)
at com.intellij.execution.actions.PreferredProducerFind.doGetConfigurationsFromContext(PreferredProducerFind.java:110)
at com.intellij.execution.actions.PreferredProducerFind.getConfigurationsFromContext(PreferredProducerFind.java:93)
at com.intellij.execution.actions.ConfigurationContext.getConfigurationsFromContext(ConfigurationContext.java:360)
at com.intellij.execution.lineMarker.ExecutorAction$Companion.computeConfigurations(ExecutorAction.kt:63)
at com.intellij.execution.lineMarker.ExecutorAction$Companion.getConfigurations(ExecutorAction.kt:55)
at com.intellij.execution.lineMarker.ExecutorAction$Companion.access$getConfigurations(ExecutorAction.kt:28)
at com.intellij.execution.lineMarker.ExecutorAction.getActionName(ExecutorAction.kt:97)
at com.intellij.execution.lineMarker.ExecutorAction.update(ExecutorAction.kt:72)
at com.intellij.execution.lineMarker.LineMarkerActionWrapper.update(LineMarkerActionWrapper.java:86)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:179)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doUpdate(ActionUpdater.java:453)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$1(ActionUpdater.java:94)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.callAction(ActionUpdater.java:134)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$new$2(ActionUpdater.java:95)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.update(ActionUpdater.java:435)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandGroupChild(ActionUpdater.java:297)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$doExpandActionGroup$19(ActionUpdater.java:276)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1611)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.doExpandActionGroup(ActionUpdater.java:276)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:186)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroup(ActionUpdater.java:160)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.lambda$expandActionGroupWithTimeout$11(ActionUpdater.java:202)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:56)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:56)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.withTimeout(ProgressIndicatorUtils.java:307)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroupWithTimeout(ActionUpdater.java:202)
at com.intellij.openapi.actionSystem.impl.ActionUpdater.expandActionGroupWithTimeout(ActionUpdater.java:194)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:98)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:118)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.invokePopup(EditorGutterComponentImpl.java:2120)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.mousePressed(EditorGutterComponentImpl.java:1836)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.processMousePressed(EditorImpl.java:3959)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.lambda$runMousePressedCommand$0(EditorImpl.java:3831)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:177)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.runMousePressedCommand(EditorImpl.java:3836)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:3764)
at java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:288)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6651)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
at java.desktop/java.awt.Component.processEvent(Component.java:6419)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:971)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:906)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:838)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:451)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:505)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-09-02 16:11:54,112 [ 26324] INFO - rationStore.ComponentStoreImpl - Saving Project(name=infra, containerState=ACTIVE, componentStore=C:\CodeCloud\OCP\ocp-infra)RunManager took 65 ms
[Delete some lines]
2020-09-02 16:11:56,231 [ 28443] WARN - arketplace.MarketplaceRequests - Can not get features from Marketplace:connect timed out
2020-09-02 16:11:56,287 [ 28499] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2020-09-02 16:11:56,288 [ 28500] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2020-09-02 16:11:56,288 [ 28500] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2020-09-02 16:11:59,559 [ 31771] WARN - arketplace.MarketplaceRequests - Can not get JetBrains plugins' IDs from Marketplace:connect timed out
[Delete some lines]
2020-09-02 16:12:31,659 [ 63871] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2020-09-02 16:12:31,733 [ 63945] INFO - tellij.psi.stubs.StubIndexImpl - StubIndexExtension-s were unloaded
2020-09-02 16:12:31,739 [ 63951] INFO - redIndexChunkConfigurationImpl - Shared index chunks shutdown was performed successful
2020-09-02 16:12:31,739 [ 63951] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2020-09-02 16:12:31,739 [ 63951] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2020-09-02 16:12:31,873 [ 64085] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2020-09-02 16:12:31,874 [ 64086] INFO - stubs.SerializationManagerImpl - Start shutting down C:\Users\{user}\AppData\Local\JetBrains\IntelliJIdea2020.2\index\rep.names
2020-09-02 16:12:31,875 [ 64087] INFO - stubs.SerializationManagerImpl - Finished shutting down C:\Users\{user}\AppData\Local\JetBrains\IntelliJIdea2020.2\index\rep.names
2020-09-02 16:12:31,879 [ 64091] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2020-09-02 16:12:31,885 [ 64097] INFO - org.jetbrains.io.BuiltInServer - web server stopped
Update
I have not succeeded to resolve the issue but found a workaround after I found other projects are working well. I recreate the project (in my case delete local directory and clone it again from Git) – Now all working fine, don’t know why it’s happen or how to fix.
Related
IntelliJ has no problem to use Maven Central when VPN is off and "No proxy" is selected.
When connected with VPN and using the company's proxy, Maven Central Archtype list is empty even if proxy test was successful.
idea.log shows the following messages:
2022-12-19 15:17:44,788 [77795073] WARN - #o.j.i.maven - Using extension org.jetbrains.idea.maven.maven3.Maven3Support#febaa86 to start MavenServer
2022-12-19 15:17:45,070 [77795355] INFO - #o.j.i.maven - Sent token to maven server
Anyone can help?
I even tried setting VM option in Build tool section (although I think it should be irrelavent) and it was to no avail.
Full log:
2022-12-20 08:54:25,159 [ 19] INFO - #c.i.i.AppStarter - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2022-12-20 08:54:25,389 [ 249] INFO - #c.i.i.p.PluginManager - Plugin PluginDescriptor(name=Groovy, id=org.intellij.groovy, descriptorPath=plugin.xml, path=~\Documents\plugins\Groovy, version=223.7571.182, package=org.jetbrains.plugins.groovy, isBundled=true) misses optional descriptor duplicates-groovy.xml
2022-12-20 08:54:25,389 [ 249] INFO - #c.i.i.p.PluginManager - Plugin PluginDescriptor(name=Groovy, id=org.intellij.groovy, descriptorPath=plugin.xml, path=~\Documents\plugins\Groovy, version=223.7571.182, package=org.jetbrains.plugins.groovy, isBundled=true) misses optional descriptor duplicates-detection-groovy.xml
2022-12-20 08:54:25,606 [ 466] INFO - #c.i.i.AppStarter - JNA library (64-bit) loaded in 380 ms
2022-12-20 08:54:25,619 [ 479] INFO - #c.i.i.AppStarter - IDE: IntelliJ IDEA (build #IC-223.7571.182, 29 Nov 2022 10:36)
2022-12-20 08:54:25,620 [ 480] INFO - #c.i.i.AppStarter - OS: Windows 10 (10.0, amd64)
2022-12-20 08:54:25,624 [ 484] INFO - #c.i.i.AppStarter - JRE: 17.0.5+1-b653.14 (JetBrains s.r.o.)
2022-12-20 08:54:25,624 [ 484] INFO - #c.i.i.AppStarter - JVM: 17.0.5+1-b653.14 (OpenJDK 64-Bit Server VM)
2022-12-20 08:54:25,634 [ 494] INFO - #c.i.i.AppStarter - PID: 14532
2022-12-20 08:54:25,734 [ 594] INFO - #c.i.i.p.PluginManager - Plugin PluginDescriptor(name=Kotlin, id=org.jetbrains.kotlin, descriptorPath=plugin.xml, path=~\Documents\plugins\Kotlin, version=223-1.7.20-release-201-IJ7571.182, package=org.jetbrains.kotlin, isBundled=true) misses optional descriptor performance-plugin.xml
2022-12-20 08:54:25,762 [ 622] INFO - #c.i.i.AppStarter - JVM options: [exit, -Xms128m, -Xmx750m, -XX:ReservedCodeCacheSize=512m, -XX:+UseG1GC, -XX:SoftRefLRUPolicyMSPerMB=50, -XX:CICompilerCount=2, -XX:+HeapDumpOnOutOfMemoryError, -XX:-OmitStackTraceInFastThrow, -XX:+IgnoreUnrecognizedVMOptions, -XX:CompileCommand=exclude,com/intellij/openapi/vfs/impl/FilePartNodeRoot,trieDescend, -ea, -Dsun.io.useCanonCaches=false, -Dsun.java2d.metal=true, -Djbr.catch.SIGABRT=true, -Djdk.http.auth.tunneling.disabledSchemes="", -Djdk.attach.allowAttachSelf=true, -Djdk.module.illegalAccess.silent=true, -Dkotlinx.coroutines.debug=off, -Xmx2048m, -Djb.vmOptionsFile=C:\Users\abc\AppData\Roaming\\JetBrains\\IdeaIC2022.3\idea64.exe.vmoptions, -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader, -Didea.vendor.name=JetBrains, -Didea.paths.selector=IdeaIC2022.3, -Djna.boot.library.path=C:\Users\abc\Documents/lib/jna/amd64, -Dpty4j.preferred.native.folder=C:\Users\abc\Documents/lib/pty4j, -Djna.nosys=true, -Djna.nounpack=true, -Didea.platform.prefix=Idea, -Dsplash=true, --add-opens=java.base/java.io=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.lang.ref=ALL-UNNAMED, --add-opens=java.base/java.lang.reflect=ALL-UNNAMED, --add-opens=java.base/java.net=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/java.nio.charset=ALL-UNNAMED, --add-opens=java.base/java.text=ALL-UNNAMED, --add-opens=java.base/java.time=ALL-UNNAMED, --add-opens=java.base/java.util=ALL-UNNAMED, --add-opens=java.base/java.util.concurrent=ALL-UNNAMED, --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED, --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED, --add-opens=java.base/sun.nio.ch=ALL-UNNAMED, --add-opens=java.base/sun.nio.fs=ALL-UNNAMED, --add-opens=java.base/sun.security.ssl=ALL-UNNAMED, --add-opens=java.base/sun.security.util=ALL-UNNAMED, --add-opens=java.desktop/java.awt=ALL-UNNAMED, --add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED, --add-opens=java.desktop/java.awt.event=ALL-UNNAMED, --add-opens=java.desktop/java.awt.image=ALL-UNNAMED, --add-opens=java.desktop/java.awt.peer=ALL-UNNAMED, --add-opens=java.desktop/java.awt.font=ALL-UNNAMED, --add-opens=java.desktop/javax.swing=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED, --add-opens=java.desktop/sun.awt.image=ALL-UNNAMED, --add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED, --add-opens=java.desktop/sun.awt=ALL-UNNAMED, --add-opens=java.desktop/sun.font=ALL-UNNAMED, --add-opens=java.desktop/sun.java2d=ALL-UNNAMED, --add-opens=java.desktop/sun.swing=ALL-UNNAMED, --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED, --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED, --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED, --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED, -Dide.native.launcher=true, -XX:ErrorFile=C:\Users\abc\\java_error_in_idea64_%p.log, -XX:HeapDumpPath=C:\Users\abc\\java_error_in_idea64.hprof]
2022-12-20 08:54:25,763 [ 623] INFO - #c.i.i.AppStarter - args:
2022-12-20 08:54:25,764 [ 624] INFO - #c.i.i.AppStarter - library path: C:\Users\abc\Documents\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\windows\CCM\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x32;C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x64;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Fortify\Fortify_SCA_and_Apps_20.2.4\bin;C:\Users\abc\AppData\Local\Programs\Python\Launcher\;C:\Fortify\Fortify_SCA_and_Apps_20.2.2\bin;C:\Users\abc\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm 2020.2.3\bin;;C:\Users\abc\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Users\abc\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\abc\Documents\apache-maven-3.6.3\bin;C:\Program Files\Java\jdk1.8.0_201\jre\bin;;.
2022-12-20 08:54:25,765 [ 625] INFO - #c.i.i.AppStarter - boot library path: C:\Users\abc\Documents\jbr\bin
2022-12-20 08:54:25,824 [ 684] INFO - #c.i.i.AppStarter - locale=en_CA JNU=Cp1252 file.encoding=Cp1252
idea.config.path=C:\Users\abc\AppData\Roaming\JetBrains\IdeaIC2022.3
idea.system.path=C:\Users\abc\AppData\Local\JetBrains\IdeaIC2022.3
idea.plugins.path=C:\Users\abc\AppData\Roaming\JetBrains\IdeaIC2022.3\plugins
idea.log.path=C:\Users\abc\AppData\Local\JetBrains\IdeaIC2022.3\log
2022-12-20 08:54:25,834 [ 694] INFO - #c.i.i.AppStarter - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool#6da75138[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory#1260f2bf
2022-12-20 08:54:26,054 [ 914] INFO - #c.i.i.p.PluginManager - Module intellij.sh.python is not enabled because dependency com.intellij.modules.python is not available
Module intellij.space.gateway is not enabled because dependency com.jetbrains.gateway is not available
Module intellij.space.php is not enabled because dependency com.jetbrains.php is not available
Module intellij.space.index is not enabled because dependency intellij.indexing.shared is not available
2022-12-20 08:54:26,501 [ 1361] INFO - #c.i.i.p.PluginManager - Loaded bundled plugins: Eclipse Keymap (223.7571.182), NetBeans Keymap (223.7571.182), Shell Script (223.7571.182), Mercurial (223.7571.182), Copyright (223.7571.182), Smali Support (223.7571.182), IntelliLang (223.7571.182), Gradle (223.7571.182), Markdown (223.7571.182), com.intellij.dev (223.7571.182), XSLT Debugger (223.7571.182), XPathView + XSLT (223.7571.182), Subversion (223.7571.182), Gradle DSL API (223.7571.182), Android Design Tools (223.7571.182), Machine Learning in Search Everywhere (223.7571.182), YAML (223.7571.182), Package Search (223.7571.182), JetBrains Marketplace Licensing Support (223.7571.182), Code With Me (223.7571.182), JavaFX (223.7571.182), GitHub (223.7571.182), Bytecode Viewer (223.7571.182), JetBrains Repository Search (223.7571.182), Grazie (223.7571.182), Visual Studio Keymap (223.7571.182), Ant (223.7571.182), IDEA CORE (223.7571.182), Projector Libraries for Code With Me and Remote Development (223.7571.182), Gradle-Maven (223.7571.182), Plugin DevKit (223.7571.182), Java IDE Customization (223.7571.182), Configuration Script (223.7571.182), Toml (223.7571.182), Java Internationalization (223.7571.182), Machine Learning Code Completion (223.7571.182), Java Bytecode Decompiler (223.7571.182), Properties (223.7571.182), Git (223.7571.182), Kotlin (223-1.7.20-release-201-IJ7571.182), WebP Support (223.7571.182), Groovy (223.7571.182), Maven (223.7571.182), Eclipse Interoperability (223.7571.182), Task Management (223.7571.182), TextMate Bundles (223.7571.182), Android (2022.1.1 Beta 2.223.7571.182), Java (223.7571.182), Space (223.7571.182), Gradle-Java (223.7571.182), UI Designer (223.7571.182), Java Stream Debugger (223.7571.182), Lombok (223.7571.182), Maven server api classes (223.7571.182), Qodana (223.7571.182), Terminal (223.7571.182), Shared Indexes (223.7571.182), Settings Sync (223.7571.182), Code Coverage for Java (223.7571.182), JUnit (223.7571.182), JetBrains maven model api classes (223.7571.182), Gradle Dependency Updater Implementation (223.7571.182), EditorConfig (223.7571.182), IDE Features Trainer (223.7571.182), Perforce Helix Core (223.7571.182), Windows 10 Light Theme (223.7571.182), com.intellij.tracing.ide (223.7571.182), Images (223.7571.182), TestNG (223.7571.182)
2022-12-20 08:54:27,454 [ 2314] INFO - #c.i.a.o.PathMacrosImpl - Loaded path macros: {MAVEN_REPOSITORY=C:\Users\abc\.m2\repository}
2022-12-20 08:54:27,455 [ 2315] INFO - #c.i.o.v.n.p.PersistentFSConnector - VFS uses strict names enumerator
2022-12-20 08:54:27,776 [ 2636] INFO - #c.i.o.v.n.p.PersistentFSConnector - VFS uses regular attributes storage
2022-12-20 08:54:28,059 [ 2919] INFO - #c.i.o.v.n.p.FSRecords - using REGULAR storage for VFS records
2022-12-20 08:54:28,389 [ 3249] INFO - #c.i.o.v.n.p.PersistentFSConnector - 310 ms to load free records and inverted name index
2022-12-20 08:54:28,613 [ 3473] INFO - #com.android.tools.idea.serverflags.ServerFlagInitializer - Enabled server flags:
2022-12-20 08:54:28,637 [ 3497] INFO - #c.i.i.p.ExpiredPluginsState - Plugins to skip: []
2022-12-20 08:54:28,756 [ 3616] INFO - #c.i.u.n.s.CertificateManager - Default SSL context initialized
2022-12-20 08:54:29,023 [ 3883] INFO - #o.j.i.BuiltInServerManager - built-in server started, port 63342
2022-12-20 08:54:29,424 [ 4284] INFO - #c.i.o.v.i.l.NativeFileWatcherImpl - Starting file watcher: C:\Users\abc\Documents\bin\fsnotifier.exe
2022-12-20 08:54:29,713 [ 4573] WARN - #c.i.u.s.SvgCacheManager - Icon cache will be recreated or previous version of data reused, (db=C:\Users\abc\AppData\Local\JetBrains\IdeaIC2022.3\icons-v6.db)
2022-12-20 08:54:31,180 [ 6040] INFO - #c.i.i.s.p.i.SharedIndexMainZipStorage - Shared Indexes Storage is opened and empty
2022-12-20 08:54:31,216 [ 6076] INFO - #c.i.o.v.i.l.NativeFileWatcherImpl - Native file watcher is operational.
2022-12-20 08:54:31,467 [ 6327] INFO - #c.i.o.v.i.w.WslFileWatcher - WSL file watcher: C:\Users\abc\Documents\bin\fsnotifier-wsl
2022-12-20 08:54:33,902 [ 8762] INFO - #c.i.o.u.i.UpdateCheckerService - channel: release
2022-12-20 08:54:37,038 [ 11898] INFO - #c.i.u.i.FileBasedIndexImpl - Indices to be built:FilenameIndex(v = 258)
2022-12-20 08:54:37,067 [ 11927] INFO - c.i.u.i.FileBasedIndexDataInitialization - Index data initialization done: 7459 ms. Initialized indexes: [FilenameIndex, TodoIndex, FrameworkDetectionIndex, filetypes, IdIndex, Trigram.Index, fileIncludes, DomFileIndex, RelaxSymbolIndex, Stubs, XmlTagNames, XmlNamespaces, SchemaTypeInheritance, html5.custom.attributes.index, yaml.keys.name, json.file.root.values, editorconfig.index.name, xmlProperties, XsltSymbolIndex, java.auto.module.name, bytecodeAnalysis, java.source.module.name, java.null.method.argument, java.fun.expression, java.binary.plus.expression, IdeaPluginRegistrationIndex, PluginIdDependenciesIndex, PluginIdModuleIndex, devkit.ExtensionPointClassIndex, devkit.ExtensionPointIndex, LombokConfigIndex, JavaFxControllerClassIndex, ant-imports, javafx.id.name, javafx.custom.component, org.jetbrains.kotlin.idea.versions.KotlinJvmMetadataVersionIndex, org.jetbrains.kotlin.idea.versions.KotlinJsMetadataVersionIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinPartialPackageNamesIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinClassFileIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinJavaScriptMetaFileIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinMetadataFileIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinMetadataFilePackageIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinModuleMappingIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinJvmModuleAnnotationsIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinBuiltInsMetadataIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinPackageSourcesMemberNamesIndex, org.jetbrains.kotlin.idea.vfilefinder.KotlinStdlibIndex, com.intellij.uiDesigner.FormClassIndex, org.jetbrains.kotlin.idea.vfilefinder.KlibMetaFileIndex, BindingXmlIndex, com.android.tools.idea.model.AndroidManifestIndex$Companion$NAME$1.NAME, NavXmlIndex].
2022-12-20 08:54:39,305 [ 14165] INFO - c.i.p.s.StubIndexImpl$StubIndexInitialization - Index data initialization done: 2237 ms. Initialized stub indexes: {gr.annot.members, org.jetbrains.kotlin.idea.stubindex.KotlinProbablyContractedFunctionShortNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinSuperClassIndex, org.jetbrains.kotlin.idea.stubindex.KotlinFullClassNameIndex, dom.namespaceKey, org.jetbrains.kotlin.idea.stubindex.KotlinProbablyNothingPropertyShortNameIndex, markdown.header.anchor, org.jetbrains.kotlin.idea.stubindex.KotlinScriptFqnIndex, java.anonymous.baseref, org.jetbrains.kotlin.idea.stubindex.KotlinInnerTypeAliasClassIdIndex, org.jetbrains.kotlin.idea.stubindex.KotlinJvmNameAnnotationIndex, org.jetbrains.kotlin.idea.stubindex.KotlinOverridableInternalMembersShortNameIndex, java.class.extlist, gr.script.fqn, org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeFqNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelFunctionByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinClassShortNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinMultifileClassPartIndex, markdown.header, org.jetbrains.kotlin.idea.stubindex.KotlinTypeAliasByExpansionShortNameIndex, gr.class.super, java.field.name, java.class.fqn, jvm.static.member.name, org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeShortNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinFilePartClassIndex, java.module.name, gr.annot.method.name, org.jetbrains.kotlin.idea.stubindex.KotlinProbablyNothingFunctionShortNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinFileFacadeClassByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelPropertyByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinAnnotationsIndex, gr.anonymous.class, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelFunctionFqnNameIndex, dom.elementClass, gr.class.fqn, org.jetbrains.kotlin.idea.stubindex.KotlinFunctionShortNameIndex, kotlin.primeIndexKey, org.jetbrains.kotlin.idea.stubindex.KotlinExactPackagesIndex, gr.script.class, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelExtensionsByReceiverTypeIndex, gr.field.name, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelPropertyFqnNameIndex, java.method.name, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelTypeAliasByPackageIndex, java.class.shortname, org.jetbrains.kotlin.idea.stubindex.KotlinTypeAliasShortNameIndex, org.jetbrains.kotlin.idea.stubindex.KotlinExtensionsInObjectsByReceiverTypeIndex, gr.method.name, org.jetbrains.kotlin.idea.stubindex.KotlinSubclassObjectNameIndex, properties.index, java.annotations, jvm.static.member.type, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelClassByPackageIndex, org.jetbrains.kotlin.idea.stubindex.KotlinPropertyShortNameIndex, java.method.parameter.types, org.jetbrains.kotlin.idea.stubindex.KotlinTopLevelTypeAliasFqNameIndex}.
2022-12-20 08:55:03,873 [ 38733] INFO - #c.j.r.f.FollowMeManager - Register new user 0:'abc' with ClientId=ClientId(value=Host)
2022-12-20 08:55:05,229 [ 40089] INFO - #c.i.o.a.Experiments - Experimental features enabled for user: wsl.p9.support, wsl.prefer.p9.support, wsl.p9.show.roots.in.file.chooser, wsl.execute.with.wsl.exe, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, search.everywhere.mixed.results, new.project.wizard, editor.reader.mode, new.large.text.file.viewer, terminal.shell.command.handling
2022-12-20 08:55:13,036 [ 47896] WARN - #o.j.i.maven - Using extension org.jetbrains.idea.maven.maven3.Maven3Support#7f50729b to start MavenServer
2022-12-20 08:55:13,547 [ 48407] INFO - #o.j.i.maven - Sent token to maven server
I am trying to get set up with Lombok in an IntelliJ project. I'm using IntelliJ IDEA 2022 Community Edition. I didn't select any specific build system (Maven, Gradle, etc.) for my project, but I configured source, test, and output directories for IntelliJ.
IntelliJ does recognize Lombok within the editor, and will not show any errors if I use setters and getters generated by Lombok. It is only when compiling that I see any errors.
IntelliJ is able to compile normal java code fine when I run build, but it doesn't process Lombok annotations. Strangely, it generates generated and generated_tests directories in the output folder, which I assume are supposed to hold Java code after all annotation processing. But, those files are empty. Instead, the compiled class files (without any Lombok getters and setters) are created in their usual output folders.
In the build output, I see the warning
java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate. Use build process "jps.track.ap.dependencies" VM flag to enable/disable incremental annotation processing environment.
If I use the setters and getters generated by Lombok in my source code, my build instead fails with errors such as
java: cannot find symbol
symbol: method getName()
location: class mypackage.MyClass
I have followed advice from similar questions, including
I ensured that the (builtin) Lombok plugin is enabled and installed.
I checked Enable annotation processing and Obtain processors from project classpath in Settings > Build, Execution, Deployment > Compiler > Annotation Processors.
I added the -Djps.track.ap.dependencies=false flag to the "User-local build process VM Options" setting in Settings > Build, Execution, Deployment > Compiler.
I ensured that my version of Lombok is the newest one (version 1.18.24). I downloaded the jar file directly from the Project Lombok website, and included it as an external library.
After taking all of these steps, I invalidated my cache and restarted the IDE.
Other info:
I am using OpenJDK 18.
Edit 1
The following is written to log/build.log when I rebuild the project (without relying on setters and getters)
2022-06-14 22:50:45,429 [ 32] INFO - #o.j.j.c.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2022.1.2/plugins/java/lib/jps-launcher.jar
2022-06-14 22:50:45,687 [ 290] INFO - #o.j.j.c.BuildMain - Connection to IDE established in 234 ms
2022-06-14 22:50:45,857 [ 460] INFO - #o.j.j.c.JpsModelLoaderImpl - Loading model: project path = C:/Users/laxon/Desktop/Coding/Languages/Java/LombokTest, global options path = C:/Users/laxon/AppData/Roaming/JetBrains/IdeaIC2022.1/options
2022-06-14 22:50:46,037 [ 640] INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 179 ms
2022-06-14 22:50:46,037 [ 640] INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 3 libraries
2022-06-14 22:50:46,111 [ 714] INFO - #c.i.u.i.FilePageCache - lower=100; upper=500; buffer=10; max=980
2022-06-14 22:50:46,557 [ 5] INFO - #o.j.j.c.BuildMain - ==================================================
2022-06-14 22:50:46,584 [ 32] INFO - #o.j.j.c.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2022.1.2/plugins/java/lib/jps-launcher.jar
2022-06-14 22:50:46,852 [ 300] INFO - #o.j.j.c.BuildMain - Connection to IDE established in 251 ms
2022-06-14 22:50:47,047 [ 495] INFO - #o.j.j.c.JpsModelLoaderImpl - Loading model: project path = C:/Users/laxon/Desktop/Coding/Languages/Java/LombokTest, global options path = C:/Users/laxon/AppData/Roaming/JetBrains/IdeaIC2022.1/options
2022-06-14 22:50:47,219 [ 667] INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 171 ms
2022-06-14 22:50:47,219 [ 667] INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 3 libraries
2022-06-14 22:50:47,283 [ 731] INFO - #c.i.u.i.FilePageCache - lower=100; upper=500; buffer=10; max=980
2022-06-14 22:50:47,432 [ 880] INFO - #o.j.j.i.IncProjectBuilder - Building project; isRebuild:true; isMake:false parallel compilation:false
2022-06-14 22:50:47,433 [ 881] INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin incremental compilation enabled for JVM: true
2022-06-14 22:50:47,433 [ 881] INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin incremental compilation enabled for JS: true
2022-06-14 22:50:47,437 [ 885] INFO - #o.j.k.j.b.KotlinBuilder - is Kotlin compiler daemon enabled: true
2022-06-14 22:50:47,437 [ 885] INFO - #o.j.k.j.b.KotlinBuilder - Label in local history: build started 9039cfb8
2022-06-14 22:50:47,472 [ 920] INFO - #o.j.j.b.i.CompilerReferenceIndex - backward reference index deleted
java.lang.Exception
at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex.removeIndexFiles(CompilerReferenceIndex.java:190)
at org.jetbrains.jps.backwardRefs.index.CompilerReferenceIndex.removeIndexFiles(CompilerReferenceIndex.java:183)
at org.jetbrains.jps.backwardRefs.JavaBackwardReferenceIndexWriter.initialize(JavaBackwardReferenceIndexWriter.java:69)
at org.jetbrains.jps.incremental.java.JavaBuilder.buildStarted(JavaBuilder.java:173)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:444)
at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:197)
at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:150)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:348)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:175)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:218)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
2022-06-14 22:50:47,472 [ 920] INFO - #o.j.j.b.i.CompilerReferenceIndex - backward reference index version doesn't exist
2022-06-14 22:50:47,653 [ 1101] INFO - #o.j.j.i.IncProjectBuilder - Cleaned output directories in 49 ms
2022-06-14 22:50:47,887 [ 1335] INFO - #o.j.k.j.b.KotlinBuilder - KotlinTargetsIndex created in 31 ms
2022-06-14 22:50:47,900 [ 1348] INFO - #o.j.k.j.b.KotlinBuilder - Total Kotlin global compile context initialization time: 48 ms
2022-06-14 22:50:48,377 [ 1825] INFO - #o.j.j.i.j.JavaBuilder - Compiling 1 java files; module: LombokTest
2022-06-14 22:50:49,880 [ 3328] INFO - #o.j.j.i.j.JavaBuilder - Compiling 1 java files; module: LombokTest (tests)
2022-06-14 22:50:50,562 [ 4010] INFO - #o.j.j.c.BuildSession - Build duration: Builder 'Backward references indexer' took 65 ms; 0 sources processed
2022-06-14 22:50:50,562 [ 4010] INFO - #o.j.j.c.BuildSession - Build duration: Builder 'Java' took 1 s 913 ms; 2 sources processed (956 ms per file)
2022-06-14 22:50:50,562 [ 4010] INFO - #o.j.j.c.BuildSession - Build duration: Builder 'Kotlin Builder' took 538 ms; 0 sources processed
2022-06-14 22:50:50,567 [ 4015] INFO - #o.j.j.i.j.JavaBuilder - javac 18.0.1.1 was used to compile [LombokTest]
2022-06-14 22:50:50,937 [ 3] INFO - #o.j.j.c.BuildMain - ==================================================
2022-06-14 22:50:50,963 [ 29] INFO - #o.j.j.c.BuildMain - Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2022.1.2/plugins/java/lib/jps-launcher.jar
2022-06-14 22:50:51,217 [ 283] INFO - #o.j.j.c.BuildMain - Connection to IDE established in 233 ms
2022-06-14 22:50:51,238 [ 304] INFO - #c.i.o.u.i.w.IdeaWin32 - Native filesystem for Windows is operational
2022-06-14 22:50:51,262 [ 328] INFO - #o.j.j.c.JpsModelLoaderImpl - Loading model: project path = C:/Users/laxon/Desktop/Coding/Languages/Java/LombokTest, global options path = C:/Users/laxon/AppData/Roaming/JetBrains/IdeaIC2022.1/options
2022-06-14 22:50:51,441 [ 507] INFO - #o.j.j.c.JpsModelLoaderImpl - Model loaded in 177 ms
2022-06-14 22:50:51,441 [ 507] INFO - #o.j.j.c.JpsModelLoaderImpl - Project has 1 modules, 3 libraries
2022-06-14 22:50:51,512 [ 578] INFO - #c.i.u.i.FilePageCache - lower=100; upper=500; buffer=10; max=980
2022-06-14 22:50:51,662 [ 728] INFO - #o.j.j.c.BuildMain - Pre-loaded process ready in 725 ms
2022-06-14 22:50:51,722 [ 788] INFO - #o.j.j.c.BuildMain - Build canceled, but no build session is running. Exiting.
When building Flutter apps the ALT + Enter keyboard shortcut is very convenient not only to bring up Quick Fixes but also to bring up a popup menu to wrap/remove Widgets. It was working fine until I ran flutter upgrade and updated the Dart and Flutter plugins in IntelliJ (version 2018.3.5).
I have tried messing about with the keyboard shortcuts for an hour, disabling and re-enabling Dart/Flutter plugins, restarting and invalidating caches in IntelliJ, closing all other applications and rebooting Windows 10 numerous times. Nothing works. I can not get Alt+Enter to do anything anymore. It was working fine until I updated the plugins and the Flutter SDK, so it seems something in those updates broke it.
Actually, Alt+Enter doesn't seem to work for anything, and the "suggestion bulb" does not show up either. For example, if I type
String x = 2;
the 2 gets the normal red underline, but no bulb shows up and Al+Enter does nothing. I've trippel checked that the "show intention bulb" is checked in the settings and that the correct keyboard shortcuts are assigned (just to be sure I have reset them to Default).
Has anyone else experienced this lately and found a fix? I've tried all the suggestions I could find on StackOverflow, but none of them work and none of them specifically target the Dart/Flutter intention/action/quickfix popup.
EDIT
This is the IntelliJ log after restarting. I started with the Dart SDK that seems to break Alt+Enter, then switched to the other one which makes Alt+Enter work but disables the possibility to select a device to run the app on, then switched back to the first one again (see comments near the end of the log):
// Startup with SDK C:\Users\MyUser\flutter\bin\cache\dart-sdk 2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36
2019-03-04 10:10:01,523 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-183.5912.21, 26 Feb 2019 12:01)
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-1343-b28 (JetBrains s.r.o)
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - JVM: 25.152-b28 (OpenJDK 64-Bit Server VM)
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.3\bin\idea64.exe.vmoptions -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IntelliJIdea2018.3 -XX:ErrorFile=C:\Users\MyUser\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\MyUser\java_error_in_idea.hprof
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - ext: C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.3\jre64\lib\ext: [access-bridge-64.jar, cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunmscapi.jar, sunpkcs11.jar, zipfs.jar]
2019-03-04 10:10:01,539 [ 16] INFO - #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252
2019-03-04 10:10:01,570 [ 47] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 31 ms
2019-03-04 10:10:01,570 [ 47] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2019-03-04 10:10:01,648 [ 125] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2019-03-04 10:10:02,460 [ 937] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor javaee-specific.xml
2019-03-04 10:10:02,460 [ 937] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor java-specific.xml
2019-03-04 10:10:02,915 [ 1392] INFO - .intellij.idea.IdeaApplication - CPU cores: 8; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool#6865c311[Running, parallelism = 7, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory#21227af0
2019-03-04 10:10:02,931 [ 1408] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (JRE-managed HiDPI)
2019-03-04 10:10:03,151 [ 1628] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor javaee-specific.xml
2019-03-04 10:10:03,151 [ 1628] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor java-specific.xml
2019-03-04 10:10:03,508 [ 1985] INFO - llij.ide.plugins.PluginManager - 138 plugins initialized in 451 ms
2019-03-04 10:10:03,508 [ 1985] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), Android Support (10.3.1.2), AngularJS (183.5912.21), Ant Support (1.0), Application Servers View (0.2.0), AspectJ Support (1.2), Bytecode Viewer (0.1), CFML Support (3.53), CSS Support (183.5912.21), CVS Integration (11), Cloud Foundry integration (1.0), CloudBees integration (1.0), CoffeeScript (183.5912.21), Copyright (8.1), Coverage (183.5912.21), Cucumber for Groovy (183.5912.21), Cucumber for Java (183.5912.21), DSM Analysis (1.0.0), Database Tools and SQL (183.5912.21), Docker integration (183.5912.21), Eclipse Integration (3.0), EditorConfig (183.5912.21), Emma (183.5912.21), Flash/Flex Support (183.5912.21), FreeMarker support (1.0), GWT Support (1.0), Geronimo Integration (1.0), Gherkin (999.999), Git Integration (8.1), GitHub (183.5912.21), GlassFish Integration (1.0), Google App Engine (1.1.4), Gradle (183.5912.21), Grails (9.0), Groovy (9.0), Guice (8.0), HTML Tools (2.0), HTTP Client (183.5912.21), Haml (183.5912.21), Heroku integration (183.5912.21), Hibernate Support (1.0), I18n for Java (183.5912.21), IDE Settings Sync (183.5912.21), IDEA CORE (183.5912.21), IntelliJ Configuration Script (183.5912.21), IntelliLang (8.0), J2ME (1.0), JBoss Arquillian Support (1.0), JBoss Drools Support (1.0), JBoss Frameworks Base Support (1.0), JBoss Integration (1.0), JBoss Seam Pageflow Support (1.0), JBoss Seam Pages Support (1.0), JBoss Seam Support (1.0), JBoss jBPM (2.0.0), JSR45 Integration (1.0), JUnit (1.0), Java Bytecode Decompiler (183.5912.21), Java EE: Batch Applications (1.0), Java EE: Bean Validation Support (1.1), Java EE: Contexts and Dependency Injection (1.1), Java EE: EJB, JPA, Servlets (1.0), Java EE: JMS, JSON Processing, Concurrency, Transaction (1.0), Java EE: Java Server Faces (2.2.X.), Java EE: RESTful Web Services (JAX-RS) (1.0), Java EE: Web Services (JAX-WS) (1.9), Java EE: WebSockets (1.0), Java Server Pages (JSP) Integration (1.0), Java Stream Debugger (183.5912.21), JavaFX (1.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Jetty Integration (1.0), Less support (183.5912.21), Markdown support (183.5912.21), Maven Integration (183.5912.21), Maven Integration Extension (183.5912.21), Mercurial Integration (10.0), OpenShift integration (1.0), Osmorc (1.4.12), Perforce Integration (2.0), Performance Testing (183.5912.21), Persistence Frameworks Support (1.0), Playframework Support (1.0), Plugin DevKit (1.0), Properties Support (183.5912.21), Reactor framework support (1.0), Refactor-X (2.01), Remote Hosts Access (183.5912.21), Resin Integration (8.1), SSH Remote Run (0.1), Sass support (183.5912.21), Settings Repository (183.5912.21), Smali Support (1.0), Spring AOP/#AspectJ (1.0), Spring Batch (1.0), Spring Boot (1.0), Spring Data (1.0), Spring Integration Patterns (1.0), Spring MVC (1.0), Spring OSGi (1.0), Spring Security (1.0), Spring Support (1.0), Spring Web Flow (1.0), Spring Web Services (1.0), Spring WebSocket (1.0), Spy-js (183.5912.21), Struts 1.x (2.0), Struts 2 (1.0), Stylus support (999.999), Subversion Integration (1.1), TFS (999.999), Tapestry support (1.0), Task Management (1.0), Terminal (0.1), TestNG-J (8.0), Thymeleaf (1.0), Time Tracking (1.0), Tomcat and TomEE Integration (1.0), UI Designer (183.5912.21), UML Support (1.0), Vaadin Support (1.0), Velocity support (1.0), W3C Validators (2.0), WSL Support Framework (183.5912.21), WebLogic Integration (1.0), WebSphere Integration (1.0), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (183.5912.21), ZKM-Unscramble (1.0), dmServer Support (0.9.5), tslint (183.5912.21)
2019-03-04 10:10:03,508 [ 1985] INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Dart (183.5912.23), Flutter (33.3.2), Kotlin (1.3.21-release-IJ2018.3-1), PHP (183.5429.47)
2019-03-04 10:10:04,817 [ 3294] INFO - cloudConfig.CloudConfigManager - === Start: JBA_NOT_CONNECTED ===
2019-03-04 10:10:04,892 [ 3369] INFO - pi.util.registry.RegistryState - Registry values changed by user:
2019-03-04 10:10:04,892 [ 3369] INFO - pi.util.registry.RegistryState - git.explicit.commit.renames.prohibit.multiple.calls = false
2019-03-04 10:10:04,905 [ 3382] INFO - pi.util.registry.RegistryState - Experimental features enabled for user: inline.browse.button
2019-03-04 10:10:04,940 [ 3417] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2019-03-04 10:10:04,997 [ 3474] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2018.3.3\bin\fsnotifier64.exe
2019-03-04 10:10:05,007 [ 3484] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2019-03-04 10:10:05,287 [ 3764] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=0.0; restored: fontSize=12, fontScale=1.0
2019-03-04 10:10:05,708 [ 4185] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2019-03-04 10:10:05,724 [ 4201] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2019-03-04 10:10:05,775 [ 4252] INFO - gs.impl.UpdateCheckerComponent - channel: release
2019-03-04 10:10:05,901 [ 4378] INFO - j.ide.ui.OptionsTopHitProvider - 209 ms spent to cache options in application
2019-03-04 10:10:05,901 [ 4378] INFO - .openapi.application.Preloader - com.intellij.ide.ui.OptionsTopHitProvider$Activity took 207 ms
2019-03-04 10:10:05,935 [ 4412] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:122, number of extensions:100
2019-03-04 10:10:05,942 [ 4419] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:6
2019-03-04 10:10:05,975 [ 4452] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:24, number of extensions:135
2019-03-04 10:10:05,975 [ 4452] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2019-03-04 10:10:06,349 [ 4826] INFO - ndex.PrebuiltIndexProviderBase - Using prebuilt id-index from C:\Users\MyUser\.IntelliJIdea2018.3\system\index\.persistent\prebuilt\PHP\id-index.input
2019-03-04 10:10:06,696 [ 5173] INFO - plication.impl.ApplicationImpl - 94 application components initialized in 3639ms
2019-03-04 10:10:06,697 [ 5174] INFO - .intellij.idea.IdeaApplication - App initialization took 5993 ms
2019-03-04 10:10:06,963 [ 5440] INFO - m.intellij.ui.mac.touchbar.NST - OS doesn't support touchbar, skip nst loading
2019-03-04 10:10:07,455 [ 5932] INFO - pl$FileIndexDataInitialization - Initialization done:1513
2019-03-04 10:10:07,628 [ 6105] INFO - exImpl$StubIndexInitialization - Initialization done:171
2019-03-04 10:10:07,796 [ 6273] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2019-03-04 10:10:07,797 [ 6274] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=16, fontScale=1.0; restored: fontSize=16, fontScale=1.0
2019-03-04 10:10:08,017 [ 6494] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2019-03-04 10:10:08,017 [ 6494] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [D:/FAPPS/ResursAppFlutter]
2019-03-04 10:10:08,586 [ 7063] INFO - ellij.project.impl.ProjectImpl - 200 project components initialized in 1429 ms
2019-03-04 10:10:08,664 [ 7141] INFO - .openapi.application.Preloader - com.intellij.openapi.actionSystem.impl.ActionPreloader took 2766 ms
2019-03-04 10:10:08,763 [ 7240] INFO - le.impl.ModuleManagerComponent - 2 module(s) loaded in 177 ms
2019-03-04 10:10:08,893 [ 7370] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2019-03-04 10:10:09,023 [ 7500] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2019-03-04 10:10:09,117 [ 7594] INFO - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2019-03-04 10:10:09,743 [ 8220] INFO - PerformancePlugin - Performance Plugin is in silent mode
2019-03-04 10:10:09,787 [ 8264] INFO - CompilerWorkspaceConfiguration - Available processors: 8
2019-03-04 10:10:09,946 [ 8423] INFO - ellij.project.impl.ProjectImpl - 24 project components initialized in 16 ms
2019-03-04 10:10:09,946 [ 8423] INFO - .openapi.application.Preloader - com.intellij.ide.ui.search.SearchableOptionPreloader took 1289 ms
2019-03-04 10:10:10,287 [ 8764] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/jps-launcher.jar;C:/Program Files/Android/Android Studio 3.3/jre/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/optimizedFileManager.jar
2019-03-04 10:10:10,334 [ 8811] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2019-03-04 10:10:10,334 [ 8811] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2019-03-04 10:10:10,334 [ 8811] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2019-03-04 10:10:10,586 [ 9063] INFO - .openapi.application.Preloader - com.intellij.codeInsight.completion.CompletionPreloader took 632 ms
2019-03-04 10:10:10,602 [ 9079] INFO - .openapi.application.Preloader - com.intellij.ide.actions.GotoClassPresentationUpdater took 10 ms
2019-03-04 10:10:10,945 [ 9422] INFO - llij.database.util.SqlDialects - SQL dialects initialized in 78 ms
2019-03-04 10:10:11,678 [ 10155] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 924ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:10:12,569 [ 11046] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/jps-launcher.jar;C:/Program Files/Android/Android Studio 3.3/jre/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.3.3/lib/optimizedFileManager.jar
2019-03-04 10:10:12,616 [ 11093] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2019-03-04 10:10:12,616 [ 11093] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2019-03-04 10:10:12,616 [ 11093] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2019-03-04 10:10:14,417 [ 12894] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 3550ms under project opening modal progress
2019-03-04 10:10:14,502 [ 12979] INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 9 millis
2019-03-04 10:10:15,022 [ 13499] INFO - tartup.impl.StartupManagerImpl - DartDumbAwareStartupActivity run in 333ms under project opening modal progress
2019-03-04 10:10:15,033 [ 13510] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 4353ms; general responsiveness: ok; EDT responsiveness: 3/5 sluggish
2019-03-04 10:10:15,099 [ 13576] INFO - cloudConfig.CloudConfigManager - === Start.updateInitStatus ===
2019-03-04 10:10:15,103 [ 13580] INFO - cloudConfig.CloudConfigManager - === StatusBar.update create ===
2019-03-04 10:10:15,104 [ 13581] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus ===
2019-03-04 10:10:15,471 [ 13948] INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files ===
2019-03-04 10:10:15,486 [ 13963] INFO - j.ide.ui.OptionsTopHitProvider - 270 ms spent on EDT to cache options in application
2019-03-04 10:10:15,843 [ 14320] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus.value: JBA_NOT_CONNECTED ===
2019-03-04 10:10:15,848 [ 14325] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 4170ms; general responsiveness: ok; EDT responsiveness: 3/4 sluggish
2019-03-04 10:10:15,873 [ 14350] INFO - Json.PackageJsonUpdateNotifier - processPackageJsonFiles []
2019-03-04 10:10:16,746 [ 15223] INFO - tartup.impl.StartupManagerImpl - D:/FAPPS/ResursAppFlutter/.idea case-sensitivity: expected=false actual=false
2019-03-04 10:10:16,767 [ 15244] INFO - #git4idea.commands.GitHandler - [.] git version
2019-03-04 10:10:16,864 [ 15341] INFO - #git4idea.commands.GitHandler - git version 2.20.1.windows.1
2019-03-04 10:10:16,892 [ 15369] INFO - ea.config.GitExecutableManager - Git version for C:\Program Files\Git\cmd\git.exe : 2.20.1
2019-03-04 10:10:16,951 [ 15428] INFO - cloudConfig.CloudConfigManager - === End.updateInitStatus ===
2019-03-04 10:10:16,987 [ 15464] INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #1: C:/Users/MyUser/flutter/bin/flutter.bat daemon
2019-03-04 10:10:17,202 [ 15679] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [D:/FAPPS/ResursAppFlutter]
2019-03-04 10:10:17,240 [ 15717] INFO - j.ide.ui.OptionsTopHitProvider - 220 ms spent to cache options in project
2019-03-04 10:10:17,240 [ 15717] INFO - tartup.impl.StartupManagerImpl - Some post-startup activities freeze UI for noticeable time. Please consider making them DumbAware to do them in background under modal progress, or just making them faster to speed up project opening.
2019-03-04 10:10:17,240 [ 15717] INFO - tartup.impl.StartupManagerImpl - Activity run in 220ms on UI thread
2019-03-04 10:10:17,261 [ 15738] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2019-03-04 10:10:17,339 [ 15816] INFO - cloudConfig.CloudConfigManager - === StatusBar.start another widget: com.intellij.cloudConfig.StatusBarInfoManager$InfoComponent#2604d2f0 ===
2019-03-04 10:10:17,455 [ 15932] INFO - #io.flutter.sdk.FlutterCommand - C:\Users\MyUser\flutter\bin\flutter.bat [--no-color, config, --machine]
2019-03-04 10:10:17,460 [ 15937] INFO - #io.flutter.sdk.FlutterSdk - Calling config --machine
2019-03-04 10:10:19,028 [ 17505] INFO - #io.flutter.sdk.FlutterSdk - flutter config --machine: 1568ms
2019-03-04 10:10:19,105 [ 17582] INFO - tor.impl.FileEditorManagerImpl - Project opening took 12018 ms
2019-03-04 10:10:19,273 [ 17750] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-03-04 10:10:19,579 [ 18056] INFO - j.ide.ui.OptionsTopHitProvider - 135 ms spent on EDT to cache options in project
2019-03-04 10:10:19,901 [ 18378] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 7ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:10:19,965 [ 18442] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 64ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:10:20,618 [ 19095] INFO - tartup.impl.StartupManagerImpl - CreateKotlinSdkActivity run in 444ms on UI thread
2019-03-04 10:10:43,936 [ 42413] WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
// Switched to C:\Program Files\Dart\dart-sdk 2.1.0
2019-03-04 10:11:04,852 [ 63329] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-03-04 10:11:04,950 [ 63427] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 51ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:11:05,027 [ 63504] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 77ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:11:05,069 [ 63546] INFO - lutter.run.daemon.DeviceDaemon - shutting down Flutter device daemon #1: C:/Users/MyUser/flutter/bin/flutter.bat daemon
2019-03-04 10:11:06,653 [ 65130] WARN - com.intellij.util.xmlb.Binding - no accessors for class io.flutter.sdk.FlutterPluginLibraryProperties
2019-03-04 10:11:31,565 [ 90042] WARN - ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
// Switched back to C:\Users\MyUser\flutter\bin\cache\dart-sdk 2.2.0-edge.0a7dcf17eb5f2450480527d6ad1e201fb47f1e36
2019-03-04 10:12:04,384 [ 122861] INFO - pl.ProjectRootManagerComponent - project roots have changed
2019-03-04 10:12:04,560 [ 123037] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 42ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:12:04,612 [ 123089] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 52ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-04 10:12:04,820 [ 123297] INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #2: C:/Users/MyUser/flutter/bin/flutter.bat daemon
2019-03-04 10:12:04,948 [ 123425] INFO - lutter.run.daemon.DeviceDaemon - starting Flutter device daemon #3: C:/Users/MyUser/flutter/bin/flutter.bat daemon
2019-03-04 10:12:16,621 [ 135098] INFO - ide.actions.ShowFilePathAction -
Exit code 1
Here it is. You are welcome. 🤓🤓
Go to File > Settings > Editor > Intentions and Confirm the Dart Analysis Server.
For Mac OS:
Go to Android Studio -> Preferences -> Editor -> Intentions -> Quick assists powered by the Dart Analysis Server (Mark it) -> Apply.
After I did invalidate cache and restart, it worked fine.
I had the same issue. This solved it for me:
Switch to a different flutter channel. If you are on stable then go to beta or vice versa. Instructions on switching channels at this link:
https://flutter.dev/docs/development/tools/sdk/upgrading
Run flutter upgrade
Restart your IDE.
Check to see if the lightbulb (or ALT-Enter or Option-Return) is now active.
Switch back to your other channel and repeat steps 2 and 3 above.
When I imported another Flutter project I noticed that Alt+Enter was working fine in that project, but still not in the original project. I tried deleting all IntelliJ-related files (*.iml and .idea specifically) and recreating the original project - but Alt+Enter still didn't work.
That's when I started looking more carefully into the files in the lib source folder, and I found a suspicious file called analysis_options.yaml that I hadn't really noticed before. It contains
analyzer:
language:
enableSuperMixins: true
I deleted it (and the IntelliJ-related *.iml files and the .idea folder) and recreated the project - and finally Alt+Enter is working normally again!
The analysis_options.yaml file seems to have been added by a colleague a long time ago, so I'm still not sure why this problem didn't appear until after working on the project for a few months.
For those who are on Mac and nothing helps, try this:
Also, make sure that "Quick assist..." is checked (see #Gazihan Alankus's answer) and you have Dart and Flutter plugins installed on your Android Studio
For someone that might still have this issue.
If you have tried all the above and it still doesn't work.
Try disabling all your plugins and check if it has started working.
If it starts working
Enable your plugins one after the other to check for the plugin that made it not work
Check the shortcut of "Show Intention Actions" in the Keymap to see whether it's "Alt+Enter" or not. In my case, I'm using Mac OS X, Android Studio and the Eclipse Mac OS X keymap, and the shortcut of "Show Intention Actions" is "command+1".
I have added a small example task to the gradle.build in one of the folders of the project:
task fail {
println "ready to fail..."
throw(new Exception("This should not be reached!"))
}
When I am trying to commit this very gradle.build file, it fails with the message:
9:53 Commit failed with error
0 files committed, 1 file failed to commit: A useful commit transaction abort!
rollback completed
abort: The system cannot find the file specified
When I am looking into the log, I see there:
Caused by: java.lang.Exception: This should not be reached!
...
2017-07-19 10:22:55,233 [ 247646] INFO - .BaseProjectImportErrorHandler - Failed to import Gradle project at 'C:/Users/543829657/workspace/dev.appl.ib.cbl' org.gradle.tooling.BuildException: Could not run build action using Gradledistribution 'https://services.gradle.org/distributions/gradle-3.2.1-bin.zip'.
Caused by: org.gradle.internal.exceptions.LocationAwareException: Build file 'C:\Users\543829657\workspace\dev.appl.ib.cbl\application\build.gradle' line: 276
...
Caused by: java.lang.Exception: This should not be reached!
...
And, surprisingly, at the end of the log appears that strange message about the lost file:
2017-07-19 10:23:05,307 [ 257720] INFO - ea.execution.HgCommandExecutor - hg.exe commit
--logfile C:\Users\543829657\.IntelliJIdea2017.1\system\.hg4idea-commit.tmp application\build.gradle
2017-07-19 10:23:07,655 [ 260068] INFO - ea.execution.HgCommandExecutor - transaction abort!
rollback completed
abort: The system cannot find the file specified
2017-07-19 10:24:38,784 [ 351197] INFO - ea.execution.HgCommandExecutor - hg.exe incoming
2017-07-19 10:24:49,856 [ 362269] INFO - ea.execution.HgCommandExecutor - hg.exe outgoing
2017-07-19 10:27:32,259 [ 524672] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_72
2017-07-19 10:27:32,299 [ 524712] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from C:/Program Files/Java/jdk1.8.0_72
2017-07-19 10:27:32,319 [ 524732] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: -Didea.version=2017.1.5
-Didea.resolveSourceSetDependencies=true
-Pandroid.injected.build.model.only=true
-Pandroid.injected.build.model.only.advanced=true
-Pandroid.injected.invoked.from.ide=true
-Pandroid.injected.studio.version=2017.1.5.0.0 --init-script C:\Users\543829657\AppData\Local\Temp\ijinit.gradle
2017-07-19 10:27:33,554 [ 525967] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 'build.gradle'
2017-07-19 10:27:33,751 [ 526164] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2017-07-19 10:27:56,522 [ 548935] INFO - pl.ProjectRootManagerComponent - project roots have changed
2017-07-19 10:27:56,835 [ 549248] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 51ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-19 10:27:56,947 [ 549360] INFO - pl.ProjectRootManagerComponent - project roots have changed
2017-07-19 10:27:56,957 [ 549370] INFO - indexing.UnindexedFilesUpdater - Unindexed files update canceled
2017-07-19 10:27:57,084 [ 549497] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 33ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-19 10:27:57,328 [ 549741] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 244ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-19 10:29:38,745 [ 651158] INFO - ea.execution.HgCommandExecutor - hg.exe incoming
2017-07-19 10:29:56,117 [ 668530] INFO - ea.execution.HgCommandExecutor - hg.exe outgoing
2017-07-19 10:34:38,752 [ 951165] INFO - ea.execution.HgCommandExecutor - hg.exe incoming
2017-07-19 10:34:54,816 [ 967229] INFO - ea.execution.HgCommandExecutor - hg.exe outgoing
I don't want IntelliJ to run the gradle tasks before the every commit. Also, I do not understand why "file not found" is declared as a reason for fail, instead of the real one.
Of course, really I have problems with a real task, but it is commented out for now, to hava a problem it its relatively pure state. It is a publishing task, and obviously, I don't need it running at IDE's will. Even worse, it is launched not from the correct directory and creates invalid folders because of that problem.
P.S. And of course, I have tried restart and caches invalidation.
The tasks do not get executed, only configured. Gradle distinguishes between the configuration phase, where the build script gets executed (yeah, a little bit confusing) to configure all tasks, and the execution phase, where selected tasks (from the command line and their dependencies) are executed. Any code provided in the closure after a task definition is meant to configure the task, but it is not executed during execution phase. Only task actions (defined by the task type), doFirst and doLast closures are executed during execution phase. A build.gradle file containing the task definition from your snippet will always fail, because you throw an exception in any configuration phase.
Modern IDEs integrate tools like Gradle (or Maven) to build the projects, but also for other tasks. So I assume, that a successful Gradle configuration is a requirement for a stable IntelliJ project. Since IntelliJ uses (helper) tasks to determine the tasks provided for a project, it cannot retrieve them, if the configuration phase fails. Therefor it interprets the project as corrupt. I don't know how Git is integrated in IntelliJ, but I could imagine that this integration requires a stable project. I guess you could compare the failing configuration phase of a Gradle project with an unparsable Maven pom.xml file.
I don't know how your real publishing task is defined, but I could imagine that you did the same mistake by putting execution code into the configuration closure, causing the task to be "executed" on each Gradle invocation, even on commit via IntelliJ.
task myTask() {
// Executed when the task is defined, everytime you run gradle
println 'Configuration phase'
doLast {
// Executed on task execution, only if the task is specified (CMD or task dependency)
println 'Execution phase'
}
}
Please note, that Gradle has a deprecated feature, which may have caused this phase confusion. You can (but you should not) define a task with the << operator, which automatically creates a doLast closure:
task myDeprecatedTask << {
println 'Execution phase'
}
I am having issues with my Intellij set up. I am able to build successfully from the command line, but when I try to refresh my build file it never completes and just says 'Gradle project sync in progress...'. When I tail the logs, I get this:
INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
INFO - .project.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: [--init-script, /private/var/folders/nj/qb8hxhjx6ng8bp5c0070dt3m0000gn/T/ijinit9082569265104558481.gradle]
INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2 ms
INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
ERROR - plication.impl.ApplicationImpl - null
java.lang.AssertionError: null
at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:66)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2077)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeOnEdt(ExternalSystemApiUtil.java:377)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeProjectChangeAction(ExternalSystemApiUtil.java:359)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback.onSuccess(ExternalSystemUtil.java:760)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$2.execute(ExternalSystemUtil.java:434)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3$2.run(ExternalSystemUtil.java:483)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1126)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1103)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2074)
... 19 more
Caused by: org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: Dependencies.getJars().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
at org.gradle.tooling.model.internal.Exceptions.unsupportedMethod(Exceptions.java:33)
at org.gradle.tooling.internal.adapter.ProtocolToModelAdapter$InvocationHandlerImpl.invoke(ProtocolToModelAdapter.java:240)
at com.sun.proxy.$Proxy128.getJars(Unknown Source)
at com.android.tools.idea.gradle.dependency.Dependency.populate(Dependency.java:99)
at com.android.tools.idea.gradle.dependency.Dependency.extractFrom(Dependency.java:88)
at com.android.tools.idea.gradle.customizer.android.DependenciesModuleCustomizer.setUpDependencies(DependenciesModuleCustomizer.java:50)
at com.android.tools.idea.gradle.customizer.android.DependenciesModuleCustomizer.setUpDependencies(DependenciesModuleCustomizer.java:43)
at com.android.tools.idea.gradle.customizer.AbstractDependenciesModuleCustomizer.customizeModule(AbstractDependenciesModuleCustomizer.java:57)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.customizeModule(AndroidProjectDataService.java:149)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.access$100(AndroidProjectDataService.java:58)
at com.android.tools.idea.gradle.service.AndroidProjectDataService$1.execute(AndroidProjectDataService.java:103)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5$1.run(ExternalSystemApiUtil.java:364)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5.run(ExternalSystemApiUtil.java:361)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeOnEdt(ExternalSystemApiUtil.java:374)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil.executeProjectChangeAction(ExternalSystemApiUtil.java:359)
at com.android.tools.idea.gradle.service.AndroidProjectDataService.importData(AndroidProjectDataService.java:94)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:90)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:74)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:98)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1$1.run(ExternalSystemUtil.java:766)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:329)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$MyMultiExternalProjectRefreshCallback$1.execute(ExternalSystemUtil.java:763)
at com.intellij.openapi.externalSystem.util.DisposeAwareProjectChange.run(DisposeAwareProjectChange.java:36)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5$1.run(ExternalSystemApiUtil.java:364)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
at com.intellij.openapi.externalSystem.util.ExternalSystemApiUtil$5.run(ExternalSystemApiUtil.java:361)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
ERROR - plication.impl.ApplicationImpl - IntelliJ IDEA 13.1.4 Build #IU-135.1230
ERROR - plication.impl.ApplicationImpl - JDK: 1.6.0_65
ERROR - plication.impl.ApplicationImpl - VM: Java HotSpot(TM) 64-Bit Server VM
ERROR - plication.impl.ApplicationImpl - Vendor: Apple Inc.
ERROR - plication.impl.ApplicationImpl - OS: Mac OS X
ERROR - plication.impl.ApplicationImpl - Last Action: ExternalSystem.RefreshAllProjects
Anyone have any ideas, I can't seem to figure out the source of either of the errors I am seeing.
If you want to use v0.13 of the Android Gradle plugin at the time of this writing, you should use Android Studio 0.8.11 or later. While IntelliJ has the Android plugin built-in, it doesn't update as often and isn't the latest version, and support for 0.13 of the Gradle plugin was added very recently.