Title: AttributeError: 'NoneType' object has no attribute 'type' · Issue #65 · natural/java2python · GitHub
Open Graph Title: AttributeError: 'NoneType' object has no attribute 'type' · Issue #65 · natural/java2python
X Title: AttributeError: 'NoneType' object has no attribute 'type' · Issue #65 · natural/java2python
Description: Hello~ run the coomand: python2 j2py CoNLLStreamExtractor.java Returned the following bug: line 103:11 no viable alternative at input u'void' line 103:11 no viable alternative at input u'void' line 111:45 no viable alternative at input u...
Open Graph Description: Hello~ run the coomand: python2 j2py CoNLLStreamExtractor.java Returned the following bug: line 103:11 no viable alternative at input u'void' line 103:11 no viable alternative at input u'void' line...
X Description: Hello~ run the coomand: python2 j2py CoNLLStreamExtractor.java Returned the following bug: line 103:11 no viable alternative at input u'void' line 103:11 no viable alternative at input u...
Opengraph URL: https://github.com/natural/java2python/issues/65
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: 'NoneType' object has no attribute 'type'","articleBody":"Hello~ run the coomand: `python2 j2py CoNLLStreamExtractor.java` \r\n\r\n**Returned the following bug:** \r\n\r\n```\r\nline 103:11 no viable alternative at input u'void'\r\nline 103:11 no viable alternative at input u'void'\r\nline 111:45 no viable alternative at input u'\u003e'\r\nline 186:8 no viable alternative at input u'List'\r\nline 186:8 no viable alternative at input u'List'\r\nline 186:43 mismatched input u'(' expecting SEMI\r\nTraceback (most recent call last):\r\n File \"j2py\", line 259, in \u003cmodule\u003e\r\n sys.exit(runMain(configScript(sys.argv[1:])))\r\n File \"j2py\", line 57, in runMain\r\n return runOneOrMany(options)\r\n File \"j2py\", line 83, in runOneOrMany\r\n return runTransform(options)\r\n File \"j2py\", line 128, in runTransform\r\n transformAST(tree, config)\r\n File \"D:\\Python\\python27\\lib\\site-packages\\java2python\\compiler\\__init__.py\", line 36, in transformAST\r\n for node in selector.walk(tree):\r\n File \"D:\\Python\\python27\\lib\\site-packages\\java2python\\lang\\selector.py\", line 68, in walk\r\n for item in self.walk(child):\r\n File \"D:\\Python\\python27\\lib\\site-packages\\java2python\\lang\\selector.py\", line 68, in walk\r\n for item in self.walk(child):\r\n File \"D:\\Python\\python27\\lib\\site-packages\\java2python\\lang\\selector.py\", line 65, in walk\r\n for item in self(tree):\r\n File \"D:\\Python\\python27\\lib\\site-packages\\java2python\\lang\\selector.py\", line 163, in __call__\r\n if tree.token.type == self.key:\r\nAttributeError: 'NoneType' object has no attribute 'type'\r\n```\r\n\r\nBest wishes and good luck to you!","author":{"url":"https://github.com/xiaoxiaoAurora","@type":"Person","name":"xiaoxiaoAurora"},"datePublished":"2020-01-14T02:27:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/65/java2python/issues/65"}
| 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:8b0c3842-4388-0913-b820-faf6a8a55c6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A5EA:CED76:102BFD7:1663B8F:696A951E |
| html-safe-nonce | 03f49c50e45709d90243a3ebbb880d7eb5dabadc517da428a3cc5992ea13eeac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUVBOkNFRDc2OjEwMkJGRDc6MTY2M0I4Rjo2OTZBOTUxRSIsInZpc2l0b3JfaWQiOiIyMDc3NzA0OTA1MjQ4MzgwMTkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ca5acbc567c62274632bcda9063a8914a065624dccf05166fcc5c77834810fef |
| hovercard-subject-tag | issue:549293482 |
| 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/natural/java2python/65/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45f30e30db452ce327493f08f8df80189761f4aa4186051f0a3aa3443cf4797b/natural/java2python/issues/65 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45f30e30db452ce327493f08f8df80189761f4aa4186051f0a3aa3443cf4797b/natural/java2python/issues/65 |
| og:image:alt | Hello~ run the coomand: python2 j2py CoNLLStreamExtractor.java Returned the following bug: line 103:11 no viable alternative at input u'void' line 103:11 no viable alternative at input u'void' line... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xiaoxiaoAurora |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/natural/java2python git https://github.com/natural/java2python.git |
| octolytics-dimension-user_id | 146692 |
| octolytics-dimension-user_login | natural |
| octolytics-dimension-repository_id | 3298542 |
| octolytics-dimension-repository_nwo | natural/java2python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3298542 |
| octolytics-dimension-repository_network_root_nwo | natural/java2python |
| 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 | 31496a13b80a2f6ad77d6c617ee2255a3545b539 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width