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

[BUG] CmdHelp File Identification Flaw #3532

Open
jaborsh opened this issue May 6, 2024 · 1 comment
Open

[BUG] CmdHelp File Identification Flaw #3532

jaborsh opened this issue May 6, 2024 · 1 comment
Labels
bug An actual error or unwanted behavior. needs-triage Yet to be looked at and verified as an a real issue/feature that could be worked on

Comments

@jaborsh
Copy link
Contributor

jaborsh commented May 6, 2024

Describe the bug

When using CmdHelp, Evennia searches for appropriate documentation. Usually it successfully chooses the most relevant page given the keyword provided by the user, but it does this even if an exact match is given.

image

To Reproduce

Steps to reproduce the behavior:

  1. Create CmdInteract and CmdInteractions or any other version of commands so long as one is "contained" within the other (i.e: "interact" is within "interactions")
  2. View in help.
  3. Attempt help interactions
  4. Receive help page for CmdInteract

Expected behavior

Evennia should, in my opinion, first determine if an exact match exists before searching by closest association.

Environment, Evennia version, OS etc

  • Py 3.10
  • Ev 4.11
  • Win11
@jaborsh jaborsh added bug An actual error or unwanted behavior. needs-triage Yet to be looked at and verified as an a real issue/feature that could be worked on labels May 6, 2024
@jaborsh
Copy link
Contributor Author

jaborsh commented May 6, 2024

I removed my local changes to CmdHelp to verify it isn't developer error. The issue remains the same, just semantically different. The screenshot is from help interact but it yields the interactions docstring.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An actual error or unwanted behavior. needs-triage Yet to be looked at and verified as an a real issue/feature that could be worked on
Projects
None yet
Development

No branches or pull requests

1 participant