Зарегистрирован: 11 дек 2012, 11:13 Сообщения: 45
|
Попробовал сделать так: Взял FuncProcPanel.js закинул в папку develop, моменял расширение на "ts". Открыл в редакторе. Код раскрашен - красота! Далее попробовал вызвать список процедур по точке. Код: var logger = Log4js.getLogger(SelfScript.uniqueName); logger.
Не работает Компиляция, выдает ошибки FuncProcPanel.ts(23,1): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(24,1): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(25,1): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(26,1): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(27,1): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(31,14): error TS2304: Cannot find name 'Log4js'. FuncProcPanel.ts(32,20): error TS2304: Cannot find name 'Log4js'. FuncProcPanel.ts(33,24): error TS2304: Cannot find name 'Log4js'. FuncProcPanel.ts(33,45): error TS2304: Cannot find name 'Log4js'. FuncProcPanel.ts(35,17): error TS2304: Cannot find name 'Log4js'. FuncProcPanel.ts(38,1): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(84,19): error TS2339: Property '_instance' does not exist on type '() => void'. FuncProcPanel.ts(104,21): error TS2304: Cannot find name 'SettingsManagement'. FuncProcPanel.ts(128,78): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(132,18): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(150,5): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(150,22): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(238,5): error TS2304: Cannot find name 'cnt'. FuncProcPanel.ts(238,11): error TS2304: Cannot find name 'Synta nalysis'. FuncProcPanel.ts(239,16): error TS2304: Cannot find name 'cnt'. FuncProcPanel.ts(240,5): error TS2304: Cannot find name 'currentMethod'. FuncProcPanel.ts(240,21): error TS2304: Cannot find name 'cnt'. FuncProcPanel.ts(241,5): error TS2304: Cannot find name 'vtModules'. FuncProcPanel.ts(241,17): error TS2304: Cannot find name 'cnt'. FuncProcPanel.ts(242,23): error TS2304: Cannot find name 'vtModules'. FuncProcPanel.ts(243,23): error TS2304: Cannot find name 'vtModules'. FuncProcPanel.ts(250,13): error TS2304: Cannot find name 'currentMethod'. FuncProcPanel.ts(251,33): error TS2304: Cannot find name 'currentMethod'. FuncProcPanel.ts(263,21): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(265,62): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(266,70): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(268,43): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(268,83): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(269,47): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(269,91): error TS2304: Cannot find name '?????????????'. FuncProcPanel.ts(336,19): error TS2304: Cannot find name 'SelectValueDialog'. FuncProcPanel.ts(339,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'name' must be of type 'any', but here has type 'string'. FuncProcPanel.ts(341,17): error TS2403: Subsequent variable declarations must have the same type. Variable 'name' must be of type 'any', but here has type 'string'. FuncProcPanel.ts(344,17): error TS2403: Subsequent variable declarations must have the same type. Variable 'name' must be of type 'any', but here has type 'string'. FuncProcPanel.ts(385,13): error TS2304: Cannot find name 'line'. FuncProcPanel.ts(393,13): error TS2304: Cannot find name 'insertLine'. FuncProcPanel.ts(393,45): error TS2304: Cannot find name 'line'. FuncProcPanel.ts(395,56): error TS2304: Cannot find name 'insertLine'. FuncProcPanel.ts(412,42): error TS2345: Argument of type 'RegExp' is not assignable to parameter of type 'string'. FuncProcPanel.ts(534,46): error TS2345: Argument of type 'RegExp' is not assignable to parameter of type 'string'. FuncProcPanel.ts(623,50): error TS2345: Argument of type 'RegExp' is not assignable to parameter of type 'string'. FuncProcPanel.ts(712,9): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(713,9): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(728,17): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(728,33): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(732,17): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(733,21): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(736,25): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(736,35): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(738,61): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(743,21): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(743,33): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(744,21): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(744,33): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(745,21): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(745,33): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(747,57): error TS2304: Cannot find name '?????????'. FuncProcPanel.ts(756,9): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(758,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(758,24): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(761,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(761,24): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(762,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(762,24): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(763,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(763,24): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(767,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(767,26): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(768,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(768,26): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(772,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(772,26): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(773,13): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(773,26): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(778,16): error TS2304: Cannot find name '??????????'. FuncProcPanel.ts(791,29): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(792,29): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(793,29): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(794,29): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(795,29): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(800,25): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(801,25): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(802,25): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(803,25): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(804,25): error TS2304: Cannot find name '??????????????'. FuncProcPanel.ts(859,5): error TS2304: Cannot find name '?????????????????????????'. FuncProcPanel.ts(867,13): error TS2304: Cannot find name 'Matches'. FuncProcPanel.ts(868,17): error TS2304: Cannot find name 'Matches'. FuncProcPanel.ts(868,34): error TS2304: Cannot find name 'Matches'. FuncProcPanel.ts(881,21): error TS2304: Cannot find name '?????????????????'. FuncProcPanel.ts(882,62): error TS2304: Cannot find name '?????????????????'. FuncProcPanel.ts(910,5): error TS2304: Cannot find name '??????????????????????????????'. FuncProcPanel.ts(911,22): error TS2304: Cannot find name '??????????????????????????????'. FuncProcPanel.ts(1018,13): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1018,20): error TS2304: Cannot find name 'tov8value'. FuncProcPanel.ts(1019,35): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1023,40): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1033,25): error TS2345: Argument of type 'RegExp' is not assignable to parameter of type 'string'. FuncProcPanel.ts(1038,9): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1040,48): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1046,17): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1046,24): error TS2304: Cannot find name 'tov8value'. FuncProcPanel.ts(1047,39): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1051,44): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1053,37): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1069,13): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1071,55): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1078,21): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1078,28): error TS2304: Cannot find name 'tov8value'. FuncProcPanel.ts(1079,43): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1083,48): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1085,41): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1091,9): error TS2304: Cannot find name 'stringinetrnal'. FuncProcPanel.ts(1092,13): error TS2304: Cannot find name 'stringinetrnal'. FuncProcPanel.ts(1102,21): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1105,80): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1112,29): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1112,36): error TS2304: Cannot find name 'tov8value'. FuncProcPanel.ts(1113,51): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1117,56): error TS2304: Cannot find name 'text'. FuncProcPanel.ts(1119,49): error TS2304: Cannot find name '???????'. FuncProcPanel.ts(1127,13): error TS2304: Cannot find name 'stringinetrnal'. FuncProcPanel.ts(1209,5): error TS2304: Cannot find name 'currentFilter'. FuncProcPanel.ts(1213,19): error TS2304: Cannot find name 'currentFilter'. FuncProcPanel.ts(1220,13): error TS2304: Cannot find name 'currentFilter'. FuncProcPanel.ts(1239,51): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(1239,72): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(1283,5): error TS2304: Cannot find name 'callers'. FuncProcPanel.ts(1289,9): error TS2304: Cannot find name 'curMethod'. FuncProcPanel.ts(1290,13): error TS2304: Cannot find name 'curMethod'. FuncProcPanel.ts(1291,29): error TS2304: Cannot find name 'curMethod'. FuncProcPanel.ts(1293,17): error TS2304: Cannot find name 'caller'. FuncProcPanel.ts(1293,26): error TS2304: Cannot find name 'curMethod'. FuncProcPanel.ts(1296,20): error TS2304: Cannot find name 'caller'. FuncProcPanel.ts(1298,21): error TS2304: Cannot find name 'callers'. FuncProcPanel.ts(1298,29): error TS2304: Cannot find name 'curMethod'. FuncProcPanel.ts(1305,5): error TS2304: Cannot find name 'needCreate'. FuncProcPanel.ts(1309,13): error TS2304: Cannot find name 'needCreate'. FuncProcPanel.ts(1315,9): error TS2304: Cannot find name 'needCreate'. FuncProcPanel.ts(1321,18): error TS2304: Cannot find name 'callers'. FuncProcPanel.ts(1378,10): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(1382,10): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(1394,10): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(1398,10): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(1471,5): error TS2304: Cannot find name 'curText'. FuncProcPanel.ts(1474,43): error TS2304: Cannot find name 'curText'. FuncProcPanel.ts(1516,5): error TS2304: Cannot find name 'FuncPanel'. FuncProcPanel.ts(1668,13): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1669,58): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1672,20): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(1679,21): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1680,43): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1694,5): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1700,5): error TS2304: Cannot find name 'findByName'. FuncProcPanel.ts(1702,9): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1707,13): error TS2304: Cannot find name 'found'. FuncProcPanel.ts(1715,21): error TS2304: Cannot find name 'found'. FuncProcPanel.ts(1723,21): error TS2304: Cannot find name 'found'. FuncProcPanel.ts(1729,17): error TS2304: Cannot find name 'found'. FuncProcPanel.ts(1745,21): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1780,25): error TS2304: Cannot find name 'parseModule'. FuncProcPanel.ts(1780,39): error TS2304: Cannot find name 'Synta nalysis'. FuncProcPanel.ts(1781,38): error TS2304: Cannot find name 'parseModule'. FuncProcPanel.ts(1786,32): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1789,33): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1792,34): error TS2304: Cannot find name 'TextWindowsWatcherGoToLine'. FuncProcPanel.ts(1792,79): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1802,13): error TS2304: Cannot find name 'findByName'. FuncProcPanel.ts(1809,51): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1832,13): error TS2304: Cannot find name 'findByName'. FuncProcPanel.ts(1836,9): error TS2304: Cannot find name 'findByName'. FuncProcPanel.ts(1840,9): error TS2304: Cannot find name 'curRowMethodName'. FuncProcPanel.ts(1842,13): error TS2304: Cannot find name 'curRowMethodName'. FuncProcPanel.ts(1844,13): error TS2304: Cannot find name 'curRowMethodName'. FuncProcPanel.ts(1844,32): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1845,13): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1847,13): error TS2304: Cannot find name 'curRowMethodName'. FuncProcPanel.ts(1848,13): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1852,57): error TS2304: Cannot find name 'curRowMethodName'. FuncProcPanel.ts(1861,25): error TS2304: Cannot find name 'StringUtils'. FuncProcPanel.ts(1878,26): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1879,25): error TS2304: Cannot find name 'nameMethod'. FuncProcPanel.ts(1931,17): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1932,62): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1935,24): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(1942,25): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1943,47): error TS2304: Cannot find name 'callMethod'. FuncProcPanel.ts(1952,16): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(1954,17): error TS2304: Cannot find name 'countopenindex'. FuncProcPanel.ts(2005,15): error TS2304: Cannot find name 'GetTextWindow'. FuncProcPanel.ts(2017,24): error TS2339: Property '_instance' does not exist on type '() => void'. FuncProcPanel.ts(2020,26): error TS2339: Property '_instance' does not exist on type '() => void'. FuncProcPanel.ts(2023,1): error TS2304: Cannot find name 'RowTypes'. FuncProcPanel.ts(2035,1): error TS2304: Cannot find name 'TextWindowsWatcherGoToLine'. FuncProcPanel.ts(2035,30): error TS2304: Cannot find name 'stdlib'. FuncProcPanel.ts(2072,9): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2073,13): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2076,25): error TS2304: Cannot find name 'StringUtils'. FuncProcPanel.ts(2076,45): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2083,21): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2084,21): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2089,28): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2090,13): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2091,13): error TS2304: Cannot find name 'wnd'. FuncProcPanel.ts(2096,19): error TS2304: Cannot find name 'GetTextWindow'. FuncProcPanel.ts(2110,24): error TS2304: Cannot find name 'stdcommands'. Соответственно вопрос - а в чем тогда перелесть разрабатывать на TS?
|
|