每次打开时,STS eclipse都会在.eclipse中创建多个文件夹

时间:2016-10-31 15:53:21

标签: eclipse chmod spring-tool-suite macos-sierra

嗨我在here之前问了这个问题,但没有得到任何答案,我重申了这个问题。

好的,这就是环境。

Spring Tool Suite 版本:3.8.2.RELEASE Build Id:201610040743 平台:Eclipse Neon.1(4.6.1) macOs Sierra。

每次打开STS时,都会以这种格式在 .eclipse 中创建一个文件夹。

Folders created every time STS it is opened.

我在 .eclipse 文件夹上运行此命令,以确保eclipse具有写入和读取的权限。

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

但是STS继续做同样的事情。

- 编辑

问题是,每次eclipse STS执行此操作时,就像IDE首次启动一样,因此每次打开IDE时都会擦除所有内容。

- 编辑

/Users/ovazquez/.eclipse/org.eclipse.oomph.setup/setups / 中检查文件 locations.setup locatet我可以看到此文件发生了变化每次IDE启动时,这是IDE第一次读取配置时的文件。

<?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>

然后,当它再次打开时,这是同一个文件。

<?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 个答案:

答案 0 :(得分:3)

我也遇到了同样的问题并使用以下方法解决了问题:

  1. 在任何地方解压缩tar / zip文件。
  2. 将STS.app文件拖到&#34;应用程序&#34;。
  3. 现在,您还将在启动板中看到STS应用程序。
  4. 现在您可以点击此STS图标启动STS 启动板/聚光灯搜索。
  5. 它应该解决问题。