posit-dev / posit-dev/positron
Issue Reporter cannot be used in dev builds
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
This was discovered when testing https://github.com/posit-dev/positron/pull/5981 which is based on the prerelease/2025.01 branch, however, the issue can be reproduced on main (currently @ fe3a53cc63e640d8695849e17cd9cea667406bf6) as well.
I think we'll need to step through commits from 2bc1b74aba437cd10126eb098b56a5911786868b and earlier to see when this issue was first introduced. This commit is when we branched from main to create the prerelease/2025.01 branch.
Interpreter details:
Any
Describe the issue:
In dev builds (at least Mac and Windows), the Issue Reporter can be opened, but is blank and an error occurs. It is not possible to send an issue report through the Issue Reporter.
Interestingly, Jonathan noted that when using the debugger to step through the dev build, the Issue Reporter works fine!
Release builds don't have this issue.
https://github.com/user-attachments/assets/1cde14c3-e0bb-494a-9bd0-7464d6b2a9ae
Steps to reproduce the issue:
- Open a dev build of Positron Desktop on Mac or Windows
- Click on Help in the top bar, then Report Issue
- The Issue Reporter opens, but is blank and an error shows
Expected or desired behavior:
The Issue Reporter should show the issue submission form and no error should occur.
Were there any error messages in the UI, Output panel, or Developer Tools console?
Mac
No errors in the Dev Tools console, but the error notification shows:
Failed to execute 'invoke' on 'CreateHTMLCallback': The provided callback is no longer runnable.
Windows
No notification error, but the Dev Tools console includes:
[main 2025-01-15T15:19:09.119Z] [uncaught exception in main]: Error: Titlebar overlay is not enabled
log.ts:382
[main 2025-01-15T15:19:09.120Z] Error: Titlebar overlay is not enabled
at AuxiliaryWindow.updateWindowControls (file:///C:/Users/sharon/positron/out/vs/platform/windows/electron-main/windowImpl.js:307:17)
at AuxiliaryWindow.setWin (file:///C:/Users/sharon/positron/out/vs/platform/windows/electron-main/windowImpl.js:100:22)
at AuxiliaryWindow.doTryClaimWindow (file:///C:/Users/sharon/positron/out/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindow.js:69:18)
at AuxiliaryWindow.tryClaimWindow (file:///C:/Users/sharon/positron/out/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindow.js:44:14)
at App.<anonymous> (file:///C:/Users/sharon/positron/out/vs/platform/auxiliaryWindow/electron-main/auxiliaryWindowsMainService.js:51:33)
at App.emit (node:events:519:28)
at n._init (node:electron/js2c/browser_init:2:12818)
at openGuestWindow (node:electron/js2c/browser_init:2:101599)
at WebContents.<anonymous> (node:electron/js2c/browser_init:2:89067)
at WebContents.emit (node:events:519:28)
at WebContents.callbackTrampoline (node:internal/async_hooks:130:17)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the blank Issue Reporter from Help > Report Issue in a Mac or Windows dev build, then inspect the reported CreateHTMLCallback and Titlebar overlay errors. Compare behavior with a release build and step through the relevant desktop window and reporter entry points. Done means the submission form opens without errors in dev builds on both platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100