You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not very proficient with Go, so feel free to close this if it sounds like a problem that only applies to my setup.
I tried to install scc using the instructions in the README. I'm using WSL1 with Ubuntu 18.04 on Windows 10.
go get -u github.com/boyter/scc/
# github.com/boyter/scc/processor
go/src/github.com/boyter/scc/processor/formatters.go:929:32: syntax error: unexpected _048_576 at end of statement
go/src/github.com/boyter/scc/processor/formatters.go:931:32: syntax error: unexpected _024_000 at end of statement
go/src/github.com/boyter/scc/processor/formatters.go:936:33: syntax error: unexpected _000_000 at end of statement
go/src/github.com/boyter/scc/processor/formatters.go:960:32: syntax error: unexpected _000_000 at end of statement
If I go into formatters.go and delete the underscores on the offending lines, the go get succeeds and I can use tool in ~/go/bin
Here's some info about my setup: go version (installed with sudo apt install golang-go)
This is totally my fault. The minimum Go version needed now is actually 1.13, but the documentation said 1.10. Have fixed it in 7d515ba
Its due to number literals with underscores being added in 1.13, and I tend to use anything new if I can to ensure the compiled version has a good level of baseline performance you get on the new compiler.
Sorry about that. You will just need to get a version of Go >= 1.13 (I would suggest going with the latest though for the performance gains) and it should work.
* Update README.md
* SLOCCount came before cloc
* resolveboyter#206
* First cut at boyter#210
* Add "gohtml" and "gotxt" to the list of extensions for Go templates
These are the default extensions that e.g. GoLand uses, and some other
tools as well I believe. It's useful as it disambiguates between
templates for html/template and text/template.
* partial fix for boyter#214
* resolve after feedback
* Mostly ready for boyter#211
* real fix for issue214
* few tests and typo
* Resolvehttps://github.com/boyter/issues/208
* Update to remove wrong Go version mentioned boyter#220
Co-authored-by: Ben Boyter <[email protected]>
Co-authored-by: AlDanial <[email protected]>
Co-authored-by: Ben Boyter <[email protected]>
Co-authored-by: Martin Tournoij <[email protected]>
Hi, I'm not very proficient with Go, so feel free to close this if it sounds like a problem that only applies to my setup.
I tried to install
scc
using the instructions in the README. I'm using WSL1 with Ubuntu 18.04 on Windows 10.go get -u github.com/boyter/scc/
If I go into formatters.go and delete the underscores on the offending lines, the
go get
succeeds and I can use tool in~/go/bin
Here's some info about my setup:
go version
(installed withsudo apt install golang-go
)cat /etc/os-release
The text was updated successfully, but these errors were encountered: