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)

 

33 comments
Comment actions Permalink

This must be an issue with certain tslint rules that do not close files and thus block them. See above

0
Comment actions Permalink

Same problem. Windows 1803, WSL, IDEA 2018.2, Vue, Webpack dev server.

Hoping to avoid having to turn off file safety features.

I only have one Node.js process being run by IDEA; however, I have six Console Window Host processes being run by it. Not sure what those are for, as I use Bash for the embedded terminal.

2018-08-02 18:10:19,641 [170673010] INFO - cloudConfig.CloudConfigManager - === Start.updateConnection === 
2018-08-02 18:10:19,642 [170673011] INFO - cloudConfig.CloudConfigManager - === doConnect ===
2018-08-02 18:10:19,642 [170673011] INFO - cloudConfig.CloudConfigManager - === getConnectionState ===
2018-08-02 18:10:21,600 [170674969] INFO - cloudConfig.CloudConfigManager - === End.connect ===
2018-08-02 18:19:21,745 [171215114] WARN - j.util.io.SafeFileOutputStream - C:\Users\finge\projects\braze\src\frontend\src\components\PackVersionDialog.vue___jb_old___ (Access is denied)
java.io.FileNotFoundException: C:\Users\finge\projects\braze\src\frontend\src\components\PackVersionDialog.vue___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:123)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:467)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:654)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:557)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:166)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:418)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$doSaveDocumentInWriteAction$4(FileDocumentManagerImpl.java:434)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:402)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.doSaveDocumentInWriteAction(FileDocumentManagerImpl.java:423)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$doSaveDocument$2(FileDocumentManagerImpl.java:385)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:105)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.doSaveDocument(FileDocumentManagerImpl.java:385)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:304)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:282)
at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:112)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.java:23)
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:620)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$2(IdeKeyEventDispatcher.java:669)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:668)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:520)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:475)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:212)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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-08-02 18:19:21,745 [171215114] WARN - r.impl.FileDocumentManagerImpl - Cannot save C:\Users\finge\projects\braze\src\frontend\src\components\PackVersionDialog.vue.
The file left unchanged.
Your changes were written to PackVersionDialog.vue___jb_tmp___.
java.io.IOException: Cannot save C:\Users\finge\projects\braze\src\frontend\src\components\PackVersionDialog.vue.
The file left unchanged.
Your changes were written to PackVersionDialog.vue___jb_tmp___.
at com.intellij.util.io.SafeFileOutputStream.close(SafeFileOutputStream.java:127)
at java.io.FilterOutputStream.close(FilterOutputStream.java:159)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase$1.close(LocalFileSystemBase.java:467)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$2.close(PersistentFSImpl.java:654)
at com.intellij.openapi.vfs.VirtualFile.setBinaryContent(VirtualFile.java:557)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.setBinaryContent(VirtualFileImpl.java:166)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.write(LoadTextUtil.java:418)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$doSaveDocumentInWriteAction$4(FileDocumentManagerImpl.java:434)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:402)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.doSaveDocumentInWriteAction(FileDocumentManagerImpl.java:423)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.lambda$doSaveDocument$2(FileDocumentManagerImpl.java:385)
at com.intellij.openapi.application.WriteAction.run(WriteAction.java:105)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.doSaveDocument(FileDocumentManagerImpl.java:385)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:304)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:282)
at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:112)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.java:23)
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:620)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$2(IdeKeyEventDispatcher.java:669)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:668)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:520)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:475)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:212)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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-08-02 18:19:42,119 [171235488] INFO - ide.actions.ShowFilePathAction -
Exit code 1
0
Comment actions Permalink

By WSS, do you mean WSL? Do you run Webpack on WSL? Your issue is https://youtrack.jetbrains.com/issue/IDEA-173073 then, and disabling "safe writes" is the only way to go.

 

Guys, I'm going to close this thread for comments. This one is too long and not manageable any more

Should you face problems saving files, please start a new thread/create a support ticket

1

Please sign in to leave a comment.