notZaki / PandocCiter

Visual Studio Code extension for autocompleting citations and cross-references for Pandoc/Markdown documents
https://marketplace.visualstudio.com/items?itemName=notZaki.pandocciter
MIT License
65 stars 9 forks source link

Autocomplet suggestions don't show up #15

Open jsmm opened 4 years ago

jsmm commented 4 years ago

Hello,

I cannot get PandocCiter suggestions to show up in macOS, not in autompletion when I type, for example, @wa; neither when I select those three letters and press Ctrl + Space. Below are my vscode user settings. Thanks for your help.

  "PandocCiter.DefaultBib": "/Users/macbook/Documents/Dropbox/BibDesk/biblio-books.bib",
  "PandocCiter.UseDefaultBib": true,
  "PandocCiter.ForgetUnusedBib": true,
  "PandocCiter.ViewType": "browser",
  "PandocCiter.ShowLog": true,
  "PandocCiter.CitationFormat": [
    "author",
    "title",
    "journal",
    "publisher",
    "booktitle",
    "year"
  ],
  "[markdown]": {
    "editor.wordWrap": "on",
    "editor.quickSuggestions": true
  },
  "editor.snippetSuggestions": "top",
  "editor.suggestOnTriggerCharacters": "true",
notZaki commented 4 years ago

Do any messages appear in the extension log? It can be viewed via Top menu bar -> View -> Output and then select PandocCiter in the drop-down list near the right side of the output panel. The log should say 'Showing X suggestions' whenever an @ is typed in the markdown file.

Otherwise, the configuration looks good to me. If the document language is set to 'markdown' then it should work. The only time I've noticed the autocompletion not working is after a vscode update, but it usually fixed itself by closing and re-opening vscode.

jsmm commented 4 years ago

Hi. Yes, the document language is set to markdown, but the output doesn't say it shows any suggestions:

Reacting to active document change
Looking for .bib file: /Users/macbook/Documents/Dropbox/BibDesk/biblio-books.bib
Found .bib file /Users/macbook/Documents/Dropbox/BibDesk/biblio-books.bib
.bib file /Users/macbook/Documents/Dropbox/BibDesk/biblio-books.bib is already being watched.
Reacting to active document change
notZaki commented 4 years ago

I borrowed a macbook to test it out, and I wasn't able to reproduce the issue. :( It's a shame because it seems like other users have encountered similar issues (#5) but I haven't experienced it.

Anyways, here's a few more things to try:

  1. Set the config "editor.suggestOnTriggerCharacters": true, i.e. remove the quotes around true
  2. Check for any conflicts between the two configuration files: one is workspace-specific, typically in $WORKSPACE/.vscode/ (might not exist) while the other is global and located in ~/Library/Application Support/Code/User/
  3. Make sure that the markdown file is saved on disk
  4. Reload the window (Cmd Shift P -> Reload window) or quit/re-open vscode

Hopefully one of those steps fixes the issue 🤞

niekvandepas commented 3 years ago

Just want to mention that I was having a similar issue (though nothing was appearing in the output for me), and closing + re-opening VS Code fixed it for me.

Version: 0.7.0
VS Code: 1.52.1

shenghxie commented 3 years ago

I am having the same issue and all of the above solutions did not resolve it.

jsmm commented 3 years ago

It's working for me now. I was the one to open this issue. Thanks for sharing this plugin.