Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Uncaught TypeError: Cannot read property 'length' of undefined

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start at lib/search.etch.js:117 in Search.renderSearchField, then read the surrounding render flow and the recorded toggle, backspace, confirm, and move-down commands. Reproduce the sequence in Atom 1.46.0 on Windows if possible, and consider the issue done when the same interaction no longer raises the TypeError.

Written by the indexing model from the issue text.

Description

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.46.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Pro
Thrown From: github-source-code package 0.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At C:\Users\iZhenius\.atom\packages\github-source-code\lib\search.etch.js:117

TypeError: Cannot read property 'length' of undefined
    at Search.renderSearchField (/packages/github-source-code/lib/search.etch.js:117:24)
    at Search.render (/packages/github-source-code/lib/search.etch.js:123:31)
    at updateSync (/packages/github-source-code/node_modules/etch/lib/component-helpers.js:107:34)
    at /packages/github-source-code/node_modules/etch/lib/component-helpers.js:72:7
    at DefaultScheduler.performUpdates (/packages/github-source-code/node_modules/etch/lib/default-scheduler.js:48:34)
Commands
     -1:08.6.0 github-source-code:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:54.5.0 core:backspace (input.hidden-input)
     -0:51.4.0 core:confirm (input.hidden-input)
     -0:48.3.0 core:move-down (input.hidden-input)
  2x -0:47.9.0 core:confirm (input.hidden-input)
  2x -0:47.3.0 core:move-down (input.hidden-input)
  3x -0:46.8.0 core:confirm (input.hidden-input)
  2x -0:42.6.0 github-source-code:toggle (input.hidden-input)
  3x -0:37.4.0 core:backspace (input.hidden-input)
  6x -0:33.4.0 core:confirm (input.hidden-input)
     -0:15.6.0 github-source-code:toggle (div.panels-item)
Non-Core Packages
atom-formatter-jsbeautify 1.1.2 
formatter 2.12.4 
github-source-code 0.2.0 
language-gitignore 0.3.0 
language-gradle 0.1.0 
language-groovy 0.7.0 
language-kotlin 0.5.0 
octophus 0.1.1 
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ericadamski/atom-github-source-code

All issues in ericadamski/atom-github-source-code

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.