-
Notifications
You must be signed in to change notification settings - Fork 99
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
Doc Comment in Node js release v8.2 and in page https://github.com/cap-js/docs/blob/main/cds/cdl.md#doc-comments---- #1231
Comments
Hi Martin, These are my versions:
|
Does it work if you add the following to your package.json?
|
Ahhh, we are getting closer. Once I add hana.comments = true into the cds section of my package JSON AND I use the command line --docs. It seems to add the comment. BUT just adding cds.docs=true and cds.hana.comments=true without the command line parameter --docs does not compile it with comments. This is what I ultimately want so my comments get deployed. Thinking that I might be able to adjust my mta.yaml and change the build to npx cds build --docs --production, but when I run this on the command line I get "Invalid option: --docs" |
As for versions: |
Capire documentation and corresponding implementation in cds are currently inconsistent. Instead of cds.docs=true you have to set The Note: Enabling hana comments has some consequences you should keep in mind:
|
Perfect, that works! @renejeglinsky are making the updates to the docu or do you want me to suggest something |
Hi Martin, Lothar already provided a fix: #1271 Do you agree to close this issue then? |
Yipp, let's close it and thanks for the collaboration. |
The generation of doc comments into a hdbtable does not seem to work. I don't know if this is considered a bug or a documentation inconsistency.
Here is what I tried to narrow it down:
cds c ./db/core/eam-t.cds --docs -2 hdbtable
and getBased on the documentation I assumed there should be a comment in the name column.
I also tried to "overdue" it and set
cds.docs
in the package.json, but that does not have any effect.Interestingly
cds c ./db/core/eam-t.cds --docs
shows doc as an attribute of name (if I specify
--docs
).The text was updated successfully, but these errors were encountered: