Open johnpapa opened 2 years ago
Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell, --custom]
I can repro this when running func start
with Node 16 (related to https://github.com/Azure/azure-functions-core-tools/issues/2830). First of all, it should never print multiple times in a row. Second of all, we can determine the language, we just can't run the project because the worker failed. We should improve the error-handling in this case.
Cannot create directory for shared memory usage: /dev/shm/AzureFunctions System.IO.FileSystem: Access to the path '/dev/shm/AzureFunctions' is denied. Operation not permitted. info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
This is a known issue that has been fixed, but it may not have been released yet. See https://github.com/Azure/azure-functions-core-tools/pull/2802
Request starting HTTP/2 POST http://127.0.0.1:53520/AzureFunctionsRpcMessages.FunctionRpc/EventStream application/grpc info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'gRPC - /AzureFunctionsRpcMessages.FunctionRpc/EventStream'
Not sure if this is related to the /dev/shm warning. Needs investigating
I think there are 2 items to track here.
The ASP.NET logs are different. Looks like it might be related to some recent changes around gRPC. Not sure if it's a fix in the host or if we can should be addressing in Core Tools. Agree with @johnpapa that it's not a great thing to see, especially for non-.NET customers.
Agree with this. Would love to get smarter about language detection. Also related to helping customers create local.settings.json when it's missing.
I can repro this when running func start with Node 16 (related to #2830). First of all, it should never print multiple times in a row. Second of all, we can determine the language, we just can't run the project because the worker failed. We should improve the error-handling in this case.
check local.settings.json
might be missing or be an invalid json
When I run
func start
I get these messages. Not sure how to get rid of themThen I tried running
func init
as per @anthonychu . I entered these values and got these resultsIt seems nothing changed except it added an extension recommendation. The odd language messages persist.
So I ran
func start --javascript
and the messages go away, kind of ...And for this, it is quite confusing as a javascript dev to see AspNetCore messages.
Sharing as per chat with Anthony Chu.