Skip to content

Feature request: (optionally) compile imported code #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zdateh opened this issue May 2, 2024 · 2 comments
Closed

Feature request: (optionally) compile imported code #335

zdateh opened this issue May 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@zdateh
Copy link

zdateh commented May 2, 2024

When switching to a different branch, it is necessary to do an "Import All" via the Studio git menu. This works as advertised, but for the imported code to be executable it needs to be compiled again, otherwise you'll still be running the previous branch. For this we go into the command line and do:

do $SYSTEM.OBJ.CompileAll() ; Compiles all classes
do ##class(%Library.Routine).CompileAll() ; Compiles all routines

Which is fine, but ideally the Import would automate this. Perhaps a separate 'Import All and Compile' option? Or a Yes/No prompt after Importing? Or perhaps a global setting to control compilation?

Thanks,
Chris

@isc-tleavitt isc-tleavitt added the enhancement New feature or request label May 15, 2024
@isc-tleavitt
Copy link
Collaborator

This is a great idea. Thank you!

@isc-etamarch isc-etamarch self-assigned this Oct 24, 2024
@isc-etamarch
Copy link
Collaborator

isc-etamarch commented Oct 24, 2024

@zdateh This issue was addressed by #362 and a fix is available in version 2.4.0 and later.

In the settings page there is a compile on import slider that can be checked, which will compile all items when imported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants