每次打开时,STS eclipse都会在.eclipse中创建多个文件夹
嗨,我以前问过这个问题,但没有得到任何答案,我重申了这个问题 好的,这就是环境 弹簧工具套件 版本:3.8.2.1发布 构建Id:201610040743 平台:EclipseNeon.1(4.6.1) macOs Sierra. 每次我打开STS,它都会以这种格式在.eclipse中创建一个文件夹 我在文件夹.eclipse上运行此命令,以确保eclipse具有写入和读取权限每次打开时,STS eclipse都会在.eclipse中创建多个文件夹,eclipse,chmod,spring-tool-suite,macos-sierra,Eclipse,Chmod,Spring Tool Suite,Macos Sierra,嗨,我以前问过这个问题,但没有得到任何答案,我重申了这个问题 好的,这就是环境 弹簧工具套件 版本:3.8.2.1发布 构建Id:201610040743 平台:EclipseNeon.1(4.6.1) macOs Sierra. 每次我打开STS,它都会以这种格式在.eclipse中创建一个文件夹 我在文件夹.eclipse上运行此命令,以确保eclipse具有写入和读取权限 chmod 777 .eclipse/ chown -R myuser:staff .eclipse/ 但是STS
chmod 777 .eclipse/
chown -R myuser:staff .eclipse/
但是STS一直在做同样的事情
--编辑
问题是,每次EclipseST这样做时,就像IDE是第一次启动一样,所以每次打开IDE时,所有内容都会被擦除
--编辑
检查/Users/ovazquez/.eclipse/org.eclipse.oomph.setup/setups/中的文件locations.setup我可以看到该文件在每次启动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>
一旦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_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>
我也遇到了同样的问题,并通过以下方法解决了它:
它应该可以解决这个问题。审阅者评论:您的问题是什么?你只是想知道它为什么这样做,如何预防,还是两者兼而有之?它是否抛出了一些需要帮助的错误?似乎Eclipse也在做类似的事情,而且它似乎与您正在运行的安装的配置数据有关。如果这确实是同一个问题,则最好编辑主要问题?嗨,行为是一样的,一开始我认为这是一个与插件相关的问题,但后来我发现eclipse STS正在创建新文件夹,我尝试了以前的版本,它一直在做同样的事情,这在其他mac中没有发生。请在此处发布您的答案。谢谢。当从默认文件夹STS bundle中执行STS.app时,似乎出现了问题,该文件夹从下载的zip中解包。