Updated to 2017.1.3. now getting "Cannot save files" error

Running a VueJS project with webpack, with webpack dev server running, set to watch and update.

I can edit sources file in Webstorm for a while, then I started getting an error dialog

 

Log file has error (see below).

However, the file isn't locked. I can open it up in Notepad++ and edit it fine. Save the changes there, which are then loaded into Webstorm.

Any suggestions?

-c.

 

 

idea.log

======

2017-06-01 18:56:35,631 [5452967] WARN - r.impl.FileDocumentManagerImpl - Cannot save xxxxx\wwwroot\src\router.js.
The file left unchanged.
Your changes were written to router.js___jb_tmp___.
java.io.IOException: Cannot save xxxxx\wwwroot\src\router.js.
The file left unchanged.
Your changes were written to router.js___jb_tmp___.
at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:132)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:487)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:644)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:570)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:144)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:246)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:428)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:411)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.d(FileDocumentManagerImpl.java:417)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.b(FileDocumentManagerImpl.java:390)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:91)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:390)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:312)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:290)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1442)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:215)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:232)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:570)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:619)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:618)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.c(IdeKeyEventDispatcher.java:477)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:633)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

 

35 comments
Comment actions Permalink

What OS are you on? What shell do you run webpack dev server in?

0
Comment actions Permalink

Getting the same error since the update to 2017.2.2 on windows 7 professional sp1 64 bit version.

1
Comment actions Permalink

@Gerold, could you please provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-fil) and details about technologies you use and steps you take?

0
Comment actions Permalink

Close google driver sync.....

3
Comment actions Permalink

I'm experiencing the same error. Only fix is to reboot. Are there any solutions for this?

0
Comment actions Permalink

 @all, we can't proceed to the investigation without any details provided. 

Please provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-fil) and details about technologies you use and steps you take.

0
Comment actions Permalink

Same problem here.

I use new "google drive", but in anothers ides files saves normal.

0
Comment actions Permalink

@Netores1  if google drive sync doesn't cause access issues in other editors, try disabling Use "safe write" in Settings | Appearance & Behavior | System Settings - does it make things any better?

 
10
Comment actions Permalink

@Elena, I will test. Ty.

Edit

It solved my problem, thank you.

Sorry for bad english

0
Comment actions Permalink

Same issue with webstorm 2017.2.4, following the advices from Elena solve the problem.

0
Comment actions Permalink

It happened again. Attached part of idea.log below. Fix this time was exiting Docker. The file i am trying to save is shared with Docker.

 

2017-10-20 10:43:09,649 [91053234] WARN - j.util.io.SafeFileOutputStream - C:\Users\<userid>\dev\<project>\web\routes\rapporter.php___jb_old___ (Access is denied)
java.io.FileNotFoundException: C:\Users\<userid>\dev\<project>\web\routes\rapporter.php___jb_old___ (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at com.intellij.openapi.util.io.FileUtil.openOutputStream(FileUtil.java:532)
at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:484)
at com.intellij.openapi.util.io.FileUtil.copy(FileUtil.java:472)
at com.intellij.openapi.util.io.FileUtil.rename(FileUtil.java:971)
at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:128)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:484)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:642)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:570)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:169)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:397)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.b(FileDocumentManagerImpl.java:438)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:411)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.c(FileDocumentManagerImpl.java:427)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:390)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:91)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:390)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:312)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:290)
at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1449)
at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:126)
at com.intellij.ide.SaveAndSyncHandlerImpl$2.a(SaveAndSyncHandlerImpl.java:94)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:86)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:109)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:118)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.ide.SaveAndSyncHandlerImpl$2.onFrameDeactivated(SaveAndSyncHandlerImpl.java:92)
at com.intellij.ide.FrameStateManagerImpl.b(FrameStateManagerImpl.java:84)
at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
at com.intellij.ide.FrameStateManagerImpl$2.a(FrameStateManagerImpl.java:70)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:417)
at com.intellij.util.Alarm$Request.access$700(Alarm.java:344)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:384)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2017-10-20 10:43:09,649 [91053234] WARN - r.impl.FileDocumentManagerImpl - Cannot save C:\Users\<userid>\dev\<project>\web\routes\rapporter.php.
The file left unchanged.
Your changes were written to rapporter.php___jb_tmp___.
java.io.IOException: Cannot save C:\Users\<userid>\dev\<project>\web\routes\rapporter.php.
The file left unchanged.
Your changes were written to rapporter.php___jb_tmp___.
at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:132)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:484)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:642)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:570)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:169)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:397)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.b(FileDocumentManagerImpl.java:438)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:411)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.c(FileDocumentManagerImpl.java:427)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:390)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:91)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:390)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:312)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:290)
at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1449)
at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:126)
at com.intellij.ide.SaveAndSyncHandlerImpl$2.a(SaveAndSyncHandlerImpl.java:94)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:86)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:109)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:118)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.ide.SaveAndSyncHandlerImpl$2.onFrameDeactivated(SaveAndSyncHandlerImpl.java:92)
at com.intellij.ide.FrameStateManagerImpl.b(FrameStateManagerImpl.java:84)
at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
at com.intellij.ide.FrameStateManagerImpl$2.a(FrameStateManagerImpl.java:70)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at com.intellij.util.Alarm$Request.runSafely(Alarm.java:417)
at com.intellij.util.Alarm$Request.access$700(Alarm.java:344)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:384)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:821)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

0
Comment actions Permalink

I am using Google File Stream Drive. Set my project to be available offline.

First I had the problem that I could not commit at all. (Modified and removed files)(git)

I changed the safe-write option as @Elena proposed

This worked.

 

But now I still have a problem when trying to add files(git)

It gives me the following error when trying to add etc/module.xml:

The following problems have occurred when adding the files:
error: short read: No such file or directory
error: etc/module.xml: failed to insert into database
error: unable to index file etc/module.xml
 during executing git "C:\Program Files\Git\cmd\git.exe" -c core.quotepath=false -c log.showSignature=false add --ignore-errors -- etc/module.xml

 

My log shows:

2017-11-23 11:15:10,645 [1675579]   INFO -  #git4idea.commands.GitHandler - [Tools] git -c core.quotepath=false -c log.showSignature=false add --ignore-errors -- etc/module.xml
2017-11-23 11:15:11,122 [1676056]   INFO -  #git4idea.commands.GitHandler - error: short read: No such file or directory
error: etc/module.xml: failed to insert into database
error: unable to index file etc/module.xml

 

0
Comment actions Permalink

Windows 10 Pro

IntelliJ 2017.1.3 w/ PyCharm (Latest release)

After updating to 2017.1.3 I was having this error as well - Found this article and found the recommendation to disable 'Safe writing' - which resolved my issue.

Settings > Appearance and Behavior > System Settings.

Hope this helps others out too!

2
Comment actions Permalink

Unfortunatly that doesn't fix it for me.

I keep getting errors when trying to commit files on a project which is located on my Google Stream Drive

0
Comment actions Permalink

I'm having same problem:

But I do not use google stream drive nor any other sync tool (but git). 

 

2018-03-20 16:24:29,359 [12509577] WARN - j.util.io.SafeFileOutputStream - C:\Users\xxxxxxxxxx\MyProjects\planszomat-devcorp\apps\planszomat\src\app\app.component.html___jb_old___ (Access is denied)
java.io.FileNotFoundException: C:\Users\xxxxxxxxxx\MyProjects\planszomat-devcorp\apps\planszomat\src\app\app.component.html___jb_old___ (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at com.intellij.openapi.util.io.FileUtil.openOutputStream(FileUtil.java:531)
at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:491)
at com.intellij.openapi.util.io.FileUtil.copy(FileUtil.java:481)
at com.intellij.openapi.util.io.FileUtil.rename(FileUtil.java:974)
at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:128)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:470)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:648)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:570)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:166)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:420)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:440)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:413)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.b(FileDocumentManagerImpl.java:429)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.c(FileDocumentManagerImpl.java:392)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:91)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:392)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:314)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:292)
at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1413)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:576)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:625)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:624)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.g(IdeKeyEventDispatcher.java:479)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:622)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2018-03-20 16:24:29,360 [12509578] WARN - r.impl.FileDocumentManagerImpl - Cannot save C:\Users\xxxxxxxxxx\MyProjects\planszomat-devcorp\apps\planszomat\src\app\app.component.html.
The file left unchanged.
Your changes were written to app.component.html___jb_tmp___.
java.io.IOException: Cannot save C:\Users\xxxxxxxxxx\MyProjects\planszomat-devcorp\apps\planszomat\src\app\app.component.html.
The file left unchanged.
Your changes were written to app.component.html___jb_tmp___.
at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:132)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:470)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:648)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:570)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:166)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:420)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:440)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:413)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.b(FileDocumentManagerImpl.java:429)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.c(FileDocumentManagerImpl.java:392)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:91)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:392)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:314)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:292)
at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:118)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1413)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.java:36)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:576)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:625)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:624)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.g(IdeKeyEventDispatcher.java:479)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:622)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2018-03-20 16:27:46,660 [12706878] INFO - ide.actions.ShowFilePathAction -
Exit code 1

0
Comment actions Permalink

Update

I think I found source of my issue. I'm developing an Angular app in WebStorm, and I noticed that there are two node.js server side JavaScript processes running under WebStorm process in Task Manager:

On is used by live TSLint to show errors in code. After I disabled this option under Languages & Frameworks > TypeScript > TSLint one of the processes disappeared and I was unable to reproduce this issue.

What could be the second process? I don't know

0
Comment actions Permalink

Update 

I found the guilty guy. It was a tslint external pack which is causing the problem. 

Sorry for commotion

0
Comment actions Permalink

Piotr, how did you fix it?  Since the latest update every time I click off of a file that error box pops up.  my project is littered with ___js_old_ files now.  I have made no changes to settings or plugins.  

0
Comment actions Permalink

___js_old_ / ___jb_tmp___ is an indication that you have "safe write" option enabled (which is by default) and with your file system permissions IDE is unable to clean up these temp files (file permissions are too strict/not enough) .. or some another process still uses such temp file when IDE is ready to delete it.

Solution is to turn of safe write -- just go to Settings/Preferences and type "safe write" into a search box -- IDE will locate it for you (P.S. turning on/off some option can also be done through "Help | Find Action...")

 

> my project is littered with ___js_old_ files now

Delete them manually.

1
Comment actions Permalink

thank you I will do that.  FYI, I could not delete the files either as that would throw an error

0
Comment actions Permalink

Exactly what Andriy Bazanov said. In my case it was another process that was using the tmp file (I htink). To be precise, node process which is used to run tslint inspections. 

0
Comment actions Permalink

Right now I just turn off the tslint rules of that library, and I don't have this problem now, but neither full tslint checking.

1
Comment actions Permalink

I have exactly the same issue. Working on a angular 2+ project and Intellij 2018 and if tslint is activated, I have locks on files and I cannot use GIT:

Permission denied

What is strange is that one of my colleague is using VS code and he has the same issue....

0
Comment actions Permalink

What TSLint version do you use? problem may be related to https://github.com/palantir/tslint/issues/2954

0
Comment actions Permalink

@Elena we are using tslint 5.9.1

But indeed, it seems related. Is it possible that a specific rule can lock a file ?

0
Comment actions Permalink

Yes; https://github.com/palantir/tslint/issues/2954 should be fixed in 5.9.1, but there might be other rules causing similar issues

0
Comment actions Permalink

One more rule that leaks file handles:nx-enforce-module-boundaries

see https://github.com/nrwl/nx/issues/403

2
Comment actions Permalink

Indeed, it is exactly this rule that I meant ;)

1
Comment actions Permalink

Came to say I have this error too in PyCharm 2017.1.3. Disabled safe write as per above suggestions and now it's gone. Never had a problem before this version though ...

0
Comment actions Permalink

Disable safe write does not solve it completely here.

Whenever i checkout another branch while webstorm is open (tslint is running) it is locking some files.

This only happens in windows for me.

0

Post is closed for comments.