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: patch-diff.githubusercontent.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:016fcf0c-784f-562a-2154-29aadf4bd1d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CEC:38B1A1:2722988:35B7ECD:697368C0 |
| html-safe-nonce | 6ee0bee6a5fea75cb9d070b783878bcb181c4d2d44475fbf64e11fd496ff7222 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0VDOjM4QjFBMToyNzIyOTg4OjM1QjdFQ0Q6Njk3MzY4QzAiLCJ2aXNpdG9yX2lkIjoiNzAzMDQwMTY5MzM2NzEwMTYzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a5f802868590af2975b65228960e4b0cb065e38e188eebc8d57ec4c948c2116 |
| 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 | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| 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 | fe8be790582ef7a55477ce1918ac0ed16b106d31 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width