Title: Exception in the `startup.py` tries to open a random command line file · Issue #384 · bruderstein/PythonScript · GitHub
Open Graph Title: Exception in the `startup.py` tries to open a random command line file · Issue #384 · bruderstein/PythonScript
X Title: Exception in the `startup.py` tries to open a random command line file · Issue #384 · bruderstein/PythonScript
Description: PythonScript: 3.0.20.0 I have an extension to the Notepad++. In the extension I have using the startup.py to parse an extra command line looking like this: notepad++.exe -nosession -multiInst -z --custom_parameter_1 -z " Open Graph Description: PythonScript: 3.0.20.0 I have an extension to the Notepad++. In the extension I have using the startup.py to parse an extra command line looking like this: notepad++.exe -nosession -multiInst -z --...
X Description: PythonScript: 3.0.20.0 I have an extension to the Notepad++. In the extension I have using the startup.py to parse an extra command line looking like this: notepad++.exe -nosession -multiInst -z --...
Opengraph URL: https://github.com/bruderstein/PythonScript/issues/384
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception in the `startup.py` tries to open a random command line file","articleBody":"* PythonScript: 3.0.20.0\n\nI have an extension to the Notepad++.\nIn the extension I have using the `startup.py` to parse an extra command line looking like this:\n\n```console\nnotepad++.exe -nosession -multiInst -z --custom_parameter_1 -z \"\u003cpath-to-custom-file-list>\" -z --custom_parameter_2 -z custom_parameter_3\n```\n\nThe `startup.py` has a code:\n\n```py\n...\nwith open(path_to_custom_file_list, 'rb') as file_list:\n ...\n...\n```\n\nWhich throws the exception:\n\n```console\nFileNotFoundError: [Errno 2] No such file or directory: \"\u003cpath-to-custom-file-list>\"\n```\n\nThis is ok, as long the file does not exist.\n\nBut, then Notepad++ tries to create a new file with the dialog box:\n\n>---------------------------\n> Create new file\n> ---------------------------\n> \"\u003cpath-to-current-directory>\\-z --custom_parameter_2 -z custom_parameter_3\" doesn't exist. Create it?\n> ---------------------------\n> Yes No \n> ---------------------------\n\nThis is not expected. The Notepad++ should not proceed to open anything. Just open an empty tab instance would be enough.\n\nI suspect the Notepad++ tries to detect the rest of the command line after a random file parameter as a path to a file.\n\nSuggestion: May be command line cleanup in the default exception handler would be enough.","author":{"url":"https://github.com/andry81","@type":"Person","name":"andry81"},"datePublished":"2025-05-10T13:06:56Z","url":"https://github.com/bruderstein/PythonScript/issues/384"}
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:e957964d-3f01-18c2-f202-a244b2ca36c3 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id B69E:219971:221E69E:2C64F40:6AF97676 html-safe-nonce 3a8b23bd6cf31b8bf982d426ba1ec0565e60520b94abc7ec7067fbcc566178c8 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjlFOjIxOTk3MToyMjFFNjlFOjJDNjRGNDA6NkFGOTc2NzYiLCJ2aXNpdG9yX2lkIjoiMTk1MjQwNjg3MDg2NTU3MzQ5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 8c2850c565943a8999fc8db8077a3af0cbcf18700f271e98431d5f6bdc4c928f hovercard-subject-tag issue:3054122183 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/384/issue_layout twitter:image https://opengraph.githubassets.com/2511302ba769d8bff989121af4cdd819709cb01063d85fe54726203b42ec2497/bruderstein/PythonScript/issues/384 twitter:card summary_large_image og:image https://opengraph.githubassets.com/2511302ba769d8bff989121af4cdd819709cb01063d85fe54726203b42ec2497/bruderstein/PythonScript/issues/384 og:image:alt PythonScript: 3.0.20.0 I have an extension to the Notepad++. In the extension I have using the startup.py to parse an extra command line looking like this: notepad++.exe -nosession -multiInst -z --... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username andry81 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
URLs of crawlers that visited me.