randy3k / remote-atom

rmate for atom
https://atom.io/packages/remote-atom
MIT License
85 stars 16 forks source link

Uncaught TypeError: Cannot read property 'set' of null #29

Open rbu opened 8 years ago

rbu commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0 System: "Fedora release Thrown From: remote-atom package, v1.3.9

Stack Trace

Uncaught TypeError: Cannot read property 'set' of null

At /home/rbu/.atom/packages/remote-atom/lib/remote-atom.coffee:134

TypeError: Cannot read property 'set' of null
    at Session.parse_setting (/home/rbu/.atom/packages/remote-atom/lib/remote-atom.coffee:134:18)
    at Session.parse_line (/home/rbu/.atom/packages/remote-atom/lib/remote-atom.coffee:129:14)
    at Session.parse_chunk (/home/rbu/.atom/packages/remote-atom/lib/remote-atom.coffee:115:18)
    at Socket.<anonymous> (/home/rbu/.atom/packages/remote-atom/lib/remote-atom.coffee:99:14)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at TCP.onread (net.js:523:20)

Commands

  4x -0:21.6.0 core:select-page-down (atom-text-editor.editor.is-focused)
  2x -0:19.5.0 core:select-page-up (atom-text-editor.editor.is-focused)
 19x -0:18.8.0 core:select-down (atom-text-editor.editor.is-focused)
     -0:16.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:15.8.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:15.6.0 core:copy (atom-text-editor.editor.is-focused)
     -0:13.9.0 core:move-down (atom-text-editor.editor.is-focused)
  4x -0:13.5.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:12.3.0 core:select-page-up (atom-text-editor.editor.is-focused)
 11x -0:11.6.0 core:select-down (atom-text-editor.editor.is-focused)
 13x -0:10.7.0 core:select-up (atom-text-editor.editor.is-focused)
     -0:09.7.0 core:select-page-up (atom-text-editor.editor.is-focused)
 27x -0:09.1.0 core:select-down (atom-text-editor.editor.is-focused)
     -0:07.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:05.8.0 core:select-all (atom-text-editor.editor.is-focused)
     -0:05.5.0 core:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "metrics",
      "language-objective-c",
      "autocomplete",
      "autocomplete-plus-jedi",
      "linter",
      "linter-pylint",
      "linter-python-pep8",
      "linter-tidy"
    ],
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  },
  "remote-atom": {
    "launch_at_startup": true,
    "port": 52699
  }
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.5.1
atom-zeal, v0.1.3
auto-detect-indentation, v1.1.0
indentation-indicator, v1.0.0
remote-atom, v1.3.9

# Dev
No dev packages
randy3k commented 8 years ago

which client of rmate are you using?

rbu commented 8 years ago

Ruby rmate:

rmate --version

rmate version 1.5.5 (2013-03-17)

randy3k commented 8 years ago

remote-atom should support ruby rmate, let me try to investigate what was going on. Does the issue persist?

randy3k commented 8 years ago

I cannot reproduce it. Are you able to reproduce the error?

rbu commented 8 years ago

I can. I get this error when I call rmate with a non-existing path (that I should have the permission to create). Sometimes I get the backtrace mentioned in #23 and sometimes this one. Sorry for not being more specific about this in the first place.

randy3k commented 8 years ago

I have no problem with ruby rmate 1.5.8. Perhaps you should update your version of rmate?

rbu commented 8 years ago

I've updated rmate to 1.5.8.. Here's a screen recording of what happens. As I mentioned, often times I get the backtrace of #23 and sometimes the backtrace mentioned here. The file does not exist and Atom is open with another (unrelated) directory.

screenrecord

randy3k commented 8 years ago

May be a Linux specific bug?

randy3k commented 8 years ago

Could you try the bash rmate? https://github.com/aurora/rmate

randy3k commented 8 years ago

If it doesn't work. Report the following.

nc -k -l 52698

The left window is my local machine and right window is a remote machine. (Make sure Atom is closed)

untitled

CharlesSS07 commented 4 years ago

[Enter steps to reproduce:]

  1. rmate anyimage.png

Atom: 1.45.0 x64 Electron: 4.2.7 OS: Mac OS X 10.14.6 Thrown From: remote-atom package 1.3.12

Stack Trace

Uncaught TypeError: Cannot read property 'set' of null

At /Users/cstrauss/.atom/packages/remote-atom/lib/remote-atom.coffee:137

TypeError: Cannot read property 'set' of null
    at Session.parse_setting (/packages/remote-atom/lib/remote-atom.coffee:137:19)
    at Session.parse_line (/packages/remote-atom/lib/remote-atom.coffee:132:14)
    at Session.parse_chunk (/packages/remote-atom/lib/remote-atom.coffee:118:18)
    at /packages/remote-atom/lib/remote-atom.coffee:102:14)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

Commands

     -9:37.2.0 editor:newline (input.hidden-input)
  3x -9:31.2.0 core:move-down (input.hidden-input)
     -9:30.5.0 autocomplete-plus:confirm (input.hidden-input)
     -9:29.7.0 core:move-right (input.hidden-input)
     -9:28.9.0 core:save (input.hidden-input)
     -7:04.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)

Non-Core Packages

remote-atom 1.3.12 

I don't know if rmate is not supposed to open images but it seems like it should. Would be awesome if it could.

Below is an image from atom.

Screen Shot 2020-05-10 at 5 54 33 PM

Also, I tried nc -k -l 52698 and then reproducing the error with -w and -v. However, there was absolutely no output.