fork of esbuild
esparse's Introduction
esparse's People
Forkers
cdmistmanesparse's Issues
panic: Scope location \d+ must be greater than 1796001
Hey Amjad,
Not sure exactly where/how to report this but I'm getting a strange compilation error on Repl.it that traces back to this repo.
Steps to reproduce:
- Go to https://repl.it/@chalcidfly/boardgameio-template-1
- Hit "run"
- The console shows the following output:
node v12.16.1
panic: Scope location 1795975 must be greater than 1796001 [recovered]
panic: Scope location 1795975 must be greater than 1796001
goroutine 7 [running]:
github.com/amasad/esparse/parser.Parse.func1(0xc000fa3e58)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:7827 +0x6a
panic(0x882dc0, 0xc0013f94c0)
/usr/lib/go-1.15/src/runtime/panic.go:969 +0x175
github.com/amasad/esparse/parser.(*parser).pushScopeForParsePass(0xc000134000, 0x2, 0x1b6787, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:272 +0x39f
github.com/amasad/esparse/parser.(*parser).parseParenExpr(0xc000134000, 0x1b6787, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1759 +0x6ab
github.com/amasad/esparse/parser.(*parser).parsePrefix(0xc000134000, 0x1, 0x0, 0xc000000000, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1915 +0x14e9
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc000134000, 0x1, 0x1b6778, 0x10ab3c0, 0xc001de6440)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x45
github.com/amasad/esparse/parser.(*parser).parseAndDeclareDecls(0xc000134000, 0x101, 0xc001dea6e0, 0x1, 0x1)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:3182 +0x2b3
github.com/amasad/esparse/parser.(*parser).parseStmt(0xc000134000, 0x1, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4014 +0x6fa5
github.com/amasad/esparse/parser.(*parser).parseStmtsUpTo(0xc000134000, 0x12, 0x1, 0xc000fa2660, 0xc000042800, 0x7f0943255e98)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4834 +0xab
github.com/amasad/esparse/parser.(*parser).parseFnBodyStmts(0xc000134000, 0x0, 0x1acbde, 0x10ab3c0, 0xc001d95d68)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4817 +0xc5
github.com/amasad/esparse/parser.(*parser).parseArrowBody(0xc000134000, 0xc0012168a0, 0x1, 0x1, 0x0, 0xc0012168a0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1538 +0x167
github.com/amasad/esparse/parser.(*parser).parseParenExpr(0xc000134000, 0x1acbdd, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1763 +0x739
github.com/amasad/esparse/parser.(*parser).parsePrefix(0xc000134000, 0x1, 0x0, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1915 +0x14e9
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc000134000, 0x1, 0x8dd4e0, 0x0, 0x1)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x45
github.com/amasad/esparse/parser.(*parser).parseCallArgs(0xc000134000, 0xc000fa30f8, 0x80130ee5, 0x34ef342c32d36e2b)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2933 +0x110
github.com/amasad/esparse/parser.(*parser).parseSuffix(0xc000134000, 0x1acbd2, 0x10ab560, 0xc001d95d58, 0x1, 0x0, 0x8c0ac0, 0x1, 0xc00138dd60)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2545 +0x2333
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc000134000, 0x1, 0x1acbc0, 0x10ab3c0, 0xc001d95d50)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x85
github.com/amasad/esparse/parser.(*parser).parseAndDeclareDecls(0xc000134000, 0x10101, 0xc00138dbc0, 0x1, 0x1)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:3182 +0x2b3
github.com/amasad/esparse/parser.(*parser).parseStmt(0xc000134000, 0x101, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4014 +0x6fa5
github.com/amasad/esparse/parser.(*parser).parseStmtsUpTo(0xc000134000, 0x0, 0x101, 0x2d, 0xc00002e570, 0x2d)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4834 +0xab
github.com/amasad/esparse/parser.Parse(0xc000076120, 0x0, 0xc00002e570, 0x2d, 0xc00002e570, 0x2d, 0xc000926000, 0x1c5fd2, 0x1, 0x0, ...)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:7851 +0x1d0
github.com/replit/upm/internal/backends/nodejs.parseFile(0x0, 0xc00002e570, 0x2d, 0xc00002e570, 0x2d, 0xc000926000, 0x1c5fd2, 0xc0000760c0)
/upm/internal/backends/nodejs/grab.go:86 +0x158
created by github.com/replit/upm/internal/backends/nodejs.guessBareImports.func1
/upm/internal/backends/nodejs/grab.go:136 +0x431
Repl.it: Package operation failed.
Tried to figure out if it was a transient error by forking the repl but nope, same problem.
Maybe there's a Repl.it forum that would be better to report the bug, but here seems as good as anywhere.
Thanks,
chalcidfly
panic: Scope location 47 must be greater than 84
I was working on my discord bot on repl.it, and it appears that upm invoked this package which apparently has a bug.
Here are the logs:
panic: Scope location 47 must be greater than 84 [recovered]
panic: Scope location 47 must be greater than 84
goroutine 19 [running]:
github.com/amasad/esparse/parser.Parse.func1(0xc000103e58)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:7827 +0x6a
panic(0x883dc0, 0xc000198030)
/usr/lib/go-1.15/src/runtime/panic.go:969 +0x1b9
github.com/amasad/esparse/parser.(*parser).pushScopeForParsePass(0xc0001a6000, 0x2, 0x2f, 0x2)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:272 +0x39f
github.com/amasad/esparse/parser.(*parser).parseParenExpr(0xc0001a6000, 0x2f, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1759 +0x6ab
github.com/amasad/esparse/parser.(*parser).parsePrefix(0xc0001a6000, 0x3, 0x0, 0xc000000000, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1915 +0x14e9
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc0001a6000, 0x3, 0x82231101, 0xc0000d1158, 0x778474)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x45
github.com/amasad/esparse/parser.(*parser).parseSuffix(0xc0001a6000, 0x1e, 0x10d14a0, 0xc000180270, 0x0, 0x0, 0x8debc0, 0xc0001a6001, 0xc000194120)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2872 +0x3825
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc0001a6000, 0x0, 0x1, 0x1, 0x1)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x85
github.com/amasad/esparse/parser.(*parser).parseStmt(0xc0001a6000, 0x101, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4592 +0x110
github.com/amasad/esparse/parser.(*parser).parseStmtsUpTo(0xc0001a6000, 0x0, 0x101, 0x27, 0xc000196120, 0x27)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4834 +0xa8
github.com/amasad/esparse/parser.Parse(0xc000182060, 0x1, 0xc000196120, 0x27, 0xc000196120, 0x27, 0xc0001a2000, 0xdf, 0x1, 0x0, ...)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:7851 +0x1d0
github.com/replit/upm/internal/backends/nodejs.parseFile(0x1, 0xc000196120, 0x27, 0xc000196120, 0x27, 0xc0001a2000, 0xdf, 0xc000182000)
/upm/internal/backends/nodejs/grab.go:86 +0x158
created by github.com/replit/upm/internal/backends/nodejs.guessBareImports.func1
/upm/internal/backends/nodejs/grab.go:136 +0x431
panic: Scope location 47 must be greater than 84 [recovered]
panic: Scope location 47 must be greater than 84
goroutine 7 [running]:
github.com/amasad/esparse/parser.Parse.func1(0xc0000f9e58)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:7827 +0x6a
panic(0x883dc0, 0xc0000576c0)
/usr/lib/go-1.15/src/runtime/panic.go:969 +0x1b9
github.com/amasad/esparse/parser.(*parser).pushScopeForParsePass(0xc0000b6580, 0x2, 0x2f, 0x2)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:272 +0x39f
github.com/amasad/esparse/parser.(*parser).parseParenExpr(0xc0000b6580, 0x2f, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1759 +0x6ab
github.com/amasad/esparse/parser.(*parser).parsePrefix(0xc0000b6580, 0x3, 0x0, 0xc000000000, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:1915 +0x14e9
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc0000b6580, 0x3, 0xec6d00bb, 0xc0000cd158, 0x778474)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x45
github.com/amasad/esparse/parser.(*parser).parseSuffix(0xc0000b6580, 0x1e, 0x10d14a0, 0xc0001285d0, 0x0, 0x0, 0x8debc0, 0xc0000b6501, 0xc00000f100)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2872 +0x3825
github.com/amasad/esparse/parser.(*parser).parseExpr(0xc0000b6580, 0x0, 0x1, 0x1, 0x1)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:2435 +0x85
github.com/amasad/esparse/parser.(*parser).parseStmt(0xc0000b6580, 0x101, 0x0, 0x0, 0x0)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4592 +0x110
github.com/amasad/esparse/parser.(*parser).parseStmtsUpTo(0xc0000b6580, 0x0, 0x101, 0x27, 0xc00002c180, 0x27)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:4834 +0xa8
github.com/amasad/esparse/parser.Parse(0xc000026240, 0x1, 0xc00002c180, 0x27, 0xc00002c180, 0x27, 0xc0000b0380, 0xdf, 0x1, 0x0, ...)
/root/go/pkg/mod/github.com/amasad/[email protected]/parser/parser.go:7851 +0x1d0
github.com/replit/upm/internal/backends/nodejs.parseFile(0x1, 0xc00002c180, 0x27, 0xc00002c180, 0x27, 0xc0000b0380, 0xdf, 0xc0000261e0)
/upm/internal/backends/nodejs/grab.go:86 +0x158
created by github.com/replit/upm/internal/backends/nodejs.guessBareImports.func1
/upm/internal/backends/nodejs/grab.go:136 +0x431
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.