Title: Parser crashing when the program is not terminated with a newline · Issue #11 · pythonql/pythonql · GitHub
Open Graph Title: Parser crashing when the program is not terminated with a newline · Issue #11 · pythonql/pythonql
X Title: Parser crashing when the program is not terminated with a newline · Issue #11 · pythonql/pythonql
Description: If the program is not terminated with a newline, the parser crashes with an error: #coding: pythonql print([ select y for x in [1,2,3] let y = x**2 ]) C:\Python\Scripts\PythonQL>python testPQL.py 'NoneType' object has no attribute 'linen...
Open Graph Description: If the program is not terminated with a newline, the parser crashes with an error: #coding: pythonql print([ select y for x in [1,2,3] let y = x**2 ]) C:\Python\Scripts\PythonQL>python testPQL.py '...
X Description: If the program is not terminated with a newline, the parser crashes with an error: #coding: pythonql print([ select y for x in [1,2,3] let y = x**2 ]) C:\Python\Scripts\PythonQL>python testPQL.p...
Opengraph URL: https://github.com/pythonql/pythonql/issues/11
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parser crashing when the program is not terminated with a newline","articleBody":"If the program is not terminated with a newline, the parser crashes with an error:\r\n```\r\n#coding: pythonql\r\n\r\nprint([ select y for x in [1,2,3] let y = x**2 ])\r\n```\r\n\r\nC:\\Python\\Scripts\\PythonQL\u003epython testPQL.py\r\n'NoneType' object has no attribute 'lineno'\r\n File \"testPQL.py\", line 1\r\nSyntaxError: encoding problem: pythonql","author":{"url":"https://github.com/pavelvelikhov","@type":"Person","name":"pavelvelikhov"},"datePublished":"2017-04-02T19:22:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/11/pythonql/issues/11"}
| 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:bda2c4c1-949a-fd7c-2f6c-028e5c6af116 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B824:18DE9:1042BF3:16CF7E4:6982118B |
| html-safe-nonce | 479032d8673b90870c7ad484f86872893de8884134904d780234aa6f1e905d9b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODI0OjE4REU5OjEwNDJCRjM6MTZDRjdFNDo2OTgyMTE4QiIsInZpc2l0b3JfaWQiOiIzMzM5NTc5MjUwNDM2MDg0MTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0330f243ba60b9f657363d4bacf26606aff83d8c51e490c0031f1d663999b629 |
| hovercard-subject-tag | issue:218786692 |
| 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/pythonql/pythonql/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d06294a9ce97f7ca0433e36aa37a735ea70a587d78db8d8f04b68e8116a9211b/pythonql/pythonql/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d06294a9ce97f7ca0433e36aa37a735ea70a587d78db8d8f04b68e8116a9211b/pythonql/pythonql/issues/11 |
| og:image:alt | If the program is not terminated with a newline, the parser crashes with an error: #coding: pythonql print([ select y for x in [1,2,3] let y = x**2 ]) C:\Python\Scripts\PythonQL>python testPQL.py '... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pavelvelikhov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d53e73daff0fc9f0668e1e0628f2f5fa83e1e7e674b56f246f2f1c9ee32b15f |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonql/pythonql git https://github.com/pythonql/pythonql.git |
| octolytics-dimension-user_id | 22842849 |
| octolytics-dimension-user_login | pythonql |
| octolytics-dimension-repository_id | 58056458 |
| octolytics-dimension-repository_nwo | pythonql/pythonql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 58056458 |
| octolytics-dimension-repository_network_root_nwo | pythonql/pythonql |
| 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 | d5cf820dd454dbac0c84a97275f8ce4b224eba3a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width