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

Extension fails to build #1

Open
zats opened this issue Apr 15, 2024 · 0 comments
Open

Extension fails to build #1

zats opened this issue Apr 15, 2024 · 0 comments

Comments

@zats
Copy link

zats commented Apr 15, 2024

Hey folks, just getting started and running into the issue following the readme.

Imported extensions successfully (seeing the commands in raycast)
Trying to build the extension running into following issue:

$ cd "/tmp/extensions-swift-sample" && npm run dev

> dev
> ray develop

info  -  entry points [src/noArgumentsNoReturn.tsx src/multipleArguments.tsx src/arrayArguments.tsx src/delayedExecution.tsx src/returnClass.tsx src/errorAsString.tsx src/errorAsEnum.tsx src/optionals.tsx]
error -  compiling swift package
build failed (src/optionals.tsx:3:26 import { optionals } from "swift:../swift";): Cannot find Swift sources directory: ../../private/tmp/extensions-swift-sample/swift/Sources

is there an additional step I am missing? (the folder referenced in the error message is actually present on the disk, tho not 100% sure about the relative path tbf)

Update: checking out again and running

$ npm install
$ npm run dev

> dev
> ray develop

info  -  entry points [src/noArgumentsNoReturn.tsx src/multipleArguments.tsx src/arrayArguments.tsx src/delayedExecution.tsx src/returnClass.tsx src/errorAsString.tsx src/errorAsEnum.tsx src/optionals.tsx]
error -  compiling swift package
build failed (src/delayedExecution.tsx:3:32 import { delayedGreeting } from "swift:../swift";): Cannot find Swift sources directory: ../../private/tmp/extensions-swift-sample/swift/Sources

worked, will re-open the issue if I see it again

@zats zats closed this as completed Apr 18, 2024
@zats zats reopened this Apr 18, 2024
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

1 participant