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.
Summary: | Refactor for renaming in C/C++ remote development is not renaming the actual word we selected. Occurences in other places are properly renamed. | ||
---|---|---|---|
Product: | editor | Reporter: | sreekar545 |
Component: | Refactoring | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | issues, ralphbenjamin, vkvashin |
Priority: | P2 | ||
Version: | 7.3.1 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
More up to date stack Partial fix |
Description
sreekar545
2013-07-29 12:34:56 UTC
Created attachment 137941 [details]
IDE log
I see the same behaviour in (7.4) trunk Created attachment 138867 [details]
More up to date stack
The root cause is java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.<init>(File.java:395) at org.openide.util.Utilities.toFile(Utilities.java:3156) at org.netbeans.modules.refactoring.spi.BackupFacility2$DefaultImpl.storeChecksum(BackupFacility2.java:226) at org.netbeans.modules.refactoring.spi.BackupFacility2$DefaultImpl.access$100(BackupFacility2.java:211) at org.netbeans.modules.refactoring.spi.BackupFacility2$DefaultHandle.storeChecksum(BackupFacility2.java:193) ... which corresponds to issue #230219, which I've just reopened Created attachment 138879 [details]
Partial fix
The attached fix fixes this particular issue, so at least refactoring - but not undo - works. But Undo causes the same exception. The reason is: BackupFacility2 is too java.io.File oriented.
(in reply to comment #5) > Partial fix... This meant to go to the issue #230219 (this one depends on), sorry. *** This bug has been marked as a duplicate of bug 230219 *** From #230219 Steps to reproduce are as follows - You need a Linux or Mac host to use as a remote host. If your laptop/desktop is Linux or Mac you can easily fool Netbeans and make it use as remote one. - Unpack the attached test project somewhere in your home directory on that host. - Launch IDE, activate C/C++ - Select "Services" pane, click "Add New Host" on "C/C++ Build Hosts" - If you are on Linux or Mac, you can enter just "localhost" as host name, it will go to your local host as if it was remote (via ssh); if you are on Windows you need to specify a remote Linux or Mac host. This host should already have test project unpacked. - After wizard finishes, select the newly added host, invoke "Open Project...", select test project and open it - In Projects tab, find and open "args.c" in this project - See that undo/redo works OK. Try renaming "main" function. Exception occurs. Undo does not work after that. Multiple issues for tracking the same bug. *** This bug has been marked as a duplicate of bug 236271 *** |