flutter_ecommerce_app icon indicating copy to clipboard operation
flutter_ecommerce_app copied to clipboard

z.lua is suddenly broken for me

Open NightMachinery opened this issue 4 years ago • 4 comments

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.

NightMachinery avatar Apr 08 '20 21:04 NightMachinery

try to remove ~/.zlua data file

skywind3000 avatar Apr 09 '20 03:04 skywind3000

@skywind3000 It worked. Thanks!

NightMachinery avatar Apr 09 '20 08:04 NightMachinery

@skywind3000 This issue popped again, and I just deleted this last line from .zlua and things got fixed: /home/eva/tmp-kindle/fic | Code Geass: The Prepared Rebellion V2 Chapter 49: Hierarchy of Black Knights, a code geass fanfic | FanFiction 6f03802c-2124-4994-bddb-5869811eddd1|1|1588260610 Perhaps the problem is with the pipe character? If so, consider switching to a more esoteric one, like https://stackoverflow.com/questions/8695118/whats-the-file-group-record-unit-separator-control-characters-and-its-usage .

NightMachinery avatar May 01 '20 14:05 NightMachinery

I still hope this can be fixed, but I have switched to zoxide now.

NightMachinery avatar May 22 '20 10:05 NightMachinery