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: patch-diff.githubusercontent.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:137a91f9-04d2-237a-2af5-98bc3ef08357 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8332:576C0:C8DE4:116101:6981D0B0 |
| html-safe-nonce | 4efd220a8f65fd4ba853e9865ed3448e1c7f816177c9ca44cd9c9a0a25a0c3aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzMyOjU3NkMwOkM4REU0OjExNjEwMTo2OTgxRDBCMCIsInZpc2l0b3JfaWQiOiI1NzQyOTM5NjQyNDI5Mjk2ODE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 39c4d65adc64f0bb124c446edce7e8df234f26e63984a4bb7a2aa3a41562c585 |
| 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 | ebfdf8d3e0fd17b103f41cc6696d84938694ebebdfecaf11fe00dbe4a9785801 |
| 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 | ac96edcf00b294dfaa8f1b86d06a198589e60041 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width