Skip to content

Stacktrace column numbers and special characters #30453

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

Open
jensjoha opened this issue Aug 16, 2017 · 2 comments
Open

Stacktrace column numbers and special characters #30453

jensjoha opened this issue Aug 16, 2017 · 2 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@jensjoha
Copy link
Contributor

Say I have this code:

main(List<String> args) {
  /*𝄞𝄞𝄞𝄞𝄞𝄞𝄞𝄞𝄞𝄞*/throw "Lalala";
}

'throw' basically starts at column 17, so I would expect the stacktrace to contain "2:17".
"𝄞" is 4-bytes, and it seems to count as 2 characters though, so instead I get the stacktrace "2:27".

This is the case in the dart VM both with and without kernel.

@jensjoha jensjoha added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Aug 16, 2017
@sivachandra sivachandra self-assigned this Aug 16, 2017
@sivachandra
Copy link
Contributor

I will take this for now as I am in the area.

@jensjoha
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

2 participants