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

LWC LightningComponentBundle is not working for target in vs code #5567

Closed
thunderpycode opened this issue May 2, 2024 · 13 comments
Closed

Comments

@thunderpycode
Copy link

Summary

Short summary of what is going on or to provide context.

Steps To Reproduce:

  1. This is step 1.
  2. This is step 2. All steps should start with '1.'

tag should be auto suggested when creating a fresh web component

  1. I am creating fresh lwc coponent using LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"

<target should be populating in suggestions. although latest extensions are being installed

Actual result

<target is not populating in suggestions.

Additional information

image

Salesforce Extension Version in VS Code:

Salesforce CLI Version: 2.38.7

OS and version: windows 11

VS Code version: 1.88.1

Most recent version of the extensions where this was working: not workin earlier

@thunderpycode thunderpycode changed the title LWC LightningComponentBundle is not working in vs code LWC LightningComponentBundle is not working for target in vs code May 2, 2024
@daphne-sfdc
Copy link
Contributor

@thunderpycode Can you run Developer: Show Running Extensions in the command palette and send us a screenshot of what's there? We would like to ensure you have the latest version of the extensions installed and activated.

Can you also send us any error messages you see in the following places?

  1. Problems tab
  2. Output tab under the LWC Extension dropdown option
  3. Run Developer: Toggle Developer Tools from the command palette

@thunderpycode
Copy link
Author

Hello @daphne-sfdc , Below are the screenshots for:

1. Developer : Show Running Extensions

image

**2. Developer : Toggle Developer Tools**

image

**3. Problem with created testfile**

image

@daphne-sfdc
Copy link
Contributor

@thunderpycode Ah, I see the problem now. XML autocompletion in .js-meta.xml files requires the Red Hat XML extension, which is included in the Salesforce Extension Pack Expanded but not the Salesforce Extension Pack. When I didn't have the Red Hat XML extension installed, I had the same problem of target not populating in suggestions.

I went to the Output tab, selected LWC Extension from the dropdown, and found this:
Screenshot 2024-05-03 at 9 28 15 AM

After I installed the Red Hat XML extension and reloaded the VSCode window, the autocompletions appeared. 🙂

Please install/enable the Red Hat XML extension and let us know if your issue is now resolved!

@daphne-sfdc
Copy link
Contributor

@thunderpycode As an aside, the problem with the created LWC test file that you showed in that screenshot is a known issue. We already have a bug logged for that, and we are hoping to get the issue fixed soon. 🙂

Copy link

github-actions bot commented May 8, 2024

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.

@github-actions github-actions bot added the stale label May 8, 2024
@thunderpycode
Copy link
Author

@daphne-sfdc The Red Hat XML is still not working. lets follow the issue.

@peternhale
Copy link
Contributor

@thunderpycode just curious what is the list of all the extensions active for this project?

@github-actions github-actions bot removed the stale label May 10, 2024
Copy link

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.

@github-actions github-actions bot added the stale label May 14, 2024
@thunderpycode
Copy link
Author

@peternhale I have already shared: #5567 (comment)

@thunderpycode
Copy link
Author

thunderpycode commented May 14, 2024

@peternhale

Screenshot 2024-05-14 102930
Screenshot 2024-05-14 103011
Screenshot 2024-05-14 103026
Screenshot 2024-05-14 103044
Screenshot 2024-05-14 103058

@daphne-sfdc
Copy link
Contributor

Hi @thunderpycode, The issue is that your Red Hat XML extension is stuck on Activating. You will only see the autocompletions if the Red Hat XML extension is in Activated state.

Can you try the solution provided at redhat-developer/vscode-xml#909 to reinstall the Visual C++ redistributable?

@thunderpycode
Copy link
Author

Sure @daphne-sfdc . Will try and let you know. Thanks

@daphne-sfdc daphne-sfdc removed the stale label May 14, 2024
Copy link

This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.

@github-actions github-actions bot added the stale label May 18, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants