Author Topic: Unable to save remote file from SE  (Read 953 times)

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Unable to save remote file from SE
« on: August 22, 2023, 07:28:40 PM »
I'm working in an environment where my MAC (M1 Pro, Ventura 13.5) is mounting an NFS share. My source code is on the NFS share, my tag files and project files are on a local mount point. I am using SE Pro 2022 (v27.0.2.0) with Hotfix 11 installed.

I open a file in SE and there are times when I try to save the file that I get a dialog stating "Unable to save <file_path/name> Path not found". I can open/edit/save the file using text edit or vi from a terminal on the MAC while SE is in this state. SE even finds that the file was updated and prompts me to reload without the checkbox checked because my copy in SE is modified.

Once I get into this state I have a hard time getting out of it for that particular file. Sometimes a reboot works, other times not. Sometimes restarting SE works, other times not. I haven't yet found a solid way to get out of this state.

Once in a while, saving the file as a different name on the remote file system, then deleting the original and renaming file back to the original name works for a while. e.g. if file is x.cpp, save as x2.cpp, delete x.cpp, mv x2.cpp x.cpp then reload in SE and it might help.

I verfied that I have disabled the Options->File Options->Load->File Locking.

What else can I look for as to why SE decides that it can't find this file to save it even when it just loaded the file. How can I debug this situation? My IT dept won't help me further because I can open/edit/save the file using text edit.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2905
  • Hero Points: 153
Re: Unable to save remote file from SE
« Reply #1 on: August 22, 2023, 09:22:30 PM »
The next time this happens, can you try typing "save +o" on the SlickEdit command line?  This will save without a backup.

I am concerned that the file is actually saving but you are getting an erroneous error message because it failed to back up.  I want to rule that out.

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Re: Unable to save remote file from SE
« Reply #2 on: August 24, 2023, 03:56:15 PM »
save +o worked. I deleted the entire 'backup' directory (lived on my local mount point) and haven't had any issues since. Thank you!

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2905
  • Hero Points: 153
Re: Unable to save remote file from SE
« Reply #3 on: August 24, 2023, 04:40:34 PM »
Are backups still on?

Deleting the backup directory probably wasn't necessary.  If it happened again, we might have been able to delete that one archive. It would be nice to figure out what corrupted it.

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Re: Unable to save remote file from SE
« Reply #4 on: August 24, 2023, 04:46:15 PM »
Backups are still on.

I have a backup of the slick edit backup directory and will restore it to see if I can reproduce the error again so you can debug what the root cause might be.

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Re: Unable to save remote file from SE
« Reply #5 on: August 29, 2023, 03:37:43 PM »
I reproduced the unable to save issue for a particular file. This time 'save +o' also failed to work. Removing the files with the same base name from the backup directories did not work until I restarted SlickEdit. Then I could save the file again.

What file(s) might have been corrupted that I can help you look at?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2905
  • Hero Points: 153
Re: Unable to save remote file from SE
« Reply #6 on: August 29, 2023, 04:29:59 PM »
If you saved the ones you removed, those may help.

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Re: Unable to save remote file from SE
« Reply #7 on: August 29, 2023, 05:29:05 PM »
Two files posted under case "Dan230829" on support.slickedit.com.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2905
  • Hero Points: 153
Re: Unable to save remote file from SE
« Reply #8 on: August 29, 2023, 05:30:24 PM »
Thanks!