skywind3000 / skywind3000/z.lua
z.lua is suddenly broken for me
Open
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
I have been getting this error whenever I cd:
cd
/home/eva/.asdf/installs/lua/5.3.5/bin/lua: ...SH--SLASH-github.com-SLASH-skywind3000-SLASH-z.lua/z.lua:1054: att
empt to perform arithmetic on a nil value
stack traceback:
...SH--SLASH-github.com-SLASH-skywind3000-SLASH-z.lua/z.lua:1054: in function 'data_load'
...SH--SLASH-github.com-SLASH-skywind3000-SLASH-z.lua/z.lua:1325: in function 'z_add'
...SH--SLASH-github.com-SLASH-skywind3000-SLASH-z.lua/z.lua:1913: in function 'main'
...SH--SLASH-github.com-SLASH-skywind3000-SLASH-z.lua/z.lua:2697: in main chunk
[C]: in ?
This started suddenly. Any ideas? I deleted z.lua and reinstalled it, to no avail.
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
Start by reproducing the failure with cd, then inspect z.lua at line 1054 in data_load and follow the callers at lines 1325, 1913, and 2697. Trace which loaded value is nil and verify that the failing cd flow completes without the arithmetic error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100