Autocompletion/Syntax Highlighting doesn't seem to work properly in VSCode.

Open
#82 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, vscode

Research direction

Reproduce the issue with the provided from ghapi.all import GhApi example in VSCode 1.58.2 with Pylance enabled, using ghapi 0.1.19. Investigate why Intellisense and syntax highlighting fail for this entry point; done means completion and highlighting work for the example in the reported environment.

Written by the indexing model from the issue text.

Description

In short, tab completion and syntax highlighting does not seem to work in VSCode for ghapi. I'm not having this issue with other libraries.

Info

What I expected to happen

Install ghapi and be able to utilize Intellisense/Code completion to figure out more about the library.

What actually happened

Intellisense/Code Completion and code highlighting did not work.

Operating System Info

Linux/Manjaro

ghapi version:

0.1.19

VSCode version:

(scratch) ~/r/v/scratch ❯❯❯ code --version
1.58.2
c3f126316369cd610563c75b1b1725e0679adfb3
x64

VSCode extensions:

(scratch) ~/r/v/scratch ❯❯❯ code --list-extensions
DavidAnson.vscode-markdownlint
eamodio.gitlens
ecmel.vscode-html-css
emmanuelbeziat.vscode-great-icons
esbenp.prettier-vscode
hashicorp.terraform
monokai.theme-monokai-pro-vscode
ms-azuretools.vscode-docker
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-vscode-remote.remote-containers
ms-vsliveshare.vsliveshare
TheaFlowers.witch-hazel
timonwong.shellcheck
zhuangtongfa.material-theme

Example Code:

#!/usr/bin/env python3
from ghapi.all import GhApi

api = GhApi(
    owner="CleverRaven",
    repo="Cataclysm-DDA",
    token="REDACTED",
)

print(api.repos)

## Screenshot 

image

Dominant language
Python
Stars
687
Forks
69
Avg merge
1m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AnswerDotAI/ghapi

All issues in AnswerDotAI/ghapi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.