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 190324 - Netbeans undo functionality stops working on Ubuntu Linux
Summary: Netbeans undo functionality stops working on Ubuntu Linux
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 07:12 UTC by jwswart
Modified: 2012-10-11 13:57 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 jwswart 2010-09-13 07:12:58 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Linux version 2.6.32-24-generic running on i386
Java; VM; Vendor = 1.6.0_17
Runtime = Java HotSpot(TM) Client VM 14.3-b01

This is the problem I have:

1) Modify file
2) Save file
3) Alt-tab to another application (ie. Netbeans loses focus)
4) Switch back to Netbeans
5) CTRL+Z and CTRL+Y no longer work.

Initially I thought this was because of the reasons described in this forum post:

http://forums.netbeans.org/post-84316.html

But that does not seem to be the case.  My NTP is set to synchronize with the server that I am saving my project on.

I use Netbeans 6.9.1 for PHP and I save my files to a SAMBA share on another Linux server on our LAN.

I should point out that sync'ing NTP did solve the initial problem of constantly being told my file has been modified externally.  But it does not solve the CTRL+Z undo problem.

Note: it seems to be specifically when Netbeans loses focus.  I am able to save the file and undo my changes as long as I remain in the IDE.

Any help would be greatly appreciated.
Comment 1 Marian Mirilovic 2010-10-15 10:07:09 UTC
Works for me NB 7.0 M2, Ubuntu 10.04  x64, JDK 6u22
Comment 2 ilvisne 2011-08-12 21:49:39 UTC
I'm using still 6.9.1 because of python plug-in and having the same problem. It did not work from the beginning.

My System:

Ubuntu 11.04 (32bit)
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
Comment 3 jwswart 2011-08-13 09:20:52 UTC
Hi, since reporting this bug, I managed to get it working by changing from a samba mount to SSHFS.

The mount that I have in fstab that resolves the undo problem looks like this:

sshfs#username@hostname: /mnt/mountpoint fuse defaults,uid=<uid>,gid=<gid>,umask=0,allow_other,workaround=rename 0 0

uid and guid are those that appear in /etc/passwd for your username and without <> of course.

In this instance I have set up a public key/private key relationship with the server so I do not have my credentials in the fstab setting, but adding them should be fine.

Basically the problem is resolved by using sshfs rather than samba, and specifically using the 'workaround=rename' flag that sorts out netbeans saying that files already exist or have changed, etc.
Comment 4 Miloslav Metelka 2011-08-16 12:41:36 UTC
It looks like it has something to do with lockability tests in platform/text thus reassigning.
Comment 5 David Strupl 2012-10-11 13:57:52 UTC
Hello, I don't think we want to fix this. Although I admit that it might be a problem for some users, a workaround for IDE users is rather simple: don't use remote mounts for working with the IDE. Closing as wontfix.