本文介绍了Mac 10.12.1上的STS.app总是在.eclipse中创建一个新的org.springsource.sts文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的Mac(10.12.1)上下载并安装了STS 3.8.2。每次启动STS.app文件时,它会在隐藏的.eclipse文件夹下创建一个新的org.springsource.sts_3.8.2.RELEASE _ ####### _ macosx_cocoa_x86_64文件夹(散列在那里,因为我有很多的相同的文件夹与散列区域中的数字是唯一的区别)。在这样做的时候,我上次安装的默认工作区和所有插件都被擦除(因为它们存在于前面的####文件夹中)。

I've downloaded and installed STS 3.8.2 on my Mac (10.12.1). Each time the STS.app file is launched, it creates a new org.springsource.sts_3.8.2.RELEASE_########_macosx_cocoa_x86_64 folder under the hidden .eclipse folder (the hashes are there because I have MANY of the same folder with the numbers in the hash area being the only difference). In doing so, the default workspace and all plugins I installed the last time it was running are wiped out (because they exist in the previous #### folder).

我已经尝试安装了以前的3.8.1和3.8.0版本,但是他们也在做同样的事情。我以前的STS安装从3.7开始,已升级到3.8.1,但不会更新,因为我似乎无法修复的更新错误(没有一个StackOverflow修补程序对我有用)。

I've tried installing the previous 3.8.1 and 3.8.0 version, but they are doing the same thing. My previous STS install started at 3.7 and has been upgraded to 3.8.1, but will not update anymore because of update errors that I can't seem to fix (none of the StackOverflow "fixes" have worked for me).

有没有办法让STS每次启动时都不会在.eclipse文件夹中创建一个新的文件夹(实例)?如果是这样,那么怎么样?

Is there a way to have STS not create a new folder (instance) in the .eclipse folder each time it launches? If so, how?

推荐答案

已经向STS报告了这里:

This got reported to STS and is documented here:https://issuetracker.springsource.com/browse/STS-4406

Eclipse中相应的错误是:

The corresponding bug at Eclipse is:https://bugs.eclipse.org/bugs/show_bug.cgi?id=507328

缩短长篇小说:

这是由macOS Sierra Gatekeeper App Translocation引起的,这是一个将应用移动到私有只读位置的安全功能。因此,Eclipse / STS为您在上述描述的位置创建了一个文件夹。

This is caused by macOS Sierra Gatekeeper App Translocation, a security feature that moves the app into a private read-only location for security reasons. Therefore Eclipse/STS creates a folder for its configuration in that location that you described above.

由于MacOS Sierra每次重新启动后再次执行应用程序移植,因此Eclipse /不再了解旧配置区域,并创建一个新的配置区域。据我所见,Eclipse / STS无法区分单独的安装和新移动的应用程序...: - (

Since macOS Sierra does the app translocation again after every restart, Eclipse/STS doesn't know anything about the "old" configuration area anymore and creates a new one. As far as I can see, there is no way for Eclipse/STS to distinguish between a separate install and a newly translocated app... :-(

解决方法是:


  • A)在$ b $之后,将STS.app移动到光盘上的其他位置b打开tar.gz存档(使用Finder,而不是命令
    行)。如果你把它移动到应用程序,例如,
    的所有内容都像以前一样工作(在这种情况下没有应用程序移动)。

  • A) Move STS.app into a different location on your disc afterunpacking the tar.gz archive (using the Finder, not the commandline). If you move it to "Applications", for example, everythingworks as before (no app translocation happens in that case).

B)您还可以通过单击可执行文件(
STS.app/Contents/MacOS)启动Eclipse / STS。这也不会导致应用程序易位
,因此一切都很好。

B) You could also start Eclipse/STS by clicking on the Executable (inSTS.app/Contents/MacOS). That also doesn't cause app translocationand therefore everything is fine.

这篇关于Mac 10.12.1上的STS.app总是在.eclipse中创建一个新的org.springsource.sts文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 09:02