source: tmcsimulator/trunk/src/python/unifiedlogger/wing_project.wpr @ 467

Revision 467, 23.9 KB checked in by jdalbey, 7 years ago (diff)

cad_watcher.py added more elaborate error handling to cope with missing or empty CADcomments.log. Hopefully fixes #177.

Line 
1#!wing
2#!version=7.0
3##################################################################
4# Wing project file                                              #
5##################################################################
6[project attributes]
7debug.launch-configs = (2,
8                        {'launch-Dap54cn2qAN7AXZm': ({},
9        {'buildcmd': ('project',
10                      None),
11         'env': ('project',
12                 [u'']),
13         'name': 'launchme',
14         'pyexec': ('project',
15                    u''),
16         'pypath': ('project',
17                    []),
18         'pyrunargs': ('project',
19                       '-u'),
20         'runargs': u'',
21         'rundir': ('custom',
22                    u'/home/jdalbey/Dropbox/TMCrepo/trunk')})})
23proj.directory-list = [{'dirloc': loc('.'),
24                        'excludes': (),
25                        'filter': u'*',
26                        'include_hidden': False,
27                        'recursive': True,
28                        'watch_for_changes': True}]
29proj.file-type = 'normal'
30proj.home-dir = loc('../..')
31proj.launch-config = {loc('__main__.py'): ('custom',
32        (u'',
33         'launch-Dap54cn2qAN7AXZm'))}
34proj.main-file = loc('__main__.py')
35[user attributes]
36debug.show-args-dialog = {loc('__main__.py'): False}
37edit.file-encoding = {loc('get_revision'): 'UTF-8'}
38guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
39                            'windows': [{'name': '0BtsNVOAornvyNAPNOxHAmuDFR'\
40        'v7Dw8l',
41        'size-state': 'maximized',
42        'type': 'dock',
43        'view': {'area': 'tall',
44                 'constraint': None,
45                 'current_pages': [4],
46                 'full-screen': False,
47                 'notebook_display': 'normal',
48                 'notebook_percent': 0.3850187265917603,
49                 'override_title': None,
50                 'pagelist': [('source-assistant',
51                               'tall',
52                               2,
53                               {}),
54                              ('debug-stack',
55                               'tall',
56                               1,
57                               {}),
58                              ('browser',
59                               'tall',
60                               0,
61                               {}),
62                              ('indent',
63                               'tall',
64                               2,
65                               {}),
66                              ('debug-io',
67                               'tall',
68                               0,
69                               {}),
70                              ('project',
71                               'tall',
72                               0,
73                               {'tree-state': {'file-sort-method': 'by name',
74        'list-files-first': False,
75        'tree-states': {'deep': {'expanded-nodes': [(0,),
76        (0,
77         0)],
78                                 'selected-nodes': [(0,
79        0,
80        0)],
81                                 'top-node': (0,)}},
82        'tree-style': 'deep'}})],
83                 'primary_view_state': {'area': 'wide',
84        'constraint': None,
85        'current_pages': [3,
86                          1],
87        'notebook_display': 'hidden',
88        'notebook_percent': 0.30000000000000004,
89        'override_title': None,
90        'pagelist': [('batch-search',
91                      'wide',
92                      0,
93                      {'fScope': {'fFileSetName': 'All Source Files',
94                                  'fLocation': None,
95                                  'fRecursive': True,
96                                  'fType': 'documentation'},
97                       'fSearchSpec': {'fEndPos': None,
98                                       'fIncludeLinenos': True,
99                                       'fInterpretBackslashes': False,
100                                       'fMatchCase': False,
101                                       'fOmitBinary': True,
102                                       'fRegexFlags': 42,
103                                       'fReplaceText': '',
104                                       'fReverse': False,
105                                       'fSearchText': u'default directory policy',
106                                       'fStartPos': 0,
107                                       'fStyle': 'text',
108                                       'fWholeWords': False,
109                                       'fWrap': True},
110                       'fUIOptions': {'fAutoBackground': True,
111                                      'fFilePrefix': 'short-file',
112                                      'fFindAfterReplace': True,
113                                      'fInSelection': False,
114                                      'fIncremental': True,
115                                      'fReplaceOnDisk': False,
116                                      'fShowFirstMatch': False,
117                                      'fShowLineno': True,
118                                      'fShowReplaceWidgets': False},
119                       'replace-entry-expanded': False,
120                       'search-entry-expanded': False}),
121                     ('interactive-search',
122                      'wide',
123                      0,
124                      {'fScope': {'fFileSetName': 'All Source Files',
125                                  'fLocation': None,
126                                  'fRecursive': True,
127                                  'fType': 'project-files'},
128                       'fSearchSpec': {'fEndPos': None,
129                                       'fIncludeLinenos': True,
130                                       'fInterpretBackslashes': False,
131                                       'fMatchCase': False,
132                                       'fOmitBinary': True,
133                                       'fRegexFlags': 42,
134                                       'fReplaceText': u'lastLineNum',
135                                       'fReverse': False,
136                                       'fSearchText': u'fileLength',
137                                       'fStartPos': 0,
138                                       'fStyle': 'text',
139                                       'fWholeWords': False,
140                                       'fWrap': True},
141                       'fUIOptions': {'fAutoBackground': True,
142                                      'fFilePrefix': 'short-file',
143                                      'fFindAfterReplace': True,
144                                      'fInSelection': False,
145                                      'fIncremental': True,
146                                      'fReplaceOnDisk': False,
147                                      'fShowFirstMatch': False,
148                                      'fShowLineno': True,
149                                      'fShowReplaceWidgets': True}}),
150                     ('debug-data',
151                      'wide',
152                      0,
153                      {}),
154                     ('debug-exceptions',
155                      'wide',
156                      0,
157                      {}),
158                     ('python-shell',
159                      'wide',
160                      2,
161                      {'active-range': (None,
162        -1,
163        -1),
164                       'attrib-starts': [],
165                       'code-line': '',
166                       'first-line': 0L,
167                       'folded-linenos': [],
168                       'history': {},
169                       'launch-id': None,
170                       'sel-line': 3L,
171                       'sel-line-start': 132L,
172                       'selection_end': 132L,
173                       'selection_start': 132L,
174                       'zoom': 0L}),
175                     ('messages',
176                      'wide',
177                      2,
178                      {'current-domain': 0}),
179                     ('os-command',
180                      'wide',
181                      1,
182                      {'last-percent': 0.8,
183                       'toolbox-percent': 1.0,
184                       'toolbox-tree-sel': ''})],
185        'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('logging_service.py'),
186        {'attrib-starts': [('startup|0|',
187                            20)],
188         'code-line': '                trimmed_item = item.strip()\n',
189         'first-line': 50L,
190         'folded-linenos': [],
191         'sel-line': 57L,
192         'sel-line-start': 1955L,
193         'selection_end': 1955L,
194         'selection_start': 1955L,
195         'zoom': 0L},
196        1563915884.294776],
197        [loc('activitylog_watcher.py'),
198         {'attrib-starts': [('getLogEntries|0|',
199                             42)],
200          'code-line': '    return currList\n',
201          'first-line': 37L,
202          'folded-linenos': [],
203          'sel-line': 48L,
204          'sel-line-start': 1427L,
205          'selection_end': 1427L,
206          'selection_start': 1427L,
207          'zoom': 0L},
208         1563915907.118035],
209        [loc('logging_service.py'),
210         {'attrib-starts': [('startup|0|',
211                             20)],
212          'code-line': '                trimmed_item = item.strip()\n',
213          'first-line': 50L,
214          'folded-linenos': [],
215          'sel-line': 57L,
216          'sel-line-start': 1955L,
217          'selection_end': 1955L,
218          'selection_start': 1955L,
219          'zoom': 0L},
220         1563915945.26135],
221        [loc('activitylog_watcher.py'),
222         {'attrib-starts': [('getLogEntries|0|',
223                             42)],
224          'code-line': '    currList = []\n',
225          'first-line': 37L,
226          'folded-linenos': [],
227          'sel-line': 45L,
228          'sel-line-start': 1303L,
229          'selection_end': 1303L,
230          'selection_start': 1303L,
231          'zoom': 0L},
232         1563916207.12504],
233        [loc('cms_watcher.py'),
234         {'attrib-starts': [('readFile|0|',
235                             18)],
236          'code-line': ' \n',
237          'first-line': 6L,
238          'folded-linenos': [],
239          'sel-line': 21L,
240          'sel-line-start': 564L,
241          'selection_end': 565L,
242          'selection_start': 565L,
243          'zoom': 0L},
244         1563916220.372856],
245        [loc('activitylog_watcher.py'),
246         {'attrib-starts': [('getLogEntries|0|',
247                             42)],
248          'code-line': '    resultList = []\n',
249          'first-line': 40L,
250          'folded-linenos': [],
251          'sel-line': 48L,
252          'sel-line-start': 1422L,
253          'selection_end': 1422L,
254          'selection_start': 1422L,
255          'zoom': 0L},
256         1564099965.745285],
257        [loc('cad_watcher.py'),
258         {'attrib-starts': [('isFull|0|',
259                             16)],
260          'code-line': '\n',
261          'first-line': 3L,
262          'folded-linenos': [],
263          'sel-line': 18L,
264          'sel-line-start': 559L,
265          'selection_end': 559L,
266          'selection_start': 559L,
267          'zoom': 0L},
268         1564102192.752733],
269        [loc('__main__.py'),
270         {'attrib-starts': [],
271          'code-line': 'import logging_service, os, ConfigParser\n',
272          'first-line': 0L,
273          'folded-linenos': [],
274          'sel-line': 0L,
275          'sel-line-start': 0L,
276          'selection_end': 40L,
277          'selection_start': 28L,
278          'zoom': 0L},
279         1564182621.22245],
280        [loc('logging_service.py'),
281         {'attrib-starts': [('startup|0|',
282                             20)],
283          'code-line': '            # dynamically load the get log function '\
284                       'for this plugin\n',
285          'first-line': 38L,
286          'folded-linenos': [],
287          'sel-line': 49L,
288          'sel-line-start': 1561L,
289          'selection_end': 1603L,
290          'selection_start': 1603L,
291          'zoom': 0L},
292         1564182682.881746],
293        [loc('cad_watcher.py'),
294         {'attrib-starts': [('isFull|0|',
295                             16)],
296          'code-line': '\n',
297          'first-line': 27L,
298          'folded-linenos': [],
299          'sel-line': 18L,
300          'sel-line-start': 559L,
301          'selection_end': 559L,
302          'selection_start': 559L,
303          'zoom': 0L},
304         1564182715.806107],
305        [loc('logging_service.py'),
306         {'attrib-starts': [('startup|0|',
307                             20)],
308          'code-line': '    #       Append simulation time and the log entri'\
309                       'es to the Output Buffer\n',
310          'first-line': 38L,
311          'folded-linenos': [],
312          'sel-line': 55L,
313          'sel-line-start': 1843L,
314          'selection_end': 1851L,
315          'selection_start': 1851L,
316          'zoom': 0L},
317         1564182751.746078],
318        [loc('cad_watcher.py'),
319         {'attrib-starts': [('isFull|0|',
320                             16)],
321          'code-line': '\n',
322          'first-line': 21L,
323          'folded-linenos': [],
324          'sel-line': 18L,
325          'sel-line-start': 559L,
326          'selection_end': 559L,
327          'selection_start': 559L,
328          'zoom': 0L},
329         1564182793.261813],
330        [loc('__main__.py'),
331         {'attrib-starts': [],
332          'code-line': 'import logging_service, os, ConfigParser\n',
333          'first-line': 0L,
334          'folded-linenos': [],
335          'sel-line': 0L,
336          'sel-line-start': 0L,
337          'selection_end': 40L,
338          'selection_start': 28L,
339          'zoom': 0L},
340         1564182798.481531],
341        [loc('logging_service.py'),
342         {'attrib-starts': [('startup|0|',
343                             20)],
344          'code-line': '    #       Append simulation time and the log entri'\
345                       'es to the Output Buffer\n',
346          'first-line': 0L,
347          'folded-linenos': [],
348          'sel-line': 55L,
349          'sel-line-start': 1843L,
350          'selection_end': 1851L,
351          'selection_start': 1851L,
352          'zoom': 0L},
353         1564182969.909882],
354        [loc('cad_watcher.py'),
355         {'attrib-starts': [],
356          'code-line': 'lastLineNum = 0\n',
357          'first-line': 7L,
358          'folded-linenos': [],
359          'sel-line': 11L,
360          'sel-line-start': 417L,
361          'selection_end': 432L,
362          'selection_start': 432L,
363          'zoom': 0L},
364         1564183893.9794],
365        [loc('logging_service.py'),
366         {'attrib-starts': [('startup|0|',
367                             20)],
368          'code-line': '    #       Append simulation time and the log entri'\
369                       'es to the Output Buffer\n',
370          'first-line': 39L,
371          'folded-linenos': [],
372          'sel-line': 55L,
373          'sel-line-start': 1843L,
374          'selection_end': 1851L,
375          'selection_start': 1851L,
376          'zoom': 0L},
377         1564184320.038293],
378        [loc('cad_watcher.py'),
379         {'attrib-starts': [],
380          'code-line': 'lastLineNum = 0\n',
381          'first-line': 10L,
382          'folded-linenos': [],
383          'sel-line': 11L,
384          'sel-line-start': 417L,
385          'selection_end': 432L,
386          'selection_start': 432L,
387          'zoom': 0L},
388         1564189528.213135],
389        [loc('logging_service.py'),
390         {'attrib-starts': [('startup|0|',
391                             20)],
392          'code-line': '    #       Append simulation time and the log entri'\
393                       'es to the Output Buffer\n',
394          'first-line': 21L,
395          'folded-linenos': [],
396          'sel-line': 55L,
397          'sel-line-start': 1843L,
398          'selection_end': 1851L,
399          'selection_start': 1851L,
400          'zoom': 0L},
401         1564189539.194298],
402        [loc('cad_watcher.py'),
403         {'attrib-starts': [('setup|0|',
404                             41)],
405          'code-line': 'def setup():\n',
406          'first-line': 24L,
407          'folded-linenos': [],
408          'sel-line': 41L,
409          'sel-line-start': 1329L,
410          'selection_end': 1329L,
411          'selection_start': 1329L,
412          'zoom': 0L},
413         1564287471.970187],
414        [loc('../../../../../../../../usr/lib/python2.7/genericpath.py'),
415         {'attrib-starts': [('getsize|0|',
416                             54)],
417          'code-line': '    return os.stat(filename).st_size\n',
418          'first-line': 39L,
419          'folded-linenos': [],
420          'sel-line': 56L,
421          'sel-line-start': 1506L,
422          'selection_end': 1506L,
423          'selection_start': 1506L,
424          'zoom': 0L},
425         1564287481.404096]],
426        20),
427        'current-loc': loc('cad_watcher.py'),
428        'editor-state-list': [(loc('activitylog_watcher.py'),
429                               {'attrib-starts': [('getLogEntries|0|',
430        42)],
431                                'code-line': '    resultList = []\n',
432                                'first-line': 40L,
433                                'folded-linenos': [],
434                                'sel-line': 48L,
435                                'sel-line-start': 1422L,
436                                'selection_end': 1422L,
437                                'selection_start': 1422L,
438                                'zoom': 0L}),
439                              (loc('cad_watcher.py'),
440                               {'attrib-starts': [('getLogEntries|0|',
441        24)],
442                                'code-line': "            msgList = text_fil"\
443        "e.read().split('\\n')\n",
444                                'first-line': 29L,
445                                'folded-linenos': [],
446                                'sel-line': 52L,
447                                'sel-line-start': 1613L,
448                                'selection_end': 1613L,
449                                'selection_start': 1613L,
450                                'zoom': 0L}),
451                              (loc('cms_watcher.py'),
452                               {'attrib-starts': [('readFile|0|',
453        18)],
454                                'code-line': ' \n',
455                                'first-line': 6L,
456                                'folded-linenos': [],
457                                'sel-line': 21L,
458                                'sel-line-start': 564L,
459                                'selection_end': 565L,
460                                'selection_start': 565L,
461                                'zoom': 0L}),
462                              (loc('../../../config/logging_service.cfg'),
463                               {'attrib-starts': [],
464                                'code-line': '[Paths]\n',
465                                'first-line': 0L,
466                                'folded-linenos': [],
467                                'sel-line': 0L,
468                                'sel-line-start': 0L,
469                                'selection_end': 0L,
470                                'selection_start': 0L,
471                                'zoom': 0L}),
472                              (loc('logging_service.py'),
473                               {'attrib-starts': [('startup|0|',
474        20)],
475                                'code-line': '    #       Append simulation '\
476        'time and the log entries to the Output Buffer\n',
477                                'first-line': 21L,
478                                'folded-linenos': [],
479                                'sel-line': 55L,
480                                'sel-line-start': 1843L,
481                                'selection_end': 1851L,
482                                'selection_start': 1851L,
483                                'zoom': 0L}),
484                              (loc('__main__.py'),
485                               {'attrib-starts': [],
486                                'code-line': 'import logging_service, os, Co'\
487        'nfigParser\n',
488                                'first-line': 0L,
489                                'folded-linenos': [],
490                                'sel-line': 0L,
491                                'sel-line-start': 0L,
492                                'selection_end': 40L,
493                                'selection_start': 28L,
494                                'zoom': 0L})],
495        'has-focus': True,
496        'locked': False},
497        [loc('activitylog_watcher.py'),
498         loc('cad_watcher.py'),
499         loc('cms_watcher.py'),
500         loc('../../../config/logging_service.cfg'),
501         loc('logging_service.py'),
502         loc('__main__.py')]),
503                               'open_files': [u'../../../config/logging_service.cfg',
504        u'__main__.py',
505        u'activitylog_watcher.py',
506        u'cms_watcher.py',
507        u'logging_service.py',
508        u'cad_watcher.py']},
509        'saved_notebook_display': None,
510        'split_percents': {0: 0.5},
511        'splits': 2,
512        'tab_location': 'top',
513        'traversal_pos': ((0,
514                           3),
515                          1564287665.60169),
516        'user_data': {}},
517                 'saved_notebook_display': None,
518                 'split_percents': {},
519                 'splits': 1,
520                 'tab_location': 'left',
521                 'traversal_pos': ((0,
522                                    4),
523                                   1564289756.891358),
524                 'user_data': {}},
525        'window-alloc': (29,
526                         0,
527                         1197,
528                         722)}]}
529guimgr.recent-documents = [loc('cad_watcher.py'),
530                           loc('logging_service.py'),
531                           loc('__main__.py'),
532                           loc('activitylog_watcher.py'),
533                           loc('cms_watcher.py'),
534                           loc('../../../config/logging_service.cfg')]
535guimgr.visual-state = {loc('get_app_properties.py'): {'attrib-starts': [],
536        'code-line': '',
537        'first-line': 0L,
538        'folded-linenos': [],
539        'sel-line': 0L,
540        'sel-line-start': 0L,
541        'selection_end': 0L,
542        'selection_start': 0L,
543        'zoom': 0L},
544                       loc('get_revision'): {'attrib-starts': [],
545        'code-line': '',
546        'first-line': 0L,
547        'folded-linenos': [],
548        'sel-line': 18L,
549        'sel-line-start': 455L,
550        'selection_end': 455L,
551        'selection_start': 455L,
552        'zoom': 0L},
553                       loc('../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
554        'ttrib-starts': [('ConfigParser|0|',
555                          85),
556                         ('ConfigParser|0|.get|0|',
557                          589)],
558        'code-line': '                raise NoSectionError(section)\n',
559        'first-line': 597L,
560        'folded-linenos': [],
561        'sel-line': 606L,
562        'sel-line-start': 22028L,
563        'selection_end': 22028L,
564        'selection_start': 22028L,
565        'zoom': 0L},
566                       loc('../../../../../../../../usr/lib/python2.7/ConfigParser.py'): {'a'\
567        'ttrib-starts': [('ConfigParser|0|',
568                          85),
569                         ('ConfigParser|0|.get|0|',
570                          589)],
571        'code-line': '                raise NoSectionError(section)\n',
572        'first-line': 601L,
573        'folded-linenos': [],
574        'sel-line': 606L,
575        'sel-line-start': 22028L,
576        'selection_end': 22028L,
577        'selection_start': 22028L,
578        'zoom': 0L},
579                       loc('../../../../../../../../usr/lib/python2.7/genericpath.py'): {'a'\
580        'ttrib-starts': [('getsize|0|',
581                          54)],
582        'code-line': '    return os.stat(filename).st_size\n',
583        'first-line': 39L,
584        'folded-linenos': [],
585        'sel-line': 56L,
586        'sel-line-start': 1506L,
587        'selection_end': 1506L,
588        'selection_start': 1506L,
589        'zoom': 0L},
590                       loc('../../../../../../../../usr/lib/python2.7/json/decoder.py'): {'a'\
591        'ttrib-starts': [('JSONDecoder|0|',
592                          271),
593                         ('JSONDecoder|0|.raw_decode|0|',
594                          369)],
595        'code-line': '            obj, end = self.scan_once(s, idx)\n',
596        'first-line': 370L,
597        'folded-linenos': [],
598        'sel-line': 379L,
599        'sel-line-start': 13534L,
600        'selection_end': 13534L,
601        'selection_start': 13534L,
602        'zoom': 0L}}
603proj.build-cmd = {None: ('default',
604                         None)}
605proj.env-vars = {None: ('default',
606                        [u''])}
607search.search-history = [u'default directory policy']
Note: See TracBrowser for help on using the repository browser.