Git Product home page Git Product logo

Comments (6)

chemzqm avatar chemzqm commented on June 16, 2024

Checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

from coc-eslint.

Napoleon-Jm avatar Napoleon-Jm commented on June 16, 2024

Checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel

The output:

`
[Info - 8:16:16 ├F10: PM┤] Local tsserver not found, using bundled tsserver with coc-tsserver.
[Info - 8:16:16 ├F10: PM┤] using npm from /Users/jimin/.nvm/versions/node/v12.22.0/bin/npm
[Info - 8:16:16 ├F10: PM┤] Forking TSServer
PATH: /Users/jimin/.config/coc/extensions/node_modules/coc-tsserver/node_modules/typescript/lib/tsserver.js
[Info - 8:16:16 ├F10: PM┤] Starting TSServer
{
"path": "/Users/jimin/.config/coc/extensions/node_modules/coc-tsserver/node_modules/typescript/lib",
"_pathLabel": "",
"_api": {
"versionString": "4.5.5",
"version": "4.5.5"
}
}
[Trace - 8:16:16 ├F10: PM┤] Sending request: configure (0). Response expected: no. Current queue length: 0
Arguments: {
"hostInfo": "coc-nvim",
"preferences": {
"providePrefixAndSuffixTextForRename": true,
"allowRenameOfImportPath": true,
"includePackageJsonAutoImports": "auto"
}
}
[Trace - 8:16:16 ├F10: PM┤] Sending request: compilerOptionsForInferredProjects (1). Response expected: no. Current queue length: 0
Arguments: {
"options": {
"module": "commonjs",
"target": "es2016",
"jsx": "preserve",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true
}
}
[Trace - 8:16:16 ├F10: PM┤] Event received: typingsInstallerPid (0).
Data: {
"pid": 6355
}
[Trace - 8:16:16 ├F10: PM┤] Sending request: updateOpen (2). Response expected: yes. Current queue length: 0
Arguments: {
"changedFiles": [],
"closedFiles": [],
"openFiles": [
{
"file": "/Users/jimin/MyWorkSpace/js2uml/src/js2seq/index.js",
"fileContent": "\nclass Js2Seq {\n\n constructor(a) {\n this.a = a;\n }\n\n abc = b;\n static convert() {\n return null;\n }\n}\n\nexport {\n Js2Seq,\n};\n",
"projectRootPath": "/Users/jimin/MyWorkSpace/js2uml",
"scriptKindName": "JS"
}
]
}
[Trace - 8:16:17 ├F10: PM┤] Response received: updateOpen (2). Request took 1493 ms. Success: true
Result: true
[Trace - 8:16:17 ├F10: PM┤] Sending request: geterr (3). Response expected: yes. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/Users/jimin/MyWorkSpace/js2uml/src/js2seq/index.js"
]
}

`

.eslintrc

`
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
}
}

`

@chemzqm The fileContent as the code upon, has a abc = b, that will caused a undef lint tip in vscode, but coc doesn't.

from coc-eslint.

chemzqm avatar chemzqm commented on June 16, 2024

The output is from tsserver, not eslint.

from coc-eslint.

chemzqm avatar chemzqm commented on June 16, 2024

Maybe you have "typescript.showUnused": false config

from coc-eslint.

Napoleon-Jm avatar Napoleon-Jm commented on June 16, 2024

The eslintrc has upload on my first replay,

:CocCommand workspace.showOutput

just give me two options.... watchman or tsserver

from coc-eslint.

chemzqm avatar chemzqm commented on June 16, 2024

Seems you don't have eslint server running.

from coc-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.