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 'file' of undefined #573

Closed
laulucky opened this issue Apr 13, 2020 · 2 comments · Fixed by #590
Closed

Uncaught TypeError: Cannot read property 'file' of undefined #573

laulucky opened this issue Apr 13, 2020 · 2 comments · Fixed by #590

Comments

@laulucky
Copy link

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.45.0 x64
Electron: 4.2.7
OS: Mac OS X 10.13.6
Thrown From: linter-ui-default package 1.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'file' of undefined

At /Users/lau/.atom/packages/linter-ui-default/lib/helpers.js:29

TypeError: Cannot read property 'file' of undefined
    at /packages/linter-ui-default/lib/helpers.js:29:27)
    at /packages/linter-ui-default/lib/editors.js:45:24
    at Array.forEach (<anonymous>)
    at Editors.update (/packages/linter-ui-default/lib/editors.js:44:11)
    at LinterUI.render (/packages/linter-ui-default/lib/main.js:87:17)
    at /packages/linter/lib/ui-registry.js:29:16
    at Set.forEach (<anonymous>)
    at UIRegistry.render (/packages/linter/lib/ui-registry.js:28:20)
    at /packages/linter/lib/main.js:131:23
    at Function.simpleDispatch (/private/var/folders/2k/h5h4r49s6zn5hfr04sj8kxfc0000gn/T/AppTranslocation/D63F8A22-710A-4355-85F7-EEA893450CD7/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1214120)
    at Emitter.emit (/private/var/folders/2k/h5h4r49s6zn5hfr04sj8kxfc0000gn/T/AppTranslocation/D63F8A22-710A-4355-85F7-EEA893450CD7/d/Atom.app/Contents/Resources/app/static/<embedded>:11:1215561)
    at MessageRegistry.update (/packages/linter/lib/message-registry.js:130:20)
    at later (/packages/linter/node_modules/sb-debounce/index.js:9:14)

Commands

  4x -0:18.6.0 core:save (input.hidden-input)

Non-Core Packages

autocomplete-solidity 0.3.4 
busy-signal 2.0.1 
intentions 1.1.5 
language-ethereum 0.3.9 
language-solidity 0.1.1 
linter 2.0.0 
linter-solidity 0.5.0 
linter-ui-default 1.8.1 
@aminya
Copy link
Collaborator

aminya commented Aug 1, 2020

I am hitting this in steelbrain/linter#1706. My guess is that it is because Linter-UI tries to get files for an empty array. I need to debug it more closely.

@aminya aminya closed this as completed Sep 29, 2020
@aminya aminya reopened this Sep 29, 2020
@aminya
Copy link
Collaborator

aminya commented Sep 29, 2020

@laulucky does this happen in the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants