Title: panicked at 'internal error: entered unreachable code: unsupported heredoc_dedent argument str' · Issue #46 · lib-ruby-parser/lib-ruby-parser · GitHub
Open Graph Title: panicked at 'internal error: entered unreachable code: unsupported heredoc_dedent argument str' · Issue #46 · lib-ruby-parser/lib-ruby-parser
X Title: panicked at 'internal error: entered unreachable code: unsupported heredoc_dedent argument str' · Issue #46 · lib-ruby-parser/lib-ruby-parser
Description: for given input: in.zip with following code: use lib_ruby_parser::{Parser, ParserOptions}; fn main() { let filepath = ""; let data = std::fs::read(filepath).unwrap(); let options = ParserOptions { buffer_name: String::from("(...
Open Graph Description: for given input: in.zip with following code: use lib_ruby_parser::{Parser, ParserOptions}; fn main() { let filepath = ""; let data = std::fs::read(filepath).unwrap(); let options = Pars...
X Description: for given input: in.zip with following code: use lib_ruby_parser::{Parser, ParserOptions}; fn main() { let filepath = "<input file>"; let data = std::fs::read(filepath).unwrap(); le...
Opengraph URL: https://github.com/lib-ruby-parser/lib-ruby-parser/issues/46
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"panicked at 'internal error: entered unreachable code: unsupported heredoc_dedent argument str'","articleBody":"for given input:\r\n[in.zip](https://github.com/lib-ruby-parser/lib-ruby-parser/files/7272221/in.zip)\r\n\r\nwith following code:\r\n```rust\r\nuse lib_ruby_parser::{Parser, ParserOptions};\r\n\r\nfn main() {\r\n let filepath = \"\u003cinput file\u003e\";\r\n let data = std::fs::read(filepath).unwrap();\r\n\r\n let options = ParserOptions {\r\n buffer_name: String::from(\"(eval)\"),\r\n record_tokens: false,\r\n ..Default::default()\r\n };\r\n Parser::new(data, options).do_parse();\r\n}\r\n```\r\n\r\nhas output:\r\n\r\n```\r\nthread 'main' panicked at 'internal error: entered unreachable code: unsupported heredoc_dedent argument str', /home/szx5097/.cargo/registry/src/github.com-1ecc6299db9ec823/lib-ruby-parser-3.0.9/src/builder.rs:460:13\r\nstack backtrace:\r\n 0: rust_begin_unwind\r\n 1: core::panicking::panic_fmt\r\n 2: lib_ruby_parser::builder::Builder::heredoc_dedent\r\n at /home/szx5097/.cargo/registry/src/github.com-1ecc6299db9ec823/lib-ruby-parser-3.0.9/src/builder.rs:460:13\r\n 3: lib_ruby_parser::parser::parser::Parser::yyaction\r\n at /home/szx5097/.cargo/registry/src/github.com-1ecc6299db9ec823/lib-ruby-parser-3.0.9/src/parser/parser.rs:9371:43\r\n 4: lib_ruby_parser::parser::parser::Parser::parse\r\n at /home/szx5097/.cargo/registry/src/github.com-1ecc6299db9ec823/lib-ruby-parser-3.0.9/src/parser/parser.rs:11302:35\r\n 5: lib_ruby_parser::parser::parser::Parser::do_parse\r\n at /home/szx5097/.cargo/registry/src/github.com-1ecc6299db9ec823/lib-ruby-parser-3.0.9/src/parser/parser.rs:15244:9\r\n```","author":{"url":"https://github.com/charlesxsh","@type":"Person","name":"charlesxsh"},"datePublished":"2021-10-02T20:57:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/46/lib-ruby-parser/issues/46"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:963786de-3f57-acbc-f8b1-3dd45b9f8837 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 891A:F83DC:773D37:99A76E:6990C125 |
| html-safe-nonce | d22d3fc42d22f283a229b15522a6f8971a998c8bedb9e7e7dd350f8534f7f5b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTFBOkY4M0RDOjc3M0QzNzo5OUE3NkU6Njk5MEMxMjUiLCJ2aXNpdG9yX2lkIjoiMzE3ODQ4MzAzMjk4MzEyNjMwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9f45a656d3f2d655d430bbc067d93195c58a934e8340519695e96650cb0089e7 |
| hovercard-subject-tag | issue:1014169435 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lib-ruby-parser/lib-ruby-parser/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b001a10df55f4ccbad5bf04dcbac17017937ef1b4ab3944c82027eb7e38fbc9f/lib-ruby-parser/lib-ruby-parser/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b001a10df55f4ccbad5bf04dcbac17017937ef1b4ab3944c82027eb7e38fbc9f/lib-ruby-parser/lib-ruby-parser/issues/46 |
| og:image:alt | for given input: in.zip with following code: use lib_ruby_parser::{Parser, ParserOptions}; fn main() { let filepath = ""; let data = std::fs::read(filepath).unwrap(); let options = Pars... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | charlesxsh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/lib-ruby-parser/lib-ruby-parser git https://github.com/lib-ruby-parser/lib-ruby-parser.git |
| octolytics-dimension-user_id | 71789678 |
| octolytics-dimension-user_login | lib-ruby-parser |
| octolytics-dimension-repository_id | 298071274 |
| octolytics-dimension-repository_nwo | lib-ruby-parser/lib-ruby-parser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 298071274 |
| octolytics-dimension-repository_network_root_nwo | lib-ruby-parser/lib-ruby-parser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width