Kibana version: 7.4.0/7.4.1
Describe the bug:
if Lucene query syntax write in KQL mode, Lucene query syntax warning can't show up, console show Uncaught TypeError as below
Uncaught TypeError: Cannot read property 'addWarning' of undefined
at QueryBarUI.handleLuceneSyntaxWarning (commons.bundle.js:3)
at QueryBarUI.onSubmit (commons.bundle.js:3)
at commons.bundle.js:3
at Object.ca (vendors.bundle.dll.js:200)
at ja (vendors.bundle.dll.js:200)
at ka (vendors.bundle.dll.js:200)
at wa (vendors.bundle.dll.js:200)
at Aa (vendors.bundle.dll.js:200)
at ya (vendors.bundle.dll.js:200)
at Da (vendors.bundle.dll.js:200)
Cause query can't be update.
Steps to reproduce:
Pinging @elastic/kibana-app (Team:KibanaApp)
Pinging @elastic/kibana-app-arch (Team:AppArch)
@elastic/kibana-app-arch that exception looks like some dependencies (to toasts services) got lost during shimming?
cc @lizozom
It seems this is fixed on master but broken on 7.4. Does someone from @elastic/kibana-app-arch know which PR could have fixed that?
Any updates on this issue?
BTW, this is happening only on if I run Kibana on a remote machine and not localhost..
I am using the latest 7.4.2 and elastic 7.4.2 as well.
Got the same problem on Kibana 7.4.2:
Uncaught TypeError: Cannot read property 'addWarning' of undefined
at QueryBarUI.handleLuceneSyntaxWarning (commons.bundle.js:3)
at QueryBarUI.onSubmit (commons.bundle.js:3)
at Object.onSubmit (commons.bundle.js:3)
at QueryBarInputUI.onSubmit (commons.bundle.js:3)
at commons.bundle.js:3
at Object.ca (vendors.bundle.dll.js:200)
at ja (vendors.bundle.dll.js:200)
at ka (vendors.bundle.dll.js:200)
at wa (vendors.bundle.dll.js:200)
at Aa (vendors.bundle.dll.js:200)
Dear developers,

This problem stops the update/refresh button working, and users has no other easy way to do a new query, which makes Kibana unusable.
It seems this is fixed on master but broken on 7.4.
I wonder, is there a plan to release a new version to address this bug?
Thanks for your attention and efforts.
This issue is normally fixed in Kibana 7.5 which has just been released.
I can confirm the error Uncaught TypeError: Cannot read property 'addWarning' of undefined is resolved in Kibana 7.5.0.
Many thanks, elastic developers.
thanks for confirmation!
Most helpful comment
Dear developers,
This problem stops the update/refresh button working, and users has no other easy way to do a new query, which makes Kibana unusable.
I wonder, is there a plan to release a new version to address this bug?
Thanks for your attention and efforts.