Intellj各種小問題
由於工作需要,最近寫起了Java,IDE用Intellj,但三不五時就會碰到一些奇妙的問題,用這篇把問題記錄下來方便之後查閱。
1. 莫名其妙本來可以 import 的東西就 import 不到了
Solution: https://stackoverflow.com/questions/26952078/intellij-cannot-resolve-symbol-on-import
有人跟我一樣滿頭問號的去問,總之要去把cache清掉之類的
File -> Invalidate Cache/Restart
2. 跑東西的時候OOM (Out of Memory)
Solution: 自己去把heap size或其他的size調大
Settings (Preferences on Mac) | Build, Execution, Deployment | Compiler | Build process heap size.
3. 切換branch時要重新跑一些maven dependency
Solution: 簡單來說就是要找出那個reimport的指令
Press Ctrl+Shift+A to find actions, and input "reimport", you will find the "Reimport All Maven Projects"
https://stackoverflow.com/questions/9980869/force-intellij-idea-to-reread-all-maven-dependencies
未完待續~
1. 莫名其妙本來可以 import 的東西就 import 不到了
Solution: https://stackoverflow.com/questions/26952078/intellij-cannot-resolve-symbol-on-import
有人跟我一樣滿頭問號的去問,總之要去把cache清掉之類的
File -> Invalidate Cache/Restart
2. 跑東西的時候OOM (Out of Memory)
Solution: 自己去把heap size或其他的size調大
Settings (Preferences on Mac) | Build, Execution, Deployment | Compiler | Build process heap size.
3. 切換branch時要重新跑一些maven dependency
Solution: 簡單來說就是要找出那個reimport的指令
Press Ctrl+Shift+A to find actions, and input "reimport", you will find the "Reimport All Maven Projects"
https://stackoverflow.com/questions/9980869/force-intellij-idea-to-reread-all-maven-dependencies
未完待續~
留言
張貼留言