forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
953 stars 406 forks source link

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

Closed thunderpycode closed 4 months ago

thunderpycode commented 5 months ago

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 2. I am creating fresh lwc coponent using LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"
daphne-sfdc commented 5 months ago

@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 commented 5 months ago

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 commented 5 months ago

@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 commented 5 months ago

@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. 🙂

github-actions[bot] commented 5 months ago

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

thunderpycode commented 4 months ago

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

peternhale commented 4 months ago

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

github-actions[bot] commented 4 months ago

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

thunderpycode commented 4 months ago
thunderpycode commented 4 months ago

@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 commented 4 months ago

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 https://github.com/redhat-developer/vscode-xml/issues/909 to reinstall the Visual C++ redistributable?

thunderpycode commented 4 months ago

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

github-actions[bot] commented 4 months ago

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