问题
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.
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>
回答1:
I was also getting the same issue and resolved it using :
- Extract the tar/zip file anywhere you want.
- Drag the STS.app file to "Applications".
- Now you will see the STS application in launchpad also.
- Now you can start STS by clicking on this STS icon from launchpad/spotlight search.
It should resolve the issue.
来源:https://stackoverflow.com/questions/40345829/sts-eclipse-creates-multiple-folders-inside-eclipse-every-time-it-is-opened