tern icon indicating copy to clipboard operation
tern copied to clipboard

Millions of types generated for a small angular code snippet

Open nightwing opened this issue 8 years ago • 0 comments

steps to reproduce:

  • enable angular plugin in main demo and add the following code
angular.module('SageDataManager')
.controller('wholeapp', ['$scope','$http', function($scope, $http) {}])
.controller('navbardata', ['$scope','$http', '$timeout', function($scope, $http, $timeout) {}])
.controller('mainmenu', ['$scope','$http', function($scope, $http) {}])
.controller('intake_house', ['$scope','$http', function($scope, $http) {}])
.controller('intake_client', ['$scope','$http', '$timeout', function($scope, $http, $timeout) {}])
.controller('attendance_checkin', ['$scope','$http', '$timeout', function($scope, $http, $timeout) {}])
.controller('attendance_view', ['$scope','$http', '$timeout', 'view2clientserv', '$location', function($scope, $http, $timeout, view2clientserv, $location) {}])
.service('srv_functions', ['$http',function($http) {}])
.controller('reports', ['$scope','$http', '$timeout', 'srv_functions', function($scope, $http, $timeout, srv_functions) {}])
.controller('maintenance', ['$scope','$http', '$timeout', function($scope, $http, $timeout) {}])
.controller('help', ['$scope','$http', function($scope, $http) {}])
.factory("AutoCompleteService", ["$http", function ($http) {}])
.directive("autocomplete", ["AutoCompleteService", '$timeout', '$http', function (AutoCompleteService, $timeout, $http) {}])
.controller('maint_client', ['$scope','$http', '$timeout', function($scope, $http, $timeout) {}])
.controller('maint_house', ['$scope','$http', function($scope, $http) {}])
.factory("AutoCompleteServiceHOUSE", ["$http", function ($http) {}])
.directive("autocompletehouse", ["AutoCompleteServiceHOUSE", '$timeout', '$http', function(AutoCompleteServiceHOUSE, $timeout, $http) {}])
.service('view2clientserv', function() {})
.directive('datepicker_', function() {})
.controller('clientservice', ['$scope','$http', '$timeout', 'view2clientserv', '$location', function($scope, $http, $timeout, view2clientserv, $location) {}])
.controller('maint_staff', ['$scope','$http', function($scope, $http) {}])
.directive('elastic', []);
  • invoke jumptodef on last controller

tern freezes and then crashes the browser

can be tested on https://preview.c9users.io/nightwing/tern/doc/demo/index.html which runs version from https://github.com/nightwing/tern/commit/4d72cee6510cb80f1d6aad0a28c3ff1f4bb1d30b

nightwing avatar Mar 06 '16 00:03 nightwing