Git Product home page Git Product logo

Comments (9)

jung-thomas avatar jung-thomas commented on May 24, 2024 2

Ok I think there was an upgrade to the CF cli version recently and with it the format of cf env command has changed breaking this script. @qmacro is away this week and I didn't want to change anything already there. Therefore I've added another script called ./default-env-gen7. https://github.com/SAP-samples/teched2020-developer-keynote/blob/main/cap/brain/default-env-gen7

I tested this script in the Business Application Studio and it works fine. Hopefully this will get you going again until DJ gets back next week and we can look for a more permanent solution.

from teched2020-developer-keynote.

ag3silaus avatar ag3silaus commented on May 24, 2024 1

from teched2020-developer-keynote.

ag3silaus avatar ag3silaus commented on May 24, 2024

Hello Thomas,
When I ran your script, the Json file was created, but this time I got an error like the picture in the "cds run" command.

error

from teched2020-developer-keynote.

jung-thomas avatar jung-thomas commented on May 24, 2024

@ag3silaus - I'm not able to recreate that issue. When I run npm start - it starts fine and I see the initialization to the Enterprise Messaging. When you created the instance of the enterprise messaging service, which plan did you use? You want to be sure to use the dev plan. https://github.com/SAP-samples/teched2020-developer-keynote/tree/main/messagebus

image

from teched2020-developer-keynote.

jung-thomas avatar jung-thomas commented on May 24, 2024

By any chance did you change the version of the @sap/cds module in package.json of the /cap/brain? If I update my project to 5.x version of CAP then I do get that same error you received. However when I go back to the specific version used in this repo (4.4.7) and use npm install then it starts fine again.

"dependencies": {
"@sap/cds": "4.4.7",
"@sap/hana-client": "^2.5",
"@sap/xb-msg-amqp-v100": "latest",
"console-log-level": "^1.4.1",
"express": "^4",
"sqlite3": "^5.0"
},

After install check from the terminal in this folder with a "cds version" to see what version it is using.

from teched2020-developer-keynote.

ag3silaus avatar ag3silaus commented on May 24, 2024

Hallo Thomas,
i create new CAP in my BAS and i didnt receive this error. I will use this app for the future lessons. But i want to know also where problem is? Thank you for your patience.

problem

from teched2020-developer-keynote.

qmacro avatar qmacro commented on May 24, 2024

Hi @ag3silaus I'll be back from holiday next week and I'm looking forward to taking a look here too. Speak soon. Cheers. DJ

from teched2020-developer-keynote.

qmacro avatar qmacro commented on May 24, 2024

Hi @ag3silaus we addressed this in the Open Working live stream, hope this is OK. Basically you got a single } because the output of cf env at version 7 is different to the output at version 6 and the sed based parsing was too brittle to cope. My fault entirely. Tom corrected this at the time with a temporary version, the associated PR makes this permanent.

from teched2020-developer-keynote.

qmacro avatar qmacro commented on May 24, 2024

Hi again @ag3silaus on the cds version and enterprise messaging "kind", there are changes relating to single/multi tenancy support and you may need to use enterprise-messaging-shared in newer versions of cds. See the live stream around 100 minutes in.

from teched2020-developer-keynote.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.