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

cilcking on error message of "go run/build" does not open the file #3

Closed
bokunodev opened this issue Dec 7, 2020 · 5 comments
Closed

Comments

@bokunodev
Copy link

bokunodev commented Dec 7, 2020

go run/build errors are highlighted. but clicking on it doesn't open the file.
first I thought it was because the pattern didn't match the error message.
so I changed it to (.-):(%d+):(%d+):([^\n]+)
and i got this error mesage
lua: /usr/local/share/textadept/modules/textadept/run.lua:100: attempt to index a nil value (field 'filename')

i made my own go extension to automatically format and import every i save the file.
i use the same pattern to match goimports errors and its works.

@orbitalquark
Copy link
Owner

orbitalquark commented Dec 7, 2020 via email

@bokunodev
Copy link
Author

bokunodev commented Dec 7, 2020

latest go 1.15.6
its just a normal systax error.

main.go

package main

import "goserve/src/share/server"

func main()
	_ = server.New()
}

error message

> cd /home/user/go/path/goserve/src
> go run /home/user/go/path/goserve/src/main.go
# command-line-arguments
./main.go:5:6: missing function body
./main.go:6:2: syntax error: non-declaration statement outside function body
> exit status: 512

@orbitalquark
Copy link
Owner

orbitalquark commented Dec 7, 2020 via email

@bokunodev
Copy link
Author

oh, thanks. it wokrs.

@orbitalquark
Copy link
Owner

orbitalquark commented Dec 12, 2020 via email

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

2 participants