Unresolved Variable ???

Hi All

I am currently working on a Flex Shopping Cart and i am getting an annoying 'unresolved variable' error come up on import statements

i.e

// import statements ----------------------------------------
        import ShoppingCart.ValueObjects.ShopItemVO;



IntelliJ is telling me that 'ValueObjects' is an unresolved Variable !!!

So whats going on then ???

Many Thanks
0
13 comments
Avatar
Permanently deleted user

I have the exact same problem. IntelliJ IDEA does not resolve from external JAR's, and all import statements are marked "unused".
This is the latest build of IntelliJ IDEA 10 for Snow Leopard.

0

Julian, where is package ShoppingCart.ValueObjects and class ShopItemVO defined? In your code or in 3rd party SWC? How are module dependencies set up? Sample project would be greatly appreciated.

0

Reinout, are you coding ActionScript/Flex or Java? Original question is about ActionScript/Flex and JARs are not used in resolve.

0
Avatar
Permanently deleted user

yes, sorry, I was talking about java.
I replied because I have this problem with all jar's, I know it's a bug because it builds/runs fine, it's just the editor that claims they are unresolved. Code has no resolving issues in netbeans/eclipse.

I thought they might be related. I guess it's best if I file a bug report?

0

Hello Reinout,

Please describe your project configuration in more detail. The problem is
more likely to be caused by a misconfiguration of the project than by a bug
in IntelliJ IDEA.

yes, sorry, I was talking about java. I replied because I have this
problem with all jar's, I know it's a bug because it builds/runs fine,
it's just the editor that claims they are unresolved. Code has no
resolving issues in netbeans/eclipse.

I thought they might be related. I guess it's best if I file a bug
report?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Julian, I think you prob need to blow away your system cache

0
Avatar
Permanently deleted user

@ Alexander

The package & Class are defined in the code.  Its strange as it does not occur on every imported statement.  Will take another look.  Still finding my way around IntelliJ anyway :O

Many Thanks

0
Avatar
Permanently deleted user

@ stlum9495

I run Intellij on an Arch/Openbox system and regularly clean my cache files, so i dont think that makes a difference ..

Cheers

0

Julian, I can't reproduce the issue. Can you pleasse clarify few things:
1. Are classes ShopItemVO and class where you import it located in the same IDEA module?
2. What are source folders in this module?
3. Full paths to the files where ShopItemVO class is defined and where it is imported.

Some screenshots proving the issue may help or sample project with just 2 classes and this issue - that would be great.

0
Avatar
Permanently deleted user

Hi Alexander

Here is a screenshot of one of the pages where the problem occurs.  It also shows the folder structure etc

Does that help ?

Regards



Attachment(s):
screenshot1.jpg
0

Oh, yes, thank you, it's clear now! IDEA is confused by similar names of class and package: ShoppingCart. I'll check if there's already an issue for that in our bug tracker and create one if needed.
Until fixed I can only recommend to follow coding conventions and to name packages with lowercased first symbol and classes - with uppercased.

0
Avatar
Permanently deleted user

Thats great, thanks for the Advice ... Still a noobie coder sometimes and i forget about lowerCase & UpperCase Conventions ...

Many Thanks !!

0

Please sign in to leave a comment.