美文网首页思想演进
Intellij Idea 2018.1 for Mac一个bu

Intellij Idea 2018.1 for Mac一个bu

作者: 李2牛 | 来源:发表于2018-04-02 01:07 被阅读0次

平台 :macOS 10.13.4 软件 : Intellij Idea 2018.1
笔者之前使用的版本是2017.3,三月份看到 Jetbrains 推送了更新,于是立即更新了.然而最近在使用SpringBoot工程的时候发现有一些包始终无法导入并解析依赖,如jpa支持.明显的报错是

2018/4/2
00:28   Load Settings
            Cannot load settings from file '~/Library/Preferences/IntelliJIdea2018.1/options/statistics.actions.xml': content truncated
            File content will be recreated

00:33   Load Settings
            Cannot load settings from file '~/Library/Preferences/IntelliJIdea2018.1/options/statistics.shortcuts.xml': content truncated
            File content will be recreated

我觉得这俩文件可能是被系统错误地修改了,于是我想能不能把2017.3的同名文件拷贝过来.

ll ~/Library/Preferences/IntelliJIdea2018.1/options/  #先查看这两个文件情况发现两个文件的大小均为 0 ,这说明文件确实是重建的
ll ~/Library/Preferences/IntelliJIdea2017.3/options/ #查看旧的文件是否还在,确实在,那么拷贝过去
cp ~/Library/Preferences/IntelliJIdea2017.3/options/statistics.actions.xml ~/Library/Preferences/IntelliJIdea2017.3/options/statistics.shortcuts.xml ~/Library/Preferences/IntelliJIdea2018.1/options/

竟然可以了导入了.

这俩文件内容看起来只是按键信息的记录,与包能否导入似乎风马牛不相及,但是修改之后立竿见影,不知道是机缘巧合还是确实关联?JetBrains官方尚无相关描述,希望这个方法能给同样遇到问题的人一些帮助.

相关文章

网友评论

    本文标题:Intellij Idea 2018.1 for Mac一个bu

    本文链接:https://www.haomeiwen.com/subject/mqozcftx.html