Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build #57

Open
professionalhobbyist opened this issue Nov 26, 2024 · 0 comments
Open

Unable to build #57

professionalhobbyist opened this issue Nov 26, 2024 · 0 comments

Comments

@professionalhobbyist
Copy link

I have installed both libmpv-dev and mpv, but I cannot compile this project without error.

I am using Mint XFCE 22 and have go version go1.18 gccgo (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 linux/amd64 installed. The error when building is as follows:

$ go build
# github.com/rivo/uniseg
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:137:20: error: expected ‘(’
  137 | func propertySearch[E interface{ [3]int | [4]int }](dictionary []E, r rune) (result E) {
      |                    ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:137:23: error: expected ‘]’
  137 | func propertySearch[E interface{ [3]int | [4]int }](dictionary []E, r rune) (result E) {
      |                       ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:137:23: error: expected ‘;’ or newline after top level declaration
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:140:9: error: expected declaration
  140 |         to := len(dictionary)
      |         ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:141:9: error: expected declaration
  141 |         for to > from {
      |         ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:143:17: error: expected declaration
  143 |                 cpRange := dictionary[middle]
      |                 ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:144:17: error: expected declaration
  144 |                 if int(r) < cpRange[0] {
      |                 ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:146:25: error: expected declaration
  146 |                         continue
      |                         ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:147:17: error: expected declaration
  147 |                 }
      |                 ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:148:17: error: expected declaration
  148 |                 if int(r) > cpRange[1] {
      |                 ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:150:25: error: expected declaration
  150 |                         continue
      |                         ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:151:17: error: expected declaration
  151 |                 }
      |                 ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:152:17: error: expected declaration
  152 |                 return cpRange
      |                 ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:153:9: error: expected declaration
  153 |         }
      |         ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:154:9: error: expected declaration
  154 |         return
      |         ^
../../go/pkg/mod/github.com/rivo/uniseg@v0.4.7/properties.go:155:1: error: expected declaration
  155 | }
      | ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant