src-d / lookout

Assisted code review, running custom code analyzers on pull requests
https://docs.sourced.tech/lookout
GNU Affero General Public License v3.0
149 stars 36 forks source link

error when running on freeCodeCamp #305

Closed smola closed 6 years ago

smola commented 6 years ago
$ git clone git@github.com:jlouiss/freeCodeCamp.git
$ cd freeCodeCamp
$ lookout-sdk review -v ipv4://localhost:2000
INFO:4af0:EventListener:new ReviewEvent
INFO:4af0:AnalyzerManager:cache miss: style.format.analyzer.FormatAnalyzer
INFO:4af0:AnalyzerManager:training: style.format.analyzer.FormatAnalyzer
INFO:4af0:FormatAnalyzer:train file:///tmp/freeCodeCamp 84002e6e0298e430d34382cfcd622e5804007f9e {'debug_parsing': False, 'line_length_limit': 500, 'lower_bound_instances': 500, 'n_estimators': 10, 'n_iter': 5, 'parents_depth': 2, 'prune_attributes': False, 'prune_branches_algorithms': ['reduced-error'], 'prune_dataset_ratio': 0.2, 'random_state': 42,'siblings_window': 5, 'top_down_greedy_budget': TopDownGreedyBudget(absolute=False, value=0.5), 'uncertain_attributes': True}
INFO:4af0:FormatAnalyzer:training on 180 javascript files
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/add-loop-protect.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/bindings.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/code-storage.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/code-uri.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/create-editor.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/detect-unsafe-code-stream.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/display-test-results.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/end.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/execute-challenge-stream.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/get-iframe.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/init.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/output-display.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/phone-scroll-lock.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/report-issue.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/run-tests-stream.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/show-completion.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/step-challenge.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/commonFramework/update-preview.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/frame-runner.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/index.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “typeof”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/main.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/rechallenge/throwers.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/rechallenge/transformers.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “&&”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/analytics-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “&&”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/code-storage-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/err-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/execute-challenge-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/frame-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/hard-go-to-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/night-mode-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/title-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/sagas/window-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/utils/code-uri.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “typeof”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/utils/send-page-analytics.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file client/utils/use-lang-routes.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/redux/entities-reducer.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/redux/fetch-user-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/redux/load-current-challenge-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/redux/reducer.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/redux/selectors.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/index.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/actions.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/answer-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/bug-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/completion-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/fetch-challenges-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/map-ui-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/next-challenge-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/reducer.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/reset-challenge-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/selectors.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/step-challenge-epic.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/redux/step-challenge-epic.test.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “delete”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/challenges/utils.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/routes/settings/redux/update-user-saga.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/toasts/redux/actions.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/toasts/redux/reducer.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/blockNameify.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/create-types.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/empty-protector.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/form.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/get-words.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “*”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/lang.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/app/utils/shallow-equals.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/config.global.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/models/User-Identity.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/models/block.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/models/promo.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/models/user.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/ajax-stream.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/create-name-id-map.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/get-actions-of-type.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/get-first-challenge.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/index.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/jsonp$.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file common/utils/polyvinyl.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “typeof”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file config/secrets.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file gulpfile.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file pm2Start.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file public/js/calculator.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “*”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file public/js/lib/loop-protect/loop-protect.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/bonfireMDNlinks.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/get-challenge-completion.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/get-emails.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/getChallenges.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/index.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/loopbackMigration.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/normalize-seed-files.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file seed/test-challenges.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/a-extendEmail.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/a-extendUser.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “&&”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/a-extendUserIdent.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/a-increase-listeners.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/about.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “/”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/authentication.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/certificate.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/challenge.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/commit.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/explorer.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/home.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “>=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/randomAPIs.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “-”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/redirectHttps.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/redirects.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/restApi.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/settings.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/sitemap.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/story.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/t-wiki.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/user.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/boot/z-lang-redirect.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/component-passport.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/config.development.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/config.local.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/config.production.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/datasources.local.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/add-lang.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/add-return-to.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/csp.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/error-handlers.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/express-rx.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/flash-cheaters.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!==”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/jade-helpers.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “&&”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/keymetrics.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/migrate-completed-challenges.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/sessions.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “*”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/middlewares/validator.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/production-start.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “-”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/server.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “===”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/services/hikes.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/services/job.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/services/map.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “&&”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/services/user.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/ssl-config.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/auth.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “&&”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/commit.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/date-utils.test.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/getFromDisk$.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/index.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/lang-passthrough-urls.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/map.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/middleware.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “||”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/rx.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “=”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/user-stats.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “<”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file server/utils/user-stats.test.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “+”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file test/public/js/loop-protect-test.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “>”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
WARNING:4af0:FeaturesExtractor:could not parse file webpack.config.js with error 'Couldn't find the token in the specified position:
Node role: Operator
Parsed form: “!”
Raw form: “”
Start position: 0, 0, 0
End position: 0, 0, 0', skipping
ERROR:4af0:EventListener:FAIL ?
Traceback (most recent call last):
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/core/event_listener.py", line 161, in wrapped_catch_them_all
    return func(self, request, context)
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/core/event_listener.py", line 182, in wrapped_handle
    return getattr(self.handlers, method_name)(request)
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/core/manager.py", line 66, in process_review_event
    model = analyzer.train(base_ptr, mycfg, self._data_service.get())
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/core/data_requests.py", line 120, in wrapped_with_uasts_and_contents
    return func(cls, ptr, config, data_request_stub, files=files, **data)
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/style/format/analyzer.py", line 113, in train
    X, y, _ = fe.extract_features(f[1] for f in sorted(files.items()))
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/style/format/features.py", line 281, in extract_features
    offset = self._inplace_write_vnode_features(vnodes, parents, file_lines, offset, X, vn)
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/style/format/features.py", line 579, in _inplace_write_vnode_features
    self._get_right_sibling_features(right_vnode), position, col_offset, X)
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/style/format/features.py", line 457, in _get_right_sibling_features
    *self._get_role_indices(right_sibling_vnode))
  File "/home/smola/dev/go/src/github.com/src-d/style-analyzer/lookout/style/format/features.py", line 436, in _get_role_indices
    role_indices[self.roles.ROLES_INDEX[role]] += 1
KeyError: 'NOOP'
smola commented 6 years ago

Sorry, this belongs to style-analyzer.