Author Topic: Can't choose to reload file 'diff' if changed outside SE  (Read 3015 times)

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Can't choose to reload file 'diff' if changed outside SE
« on: May 17, 2013, 07:27:56 pm »
If I modify a file outside of SE (beta4) and then go back into SE, it properly prompts me if I want to reload the file, do a diff, etc.

If I choose to do a 'diff', it displays the diff.

But after I hit close on the diff, it does not prompt again to reload the file, and I still see the old file.

After I do the diff, I want to load the new version of the file, but can't.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2082
  • Hero Points: 101
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #1 on: May 17, 2013, 07:31:58 pm »
You can merge in the items you want from the diff (or just click "Merge All").

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #2 on: May 17, 2013, 07:33:35 pm »
I'm not sure that answers my question.

I don't want to do a merge.  I just want to observe what changed when the file was modified outside of SE.

After I observe the changes, I want to have the new file reloaded.

I think I remember that in 17.0.3 after I closed the diff window that it would prompt me to reload again if I wanted to.

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #3 on: May 17, 2013, 07:39:34 pm »
I just tried to do "merge all" to accomplish what I want.

But the file is locked by another process (I can still read it), so I get a window that says "command not allowed in read only mode".

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2082
  • Hero Points: 101
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #4 on: May 17, 2013, 07:41:50 pm »
I'm able to diff, close the diff dialog, and then I still have the dialog where I can select reload.  What platform are you on?

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #5 on: May 17, 2013, 07:42:58 pm »
Actually, the file is not locked by another process, so I don't know why I got that popup.

Now I get strange behavior.

After I got the popup saying can't modify the file in read only mode, I went back into the editor to type a key to see if SE allowed me to do it, it did allow it.  I did not save the file though.

Then, I modified the file again outside of SE (it is an xml file that eclipse writes to), and went back into SE.

It prompted again to reload/diff, but now when I click on the diff button, it does nothing.  The diff does not come up, and the "reload modified files" window is still there.

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #6 on: May 17, 2013, 07:43:39 pm »
I'm on win7 x64

SlickEdit 2013 (v18.0.0.8 64-bit)

Serial number: FE34390_BETA
License type: Beta License
License expiration: 2013-08-13 06:39:00
License file: C:\ProgramData\slickedit\18\slickedit.lic

Build Date: May 16, 2013
Emulation: CUA

OS: Windows 7 x64
OS Version: 6.01.7601  Service Pack 1
Memory: 50% Load, 4122MB/8150MB Physical, 4864MB/16298MB Page File, 543MB/8388607MB Virtual
Shell Info: C:\Windows\system32\cmd.exe /q
Screen Size: 1280 x 1024

Project Type: Cpp
Language: .xml (XML)

Installation Directory: C:\Program Files\SlickEditV18.0.0 x64 Beta4\ (non-removable drive,NTFS,732266MB free)
Configuration Directory: C:\Users\rbresali\Documents\My SlickEdit Config\18.0.0\ (non-removable drive,NTFS,732266MB free)
Spill File: C:\Users\rbresali\AppData\Local\Temp\$slk.20 (non-removable drive,NTFS,732266MB free)


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2082
  • Hero Points: 101
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #7 on: May 17, 2013, 07:44:18 pm »
And when you close the diff the other dialog is gone?

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #8 on: May 17, 2013, 07:45:00 pm »
Yes, it is gone.

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #9 on: May 17, 2013, 07:45:28 pm »
I think I see it flashing and disappearing very quickly when I close the diff.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2082
  • Hero Points: 101
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #10 on: May 17, 2013, 07:45:41 pm »
I'm on Windows 7 as well.  I'm trying to figure out what the difference is.

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #11 on: May 17, 2013, 07:48:22 pm »
In my previous post where I said pressing "diff" did nothing, I think that was operator error. 

I may not have the modified file checked in the box before hitting diff.

But it is strange that the file was not checked.  Maybe it wasn't checked because I modified it without saving it?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2082
  • Hero Points: 101
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #12 on: May 17, 2013, 07:49:28 pm »
Oh, if it isn't checked that's because you had the file modified in memory AND the file got modified on disk.  It does that so you don't accidentally reload out of reflex.

rowbearto

  • Senior Community Member
  • Posts: 984
  • Hero Points: 48
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #13 on: May 17, 2013, 07:56:55 pm »
OK, well I still have the issue that the diff tool thinks the file is read only when it isn't (I checked in windows explorer, it is not read only, and I can also modify it in SE editor) so I can't do the "merge all".

So 2 issues:

1) Don't get prompted to reload again
2) If I try "merge all" it says the file is read only.

I've attached the file in case that helps you to reproduce the issue.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2082
  • Hero Points: 101
Re: Can't choose to reload file 'diff' if changed outside SE
« Reply #14 on: May 17, 2013, 08:06:38 pm »
One of the files is set to read-only, so I have to verify, you were merging the right way, correct?