Compile errors don't make it to the log on Linux apps
See original GitHub issueIn a .csx function, change return
to retur
to break it, and click Save and Run. All you get is:
2018-04-19T21:40:44.047 [Error] System.Private.CoreLib: Exception while executing function: Functions.HttpTriggerCSharp1. Microsoft.Azure.WebJobs.Script: Script compilation failed. 2018-04-19T21:40:44.048 [Error] Executed ‘Functions.HttpTriggerCSharp1’ (Failed, Id=a7042c3f-6406-4be9-a780-b7555cfbf943)
It’s missing all the detailed compile error info.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
I am learning to program on Linux and I always encounter ...
I am learning to program on Linux and I always encounter compile errors when install tools and libraries, how do you guys solve...
Read more >Software installation - Error : when using command 'make' - ...
linux - Software installation - Error : when using command 'make' - make: Fatal error: Command failed for target - Unix & Linux...
Read more >Code Compilation Fails on Linux, Succeeds on Windows
I have some c++ code that will compile fine in Visual Studio 2013 but will not compile in linux using g++ (no IDE)....
Read more >Troubleshooting with Linux Logs - The Ultimate Guide To ...
Troubleshooting with Linux Logs. Troubleshooting is one of the main reasons people create logs. · Login Failures · Cause of Reboots · Shutdown...
Read more >Dealing with Error Messages
When your programs contain mistakes, compiling them in the command shell can result in large numbers of error messages scrolling by faster ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We now understand what’s going on.
On Windows, we only log the compile error at the time the .csx file is saved, and never when it’s run.
But on Linux, where we don’t have reliable file change notification, @ahmelsayed implemented a workaround where each time a file is saved in the Portal, he restarts the host. As a result, the code path that logs errors on file saves (based on notifications) never takes place, and the errors never make it to the log.
@fabiocav Is this a runtime issue, or is it something about the portal not consuming the structured error log when running against linux?