Comments (7)
@kvor - Are there any errors from the Apex Language Server? See https://github.com/forcedotcom/salesforcedx-vscode/wiki/Apex-Language-Server#are-there-any-errors-from-the-apex-language-server
from salesforcedx-vscode.
@vazexqi No. Output is clean.
from salesforcedx-vscode.
Does this happen when you have a type (custom object, standard object) that it doesn't understand?
Have you fetched the sobjects using https://github.com/forcedotcom/salesforcedx-vscode/tree/develop/packages/salesforcedx-vscode-apex#enable-code-smartness-for-sobjects?
from salesforcedx-vscode.
In any object. After restarting VCS, it works perfectly.
Yes, if I have an issue with autocomplete, I try to repeat the fetch process as described but with no luck.
When it happens, it is usually fixed after VCS is restarted
from salesforcedx-vscode.
@kvor - What restarting does is that it clears out the database (you can find it under .sfdx/tools/apex.db). That seems to imply somewhere that we have gotten into a weird state with the analysis. However, the fact that no error shows up in the Apex Language Server output window is weird though.
Some things to check:
- Are you running multiple copies of VS Code on the same project? Or could you be running the old Force.com IDE 2?
- Is this an SFDX project (or did you do the trick in #123 to enable the language server)?
- Were you switching Git branches when you were coding?
Sorry, this is a bit hard to get a repro so thanks for your patience.
from salesforcedx-vscode.
-
No. One instance/copy of VSCode. Old IDE is not even installed.
-
Yes it is an sfdx project.
-
Yes switching git branches is a quite frequent action. Any chance that connection to apex.db is lost? .sfdx folder is on .gitignore
from salesforcedx-vscode.
Closing this since it was addressed on release v47.5.0
, feel free to reopen if needed.
from salesforcedx-vscode.
Related Issues (20)
- 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
- RuntimeNamespace error HOT 5
- Code coverage highlighting no longer displaying and returns error message on Apex v60.8.0 HOT 10
- SFDX: Authorize an Org failed to runv HOT 7
- Failure performing refresh sObject describe request HOT 28
- Apex Tests Sidebar includes non-existent Apex Test Classes HOT 9
- 'Expected double-quoted property name in JSON at position 62273' Code Coverage NOT WORKING HOT 2
- sfdx apex:test:run command in CI passes run with lower test coverage HOT 2
- Apex Language Server Fails to Start - Expected the service ApexIndexer [FAILED] to be RUNNING HOT 5
- The unpackaged Apex tests execution after unit tests execution should fail when the code coverage is less than 75% HOT 3
- The Outline window gets broken if there is an abstract method in the class HOT 3
- Issues retrieving code coverage for a large codebase HOT 12
- Running Interactive debugger doesn't show Variables HOT 5
- Very slow
- The test class runs very slowly HOT 6
- Error when the command npm i @salesforce/lwc-dev-server HOT 3
- LWC LightningComponentBundle is not working for target in vs code HOT 13
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.