question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No longer reports deployment errors to VSCode - Problems tab is not showing errors from a failed deploy

See original GitHub issue

Summary

When deploying a new class (that contains invalid code) via the UI in VS Code, the problematic line/column is not reported in the “Problems” tab.

Steps To Reproduce:

  1. Create a new non-existent class in either an existing project or a new project.

  2. Be sure to have a default org set.

  3. The following code can be used as an example which contains a non-existent type “badType”: public with sharing class Junk { public Junk() { badType i = 1; } }

  4. Right-click the file in the VS Code Explorer and select “SFDX: Deploy Source to Org”

  5. Observe results.

Expected result

Deployment fails. Error highlighting line/column and reason for error is in the “Problems” tab.

Actual result

Deployment fails. Problems tab continues to show “no problem” and no indication is reporting why it failed.

Additional information

image

Salesforce Extension Version in VS Code: v52.8.0

SFDX CLI Version: sfdx-cli/7.112.1 win32-x64 node-v14.17.4

OS and version: Windows 10 Enterprise 2004

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
xyccommented, Aug 12, 2021

@austinsholmes @tschroedertn This seems to be an issue with the latest version (7.113.0) of SDFX CLI. Could you try turn on the VS Code setting "salesforcedx-vscode-core>Experimental: Deploy Retrieve"? That will allow you to deploy with the SDR library instead of CLI.

1reaction
tschroedertncommented, Aug 11, 2021

@xyc and @austinsholmes - this is happening for me too. Whenever I have compile errors and deploy my Apex class to my sandbox, it returns “exit code 1” rather than showing the errors in the Output tab. I then have to manually run the command (without JSON option) to see what the actual error is. I am hoping maybe this can be corrected because it really cuts down on productivity. I think this error started this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems tab does not refresh when issues are addressed
Summary Problems tab in VS code reports issues that have since been addressed and only restarting VS Code clears them down Steps To...
Read more >
No errors displayed in the "Error List" (error list doesn't show ...
Hi, same issue here. Visual Studio 2017 Version 15.4.2 on Windows 7. I have a compiler error and my error list is empty....
Read more >
How fix Azure web app deploy error with VSCode?
After rolling back Visual Studio Code update to february, it works again. Looks like the update from VScode broke something ...
Read more >
SFDX: Deploy Source to Org failed to run in VS Code
The Problems list shows no errors, until I attempt to deploy source to org. At that point, one or more erorrs appear on...
Read more >
Visual Studio Code SFDX Source Deploy is not showing the ...
If you do the deploy command without the --json it says you the errors. sfdx force:source:deploy --sourcepath ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found