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

Parser failure on #! #1761

Closed
lukechurch opened this issue Feb 19, 2012 · 5 comments
Closed

Parser failure on #! #1761

lukechurch opened this issue Feb 19, 2012 · 5 comments
Assignees

Comments

@lukechurch
Copy link
Contributor

From a poison dart test

lukechurch-macbookair:Poison lukechurch$ ~/dart-sdk/bin/dart ~/dart-bleedingEdge/dart/frog/leg/tools/mini_parser.dart HashBang.dart
Error in file: HashBang.dart
Unhandled exception:
IndexOutOfRangeException: 3
 0. Function: 'ObjectArray.[]' url: 'bootstrap_impl' line:31 col:3
 1. Function: 'ByteArrayScanner.advance' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/scanner/byte_array_scanner.dart' line:36 col:25
 2. Function: 'AbstractScanner.tokenizeTag' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/scanner/scanner.dart' line:215 col:25
 3. Function: 'AbstractScanner.bigSwitch' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/scanner/scanner.dart' line:121 col:25
 4. Function: 'AbstractScanner.tokenize' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/scanner/scanner.dart' line:42 col:23
 5. Function: '::scan' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/tools/mini_parser.dart' line:123 col:28
 6. Function: '::scan' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/tools/mini_parser.dart' line:124 col:5
 7. Function: '::parseFile' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/tools/mini_parser.dart' line:95 col:23
 8. Function: '::parseFile' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/tools/mini_parser.dart' line:107 col:5
 9. Function: '::main' url: '/Users/lukechurch/dart-bleedingEdge/dart/frog/leg/tools/mini_parser.dart' line:76 col:14

@kasperl
Copy link

kasperl commented Mar 24, 2012

Removed Area-Frog label.
Added Area-Dart2JS label.

@peter-ahe-google
Copy link
Contributor

Set owner to @peter-ahe-google.
Added Accepted label.

@peter-ahe-google
Copy link
Contributor

Where can I find HashBang.dart?

@peter-ahe-google
Copy link
Contributor

I think I have reconstructed the problem. The file needs to start with #! and have no newlines.


Added Started label.

@peter-ahe-google
Copy link
Contributor

Fixed with https://code.google.com/p/dart/source/detail?r=5819


Added Fixed label.

copybara-service bot pushed a commit that referenced this issue Oct 21, 2022
args (https://github.com/dart-lang/args/compare/80d4abb..aaf671c):
  aaf671c  2022-10-20  Kevin Moore  Require Dart 2.18, update lints, update CI, add dependabot (#222)

async (https://github.com/dart-lang/async/compare/f3ed5f6..18a780e):
  18a780e  2022-10-20  Kevin Moore  Nit: fix analysis_options (#224)
  b6e7885  2022-10-20  Kevin Moore  Require Dart 2.18, latest lints, latest CI bits (#223)

lints (https://github.com/dart-lang/lints/compare/8294e56..16bdefe):
  16bdefe  2022-10-20  dependabot[bot]  Bump actions/checkout from 3.0.2 to 3.1.0 (#89)
  0fae4ee  2022-10-20  Devon Carew  update lint files docs (#88)

usage (https://github.com/dart-lang/usage/compare/9a98c89..fee1d9d):
  fee1d9d  2022-10-20  dependabot[bot]  Bump actions/checkout from 3.0.2 to 3.1.0 (#184)

webdev (https://github.com/dart-lang/webdev/compare/a02f073..81c5384):
  81c5384  2022-10-20  Nate Bosch  Migrate webdev tests to null safety (#1761)

Change-Id: I238d46cb5b24d64788862f06dc903a2cd2312725
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/265140
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Nate Bosch <[email protected]>
Commit-Queue: Nate Bosch <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants