salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

RuntimeNamespace error

Open felfresco opened this issue 3 months ago • 5 comments

Summary

i have error for runtimenamespace in LWC XML e.g.<runtimeNamespace>omnistudio</runtimeNamespace>

Steps To Reproduce:

  1. Create new LWC
  2. Paste this code:
54.0 true omnistudio

Expected result

should have no error

Actual result

has an error at <runtimeNamespace>omnistudio</runtimeNamespace>

Additional information

![image](https://github.co runtime error m/forcedotcom/salesforcedx-vscode/assets/136463993/f0ab0827-66f0-451c-8563-85425b1a71fe)

Salesforce Extension Version in VS Code:v60.8.0

SFDX CLI Version: v60.8.0

OS and version: Windows 10 Enterprise 22H2

VS Code version: 1.87.1(user setup)

felfresco avatar Apr 11 '24 10:04 felfresco

Hi @felfresco, Is this error blocking you from deploying your LWC component to your org? If not, this would be a linting error, and you can try reloading the VSCode window (Developer: Reload Window) to restart the linter.

daphne-sfdc avatar Apr 11 '24 13:04 daphne-sfdc

@felfresco I just realized that I'm able to replicate your issue after installing the Red Hat XML extension for linting the metadata files. Yes this is a bug - sorry for the misunderstanding yesterday!

daphne-sfdc avatar Apr 12 '24 20:04 daphne-sfdc

This issue has been linked to a new work item: W-15492535

git2gus[bot] avatar Apr 12 '24 20:04 git2gus[bot]

@felfresco I just realized that I'm able to replicate your issue after installing the Red Hat XML extension for linting the metadata files. Yes this is a bug - sorry for the misunderstanding yesterday!

Hi @daphne-sfdc , any ways to resolve this bug? i need to implement an LWC in omniscript.

felfresco avatar Apr 15 '24 00:04 felfresco

Hi @felfresco, This is a bug in the LWC Language Server, which is owned by another team. We'll let you know once the other team fixes the issue.

As for workarounds, this is actually not a bug that will block you from doing LWC development. Even though you see the red squigglies, you should still be able to deploy and retrieve your LWC as expected. Just right click on the metadata file, select SFDX: Deploy This Source to Org, and you should see in the Output tab that the file was deployed successfully. Please let us know if that is not the case and/or you see any other issues.

daphne-sfdc avatar Apr 15 '24 14:04 daphne-sfdc