-
Notifications
You must be signed in to change notification settings - Fork 1
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
panic: Scope location 47 must be greater than 84 #2
Comments
Interesting, do you know which package is causing this? |
@programmeruser2 Hi! Just looked into this for you and it looks like there was an issue with the .replit file. If you add a closing quotation at the end of the run command it should work. I attached a screenshot of how I got my fork to work as well as my forked repl. My repl: |
@Obaida-Albaroudi Yes, it does work if you tell the packager to ignore the current directory, which is functionally equivalent to turning it off. The bug still persists if you don't. |
I'm having the same error, but I'm not sure if it's the same bug. I've narrowed it down to a minimal example (playground): package main
import (
"github.com/amasad/esparse/logging"
"github.com/amasad/esparse/parser"
)
func main() {
logger, _ := logging.NewStderrLog(logging.StderrOptions{})
path := "file.js"
parser.Parse(logger, logging.Source{
Index: 0,
AbsolutePath: path,
PrettyPath: path,
Contents: `(a = () => {}) => {}`,
}, parser.ParseOptions{})
} This outputs:
I think it's having trouble with an arrow function as the default parameter of another arrow function. I would try and fix this and open a PR, but I have absolutely no experience with Go. |
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:
The text was updated successfully, but these errors were encountered: