Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect incremental sync states #596

Closed
Avi-D-coder opened this issue Mar 26, 2019 · 13 comments
Closed

Incorrect incremental sync states #596

Avi-D-coder opened this issue Mar 26, 2019 · 13 comments

Comments

@Avi-D-coder
Copy link
Contributor

Result from CocInfo
vim version: NVIM v0.4.0-430-g8698830cb
node version: v11.12.0
coc.nvim version: 0.0.62
term: xterm-256color
platform: linux

Describe the bug
This bug has been present since I started using Coc.
Diagnostics occasionally appear for buffer states that never existed in vim.
I have observed this bug with several language servers all of which support incremental sync.
After a few seconds plus inserting deleting a space diagnostics become correct.

I'll trace when I get a chance. So I know exactly what is being sent.
Is anyone else having this issue?
Screenshot_20190326_021936

@chemzqm
Copy link
Member

chemzqm commented Mar 26, 2019

The diagnostics would only get refreshed on InsertLeave by default.

@resolritter
Copy link

resolritter commented Mar 29, 2019

It could be happening when diagnostics are not refreshed on Insert Mode. Theoretically:

  1. Incomplete text ends up being sent after TextChanged or after leaving Insert Mode briefly and re-entering it again (e.g. using snippets). This results in error diagnosis after a small delay.
  2. You enter Insert Mode - diagnostics don't refresh, so the error keeps lingering in there.

IIRC the document is still syncing during Insert Mode, it's just that diagnostics aren't being updated.
https://github.com/neoclide/coc.nvim/blob/master/plugin/coc.vim#L162

Due to this syncing the server could be building diagnostic analysis for incomplete states which don't exist after leaving Insert Mode. It seems like InsertLeave is delegating to the same action as TextChangedI so that shouldn't be a problem as far as behavior goes.

await this.onCharacterType(pre, bufnr)

await this.onCharacterType('\n', bufnr, true)

Perhaps the place to look at would be

doc.forceSync()

and also forcing the sync when insertLeave is true.

Is anyone else having this issue?

I've had similar problems with RLS because it's slow, so diagnostic takes time to build and sometimes doesn't go away after InsertLeave. Unsure how to deal with it though because I don't code in Rust much.

@chenlijun99
Copy link
Contributor

I'm facing the same issue with coc-tsserver.

Screenshot from 2019-04-14 20-10-27

@chemzqm
Copy link
Member

chemzqm commented Apr 15, 2019

@Free-Easy looks like it's caused by slow of language server, please upload log of tsserver.

@chenlijun99
Copy link
Contributor

chenlijun99 commented Apr 15, 2019

Ok. When I encounter this problem again, I'll upload.

@suo
Copy link

suo commented Apr 17, 2019

I'm facing the same problem consistently with both cquery and ccls. Diagnostics will show errors on buffer states that never existed, or really old ones. These diagnostics will persist until I force a sync with :e.

Here is the log from ccls when this happened, but it doesn't seem very informative: https://gist.github.com/suo/7cf1540552b71fc280b024f4b4887dd8.

This problem only started happening when I updated to the latest release, so it could have been a recently introduced regression. I don't know how to check release I was on before though :(

@escorponox
Copy link

I'm also facing this problem. Diagnostics stop refreshing randomly and I have to :CocRestart. I also have the feeling that this started to happen a couple of releases ago.

@iamcco
Copy link
Contributor

iamcco commented Apr 22, 2019

I have meet this problem several times.

@chemzqm
Copy link
Member

chemzqm commented Apr 22, 2019

I have missed this problem for sometime, please turn on verbose output of language server and upload the output so I can know what happened.

@suo
Copy link

suo commented Apr 22, 2019

I rolled back to v0.0.56 and I'm pretty sure things work (I will continue to use throughout the day to confirm). I can binary search until I find the breaking release, although it may take a few days.

Edit: I was wrong, v0.0.56 still has the issue. I am rolling back further

@lisanhu
Copy link

lisanhu commented Aug 2, 2019

I'm still having this problem, and I found an example which will consistently reproduce the problem on my machine

#ifndef _CHAINING_  
#define _CHAINING_                                                       
  
typedef struct ch_anchor_t {  
                                                                         
} ch_anchor_t;  
  
#endif  

So suppose you have a file like the above code snippet

Then you put your cursor on the line: typedef ...

Then press O to insert a line above.

Enter: /*<cr><cr><cr><backspace>/
So your comment should be completed, your code will look like the snippet below.

#ifndef _CHAINING_  
#define _CHAINING_                                                       
  
/**  
 *  
 */  
typedef struct ch_anchor_t {  
                                                                         
} ch_anchor_t;  
  
#endif 

And then you exit the insert mode using <esc>, you will be seeing a red mark marking the beginning of the comment. It says something about your comment is not finished correctly. However, the error message is incorrect.

The way I remove this error is to write the file and reload it using ":e" command, or using ":CocRestart"

It's not a big problem, but it's annoying.

I'm using clangd-8 BTW.

Maybe this type of comments will shadow everything afterward before it's completed, and after completing the comments, the language server will need to process a lot more new symbols that slow it down, this might be the reason why I can constantly reproduce the problem.

@iamcco
Copy link
Contributor

iamcco commented Aug 3, 2019

Also reproduce with below javascript code.

const fs = require('fs')

function test () {
}

Cursor on the line: function ...

Then press O to insert a line above.

Enter: /*<cr><cr><cr><cr><backspace>/<esc>

then got the follow diagnostic:

屏幕快照 2019-08-03 上午9 47 07

tsserver channel output

[Info  - 上午9:55:03] Forking TSServer
PATH: /Users/aioiyuuko/go/bin:/Users/aioiyuuko/.rbenv/shims:/Users/aioiyuuko/google-cloud-sdk/bin:/Users/aioiyuuko/.pub-cache/bin:/Users/aioiyuuko/sdk/flutter/bin/cache/dart-sdk/bin:/Users/aioiyuuko/sdk/flutter/bin:/Users/aioiyuuko/.cargo/bin:/Users/aioiyuuko/.config/npm/bin:/Users/aioiyuuko/Library/Android/sdk/platform-tools:/Users/aioiyuuko/Library/Android/sdk/tools:/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/bin:/Users/aioiyuuko/.pyenv/shims:/Users/aioiyuuko/.fzf/bin:/Applications/kitty.app/Contents/MacOS:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin 
[Info  - 上午9:55:04] Started TSServer
{
  "path": "/Users/aioiyuuko/.config/coc/extensions/node_modules/coc-tsserver/node_modules/_typescript@3.5.1@typescript/lib",
  "_pathLabel": "",
  "_api": {
    "versionString": "3.5.1",
    "version": "3.5.1"
  }
}
[Trace  - 上午9:55:04] Sending request: compilerOptionsForInferredProjects (0). Response expected: no. Current queue length: 0
Arguments: {
    "options": {
        "module": "commonjs",
        "target": "es2016",
        "jsx": "preserve",
        "allowJs": true,
        "allowSyntheticDefaultImports": true,
        "allowNonTsExtensions": true
    }
}
[Trace  - 上午9:55:04] Sending request: updateOpen (1). Response expected: no. Current queue length: 0
Arguments: {
    "openFiles": [
        {
            "file": "/Users/aioiyuuko/my/test/t.js",
            "fileContent": "const fs = require('fs')\n\nfunction test () {\n}\n",
            "scriptKindName": "JS",
            "projectRootPath": "/Users/aioiyuuko/my/test"
        }
    ]
}
[Trace  - 上午9:55:04] Sending request: configurePlugin (2). Response expected: no. Current queue length: 0
Arguments: {
    "pluginName": "typescript-tslint-plugin",
    "configuration": {
        "alwaysShowRuleFailuresAsWarnings": true,
        "packageManager": "npm"
    }
}
[Trace  - 上午9:55:04] Sending request: configure (3). Response expected: yes. Current queue length: 0
Arguments: {
    "hostInfo": "nvim-coc",
    "formatOptions": {
        "tabSize": 2,
        "indentSize": 2,
        "convertTabsToSpaces": true,
        "newLineCharacter": "\n",
        "insertSpaceAfterCommaDelimiter": true,
        "insertSpaceAfterConstructor": false,
        "insertSpaceAfterSemicolonInForStatements": true,
        "insertSpaceBeforeAndAfterBinaryOperators": true,
        "insertSpaceAfterKeywordsInControlFlowStatements": true,
        "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
        "insertSpaceBeforeFunctionParenthesis": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
        "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
        "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
        "insertSpaceAfterTypeAssertion": false,
        "placeOpenBraceOnNewLineForFunctions": false,
        "placeOpenBraceOnNewLineForControlBlocks": false
    },
    "preferences": {
        "disableSuggestions": false,
        "importModuleSpecifierPreference": "non-relative",
        "quotePreference": "single",
        "allowRenameOfImportPath": true,
        "allowTextChangesInNewFiles": true
    }
}
[Trace  - 上午9:55:04] Event received: typingsInstallerPid (0).
Data: {
    "pid": 70094
}
[Trace  - 上午9:55:05] Event received: projectsUpdatedInBackground (0).
Data: {
    "openFiles": [
        "/Users/aioiyuuko/my/test/t.js"
    ]
}
[Trace  - 上午9:55:05] Response received: configure (3). Request took 1232 ms. Success: true 
[Trace  - 上午9:55:05] Sending request: configure (4). Response expected: yes. Current queue length: 1
Arguments: {
    "hostInfo": "nvim-coc",
    "formatOptions": {
        "tabSize": 2,
        "indentSize": 2,
        "convertTabsToSpaces": true,
        "newLineCharacter": "\n",
        "insertSpaceAfterCommaDelimiter": true,
        "insertSpaceAfterConstructor": false,
        "insertSpaceAfterSemicolonInForStatements": true,
        "insertSpaceBeforeAndAfterBinaryOperators": true,
        "insertSpaceAfterKeywordsInControlFlowStatements": true,
        "insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
        "insertSpaceBeforeFunctionParenthesis": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
        "insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
        "insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
        "insertSpaceAfterTypeAssertion": false,
        "placeOpenBraceOnNewLineForFunctions": false,
        "placeOpenBraceOnNewLineForControlBlocks": false
    },
    "preferences": {
        "disableSuggestions": false,
        "importModuleSpecifierPreference": "non-relative",
        "quotePreference": "single",
        "allowRenameOfImportPath": true,
        "allowTextChangesInNewFiles": true
    }
}
[Trace  - 上午9:55:05] Event received: projectsUpdatedInBackground (0).
Data: {
    "openFiles": [
        "/Users/aioiyuuko/my/test/t.js"
    ]
}
[Trace  - 上午9:55:05] Response received: configure (4). Request took 1234 ms. Success: true 
[Trace  - 上午9:55:05] Sending request: geterr (5). Response expected: yes. Current queue length: 0
Arguments: {
    "delay": 0,
    "files": [
        "/Users/aioiyuuko/my/test/t.js"
    ]
}
[Trace  - 上午9:55:05] Event received: syntaxDiag (0).
Data: {
    "file": "/Users/aioiyuuko/my/test/t.js",
    "diagnostics": []
}
[Trace  - 上午9:55:05] TypeScript Server: trying to cancel ongoing request with sequence number 5
[Trace  - 上午9:55:05] Sending request: geterr (6). Response expected: yes. Current queue length: 0
Arguments: {
    "delay": 0,
    "files": [
        "/Users/aioiyuuko/my/test/t.js"
    ]
}
[Trace  - 上午9:55:05] Event received: semanticDiag (0).
Data: {
    "file": "/Users/aioiyuuko/my/test/t.js",
    "diagnostics": []
}
[Trace  - 上午9:55:05] Event received: syntaxDiag (0).
Data: {
    "file": "/Users/aioiyuuko/my/test/t.js",
    "diagnostics": []
}
[Trace  - 上午9:55:05] Event received: semanticDiag (0).
Data: {
    "file": "/Users/aioiyuuko/my/test/t.js",
    "diagnostics": []
}
[Trace  - 上午9:55:05] Event received: suggestionDiag (0).
Data: {
    "file": "/Users/aioiyuuko/my/test/t.js",
    "diagnostics": [
        {
            "start": {
                "line": 1,
                "offset": 7
            },
            "end": {
                "line": 1,
                "offset": 9
            },
            "text": "'fs' is declared but its value is never read.",
            "code": 6133,
            "category": "suggestion",
            "reportsUnnecessary": true
        },
        {
            "start": {
                "line": 1,
                "offset": 12
            },
            "end": {
                "line": 1,
                "offset": 25
            },
            "text": "File is a CommonJS module; it may be converted to an ES6 module.",
            "code": 80001,
            "category": "suggestion"
        },
        {
            "start": {
                "line": 3,
                "offset": 10
            },
            "end": {
                "line": 3,
                "offset": 14
            },
            "text": "'test' is declared but its value is never read.",
            "code": 6133,
            "category": "suggestion",
            "reportsUnnecessary": true
        }
    ]
}
[Trace  - 上午9:55:05] Async response received: requestCompleted (6). Request took 325 ms.

[Trace - 上午9:55:10] Event received: setTypings (0).
Data: {
"projectName": "/dev/null/inferredProject1*",
"typeAcquisition": {
"enable": true,
"include": [],
"exclude": []
},
"compilerOptions": {
"module": 1,
"target": 3,
"jsx": 1,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"noEmitForJsFiles": true,
"maxNodeModuleJsDepth": 2
},
"typings": [
"/Users/aioiyuuko/Library/Caches/typescript/3.5/node_modules/@types/node/ts3.2/index.d.ts"
],
"unresolvedImports": [
"fs"
],
"kind": "action::set"
}
[Trace - 上午9:55:10] Sending request: documentHighlights (7). Response expected: yes. Current queue length: 0
Arguments: {
"file": "/Users/aioiyuuko/my/test/t.js",
"line": 3,
"offset": 1,
"filesToSearch": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:10] Event received: projectsUpdatedInBackground (0).
Data: {
"openFiles": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:10] Response received: documentHighlights (7). Request took 151 ms. Success: true
Result: [
{
"file": "/Users/aioiyuuko/my/test/t.js",
"highlightSpans": [
{
"start": {
"line": 3,
"offset": 10
},
"end": {
"line": 3,
"offset": 14
},
"kind": "writtenReference"
}
]
}
]
[Trace - 上午9:55:10] Event received: setTypings (0).
Data: {
"projectName": "/dev/null/inferredProject1*",
"typeAcquisition": {
"enable": true,
"include": [],
"exclude": []
},
"compilerOptions": {
"module": 1,
"target": 3,
"jsx": 1,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"noEmitForJsFiles": true,
"maxNodeModuleJsDepth": 2
},
"typings": [
"/Users/aioiyuuko/Library/Caches/typescript/3.5/node_modules/@types/node/ts3.2/index.d.ts"
],
"unresolvedImports": [
"fs"
],
"kind": "action::set"
}
[Trace - 上午9:55:10] Sending request: geterr (8). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:10] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:10] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:10] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 9
},
"text": "'fs' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 12
},
"end": {
"line": 1,
"offset": 25
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
},
{
"start": {
"line": 3,
"offset": 10
},
"end": {
"line": 3,
"offset": 14
},
"text": "'test' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
}
]
}
[Trace - 上午9:55:10] Async response received: requestCompleted (8). Request took 29 ms.
[Trace - 上午9:55:11] Event received: projectsUpdatedInBackground (0).
Data: {
"openFiles": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:11] Sending request: updateOpen (9). Response expected: no. Current queue length: 0
Arguments: {
"changedFiles": [
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": "\n",
"start": {
"line": 2,
"offset": 1
},
"end": {
"line": 2,
"offset": 1
}
}
]
}
]
}
[Trace - 上午9:55:11] Sending request: geterr (10). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:11] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:11] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:11] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 9
},
"text": "'fs' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
},
{
"start": {
"line": 1,
"offset": 12
},
"end": {
"line": 1,
"offset": 25
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
},
{
"start": {
"line": 4,
"offset": 10
},
"end": {
"line": 4,
"offset": 14
},
"text": "'test' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
}
]
}
[Trace - 上午9:55:11] Async response received: requestCompleted (10). Request took 25 ms.
[Trace - 上午9:55:11] Sending request: updateOpen (11). Response expected: no. Current queue length: 0
Arguments: {
"changedFiles": [
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": " /",
"start": {
"line": 3,
"offset": 1
},
"end": {
"line": 3,
"offset": 1
}
}
]
}
]
}
[Trace - 上午9:55:11] Sending request: completionInfo (12). Response expected: yes. Current queue length: 0
Arguments: {
"file": "/Users/aioiyuuko/my/test/t.js",
"line": 3,
"offset": 4,
"includeExternalModuleExports": true,
"includeInsertTextCompletions": true,
"triggerCharacter": "/"
}
[Trace - 上午9:55:11] Response received: completionInfo (12). Request took 12 ms. Success: false . Message: No content available.
[Trace - 上午9:55:12] Sending request: geterr (13). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:12] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:12] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:12] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 9
},
"text": "'fs' is declared but its value is never read.",
"code": 6133,
"category": "suggestion",
"reportsUnnecessary": true
}
]
}
[Trace - 上午9:55:12] Async response received: requestCompleted (13). Request took 12 ms.
[Trace - 上午9:55:12] Sending request: updateOpen (14). Response expected: no. Current queue length: 0
Arguments: {
"changedFiles": [
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": "",
"start": {
"line": 3,
"offset": 4
},
"end": {
"line": 3,
"offset": 4
}
}
]
}
]
}
[Trace - 上午9:55:12] Sending request: geterr (15). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:12] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 5,
"offset": 3
},
"end": {
"line": 5,
"offset": 3
},
"text": "'
/' expected.",
"code": 1010,
"category": "error"
}
]
}
[Trace - 上午9:55:12] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:12] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 12
},
"end": {
"line": 1,
"offset": 25
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
[Trace - 上午9:55:12] Async response received: requestCompleted (15). Request took 15 ms.
[Trace - 上午9:55:13] Sending request: updateOpen (16). Response expected: no. Current queue length: 0
Arguments: {
"changedFiles": [
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": "/\n * ",
"start": {
"line": 3,
"offset": 1
},
"end": {
"line": 3,
"offset": 5
}
}
]
}
]
}
[Trace - 上午9:55:13] Sending request: geterr (17). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:13] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 6,
"offset": 3
},
"end": {
"line": 6,
"offset": 3
},
"text": "'
/' expected.",
"code": 1010,
"category": "error"
}
]
}
[Trace - 上午9:55:13] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:13] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 12
},
"end": {
"line": 1,
"offset": 25
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
[Trace - 上午9:55:13] Async response received: requestCompleted (17). Request took 13 ms.
[Trace - 上午9:55:13] Sending request: updateOpen (18). Response expected: no. Current queue length: 0
Arguments: {
"changedFiles": [
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": " \n * \n",
"start": {
"line": 4,
"offset": 4
},
"end": {
"line": 5,
"offset": 1
}
}
]
}
]
}
[Trace - 上午9:55:13] Sending request: geterr (19). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:13] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 7,
"offset": 3
},
"end": {
"line": 7,
"offset": 3
},
"text": "'
/' expected.",
"code": 1010,
"category": "error"
}
]
}
[Trace - 上午9:55:13] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:13] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 12
},
"end": {
"line": 1,
"offset": 25
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
[Trace - 上午9:55:13] Async response received: requestCompleted (19). Request took 14 ms.
[Trace - 上午9:55:14] Sending request: updateOpen (20). Response expected: no. Current queue length: 0
Arguments: {
"changedFiles": [
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": "",
"start": {
"line": 6,
"offset": 3
},
"end": {
"line": 6,
"offset": 4
}
}
]
},
{
"fileName": "/Users/aioiyuuko/my/test/t.js",
"textChanges": [
{
"newText": "/",
"start": {
"line": 6,
"offset": 3
},
"end": {
"line": 6,
"offset": 3
}
}
]
}
]
}
[Trace - 上午9:55:14] Sending request: completionInfo (21). Response expected: yes. Current queue length: 0
Arguments: {
"file": "/Users/aioiyuuko/my/test/t.js",
"line": 6,
"offset": 4,
"includeExternalModuleExports": true,
"includeInsertTextCompletions": true,
"triggerCharacter": "/"
}
[Trace - 上午9:55:14] Response received: completionInfo (21). Request took 12 ms. Success: false . Message: No content available.
[Trace - 上午9:55:14] Sending request: geterr (22). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/aioiyuuko/my/test/t.js"
]
}
[Trace - 上午9:55:14] Event received: syntaxDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 7,
"offset": 3
},
"end": {
"line": 7,
"offset": 3
},
"text": "'*/' expected.",
"code": 1010,
"category": "error"
}
]
}
[Trace - 上午9:55:14] Event received: semanticDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": []
}
[Trace - 上午9:55:14] Event received: suggestionDiag (0).
Data: {
"file": "/Users/aioiyuuko/my/test/t.js",
"diagnostics": [
{
"start": {
"line": 1,
"offset": 12
},
"end": {
"line": 1,
"offset": 25
},
"text": "File is a CommonJS module; it may be converted to an ES6 module.",
"code": 80001,
"category": "suggestion"
}
]
}
[Trace - 上午9:55:14] Async response received: requestCompleted (22). Request took 8 ms.

@chemzqm
Copy link
Member

chemzqm commented Aug 3, 2019

I can reproduce, consider open a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants