Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-2147

Android Module Creation: Exception occurred while saving project preferences: A resource already exists on disk: .settings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: Titanium Studio 2.1.1, Titanium Studio 2.1.2
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
    • Environment:

      Titanium Studio: 2.1.1, 2.1.2.201208201549
      Titanium SDK: 2.1.1, 2.1.2.v20120821160113
      OS: Mountain Lion 10.8, 10.8.1
      Android SDK: r20.0.1, r20.0.3
      Android NDK: r8b

      Description

      When creating a new android module, error exists in log:

      !ENTRY org.eclipse.core.resources 4 4 2012-08-24 11:52:48.918
      !MESSAGE Exception occurred while saving project preferences: /MyAndroidModule/.settings/com.aptana.editor.common.prefs.
      !STACK 1
      org.eclipse.core.internal.resources.ResourceException: A resource already exists on disk '/Users/qetestadmin/Desktop/TISTUD-RC/titanium_studio_workspace/MyAndroidModule/.settings'.
      	at org.eclipse.core.internal.resources.Folder.assertCreateRequirements(Folder.java:47)
      	at org.eclipse.core.internal.resources.Folder.create(Folder.java:95)
      	at org.eclipse.core.internal.resources.ProjectPreferences$1.run(ProjectPreferences.java:566)
      	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
      	at org.eclipse.core.internal.resources.ProjectPreferences.save(ProjectPreferences.java:590)
      	at org.eclipse.core.internal.preferences.EclipsePreferences.internalFlush(EclipsePreferences.java:440)
      	at org.eclipse.core.internal.resources.ProjectPreferences.flush(ProjectPreferences.java:350)
      	at com.aptana.editor.common.contentassist.UserAgentManager.savePreference(UserAgentManager.java:722)
      	at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.applyPreferenceValues(BasicNewTitaniumProjectWizard.java:491)
      	at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.finalizeProjectCreation(BasicNewTitaniumProjectWizard.java:396)
      	at com.appcelerator.titanium.mobile.ui.module.wizard.NewMobileModuleProjectWizard.finalizeProjectCreation(NewMobileModuleProjectWizard.java:290)
      	at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createNewProject(BasicNewTitaniumProjectWizard.java:349)
      	at com.aptana.projects.internal.wizards.AbstractNewProjectWizard$1.run(AbstractNewProjectWizard.java:234)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      !SUBENTRY 1 org.eclipse.core.resources 4 272 2012-08-24 11:52:48.918
      !MESSAGE A resource already exists on disk '/Users/qetestadmin/Desktop/TISTUD-RC/titanium_studio_workspace/MyAndroidModule/.settings'.
       
      !ENTRY com.aptana.editor.common 4 0 2012-08-24 11:52:48.919
      !MESSAGE (Build 2.1.2.201208201549) [ERROR]  Error saving the user-agent preferences.
      !STACK 0
      org.osgi.service.prefs.BackingStoreException: Exception occurred while saving project preferences: /MyAndroidModule/.settings/com.aptana.editor.common.prefs.
      	at org.eclipse.core.internal.resources.ProjectPreferences.save(ProjectPreferences.java:600)
      	at org.eclipse.core.internal.preferences.EclipsePreferences.internalFlush(EclipsePreferences.java:440)
      	at org.eclipse.core.internal.resources.ProjectPreferences.flush(ProjectPreferences.java:350)
      	at com.aptana.editor.common.contentassist.UserAgentManager.savePreference(UserAgentManager.java:722)
      	at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.applyPreferenceValues(BasicNewTitaniumProjectWizard.java:491)
      	at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.finalizeProjectCreation(BasicNewTitaniumProjectWizard.java:396)
      	at com.appcelerator.titanium.mobile.ui.module.wizard.NewMobileModuleProjectWizard.finalizeProjectCreation(NewMobileModuleProjectWizard.java:290)
      	at com.appcelerator.titanium.ui.wizard.BasicNewTitaniumProjectWizard.createNewProject(BasicNewTitaniumProjectWizard.java:349)
      	at com.aptana.projects.internal.wizards.AbstractNewProjectWizard$1.run(AbstractNewProjectWizard.java:234)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      

      This is not a regression.

      Steps to Reproduce:

      1. Create a new Android Module.
      2. View studio log.txt.

      Actual Result:

      Exception.

      Expected Result:

      No errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: