Author Topic: Invalid option when saving a file  (Read 3099 times)

jorick

  • Senior Community Member
  • Posts: 390
  • Hero Points: 17
Invalid option when saving a file
« on: September 01, 2011, 07:14:59 PM »
I'm getting the following error messages when I try to save a file:

Dialog box 1:
   Unable to save c:\Path\File.c to "c:\Path\File.c"
   Invalid option
Dialog box 2:
   Autosave has failed to save the file c:\Path\File.c.  Do you wish to disable AutoSave
Dialog box 3:
   Message not available

This error state was caused by setting the following options:
Options->File Options->Save->Strip trailing spaces->Do not strip trailing spaces
Options->Languages->Application Languages->C/C++->File Options->Strip trailing spaces = Strip all trailing spaces

If the C/C++ option is set to anything but Default, SE fails to save the file.

I need to be able to strip all trailing spaces in C files and not strip trailing spaces on all other files.

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 36
Re: Invalid option when saving a file
« Reply #1 on: September 01, 2011, 09:40:29 PM »
This was addressed in a recent hot fix.  Get the latest here:  http://www.slickedit.com/index.php?option=com_content&view=article&id=296

After applying the hot fix, you'll still need to "reset" this option.  Set the C/C++ "Strip trailing spaces" option back to default, apply, then set it to what you want (and apply).  After that, you should be good to go.

jorick

  • Senior Community Member
  • Posts: 390
  • Hero Points: 17
Re: Invalid option when saving a file
« Reply #2 on: September 01, 2011, 09:46:56 PM »
That fixed the problem.  Thanks!