Skip to content

Uncaught TypeError: Cannot read property 'line' of undefined #4

Open
@yashnaman

Description

@yashnaman

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.43.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Pro
Thrown From: solidity-comments package 2.1.1

Stack Trace

Uncaught TypeError: Cannot read property 'line' of undefined

At C:\Users\baps\.atom\packages\solidity-comments\node_modules\@nodefactory\solidity-comments-core\dist\lib\contract\contract-comment.js:85

TypeError: Cannot read property 'line' of undefined
    at ContractComment.updateComment (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/lib/contract/contract-comment.js:85:35)
    at ContractComment.insertComment (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/lib/contract/contract-comment.js:38:16)
    at /packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:52:25)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:106:30)
    at /packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:97:14
    at Array.forEach (<anonymous>)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:96:10)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:113:7)
    at /packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:97:14
    at Array.forEach (<anonymous>)
    at visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:96:10)
    at Object.visit (/packages/solidity-comments/node_modules/solidity-parser-antlr/dist/index.js:113:7)
    at generate (/packages/solidity-comments/node_modules/@nodefactory/solidity-comments-core/dist/index.js:43:33)
    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 (~/AppData/Local/atom/app-1.43.0/resources/app/static/<embedded>:11:349290)
    at KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.43.0/resources/app/static/<embedded>:11:1253549)
    at KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.43.0/resources/app/static/<embedded>:11:1249683)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.43.0/resources/app/static/<embedded>:11:284496)

Commands

 11x -7:37.5.0 core:backspace (input.hidden-input)
     -7:21.1.0 editor:newline (input.hidden-input)
     -7:17.5.0 autocomplete-plus:confirm (input.hidden-input)
  2x -7:10.9.0 core:move-down (input.hidden-input)
     -7:09.5.0 autocomplete-plus:confirm (input.hidden-input)
     -7:03.8.0 core:move-left (input.hidden-input)
     -6:46.4.0 editor:newline (input.hidden-input)
     -6:36.4.0 core:move-down (input.hidden-input)
     -6:36.1.0 autocomplete-plus:confirm (input.hidden-input)
  2x -6:33.6.0 editor:newline (input.hidden-input)
     -6:28.9.0 core:save (input.hidden-input)
     -6:23.1.0 atom-solidity-comments:toggle (input.hidden-input)
     -6:02.3.0 core:save (input.hidden-input)
 15x -5:05.7.0 core:backspace (input.hidden-input)
     -4:50.8.0 editor:newline (input.hidden-input)
     -0:57.5.0 atom-solidity-comments:toggle (input.hidden-input)

Non-Core Packages

etheratom 4.6.0 
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