History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-13991
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Stephen Friedrich
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Attaching sources to lib takes effect only after restart

Created: 01 Aug 07 01:44   Updated: 08 Aug 07 18:38
Component/s: Project Configuration

Build: 7,104
Severity: High


 Description  « Hide
I clicked on a stack trace element in the console.
Idea opened the decompiled sources for a class in a jar that is configured in a module library.
I opened the module settings, edited the module library, attached sources (multiple folder (no zips)).
Closed the editor with the decompiled stub.

Clicked on the stack trace again.
=> Bug: Idea again opened only the decompiled view.
Took me some trial and error to find out that Idea only notices the sources after a restart.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 08 Aug 07 17:33
7118: reproduced with provided scenario. Important notes:
If user attaches sources, re-run application and gets the trace again, then sources are found.
But if the application is not re-run, so, trace is not regenerated, then attaching sources makes no effect.
Probably the trace in IDEA console contains some "hard-coded" URL to file (.java or .class).
Restarting IDEA is not necessary, in fact.

The same with detaching sources: trace opens remembered java file, though it is detached.

Ctrl+B detects attached / detached sources immediately.


Stephen Friedrich - 08 Aug 07 18:07
Alexander, I don't really understand much of what you said (and probably am not supposed to), but please note that this is a regression.
I am quite confident that this is exactly what I did in Demetra whenever clicking on a stacktrace took me to decompiled stub.

And of course

  • there should be a really quick fix to attach sources staring at you in the UI whenever a decompiled stub opens
  • the stub should be replaced automatically with source as soon as the source jar/folder is attached
    But those are other issues...

Alexander Chernikov - 08 Aug 07 18:38
Yes, this is the bug. Just specified more conditions for developer.