oracc / nammu

Oracc GUI
GNU General Public License v3.0
12 stars 10 forks source link

Validation highlighting is not disappearing when fixing and error and re-validating. #238

Closed raquelalegre closed 7 years ago

raquelalegre commented 7 years ago

Reproduce with:

  1. Open a file like the one bellow.
  2. Validate and find error in line 134.
  3. Fix error removing the space between @ and label.
  4. Validate again: the console shows a message from the server saying there's no errors, but the line wrongly remains highlighted and with a tooltip containing the error message.

This might be happening because the validation_errors array is not emptied properly when validating. Needs investigation.

&P493424 = TBER pl. 45 AO 17619
#project: cams/absumu
#atf: lang akk-x-stdbab
#atf: use unicode
@tablet
@obverse
@column 1
1. * {na₄}aš-pu₂-u₂
#lem: ašpû[jasper]N

2. * {na₄}ZU₂ GE₆
#lem: ṣurru[flint]N; ṣalmu[black]AJ

3. 2 NA₄-ME DIB{+ti₃} {d}30 BUR₂
#lem: n; abnū[stone]N; kimilti[wrath]N; Sin[1]DN; pašāri[releasing]'N +.

4. * {na₄}GUG
#lem: sāmtu[carnelian]N

5. * {na₄}ZA.GIN₃
#lem: uqnû[lapis lazuli]N

6. * {na₄}NIR₄
#lem: +hulālu[(a valuable stone)//chalcedony?]N'N$

7. * {na₄}MUŠ.GIR₂
#lem: muššaru[serpentine?]N

8. * {na₄}KUR{+nu}.DAB
#lem: šadânu[haematite]N&ṣābitu[recipient]N$

9. * {na₄}KU₃.BABBAR
#lem: +kaspu[silver]N$

10. * {na₄}KU₃.SI₂₂
#lem: +hurāṣu[gold]N$

11. 7 NA₄-ME HUL MUŠ u GIR₂.TAB
#lem: n; abnū[stone]N; lumun[evil]N; ṣerri[snake]N; ū[or]CNJ; zuqiqīpi[scorpion]N +.

12. * {na₄}GUG
#lem: sāmtu[carnelian]N

13. * {na₄}ZA.GIN₃
#lem: uqnû[lapis lazuli]N

14. * {na₄}MUŠ.GIR₂
#lem: muššaru[serpentine?]N

@column 2
1. * {na₄}BABBAR.DILI
#lem: pappardalû[agate?]N

2. * {na₄}BABBAR.MIN₅
#lem: papparmīnu[(a semiprecious stone)]N

3. * {na₄}AŠ.GI₃.GI₃
#lem: ašgigû[arsenic]N

4. * {na₄}UGU.AŠ.GI₃.GI₃
#lem: agusīgu[turquoise?]N

5. * {na₄}DUR₂.MI.NA
#lem: turminû[breccia]N

6. * {na₄}HI.LIB₂
#lem: hilibû[(a stone)]N

7. * {na₄}KUR{+nu}.DAB
#lem: šadânu[haematite]N&ṣābitu[recipient]N

8. * NA₄.{d}LAMMA
#lem: aban[stone]N&lamassi[(female) tutelary deity]N

9. * {na₄}IGI.KU₆
#lem: īn[eye]N&nūni[fish]N

10. * {na₄}PA
#lem: ayyartu[white coral?]N

11. * {na₄}AD{+u₂}
#lem: +abašmû[(a stone)]N$

12. 14 NA₄-ME
#lem: n; abnū[stone]N

13. HUL A₂#-ME
#lem: lumun[evil]N; +ittu[peculiarity//portent]N'N$idāti

14. GISKIM-ME
#lem: +ittu[sign]N$ittāti

@reverse
1. ana NA la₃ TE
#lem: ana[to]PRP; amēli[man]N; lā[not]MOD; ṭehê[approaching]'N +.

2. * {na₄}aš-pu₂-u
#lem: ašpû[jasper]N

3. * {na₄}TEŠ₂
#lem: bāštu[(a stone)]N

4. * NA₄.{d}LAMMA
#lem: aban[stone bead]N&lamassi[good fortune]N

5. * {na₄}KUR{+nu}.DAB
#lem: šadânu[haematite]N&ṣābitu[recipient]N

6. 4 NA₄ HUL
#lem: n; +abnu[stone]N$abnū; lumun[evil]N

7. U₄ ITI u MU.AN.NA
#lem: ūmi[day]N; arhi[month]N; ū[or]CNJ; šatti[year]N +.

8. * {na₄}ZA.GIN₃
#lem: uqnâ[lapis lazuli]N

9. * {na₄}AD{+u₂}
#lem: abašmû[(a stone)]N

10. * NA₄ ZU₂.LUM.MA
#lem: aban[stone]N; suluppi[date]N

11. 3 NA₄ HUL KIN{+ti₃}
#lem: n; aban[stone]N; lumun[evil]N; +têrtu[instruction//omen]N'N$têrti

12. ana NA la₃ TE
#lem: ana[to]PRP; amēli[man]N; lā[not]MOD; ṭehê[approaching]'N +.

@translation labeled en project
@label o i 1
Jasper, black flint: 2 stones for releasing the wrath of Sin.

@label o i 4
Carnelian, lapis lazuli, @?chalcedony?@, @?serpentine?@, magnetite, silver, gold: 7 stones (against) the evil of a snake or scorpion.

@label o i 12
Carnelian, lapis lazuli, @?serpentine?@, @?agate?@, @papparmīnu-stone, arsenic, @?turquoise?@, breccia, @hilibû-stone, magnetite, @lamassu-stone, fish-eye stone, @?white coral?@, @abašmû-stone:  14 stones (for) the evil of signs and portents not to approach a man.

@label r 2
Jasper, @bāštu-stone, @lamassu-stone, magnetite: 4 stones (against) the evil of a day, month, or year.

@label r 8
Lapis lazuli, @abašmû-stone, date stone: 3 stones (for) the evil of an omen not to a    pproach a man.
sgrieve commented 7 years ago

This has been resolved in commit 640f2f7.