vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

Can't get bootstrap vue autocompletion to work with coc-vetur #1729

Open warrence opened 4 years ago

warrence commented 4 years ago

Info

Problem

I'm using coc-vetur in neovim, other autocompletion is working well, except bootstrap-vue. I'm not sure if i'm setting up the right way, i tried but couldnt get it to work.

vim version: NVIM v0.4.3

  node version: v10.19.0
  coc.nvim version: 0.0.74
  term: tmux-256color
  platform: linux

  ## Messages

  ## Output channel: snippets

  ## Output channel: vetur

  [Trace - 4:47:45 PM] Sending request 'initialize - (0)'.
  [Trace - 4:47:48 PM] Received notification 'window/logMessage'.
  Loaded bundled typescript@3.6.4.
  [Trace - 4:47:49 PM] Received notification 'window/logMessage'.
  [DEBUG] Initializing ServiceHost with 0 files: []
  [Trace - 4:47:49 PM] Received notification 'window/logMessage'.
  Vetur initialized
  [Trace - 4:47:49 PM] Received response 'initialize - (0)' in 3769ms.
  [Trace - 4:47:49 PM] Sending notification 'initialized'.
  [Trace - 4:47:49 PM] Sending notification 'workspace/didChangeConfiguration'.
  [Trace - 4:47:49 PM] Sending notification 'textDocument/didOpen'.
  [Trace - 4:47:49 PM] Received request 'client/registerCapability - (0)'.
  [Trace - 4:47:49 PM] Sending response 'client/registerCapability - (0)'. Processing request took 1ms
{
      "vetur.format.options.tabSize": 2,
      "vetur.useWorkspaceDependencies": false,
      "vetur.format.options.useTabs": true,
      "vetur.dev.logLevel": "DEBUG",
      "vetur.trace.server": "messages",
      "vetur.experimental.templateInterpolationService": true,
  }

I'm using bootstrap-vue 2.5.0

checked there is vetur-attributes.json and vetur-tags.json in projectroot/node_modules/bootstrap-vue/dist

checked projectroot/node_modules/bootstrap-vue/package.json, the below is present

"vetur": {

      "tags": "dist/vetur-tags.json",
      "attributes": "dist/vetur-attributes.json"
    }

Reproducible Case

Uninen commented 4 years ago

Hi! I'm helping out triaging Vetur issues. Could you try cloning veturpack and then yarn install bootstrap-vue and test if it works. The problem might be in your project setup or an upstream issue, we'd like to first figure out which case this is, thanks!