Structured text intellisense not working

Hello,

The IntelliSense (CTRL + Space) for Structured Text does not always seem to work.

For one project the IntelliSense works fine for both C and ST and in an other, C works and ST doesn’t.

Steps tried to get it to work again:

  • Restart PC
  • Restart ASCode
  • Open different project
  • Rebuild project

Any ideas on what may cause this issue and how to fix this?

Versions:

AS Code Version 6.5.1

VS Code API Version: 1.106.1

Hi @ArthurWalravens ,
Welcome to the community!
I did few tests with one of our sample prj and I didn’t see problems on IntelliSense.
Could you give us some additional note/example where you see an issue?
Thanks
Ciao
Valerio

IntellisenseASCode.zip (3.1 MB)

IntellisenseASCodeShiftSpace.zip (2.0 MB)
—————————-
Feedback from AI:
In Automation Studio Code 6.5.1, IntelliSense issues often manifest as intermittent failures where Structured Text (ST) suggestions stop working while C suggestions continue to function. This is frequently related to how the editor (based on Eclipse Theia) links to the project data and language servers.

Targeted Fixes for AS Code 6.5.1

  • Check Connection to AS6: Ensure AS Code is correctly linked to your main Automation Studio 6 installation. Verify this in Preferences; if the link is broken, the as-build-server plugin cannot provide context-aware suggestions.

  • Structured Text Flakiness: Users have reported that ST IntelliSense is currently more “flaky” than C. If it stops, a known workaround is to add a new file, move your code into it, and delete the old file to force a fresh index of the content.

  • Reset IntelliSense Database: For C/C++ projects, use the Command Palette (Ctrl+Shift+P) and run C/C++: Reset IntelliSense Database to clear potentially corrupted cache files.

  • Clean the Build Server: Delete the contents of your local telemetry and temporary folders (e.g., C:\Users\<user>\.br-automation\ascode\telemetry) to remove cached session data that might be blocking the build server.

  • Verify Extensions: Ensure the B&R Automation Studio extensions are active. If issues persist after an update, try an Extension Bisect (F1 > Help: Start Extension Bisect) to identify if a conflicting third-party plugin is the cause.
    ——————————

In the Release Notes you see “Structured Text Editor Improvements“ in all releases:

If R&D can reproduce your issue I’m sure they will fix that in the next release. Local B&R Support normally creates a CASE with all data to report the problem.
Thanks
Ciao
Valerio

Hi Valerio,

Thanks for checking.

Unfortunately I don’t have any leads so far, I was just wondering if it was a known issue.

I let one of my colleagues check for the same issue and it occored on their machine as well.
Seems to be a project specific issue but I’m not able to provide this project for you.

If there are any additional steps I can take from my side let me know. I will keep you updated if anything is found.

1 Like

Hi Arthur,
for me it’s interesting the work around AI found on his search: “If it stops, a known workaround is to add a new file, move your code into it, and delete the old file to force a fresh index of the content.“ at least if works you don’t need to restart your PC, rebuild the prj for refreshing index of content.

I’m positive R&D will fix other issues related at IntelliSense and in the mean time possible work around for sure helps.

If you have time and you see the problem, maybe call our Support in your area, they can have a look on some settings, definition of structures…and make notes for R&D.
Thanks
Ciao
Valerio

Hi @ArthurWalravens , please get in touch with local support, they can check with you your project and any specific settings you have inside. This unfortunately we can not do there. Please update us with your findings