import failing

re: LEDA EAP 118.7490

For some reason the inspection that locates classes for importation
failed in the EAP release. Basically, it could find the package, but falsely reported that package as containing  no classes (interface defintions actually) .

I closed he the LEDA EAP and opened tghe same project in 117.499 and it had no problem finding the classes which needed importation.  


HTH

0
6 comments

Please try File | Invalidate Caches

0
Avatar
Permanently deleted user

Still fails. Also, invalidate caches nukes local history. This is a no-go bug for me, need imports to work depend on  local history also. HTH

0
Avatar
Permanently deleted user

OK found out what was going on. Intellij will let you misname, with respect to capitalization, a package relative to the actual file folder . So i can have

package MyPackage

import blah blah blah

class myClass{}

in a folder whose actual name is myPackage (<-- note small m)

it doesn't give an error but it totally screws up the code insight relative to importing anything from this package.

It ought to give an error when the package name doesn't match the folder.


HTH

0

Which OS are you using?

0
Avatar
Permanently deleted user

xp64

0

Please sign in to leave a comment.