Saving multiple files in Eclipse using Ctrl+s causes "The file cannot be edited"
I'm regularly an IntelliJ IDEA user, but because jsTestDriver d开发者_StackOverflow中文版oesn't work with IDEA, I am forced to use eclipse. I am getting a very annoying error message every time I save my javascript files with CTRL-S shortcut.
In IDEA, it just saves the files for me... and I never run into any problems ever. It is literally the most unobtrusive saving model ever, and I love it.
But with this IDE - eclipse - I have to constantly save the files manually. Anyway, I've gotten used to it, but if I am making changes to 2 or more files, when I press CTRL-S, this error message pops up 2+ times. It is so annoying.
Even worse, it's affecting my unit test results with jsTestDriver! Sometimes 0 tests runs, other times it crashes half-way... all because the files weren't saved.
Can anyone help me fix this? IDEA is not running at the same time either. Just STS/Eclipse.
After googling the error message it seems this is coming from org.eclipse.core.internal.resources.ResourceException
. Although a bit outdated try to see whether the solution in the comments of this post solve this issue.
精彩评论