Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Uncaught TypeError: Cannot set property 'localAddress' of undefined #5389

Closed

Description

@tccki
  1. New file
  2. Set file type to PHP
  3. Beautify (without php_beautifier)

Atom Version: 0.177.0
System: Mac OS X 10.10.2
Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot set property 'localAddress' of undefined

At net.js:840

TypeError: Cannot set property 'localAddress' of undefined
  at connect (net.js:840:23)
  at net.js:943:9
  at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:83:16)
  at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:101:10)

Commands

     -0:19.3 editor:newline (atom-text-editor.editor.is-focused)
     -0:18.9 core:paste (atom-text-editor.editor.is-focused)
     -0:18.4 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:16.6 editor:consolidate-selections (atom-text-editor.editor.mini)
     -0:16.6 core:cancel (atom-text-editor.editor.mini)
     -0:15.2 grammar-selector:show (atom-text-editor.editor.is-focused)
     -0:13.2 core:confirm (atom-text-editor.editor.mini)
     -0:12.3 command-palette:toggle (a.inline-block)
     -0:11.3 core:confirm (atom-text-editor.editor.mini)
     -0:11.3 beautify:beautify-editor (a.inline-block)
     -0:09.2 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:08.2 core:confirm (atom-text-editor.editor.mini)
     -0:08.2 beautify:beautify-editor (atom-text-editor.editor.is-focused)
     -0:02.9 core:select-all (atom-text-editor.editor.is-focused)
     -0:02.5 snippets:previous-tab-stop (atom-text-editor.editor.is-focused)
     -0:02.5 editor:outdent-selected-rows (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "metrics",
      "background-tips"
    ],
    "themes": [
      "solarized-dark-ui",
      "solarized-dark-syntax"
    ]
  },
  "editor": {
    "fontFamily": "Menlo",
    "fontSize": 12,
    "showIndentGuide": true,
    "tabLength": 4,
    "invisibles": {}
  }
}

Installed Packages

# User
atom-beautify, v0.21.2
color-picker, v1.4.4
emmet, v2.3.3
file-icons, v1.4.8
hex, v0.5.0
language-blade, v0.7.0
language-html5-subtlegradient, v0.1.0
language-jade, v0.3.0
linter, v0.11.1
linter-js-yaml, v0.1.3
linter-jshint, v0.1.0
linter-lua, v0.1.3
linter-php, v0.0.11
linter-pylint, v0.2.0
linter-ruby, v0.1.4
linter-scss-lint, v0.0.11
linter-tidy, v0.0.1
minimap, v4.0.2
project-manager, v1.15.5
solarized-dark-ui, v0.3.0

# Dev
No dev packages

Screenshot

screenshot 2015-02-04 16 25 34

Activity

  1. winstliu commented on Feb 4, 2015

    @winstliu
    Contributor

    Could you please try to reproduce this in safe mode (atom --safe)?

  2. benogle commented on Feb 4, 2015

    @benogle
    Contributor

    Looks like it happened after a select all, then un indent, post beautify.

         -0:08.2 beautify:beautify-editor (atom-text-editor.editor.is-focused)
         -0:02.9 core:select-all (atom-text-editor.editor.is-focused)
         -0:02.5 snippets:previous-tab-stop (atom-text-editor.editor.is-focused)
         -0:02.5 editor:outdent-selected-rows (atom-text-editor.editor.is-focused)
    

    Beautify (without php_beautifier)

    Can you elaborate on the without php_beautifier bit? Is it looking for some binary and it cant find it?

  3. tccki commented on Feb 4, 2015

    @tccki
    Author

    Unable to reproduce in safe mode, will not load the package providing the Beautify method. Please excuse if I'm missing something as I'm quite new to Atom.

    I don't have php_beautifier installed so Atom would fail to find a binary, see Glavin001/atom-beautify#112.

    Whether this is the cause of the problem or unrelated, the error handler isn't super helpful in either case.

  4. winstliu commented on Feb 4, 2015

    @winstliu
    Contributor

    Safe mode disables all of the non-core packages and themes (basically it disables anything you're installed).

  5. tccki commented on Feb 4, 2015

    @tccki
    Author

    Would that mean this is not an issue with Atom Core, but one of the 3rd party packages relating to Beautify?

  6. tccki commented on Feb 10, 2015

    @tccki
    Author

    Looks like this will be resolved as per nodejs/node#510

  7. lock commented on Jan 23, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  8. locked as resolved and limited conversation to collaborators on Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions