-
Notifications
You must be signed in to change notification settings - Fork 32
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
Unable to build in Swift Playgrounds #164
Comments
Thanks, I don't use playgrounds much, but I'll look into it. The logic for doing the bundle lookup (which is where that string shown in the error is) must require different handling for playgrounds. |
Before I spend too much time on this, you are only seeing the "Could not find markup.html, css, and js for this bundle." problem? I tried and failed with an error:
This seems to be some kind of toolchain issue per swiftlang/swift#62626. Maybe it has only appeared since the last update, I am not sure. |
Well, I learned a lot about Playgrounds, but in the end, Playgrounds do not seem to support the basic Here is some playground code to illustrate that only uses WKWebView. It references a test.html file you would have to create with contents like
The "failure" in the Playground is just that web page appears blank. Presumably this is because the file just doesn't load, but the failure is silent.
I'm going to leave this issue open, since MarkupEditor basically doesn't work in a Playground. I didn't have any trouble building when I included the Playground in an Xcode workspace that included the |
hello, thanks a lot for this!! seems then like I might be out of luck? I'm running the SimplestContentView code from the example found in the package in ContentView.swift, then running it on the playground. the "Could not find markup.html, css, and js for this bundle." error is the only thing i get, which opens the |
Yes, I think you will ultimately be out of luck until Playgrounds support
I will make this change at some point and will update this issue when it gets pushed to a tagged package properly, which is probably what you are trying to use with Playgrounds. It's something I am going to do to support user-supplied CSS anyway, which would come in the bundle of the app consuming MarkupEditor, rather than in the MarkupEditor bundle. |
hello @stevengharris, loved your project and trying to use it in swift playgrounds on my iPad, I'm constantly getting an error message "Could not find markup.html, css, and js for this bundle." from MarkupWKWebView. Since I imported the package, nothing is modifiable so I'm a bit stuck on how to proceed. Thanks!
The text was updated successfully, but these errors were encountered: