angular / angular-hint

run-time hinting for AngularJS applications
362 stars 45 forks source link

Unexpected end of expression when using 'angular-ui-bootstrap' #98

Closed stephan-hof closed 9 years ago

stephan-hof commented 9 years ago

Hi,

as soon as I use https://angular-ui.github.io/bootstrap/#/datepicker the following error occurs in the console log.

Error: [$parse:ueoe] Unexpected end of expression: move(

I tracked it down to the following html code inside ui-bootstrap

<button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1">

Looks like the move(-1) gets incorrectly parsed by the hint.js function getFunctionNames. Instead of ['move'] it returns ["move(", "1)"]

erwinmombay commented 9 years ago

thanks. we're working on this one.

issue related to #227

the problem is in the events module at https://github.com/angular/angular-hint/blob/master/src/modules/events.js#L14

utx0 commented 9 years ago

I am also having this issue, however I not actually using the angular-hint package and it doesn't appear to be a dependence of any of the install packages on my system?

Can someone explain why this issue is logged under the hint package? Am I missing something here.

Thanks peeps! Have an amazing day!

erwinmombay commented 9 years ago

hey @lukekhamilton. if you are using batarang, angular hint comes along for the ride as it is a dependency.

erwinmombay commented 9 years ago

should have been fixed in https://github.com/angular/angular-hint/commit/26cfc749113a599a1e11a587091c558ee2e499b6