Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'hostName' of null #1029

Closed
alek10c opened this issue Oct 23, 2017 · 3 comments
Closed

Uncaught TypeError: Cannot read property 'hostName' of null #1029

alek10c opened this issue Oct 23, 2017 · 3 comments
Labels

Comments

@alek10c
Copy link

alek10c commented Oct 23, 2017

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.21.1 x64
Electron: 1.6.15
OS: Unknown Windows version
Thrown From: Remote-FTP package 1.2.6

Stack Trace

Uncaught TypeError: Cannot read property 'hostName' of null

At C:\Users\alek1\.atom\packages\Remote-FTP\lib\client.js:150

TypeError: Cannot read property 'hostName' of null
    at Client.setProjectName (/packages/Remote-FTP/lib/client.js:150:27)
    at /packages/Remote-FTP/lib/client.js:138:16
    at ~/AppData/Local/atom/app-1.21.1/resources/app/src/config.js:693:26
    at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at Config.module.exports.Config.emitChangeEvent (~/AppData/Local/atom/app-1.21.1/resources/app/src/config.js:884:35)
    at Config.module.exports.Config.setRawValue (~/AppData/Local/atom/app-1.21.1/resources/app/src/config.js:670:25)
    at Config.module.exports.Config.set (~/AppData/Local/atom/app-1.21.1/resources/app/src/config.js:248:20)
    at SettingsPanel.set (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/settings-view/lib/settings-panel.js:237:27)
    at HTMLSelectElement.changeHandler (~/AppData/Local/atom/app-1.21.1/resources/app/node_modules/settings-view/lib/settings-panel.js:251:24)

Commands

  2x -5:19.2.0 application:open-folder (input.hidden-input)
     -3:22.8.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -2:40.3.0 core:confirm (input.hidden-input)

Non-Core Packages

language-blade 0.36.0 
language-vue 0.23.1 
laravel 0.7.1 
laravel-snippets 2.1.0 
Remote-FTP 1.2.6 
@icetee
Copy link
Owner

icetee commented Oct 24, 2017

How can I reproduce it?

@TomS-
Copy link

TomS- commented Oct 25, 2017

@icetee create a new project, do not create a ftpconfig file. Go to settings and set the page tree name to hostName. Since the ftpconfig file doesn't exist it can't check if hostName exists.

On another note, hostName isn't automatically added. This is quite good to add a human readable label to FTP connections. It should be automatically in the .ftpconfig file. At the moment you have to manually type it into the json.

@icetee
Copy link
Owner

icetee commented Nov 12, 2017

The next release will included repair.

@icetee icetee closed this as completed Nov 12, 2017
icetee added a commit that referenced this issue Nov 17, 2017
# Conflicts:
#	lib/client.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants