Skip to content
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

so many files “missing" #3544

Closed
2 tasks done
pixeled opened this issue Jan 23, 2024 · 7 comments
Closed
2 tasks done

so many files “missing" #3544

pixeled opened this issue Jan 23, 2024 · 7 comments
Labels
bug Something isn't working dev tools Issues related to developer tools transferred This issue was transferred from another Amplify project

Comments

@pixeled
Copy link

pixeled commented Jan 23, 2024

How did you install the Amplify CLI?

curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL

If applicable, what version of Node.js are you using?

n/a

Amplify CLI Version

12.10.1

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

no manual changes made

Describe the bug

after the amplify init and the amplify pull then creating the directory amplify/generated/models that fails to be created and then the amplify pull (which still fails to put anything in the models folder,
the xCode project is modified to require a bunch of files that don’t exist

Showing All Messages
.../amplify/hooks/post-push.sh.sample: No such file or directory
.../amplify/hooks/pre-push.js.sample: No such file or directory

and puts in duplicate compile commands

Showing All Messages
Multiple commands produce ‘.../amplify-meta.json'
Multiple commands produce ‘.../root-cloudformation-stack.json'
Multiple commands produce ‘…/tags.json'

Expected behavior

modification of Xcode project should not make it uncompilable

Reproduction steps

amplify init
amplify pull
mkdir -p amplify/generated/models
amplify pull

(xcode project is tweaked)

Project Identifier

Project Identifier: b9f58993952c779454856d6c2fc263b7

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.
@pixeled pixeled added the pending-triage Issue is pending triage label Jan 23, 2024
@ykethan
Copy link
Member

ykethan commented Jan 23, 2024

Hey @pixeled 👋 thanks for raising this!, it appears the codegen command maybe failing on the pull. I'm going to transfer this over to our codegen repository for better assistance 🙂.

@ykethan ykethan transferred this issue from aws-amplify/amplify-cli Jan 23, 2024
@ykethan ykethan added the transferred This issue was transferred from another Amplify project label Jan 23, 2024
@dpilch
Copy link
Member

dpilch commented Feb 27, 2024

It appears that the issue is that the codegen step on amplify pull is happening even when the API category is not in use. Marking this as a bug.

@dpilch
Copy link
Member

dpilch commented Feb 27, 2024

I also think this fix would take place in the CLI repo, but I'm not sure. It will require some investigation.

@dpilch dpilch added bug Something isn't working and removed bug Something isn't working pending-triage Issue is pending triage labels Feb 27, 2024
@dpilch dpilch transferred this issue from aws-amplify/amplify-codegen Feb 27, 2024
@dpilch
Copy link
Member

dpilch commented Feb 27, 2024

This looks like an issue with the Amplify XCode helpers. The Amplify XCode helper assumes that the API category is in use.

errorDescription: "Amplify generated models not found at \(modelsPath)",

@harsh62
Copy link
Member

harsh62 commented Feb 27, 2024

@dpilch There is an open PR with the CLI team to fix this error. Would you be able to take look aws-amplify/amplify-cli#13616 and probably merge it too..

@phantumcode phantumcode added dev tools Issues related to developer tools pending-release Code has been merged but pending release Code has been merged but pending release labels Feb 28, 2024
@harsh62
Copy link
Member

harsh62 commented Apr 29, 2024

The issue has been released. Please update amplify cli using amplify upgrade.

@harsh62 harsh62 closed this as completed Apr 29, 2024
@github-actions github-actions bot removed the pending-release Code has been merged but pending release Code has been merged but pending release label Apr 29, 2024
Copy link
Contributor

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev tools Issues related to developer tools transferred This issue was transferred from another Amplify project
Projects
None yet
Development

No branches or pull requests

5 participants