https://kotlinlang.org logo
Title
d

Dalinar

09/16/2017, 3:15 AM
does anyone know what would cause a squiggly underline under a pacakage name (folder actually exists) in a class that is specified fully qualified in code? (for example if I were creating a new object from a fully qualified class, e.g.
a.squiggly b.c.d.MyClass()
)
h

horse_badorties

09/16/2017, 6:21 AM
what is the text of the warning?
d

Dalinar

09/16/2017, 6:37 AM
just that it is unrecognized, but I can't figure out what makes that folder different than any other package folder. So to fix it I manually add the import statement and remove the qualifying part in the code. There's no way to automatically do that (like there would be if there was no error)
h

horse_badorties

09/16/2017, 6:40 AM
does that happen for one specific folder only?
d

Dalinar

09/16/2017, 6:41 AM
yes, but I don't know what makes this folder different than its parent or descendants. If I only ran into this problem once or twice I wouldn't care but I have a lot of classes in the subfolders and so IJ is frequently inserting fully qualified references when I do things like copy a class's source file
h

horse_badorties

09/16/2017, 6:42 AM
I don't think it should matter it the folder actually exists or not since in kotlin packages don't have to match the actual folder.
d

Dalinar

09/16/2017, 6:44 AM
I think it is related to kotlin import bugs but I'm trying to figure out if there's a way I can get around it since various import bugs haven't been fixed in years
h

horse_badorties

09/16/2017, 6:44 AM
did you search :youtrack: ?
d

Dalinar

09/16/2017, 6:47 AM
I can't find anything relevant, I was just hoping someone from jetbrains would know - when they wake up around there
h

horse_badorties

09/16/2017, 6:48 AM
if it's an IJ issue you might want to post that in #intellij
with a reproducible example 😃
d

Dalinar

09/16/2017, 8:06 AM
no idea how to reproduce it, otherwise I would have made a bug report - but there must be something different about that package / folder than the others for this to happen just not sure what to look for
k

karelpeeters

09/16/2017, 8:30 AM
Maybe you can look trough the editor style settings and see where it comes from?