question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: improve "cannot run a document" message

See original GitHub issue

Summary of the new feature/enhancement

I had to go look at the source code to understand what “cannot run a document” actually meant. Please consider rewording this. Perhaps - “cannot run a non-executable”.

Note that are two messages with this wording - CantActivateDocumentInPipeline and CantActivateDocumentInPowerShellCore.

https://github.com/PowerShell/PowerShell/blob/c909541b7797b60462188a4abe9592a8763c1fbb/src/System.Management.Automation/engine/NativeCommandProcessor.cs#L1133-L1146

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
aelijcommented, Jan 12, 2021

@sdwheeler I find word “document” a bit confusing (and somewhat Windows-y 😃. Shells have files and executables. Even the PS error when it can’t find a command doesn’t use this word:

The term ‘foo’ is not recognized as a name of a cmdlet, function, script file, or executable program.

1reaction
sdwheelercommented, Jan 7, 2021

PowerShell/src/System.Management.Automation/resources/ParserStrings.resx

Line 592:

  <data name="CantActivateDocumentInPipeline" xml:space="preserve">
    <value>Cannot run a document in the middle of a pipeline: {0}.</value>
  </data>

Suggested text: “Cannot invoke a document in the middle of a pipeline: {0}”

Line 1356:

  <data name="CantActivateDocumentInPowerShellCore" xml:space="preserve">
    <value>Cannot run a document in PowerShell: {0}.</value>
  </data>

Suggested text: “This platform does not support file handlers for document invocation: {0}”

Read more comments on GitHub >

github_iconTop Results From Across the Web

That's Not a Bug, It's a Feature Request
If you want to do something with an application (or website) and you can't do it because that feature isn't implemented -- how...
Read more >
What is a Feature Request? Understanding User Feedback
Feature requests are ideas, comments, messages, or specific customer inquiries asking for a particular function to be added to your product. Typically, a...
Read more >
Product Feature Requests - How to Write and Submit Them
Describes the Feature Request process and provides tips on how to write a Feature Request for best results.
Read more >
How To Manage Feature Requests [Template included]
Discover efficient feature request handling at scale. Our guide covers processing and prioritizing requests, making every voice heard.
Read more >
What Is a Feature Request? Definition and Examples
A feature request is a comment, message, or ask from a user to implement a specific feature into your product. Feature requests can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found