Skip to content

Executable permission not preserved since update to 1.4.0 #12

@vmkalbskopf

Description

@vmkalbskopf

When editing a script on the remote server (linux) using this module on my laptop (mac os), the execution permission of the file is not preserved.
I have tested this by creating a new file on the server (using vim) and making it executable. Then I edit the file using atom. The executable permission is lost.

I have tried deleting the server. I am also using the same user on the server and in the server settings.

I have changed the file attribute settings using the dialog provided by the package. But as soon as I save the file, it changes back to this:

Screenshot 2021-09-27 at 11 07 11

I have tried putting in xs but it throws this error:

Uncaught TypeError: Cannot read property 'other' of undefined

/Users/victor/.atom/packages/ftp-remote-edit-plus/lib/helper/format.js:208
Hide Stack Trace
TypeError: Cannot read property 'other' of undefined
    at permissionsToRights (/Users/victor/.atom/packages/ftp-remote-edit-plus/lib/helper/format.js:208:32)
    at PermissionsView.updateCheckboxInputs (/Users/victor/.atom/packages/ftp-remote-edit-plus/lib/views/permissions-view.js:513:18)
    at /Users/victor/.atom/packages/ftp-remote-edit-plus/lib/views/permissions-view.js:145:12
    at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1186925)
    at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1188366)
    at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:507940)
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:495895)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:26664)
    at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:18599
    at TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:41978)
    at TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:41487)
    at TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:18562)
    at TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:18111)
    at TextEditorComponent.didTextInput (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:96704)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions