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]: TooltipContent: Missing Required Attribute Warnings in IntelliJ IDEA #863

Open
2 tasks
SAntoineS opened this issue Nov 4, 2024 · 1 comment
Open
2 tasks
Labels
need-reproduction Issue is lacking reproduction. Will be close if not provided. question Further information is requested

Comments

@SAntoineS
Copy link

Reproduction

Can't really have a reproduction

Describe the bug

Hi, I wanted to report a minor issue that I encountered while working with the TooltipContent component.

Description

When using the TooltipContent component from shadcn-vue, IntelliJ IDEA 2024.2.4 (Ultimate Edition) displays 9 warnings for missing required attributes, even though the component functions correctly without explicitly setting these attributes.

Warnings:

warn

Steps to Reproduce:

  1. Use the TooltipContent component in a Vue project.
  2. Open the project in IntelliJ IDEA 2024.2.4 (Ultimate Edition).
  3. Observe the warnings related to missing attributes.

Expected Behavior:

No warnings should be shown if these attributes are optional and have default values handled internally by the component.

Actual Behavior:

Warnings are displayed for missing required attributes.

Additional Information:

Is there a way to configure IntelliJ IDEA to avoid these warnings, or should the component's TypeScript definitions be updated to reflect the optional nature of these attributes?

Environment:

  • shadcn-vue version: Don't know where find version
  • IntelliJ IDEA version: 2024.2.4 (Ultimate Edition)
  • Vue version: 3.5.4

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i5-1345U
    Memory: 16.57 GB / 31.64 GB
  Binaries:
    Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.98)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @vueuse/core: ^11.0.3 => 11.2.0
    radix-vue: ^1.9.5 => 1.9.8
    vue: ^3.5.4 => 3.5.12

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@SAntoineS SAntoineS added the bug Something isn't working label Nov 4, 2024
@sadeghbarati
Copy link
Collaborator

sadeghbarati commented Nov 9, 2024

@SAntoineS Never used other IDEs for Vue but VSCode

Here is my current setup for Vue

  • Enable built-in TypeScript
  • Remove TypeScript Vue Plugin (Volar) (deprecated)
  • Remove Volar and Reinstall the latest version again
  • Enable Volar hybridMode

@sadeghbarati sadeghbarati added question Further information is requested need-reproduction Issue is lacking reproduction. Will be close if not provided. and removed bug Something isn't working labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-reproduction Issue is lacking reproduction. Will be close if not provided. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants