Comments (9)
@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.
@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.
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.
@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.
@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'
from salesforcedx-vscode.
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.
@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.
@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.
@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](https://private-user-images.githubusercontent.com/5461649/316208047-e6db29ed-d7fe-4b6a-bc45-0f7274c90e8a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI2MDUxNTAsIm5iZiI6MTcxMjYwNDg1MCwicGF0aCI6Ii81NDYxNjQ5LzMxNjIwODA0Ny1lNmRiMjllZC1kN2ZlLTRiNmEtYmM0NS0wZjcyNzRjOTBlOGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MDhUMTkzNDEwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWZhNzRjNDg3M2FjMDAxMGRlZTIyYmM0Y2YzMzRmMzk3MGE5OGY1N2QwMDVlZjhlNzMxNDY0MDFmNDJmMDc5NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.IcwTn0lFCTt-IgJSiDgDWlAGdUspsRqIeAvG9ifdJTg)
from salesforcedx-vscode.
Related Issues (20)
- ❓ Ask: Help Us Gather Slow Startup Performance Data HOT 9
- Error "There is no line breakpoint information for the current project" encountered when running command "SFDX: Update Checkpoints in Org" HOT 6
- Show what is being retrieved from Org Metadata Browser HOT 1
- Deploying from VS code to an org is extremely extremely slow. Takes 5+ minute for some small classes HOT 15
- ❓ Ask: Help us gather Deploy/Retrieve perf data - "Deploy Source to org is too slow" HOT 7
- Extension nt issue HOT 5
- 🔜 Update: Local Development Server Deprecation Notice & Announcement HOT 7
- Missing Label when folder is not SFDX HOT 2
- SFDC Retrieve doesn't work on an Indvidual component or folder. HOT 7
- import { createElement } causes "LWC1702: lwc" in jest test HOT 1
- Code Coverage Reports in Deploy Commands Produce Unreliable `Covered` Lines HOT 30
- ❗️❗️SFDX: Authorize an Org commands will fail with Chromedriver v123 -> incompatible with Salesforce CLI HOT 1
- Apex Language Server Fails at Startup - Cannot read properties of null (reading 'capabilities') HOT 4
- Add setting to change the StatusBar color when working in a production org HOT 1
- jsconfig.json generates incorrectly and disallows correction HOT 2
- SF Code deploy not working HOT 4
- Change Default Org does not show the already connected orgs. Unable to change the Default Org HOT 4
- Unable to change the default org if nodes in config.json are not in the right order HOT 3
- Command 'SFDX: Launch Apex Replay Debugger with Current File' resulted in an error HOT 4
- Apex extension stopped working in big repos HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salesforcedx-vscode.