documentationjs / documentationjs/documentation

flow type errors with this as a dependency

Open
#785 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.8k
Forks
481
PR merge metrics
No merged PRs in 30d

Description

project is: https://github.com/bevry/typechecker

node is 7.9.0, tried on flow 0.37.4 and 0.46.0

```
> npm run our:verify:flow

> typechecker@4.4.1 our:verify:flow /Users/balupton/Projects/active/typechecker
> flow check

node_modules/documentation/lib/filter_access.js:22
22: return comment.kind === 'note' ||
^^^^ property `kind`. Property not found in
22: return comment.kind === 'note' ||
^^^^^^^ Comment

node_modules/documentation/lib/filter_access.js:23
23: (!comment.ignore && levels.indexOf(String(comment.access)) !== -1);
^^^^^^ property `access`. Property not found in
23: (!comment.ignore && levels.indexOf(String(comment.access)) !== -1);
^^^^^^^ Comment

node_modules/documentation/lib/flow_doctrine.js:47
47: function flowDoctrine(type /*: Object */) /*: DoctrineType*/ {
^^^^^^^^^^^^ identifier `DoctrineType`. Could not resolve name

node_modules/documentation/lib/garbage_collect.js:4
4: delete comment.context.code;
^^^^^^^ property `context`. Property not found in
4: delete comment.context.code;
^^^^^^^ Comment

node_modules/documentation/lib/garbage_collect.js:5
5: delete comment.context.ast;
^^^^^^^ property `context`. Property not found in
5: delete comment.context.ast;
^^^^^^^ Comment

node_modules/documentation/lib/github.js:16
16: var repoPath = findGit(comment.context.file);
^^^^^^^ property `context`. Property not found in
16: var repoPath = findGit(comment.context.file);
^^^^^^^ Comment

node_modules/documentation/lib/github.js:19
19: var fileRelativePath = comment.context.file
^^^^^^^ property `context`. Property not found in
19: var fileRelativePath = comment.context.file
^^^^^^^ Comment

node_modules/documentation/lib/github.js:25
25: comment.context.github = {
^^^^^^^ property `context`. Property not found in
25: comment.context.github = {
^^^^^^^ Comment

node_modules/documentation/lib/github.js:29
29: comment.context.loc.start.line +
^^^^^^^ property `context`. Property not found in
29: comment.context.loc.start.line +
^^^^^^^ Comment

node_modules/documentation/lib/github.js:32
32: comment.context.loc.end.line,
^^^^^^^ property `context`. Property not found in
32: comment.context.loc.end.line,
^^^^^^^ Comment

node_modules/documentation/lib/infer/access.js:29
29: re.test(comment.name)
^^^^^^^^^^^^ property `name` of unknown type. This type is incompatible with the expected param type of
363: test(string: string): boolean;
^^^^^^ string. See lib: /private/tmp/flow/flowlib_337089cc/core.js:363

node_modules/documentation/lib/infer/access.js:31
31: comment.access = 'private';
^^^^^^ property `access`. Property not found in
31: comment.access = 'private';
^^^^^^^ Comment

node_modules/documentation/lib/infer/augments.js:14
14: if (comment.augments.length) {
^^^^^^^^ property `augments`. Property not found in
14: if (comment.augments.length) {
^^^^^^^ Comment

node_modules/documentation/lib/infer/augments.js:18
18: var path = findTarget(comment.context.ast);
^^^^^^^ property `context`. Property not found in
18: var path = findTarget(comment.context.ast);
^^^^^^^ Comment

node_modules/documentation/lib/infer/augments.js:32
32: comment.augments.push({
^^^^^^^^ property `augments`. Property not found in
32: comment.augments.push({
^^^^^^^ Comment

node_modules/documentation/lib/infer/augments.js:45
45: comment.augments.push({
^^^^^^^^ property `augments`. Property not found in
45: comment.augments.push({
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:23
23: comment.kind = 'class';
^^^^ property `kind`. Property not found in
23: comment.kind = 'class';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:26
26: comment.kind = 'member';
^^^^ property `kind`. Property not found in
26: comment.kind = 'member';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:28
28: comment.kind = 'class';
^^^^ property `kind`. Property not found in
28: comment.kind = 'class';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:30
30: comment.kind = 'function';
^^^^ property `kind`. Property not found in
30: comment.kind = 'function';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:33
33: comment.kind = 'typedef';
^^^^ property `kind`. Property not found in
33: comment.kind = 'typedef';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:35
35: comment.kind = 'interface';
^^^^ property `kind`. Property not found in
35: comment.kind = 'interface';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:38
38: comment.kind = 'constant';
^^^^ property `kind`. Property not found in
38: comment.kind = 'constant';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:54
54: comment.kind = 'member';
^^^^ property `kind`. Property not found in
54: comment.kind = 'member';
^^^^^^^ Comment

node_modules/documentation/lib/infer/kind.js:61
61: if (comment.context.ast) {
^^^^^^^ property `context`. Property not found in
61: if (comment.context.ast) {
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:10
10: return (comment.kind === 'module' && comment.name) ||
^^^^ property `kind`. Property not found in
10: return (comment.kind === 'module' && comment.name) ||
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:11
11: pathParse(comment.context.file).name;
^^^^^^^ property `context`. Property not found in
11: pathParse(comment.context.file).name;
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:33
33: var lends = parse(comment.node.value).lends;
^^^^^ property `lends`. Property not found in
33: var lends = parse(comment.node.value).lends;
^^^^^^^^^^^^^^^^^^^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:168
168: comment.memberof = memberof.replace(isPrototype, '');
^^^^^^^^ property `memberof`. Property not found in
168: comment.memberof = memberof.replace(isPrototype, '');
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:169
169: comment.scope = 'instance';
^^^^^ property `scope`. Property not found in
169: comment.scope = 'instance';
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:177
177: comment.memberof = memberof.replace(isInstanceMember, '');
^^^^^^^^ property `memberof`. Property not found in
177: comment.memberof = memberof.replace(isInstanceMember, '');
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:178
178: comment.scope = 'instance';
^^^^^ property `scope`. Property not found in
178: comment.scope = 'instance';
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:213
213: comment.name === 'exports'
^^^^ property `name`. Property not found in
213: comment.name === 'exports'
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:215
215: comment.name = inferModuleName(currentModule || comment);
^^^^ property `name`. Property not found in
215: comment.name = inferModuleName(currentModule || comment);
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:230
230: comment.memberof = identifiers.slice(0, -1).join('.');
^^^^^^^^ property `memberof`. Property not found in
230: comment.memberof = identifiers.slice(0, -1).join('.');
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:231
231: comment.scope = 'instance';
^^^^^ property `scope`. Property not found in
231: comment.scope = 'instance';
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:233
233: comment.memberof = identifiers.join('.');
^^^^^^^^ property `memberof`. Property not found in
233: comment.memberof = identifiers.join('.');
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:235
235: comment.scope = explicitScope;
^^^^^ property `scope`. Property not found in
235: comment.scope = explicitScope;
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:237
237: comment.scope = 'static';
^^^^^ property `scope`. Property not found in
237: comment.scope = 'static';
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:246
246: if (comment.tags.some(tag => tag.title === 'name')) {
^^^^ property `tags`. Property not found in
246: if (comment.tags.some(tag => tag.title === 'name')) {
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:258
258: if (!comment.context.ast) {
^^^^^^^ property `context`. Property not found in
258: if (!comment.context.ast) {
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:277
277: if (comment.kind === 'module') {
^^^^ property `kind`. Property not found in
277: if (comment.kind === 'module') {
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:281
281: var path = comment.context.ast;
^^^^^^^ property `context`. Property not found in
281: var path = comment.context.ast;
^^^^^^^ Comment

node_modules/documentation/lib/infer/membership.js:352
352: [pathParse(comment.context.file).name],
^^^^^^^ property `context`. Property not found in
352: [pathParse(comment.context.file).name],
^^^^^^^ Comment

node_modules/documentation/lib/infer/name.js:19
19: comment.name = comment.alias;
^^^^ property `name`. Property not found in
19: comment.name = comment.alias;
^^^^^^^ Comment

node_modules/documentation/lib/infer/name.js:23
23: if (comment.kind === 'module') {
^^^^ property `kind`. Property not found in
23: if (comment.kind === 'module') {
^^^^^^^ Comment

node_modules/documentation/lib/infer/name.js:24
24: comment.name = pathParse(comment.context.file).name;
^^^^ property `name`. Property not found in
24: comment.name = pathParse(comment.context.file).name;
^^^^^^^ Comment

node_modules/documentation/lib/infer/name.js:24
24: comment.name = pathParse(comment.context.file).name;
^^^^^^^ property `context`. Property not found in
24: comment.name = pathParse(comment.context.file).name;
^^^^^^^ Comment

node_modules/documentation/lib/infer/name.js:30
30: comment.name = node.name;
^^^^ property `name`. Property not found in
30: comment.name = node.name;
^^^^^^^ Comment

node_modules/documentation/lib/infer/name.js:34
34: comment.name = node.value;
^^^^ property `name`. Property not found in
34: comment.name = node.value;
^^^^^^^ Comment

... 84 more errors (only 50 out of 134 errors displayed)
To see all errors, re-run Flow with --show-all-errors
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! typechecker@4.4.1 our:verify:flow: `flow check`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the typechecker@4.4.1 our:verify:flow script 'flow check'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the typechecker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! flow check
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs typechecker
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls typechecker
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/balupton/.npm/_logs/2017-05-15T07_53_15_399Z-debug.log
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.