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

Autocomplet suggestions don't show up #15

Open
jsmm opened this issue Oct 5, 2020 · 6 comments
Open

Autocomplet suggestions don't show up #15

jsmm opened this issue Oct 5, 2020 · 6 comments

Comments

@jsmm
Copy link

jsmm commented Oct 5, 2020

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
Copy link
Owner

notZaki commented Oct 5, 2020

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
Copy link
Author

jsmm commented Oct 5, 2020

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
Copy link
Owner

notZaki commented Oct 10, 2020

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
Copy link

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
Copy link

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

@jsmm
Copy link
Author

jsmm commented Sep 21, 2021

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

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

No branches or pull requests

4 participants