google-apps-scriptgoogle-eclipse-plugin

Write-write conflict everytime saving a Apps Script File on Eclipse


I'm started using Google Eclipse Plugin, on Eclipse Indigo, to edit apps script and everything is working as expected, except that everytime I save a file, I get this popup the warning:

enter image description here

The file is shared but nobody else is editing or even opened on the web.

Any ideas?


Solution

  • I figured out what was happening.

    Mac OS X and Eclipse Indigo

    The problem was because of the Text File Encoding. On Mac OS X with Eclipse Indigo the default Text File Encoding is set to MacRoman. I suppose Apps Scripts are in UTF-8. When I set the default Text File Encoding to UTF-8 the problem was gone.

    Mac OS X Mavericks and Eclipse Kepler

    Default text encoding is already set to UTF-8.

    To fix set Default Encoding = UTF-8 in Preferences > General > Content Types > Text > JavaScript Source File > Apps Scripts Source file.

    Eclipse Kepler preferences