Menu

#3 Suppression de créneau déjà vide

1.0
closed
None
Defect
2017-01-13
2017-01-06
No

Lorsque l'on veut supprimer un créneau qui est déjà vide, on obtient l'erreur suivante :

C:\Users\Mehdii\Documents\turing\turing-gl02-code\trunk\TuringSolution.js:142
            var b1 = eventBeneficiaire.getBeneficiaire();
                                      ^

TypeError: Cannot read property 'getBeneficiaire' of undefined
    at Object.<anonymous> (C:\Users\Mehdii\Documents\turing\turing-gl02-code\trunk\TuringSolution.js:142:39)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

La commande entrée est :

node TuringSolution.js -d "lundi 1300" test/test_planInfo_b.txt test/test_planInfo_i.txt

En ce qui concerne la même commande pour les fichiers .ics on obtient cette erreur :

C:\Users\Mehdii\Documents\turing\turing-gl02-code\trunk\node_modules\icalendar\lib\parser.js:227
        throw new ParseError("Unable to parse calendar data; END:VCALENDAR not found!");
        ^
Error:

La commande entrée est :

node TuringSolution.js -d "lundi 1300" test/test_ical_b.ics test/test_ical_i.ics

node version 6.9.1 sous windows 10.

Discussion

  • Mehdi Abdellaoui

    On onbtient la même erreur quand on veut déplacer un créneau vide avec la commande :
    node TuringSolution.js -u "lundi 1300" "mardi 1300" test/test_planInfo_b.txt test/test_planInfo_i.txt

     
  • Athina SCHMITT

    Athina SCHMITT - 2017-01-13
    • assigned_to: Mehdi Abdellaoui
     
  • Athina SCHMITT

    Athina SCHMITT - 2017-01-13
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB