Code code marked red

I have this problem with several cases in the latest two EAPs.

I have been successful to create a small problematic case:

    com.sun.codemodel.JClass aclass = null;
    aclass.binaryName(); //marked method as non existing
    aclass.fullName();
    ( ( com.sun.codemodel.JType ) aclass ).binaryName(); //marked method
as non existing
    ( ( com.sun.codemodel.JType ) aclass ).fullName();


Any ideas how I could resolve that?

8 comments

Hi Johannes,

Tried your code and it failed because of inability to find 'com.sun.codemodel.JClass' and 'com.sun.codemodel.JType' classes.

Works fine after changing them to 'com.sun.codemodel.internal.JClass' and 'com.sun.codemodel.internal.JType' correspondingly.

Regards, Denis

0

Yes, sorry about that. Those classes are contained within the Jaxb
package...

The strange thing is, that the error got away today. But another error
came up. So for me the latest EAPs marks good red randomly...


Johannes

On 08/20/2010 10:40 AM, Denis Zhdanov wrote:

Hi Johannes,

Tried your code and it failed because of inability to find 'com.sun.codemodel.JClass' and 'com.sun.codemodel.JType' classes.

Works fine after changing them to 'com.sun.codemodel.internal.JClass' and 'com.sun.codemodel.internal.JType' correspondingly.

Regards, Denis

---
Original message URL: http://devnet.jetbrains.net/message/5270655#5270655


0

Hey guys,

this is really a blocker (at least for me). And I think it should be
reproducible,
So anybody wanna take a look at it?

http://youtrack.jetbrains.net/issue/IDEA-57904


Thanks,

Johannes

On 08/20/2010 02:45 PM, Johannes Schneider wrote:

Yes, sorry about that. Those classes are contained within the Jaxb
package...

The strange thing is, that the error got away today. But another error
came up. So for me the latest EAPs marks good red randomly...


Johannes

On 08/20/2010 10:40 AM, Denis Zhdanov wrote:

>> Hi Johannes,
>>
>> Tried your code and it failed because of inability to find 'com.sun.codemodel.JClass' and 'com.sun.codemodel.JType' classes.
>>
>> Works fine after changing them to 'com.sun.codemodel.internal.JClass' and 'com.sun.codemodel.internal.JType' correspondingly.
>>
>> Regards, Denis
>>
>> ---
>> Original message URL: http://devnet.jetbrains.net/message/5270655#5270655


0

I dont' know if this is related, but starting in IU-96.1020, I ran into serious problem with static vars not being recognized in actionscript. These static vars were in the same actionscript class.
Johannes is saying he has seen a problem in the past two EAPs, but for me I don't see the problem in IU-96.974 ; only starting with IU-96.1020.   I tried invalidating caches, etc. but the problem still occurred in IU-96.1020.   Since then, I fell back to using IU-96.974.

IDEA-58095 [flex] [actionscript] regression: static vars not being resolved


Thanks,
-Alex

0

While using IU-96.974, I have seen a different problem in MXML code.  Aftre recompiling my project which has java and mxml/actionscript, then IDEA reindexes some files created in my project dir, then sometimes IDEA forgets how to resolve 'resourceManager' in MXML file loaded in my editor.   There are no exceptions caught by IDEA (red circle) or on the console where I run idea.bat.   If I restart IDEA, then the problem goes away.  Invalidate Cache is not necessary.  Hopefully that 100% speedup in indexing didn't introduce some wierd bugs.

Thanks,
-Alex

This has happened 4-5 times for me
ideax-96-974-cant-resolve-resourcemanager.png

0

About red 'resourceManager' in MXML. Do you have sources configured for any of your ActionScript (SWC) libraries configured in IDEA? Or may be you don't have sources configured for Flex SDK? If yes then this is probably this issue: http://youtrack.jetbrains.net/issue/IDEA-57059. It is already fixed in latest IDEA 9 EAP and will be in the next IDEA 10 EAP.

0

Alexander,

This sounds like my problem. I don't have sources configured for Flex SDK. Also, we have several 3rd party/inhouse SWC libraries.

I also see places where it complains about not being able to resolve "event" of type mx.flash.Event. The spurious error says "Argument type flash.events.Event is not assignable to parameter type Event"

Thanks,
-Alex

ideax-96-1020-mx-flash-event.png

0

Also, I am getting ArrayIndexOutofBoundsException while IDEA parses one of my .swc files. I uploaded the swc attached to IDEA-57878.  Hopefully you can reproduce.
Thanks, -Alex

0

Please sign in to leave a comment.