Intellisense in IntelliJ no longer working

前端 未结 16 920
一个人的身影
一个人的身影 2020-11-28 13:05

I\'m currently running IntelliJ IDEA 13.1. While running IntelliJ 13 intellisense/autocomplete stopped working. I tried upgrading and it still doesn\'t work.

I can e

相关标签:
16条回答
  • 2020-11-28 13:38

    Had the same problem until:

    1. Third party JDK installed
    2. Configured in module settings: right click on project name, then "Open module settings" -> SDKs -> "+". Pick the jdk root folder and Idea will take care of the rest.
    3. Re-indexed a bunch of things. It happens automatically, just be patient
    0 讨论(0)
  • 2020-11-28 13:40

    I tried all the above option and it did not solve the issue. In my case:

    THE ISSUE: node_modules was not loaded in the file structure of the project.

    THE SOLUTION: go to explorer(finder/nautilus) find the .idea folder in the project and delete it. Then re-import the project. Once I re imported the project it loaded the node_modules folder as library root

    Note: It will take a few seconds for IntelliJ to index all the libraries. You will see a loader on the bottom right next to line number info.

    Thanks, hope it helps.

    0 讨论(0)
  • 2020-11-28 13:40

    In case this helps anyone; for me it was a windowing glitch of some kind. The suggestions popup showed on the wrong monitor, which I didn't notice the first time it happened.. after a while I saw what was happening. Resizing the window seemed to fix it.

    0 讨论(0)
  • 2020-11-28 13:42

    In case none of these work for you, if you are using IdeaVim, make sure your ~/.ideavimrc does not override Ctrl+Space, you can check this in vim:

    :verbose map <c-space>
    

    In my case, it was set by ~/.vim_runtime:

    Last set from ~/.vim_runtime/vimrcs/basic.vim line 208
    

    Thanks @s1n7ax for the tip!

    0 讨论(0)
  • 2020-11-28 13:43

    If you're too lazy to restart your machine to fix the issue, you can kill the process taskkill /F /PID pid_number_of_idea64.exe (task manager -- view>select columns>PID) and then open CMD, head over to C:\Program Files\JetBrains\IntelliJ IDEA xxxx.xx.xx\bin, start idea.bat. Let this CMD window open. Please note that even after executing taskkill, idea64.exe process doesn't disappear from task manager. Try executing the same command again and you'd know that process doesn't exist anymore.

    0 讨论(0)
  • 2020-11-28 13:45

    For me the code completion suddenly stopped working because I had nudged the IDEA window slightly off-screen, maybe just a pixel or two, which caused the code completion pop-up to (presumably) appear off-screen. Making sure the application window was fully visible fixed the problem.

    0 讨论(0)
提交回复
热议问题