Giter VIP home page Giter VIP logo

Comments (7)

vazexqi avatar vazexqi commented on June 20, 2024

@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.

kvor avatar kvor commented on June 20, 2024

@vazexqi No. Output is clean.

from salesforcedx-vscode.

vazexqi avatar vazexqi commented on June 20, 2024

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.

kvor avatar kvor commented on June 20, 2024

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.

vazexqi avatar vazexqi commented on June 20, 2024

@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:

  1. Are you running multiple copies of VS Code on the same project? Or could you be running the old Force.com IDE 2?
  2. Is this an SFDX project (or did you do the trick in #123 to enable the language server)?
  3. 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.

kvor avatar kvor commented on June 20, 2024

@vazexqi

  1. No. One instance/copy of VSCode. Old IDE is not even installed.

  2. Yes it is an sfdx project.

  3. 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.

lcampos avatar lcampos commented on June 20, 2024

Closing this since it was addressed on release v47.5.0, feel free to reopen if needed.

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.