-
-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Labels
Description
Problem description
The following function signature causes a syntax error in sourcgen:
int soln_newInterface(const char* infile, const char* name, int na, const int* adjacent);Steps to reproduce
Add function with signature and run GH CI (see #1448).
Fwiw, a similar signature in ctonedim.h (which is currently not included in .NET) will presumably fail also:
int sim1D_new(size_t nd, const int* domains);Behavior
See GH Action
Relevant details from log
2023-03-04T18:21:24.9253446Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1031: Type expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:24.9383516Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1001: Identifier expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:24.9385819Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1026: ) expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:24.9387491Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1002: ; expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:24.9389312Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,113): error CS0145: A const field requires a value to be provided [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:24.9391610Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,121): error CS1003: Syntax error, ',' expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.0662852Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1031: Type expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.0667480Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1001: Identifier expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.0670849Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1026: ) expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.0673541Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1002: ; expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.0676471Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,113): error CS0145: A const field requires a value to be provided [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.0679731Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,121): error CS1003: Syntax error, ',' expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1429675Z
2023-03-04T18:21:25.1430446Z Build FAILED.
2023-03-04T18:21:25.1432509Z
2023-03-04T18:21:25.1433930Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1031: Type expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1436932Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1001: Identifier expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1439026Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1026: ) expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1441390Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1002: ; expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1443993Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,113): error CS0145: A const field requires a value to be provided [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1447134Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/netstandard2.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,121): error CS1003: Syntax error, ',' expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1449333Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1031: Type expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1451544Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1001: Identifier expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1453548Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1026: ) expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1455523Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,102): error CS1002: ; expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1457449Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,113): error CS0145: A const field requires a value to be provided [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1460279Z ##[error]/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/obj/Debug/net6.0/sourcegen/Interop.LibCantera.ct.h.g.cs(22,121): error CS1003: Syntax error, ',' expected [/home/runner/work/cantera/cantera/interfaces/dotnet/Cantera/Cantera.csproj]
2023-03-04T18:21:25.1461576Z 0 Warning(s)
2023-03-04T18:21:25.1461811Z 12 Error(s)
System information
- Cantera version: current
main - OS: GH Actions
Additional context
Bug emerged in #1448; as an aside, it would be terrific if the following could be updated:
cantera/interfaces/sourcegen/README.md
Line 36 in c3eb05c
| ## running from the command line |
Reactions are currently unavailable