Skip to content

Uncaught TypeError: Cannot read property 'line' of null #6

Open
@VuGiaHung

Description

@VuGiaHung

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.53.0 x64
Electron: 6.1.12
OS: Mac OS X 10.15.7
Thrown From: solidity-comments package 2.1.1

Stack Trace

Uncaught TypeError: Cannot read property 'line' of null

At /Users/hungvg/.atom/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/ASTBuilder.js:1056

TypeError: Cannot read property 'line' of null
    at ASTBuilder._loc (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/ASTBuilder.js:1056:22)
    at ASTBuilder.meta (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/ASTBuilder.js:1070:29)
    at ASTBuilder.createNode (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/ASTBuilder.js:1079:34)
    at ASTBuilder.visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/ASTBuilder.js:1108:15)
    at Object.parse (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:78:21)
    at generate (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:40:43)
    at generateCommentsFromText (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:28:10)
    at Object.run (/packages/solidity-comments/lib/atom-solidity-comments.js:29:25)
    at HTMLElement.atomSolidityCommentsToggle (/packages/solidity-comments/lib/atom-solidity-comments.js:19:51)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350265)
    at CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:348740)
    at AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:727465)
    at EventEmitter.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:735388)
    at EventEmitter.emit (events.js:200:13)
    at Object.onMessage (/Applications/Atom.app/Contents/Resources/electron.asar/renderer/init.js:42:16)

Commands

 24x -1:23 core:backspace (input.hidden-input)
     -1:14.8.0 editor:newline (input.hidden-input)
  2x -1:14.1.0 core:backspace (input.hidden-input)
     -1:13 editor:newline-above (input.hidden-input)
     -1:12.4.0 core:backspace (input.hidden-input)
     -1:11.9.0 core:move-down (input.hidden-input)
  2x -1:11.4.0 core:move-right (input.hidden-input)
 10x -1:10.9.0 core:backspace (input.hidden-input)
     -0:03.5.0 atom-solidity-comments:toggle (input.hidden-input)

Non-Core Packages

autocomplete-solidity 0.3.4 
language-ethereum 0.3.9 
language-solidity 0.1.1 
solidity-comments 2.1.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions