PyCharm Displays Errors When Used as git's Core Editor

Answered

I have just installed latest PyCharm CE on my Centos 7 box. I set my git's core editor to be the pycharm. When I issue git commit in the terminal pycharm opens up and I type my commit message. When I close the window below error messages are displayed.

Can you please help me understand what the problem is and is it possible to mute this kind of messages in the terminal?

Thank you very much for your help!!

 

 

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-04-14 13:35:03,493 [ 402] WARN - llij.ide.plugins.PluginManager - Resource bundle redefinition for plugin 'com.jetbrains.pycharm.community.customization'. Old value: messages.ActionsBundle, new value: messages.PyBundle
2020-04-14 13:35:04,006 [ 915] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij]
2020-04-14 13:35:04,008 [ 917] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: com.intellij]
2020-04-14 13:35:04,008 [ 917] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: com.intellij]
2020-04-14 13:35:04,008 [ 917] WARN - nSystem.impl.ActionManagerImpl - keymap "Visual Studio" not found [Plugin: com.intellij]
2020-04-14 13:35:04,036 [ 945] WARN - nSystem.impl.ActionManagerImpl - keymap "Eclipse" not found [Plugin: PythonCore]
2020-04-14 13:35:04,037 [ 946] WARN - nSystem.impl.ActionManagerImpl - keymap "NetBeans 6.5" not found [Plugin: PythonCore]
2020-04-14 13:35:17,234 [ 14143] ERROR - il.indexing.FileBasedIndexImpl - com.intellij.serviceContainer.AlreadyDisposedException: Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=org.jetbrains.plugins.textmate.TextMateService, implementation=org.jetbrains.plugins.textmate.TextMateServiceImpl), pluginDescriptor=PluginDescriptor(name=TextMate bundles, id=org.jetbrains.plugins.textmate, path=/home/user/pycharm-community-2020.1/plugins/textmate)) because container is already disposed (container=Application (containerState=DISPOSED) )
java.lang.Throwable: Control-flow exceptions (like ProcessCanceledException) should never be logged
at com.intellij.openapi.diagnostic.Logger.checkException(Logger.java:198)
at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:88)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:172)
at com.intellij.util.indexing.VfsEventsMerger.processChanges(VfsEventsMerger.java:98)
at com.intellij.util.indexing.ChangedFilesCollector.processFilesInReadAction(ChangedFilesCollector.java:236)
at com.intellij.util.indexing.ChangedFilesCollector.ensureUpToDate(ChangedFilesCollector.java:181)
at com.intellij.util.indexing.ChangedFilesCollector.getAllFilesToUpdate(ChangedFilesCollector.java:132)
at com.intellij.util.indexing.FileBasedIndexImpl.performShutdown(FileBasedIndexImpl.java:470)
at com.intellij.util.indexing.FileBasedIndexImpl$MyShutDownTask.run(FileBasedIndexImpl.java:272)
at com.intellij.util.indexing.FileBasedIndexDataInitialization.lambda$prepare$1(FileBasedIndexDataInitialization.java:86)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:111)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:95)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:95)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:134)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:116)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:106)
at com.intellij.serviceContainer.ComponentManagerImpl.dispose(ComponentManagerImpl.kt:846)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:350)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:111)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:134)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:116)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:106)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$disposeContainer$3(ApplicationImpl.java:181)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:976)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeContainer(ApplicationImpl.java:179)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeSelf(ApplicationImpl.java:200)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:621)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:589)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:578)
at com.intellij.openapi.application.ex.ApplicationEx.exit(ApplicationEx.java:85)
at com.intellij.ide.lightEdit.LightEditServiceImpl.closeEditorWindow(LightEditServiceImpl.java:204)
at com.intellij.ide.lightEdit.LightEditServiceImpl.lambda$init$0(LightEditServiceImpl.java:72)
at com.intellij.ide.lightEdit.LightEditFrameWrapper$1.windowClosing(LightEditFrameWrapper.java:76)
at com.intellij.openapi.wm.impl.ProjectFrameHelper$2.windowClosing(ProjectFrameHelper.java:231)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.Window.processWindowEvent(Window.java:2079)
at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
at java.desktop/java.awt.Window.processEvent(Window.java:2038)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
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:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:739)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
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)
Caused by: com.intellij.openapi.progress.ProcessCanceledException: com.intellij.serviceContainer.AlreadyDisposedException: Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=org.jetbrains.plugins.textmate.TextMateService, implementation=org.jetbrains.plugins.textmate.TextMateServiceImpl), pluginDescriptor=PluginDescriptor(name=TextMate bundles, id=org.jetbrains.plugins.textmate, path=/home/user/pycharm-community-2020.1/plugins/textmate)) because container is already disposed (container=Application (containerState=DISPOSED) )
at com.intellij.serviceContainer.BaseComponentAdapter.throwAlreadyDisposedError$intellij_platform_serviceContainer(BaseComponentAdapter.kt:151)
at com.intellij.serviceContainer.BaseComponentAdapter.checkContainerIsActive(BaseComponentAdapter.kt:141)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:74)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:69)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:396)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:379)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:20)
at org.jetbrains.plugins.textmate.TextMateService.getInstance(TextMateService.java:24)
at org.jetbrains.plugins.textmate.language.TextMateFileType.isMyFileType(TextMateFileType.java:62)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getByFile(FileTypeManagerImpl.java:790)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getFileTypeByFile(FileTypeManagerImpl.java:751)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getFileTypeByFile(FileTypeManagerImpl.java:740)
at com.intellij.openapi.vfs.VirtualFile.getFileType(VirtualFile.java:330)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.getFileType(VirtualFileSystemEntry.java:460)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:715)
at com.intellij.util.indexing.FileBasedIndexImpl.scheduleFileForIndexing(FileBasedIndexImpl.java:1446)
at com.intellij.util.indexing.ChangedFilesCollector.lambda$null$2(ChangedFilesCollector.java:244)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:625)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:570)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:186)
at com.intellij.util.indexing.ChangedFilesCollector.lambda$null$3(ChangedFilesCollector.java:239)
at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:231)
at com.intellij.util.indexing.ChangedFilesCollector.lambda$processFilesInReadAction$4(ChangedFilesCollector.java:237)
at com.intellij.util.indexing.VfsEventsMerger.processChanges(VfsEventsMerger.java:95)
... 72 more
Caused by: com.intellij.serviceContainer.AlreadyDisposedException: Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=org.jetbrains.plugins.textmate.TextMateService, implementation=org.jetbrains.plugins.textmate.TextMateServiceImpl), pluginDescriptor=PluginDescriptor(name=TextMate bundles, id=org.jetbrains.plugins.textmate, path=/home/user/pycharm-community-2020.1/plugins/textmate)) because container is already disposed (container=Application (containerState=DISPOSED) )
at com.intellij.serviceContainer.BaseComponentAdapter.throwAlreadyDisposedError$intellij_platform_serviceContainer(BaseComponentAdapter.kt:146)
... 96 more
2020-04-14 13:35:17,237 [ 14146] ERROR - il.indexing.FileBasedIndexImpl - Problems during index shutdown
java.lang.Throwable: Control-flow exceptions (like ProcessCanceledException) should never be logged
at com.intellij.openapi.diagnostic.Logger.checkException(Logger.java:198)
at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:88)
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:168)
at com.intellij.util.indexing.FileBasedIndexImpl.performShutdown(FileBasedIndexImpl.java:499)
at com.intellij.util.indexing.FileBasedIndexImpl$MyShutDownTask.run(FileBasedIndexImpl.java:272)
at com.intellij.util.indexing.FileBasedIndexDataInitialization.lambda$prepare$1(FileBasedIndexDataInitialization.java:86)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:111)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:95)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:95)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:134)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:116)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:106)
at com.intellij.serviceContainer.ComponentManagerImpl.dispose(ComponentManagerImpl.kt:846)
at com.intellij.openapi.application.impl.ApplicationImpl.dispose(ApplicationImpl.java:350)
at com.intellij.openapi.util.ObjectNode.lambda$execute$0(ObjectNode.java:111)
at com.intellij.openapi.util.ObjectTree.executeActionWithRecursiveGuard(ObjectTree.java:184)
at com.intellij.openapi.util.ObjectNode.execute(ObjectNode.java:71)
at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:134)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:116)
at com.intellij.openapi.util.Disposer.dispose(Disposer.java:106)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$disposeContainer$3(ApplicationImpl.java:181)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:976)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeContainer(ApplicationImpl.java:179)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeSelf(ApplicationImpl.java:200)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:621)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:589)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:578)
at com.intellij.openapi.application.ex.ApplicationEx.exit(ApplicationEx.java:85)
at com.intellij.ide.lightEdit.LightEditServiceImpl.closeEditorWindow(LightEditServiceImpl.java:204)
at com.intellij.ide.lightEdit.LightEditServiceImpl.lambda$init$0(LightEditServiceImpl.java:72)
at com.intellij.ide.lightEdit.LightEditFrameWrapper$1.windowClosing(LightEditFrameWrapper.java:76)
at com.intellij.openapi.wm.impl.ProjectFrameHelper$2.windowClosing(ProjectFrameHelper.java:231)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.Window.processWindowEvent(Window.java:2079)
at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
at java.desktop/java.awt.Window.processEvent(Window.java:2038)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
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:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:739)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
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)
Caused by: com.intellij.openapi.progress.ProcessCanceledException: com.intellij.serviceContainer.AlreadyDisposedException: Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=org.jetbrains.plugins.textmate.TextMateService, implementation=org.jetbrains.plugins.textmate.TextMateServiceImpl), pluginDescriptor=PluginDescriptor(name=TextMate bundles, id=org.jetbrains.plugins.textmate, path=/home/user/pycharm-community-2020.1/plugins/textmate)) because container is already disposed (container=Application (containerState=DISPOSED) )
at com.intellij.serviceContainer.BaseComponentAdapter.throwAlreadyDisposedError$intellij_platform_serviceContainer(BaseComponentAdapter.kt:151)
at com.intellij.serviceContainer.BaseComponentAdapter.checkContainerIsActive(BaseComponentAdapter.kt:141)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:74)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:69)
at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:396)
at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:379)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:20)
at org.jetbrains.plugins.textmate.TextMateService.getInstance(TextMateService.java:24)
at org.jetbrains.plugins.textmate.language.TextMateFileType.isMyFileType(TextMateFileType.java:62)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getByFile(FileTypeManagerImpl.java:790)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getFileTypeByFile(FileTypeManagerImpl.java:751)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.getFileTypeByFile(FileTypeManagerImpl.java:740)
at com.intellij.openapi.vfs.VirtualFile.getFileType(VirtualFile.java:330)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.getFileType(VirtualFileSystemEntry.java:460)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:715)
at com.intellij.util.indexing.FileBasedIndexImpl.scheduleFileForIndexing(FileBasedIndexImpl.java:1446)
at com.intellij.util.indexing.ChangedFilesCollector.lambda$null$2(ChangedFilesCollector.java:244)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:625)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:570)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:186)
at com.intellij.util.indexing.ChangedFilesCollector.lambda$null$3(ChangedFilesCollector.java:239)
at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:231)
at com.intellij.util.indexing.ChangedFilesCollector.lambda$processFilesInReadAction$4(ChangedFilesCollector.java:237)
at com.intellij.util.indexing.VfsEventsMerger.processChanges(VfsEventsMerger.java:95)
at com.intellij.util.indexing.ChangedFilesCollector.processFilesInReadAction(ChangedFilesCollector.java:236)
at com.intellij.util.indexing.ChangedFilesCollector.ensureUpToDate(ChangedFilesCollector.java:181)
at com.intellij.util.indexing.ChangedFilesCollector.getAllFilesToUpdate(ChangedFilesCollector.java:132)
at com.intellij.util.indexing.FileBasedIndexImpl.performShutdown(FileBasedIndexImpl.java:470)
... 68 more
Caused by: com.intellij.serviceContainer.AlreadyDisposedException: Cannot create ServiceAdapter(descriptor=ServiceDescriptor(interface=org.jetbrains.plugins.textmate.TextMateService, implementation=org.jetbrains.plugins.textmate.TextMateServiceImpl), pluginDescriptor=PluginDescriptor(name=TextMate bundles, id=org.jetbrains.plugins.textmate, path=/home/user/pycharm-community-2020.1/plugins/textmate)) because container is already disposed (container=Application (containerState=DISPOSED) )
at com.intellij.serviceContainer.BaseComponentAdapter.throwAlreadyDisposedError$intellij_platform_serviceContainer(BaseComponentAdapter.kt:146)
... 96 more
error: There was a problem with the editor 'pycharm'.
Please supply the message using either -m or -F option.

0
3 comments

I think the reason for the failure is lack of the --wait argument. 2020.1 includes the new LightEdit mode that start from the command line by default, which does not have the --wait. See https://youtrack.jetbrains.com/issue/IDEA-236965

Exceptions are probably a side effect. 

By the way, why do you use PyCharm as editor fro git instead of using the builtin integration? It got the be commit UI in 2020.1

0
Avatar
Permanently deleted user

Thank you very much Dmitriy for your reply!

I am using the built-in git integration, is just sometimes I am also using the CLI...

 

So I need to export it as EDITOR environmental variable? Like this:

export EDITOR="pycharm --wait git commit"

Can you please elaborate more what  I need to do.

 

As a patch, I modified the pycharm script to the below line and it kind of started to work. :) 

"/home/user/.local/share/JetBrains/Toolbox/apps/PyCharm-C/ch-0/201.6668.115/bin/pycharm.sh" "$@" > /dev/null 2>&1 || :

but on commit I see this

0

Yes, export EDITOR="pycharm --wait git commit" should have worked in 2019.3 and earlier. Basically, that should be all you need to do. See e.g. https://stackoverflow.com/a/57572439/104891

In 2020.1 though the LightEdit mode has been introduced, and launched has been modified. So --wait does not work with 2020.1 - see https://youtrack.jetbrains.com/issue/IDEA-236965

> but on commit I see this

It looks like the correct content of COMMIT_EDITMSG, not sure why it is highlighted in this way though. Is git correctly waiting for the file to be closed?

0

Please sign in to leave a comment.