1,714 questions
2
votes
1
answer
244
views
SwiftUI preview not working in Xcode 26 when “Automatically Refresh Canvas” is enabled
After updating to Xcode 26, I’m no longer able to load SwiftUI previews in new projects. The preview pane shows the error:
Cannot preview in this file.
Interestingly, if I disable “Automatically ...
1
vote
0
answers
40
views
Is it possible to "openFilePreserveFocus" without preview mode on VS Code?
I am currently trying to adopt keyboard shortcuts for frequent tasks, where using
the mouse has become cumbersome.
When writting c and c++, I find myself setting up two tab groups and opening make, .h,...
0
votes
0
answers
76
views
How do I generate print preview in printdialog box in vb.net
How do I generate a preview in the printdialog box in vb.net. In the frame where the preview would appear, the message "This app doesn't support print preview' appears. (Pictured below)
I use ...
0
votes
0
answers
28
views
Mediaplayer in Android Studio causes render problem
I am a beginner with Android Studio. Below code causes renderproblem in preview window. Any idea why this is? Maybe the context? I didn't find any other context variable that didn't give an error.
@...
0
votes
1
answer
113
views
SwiftUI preview not working with @ObservedObject store (SessionStore)
I'm developing an iOS application using SwiftUI, and I have a custom view called DashboardView which takes an @ObservedObject of type SessionStore.
The problem: the preview does not show at all in ...
0
votes
1
answer
102
views
Fix for Unicode Rendering Issue in Avalonia Previewer
I encountered an issue with the Avalonia Previewer where Unicode characters (specifically U+1F5D5) were not rendered properly. The Previewer would not display correctly when trying to use this ...
0
votes
0
answers
67
views
How to align preview and captured image in 1:1 using CamerAwesome?
I'm using the CamerAwesome plugin in Flutter to capture images. My goal is to have a 1:1 aspect ratio for both the preview and the final captured image.
While I have set up the preview to display in 1:...
4
votes
1
answer
3k
views
How to fix crashing Previews in Xcode 16?
I was not able to run any previews in my framework, and I received the following message: 'XCPreviewAgent crashed due to fatalError...'.
I managed to fix the issue myself, and since it wasn't easy, I ...
0
votes
1
answer
47
views
Unable to generate link preview for webpages of our website
I've created a react SPA. But when I share the link, it neither generates the link preview nor the description & title. I used meta tags from metatags.io for preview but it didn't work. This ...
0
votes
0
answers
57
views
Swift basics: State, Binding, and Preview
SOLVED, thanks to @JoakimDanielson. Hope this helps others...
I was trying to understand @State and @Binding, and was getting stuck in the preview for SwiftUI.
As you will see, I was trying to learn ...
3
votes
1
answer
280
views
LiveEdit not working in Android Studio: Internal error ClassCastException BasicValue cannot be cast to IntValue
I'm using jetpack compose in a project.
I'm using android studio Koala 2024.1.2 Patch 1. I'm using everything almost to the latest versions.
I have a simple composable screen (a bunch of Composable ...
1
vote
0
answers
37
views
Android Studio will not attach a debugger if the preview is open
If I try to debug a project while the preview is open for Composables (Split - Alt+Shift+Right), the debugger fails to connect. I have to close the split (click the code button) to run the code.
Why ...
1
vote
1
answer
163
views
When using CameraPreview, the camera screen is in Landscape mode and the Aspect Ratio is slightly off
Problem:
When using CameraPreview, the camera screen is in Landscape mode and the Aspect Ratio is slightly off. This is quite strange because the same code works fine in other projects.
What could be ...
0
votes
1
answer
243
views
Remove rename from hyperlink in Google Sheets
I have a Google Sheet with a bunch of links in it. I don't want to look at ugly urls so I have them renamed to simply say "Link". However I can't preview the links like this. I haven't been ...
2
votes
1
answer
874
views
Visual Studio 2022 Preview Version 17.12.0 hangs when the auto generated Blazor Web App runs in debug mode
toady (Aug 20,2024) I updated my Visual Studio 2022 both stable and preview versions 17.11.0 and 17.12.0 Preview 1 respectively by running the Visual Studio Installer and choosing both to be updated. ...
1
vote
0
answers
68
views
Image preview error in visual studio code
Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.
I was trying to get the image preview in ...
1
vote
0
answers
117
views
Preview is returning the published post. I want the modified post
I'm working in a Next.js 13 app, using Contentful CMS. I have the rights ENV vars and i want to have the preview of each post before to publish it.
I wrapped my _app.js with
import { ...
-1
votes
1
answer
82
views
how to use the #Preview macro in Xcode [closed]
how to refactor this code to Xcode 15 and make preview works?
struct HistoryView_Previews: PreviewProvider {
static var history: History {
History(attendees: [
DailyScrum....
0
votes
1
answer
731
views
SwiftUI #Preview test data
The #Preview macro is frustrating me! Test data that looks obvious to me fails to build. Here is a stripped down example:-
import SwiftUI
struct TestView: View {
@State private var ...
1
vote
2
answers
592
views
How can you view any file uploaded in aws s3 bucket thru an url in an web application
i am developing a preview function where i want to view objects from my s3 aws bucket. i get this url: https://[BUCKET NAME].s3.us-east-2.amazonaws.com/[FILE NAME].[EXTENTION]
and when i open it the ...
0
votes
1
answer
117
views
Swift dictionary literal issue
Xcode is giving me this error:
Cannot convert value of type 'Match?' to expected element type 'Array.ArrayLiteralElement' (aka 'Match')
in the Preview on the line:
Match(dictionary: ["initiator&...
2
votes
1
answer
3k
views
How to implement context menu with custom view in preview param that can interact in SwiftUI?
I've got to implement a chat feature with similar interactions like in iMessages. We decided to use SwiftUI because it should be faster. But now I am stuck when implementing the reactions view. ...
1
vote
1
answer
2k
views
Why is my Vite build/preview not working?
I tried to build my Vite + React app but when i do npm run preview the page goes blank.
vite.config.js
import external from "rollup-plugin-peer-deps-external";
import { defineConfig } from &...
1
vote
0
answers
54
views
How to preview a file using Vaadin [duplicate]
Could anyone help me with the following issue: I have a Java web application using Vaadin as a framework(version 7.7.3) for the web interface. A user can upload a file in different formats such as PDF,...
2
votes
1
answer
187
views
How do I undo the Disable macOS Sonoma Text Insertion Point (Cursor) / Caps-lock Indicator command?
I ran this command in terminal that I found on here and it has led to my macbook laptop becoming very slow. It has now resulted in the system continually hanging.
sudo mkdir -p /Library/Preferences/...