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

Build error: Unknown Escape Sequence #56

Open
ffleader1 opened this issue Jul 22, 2019 · 2 comments
Open

Build error: Unknown Escape Sequence #56

ffleader1 opened this issue Jul 22, 2019 · 2 comments

Comments

@ffleader1
Copy link

ffleader1 commented Jul 22, 2019

On Windows, when I try to run this command in cmd revel run "%GOPATH%/github.com/revel/examples/chat", I got:

Revel executing: run a Revel application
WARN  10:07:40    run.go:150: No http.addr specified in the app.conf listening on localhost interface only. This will not allow external access to your application
C:\Users\Administrator\go\src\github.com\revel\examples\chat\app\tmp\main.go
ERROR 10:07:40 watcher.go:270: Build detected an error                   error="Go Compilation Error (in app\\tmp\\main.go:9): unknown escape sequence"

I have no idea what problem I ran into, until I open the main.go file with an ide and got this:
image

Imo, to indicate the file location, the syntax should be github.com/revel/examples/chat/app/tmp/run", yet some how revel just change it to "github.com\revel\examples\chat/app/tmp/run" all the time, rendering the "Unknown escape sequence" error.

Anyone has any idea how to fix this?

@Huholoman
Copy link

Huholoman commented Jul 22, 2019

Im not using windows for a long time, but shouldnt you revel path be like
github.com/revel/example/chat/app/tmp/
?

Sorry, i didnt read you question properly.

@ffleader1
Copy link
Author

Im not using windows for a long time, but shouldnt you revel path be like

github.com/revel/example/chat/app/tmp/run

?

Yes it should, but that main.go is something generated by revel, as i said at the beginning of the file GENERATED CODE- DO NOT EDIT, so if it's anything, it's really revel problem.

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