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
Cannot generate client consuming entity named "Service" #3041
Comments
|
Hi @Jibbril , Thanks for raising up. Could you please share the edmx specification file so we can reproduce? Alternatively, you can also share the part that contains entities with the name "Service". Best regards, |
|
I am unable to share these things due to secrecy issues, I have however created a small SAP CAP repo here reproducing the issue. Check the readme for instructions. Best regards, |
|
Hi @Jibbril , Understood. We'll work on it soon and will update you. FYI, we are working on the next major version update, I hope we can finish it next week, but I cannot make a promise. |
|
Hi @Jibbril , The fix was merged last week and you can test the Please let me know, whether it works. |
|
Hello @jjtang1985, I checked out the canary version and it seems to be working now. Looking forward to the stable version, thanks a lot! Best Regards, |
1 similar comment
|
Hello @jjtang1985, I checked out the canary version and it seems to be working now. Looking forward to the stable version, thanks a lot! Best Regards, |
Describe the bug
I am currently trying to upgrade from using the SAP Cloud SDK version 1.54.2 for javascript to version 2.10.0 and I am running into an issue. I'm looking to generate an oData client, and everything works as intended in the v1 SDK. However, in v2 there is a file called "service.ts" generated automatically when creating the client which is not there in v1. This causes an issue for me since one of the entities in the service I am consuming is named "Service" (capital S). Thus there is both a "service.ts" and a "Service.ts" generated in the client folder, which causes the generator to crash.
To Reproduce
Steps to reproduce the behavior:
generate-odata-clientcommand.Expected behavior
An odata client is generated in the specified output folder.
Used Versions:
Log file
The error message when the generator crashes:
error TS1149: File name '.../service.ts' differs from already included file name '.../Service.ts' only in casing.Impact / Priority
Upgrading to version 2 is quite important since v1 is no longer being supported.
Affected development phase: Development
Impact: Impaired
Timeline: Ideally end of week, latest next week.
Additional context
I posted a question on the sap answers.com forums here.
Image of the files being generated in the client folder:

Any help would be much appreciated!
Best regards,
Jibbril
The text was updated successfully, but these errors were encountered: