Mac idea/Goland 打不开 无法启动 的解决方法

您所在的位置:网站首页 idea安装了打不开 Mac idea/Goland 打不开 无法启动 的解决方法

Mac idea/Goland 打不开 无法启动 的解决方法

2023-04-21 18:31| 来源: 网络整理| 查看: 265

下载了官网最新的goland安装包,安装完成之后,goland却无法打开了。

image.png

一番排查之后,发现是之前安装的版本有一些残留的配置项。配置项中有些文件的已经不存在了,需要去手动清理。

解决方法 第一步:在访达中打开 软件源文件

打开 Finder(访达) --> Applications(应用程序) --> Goland(idea) --> Show Package Contents(显示包内容)

image.png 第二步:运行启动文件

按下图方式找到启动文件:Contents-->MacO-->goland, 双击运行

image.png

双击执行文件后,终端会显示具体错误信息:

~ » /Applications/GoLand.app/Contents/MacOS/goland ; exit; 2020-11-30 23:48:34.949 goland[13653:608700] allVms required 1.8*,1.8+ 2020-11-30 23:48:34.951 goland[13653:608705] Current Directory: /Users/corey 2020-11-30 23:48:34.951 goland[13653:608705] Value of GOLAND_VM_OPTIONS is (null) 2020-11-30 23:48:34.951 goland[13653:608705] Processing VMOptions file at /Users/corey/Library/Application Support/JetBrains/GoLand2020.2/goland.vmoptions 2020-11-30 23:48:34.951 goland[13653:608705] Done OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Error opening zip file or JAR manifest missing : /Documents/other/ideaConf/jetbrains-agent.jar Error occurred during initialization of VM agent library failed to init: instrument [Process completed] ~/Library/Application Support/JetBrains/GoLand2020.2/goland.vmoptions-javaagent:/Documents/other/ideaConf/jetbrains-agent.jar vim ~/Library/Application Support/JetBrains/GoLand2020.2/goland.vmoptions -Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:ErrorFile=$USER_HOME/java_error_in_goland_%p.log -XX:HeapDumpPath=$USER_HOME/java_error_in_goland.hprof -javaagent:/Documents/other/ideaConf/jetbrains-agent.jar -javaagent:/Documents/other/ideaConf/jetbrains-agent.jar 解决方法

把该行注释掉,或者直接删除

-Xms128m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseCompressedOops -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:ErrorFile=$USER_HOME/java_error_in_goland_%p.log -XX:HeapDumpPath=$USER_HOME/java_error_in_goland.hprof # -javaagent:/Documents/other/ideaConf/jetbrains-agent.jar

保存文件后重启goland,可以正常启动了

image.png


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3