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.

Deployment issue after latest update

See original GitHub issue

Issue Type: Bug

Step 1: Create project with manifest Step 2: Retrieve source from org Step 3: Edit some LWC code and deploy to org, it will work fine Step 4: Make some more changes to the same LWC, nothing will be deployed Changes will not reflect in Org, It will show that source is deployed successfully but nothing will happen, after tracing the issue I found that FilePath is becoming null after first deployment

Extension version: 51.3.0 VS Code version: Code 1.54.1 (f30a9b73e8ffc278e71575118b6bf568f04587c8, 2021-03-04T22:38:31.419Z) OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intelยฎ Coreโ„ข i3-1005G1 CPU @ 1.20GHz (4 x 1190)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.70GB (1.08GB free)
Process Argv โ€“crash-reporter-id ccd9f00f-6169-481e-8790-8185f203faa1
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt617cf:30253240
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
dockersubsetcf:30265999
pythontb:30265425
vspre833cf:30267465

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
smaddox-sfcommented, Mar 31, 2021

Hi All - Are you using the โ€˜Experimental: Deploy Retrieveโ€™ setting? (Found in the VS Code preferences). If not, can you toggle that option on and retry? I believe the issue may be related to a recent CLI bug. Changing this setting will use the business logic library for deploys directly vs. calling that logic via the CLI.

1reaction
jbeauchamp715commented, Mar 9, 2021

I too am having an issue with deploying code to my Org. When I save my changes, it will say it is deploying and comes back with a exit code of 0, but nothing is deployed. Then I have to make a change to the file and save it again. Sometimes it deploys sometimes it does not and I have to make another change to make it deploy.

Deployment logs: Starting SFDX: Deploy Source to Org

07:52:52.352 sfdx force:source:deploy --sourcepath c:\Salesforce\VSCode\McConxJB\force-app\main\default\classes\MSLUpdateEventServiceTest.cls --json --loglevel fatal 07:53:04.993 sfdx force:source:deploy --sourcepath c:\Salesforce\VSCode\McConxJB\force-app\main\default\classes\MSLUpdateEventServiceTest.cls --json --loglevel fatal ended with exit code 0

At this point, the code it says was deployed really is not deployed.

Starting SFDX: Deploy Source to Org

07:53:22.536 sfdx force:source:deploy --sourcepath c:\Salesforce\VSCode\McConxJB\force-app\main\default\classes\MSLUpdateEventServiceTest.cls --json --loglevel fatal 07:53:39.654 sfdx force:source:deploy --sourcepath c:\Salesforce\VSCode\McConxJB\force-app\main\default\classes\MSLUpdateEventServiceTest.cls --json --loglevel fatal ended with exit code 0

=== Deployed Source STATE FULL NAME TYPE PROJECT PATH
โ”€โ”€โ”€โ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Add MSLUpdateEventServiceTest ApexClass force-app\main\default\classes\MSLUpdateEventServiceTest.cls
Add MSLUpdateEventServiceTest ApexClass force-app\main\default\classes\MSLUpdateEventServiceTest.cls-meta.xml

Now the code is actually deployed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot software update deployments - Configuration ...
Describes how to troubleshoot software update deployments that don't run successfully. For example, updates fail to download and there areย ...
Read more >
Resolve update and deploy issues on Windows Normal Servers
Check if the latest ServerProtect patch has been installed. Verify that a task on IS is deploying the pattern to NS on a...
Read more >
Fix SCCM Client-Side Patching Or Software Updates Issues ...
In this post, we see how to Fix SCCM Client-Side Patching or Software Updates Issues and troubleshooting tips. Let's go through ConfigMgrย ...
Read more >
New version not picking up new deployment - FAQs
I deployed an update for my app and released a new version. On trying to install it on another user's account I get...
Read more >
Troubleshoot deployment issues in Lambda
When you update your function, Lambda deploys the change by launching new instances of the function with the updated code or settings. Deployment...
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