Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 02 17:54
    martyphee commented #1422
  • Jul 31 14:46
    martyphee commented #1422
  • Jul 31 14:45
    martyphee commented #1422
  • Jul 31 14:44
    martyphee commented #1422
  • Jul 21 00:59
    zzdboy closed #1558
  • Jul 12 08:25
    zzdboy opened #1558
  • Jul 03 14:30
    KilledKenny synchronize #1556
  • Jun 27 07:16
    myk4040okothogodo commented #1528
  • Jun 22 15:32
    terhitormanen opened #1557
  • Jun 22 14:36
    digininja commented #1438
  • Jun 22 14:24
    myk4040okothogodo commented #1438
  • Jun 09 03:12
    brendensoares commented #1556
  • Jun 07 18:07
    KilledKenny synchronize #1556
  • Jun 07 15:48
    brendensoares commented #1556
  • Jun 07 01:19
    notzippy commented #1556
  • Jun 07 01:18
    notzippy edited #1556
  • Jun 07 01:18
    notzippy review_requested #1556
  • Jun 05 23:53
    movitz-s commented #1555
  • Jun 05 23:52
    movitz-s closed #1555
  • Jun 05 23:52
    movitz-s commented #1555
Shane Howearth
@shaneHowearth
I think that the problem is that the writer of this code has assumed that the session is known automagically - am now looking at c.Request.Header.Server.GetCookie()
Brenden Soares
@brendensoares
the answer is filters/interceptors
you can create a custom filter and insert it before the session filter
looking at your code snippet, it's using interceptors...≥
you'd have to add a custom interceptor before your setUser InterceptMEthod()
that's off the top of my head, I feel fairly confident in that answer
terhi.tormanen
@terhi.tormanen:matrix.org
[m]

Hi! I posted this into revel/revel issues but I thought to try here as well. I can't seem to get the jobs module to work anymore. Not when running built app or using revel run, in either dev or prod mode.

I updated my revel project to use Go 1.17, revel/revel v1.1.0, revel/modules v1.1.0 and installed revel/cmd/revel v1.1.2.
Inidirect dependenccies (from go.mod):
github.com/revel/config v1.1.0 // indirect
github.com/revel/cron v1.1.0 // indirect
github.com/revel/log15 v2.11.20+incompatible // indirect
github.com/revel/pathtree v0.0.0-20140121041023-41257a1839e9 // indirect

Running on Ubuntu 20.04.4 LTS.

In my browser running locally I get:
(port used 9020)
localhost:9020/@jobs ->
Not Found
No matching route found: /@jobs

and also the jobs are not run at the time indicated.

Jobs worked when I was using Go 1.16 and revel 1.0.0.

I've followed the manual and my app.conf has
module.jobs = github.com/revel/modules/jobs
and the conf/routes file
module:jobs

Module testrunner works but jobs not...

Any help would be much appreciated!

Paul
@ptman:kapsi.fi
[m]
I would suggest upgrading either revel or go, but not both at the same time
terhi.tormanen
@terhi.tormanen:matrix.org
[m]
Well, after further testing it seems that something may not work as intended with revel package and revel build. I made a brand new skeleton app with minimal configuration and a very simple job. I can get the job to run using revel run command but if I package it and run the app from it, it doesn't work (or using the revel build command and running the app from the build). /@jobs is not even found. I managed to get the packaged app to work earlier on another skeleton app after running go get -u github.com/revel/modules/jobs@v1.1.0 but this doesn't seem to fix the issue now. Something seems to be flaky with the revel package and revel build commands.
And @Paul, your suggestion was not very helpful and sounded quite condescending.
Paul
@ptman:kapsi.fi
[m]
sorry, but if moving lots of pieces at once results in breakage, then moving one piece at a time and finding the breaking piece is a valid strategy
terhi.tormanen
@terhi.tormanen:matrix.org
[m]
Yeah, I know that! But then even revel/revel go.mod suggests using Go 1.17 you'd think that it's OK to use Go 1.17 (especailly when everything else works). And as it seems that breakage is not with my app but with Revel itself! I seem to remember someone else here earlier this year mentioning problems with running jobs when using revel package command but it seems that was not completely addressed...
Shane Howearth
@shaneHowearth

Hmm, I've been having problems with Revel's session management, and I think that I am closer to solving them :\

I have finally managed to get things working locally (integration with a local firebase server was problematic)

And I /thought/ that I had fixed things but when I pushed to production I saw that, the problems continued.

HOWEVER this was good news, because it shows me that the environment is part of the bug

And, in fact, I logged heavily what was happening and I can see what I believe is the problem - when the revel instance in the cloud run container is paused/sleeping because not in use, then restarted - the SESSION is gone

```

Shane Howearth
@shaneHowearth
2022-07-12 10:54:47.046 AESTINFO 00:54:47 app revel_logger.go:30: Before Set user &controllers.AppController{TxnController:gormcontroller.TxnController{Controller:(*revel.Controller)(0xc000338c30), Txn:(*gorm.DB)(0xc00047cc30)}, Auth:(*services.FirebaseAuth)(nil), User:(*services.FirebaseUser)(nil)} ip=999.223.10.82 path=/user/dologin method=POST action=User.DoLogin namespace=App\\
Default
2022-07-12 10:54:47.046 AESTINFO 00:54:47 app revel_logger.go:30: Request &revel.Request{In:(*revel.GoRequest)(0xc000346570), Header:(*revel.RevelHeader)(0xc000331900), ContentType:"application/x-www-form-urlencoded", Format:"html", AcceptLanguages:revel.AcceptLanguages{revel.AcceptLanguage{Language:"en", Quality:1}, revel.AcceptLanguage{Language:"en", Quality:1}, revel.AcceptLanguage{Language:"en", Quality:1}}, Locale:"en", WebSocket:revel.ServerWebSocket(nil), Method:"POST", RemoteAddr:"169.254.1.1:27189", Host:"read-portal-dyqmnqn2ga-uc.a.run.app", URL:(*url.URL)(0xc00007a240), Form:url.Values{"password":[]string{"password"}, "username":[]string{"username@domain"}}, MultipartForm:(*revel.MultipartForm)(nil), controller:(*revel.Controller)(0xc000338c30)} ip=999.223.10.82 path=/user/dologin method=POST action=User.DoLogin namespace=App\\
Default
2022-07-12 10:54:47.046 AESTINFO 00:54:47 app revel_logger.go:30: Request Args (func() map[string]interface {})(0x8fee20)namespace=App\\ ip=999.223.10.82 path=/user/dologin method=POST action=User.DoLogin
Default
2022-07-12 10:54:47.046 AESTINFO 00:54:47 app revel_logger.go:30: Session revel.GoCookie{Name:"REVEL_SESSION", Value:"659df49175468371b832011fea3baf5b69964796-%00_TS%3A1660178350%00%00_object_%3A%7B%22userInfo%22%3A%22%7B%5C%22localId%5C%22%3A%5C%22yUyAff33D7fTICa3KEcvlUZyVCn1%5C%22%2C%5C%22email%5C%22%3A%5C%22username%40domain%5C%22%2C%5C%22idToken%5C%22%3A%5C%22eyJhbGciOiJSUzI1NiIsImtpZCI6ImVhNWY2NDYxMjA4Y2ZmMGVlYzgwZDFkYmI1MjgyZTkyMDY0MjAyNWEiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcmVhZC1kZXYtMzAxNDA1IiwiYXVkIjoicmVhZC1kZXYtMzAxNDA1IiwiYXV0aF90aW1lIjoxNjU3NTg2MzQ2LCJ1c2VyX2lkIjoieVV5QWZmMzNEN2ZUSUNhM0tFY3ZsVVp5VkNuMSIsInN1YiI6InlVeUFmZjMzRDdmVElDYTNLRWN2bFVaeVZDbjEiLCJpYXQiOjE2NTc1ODYzNDYsImV4cCI6MTY1NzU4OTk0NiwiZW1haWwiOiJzaGFuZS5ob3dlYXJ0aEBhYWNhcGVsbGEuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZW1haWwiOlsic2hhbmUuaG93ZWFydGhAYWFjYXBlbGxhLmNvbSJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.HQ8trPsb6ga2R1MF1wkcWFBHera1d5IRbM0eltAYJC7H4PnmyyKzSTTVyfBFeSrCixus4E2Bi2FBvLaqL-UspXyS6N3EJpypTD5vKP0WyfFgP096Zu3KOrP0Z7o2HR_1nuztM2Fo8bHeRzsnrMTIdchG6hl1ckEqPTTN07oUeGsojjRmqJg88-RaXT4hRE_LiFCDlgDzpy8O22nqLIOkrTHtdWJx0kHtSwXgv7jXkJux_rrhyIePNaQL_x5G0DdzW-IZNWcRpzO39AUn3g9ThhqfTcTDhAK_6LARdEzTxnP6VHnmRp-j9Gz2_gWCfFuBTdeTY5gLxLsapB9KJFVeTg%5C%22%2C%5C%22refreshToken%5C%22%3A%5C%22AOEOulY--hAgj6LorSPTEPzgrHoVX9dCuqqPusQ_MfzxRDCiJvR-uI-G1D0KwSwnz2OdF9i858NRJNoczChmuZQvJLYqFiN38ddSTGqMCVFbne3CYQ5IcywFuqcCXikB9WVhkrJYkBflWS_PKspeshjBVY8aZxDcZqJiIvqgAN_fOtwB7U5ZnzF-YtXFMjiEqaIM61NnNxhCd1l62Unbmqr12s1Si5WushVzRUfG00JVj70GhvKGsqs%5C%22%7D%22%7D%00", Path:"", Domain:"", Expires:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), RawExpires:"", MaxAge:0, Secure:false, HttpOnly:false, SameSite:0, Raw:"", Unparsed:[]string(nil)}method=POST action=User.DoLogin namespace=App\\ ip=999.223.10.82 path=/user/dologin
Default
2022-07-12 10:54:47.046 AESTINFO 00:54:47 app revel_logger.go:30: Before Set user user (*services.FirebaseUser)(nil)path=/user/dologin method=POST action=User.DoLogin namespace=App\\ ip=999.223.10.82
Default
2022-07-12 10:54:47.047 AESTINFO 00:54:47 app revel_logger.go:30: Before Set user session session.Session{"_TS":"1660178350", "_object_":map[string]string{"userInfo":"{\"localId\":\"yUyAff33D7fTICa3KEcvlUZyVCn1\",\"email\":\"username@domain\",\"idToken\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImVhNWY2NDYxMjA4Y2ZmMGVlYzgwZDFkYmI1MjgyZTkyMDY0MjAyNWEiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcmVhZC1kZXYtMzAxNDA1IiwiYXVkIjoicmVhZC1kZXYtMzAxNDA1IiwiYXV0aF90aW1lIjoxNjU3NTg2MzQ2LCJ1c2VyX2lkIjoieVV5QWZmMzN
Shane Howearth
@shaneHowearth
Ok, I think that this covers the solution revel/revel#741
Shane Howearth
@shaneHowearth
Hmm, does anyone have any example code of persisting sessions - either in a Redis cache, or a Postgres SQL DB
Shane Howearth
@shaneHowearth
Oh, hmm. locally stopping and starting the revel container - the session persists... back to the whiteboard it is
Shane Howearth
@shaneHowearth
This really has me stumped :(
Brenden Soares
@brendensoares
you're using a custom session persistence layer? firebase?
I've not done that myself, but I'm interested in helping you
Shane Howearth
@shaneHowearth
@brendensoares Yes! Firebase is in the mix, and I /believe/ that it is interfering with the call (I have been trying to build revel using a vendored version so that I can load it up with a tonne of debug statements, but am having problems there as well)
 > [builder 13/13] RUN --mount=type=cache,target=/go/pkg/mod     --mount=type=cache,target=/root/.cache/go-build     revel build --application-path=. --run-mode=prod --target-path=/app:
#24 0.269 Revel executing: build a Revel application (e.g. for deployment)
#24 0.387 Downloading related packages ...ERROR 00:53:31 command_config.go:256: Failed to import package                  error="exit status 1" gopath=/go GO-ROOT=/usr/local/go output="go: downloading github.com/google/uuid v1.3.0\ngo: downloading github.com/revel/revel v1.0.0\ngo: downloading github.com/revel/modules v1.0.0\ngo: downloading github.com/rs/zerolog v1.26.1\ngo: downloading github.com/go-resty/resty/v2 v2.7.0\ngo: downloading github.com/stripe/stripe-go/v71 v71.48.0\ngo: downloading github.com/lib/pq v1.10.3\ngo: downloading github.com/jinzhu/gorm v1.9.16\ngo: downloading github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b\ngo: downloading github.com/garyburd/redigo v1.6.2\ngo: downloading github.com/patrickmn/go-cache v2.1.0+incompatible\ngo: downloading github.com/revel/config v1.0.0\ngo: downloading github.com/twinj/uuid v1.0.0\ngo: downloading github.com/stretchr/testify v1.7.0\ngo: downloading github.com/fsnotify/fsnotify v1.5.1\ngo: downloading github.com/go-stack/stack v1.8.1\ngo: downloading github.com/revel/pathtree v0.0.0-20140121041023-41257a1839e9\ngo: downloading github.com/xeonx/timeago v1.0.0-rc4\ngo: downloading golang.org/x/net v0.0.0-20211123203042-d83791d6bcd9\ngo: downloading github.com/mattn/go-colorable v0.1.11\ngo: downloading github.com/revel/log15 v2.11.20+incompatible\ngo: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0\ngo: downloading gopkg.in/stack.v0 v0.0.0-20141108040640-9b43fcefddd0\ngo: downloading github.com/jinzhu/inflection v1.0.0\ngo: downloading github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5\ngo: downloading github.com/myesui/uuid v1.0.0\ngo: downloading github.com/jinzhu/now v1.0.1\ngo: downloading gopkg.in/stretchr/testify.v1 v1.2.2\ngo: downloading github.com/davecgh/go-spew v1.1.1\ngo: downloading github.com/pmezard/go-difflib v1.0.0\ngo: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c\ngo: downloading golang.org/x/sys v0.0.0-20211124211545-fe61309f8881\ngo: downloading github.com/mattn/go-isatty v0.0.14\ngo: downloading github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac\ngo: downloading github.com/BurntSushi/toml v0.3.1\ngo: downloading gopkg.in/yaml.v2 v2.2.8\ngo: downloading github.com/go-sql-driver/mysql v1.6.0\ngo: downloading github.com/mattn/go-sqlite3 v2.0.3+incompatible\ngo: downloading github.com/denisenkom/go-mssqldb v0.0.0-20191124224453-732737034ffd\ngo: downloading golang.org/x/text v0.3.7\ngo: downloading github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe\ngo: downloading golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e\ngo: finding module for package github.com/aacapella/portal/app/routes\ngithub.com/aacapella/portal/app/views imports\n\tgithub.com/aacapella/portal/app/routes: git init --bare in /root/go/pkg/mod/cache/vcs/cdd3dae001c5a396b979df0616d7226eb1276fd1371a3e3d8124ea333959283a: exec: \"git\": executable file not found in $PATH\n"
#24 24.18  completed.
#24 24.21 ERROR 00:53:31  revel.go:113: Unable to execute                        error="failed to load module.  Import of path failed modulePath:github.com/revel/modules/orm/gorm error:no files found in import path: github.com/revel/modules/orm/gorm "
I don't understand (yet) why it's trying to download when I am using vendored stuffs, I suspect that the command is wrong
RUN --mount=type=cache,target=/go/pkg/mod \
    --mount=type=cache,target=/root/.cache/go-build \
    revel build --application-path=. --run-mode=prod --target-path=/app
Shane Howearth
@shaneHowearth
ok, to fix that I had to git clone https://github.com/revel/modules.git
So, new error \o/
#24 2.126 ERROR 01:27:27  revel.go:113: Unable to execute                        error="Go Compilation Error (in /go/src/github.com/obfuscated/portal/vendor/golang.org/x/tools/cmd/fiximports/testdata/src/old.com/bad/bad.go:2): expected 'package', found 'EOF'"
And that error is being generated by
vendor/github.com/revel/cmd/revel/revel.go
Shane Howearth
@shaneHowearth
$ find . -type f -name '*.go' -print0 | while IFS= read -rd '' f; do if ! head -1000 "$f" | grep -q "package "; then printf '%s\n' "$f"; fi; done
./vendor/golang.org/x/tools/cmd/fiximports/testdata/src/old.com/bad/bad.go
Only that file has no package
I'll delete it and see if that breaks anything
Shane Howearth
@shaneHowearth
Ok, so I have spent my afternoon cloning golang.org/x repos and moving /only/ the packages requied into the vendor/ directory (I tried just dumping the whole thing, but that broke things so I had to undo it)
my current error is
#24 0.358 Downloading related packages ...ERROR 06:10:57 command_config.go:256: Failed to import package                 error="exit status 1" gopath=/go GO-ROOT=/usr/local/go output="go: downloading github.com/go-resty/resty/v2 v2.7.0\ngo: downloading github.com/revel/revel v1.0.0\ngo: downloading github.com/google/uuid v1.3.0\ngo: downloading github.com/lib/pq v1.10.3\ngo: downloading github.com/revel/modules v1.0.0\ngo: downloading github.com/rs/zerolog v1.26.1\ngo: downloading github.com/stripe/stripe-go/v71 v71.48.0\ngo: downloading github.com/mattn/go-colorable v0.1.11\ngo: downloading github.com/revel/config v1.0.0\ngo: downloading github.com/revel/log15 v2.11.20+incompatible\ngo: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0\ngo: downloading gopkg.in/stack.v0 v0.0.0-20141108040640-9b43fcefddd0\ngo: downloading github.com/stretchr/testify v1.7.0\ngo: downloading github.com/fsnotify/fsnotify v1.5.1\ngo: downloading github.com/go-stack/stack v1.8.1\ngo: downloading github.com/revel/pathtree v0.0.0-20140121041023-41257a1839e9\ngo: downloading github.com/xeonx/timeago v1.0.0-rc4\ngo: downloading golang.org/x/net v0.0.0-20211123203042-d83791d6bcd9\ngo: downloading github.com/twinj/uuid v1.0.0\ngo: downloading github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b\ngo: downloading github.com/patrickmn/go-cache v2.1.0+incompatible\ngo: downloading github.com/garyburd/redigo v1.6.2\ngo: downloading github.com/jinzhu/gorm v1.9.16\ngo: downloading github.com/mattn/go-isatty v0.0.14\ngo: downloading github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac\ngo: downloading gopkg.in/yaml.v2 v2.2.8\ngo: downloading gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c\ngo: downloading github.com/BurntSushi/toml v0.3.1\ngo: downloading github.com/davecgh/go-spew v1.1.1\ngo: downloading github.com/pmezard/go-difflib v1.0.0\ngo: downloading golang.org/x/sys v0.0.0-20220712014510-0a85c31ab51e\ngo: downloading github.com/myesui/uuid v1.0.0\ngo: downloading gopkg.in/stretchr/testify.v1 v1.2.2\ngo: downloading github.com/go-sql-driver/mysql v1.6.0\ngo: downloading github.com/mattn/go-sqlite3 v2.0.3+incompatible\ngo: downloading github.com/jinzhu/inflection v1.0.0\ngo: downloading github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5\ngo: downloading github.com/jinzhu/now v1.0.1\ngo: downloading github.com/denisenkom/go-mssqldb v0.0.0-20191124224453-732737034ffd\ngo: downloading golang.org/x/text v0.3.7\ngo: downloading github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe\ngo: downloading golang.org/x/crypto v0.0.0-20211215165025-cf75a172585e\ngo: finding module for package github.com/obfuscated/portal/app/routes\ngithub.com/obfuscated/portal/app/views imports\n\tgithub.com/obfuscated/portal/app/routes: git init --bare in /root/go/pkg/mod/cache/vcs/cdd3dae001c5a396b979df0616d7226eb1276fd1371a3e3d8124ea333959283a: exec: \"git\": executable file not found in $PATH\n"
So I think that that means I am now going to pick through them all and clone them into my vendor directory :\
hmm, that can't be right, the first couple of 'missing' packages are there
Brenden Soares
@brendensoares
sorry, busy couple weeks
just seeing this now
would you like to do a screenshare and you can rubber duck with me?
Shane Howearth
@shaneHowearth
I think we're in incompatible timezones
My current plan is to try and get a self contained vendored version up in the cloud so that I can debug the hang out of it
Shane Howearth
@shaneHowearth
Ok, the error I am seeing is being generated because line 248 of revel/cmd/model/command_config.go runs go mod tidy but is failing
I'm thinking it's a problem with the go.mod or go.sum as my linter is not happy about them for some reason
Shane Howearth
@shaneHowearth

Ok, there's an issue with revel's source processor

https://github.com/revel/cmd/blob/master/parser2/source_processor.go#L146

There should be handling for testdata directories (ie. Don't try and import anything from them, or their descendents)

1 reply
Shane Howearth
@shaneHowearth
1 reply
Why it didn't come down in the git clone is byond me
Shane Howearth
@shaneHowearth
Ok, day 19, still having problems :\
> [builder 13/13] RUN --mount=type=cache,target=/go/pkg/mod     --mount=type=cache,target=/root/.cache/go-build     revel build --application-path=. --run-mode=prod --target-path=/app:
#24 0.271 Revel executing: build a Revel application (e.g. for deployment)
#24 0.399 Parsing packages, (may require download if not cached)... Completed
#24 1.940 #$$# &ast.FuncDecl{Doc:(*ast.CommentGroup)(nil), Recv:(*ast.FieldList)(nil), Name:(*ast.Ident)(0x401b9dc1c0), Type:(*ast.FuncType)(0x401b9aeea0), Body:(*ast.BlockStmt)(nil)}
#24 1.940 #########################################################################################
#24 1.940 #$$# &ast.Ident{NamePos:173411, Name:"Syscall9", Obj:(*ast.Object)(0x401b9e21e0)}
#24 1.940 #$$# &ast.FuncType{Func:173406, Params:(*ast.FieldList)(0x401b9d19e0), Results:(*ast.FieldList)(0x401b9d1a40)}
#24 1.940 #$$# &ast.FieldList{Opening:173419, List:[]*ast.Field{(*ast.Field)(0x401b9d9580)}, Closing:173467}
#24 1.940 #########################################################################################
#24 1.942 panic: runtime error: invalid memory address or nil pointer dereference
#24 1.942 [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x11beb8]
#24 1.942
#24 1.942 goroutine 1 [running]:
#24 1.942 go/ast.Walk({0x5c2480, 0x4006bcbf80}, {0x5ca458, 0x0})
#24 1.942     /usr/local/go/src/go/ast/walk.go:225 +0x1288
#24 1.942 go/ast.Inspect(...)
#24 1.942     /usr/local/go/src/go/ast/walk.go:387
#24 1.942 github.com/revel/cmd/parser2.(*SourceInfoProcessor).getValidation(0x40005980b0, 0x401b9d1a70, 0x400020e000)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/parser2/source_info_processor.go:119 +0x2e8
#24 1.942 github.com/revel/cmd/parser2.(*SourceInfoProcessor).processPackage(0x40005980b0, 0x400020e000)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/parser2/source_info_processor.go:72 +0x950
#24 1.942 github.com/revel/cmd/parser2.(*SourceProcessor).addSourceInfo(0x40000b8320)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/parser2/source_processor.go:248 +0x68
#24 1.942 github.com/revel/cmd/parser2.(*SourceProcessor).parse(0x40000b8320)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/parser2/source_processor.go:58 +0xa0
#24 1.942 github.com/revel/cmd/parser2.ProcessSource(0x40004bef00)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/parser2/source_processor.go:34 +0x78
#24 1.942 github.com/revel/cmd/harness.Build(0x400010e400, 0x40004bef00)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/harness/build.go:59 +0xb0
#24 1.942 main.buildApp(0x400010e400)
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/revel/build.go:82 +0x200
#24 1.942 main.main()
#24 1.942     /go/src/github.com/obfuscated/portal/vendor/github.com/revel/cmd/revel/revel.go:112 +0x368
Shane Howearth
@shaneHowearth
Again it looks like a file is missing, I'm assuming that it's a go file, but it's really painful, and I'm considering recommending that we drop use of this project as it's costing too much in time and effort to debug
Shane Howearth
@shaneHowearth
Just to make me look bad - I downloaded https://github.com/golang/go/releases/tag/go1.17.12 and put the decompressed contents into the golang/go/ directory and I have a new error
Shane Howearth
@shaneHowearth
no further progress, I am recommending that we abandon use of this project - a simple vendoring should not take this long and still be broken
4 replies
timelord666
@timelord666
Hello there, i have a working revel build. So my problem is, when i have a long request running, batch insert into db. If i make another request, first request just stops and client is getting no response. What should i do?
7 replies