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

Opera 12.16 on linux, no column numbers. #18

Open
Xotic750 opened this issue Nov 12, 2015 · 2 comments
Open

Opera 12.16 on linux, no column numbers. #18

Xotic750 opened this issue Nov 12, 2015 · 2 comments

Comments

@Xotic750
Copy link

I'm using linux and the packaged Opera is v12.16 and I noticed that I am not getting any column numbers. I looked at the Error object and there is stack and stacktrace property. The stack property, which you seem to be using for this version, does not have the column numbers but the stacktrace does. Would it be possible to parse the stacktrace to get this information? It also reports everything twice.

[
  {
    "functionName": "CustomError",
    "fileName": "http://fiddle.jshell.net/2k5x5dj8/157/show/",
    "lineNumber": 303,
    "source": "CustomError([arguments not available])@http://fiddle.jshell.net/2k5x5dj8/157/show/:303"
  },
  {
    "functionName": "<anonymous function: Y.prototype.x>",
    "fileName": "http://fiddle.jshell.net/2k5x5dj8/157/show/",
    "lineNumber": 445,
    "source": "<anonymous function: Y.prototype.x>([arguments not available])@http://fiddle.jshell.net/2k5x5dj8/157/show/:445"
  },
  {
    "functionName": "<anonymous function: window.onload>",
    "fileName": "http://fiddle.jshell.net/2k5x5dj8/157/show/",
    "lineNumber": 451,
    "source": "<anonymous function: window.onload>([arguments not available])@http://fiddle.jshell.net/2k5x5dj8/157/show/:451"
  },
  {
    "functionName": "CustomError",
    "fileName": "http://fiddle.jshell.net/2k5x5dj8/157/show/",
    "lineNumber": 303,
    "source": "CustomError([arguments not available])@http://fiddle.jshell.net/2k5x5dj8/157/show/:303"
  },
  {
    "functionName": "<anonymous function: Y.prototype.x>",
    "fileName": "http://fiddle.jshell.net/2k5x5dj8/157/show/",
    "lineNumber": 445,
    "source": "<anonymous function: Y.prototype.x>([arguments not available])@http://fiddle.jshell.net/2k5x5dj8/157/show/:445"
  },
  {
    "functionName": "<anonymous function: window.onload>",
    "fileName": "http://fiddle.jshell.net/2k5x5dj8/157/show/",
    "lineNumber": 451,
    "source": "<anonymous function: window.onload>([arguments not available])@http://fiddle.jshell.net/2k5x5dj8/157/show/:451"
  }
]
@eriwen
Copy link
Member

eriwen commented Nov 12, 2015

Thanks for catching this. You're right that we do want to provide column numbers if we can. I'd want to check wether stack and stacktrace are the same except for column numbers, or it'll be a bit more difficult.

@Xotic750
Copy link
Author

The formats of stack and stacktrace are different. I'll try and post and example soon.

stack "<anonymous function: window.onload>([arguments not available])@http://fiddle.jshell.net/_display/:464"
stacktrace "Error thrown at line 464, column 0 in <anonymous function: window.onload>() in http://fiddle.jshell.net/_display/: console.log(new Error);"
  • I really hate it Opera it always changes my system keyboard layout whenever I use the console, now can#t wrap post in code symbols! grr..

@eriwen eriwen self-assigned this Nov 12, 2015
@eriwen eriwen removed their assignment Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants