Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.28k stars 424 forks source link

Version 2.7.2100 breaks functions with extensions in Java #1809

Open guojian83 opened 4 years ago

guojian83 commented 4 years ago

Hi,

I have some functions written in Java. To be more specific, the functions use custom bindings. It was all working fine previously. When the core tool has been upgraded to 2.7.2100 on a dev box, the command mvn azure-functions:run complained about the custom binding: The binding type(s) 'xxx' are not registered. Please ensure the type is correct and the binding extension is installed. I also noticed at packaging time, at step 7 for function extensions installation, it no longer installed the extensions. Although i did try to install the extensions manually via func cli, it did not fix the runtime error for the custom bindings.

The workaround for me right now is to roll back the core tool version to 2.7.1948.

Regards, Jian

ahmelsayed commented 4 years ago

/cc @soninaren @amamounelsayed

amamounelsayed commented 4 years ago

@guojian83 Can you please share your

amamounelsayed commented 4 years ago

cc @Flanker32

guojian83 commented 4 years ago

Sure. I removed the extensionBundle from the host.json, reason being the problems of installing extensions. Here is my file: { "version": "2.0" }

When the host.json had the extensionBundle section, I received the following error when running func extension install ... No action performed. Extension bundle is configured in /Users/jianguo/W/Azure Function/Java2/ntt-functions/host.json.