maaslalani / slides

Terminal based presentation tool

Home Page:http://maaslalani.com/slides/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snap install of slides does not allow code execution

mattkatz opened this issue · comments

Describe the bug
a snapd install of slides doesn't know the path of python/go and other programs. It can't execute them for code samples

To Reproduce

sudo snap install slides

echo "# code excution doesn't work in snap slides install\n\npress ctrl+e on this slide\n\`\`\`python\nprint('I am wrong')\n\`\`\`\n" > snap_issue.md;slides snap_issue.md

Expected behavior

The reproducer SHOULD output "I am wrong" when the user presses ctrl+e, but sadly I am right.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04

Hey! Sorry about that, are you able to install slides with the following command and that does work (with regards to code execution)?:

go install github.com/maaslalani/slides@latest

I have also found the issue with the snap install on Ubuntu 20.04.6 with slides version 0.9. Perhaps this should be better documented whilst no fix is available? It took me about half an hour before I found this issue. I still don't have it work because the go install has so far not worked.

I tried via git clone and also using the URL. Either way I get:

rob@juicer:~/Downloads/slides$ go install
go: downloading github.com/charmbracelet/bubbletea v0.23.2
go: downloading github.com/charmbracelet/bubbles v0.15.0
go: downloading github.com/charmbracelet/glamour v0.6.0
go: downloading github.com/charmbracelet/ssh v0.0.0-20221117183211-483d43d97103
go: downloading github.com/charmbracelet/wish v1.1.0
go: downloading github.com/muesli/termenv v0.15.1
go: downloading github.com/charmbracelet/lipgloss v0.7.1
go: downloading github.com/aymanbagabas/go-osc52/v2 v2.0.1
go: downloading github.com/mattn/go-isatty v0.0.17
go: downloading github.com/mattn/go-runewidth v0.0.14
go: downloading golang.org/x/sys v0.6.0
go: downloading github.com/yuin/goldmark v1.5.4
go: downloading github.com/mattn/go-localereader v0.0.1
go: downloading github.com/muesli/ansi v0.0.0-20230307104941-78d3738a59f2
go: downloading github.com/muesli/cancelreader v0.2.2
go: downloading golang.org/x/sync v0.1.0
go: downloading golang.org/x/term v0.6.0
go: downloading github.com/microcosm-cc/bluemonday v1.0.23
go: downloading github.com/rivo/uniseg v0.4.4
go: downloading github.com/charmbracelet/log v0.1.2
go: downloading golang.org/x/crypto v0.7.0
go: downloading github.com/dlclark/regexp2 v1.8.1
go: downloading golang.org/x/net v0.8.0
go: downloading github.com/go-logfmt/logfmt v0.6.0
rob@juicer:~/Downloads/slides$ slides

Command 'slides' not found, but can be installed with:

sudo snap install slides

The compiled binary from the releases page works.

go build is required after go install

That will compile the slides binary.