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 250840 - IDE can display wrong (old) content in editor (file on remote host)
Summary: IDE can display wrong (old) content in editor (file on remote host)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-02 20:14 UTC by soldatov
Modified: 2015-03-14 05:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-03-02 20:14:32 UTC
One of our users don't like use NetBeans, because editor can display wrong (old) content. Her typical scenario: launch test, open test report in IDE ==> editor displays old test report

Today I see such problem in 100% cases:
1) Favorites tab displays real testbase on USA host
2) Open testfile file
3) Close file
4) Launch "echo xxxxxxxxxxxxxxx >> testfile" command
5) Open testfile file
==> old content and IDE doesn't refresh file
6) Close file
7) Open testfile file again
==> ok

Also you can repeat 3)-7) steps again.
Comment 1 Vladimir Kvashin 2015-03-03 12:20:12 UTC
As I understand,
Comment 2 Vladimir Kvashin 2015-03-03 12:20:53 UTC
Is the file under version control? If yes, which one (I guess it's hg)?
Comment 3 soldatov 2015-03-03 12:37:03 UTC
Yes. Now I use Mercurial only.
Comment 4 Vladimir Kvashin 2015-03-06 10:50:04 UTC
Confirmed. I can reproduce this even without versioning and on fast host (everest), in the case I use internal terminal. If I use another window, then content is shown ok. 

I'm going to fix this via doing a special fast up-to-date check each time the file is loaded in editor. This check, in the case nothing changed, should take about 1 ping, so there should be no visual slowdown.
Comment 6 Quality Engineering 2015-03-13 03:14:51 UTC
Integrated into 'main-silver', will be available in build *201503130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3c855a3b6efc
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: Making manual fs_server testing more convenient: 1) help on request kinds; 2) allow using "0" as path length means that path does not contain spaces (#250840 - IDE can display old content in editor)
Comment 8 Quality Engineering 2015-03-14 05:47:24 UTC
Integrated into 'main-silver', will be available in build *201503140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bd5a46eab7e3
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: refactoring (while fixing #250840 - IDE can display wrong (old) content in editor)