Giter VIP home page Giter VIP logo

Comments (9)

peternhale avatar peternhale commented on July 19, 2024 1

@paustint extensions should not activate if preconditions for activation are not met.

vscode-core precondition is "workspaceContains:sfdx-project.json" so not sure what is happening.
I tried this on a new folder whose contents are from a simple npm init and I am not seeing vscode-core mentioned in in ext host log.

I will see if I can find a reasonable explanation.

from salesforcedx-vscode.

peternhale avatar peternhale commented on July 19, 2024

@paustint I was unable to reproduce this in my environment. Could you check to see if any of the parent directories of you project has an sfdx-project.json file?

from salesforcedx-vscode.

paustint avatar paustint commented on July 19, 2024

I'll try to determine that when back at my computer. It only happened once and does not appear to continue to happen - so not exactly sure what happened. I will play around with restarting vscode and restarting extension host etc...

from salesforcedx-vscode.

peternhale avatar peternhale commented on July 19, 2024

@paustint thank you. I am going to close this issue. Please feel free to reopen it if you encounter the problem again.

from salesforcedx-vscode.

paustint avatar paustint commented on July 19, 2024

@peternhale - Is it normal that the extension shows an error message for all non-sfdx projects? This is really annoying to see this every time I start VSCode in non-sfdx workspaces.

These are the only things that show up in the output logs (this is from extension host output)

2024-02-27 07:22:08.596 [info] ExtensionService#_doActivateExtension salesforce.salesforce-vscode-slds, startup: false, activationEvent: 'onLanguage:javascript'
2024-02-27 07:22:08.638 [info] ExtensionService#_doActivateExtension salesforce.salesforcedx-vscode-core, startup: false, activationEvent: 'onView:sfdx.tasks.view'

image

image

image

from salesforcedx-vscode.

paustint avatar paustint commented on July 19, 2024

Here is the repo that I normally work in, but have seen the same happen on other computers with different codebases.
there is not an sfdx-project.json in the codebase, I am not using a multi-root workspace, and I have 100% confirmed that there is not an sfdx-project.json in any parent folders.

It is a very minor annoyance, so not something I am very concerned about.

from salesforcedx-vscode.

peternhale avatar peternhale commented on July 19, 2024

@paustint I just tried the jetstream project on my Mac with Salesforce Extension Pack v60.1.2 and I am not seeing either extension mentioned in the exthost log. I also tried with the expanded extension pack, with the same result.

Version: 1.86.2
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:42:13.651Z (2 wks ago)
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin x64 23.3.0

from salesforcedx-vscode.

paustint avatar paustint commented on July 19, 2024

@peternhale - I don't know if this helps at all, but I just noticed that this entry is showing up in the "Extension Hosts" log when I start VSCode:
2024-03-10 08:53:04.306 [info] ExtensionService#_doActivateExtension salesforce.salesforcedx-vscode-core, startup: false, activationEvent: 'onView:sfdx.tasks.view'

from salesforcedx-vscode.

paustint avatar paustint commented on July 19, 2024

@peternhale - lol, one other thing is that an .sfdx folder is magically created at the same time this error message shows up. I just downloaded a metadata package, unzipped, and opened in VSCode and I get the error (in my downloads folder) and then the sfdx folder is created.

This issue happens on 4 different computers, but I do have settings-sync so there must be something there.

These are the only user settings that seem related to this extension AFAIK

"salesforcedx-vscode-apex.java.home": "/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home",
"settingsSync.ignoredSettings": ["salesforcedx-vscode-apex.java.home"],
image

from salesforcedx-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.