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

todos-auth-fluent crashes on launch #113

Closed
mredig opened this issue Sep 24, 2024 · 6 comments
Closed

todos-auth-fluent crashes on launch #113

mredig opened this issue Sep 24, 2024 · 6 comments

Comments

@mredig
Copy link
Contributor

mredig commented Sep 24, 2024

It crashes on this line:
image

So, I set my working directory to /path/to/hummingbird-examples/todos-auth-fluent and proceeded to get the same crash.

image

I'm not familiar with how Mustache works, but I assume there's supposed to be a file or folder matching the expectation?

Here's the directory contents from a fresh checkout:

arm64 mredig@mba2020 todos-auth-fluent % ls -l
total 24
-rw-r--r--  1 mredig  staff  3054 Sep 23 02:15 Dockerfile
-rw-r--r--@ 1 mredig  staff  2505 Sep 23 21:00 Package.swift
-rw-r--r--@ 1 mredig  staff   709 Sep 23 02:15 README.md
drwxr-xr-x  3 mredig  staff    96 Jul 14  2023 Sources
drwxr-xr-x  3 mredig  staff    96 Jul 14  2023 Tests
drwxr-xr-x  5 mredig  staff   160 Sep 23 02:15 public
@mredig
Copy link
Contributor Author

mredig commented Sep 24, 2024

Interesting - it appears if I run via cli, it works...

@adam-fowler
Copy link
Member

This has nothing to do with mustache. It is related to bundling assets with modules. I assumed they worked in Xcode as they work from the CLI, which is used by VSCode. I'll investigate. The error message at least is misleading as the working directory won't affect it.

@mredig
Copy link
Contributor Author

mredig commented Sep 24, 2024

It it affects your priorities at all, think of it simply as a bug report "just so you know". It's not affecting my ability to get my work done, so no pressure from me to fix it! (Unless you want moral support, then by all means GET ON IT!) :)

@adam-fowler
Copy link
Member

It's related to how SwiftPM and Xcode bundle assets. SwiftPM places them all in the root folder of the bundle and Xcode places them in a Contents/Assets folder.

@adam-fowler
Copy link
Member

I should be using resoucesPath instead of bundlePath I'll fix it

@adam-fowler
Copy link
Member

#114 will fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants