Skip to content

[BUG]: Code actions not displaying correctly #75

@tashi21

Description

@tashi21

Issue Description

Codebook is not showing any code actions for spelling mistakes it is recognising. But it is only happening for .py files. It is working as expected in .go files (these are the only files I have used codebook on so far I don't know if this issue extends to other languages).

Another issue is that it is not flagging the same spelling error in the files. Please see the attached images for context.

Operating System

macOS

Editor

Zed

Codebook Version

No response

Configuration

dictionaries = [
    "en_us",
    "en_gb",
]
words = [
    "crm",
    "dbutil",
    "gst",
    "mailjet",
    "oauth",
    "ontrip",
    "pfx",
    "raaho",
    "rebalance",
    "salesorder",
    "zoho",
    "zohobooksclient",
    "zohooauthclient",
]

Steps to Reproduce

  1. Open a python file.
  2. Make a typo.

Expected Behavior

See code actions to replace with possible spellings or add to dictionary.

Actual Behavior

No code actions displayed.

Code Sample


Log Output

Additional Context

Python file:
Image

Go file:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions