-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
Importing the Form162.xml file from the 1.5 release into a clean 2017.2 namespace gives a compilation error. At first I assumed it was because the new Form.Settings class had been omitted from the export. But that's not the case. It seems that Caché is getting confused when doing the compile the first time:
Load started on 11/09/2017 12:30:21
Loading file C:\s\RESTForms\sources\1.5-05Oct2017.xml as xml
Imported class: Form.Adaptor
Imported class: Form.Field
Imported class: Form.File
Imported class: Form.Generators
Imported routine: Form.INC
Imported class: Form.Info
Imported class: Form.JSON.OBJ
Imported class: Form.JSON.SQL
Imported package information: Form
Imported class: Form.Property
Imported class: Form.REST.Abstract
Imported class: Form.REST.Field
Imported class: Form.REST.File
Imported class: Form.REST.Form
Imported class: Form.REST.Main
Imported class: Form.REST.Object
Imported class: Form.REST.Objects
Imported class: Form.Security
Imported class: Form.Settings
Imported class: Form.Test.Address
Imported class: Form.Test.Company
Imported class: Form.Test.Person
Imported class: Form.Test.Simple
Imported class: Form.Util.Converter
Imported class: Form.Util.Init
Imported class: Form.Util.Translate
Imported project: Form.prj
Load finished successfully.
Compilation started on 11/09/2017 12:30:22 with qualifiers 'ckd'
Compiling 24 classes, using 4 worker jobs
Compiling class Form.Info
Compiling class Form.Field
Compiling class Form.Generators
Compiling class Form.Property
Compiling class Form.REST.Abstract
Compiling class Form.Security
Compiling class Form.Settings
Compiling class Form.Test.Address
Compiling class Form.Util.Converter
Compiling class Form.Util.Init
Compiling class Form.Util.Translate
Compiling class Form.File
Compiling class Form.JSON.OBJ
ERROR #5002: Cache error: <CLASS DOES NOT EXIST>SetVisited+1^Form.JSON.OBJ.G1 *Form.Settings
> ERROR #5490: Error running generator for method 'SetVisited:Form.JSON.OBJ'
ERROR: Form.JSON.OBJ.G1.int(SetVisited+1) : <CLASS DOES NOT EXIST> : set code = ##class(Form.Settings).getSetting("visited")
ERROR: Form.JSON.OBJ.cls(SetVisited) of generated code
> ERROR #5030: An error occurred while compiling class 'Form.JSON.OBJ'
Compiling class Form.JSON.SQL
Compiling class Form.REST.Main
Compiling class Form.REST.Form
Compiling class Form.REST.Field
Compiling class Form.REST.File
Compiling class Form.REST.Objects
Compiling class Form.REST.Object
Compiling table Form.File
Compiling routine Form.Generators.1
Compiling routine Form.Info.1
Compiling routine Form.Property.1
Compiling routine Form.REST.Abstract.1
Compiling routine Form.Security.1
Compiling routine Form.Settings.1
Compiling routine Form.Test.Address.1
Compiling routine Form.Util.Converter.1
Compiling routine Form.Util.Init.1
Compiling routine Form.Util.Translate.1
Compiling routine Form.JSON.SQL.1
Compiling routine Form.JSON.OBJ.1
Compiling routine Form.File.1
Compiling routine Form.REST.Form.1
Compiling routine Form.REST.Field.1
Compiling routine Form.REST.Main.1
Compiling routine Form.REST.Object.1
Compiling routine Form.REST.File.1
Compiling routine Form.REST.Objects.1
Compiling class Form.Adaptor
Compiling class Form.Test.Simple
Compiling class Form.Test.Company
Compiling class Form.Test.Person
Compiling table Form_Test.Company
Compiling table Form_Test.Person
Compiling table Form_Test.Simple
Compiling routine Form.Adaptor.1
Compiling routine Form.Test.Company.1
Compiling routine Form.Test.Simple.1
Compiling routine Form.Test.Person.1
Skipping include files generation
Detected 1 errors during compilation in 2.384s.
If I immediately recompile the Form package it goes through cleanly:
Compilation started on 11/09/2017 12:33:24 with qualifiers 'ck'
Compiling 24 classes, using 4 worker jobs
Compiling class Form.Field
Compiling class Form.Info
Compiling class Form.Generators
Compiling class Form.Property
Compiling class Form.REST.Abstract
Compiling class Form.Security
Compiling class Form.Settings
Compiling class Form.Test.Address
Compiling class Form.Util.Converter
Compiling class Form.Util.Init
Compiling class Form.Util.Translate
Compiling class Form.File
Compiling class Form.JSON.OBJ
Compiling class Form.JSON.SQL
Compiling class Form.REST.Field
Compiling class Form.REST.Main
Compiling class Form.REST.File
Compiling class Form.REST.Form
Compiling class Form.REST.Object
Compiling class Form.REST.Objects
Compiling table Form.File
Compiling routine Form.Info.1
Compiling routine Form.Generators.1
Compiling routine Form.Property.1
Compiling routine Form.REST.Abstract.1
Compiling routine Form.Security.1
Compiling routine Form.Settings.1
Compiling routine Form.Test.Address.1
Compiling routine Form.Util.Converter.1
Compiling routine Form.Util.Init.1
Compiling routine Form.Util.Translate.1
Compiling routine Form.JSON.SQL.1
Compiling routine Form.JSON.OBJ.1
Compiling routine Form.File.1
Compiling routine Form.REST.Field.1
Compiling routine Form.REST.Main.1
Compiling routine Form.REST.File.1
Compiling routine Form.REST.Form.1
Compiling routine Form.REST.Object.1
Compiling routine Form.REST.Objects.1
Compiling class Form.Adaptor
Compiling class Form.Test.Simple
Compiling class Form.Test.Company
Compiling class Form.Test.Person
Compiling table Form_Test.Simple
Compiling table Form_Test.Company
Compiling table Form_Test.Person
Compiling routine Form.Adaptor.1
Compiling routine Form.Test.Company.1
Compiling routine Form.Test.Simple.1
Compiling routine Form.Test.Person.1
Skipping include files generation
Compilation finished successfully in 2.362s.