平台 :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/
竟然可以了导入了.