Author Topic: Modifying read only files, 2 questions and 4 bugs  (Read 762 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • Text
Modifying read only files, 2 questions and 4 bugs
« on: September 06, 2017, 05:56:31 pm »
When a file is read-only, and I attempt to modify it I get: (Protect Read Only Mode is ON)
    ---------------------------
    SlickEdit Pro
    ---------------------------
    This command is not allowed in read only mode
    ---------------------------
    OK CANCEL "Change RW"
    ---------------------------

#1: What is the difference between OK and CANCEL here?

#2: if I click "Change RW", I get a second dialog
    C:\blah\blah\blah.c is read only

    Do you wish to:
        o checkout
        o get latest
        o make writable
        o save as new

2.1 Can I suppress this second dialog and keep Protect Read Only Mode ON?
2.2 Why is "Save as new" disabled?

NOTE: This is a file that is not part of a project or workspace. Just any random read-only file.


BUG #1: If I turn off version control for the current project, then do as above and select "Checkout", I get this error:
    ---------------------------
    SlickEdit Pro
    ---------------------------
    Command 'lock' not available
    ---------------------------
    OK   
    ---------------------------

BUG #2: Repro bug #1 by typing a letter into a read-only file.
    1. That is, load a readonly file
    2. type a letter
    3. Click on the ChangeRW button
    4. Select "Checkout" and click OK
    5. Click OK on "Command Lock Not Available"

    And the letter is inserted into the read-only file.
    This violates my "Protect Read Only Mode" setting


BUG #3: Follow on to #2: Steps
    1. Repro bug #2
    2. In the same file type another letter
    3. Click on the ChangeRW button
    4. Select "Checkout" and click OK
    5. Click OK on "Command Lock Not Available"

    Now I get this dialog
        Another Application has modified the following file:
            C:\blah\blah\blah.c
            Do you wish to reload it?
            yes/all/no/diff
        [X] Always reload files without prompting.

    But of course, nobody else modified the buffer.
    You don't even need to switch away from Slick for this one.

Bug #4: That checkbox is checked, so why is it asking me then?
    Shouldn't that checkbox being checked suppress this particular dialog?


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2389
  • Hero Points: 133
Re: Modifying read only files, 2 questions and 4 bugs
« Reply #1 on: September 06, 2017, 05:58:05 pm »
I will look into these.

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • Text
Re: Modifying read only files, 2 questions and 4 bugs
« Reply #2 on: September 06, 2017, 06:18:10 pm »

BUG #5:
    1. That is, load a readonly file
    2. type a letter
    3. Click on the ChangeRW button
    4. Select "Make File Writable" and click OK

    And the letter is NOT inserted into the now writable file.
    By contrast, Bug #2: The change is made and should NOT be.

BUG #6: Repro Bug #1:
    1. Load a readonly file
    2. type a letter
    3. Click on the ChangeRW button
    4. Select "Checkout" and click OK
    5. Click OK on "Command Lock Not Available"
    6. Save the file (which is still read-only)
    7. Get prompted "File is read only, Do You Wish To...
        Click the MakeFileWritable button
    8. The file is changed to RW, but it is NOT saved.


BUG #7
    0. Load a project with GIT version control
    1. Load a readonly file
    2. type a letter
    3. Click on the ChangeRW button
    4. Select "Checkout" and click OK
    5. Get prompted for "Command Lock Not Available"
It shouldn't do that .... either "Checkout" should be disabled, or it shouldn't always give an error.