danielgtaylor / danielgtaylor/nesh

nesh crashes when tab completing at certain place

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
284
Forks
23
PR merge metrics
No merged PRs in 30d

Description

It's always reproducible on my machine. I tried to reproduce it with other code but failed. Currently the exact reproducible code is:

```javascript
function construct(f) {
let newObject = Object.create(f.prototype);
newO
```

The nesh will crash when you press tab key right after the "newO". Here's the screenshot:

![image](https://cloud.githubusercontent.com/assets/3524125/20843895/4f21bda0-b88b-11e6-8d88-69dc8c14151e.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Run nesh with the JavaScript snippet from the issue and press Tab immediately after "newO" to confirm the crash. Then trace the tab-completion entry point and reproduce the case in a regression test; done means completion no longer crashes at that position.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript, javascript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.