Title: #Requires doesn't require separation · Issue #9097 · PowerShell/PowerShell · GitHub
Open Graph Title: #Requires doesn't require separation · Issue #9097 · PowerShell/PowerShell
X Title: #Requires doesn't require separation · Issue #9097 · PowerShell/PowerShell
Description: Steps to reproduce #requires-modules psworkflow #requiresCrazyThings -psed desktop The #Requires directive doesn't seem to require some kind of separation from its keyword to the next token, but not providing that separation causes an er...
Open Graph Description: Steps to reproduce #requires-modules psworkflow #requiresCrazyThings -psed desktop The #Requires directive doesn't seem to require some kind of separation from its keyword to the next token, but no...
X Description: Steps to reproduce #requires-modules psworkflow #requiresCrazyThings -psed desktop The #Requires directive doesn't seem to require some kind of separation from its keyword to the next token, bu...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9097
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"#Requires doesn't require separation","articleBody":"# Steps to reproduce\r\n\r\n```powershell\r\n#requires-modules psworkflow\r\n#requiresCrazyThings -psed desktop\r\n```\r\n\r\nThe `#Requires` directive doesn't seem to require some kind of separation from its keyword to the next token, but not providing that separation causes an error anyway.\r\n\r\n```none\r\nPS C:\\> #requiresCrazyThings -psed desktop\r\nAt line:1 char:2\r\n+ #requiresCrazyThings -psed desktop\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nCannot process the #requires statement because it is not in the correct format.\r\nThe #requires statement must be in one of the following formats:\r\n \"#requires -shellid \u003cshellID>\"\r\n \"#requires -version \u003cmajor.minor>\"\r\n \"#requires -psedition \u003cedition>\"\r\n \"#requires -pssnapin \u003cpsSnapInName> [-version \u003cmajor.minor>]\"\r\n \"#requires -modules \u003cModuleSpecification>\"\r\n \"#requires -runasadministrator\"\r\n+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException\r\n+ FullyQualifiedErrorId : ScriptRequiresInvalidFormat\r\n\r\nPS C:\\>\r\n```\r\n\r\nI am just not sure this is right. A inexperienced user could stumble across this by accident thinking he's just entering a comment. I have seen plenty of reports already of new users who are confused when the editor starts highlighting items in a comment, turning them in as bug reports.","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-03-09T03:00:13Z","url":"https://github.com/PowerShell/PowerShell/issues/9097"}
| 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:4c7a893f-6ccd-3629-96eb-0a6c8f9fa8e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A378:3A2F06:5C3F5:7E6DB:6AFE0FEE |
| html-safe-nonce | a4e3351d63da9aa725837e34b66b408a3e4558eb254af10a2df1df3bc0968d1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzc4OjNBMkYwNjo1QzNGNTo3RTZEQjo2QUZFMEZFRSIsInZpc2l0b3JfaWQiOiIzMjE4NjI4NjA3NzE4ODU0NjM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 887ffd0e5ce4c13607dd8f3139058d3f73c33918e2259dea178d3ecd43855d9b |
| hovercard-subject-tag | issue:419026102 |
| 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/PowerShell/PowerShell/9097/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a14f066a50ba40efaa6f5e4c6efed4cf17534029d6910f0c7f261f9f63c29e75/PowerShell/PowerShell/issues/9097 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a14f066a50ba40efaa6f5e4c6efed4cf17534029d6910f0c7f261f9f63c29e75/PowerShell/PowerShell/issues/9097 |
| og:image:alt | Steps to reproduce #requires-modules psworkflow #requiresCrazyThings -psed desktop The #Requires directive doesn't seem to require some kind of separation from its keyword to the next token, but no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1fd4053be37b4bd545b4f38f1cecad058c343776acf2cbc6806316f26270e55e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 635a57b3d0df6bc21c0f39fc7078888fb90e4066 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width