Nikita
Nikita

Reputation: 1082

Why go to file in WebStorm IDE is not working properly?

WebStorm is unable to locate a file. I hit Ctrl + Shift + N and start typing file name, but no files found:

WebStorm not found the file

I have tried to invalidate and restart, also I have checked that folder is not marked as excluded, but no success - still can not navigate to case-request. I have checked that everything working. Tha only problem with folder at App/case the folder itself and everything under it is not searchable, however I still can open it manually from the source tree and edit. The app is a root for angularjs application.

enter image description here

Does anyone know what can be wrong? The same project opened in Visual Studio locates the file:

Visual Studio locates the file

Upvotes: 0

Views: 213

Answers (2)

Nikita
Nikita

Reputation: 1082

I have no idea what wrong. Finally I have tried to app/case as separate content root, seems it is working.

Steps I followed:

  1. Press ctrl + alt + s
  2. Select directories if it is not selected at left pane
  3. Exclude Case from project (right click on the case folder and select excluded)
  4. Press "Add Content Root" at right pane
  5. Select the case as content root
  6. Remove excluded flag from case folder (right click on the case folder and select excluded)

After this the case folder became searchable. I have tried to remove content root but as result case again became not searchable.

I don't know if it can lead to any issues in future.

enter image description here

Upvotes: 0

lena
lena

Reputation: 93728

Please try invalidating caches (File | Invalidate caches, Invalidate and restart). If the issue persists, make sure that the folder file resides in is not excluded from project (marked Excluded)

Upvotes: 2

Related Questions