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

不羁的心 提交于 2020-01-05 04:03:17

问题


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 :

  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.



来源:https://stackoverflow.com/questions/40345829/sts-eclipse-creates-multiple-folders-inside-eclipse-every-time-it-is-opened

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!