Question Alex Baumberg · Feb 5, 2024

"import and compile" does not appear in VSCode

Hi all,

I'm very new to this ecosystem so please bear with me:

I've startted learning online and have installed everything I need. I have VS code and I have most definitely installed the pack (3 packages) needed for working on it with ObjectScript. Even though this is the case I'm running into 2 problems:

1. when I type "class" I only get 4 option for auto complete. no "class with multiple inheritances" or anything of the sort. In fact, no Class at all, only ClassMethod. ClassResponse etc.

2. It says in the docs to right click on a class and hit "Import and compile" but such an option doesn't exist for me. I'm stuck and cannot move forward with my training, mostly for this reason. 

Please help. 

Product version: IRIS 2023.3

Comments

Dmitry Maslennikov · Feb 5, 2024

Check the settings, and configure connection to the server, it will not those options if server not available, where to actually import it

0
Michael Davidovich · Feb 6, 2024

@Alex Baumberg are you running IRIS on a Docker container or is it installed locally on your machine?  Check out this section: https://intersystems-community.github.io/vscode-objectscript/configurat…

Either way the setup should be quite the same.  Can someone confirm for client-side editing if the local source code folder needs a bind-mount to the Docker container and to to where it should be mapped? 

You might try using this to get started as another option: https://github.com/intersystems-community/objectscript-docker-template

For what it's worth, I'm a few years into this and I'm still constantly confused :)

0
Raj Singh  Feb 15, 2024 to Michael Davidovich

@Michael Davidovich if you're using IRIS on Docker and client-side editing, there is no need for the local source code folder to be mounted on the Docker container. ObjectScript is uploaded to the server using the network connection just as if IRIS was on another machine.

0