This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 146518 - The sources are not refreshed correctly
Summary: The sources are not refreshed correctly
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ deva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 15:23 UTC by Petr Pisl
Modified: 2011-12-13 07:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Firebug shows different sources (the right one), NetBeans shows the old sources. (146.30 KB, image/png)
2008-09-08 15:24 UTC, Petr Pisl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-09-08 15:23:01 UTC
I have simple php project with one php file with javascript. I have put breakpoint on line 15 and then debug the
javascript source. Then I changed the javascript code, but during the next debugging the old code is opened. See the
attached screenshot. Firebug is stopped on the line 15 with the right sources, the ide shows the old one source and
breakpoint execution is also stopped on the line 15.
Comment 1 Petr Pisl 2008-09-08 15:24:26 UTC
Created attachment 69319 [details]
Firebug shows different sources (the right one), NetBeans shows the old sources.
Comment 2 Samaresh Panda 2008-09-11 17:58:15 UTC
Looking into it...
Comment 3 Quy Nguyen 2008-09-11 18:55:34 UTC
The page source is (correctly) cached by the IDE, but the problem is that there is no currently no mechanism to
invalidate the cache.  This would involve changes on the IDE side as well as both the IE and FF extensions.
Comment 4 Samaresh Panda 2008-09-11 19:10:02 UTC
hmmmm, sounds like you know the problem and perhaps the fix. Do you want to own it or want me to work on it?
Comment 5 Quy Nguyen 2008-09-11 19:52:03 UTC
I discussed this earlier with Deva, and I think that the FF extension needs to have some way of determining when its
loaded sources are out of date.  I'll look into it further.
Comment 6 Quy Nguyen 2008-09-16 02:03:18 UTC
Changeset: 5e96de50f998

Done for Firefox.  Some IE browser extension changes are also required.
Comment 7 Quality Engineering 2008-09-16 06:00:54 UTC
Integrated into 'main-golden', will be available in build *200809160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5e96de50f998
User: Quy Nguyen <quynguyen@netbeans.org>
Log: #146518 - Refresh R/O sources when debugged browser reloads (Firefox)
Comment 8 _ deva 2008-09-16 07:26:50 UTC
IE extension now sends source reload messages