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

SFDX: Update Checkpoints in Org fails #1476

Closed
wishwa opened this issue Jul 15, 2019 · 14 comments
Closed

SFDX: Update Checkpoints in Org fails #1476

wishwa opened this issue Jul 15, 2019 · 14 comments

Comments

@wishwa
Copy link

wishwa commented Jul 15, 2019

Summary

When running the SFDX: Update Checkpoints in Org command from the VS Code palette, I receive the following error in the Output window.

Checkpoints can be set on valid line of Apex source. Invalid checkpoint location:...

Steps To Reproduce:

  1. Toggle a check point by using '>SFDX: Toggle checkpoint' command
  2. Then open the command pallet and type SFDX: Update Checkpoints in Org.

Expected result

Check point should update in Org.

Actual result

Checkpoints can be set on valid line of Apex source. Invalid checkpoint location:....

Starting SFDX: Update Checkpoints in Org SFDX: Update Checkpoints in Org, Step 1 of 6: Retrieving org information SFDX: Update Checkpoints in Org, Step 2 of 6: Retrieving source and line information SFDX: Update Checkpoints in Org, Step 3 of 6: Setting typeRefs for checkpoints Checkpoints can be set on a valid line of Apex source. Invalid checkpoint location: URI=file:///Users/wishwa/Documents/R%20%26%20D/VSCode/debugger-project/force-app/main/default/classes/AccountService.cls, Line=11 Ending SFDX: Update Checkpoints in Org Your checkpoints have errors. Fix the errors listed in the output, then run SFDX: Update Checkpoints in Org again.

Additional information

Feel free to attach a screenshot.
Screen Shot 2019-07-14 at 6 30 08 PM

VS Code Version: Version 1.36.1 (1.36.1)

SFDX CLI Version: sfdx-cli/7.14.0-bd96f098e0 darwin-x64 node-v10.15.3

OS and version: MacOS Mojave verion 10.14.5

@lcampos
Copy link
Contributor

lcampos commented Jul 15, 2019

Looks like you did some edits to the class before trying to update the checkpoints. Did you push/deployed those changes to the org before running SFDX Update Checkpoints in Org ?

@wishwa
Copy link
Author

wishwa commented Jul 15, 2019

Hi lcampos,

All the edits have been deployed to the Source Org be for do the SFDX Update Checkpoints in Org
Could you please let me know what are the information that you guys required more?

Thanks,
Wishwa

@rickyloweSP
Copy link

Hi @wishwa did you work out what the error is? I am also receiving the same error.

@wishwa
Copy link
Author

wishwa commented Aug 16, 2019

@rickyloweSP No mate, I haven't got a resolution for it.

@wishwa
Copy link
Author

wishwa commented Aug 23, 2019

Hi All,

I have updated to latest versions but still I get the same error
Salesforce Extension pack : 46.11.0
VSCode version: July 2019 (version 1.37)
SDFX version: sfdx-cli/7.8.1-8f830784cc darwin-x64 node-v10.15.3

Looking forward to get any workaround with this issue

Thanks in advanced,
Wishwa

@wishwa
Copy link
Author

wishwa commented Sep 11, 2019

Hi @wishwa did you work out what the error is? I am also receiving the same error.

Hi Ricky,

Have you able to figure out the problem? Still I'm getting the error.

Thanks ,
Wishwa

@klampert
Copy link

I've spent hours trying to determine why I'm getting the "Invalid checkpoint location" error mentioned here (when trying to run "Update Checkpoints in Org") as well as "unverified breakpoints" when running the replay debugger. I went so far as to completely remove then reinstall VS Code, the Salesforce CLI and the Salesforce Extension Pack but still, nothing worked. As a test I went through the Trailhead for the replay debugger, which worked. I noticed the path for that project folder had no spaces, so I redid my project path to remove all spaces and now everything is working fine.

@wishwa
Copy link
Author

wishwa commented Sep 29, 2019

Hi Klampert,

Thanks for informing me about the steps that you follow, My problem was with the "&" character in the path.

Thanks,
Wishwa

@wishwa wishwa closed this as completed Sep 29, 2019
@eltoroit
Copy link

I had "+" on the name of the root folder. There are spaces in the full path, but that does not matter... It's the name/folder of the project.

@crm-ops
Copy link

crm-ops commented Apr 1, 2021

This is also true for all special characters such as é è in french that get converted to & when the string is transformed in a http url ...

@JCripe-AuthorSolutions
Copy link

I deleted a space in the project name and that fixed the problem.

@avanmeer
Copy link

avanmeer commented Apr 7, 2022

Restarting vscode worked for me.

@dhogue84
Copy link

I had a number in my project's folder name. I changed it from Trailhead2 to Trailhead, and it updated as expected.

@craggleb
Copy link

craggleb commented Nov 14, 2023

It shouldn't matter what the file path is... that a space or a number breaks it is immaterial. The debug feature is not working; please fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants