SAP / cloud-mta-build-tool

Multi-Target Application (MTA) build tool for Cloud Applications https://sap.github.io/cloud-mta-build-tool
Apache License 2.0
141 stars 62 forks source link

Bug: Cloud mta build tool is not installed... #889

Open i066088 opened 3 years ago

i066088 commented 3 years ago

A bug:

Steps to Reproduce on Windows

  1. Install mbt by running: npm install -g mbt
  2. Install this tool in the vs code
  3. Create one MTA project with a mta.yaml file in VS code
  4. Right click this file, press Build MTA project in the context menu.
  5. This error happens: The cloud MTA build is not installed in your environment. Go to https://github.com/SAP. Please check the attached. mbt-not-found
i066088 commented 3 years ago

no one check this issue?

rxunxk commented 11 months ago

@i066088 try doing npm install -g mta

aelox commented 6 months ago

My personal solution (on windows 10):

  1. Install the Cloud-MTA-Tool by npm install -g mta.
  2. By npm list -g find the path of your global node modules.
  3. As a privileged user, copy the exe file C:\path\to\globel\modules\node_modules\mta\unpacked_bin\mta.exe to the %windir% folder (mostly to C:\Windows) or to a folder where the PATH environment variable points to.
  4. Check with where mta that the copied mta.exe file is the first executable that the system meets.
  5. Now install the vscode-mta-tools tools in visual studio code ... best within a bash shell as retrieved from https://git-scm.com/ by issuing git clone https://github.com/SAP/vscode-mta-tools and cd vscode-mta-tools, replacing the lines in package.json containing "vsce": "1.96.1" and "vscode-test": "1.5.2" by "@vscode/vsce": "^2" resp. "@vscode/test-electron": "^2", running npm audit fix --force, npm update --package-lock-only and then npm run ci. All tests should now pass (possibly you have to put %ProgramFiles%\Git\bin into the PATH environment variable after %ProgramFiles%\Git\cmd.

But what is it for? At the end, the above mention error message does no longer popup, but the extension claims: "Could not find any generators." :-(