Port to new gongc
Closed this issue · 0 comments
thomaspeugeot commented
Issue with ng compilation
../vendor/github.com/fullstack-lang/gong/ng/projects/gong/src/public-api.ts:66:0-51 -
Error: Module not found: Error: Can't resolve './lib/GongFilePerStructSubTemplate' in
'D:\MOSS-Users\peugeot\go\src\github.com\fullstack-lang\gongfly\vendor\github.com\fullstack-lang\gong\ng\projects\gong\src'
Error: ../vendor/github.com/fullstack-lang/gong/ng/projects/gong/src/public-api.ts:80:15 -
error TS2307: Cannot find module './lib/GongFilePerStructSubTemplate' or its corresponding type declarations.
80 export * from './lib/GongFilePerStructSubTemplate'
It is strange since the original gong itself compiles without problem.
The file is a from an enum in go. It
// generated from ng_file_enum.ts.go
export enum GongFilePerStructSubTemplate {
// insertion point
GongFileFieldSubTmplSetBasicFieldBool = 0,
GongFileFieldSubTmplSetBasicFieldFloat64 = 2,
GongFileFieldSubTmplSetBasicFieldInt = 1,
GongFileFieldSubTmplSetBasicFieldString = 3,
GongFileFieldSubTmplSetBasicFieldStringEnum = 5,
GongFileFieldSubTmplSetPointerField = 6,
GongFileFieldSubTmplSetSliceOfPointersField = 7,
GongFileFieldSubTmplSetTimeField = 4,
}
export interface GongFilePerStructSubTemplateSelect {
value: string;
viewValue: string;
}
export const GongFilePerStructSubTemplateList: GongFilePerStructSubTemplateSelect[] = [ // insertion point
{ value: 'GongFileFieldSubTmplSetBasicFieldBool', viewValue: '0' },
{ value: 'GongFileFieldSubTmplSetBasicFieldFloat64', viewValue: '2' },
{ value: 'GongFileFieldSubTmplSetBasicFieldInt', viewValue: '1' },
{ value: 'GongFileFieldSubTmplSetBasicFieldString', viewValue: '3' },
{ value: 'GongFileFieldSubTmplSetBasicFieldStringEnum', viewValue: '5' },
{ value: 'GongFileFieldSubTmplSetPointerField', viewValue: '6' },
{ value: 'GongFileFieldSubTmplSetSliceOfPointersField', viewValue: '7' },
{ value: 'GongFileFieldSubTmplSetTimeField', viewValue: '4' },
];
Strangely, this file has not been vendored
Let's check which version are present
github.com/fullstack-lang/gong v0.0.0-202202 14161310-d4c34ec6ea1a
github.com/fullstack-lang/gongdoc v0.0.0-202202 14105409-ca274e5c9098
github.com/fullstack-lang/gongleaflet v0.0.0-202202 10073428-f83ccd33a1be
github.com/fullstack-lang/gongsim v0.0.0-202202 17091636-4604a7b83119
Let's try to refresh those repo.
Maybe this is because it is not used and therefore not vendored ?
Indeed, it is ignored by git.
OK solved