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

Unable to use @enum or @alias: duplicate-doc-alias #1537

Closed
fatboychummy opened this issue Sep 8, 2022 · 0 comments
Closed

Unable to use @enum or @alias: duplicate-doc-alias #1537

fatboychummy opened this issue Sep 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@fatboychummy
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Annotations, Type Checking, Completion, Diagnostics/Syntax Checking

Expected Behaviour

To be able to define an alias like so:

---@alias AliasName
---| '"value"'  # comment
---| '"value2" # comment

Actual Behaviour

No matter the name I choose for the alias, it states it is a duplicate. This occurs with @enum as well.

See the letter spam below

image

Reproduction steps

  1. Define an alias, with a completely random name
  2. see duplicate-doc-alias warning.

Additional Notes

This isn't the biggest issue in the world, though it's stopping completion and annotations in some areas. I can easily disable the warning, but would like to know if I have actually accidentally duplicated something.

Log File

file_d%3A_Desktop_MMC_MultiMC_instances_1.18.2%20CC_.minecraft_saves_Simplify%20Rewrites_computercraft_computer_1_LittleUI.log

@sumneko sumneko added the bug Something isn't working label Sep 8, 2022
@sumneko sumneko closed this as completed in 01fe08b Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants