remote-edit icon indicating copy to clipboard operation
remote-edit copied to clipboard

Path must be a string. Received undefined

Open ijash opened this issue 8 years ago • 14 comments

current fix:

check post by @eth0izzle

[Enter steps to reproduce:]

  1. install remote-edit and restart atom

Atom: 1.25.0 x64 Electron: 1.7.11 OS: Linux Mint 18.03 Thrown From: remote-edit package 1.9.0

Stack Trace

Failed to load the remote-edit package

At Path must be a string. Received undefined

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:1146:7)
    at /packages/remote-edit/lib/model/remote-edit-editor.coffee:7:36)
    at /packages/remote-edit/lib/model/remote-edit-editor.coffee:1:1)
    at /packages/remote-edit/lib/model/remote-edit-editor.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/usr/share/atom/resources/app/src/native-compile-cache.js:66:33)
    at /packages/remote-edit/lib/main.coffee:3:20)
    at /packages/remote-edit/lib/main.coffee:1:1)
    at /packages/remote-edit/lib/main.coffee:1:1)
    at Module.get_Module._compile (/usr/share/atom/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (/usr/share/atom/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (/usr/share/atom/resources/app/static/<embedded>:96:26)
    at Package.requireMainModule (/usr/share/atom/resources/app/src/package.js:782:33)
    at measure (/usr/share/atom/resources/app/src/package.js:143:22)
    at Package.measure (/usr/share/atom/resources/app/src/package.js:88:25)
    at Package.load (/usr/share/atom/resources/app/src/package.js:129:16)
    at PackageManager.loadAvailablePackage (/usr/share/atom/resources/app/src/package-manager.js:618:16)
    at PackageManager.loadPackage (/usr/share/atom/resources/app/src/package-manager.js:551:25)
    at PackageManager.activatePackage (/usr/share/atom/resources/app/src/package-manager.js:689:23)

Commands

Non-Core Packages

remote-edit 1.9.0 

ijash avatar Apr 02 '18 10:04 ijash

I can confirm that the issue is present on Windows as well:

[Enter steps to reproduce:]

  1. install remote-edit and restart atom

Atom: 1.25.1 x64 Electron: 1.7.11 OS: Microsoft Windows 10 Home Thrown From: remote-edit package 1.9.0

Stack Trace

Failed to load the remote-edit package

At Path must be a string. Received undefined

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:186:7)
    at /packages/remote-edit/lib/model/remote-edit-editor.coffee:7:36)
    at /packages/remote-edit/lib/model/remote-edit-editor.coffee:1:1)
    at /packages/remote-edit/lib/model/remote-edit-editor.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.25.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.25.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (~/AppData/Local/atom/app-1.25.1/resources/app/src/native-compile-cache.js:66:33)
    at /packages/remote-edit/lib/main.coffee:3:20)
    at /packages/remote-edit/lib/main.coffee:1:1)
    at /packages/remote-edit/lib/main.coffee:1:1)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.25.1/resources/app/src/native-compile-cache.js:106:36)
    at Object.value [as .coffee] (~/AppData/Local/atom/app-1.25.1/resources/app/src/compile-cache.js:240:29)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (~/AppData/Local/atom/app-1.25.1/resources/app/static/<embedded>:96:26)
    at Package.requireMainModule (~/AppData/Local/atom/app-1.25.1/resources/app/src/package.js:782:33)
    at measure (~/AppData/Local/atom/app-1.25.1/resources/app/src/package.js:143:22)
    at Package.measure (~/AppData/Local/atom/app-1.25.1/resources/app/src/package.js:88:25)
    at Package.load (~/AppData/Local/atom/app-1.25.1/resources/app/src/package.js:129:16)
    at PackageManager.loadAvailablePackage (~/AppData/Local/atom/app-1.25.1/resources/app/src/package-manager.js:618:16)
    at config.transact (~/AppData/Local/atom/app-1.25.1/resources/app/src/package-manager.js:531:20)
    at Config.transact (~/AppData/Local/atom/app-1.25.1/resources/app/src/config.js:815:20)

Commands

Non-Core Packages

remote-edit 1.9.0 

miroslavrussev avatar Apr 11 '18 14:04 miroslavrussev

[Enter steps to reproduce:]

install remote-edit and restart atom Atom: 1.25.1 x64
Electron: 1.7.11 OS: Microsoft Windows 10 Professional Thrown From: remote-edit package 1.9.0

Confirmed as exactly the same as above.

FhlostonParadise avatar Apr 12 '18 05:04 FhlostonParadise

confirming error on Elementary OS 0.4 (Ubuntu 16.04) Atom 1.26.1 x64

yelled1 avatar Apr 28 '18 08:04 yelled1

Same problem on OSX 10.13.5 Beta with Atom 1.26.1

fspiga avatar Apr 29 '18 09:04 fspiga

Same for me! PLEASE SUGGEST A WORKAROUND!

[Enter steps to reproduce:]

install remote-edit and restart atom Atom: 1.26.1 x64 Electron: 1.7.11 OS: macOs High Sierra version 10.13.2 (OSX) Thrown From: remote-edit package 1.9.0

Confirmed the same as above.

rjimeno avatar May 14 '18 14:05 rjimeno

Confirmed

TypeError: Path must be a string. Received undefined at assertPath (path.js:7:11) at Object.resolve (path.js:1146:7) at Object.<anonymous> (/Users/m.sahnouski/.atom/packages/remote-edit/lib/model/remote-edit-editor.coffee:7:36) at Object.<anonymous> (/Users/m.sahnouski/.atom/packages/remote-edit/lib/model/remote-edit-editor.coffee:1:1) at Object.<anonymous> (/Users/m.sahnouski/.atom/packages/remote-edit/lib/model/remote-edit-editor.coffee:1:1) at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36) at Object.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:240:29) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:47:45) at require (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33) at Object.<anonymous> (/Users/m.sahnouski/.atom/packages/remote-edit/lib/main.coffee:3:20) at Object.<anonymous> (/Users/m.sahnouski/.atom/packages/remote-edit/lib/main.coffee:1:1) at Object.<anonymous> (/Users/m.sahnouski/.atom/packages/remote-edit/lib/main.coffee:1:1) at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/src/native-compile-cache.js:106:36) at Object.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:240:29) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:47:45) at require (internal/module.js:20:19) at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:96:26) at Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:782:33) at measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:143:22) at Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:88:25) at Package.load (/Applications/Atom.app/Contents/Resources/app/src/package.js:129:16) at PackageManager.loadAvailablePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:618:16) at config.transact (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:531:20) at Config.transact (/Applications/Atom.app/Contents/Resources/app/src/config.js:819:20)

MacOS High Sierra Atom 1.27.0 remote-edit 1.9.0

coxa avatar May 16 '18 08:05 coxa

Fix (at least for me on Windows 10):

  1. Open ~\.atom\packages\remote-edit\lib\model\remote-edit-editor.coffee
  2. Change line resourcePath = atom.config.resourcePath to resourcePath = atom.getLoadSettings().resourcePath

eth0izzle avatar May 24 '18 11:05 eth0izzle

Followed the solution of @eth0izzle.

Worked for me on windows7.

Thanx

edautz avatar May 25 '18 12:05 edautz

Followed solution of @eth0izzle but I encountered another issue I cannot see any connection when browsing and even I save a connection it doesn't show up when browsing.

I'm on a Windows 10, Atom 1.27.1, and remote-edit 1.9.0

neilcarlocatalan avatar May 31 '18 12:05 neilcarlocatalan

I Confirm this is the current fix I have followed the instruction by @eth0izzle and the error message disappear on Linux Mint 18.03..

how did you find the fix? at least tell us how it works (or you did) if you please.

ijash avatar May 31 '18 14:05 ijash

Confirmed on Ubuntu 18.04, Atom 1.27.2 x64, fix seems to work

cromefire avatar Jun 01 '18 10:06 cromefire

Followed solution of @eth0izzle and it works for me on windows10, atom 1.27.2

ETRick avatar Jun 20 '18 06:06 ETRick

Have the same issue on Windows 10 with Atom 1.28.0 x64 and remote-edit 1.9.0 Solved by the solution given by @eth0izzle. Thank for the fix

Pandaoc-io avatar Jun 27 '18 20:06 Pandaoc-io

Followed solution by @eth0izzle, package now loads up, however not able to add any hosts, or see any hosts when browsing. No errors are present.

Pyragon avatar Jul 08 '18 09:07 Pyragon