max-mapper / max-mapper/adventure-time
file tree fails to populate intermittently
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 97
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Approximately 3/4 times I load http://rik.smith-unna.com/command_line_bootcamp, the file tree fails to populate (see blahah/command_line_bootcamp#10).
expose-fs is working fine - when the error happens I can retrieve the JSON response manually.
My best guess is that the tree is trying to populate itself before the data source is ready - currently it waits for $(window).ready(). Is there a simple way to load it only after the container is ready? Like maybe connect a socket and only populate the tree after receiving a stdout response, as with the terminal?
Apologies if I've missed something obvious.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the intermittent failure at the command_line_bootcamp page, then inspect the file-tree loading path and the expose-fs response timing. Read the terminal setup in terminal.js, especially the linked stdout-waiting example, and compare it with the current window-ready flow. Done means the file tree reliably populates when the data source is ready.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100