-
Notifications
You must be signed in to change notification settings - Fork 405
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
Org Browser fails to retrieve source from Org #5143
Comments
@egym-nikokokkila this issue seems similar to forcedotcom/cli#2447, however you have already installed the latest version of sf, using the windows installer, which is one of the work arounds mention in the linked issue. I am checking with the team that owns the An alternative work around mentioned is installing |
@peternhale Thanks for advice.
Then installed SalesforceCLI using the command Intalled 'Salesforce Extension Pack (Expanded)' again in VScode. Had error I was able to get over this by running After that tried using Org Browser again. But the same error still occurs In VSCode File Explorer I can use method of right click (for example folder objects\Opportunity\fields) and select 'SFDX: Retrieve Source' from Org It works fine but unfortunately it does not retrieve any new files I need. |
@egym-nikokokkila thank you. I was wondering if you would try one more thing for me. Please uninstall the |
@peternhale I uninstalled the I see for the Salesforce Extension Pack the ESLint is not listed but it was installed anyway. I'm only using the official Salesforce Extension Pack and no other VScode extensions installed. |
@egym-nikokokkila could you disable or uninstall the eslint extension and try again? |
@peternhale I was able to delete Eslint extension but it had dependency to Lightning Web Components extension so it had to be removed too. But this still results receiving the same Earlier I was able to disable Eslint but it did not have any effect. |
@egym-nikokokkila this is a hack, but you could try creating the |
@peternhale Added file .eslintignore to root of c: |
to me this looks like a relative path is interpreted as an absolute path
…On Tue, Oct 10, 2023 at 5:50 PM egym-nikokokkila ***@***.***> wrote:
@peternhale <https://github.com/peternhale> Added file .eslintignore to
root of c:
Then the error is ENOENT: no such file or directory, stat
'c:\.eslintrc.json'
After adding that file
ENOENT: no such file or directory, stat 'c:\.forceignore'
After that
ENOENT: no such file or directory, stat 'c:\.git'
—
Reply to this email directly, view it on GitHub
<#5143 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWXTQLQB4TJ4RZOCCLYALC3X6VVFTAVCNFSM6AAAAAA52B6C4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJVG4ZTANRXGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
EGYM GmbH, Einsteinstraße 172, 81677 München
Geschäftsführer: Patrick
Meininger, Philipp Roesch-Schlanderer, Florian Sauter, Christoph Bischoff
Gerichtsstand München | Amtsgericht München HRB 186394 | USt.-Id.
DE275313632
|
@SvenSoederberg yes, leaning in that direction. @egym-nikokokkila How did you create the dx project where these errors are occurring? |
@peternhale It was created by using command To solve the issue one thing I also tested was to clone new local repository. |
@egym-nikokokkila is the repo public? |
@peternhale It is private |
@egym-nikokokkila So I am clear, the retrieve worked for a new local clone? Same remote previously used or different? |
@peternhale Sorry for confusion. No, the issue is still present even when trying to clone a new local repository. The remote repository I tried cloning is the same we have been using all the time. |
@egym-nikokokkila can your check workspace and user settings to see which you might have set? You can find the keys in the Settings Options on the extension's info page. |
@peternhale For all the extensions we are using they are enabled globally and also 'Apply Extension to All Profiles' is set true. For the ESLint I disabled it globally with the other extension Lightning Web Components but it did not have any effect if the error is received or not. |
@peternhale This problem started for all our users all of a sudden at the same day. The strange thing is that after checking out some "old" branches, the issue does not exist for those old branches - only for new ones. Interestingly, if you compare those new and old branches, there is no "relevant" difference: Only metadata changes and some changes in our CI/CD scripts / github workflows |
@SvenSoederberg both interesting and scary. Do you happen to have the exact date, so I might compare it to changes made on our side during the same period? |
@peternhale I am pretty sure it started on Oct, 1st. I also asked our IT guys, if they changed some settings / distributed some changes but no - they did not |
Thank you @SvenSoederberg. Let me see what I can find that may be related. |
@peternhale by the way: We did not approve any dependabot PRs as I was a bit concerned about unforseeable impacts these changes could have... As an overview, I add a screenshot of out uat2 branch. As you can see, none of the "config" files was changed recently. If needed, @egym-nikokokkila (I am off for two weeks starting after tomorrow) could provide you with the package.json, package-lock.json or any file you need (but both package.json, package-lock.json are not gitignored - and were not changed recently) Thanks a lot for your support and investigation! |
@peternhale Please don't feel spammed, but I try to provide as much information that might help you - these will be my last comments before my holiday. I promise ;-)
|
@SvenSoederberg with issues like this, the more clues the better. I appreciate you for the effort you and your co-workers are putting into this to help us get to the bottom of this problem.
Sven, thanks again for all these details. I hope you have a wonderful holiday. |
@egym-nikokokkila I was wondering if you are able to share the extension host logs with me, or at least scan them to see if the error is present in any of them? This might help me narrow which extension to focus on. Command palette -> Developer: Open Extension Logs Folder will show where these files are located. |
@peternhale @SvenSoederberg I confirm yes I have been using the sf (v2) I can execute the
Same command with -f and we see the error I will send the extension logs later today. |
@peternhale From the folder C:\Users\UserName\AppData\Roaming\Code\logs\20231017T163458\window1\exthost\output_logging_20231017T163459 I can find file 2-Salesforce CLI.log and this is the content for the file
I searched through all files in this folder and subfolders using term And seems 2-Salesforce CLI.log is the only one I could find. |
This issue has been linked to a new work item: W-14319389 |
Found a few issues in the CLI repo with the same error: I'm going to throw together a debug vsix so we can get some error logging to see if we can't track down the source of this issue. |
@egym-nikokokkila @SvenSoederberg I created a VSIX and instructions for log collection in a release on my fork https://github.com/gbockus-sf/salesforcedx-vscode/releases/tag/v0.2.0 I highly suspect this is going to be an issue in one of the shared libraries between the CLI and VSCE due to both environments being impacted by the same issue. Mostly just a warning that this debugging will help narrow the issue, but will probably need a followup to get more logging from where the issue is occurring. |
@gbockus-sf I followed the instructions and got to step 8. With right click on console area I do not get a menu to select Save As It should work just like in this video, right? I checked all the settings but did not find anything that could help. |
Thanks @egym-nikokokkila |
@egym-nikokokkila If you could also remove the filter and send the area of the console where the error is listed that'd be awesome. Thanks! |
@gbockus-sf Menu appears when clicking outside the window. I saved the files and sent them for you. |
@egym-nikokokkila Thanks agains for the logs. I was able to trace the issue down to this call into the source-deploy-retrieve lib
I added some additional logging to that bundled module and uploaded a new debug vsix here If you could repeat the process and sent the logs I think we'll be close. There will be some paths in the debug output so feel free to email [email protected] if you'd like to avoid uploading them here. My current suspicion
Thanks! |
@gbockus-sf I sent the most recent log files. This might be something @SvenSoederberg can answer: |
Exchanged emails with @egym-nikokokkila. We continue to exchange logs and are narrowing in on the cause. It appears that the SDR library is having issues walking the project structure looking for the correct component to retrieve. Just posting here for tracking purposes. |
@gbockus-sf - Hello team, I'm having the same issue as above and have also tried all the steps above with no luck. Is there a work around for this issue? Thanks for your help! $ sfdx --version |
@michaeljenn2010 I've dug through the provided logs and haven't been able to track down a root cause. My current suspicion is that it has to do with a sym link in the project path, but that is unverified. I'm going to attempt to meet with Niko to debug interactively. If you wanted to attempt debugging it would be interesting to create a project that root of the file system and see if the issue still occurs. |
Our windows users started to report the issue since Tuesday Dec 12th. tested on when running retrieve with command line the sfdx command gives the same error this new sf command works! |
@vromanov-sumup Are your windows users all working on the same org/project? There are two current suspect conditions
Are there any sym links used in the project path? |
@gbockus-sf Also, this command works |
@gbockus-sf Interestingly when I added following to .forceignore file
The Org Browser works then totally fine for retrieving any metadata. (Only exception being the EmailMessage) After removing this there is again the error |
@egym-nikokokkila Nice. Thanks for swinging back to let use know. I'll follow up with you on email to see if we can identify what Email metadata is causing this issue. @vromanov-sumup Could you try adding the above entry to the |
We went today through the recent commits and found out that in our case it was creating a custom folder in force-app/main/default >< we wanted to separate platform event definitions from custom objects in a folder force-app/main/default/platformEvents, |
I'm gong to close this issue as at least understood although we never did get to the root of the |
@egym-nikokokkila @gbockus-sf I am having the same issue.. @egym-nikokokkila how did you idenity that Email Message is the cause for this in the branch? |
@av4213 It's been a while but from what I recall we found it when debugging by checking what metadata type was being processed. It required the debug vsix to generate very noisy detailed logs. It was basically a guess to add the EmailMessage to the ignore file since it was the last thing being processed before the error occurred. |
Summary
If I select Org Browser in VScode and try to 'Retrieve Source from Org' I receive an error
ENOENT: no such file or directory, stat 'c:\.eslintignore'
Steps To Reproduce:
Expected result
Component metadata for Accounts should be retrieved.
Actual result
No metadata is retrieved and got error ENOENT: no such file or directory, stat 'c:.eslintignore'
Additional information
When updating SF CLI this error msg is received. Not sure if this could be related?
`PS C:\Users\UserName\Desktop\GHEGYM\salesforce> sf update
@salesforce/cli: Updating CLI... already on version 2.11.8-c9872b8
NOTE: This error can be ignored in CI and may be silenced in the future
Error: spawn C:\Users\UserName\AppData\Local\sf\client\2.11.8-c9872b8\bin\run.cmd ENOENT`
I have tried new clean install for VScode with all the extensions, Salesforce CLI, Node.js with also removing associated Environment Variables. After running uninstall also removed all hidden folders for VScode and SalesforceCLI
Also tried to install older version of Salesforce CLI and the VScode extensions. Additionally tried to disable ESLint extension or downgrade to older version. Nothing has helped so far.
The issue is impacting everyone in our five member SF team. Reported first time on 29.9.23
Salesforce Extension Version in VS Code: v58.16.0
SFDX CLI Version: 2.11.8 win32-x64 node-v18.15.0
OS and version: Windows 11 Pro, 22H2
VS Code version:
Version: 1.83.0 (user setup)
Commit: e7e037083ff4455cf320e344325dacb480062c3c
Date: 2023-10-03T16:12:16.321Z
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22621
The text was updated successfully, but these errors were encountered: