Skip navigation
shoggoth000
Currently Being Moderated

Failure Trace stack frame paths are incorrect

Aug 27, 2011 9:56 AM

I am using FlexUnit heavily, and appreciate it mightily.

 

However, there is one very powerful annoyance in the Failure Trace window in Eclipse/FlashBuilder.  When I double-click on a stack frame, FlexUnit attempts to open the source file using the wrong path.

 

For instance, my assert is thrown on the following stack frame:

 

**[ at my.package::MyTestCase/myTestFunction(MyTestCase.as:127) ]

 

When I double-click the stack frame, it commands the editor to open file:

 

/RootFolder/ProjectFolder/src/test/flex/my/package/MyTestCase.as

 

Which the editor complais that 'does not exist'.

 

When I inspect the properties of the actual file resource, Eclipse/FlashBuilder shows mee that the path is:

 

/ProjectFolder/src/test/flex/my/package/MyTestCase.as

 

Note the lack of '/RootFolder'.  I'm not sure why FlexUnit is tacking that on there, but it is causing the Editor View to choke.  /RootFolder is the folder that my project folders _happen to be in_, but I think it is irrelevant as far as my workspace is concerned.  My workspace folder is somewhere else entirely, if that is important (actually in /RootFolder/../workspaces/something/ FWIW)

 

Any workarounds?

 

Thanks!

JW

 
Replies
  • Currently Being Moderated
    Aug 28, 2011 9:08 PM   in reply to shoggoth000

    Hi,

     

    Okay, a couple of things. FlexUnit is the actual unit testing framework which is an open source project. Adobe Flash Builder, IntelliJ, Flash Develop and other IDEs integrate with FlexUnit to provide a user interface.

     

    So, based on the fact that you said eclipse, I am guessing it is Flash Builder. Unfortunately that is maintained as part of FlexUnit (we don't even have the code) it is part of Adobe's Flash Builder product. I am forwarding your post to the appropriate people on the team and hopefully they will post back or reach out for some additional information.

     

    Sorry, wish there was more I could do to help,

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2011 7:02 AM   in reply to shoggoth000

    JW,

     

    I filed a bug for this issue here. Take a look and make sure I captured everything correctly.

     

    https://bugs.adobe.com/jira/browse/FB-32375

     

    Mike,

     

    Thanks for the heads up. I'll see if we can get this fixed in an upcoming build.

     

    -Adam

     

     

    ---

    Adam Wayne Lehman

    Product Manager · Flash Builder · Adobe Systems Inc

    adrock@adobe.com · @adrocknaphobia

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2011 8:17 AM   in reply to shoggoth000

    Got it. I had it backwards. I updated the bug.

     

    -Adam

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2011 8:33 AM   in reply to adrock

    Just to clarify again, I promise you that FlexUnit is not prepending anything. FlexUnit doesn't know or care about the path and has no idea what a project is let alone that your files might be in one.

     

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2011 8:59 AM   in reply to shoggoth000

    JW,

     

    I absolutely agree it is a problem, I was actually just trying to clarify for Adam so as his engineers begin to look at the problem they can narrow the domain rapidly.

     

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 20, 2011 5:53 AM   in reply to shoggoth000

    Hi,

     

    I'm unable to reproduce this issue on the latest Flash Builder.

    Here's what i did.

    1. On Mac, I copied a Project Folder to my Root Folder.

    2. I opened FB and imported this project folder.

    3. I added a test case to this project and executed it.

    4. When I clicked on the failure trace, the correct line was opened in the editor.

     

    Am I missing something?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points