每次打开时,STS eclipse都会在.eclipse中创建多个文件夹 [英] STS eclipse creates multiple folders inside .eclipse every time it is opened

查看:70
本文介绍了每次打开时,STS eclipse都会在.eclipse中创建多个文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在

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

好,这就是环境.

Spring Tool Suite 版本:3.8.2.RELEASE 建立编号:201610040743 平台:Eclipse Neon.1(4.6.1) macOs Sierra.

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

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

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

我在文件夹 .eclipse 上运行此命令,以确保eclipse拥有读写权限.

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/

但是STS会继续做同样的事情.

But STS keeps doing the same thing.

-编辑

问题在于,每次Eclipse STS这样做时,就像第一次启动IDE,因此每次打开IDE都会擦除所有内容.

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.

-编辑

检查文件 locations.setup /Users/ovazquez/.eclipse/org.eclipse.oomph.setup/setups/中的位置我可以看到此文件已更改每次启动IDE时,这是IDE首次读取配置时的文件.

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>

推荐答案

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

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

  1. 在任何位置提取tar/zip文件.
  2. 将STS.app文件拖到应用程序".
  3. 现在,您还将在启动板中看到STS应用程序.
  4. 现在,您可以通过从以下位置单击此STS图标来启动STS 启动板/聚光灯搜索.
  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.

它应该可以解决问题.

这篇关于每次打开时,STS eclipse都会在.eclipse中创建多个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆