Written by

Owner at NiPaRpbotica
Question Nigel Salm · Apr 21, 2021

Viewing .int code of Compiled classes in VS Code

Hi

How do I view the .int code of a compiled class in VS Code?

I am trying to use gj::Locate and the setup works, the explanation is all fine but when i paste an error from the Error Logs into the gj::locate it firstly tells me that it can't find the .cls and when I paste in the .int reference in the text box where you can specify the class, method, line+offset it replies that it can't find the item.

This is something to do with the objectscript extension rather than gj::locate

Nigel 

Product version: IRIS 2020.1

Comments

Dmitry Maslennikov · Apr 21, 2021

As in Studio, in VSCode there is a command, View Others, with hotkey ctrl/cmd+shift+V

0
Lukas Dolezal  May 15, 2024 to Dmitry Maslennikov

VSCode opens the cls file from the int code, but the cursor is not on the same line. How do I display cls or int including cursor movement? Thanks

0
Brett Saviano  May 15, 2024 to Lukas Dolezal

@Lukas Dolezal 
VS Code's View Other command supports jumping to the same line in the INT routine, but that support requires an InterSystems server with Atelier API version 4 or above (Cache 2018.1.6+, IRIS 2019.1.2+, 2020.1.1+, 2021.1+). If you're not using one of those versions then the location mapping won't work.

0
George James · Apr 21, 2021

Do you have a multi-rooted Workspace?  Currently gj :: locate only works on the first top-level folder in a workspace (multi-folder capability coming soon).

What is the first top-level folder in your workspace?  Is it a folder on your local file system or a remote connection to an IRIS server using  isfs or isfs-readonly?

If it's a local folder, have you exported all of your source files?

0
Nigel Salm  Apr 22, 2021 to George James

Hi George

It is a top level folder on my laptop and no I haven't exported all of the classes, So that I shall do and confirm that it works. I will have an answer by tomorrow.  Busy deploying an application on a customer site but wanted to acknowledge that I have read your reply.

Thanks

Nigel

0