Closed EgorBu closed 5 years ago
Thanks! Can you provide your config.yml just to make sure we use the same stuff?
Yes, of course. It's default one
server: 0.0.0.0:2000
db: sqlite:////tmp/lookout.sqlite
fs: /tmp
One more repo with the same issue:
https://github.com/webpack/webpack --to babe736cfa1ef7e8014ed32ba4a4ec38049dce14 --from 3e74cb428af04eedac60ae13d2420d2b5bd3bde1
@EgorBu: was this still a problem during your last runs?
@EgorBu ping
I run quality report run yesterday and yes, the problem still exists.
So, the problem is in bblfsh and happens on this file: https://github.com/meteor/meteor/blob/0fcc7ddd46d0ef8a278376ba64538210486ab646/packages/accounts-password/email_tests_setup.js
bblfsh does not create offset in some cases. Here is the begging of uast tree:
# Positions Token Internal Role Roles Tree
line: 1 col: 1 line: 1 col: 1 || File FILE
line: 1 col: 1 line: 1 col: 1 || CommentLine ┣ COMMENT
line: 1 col: 1 line: 1 col: 1 || Program ┣ MODULE
offset: 190 line: 6 col: 1 offset: 190 line: 6 col: 1 || VariableDeclaration ┃ ┣ STATEMENT, DECLARATION, VARIABLE
line: 1 col: 1 line: 1 col: 1 || CommentLine ┃ ┃ ┣ COMMENT
offset: 3 line: 2 col: 1 offset: 3 line: 2 col: 1 | a mechanism to inte| CommentLine ┃ ┃ ┣ COMMENT
offset: 67 line: 3 col: 1 offset: 67 line: 3 col: 1 | the string "interce| CommentLine ┃ ┃ ┣ COMMENT
offset: 133 line: 4 col: 1 offset: 133 line: 4 col: 1 | be retrieved using | CommentLine ┃ ┃ ┣ COMMENT
offset: 187 line: 5 col: 1 offset: 187 line: 5 col: 1 || CommentLine ┃ ┃ ┣ COMMENT
offset: 196 line: 6 col: 7 offset: 196 line: 6 col: 7 || VariableDeclarator ┃ ┃ ┣ DECLARATION, VARIABLE
offset: 196 line: 6 col: 7 offset: 196 line: 6 col: 7 |interceptedEmails| Identifier ┃ ┃ ┃ ┣ EXPRESSION, IDENTIFIER
offset: 216 line: 6 col: 27 offset: 216 line: 6 col: 27 || ObjectExpression ┃ ┃ ┃ ┗ INITIALIZATION, EXPRESSION, MAP, LITERAL
Hugo said that lastest driver does not have this bug.
Feature extractor couldn't extract features from https://github.com/meteor/meteor (from
62fa9927ce34cff064cc3991439553e7c52b5258
toc3309b123a7220ac24cbe73661184ee946bca01f
)How to reproduce: 1) Launch format analyzer
analyzer run lookout.style.format -c config.yml --log-level DEBUG
2) train the modellookout push ipv4://localhost:2000 --git-dir /path/to/meteor --from 62fa9927ce34cff064cc3991439553e7c52b5258 --to c3309b123a7220ac24cbe73661184ee946bca01f