Title: Console window state not restored on startup if console.show() is used · Issue #340 · bruderstein/PythonScript · GitHub
Open Graph Title: Console window state not restored on startup if console.show() is used · Issue #340 · bruderstein/PythonScript
X Title: Console window state not restored on startup if console.show() is used · Issue #340 · bruderstein/PythonScript
Description: #312 introduced persistence of the console window. I think that code has problems. Try this user startup.py: try: startup_already_ran print('NOT running startup things a second time') except: startup_already_ran = True print('running sta...
Open Graph Description: #312 introduced persistence of the console window. I think that code has problems. Try this user startup.py: try: startup_already_ran print('NOT running startup things a second time') except: start...
X Description: #312 introduced persistence of the console window. I think that code has problems. Try this user startup.py: try: startup_already_ran print('NOT running startup things a second time') excep...
Opengraph URL: https://github.com/bruderstein/PythonScript/issues/340
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Console window state not restored on startup if console.show() is used","articleBody":"#312 introduced persistence of the console window. I think that code has problems.\r\n\r\n---\r\n\r\nTry this user startup.py:\r\n\r\n```py\r\ntry:\r\n \r\n startup_already_ran\r\n print('NOT running startup things a second time')\r\n\r\nexcept:\r\n\r\n startup_already_ran = True\r\n print('running startup things...')\r\n\r\n console.show()\r\n```\r\n\r\n(note that the try/except wrapper is because of this other bug: #339 )\r\n\r\nExit Notepad++ with the console window showing and restart. At restart the console window will NOT be shown. Removing the `console.show()` line in the script results in correct persistence behavior of the console window.\r\n\r\n---\r\n\r\nNotepad++ Debug Info:\r\n```txt\r\nNotepad++ v8.6.8 (64-bit)\r\nBuild time : Jun 4 2024 - 00:30:00\r\nPath : C:\\NotepadPlusPlus\\Misc\\_NoBackup\\Releases\\npp.8.6.8\\npp.8.6.8.portable.x64\\notepad++.exe\r\nCommand Line : -titleAdd=\"8.6.8 64-bit\" -multiInst\r\nAdmin mode : OFF\r\nLocal Conf mode : ON\r\nCloud Config : OFF\r\nPeriodic Backup : ON\r\nOS Name : Windows 11 Pro (64-bit)\r\nOS Version : 23H2\r\nOS Build : 22631.3737\r\nCurrent ANSI codepage : 1252\r\nPlugins : \r\n mimeTools (3.1)\r\n NppConverter (4.6)\r\n NppExport (0.4)\r\n PythonScript (3.0.18)\r\n```","author":{"url":"https://github.com/alankilborn","@type":"Person","name":"alankilborn"},"datePublished":"2024-06-14T12:05:28Z","url":"https://github.com/bruderstein/PythonScript/issues/340"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22848ba6-266a-9baf-f253-65eff454cbec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88D0:CF7A5:C50D5A:101FCB1:6AF982D2 |
| html-safe-nonce | 774e727f1079d22c2405695a93b50eecabc8dab82bce6d21f704a73a283cf22c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEQwOkNGN0E1OkM1MEQ1QToxMDFGQ0IxOjZBRjk4MkQyIiwidmlzaXRvcl9pZCI6Ijc4NTMzODk2NjQzNjEyMTg3NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d42d21e636e8ddcf7d6d78a931d7c21462bf3d3192c8e0b74ec7a0bc38c1232a |
| hovercard-subject-tag | issue:2353227732 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bruderstein/PythonScript/340/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3e038106b604082774f5540f24641e7b34c6c7628006ab9e6fc37ede0c6d85f/bruderstein/PythonScript/issues/340 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3e038106b604082774f5540f24641e7b34c6c7628006ab9e6fc37ede0c6d85f/bruderstein/PythonScript/issues/340 |
| og:image:alt | #312 introduced persistence of the console window. I think that code has problems. Try this user startup.py: try: startup_already_ran print('NOT running startup things a second time') except: start... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alankilborn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/bruderstein/PythonScript git https://github.com/bruderstein/PythonScript.git |
| octolytics-dimension-user_id | 91716 |
| octolytics-dimension-user_login | bruderstein |
| octolytics-dimension-repository_id | 795778 |
| octolytics-dimension-repository_nwo | bruderstein/PythonScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 795778 |
| octolytics-dimension-repository_network_root_nwo | bruderstein/PythonScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width