STS.app on Mac 10.12.1 always creates a new org.springsource.sts folder in .eclipse

后端 未结 2 1481
独厮守ぢ
独厮守ぢ 2020-12-18 04:52

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_coc

2条回答
  •  遥遥无期
    2020-12-18 05:36

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

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

    To cut a long story short:

    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.

    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... :-(

    The workaround is:

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

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

提交回复
热议问题