Open lindydonna opened 7 years ago
This would be a pretty simple enhancement. Any thoughts on what the output should look like? Both, for the portal and CLI?
At the moment when running the cli we get for each row (for example):
run.csx(11,14): error CS0234: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
Could you either prefix "run.csx" with the function name or path or put a the function name before the errors listed for that function are displayed (preferably in a different colour to red)?
run.csx(11,14): error CS0234: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
run.csx(11,16): error CS0234: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
OR
MyAzureFunction\run.csx(11,14): error CS0234: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
MyAzureFunction\run.csx(11,16): error CS0234: The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
@rndthoughts Thanks for the feedback. I like the second option: MyAzureFunction\run.csx(11,16): error CS0234 ...
I like the second option as well.
This will be the same output we'll see in the portal, which may feel a bit odd since the logs are already function scoped, but all this information will (hopefully) eventually come from the structured log stream and the portal could easily format how it wants to display things.
Customers using the Functions CLI see errors that just refer to run.csx, without telling them which function they apply to: https://github.com/Azure/azure-functions-cli/issues/44
The script host is just outputing these errors to the console, so it needs to provide a way for the CLI to customize the output.