Written by

IRIS Developer Advocate, Software developer at CaretDev, Tabcorp
Question Dmitry Maslennikov · May 15, 2023

What happened to compilation log?

How to understand what's wrong with compilation if the compilator just hides errors?

Compilation started on 05/15/2023 15:58:11 with qualifiers 'cuk'

Detected 1 errors during compilation in 0.003s.


Compilation started on 05/15/2023 15:58:32 with qualifiers 'cuk'

Detected 1 errors during compilation in 0.002s.


Compilation started on 05/15/2023 15:58:51 with qualifiers 'cuk'

Detected 40 errors during compilation in 0.089s.

 

40 errors, and what do I have to do with this so valuable information?

Product version: IRIS 2023.1
$ZV: IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2023.1 (Build 229U) Fri Apr 14 2023 17:16:48 EDT

Comments

Stephen Canzano · May 15, 2023

when you call the compiler did you call

Set tSC=##class(%SYSTEM.OBJ).Compile(ClassName,"cuk",.errorFile)

and was anything contained in the output array errorFile?

0
Dmitry Maslennikov  May 15, 2023 to Stephen Canzano

It's the compilation log in VSCode, why should I even try this way?

0
Evgeny Shvarov  May 16, 2023 to Dmitry Maslennikov

Maybe it is an issue of VSCode?

0
Dmitry Maslennikov  May 16, 2023 to Evgeny Shvarov

Nope, plain $system.OBJ.Compile outputs the same way.

0
Evgeny Shvarov  May 16, 2023 to Dmitry Maslennikov

And there is no "verbose" flag available?

0
Dmitry Maslennikov  May 16, 2023 to Evgeny Shvarov

No it's just randomly can output errors, and output just nothing

0
Dmitry Maslennikov · Sep 11, 2023

Any news, about this issue, or that only happen to me?

I'm working in docker, in many different IRISs, but always have this issue

Or finally, no one works with ObjectScript anymore?

0
Dmitry Maslennikov · Sep 11, 2023

In terminal, I managed to get expected log, on each third compile, but it's still insane

Compilation started on 09/11/2023 19:13:27 with qualifiers 'ck-u'
Compiling class User.demo
Compiling table SQLUser.demo
Compiling routine User.demo.1
Compilation finished successfully in 0.081s.

USER>do $system.OBJ.Compile("User.demo","ck-u")

Compilation started on 09/11/2023 19:13:28 with qualifiers 'ck-u'
Compilation finished successfully in 0.071s.

USER>do $system.OBJ.Compile("User.demo","ck-u")

Compilation started on 09/11/2023 19:13:29 with qualifiers 'ck-u'
Compilation finished successfully in 0.064s.

USER>do $system.OBJ.Compile("User.demo","ck-u")

Compilation started on 09/11/2023 19:13:30 with qualifiers 'ck-u'
Compiling class User.demo
Compiling table SQLUser.demo
Compiling routine User.demo.1
Compilation finished successfully in 0.087s.
0
Dmitry Maslennikov  Sep 11, 2023 to Dmitry Maslennikov

And the same class through VSCode, outputs always the same

Compilation started on 09/11/2023 19:15:59 with qualifiers 'c-uk'
Compilation finished successfully in 0.059s.

Compilation started on 09/11/2023 19:16:00 with qualifiers 'c-uk'
Compilation finished successfully in 0.056s.

Compilation started on 09/11/2023 19:16:22 with qualifiers 'c-uk'
Compilation finished successfully in 0.056s.

Compilation started on 09/11/2023 19:16:27 with qualifiers 'c-uk'
Compilation finished successfully in 0.050s.

Compilation started on 09/11/2023 19:16:30 with qualifiers 'c-uk'
Compilation finished successfully in 0.052s.

Compilation started on 09/11/2023 19:16:33 with qualifiers 'c-uk'
Compilation finished successfully in 0.056s.

Compilation started on 09/11/2023 19:16:35 with qualifiers 'c-uk'
Compilation finished successfully in 0.053s.
0
Dmitry Maslennikov  Sep 11, 2023 to Dmitry Maslennikov

Can't reproduce it anymore 🤦‍♂️ 

0