Project

General

Profile

Tâche #24254

Scénario #23987: Traitement express MEN (23-25)

Erreur CreoleLint inexploitable

Added by Philippe Caseiro about 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/20/2018
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Remaining (hours):
0.0

Description

Bonjour

De bon matin j'ai fait un dico qui avait un problème ...
    ¦   <condition name='disabled_if_in' source='replicationType'>
    ¦   ¦   <param>master-master</param>
    ¦   ¦   <target type='variable'>replicationType</target>
    ¦   </condition>
Ok pas réveillé, en retour de CreoleLint j'ai  :
Traceback (most recent call last):
  File "/usr/bin/CreoleLint", line 61, in main
    validate(keyword, ansi, tmpl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1194, in validate
    ansi.process(cl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/ansiwriter.py", line 47, in process
    checks = linter.check()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1084, in check
    self.load_dics()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 169, in load_dics
    self._collect_vars_in_dicos()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 256, in _collect_var
    self.config = tiramisu_objects.build()
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 400, in build
    config = Config(self.storage.paths['.'].get())
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 661, in get
    self.attrib['children'].append(child.get())
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 661, in get
    self.attrib['children'].append(child.get())
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 661, in get
    self.attrib['children'].append(child.get())
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 661, in get
    self.attrib['children'].append(child.get())
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 561, in get
    require['option'] = require['option'].get()
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 561, in get
    require['option'] = require['option'].get()

  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 561, in get
    require['option'] = require['option'].get()
RuntimeError: maximum recursion depth exceeded
DTD Non valide (valid_dtd:ERROR:error)
oui j'ai fait une boulette dans mon dico, mais CreoleLint là il ne m'aide pas :)

dico.xml View (2.37 KB) Philippe Caseiro, 06/20/2018 09:13 AM

Associated revisions

Revision 1fb74a48 (diff)
Added by Emmanuel GARETTE about 2 years ago

erreur explicite en cas d'utilisation d'une variable dans ca propre condition (ref #24254)

Revision 5ceac381 (diff)
Added by Emmanuel GARETTE about 2 years ago

erreur explicite en cas d'utilisation d'une variable dans ca propre condition (ref #24254)

Revision 38809092 (diff)
Added by Joël Cuissinat about 2 years ago

Update translations for EOLE 2.7.0

Ref: #24270
Ref: #24254

History

#1 Updated by Emmanuel GARETTE about 2 years ago

  • Parent task set to #23987

#2 Updated by Scrum Master about 2 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Scrum Master about 2 years ago

  • Description updated (diff)
  • Assigned To set to Emmanuel GARETTE

#4 Updated by Emmanuel GARETTE about 2 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Estimated time set to 3.00 h
  • Remaining (hours) set to 0.25

#5 Updated by Joël Cuissinat about 2 years ago

Corrigé uniquement pour EOLE >= 2.7.0

#6 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Avec la traduction, ça donne :

Traceback (most recent call last):
  File "/usr/bin/CreoleLint", line 61, in main
    validate(keyword, ansi, tmpl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1194, in validate
    ansi.process(cl)
  File "/usr/lib/python2.7/dist-packages/creole/lint/ansiwriter.py", line 47, in process
    checks = linter.check()
  File "/usr/lib/python2.7/dist-packages/creole/lint/creolelint.py", line 1153, in check
    parse_templates(self._list_tmpl_files())
  File "/usr/lib/python2.7/dist-packages/creole/lint/parsetemplate.py", line 644, in parse_templates
    config = creole_loader(load_values=False, load_extra=True)
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 771, in creole_loader
    eolobj.space_visitor()
  File "/usr/lib/python2.7/dist-packages/creole/objspace.py", line 461, in space_visitor
    SpaceAnnotator(self.space, self.paths, self)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 840, in __init__
    self.filter_condition(space.constraints.condition)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 1546, in filter_condition
    self.filter_target(condition, namespace)
  File "/usr/lib/python2.7/dist-packages/creole/annotator.py", line 1454, in filter_target
    raise CreoleDictConsistencyError(_('target name and source name must be different: {}').format(space.source))
CreoleDictConsistencyError: les noms de la cible et de la source doivent \xeatre diff\xe9rents : replicationType

Also available in: Atom PDF