Search code examples
eclipsechmodspring-tool-suitemacos-sierra

STS eclipse creates multiple folders inside .eclipse every time it is opened


Hi i asked this question before here but it did not get any answer, i restated the question.

ok this is the environment.

Spring Tool Suite Version: 3.8.2.RELEASE Build Id: 201610040743 Platform: Eclipse Neon.1 (4.6.1) macOs Sierra.

Every time i open STS it creates a folder inside .eclipse in this format.

Folders created every time STS it is opened.

I run this command over the folder .eclipse to ensure eclipse has the rights to write and read.

chmod 777 .eclipse/
chown -R myuser:staff .eclipse/

But STS keeps doing the same thing.

--EDIT

The problem is, every time eclipse STS do this, is like if the IDE were starting for first time, so everything is erased each time the IDE is opened.

--EDIT

Checking the file locations.setup locatet in /Users/ovazquez/.eclipse/org.eclipse.oomph.setup/setups/ i can see that this file changes every time the IDE it is started, this is the file the first time the IDE reads the config.

<?xml version="1.0" encoding="UTF-8"?>
<setup:LocationCatalog
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0">
  <installation>
    <key href="file:/Users/ovazquez/.eclipse/org.springsource.sts_3.8.2.RELEASE_1218045591_macosx_cocoa_x86_64/configuration/org.eclipse.oomph.setup/installation.setup#/"/>
    <value href="file:/Users/ovazquez/Documents/workspace-sts-3.8.2.RELEASE/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup#/"/>
  </installation>
  <workspace>
    <key href="file:/Users/ovazquez/Documents/workspace-sts-3.8.2.RELEASE/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup#/"/>
    <value href="file:/Users/ovazquez/.eclipse/org.springsource.sts_3.8.2.RELEASE_1218045591_macosx_cocoa_x86_64/configuration/org.eclipse.oomph.setup/installation.setup#/"/>
  </workspace>
</setup:LocationCatalog>

Then this is the same file once the ide it is opened again.

<?xml version="1.0" encoding="UTF-8"?>
<setup:LocationCatalog
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0">
  <installation>
    <key href="file:/Users/ovazquez/.eclipse/org.springsource.sts_3.8.2.RELEASE_431833271_macosx_cocoa_x86_64/configuration/org.eclipse.oomph.setup/installation.setup#/"/>
    <value href="file:/Users/ovazquez/Documents/workspace-sts-3.8.2.RELEASE/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup#/"/>
  </installation>
  <installation>
    <key href="file:/Users/ovazquez/.eclipse/org.springsource.sts_3.8.2.RELEASE_1218045591_macosx_cocoa_x86_64/configuration/org.eclipse.oomph.setup/installation.setup#/"/>
    <value href="file:/Users/ovazquez/Documents/workspace-sts-3.8.2.RELEASE/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup#/"/>
  </installation>
  <workspace>
    <key href="file:/Users/ovazquez/Documents/workspace-sts-3.8.2.RELEASE/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup#/"/>
    <value href="file:/Users/ovazquez/.eclipse/org.springsource.sts_3.8.2.RELEASE_431833271_macosx_cocoa_x86_64/configuration/org.eclipse.oomph.setup/installation.setup#/"/>
    <value href="file:/Users/ovazquez/.eclipse/org.springsource.sts_3.8.2.RELEASE_1218045591_macosx_cocoa_x86_64/configuration/org.eclipse.oomph.setup/installation.setup#/"/>
  </workspace>
</setup:LocationCatalog>

Solution

  • I was also getting the same issue and resolved it using :

    1. Extract the tar/zip file anywhere you want.
    2. Drag the STS.app file to "Applications".
    3. Now you will see the STS application in launchpad also.
    4. Now you can start STS by clicking on this STS icon from launchpad/spotlight search.

    It should resolve the issue.