laymance / remote-sync-pro

Upload your files to remote host after every change. Both SCP/SFTP and FTP are supported.
https://atom.io/packages/remote-sync-pro
MIT License
19 stars 6 forks source link

Uncaught TypeError: Path must be a string. Received undefined #28

Open samuelesantoni opened 6 years ago

samuelesantoni commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.3 x64 Electron: 1.6.15 OS: Mac OS X 10.13.3 Thrown From: remote-sync-pro package 5.1.1

Stack Trace

Uncaught TypeError: Path must be a string. Received undefined

At path.js:7

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at FtpTransport.module.exports.FtpTransport.upload (/packages/remote-sync-pro/lib/transports/FtpTransport.coffee:37:27)
    at UploadListener.module.exports.UploadListener.processFile (/packages/remote-sync-pro/lib/UploadListener.coffee:48:17)
    at /packages/remote-sync-pro/node_modules/async/dist/async.js:4082:9
    at Object.process (/packages/remote-sync-pro/node_modules/async/dist/async.js:2330:17)
    at /packages/remote-sync-pro/node_modules/async/dist/async.js:2238:19
    at /packages/remote-sync-pro/node_modules/async/dist/async.js:119:16)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)

Commands

     -1:48.4.0 remote-sync-pro:configure (span.name.icon.icon-file-directory)
  3x -1:18.6.0 core:paste (input.hidden-input)
     -0:05.8.0 remote-sync-pro:upload-folder (span.name.icon.icon-file-directory)

Non-Core Packages

aligner 1.2.4 
aligner-css 1.2.1 
aligner-javascript 1.3.0 
aligner-php 1.2.0 
auto-indent 0.5.0 
autoclose-html 0.23.0 
color-picker 2.2.5 
color-tabs 0.1.8 
Delete-Whitelines 0.6.3 
file-icons 2.1.16 
highlight-selected 0.13.1 
pigments 0.40.2 
remote-ftp 2.1.4 
remote-sync-pro 5.1.1 
uikit-atom 0.3.1 
mrRobot62 commented 6 years ago

[Enter steps to reproduce:] (same on my side)

  1. Marked an python file in navigator
  2. press cmd & s for saving (on Mac)

BTW: in some circumstances after changing a file and press CMD & S no sync with remote server will be established :-/

Atom: 1.23.1 x64 Electron: 1.6.15 OS: Mac OS X 10.13.3 Thrown From: remote-sync-pro package 5.1.1

Stack Trace

Uncaught TypeError: Path must be a string. Received undefined

At path.js:7

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at RemoteSync.downloadFile (/packages/remote-sync-pro/lib/RemoteSync.coffee:92:21)
    at handleEvent (/packages/remote-sync-pro/index.coffee:46:14)
    at /packages/remote-sync-pro/index.coffee:108:46)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:388:36)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:273:23)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1399:34)
    at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:348:31)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)

Commands

  3x -4:51.2.0 editor:newline (input.hidden-input)
     -4:43.5.0 core:move-right (input.hidden-input)
     -4:42.5.0 editor:newline (input.hidden-input)
     -4:32.9.0 core:copy (input.hidden-input)
     -4:30.4.0 core:paste (input.hidden-input)
     -4:25.5.0 core:backspace (input.hidden-input)
  2x -4:21.1.0 core:save (input.hidden-input)
     -2:38.2.0 core:copy (input.hidden-input)
     -2:33.7.0 core:paste (input.hidden-input)
  2x -2:32.5.0 core:save (input.hidden-input)
     -2:27.9.0 core:backspace (input.hidden-input)
     -2:26.7.0 core:save (input.hidden-input)
  2x -2:04.0 editor:newline (input.hidden-input)
  3x -2:03.3.0 core:backspace (input.hidden-input)
  2x -2:01.7.0 core:save (input.hidden-input)
     -1:52 remote-sync-pro:download-file (span.name.icon.python-icon)

Non-Core Packages

atom-beautify 0.32.2 
atom-clock 0.1.16 
atom-code-syntax 0.3.1 
atom-code-ui 0.4.1 
atom-linter-node-dependencies 1.5.0 
atom-nodejs-snippets 2.0.0 
autocomplete-clang 0.11.4 
autocomplete-javascript 0.0.2 
build 0.70.0 
busy 0.7.0 
busy-signal 1.4.3 
circuitpython-force-to-drive 0.2.0 
clang-format 1.30.0 
file-icons 2.1.17 
fold-lines 0.2.2 
formatter-clangformat 1.0.1 
highlight-selected 0.13.1 
intentions 1.1.5 
javascript-snippets 1.2.1 
javascript-standard-snippets 0.2.1 
jshint 1.8.6 
language-ini 1.19.0 
language-lua 0.9.11 
linter 2.2.0 
linter-gcc 0.7.1 
linter-lua 1.0.4 
linter-ui-default 1.7.1 
minimap 4.29.8 
minimap-cursorline 0.2.0 
minimap-highlight-selected 4.6.1 
minimap-linter 2.1.3 
node-debugger 1.10.1 
node-repl 0.5.0 
platformio-ide 2.1.3 
platformio-ide-debugger 1.2.5 
platformio-ide-terminal 2.8.1 
python-debugger 0.2.0 
python-tools 0.6.9 
remote-sync-pro 5.1.1 
split-diff 1.5.2 
tool-bar 1.1.7 
turbo-javascript 1.4.0 
Ray-works commented 6 years ago

this ticket is very old, but for ppl who still have this issue: add target to .remote-sync.json file

{ ... "target": "/" ... }