Title: parameter name hints do not recognize 3.6-style string formatting · Issue #344 · microsoft/vscode-python · GitHub
Open Graph Title: parameter name hints do not recognize 3.6-style string formatting · Issue #344 · microsoft/vscode-python
X Title: parameter name hints do not recognize 3.6-style string formatting · Issue #344 · microsoft/vscode-python
Description: Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6.2 OS and version: Windows 10 Professional Actual behavior When using 3.6 style f-strings as a parameter to a function, the parameter name hint b...
Open Graph Description: Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6.2 OS and version: Windows 10 Professional Actual behavior When using 3.6 style f-strings as a parameter ...
X Description: Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6.2 OS and version: Windows 10 Professional Actual behavior When using 3.6 style f-strings as a parameter ...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/344
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"parameter name hints do not recognize 3.6-style string formatting","articleBody":"## Environment data\r\nVS Code version: 1.18.1\r\nPython Extension version: 0.8.0\r\nPython Version: 3.6.2\r\nOS and version: Windows 10 Professional\r\n\r\n## Actual behavior\r\nWhen using 3.6 style f-strings as a parameter to a function, the parameter name hint breaks.\r\nIn this example, the Ogre3D constructor has multiple parameter names, with \"mesh\" being the first one. However, when using f-strings, the next parameter name (\"shadows\"), does not appear.\r\n\r\n\r\n\r\n## Expected behavior\r\nThe name hints honor f-strings and properly show the next parameter name after an f-string is given.\r\nHere, using a normal string shows the next name hint as expected. The expected behavior is that replacing the first parameter \"\" with f\"\" would yield the same hint.\r\n\r\n\r\n## Steps to reproduce: \r\n- Define a function with more than one parameter.\r\n- Pass an f-string into the first parameter.\r\n- Examine the name hint show the name of the 1st parameter after adding the comma\r\n\r\n## Logs\r\nOutput from ```Python``` output panel \r\n```\r\n``` \r\nOutput from ```Console window``` (Help->Developer Tools menu)\r\n\r\n/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] rejected promise not handled within 1 second\r\nt.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9\r\n/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10 spawn ctags ENOENT: Error: spawn ctags ENOENT\r\n\tat exports._errnoException (util.js:1050:11)\r\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)\r\n\tat onErrorNT (internal/child_process.js:367:16)\r\n\tat _combinedTickCallback (internal/process/next_tick.js:80:11)\r\n\tat process._tickCallback (internal/process/next_tick.js:104:9)\r\ne.onUnexpectedError @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10\r\n/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10 command 'python.updateFeedbackCounter' not found: Error: command 'python.updateFeedbackCounter' not found\r\n at t._tryExecuteCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117373)\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117212\r\n at n.Class.define.cancel.then (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:69309)\r\n at t.executeCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117186)\r\n at e.$executeCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2823079)\r\n at t.e.invoke (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2876809)\r\n at e._invokeHandler (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2440566)\r\n at e._receiveOneMessage (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2440256)\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2439283\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2441202\r\ne.onUnexpectedError @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10\r\n/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] (node:4252) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.\r\nt.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9\r\n62/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10 command 'python.updateFeedbackCounter' not found: Error: command 'python.updateFeedbackCounter' not found\r\n at t._tryExecuteCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117373)\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117212\r\n at n.Class.define.cancel.then (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:69309)\r\n at t.executeCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117186)\r\n at e.$executeCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2823079)\r\n at t.e.invoke (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2876809)\r\n at e._invokeHandler (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2440566)\r\n at e._receiveOneMessage (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2440256)\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2439283\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2441202\r\ne.onUnexpectedError @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10\r\n/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9 [Extension Host] ApplicationInsights:Sender Array(1)\r\nt.log @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9\r\n153/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10 command 'python.updateFeedbackCounter' not found: Error: command 'python.updateFeedbackCounter' not found\r\n at t._tryExecuteCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117373)\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117212\r\n at n.Class.define.cancel.then (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:69309)\r\n at t.executeCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:1117186)\r\n at e.$executeCommand (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2823079)\r\n at t.e.invoke (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2876809)\r\n at e._invokeHandler (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2440566)\r\n at e._receiveOneMessage (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2440256)\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2439283\r\n at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:9:2441202\r\ne.onUnexpectedError @ /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:10\r\n","author":{"url":"https://github.com/BlacKCaT27","@type":"Person","name":"BlacKCaT27"},"datePublished":"2017-12-04T16:47:45Z","url":"https://github.com/microsoft/vscode-python/issues/344"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d6b04415-243e-5bf3-be16-c4c54f8b0506 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEEA:6B7A6:2D1B95:3B2E29:6AFE5CD9 |
| html-safe-nonce | b831a55db055f0156c4a7357251eb8e1705d938a76262e34fe433fa52dc045f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUVBOjZCN0E2OjJEMUI5NTozQjJFMjk6NkFGRTVDRDkiLCJ2aXNpdG9yX2lkIjoiMzIwMDA4NDUwNjU5NzgwOTM2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7dd0b26fada3690b9378dae693fe8376d69dec18ab5a0b257e8e80131667dd85 |
| hovercard-subject-tag | issue:279065925 |
| 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/microsoft/vscode-python/344/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8728c6d33d8a44f0187f4393bb2fba3155c4abaef53825b37faa34dde0eda707/microsoft/vscode-python/issues/344 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8728c6d33d8a44f0187f4393bb2fba3155c4abaef53825b37faa34dde0eda707/microsoft/vscode-python/issues/344 |
| og:image:alt | Environment data VS Code version: 1.18.1 Python Extension version: 0.8.0 Python Version: 3.6.2 OS and version: Windows 10 Professional Actual behavior When using 3.6 style f-strings as a parameter ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BlacKCaT27 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width