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

The following error occurred while running the “cspell link add @cspell/dict-python” command #6380

Open
merliang opened this issue Oct 16, 2024 · 1 comment

Comments

@merliang
Copy link

I have started the command prompt as an administrator

@Jason3S
Copy link
Collaborator

Jason3S commented Oct 16, 2024

@merliang,

Thank you. Two things:

  1. Please add the actual error.
  2. It should not be necessary to install the python dictionary. It is included in CSpell by default and should be enabled for all python files.

There are a few of ways to enabled the dictionary in non-python files:

  1. Add cspell:dictionary python to the file. It will turn on the python dictionary.
  2. Add it to one of the dictionary sections in the config file.
    cspell.config.yaml
    dictionaries:
      - python # Add Python dictionary here to always have it on.
    
    overrides:
      - filename: 
        - '**/docs/**/*.md' # glob pattern to match all markdown files in the docs folder
        dictionaries:
          - python # Enable Python dictionary for markdown files in the docs folder
    
    languageSettings:
      - languageId: 
          - vue # the file type to apply the settings to
        dictionaries: 
          - python # Enable Python dictionary for Vue files
    

@Jason3S Jason3S transferred this issue from streetsidesoftware/cspell-dicts Oct 16, 2024
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

2 participants