Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWT-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file #9310

Closed
rdeangelis83 opened this issue Mar 31, 2016 · 1 comment
Assignees
Milestone

Comments

@rdeangelis83
Copy link

After the SuperDevMode/CodeServer is started each time when I
change and save a file in IDEA an exception occurs in the CodeServer:

java.nio.file.NoSuchFileException: U:\ALL\dev\tc\_trunk\apps\aris\aris\common\server-remote-api\src\main\java\com\aris\modeling\common\serverremoteapi\cscommon\corearisdesigner\om\impl\ADesignerObjOcc.java___jb_old___ at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) at sun.nio.fs.WindowsFileSystemProvider.isHidden(WindowsFileSystemProvider.java:466) at java.nio.file.Files.isHidden(Files.java:1483) at com.google.gwt.dev.resource.impl.ResourceAccumulator.onNewPath(ResourceAccumulator.java:138) at com.google.gwt.dev.resource.impl.ResourceAccumulator.refresh(ResourceAccumulator.java:127) at com.google.gwt.dev.resource.impl.ResourceAccumulator.refreshResources(ResourceAccumulator.java:65) at com.google.gwt.dev.resource.impl.ResourceAccumulatorManager.refreshResources(ResourceAccumulatorManager.java:128) at com.google.gwt.dev.resource.impl.ResourceAccumulatorManager$1.run(ResourceAccumulatorManager.java:91)

jb_old___ files are temporary files created by IntelliJ when safe write is enabled (Settings -> Appearance & Behavior -> System Settings -> Use "safe write").
Looks like the file has been deleted by IntelliJ between the time GWT has detected it was created.
See also: https://groups.google.com/forum/#!topic/google-web-toolkit/CNqNRmPATx8

@tbroyer
Copy link
Member

tbroyer commented Mar 31, 2016

Totally untested: https://gwt-review.googlesource.com/14601

@tbroyer tbroyer added this to the 2.8 milestone Mar 31, 2016
@tbroyer tbroyer self-assigned this Mar 31, 2016
@tbroyer tbroyer closed this as completed May 17, 2016
bauna pushed a commit to bauna/gwt that referenced this issue May 20, 2016
…iles

Some IDEs (e.g. IDEA with "safe writes" turned on) will write to a
temporary file before moving to replace the actual file; this caused the
ResourceAccumulator to see an ENTRY_CREATE event but the file is deleted
before it could be looked at, and a NoSuchFileException is thrown as a
consequence.

Bug: gwtproject#9310
Bug-Link: gwtproject#9310
Change-Id: I3567bcc3ef899cd807f2ee580069992cc87a814b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants