yorukot / superfile

Pretty fancy and modern terminal file manager
https://superfile.netlify.app
MIT License
5.76k stars 127 forks source link

Error: Theme file doesn't exist #58

Closed ca5ua1 closed 6 months ago

ca5ua1 commented 6 months ago

Describe the bug I tried to build app manually but got error 2024/04/13 16:35:31 Theme file doesn't exist: open /home/casual/.config/superfile/theme/gruvbox.toml: no such file or directory.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/MHNightCat/superfile
  2. sh build.sh
  3. sh ./bin/spf
  4. See error 2024/04/13 16:35:31 Theme file doesn't exist: open /home/casual/.config/superfile/theme/gruvbox.toml: no such file or directory

Expected behavior run app

Screenshots

superfile ➤ ./build.sh
go: downloading github.com/rkoesters/xdg v0.0.1
go: downloading github.com/urfave/cli/v2 v2.27.1
go: downloading github.com/charmbracelet/bubbletea v0.25.0
go: downloading github.com/muesli/termenv v0.15.2
go: downloading github.com/barasher/go-exiftool v1.10.0
go: downloading github.com/charmbracelet/bubbles v0.18.0
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/charmbracelet/lipgloss v0.9.1
go: downloading github.com/lithammer/shortuuid v2.0.3+incompatible
go: downloading github.com/pelletier/go-toml/v2 v2.2.1
go: downloading github.com/shirou/gopsutil v3.21.11+incompatible
go: downloading github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81
go: downloading github.com/mattn/go-isatty v0.0.18
go: downloading github.com/mattn/go-localereader v0.0.1
go: downloading github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading golang.org/x/term v0.6.0
go: downloading github.com/mattn/go-runewidth v0.0.15
go: downloading golang.org/x/sys v0.15.0
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/rivo/uniseg v0.4.6
go: downloading github.com/charmbracelet/harmonica v0.2.0
go: downloading github.com/russross/blackfriday/v2 v2.1.0
superfile ➤ cd bin           
bin ➤ ls                   
Permissions Size User   Date Modified Git Name
.rwxr-xr-x@  13M casual 13 апр 16:35   -I  spf
bin ➤ ./spf                
2024/04/13 16:35:31 Theme file doesn't exist: open /home/casual/.config/superfile/theme/gruvbox.toml: no such file or directory

System information (please complete the following information):

yorukot commented 6 months ago

Oh sorry i forgot to upload new version zip file. I think it work now.

The current version(main branch) of the theme only has gruvbox, but I think other themes will be updated in a few days.

Thanks for your report!

AnshumanNeon commented 6 months ago

I will translate other theme. Leave that to me. I think this is the reason why it is happening

AnshumanNeon commented 6 months ago

@ca5ua1 after #60 is merged, there will be no such errors. if such erros persist. You may need to copy the theme files to your ~/.config/superfile/theme dir if there are no errors coming after following these steps, you may close this issue.

yorukot commented 6 months ago

I think this issue have been fixed.

ca5ua1 commented 6 months ago

It's fixed BUT, you need to rm ~/.config/superfile/ otherwise same error

yorukot commented 6 months ago

@ca5ua1 Thanks for your reply.

I will work on improving version updates.

AnshumanNeon commented 6 months ago

@ca5ua1 this is due to the fact that the config conventions are being changed constantly right now. As mhnight said, he is working on it. But good to know that it solves this. You are free to open more issues if you encounter any