Difference between revisions of "BTP300A A2 Team 4 Bugs Report"

From CDOT Wiki
Jump to: navigation, search
(Week X)
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Team leader: Jodie Carleton
+
; Team Leader:
Team Members: Pedro Bellesa, Jodie Carleton, David Gousvaris and Maggie Ha
+
:Jodie Carleton
 +
; Team Members:
 +
: Pedro Bellesa
 +
: Jodie Carleton
 +
: David Gousvaris
 +
: Maggie Ha
  
== October 22nd, 2013: Group Meeting ==
+
== October 10<sup>th</sup>, 2013: ==
; CFrame Class
+
Creation of work plan (Jodie)
; :File "cframe.h" created.
+
- base files created from assignment template
; :Constructors done.
+
 
 +
== October 14<sup>th</sup>, 2013: ==
 +
- working on setting up svn (Jodie & Maggie)
 +
 
 +
== October 22<sup>nd</sup>, 2013: Group Meeting ==
 +
'''CFrame Class'''
 +
: File "cframe.h" created.
 +
: Constructors done.
 +
: Half of cframe.cpp done.
 +
 
 +
 
 +
PART1 Coding done - ( Pedro Bellesa )
 +
PART1 Coding done - ( Maggie Ha )
 +
PART1 Coding - partially completed - missing capture function (Jodie)
 +
 
 +
== October 23<sup>rd</sup>, 2013 ==
 +
- trying to compile and test constructors - unable to compile working through error messages (Jodie)
 +
- issues with enum CDirection not be defined (jodie)
 +
 
 +
== October 24<sup>nd</sup>, 2013 ==
 +
Found a bunch of spelling mistakes (variable names) FIXED!
 +
 
 +
'''cframe.h:29:4: error: invalid use of non-static data member âCFrame::positionâ'''
 +
'''cframe.h:80:25: error: from this location'''
 +
: used a variable in a struct without referencing the struct. FIXED!
 +
 
 +
'''iframe.h:18:27: error: âCDirectionâ has not been declared'''
 +
: realised we created the CDirection wrong in our cfg.h file. (Did not use enum) FIXED!
 +
 
 +
'''cframe.cpp: In constructor âCFrame::CFrame()â:'''
 +
'''cframe.cpp:32:31: error: invalid conversion from âconst char*â to âchar*â [-fpermissive]'''
 +
'''/usr/include/string.h:128:14: error: initializing argument 1 of âchar* strcpy(char*, const char*)â [-fpermissive]'''
 +
: commented out for now... was trying to change a constant variable
 +
 
 +
'''cframe.h:86:19: error: âiFrameâ has not been declared'''
 +
:
 +
 
 +
'''In file included from test01.cpp:8:0:'''
 +
'''cframe.h:23:30: error: expected class-name before â{â token'''
 +
'''cframe.h:87:19: error: âiFrameâ has not been declared'''
 +
'''In file included from cframe.cpp:19:0:'''
 +
'''cframe.h:23:30: error: expected class-name before â{â token'''
 +
'''cframe.h:87:19: error: âiFrameâ has not been declared'''
 +
:
 +
== November 1<sup>st</sup>, 2013 ==
 +
 
 +
- fixed spelling mistakes and added cio namespaces - unable to compile (Jodie)
 +
/tmp/ccWeF2gJ.o: In function `testFrame()':
 +
a2test.cpp:(.text+0xc70): undefined reference to `cio::move(cio::iFrame&)'
 +
a2test.cpp:(.text+0xc90): undefined reference to `cio::move(cio::iFrame&)'
 +
collect2: ld returned 1 exit status
 +
 
 +
 
 +
== November 3<sup>rd</sup>, 2013 ==
 +
Group meeting via Teamviewer:
 +
 
 +
- unable to compile - FIXED forgot to use -lncurses
 +
:
 +
/tmp/ccaMDlgn.o: In function `testFrame()':
 +
a2test.cpp:(.text+0xc70): undefined reference to `cio::move(cio::iFrame&)'
 +
a2test.cpp:(.text+0xc90): undefined reference to `cio::move(cio::iFrame&)'
 +
/tmp/ccQ3fuxQ.o: In function `cio::Console::Console()':
 +
console.cpp:(.text+0x7): undefined reference to `initscr'
 +
console.cpp:(.text+0xc): undefined reference to `noecho'
 +
console.cpp:(.text+0x11): undefined reference to `cbreak'
 +
console.cpp:(.text+0x16): undefined reference to `stdscr'
 +
console.cpp:(.text+0x26): undefined reference to `keypad'
 +
console.cpp:(.text+0x2c): undefined reference to `LINES'
 +
console.cpp:(.text+0x38): undefined reference to `COLS'
 +
/tmp/ccQ3fuxQ.o: In function `cio::Console::~Console()':
 +
console.cpp:(.text+0xcf): undefined reference to `endwin'
 +
/tmp/ccQ3fuxQ.o: In function `cio::Console::clear()':
 +
console.cpp:(.text+0xdd): undefined reference to `erase'
 +
/tmp/ccQ3fuxQ.o: In function `cio::Console::getKey()':
 +
console.cpp:(.text+0xf5): undefined reference to `refresh'
 +
console.cpp:(.text+0xfa): undefined reference to `stdscr'
 +
console.cpp:(.text+0x102): undefined reference to `wgetch'
 +
/tmp/ccQ3fuxQ.o: In function `cio::Console::setPosition(int, int)':
 +
console.cpp:(.text+0x25a): undefined reference to `move'
 +
/tmp/ccQ3fuxQ.o: In function `cio::Console::drawCharacter()':
 +
console.cpp:(.text+0x294): undefined reference to `stdscr'
 +
console.cpp:(.text+0x2a0): undefined reference to `waddch'
 +
/tmp/ccQ3fuxQ.o: In function `cio::operator<<(cio::Console&, char)':
 +
console.cpp:(.text+0x2b7): undefined reference to `stdscr'
 +
console.cpp:(.text+0x2c3): undefined reference to `waddch'
 +
collect2: ld returned 1 exit status
 +
:
 +
 
 +
== November 4<sup>th</sup>, 2013 ==
 +
- unable to compile FIXED!!! changed void move(iFrame& frame) to void cio::move(cio::iFrame& frame)
 +
:
 +
'''/tmp/ccWeF2gJ.o: In function `testFrame()':'''
 +
'''a2test.cpp:(.text+0xc70): undefined reference to `cio::move(cio::iFrame&)' '''
 +
'''a2test.cpp:(.text+0xc90): undefined reference to `cio::move(cio::iFrame&)' '''
 +
'''collect2: ld returned 1 exit status'''
 +
:
 +
 
 +
== November 7<sup>th</sup>, 2013 ==
 +
templates for cfield.h, cfield.cpp, clabel.h, clabel.cpp created (Maggie)
 +
started coding on cfield.cpp, cline.cpp (Maggie, Jodie)
 +
 
 +
== November 11<sup>th</sup>, 2013 ==
 +
templates for cline.h, cline.cpp, cbutton.h, cbutton.cpp created(Jodie)
 +
coding on cfield.cpp, cline.cpp(Maggie)
 +
started coding on clabel (Maggie)
 +
 
 +
== November 14<sup>th</sup>, 2013 ==
 +
template for cdialog.h cdialog.cpp (Jodie)
 +
completed coding for cfield.cpp(Maggie, Jodie)
 +
* cfield.cpp: In member function âvoid cio::CField::display(int)â:
 +
* cfield.cpp:44:44: warning: pointer of type âvoid *â used in arithmetic [-Wpointer-arith]
 +
* cfield.cpp: In member function âint cio::CField::edit(int, bool*, int*, int*)â:
 +
* cfield.cpp:51:73: error: invalid conversion from âconst void*â to âchar*â [-fpermissive]
 +
needed to cast
 +
 
 +
== November 15<sup>th</sup>, 2013 ==
 +
completed coding for clabel.cpp(Maggie)
 +
* cfield.cpp: In member function âint cio::CField::edit(int, bool*, int*, int*)â:
 +
* cfield.cpp:51:23: error: expected primary-expression before âconstâ
 +
* cfield.cpp:51:35: error: expected â;â before âpdataâ
 +
* cfield.cpp:51:85: error: expected â;â before â)â token
 +
typo - fixed
 +
 
 +
* clabel.cpp: In destructor âcio::CLabel::~CLabel()â:
 +
* clabel.cpp:51:18: warning: deleting âconst void*â is undefined [enabled by default]
 +
 
 +
need to cast a value
 +
 
 +
== November 25<sup>th</sup>, 2013 ==
 +
(reassignment of tasks)
 +
started coding cbutton, cdialog (Pedro)
 +
 
 +
== November 28<sup>th</sup>, 2013 ==
 +
completed coding for cline, cbutton(Pedro)
 +
completed coding for cdialog(Maggie, Jodie)
 +
 
 +
* In file included from a2test.cpp:16:0:
 +
* cdialog.h:29:4: error: âCFieldâ does not name a type
 +
* In file included from a2test.cpp:16:0:
 +
* cdialog.h:39:4: error: âCFieldâ does not name a type
 +
* cdialog.h:40:4: error: âCFieldâ does not name a type
 +
 
 +
* - forgot to include the "cfield.h" file - FIXED
 +
 
 +
== November 30<sup>th</sup>, 2013 ==
 +
added all code together and started incremental testing (Jodie, Maggie, Pedro)
 +
 
 +
* a2test.cpp: In function âvoid testDialogLabel()â:
 +
* a2test.cpp:208:17: error: no matching function for call to âcio::CDialog::draw()â
 +
* a2test.cpp:208:17: note: candidate is:
 +
* cdialog.h:46:9: note: virtual void cio::CDialog::draw(int)
 +
* cdialog.h:46:9: note:  candidate expects 1 argument, 0 provided
 +
 
 +
missing a default value
 +
 
 +
* cdialog.cpp:34:14: error: invalid conversion from âvoid*â to âcio::CField*â [-fpermissive]
 +
* cdialog.cpp: In member function âcio::CField& cio::CDialog::curField() constâ:
 +
* cdialog.cpp:63:26: error: invalid initialization of reference of type âcio::CField&â from expression of type âcio::CField* constâ
 +
 
 +
 
 +
== December 01<sup>st</sup>, 2013 ==
 +
added all code together and started incremental testing (Jodie, Maggie, Pedro)
 +
:* increment testing completed (Jodie, Maggie, Pedro)
 +
:* tests 0, 1, 2, 3, 4 completed successfully
 +
 
 +
* issues when testing done on Matrix
 +
*** code that runs properly on a Mac is not running properly on Matrix
 +
*** need to retest and resolve items one by one - repeat incremental testing
 +
 
 +
 
 +
== December 02<sup>nd</sup>, 2013 ==
 +
incremental testing - tests 0, 1, 2, 3 and 4 COMPLETED (Jodie, Maggie, Pedro)
 +
testing using custom application file - COMPLETED
 +
YIPPIE!!

Latest revision as of 02:40, 3 December 2013

Team Leader
Jodie Carleton
Team Members
Pedro Bellesa
Jodie Carleton
David Gousvaris
Maggie Ha

October 10th, 2013:

Creation of work plan (Jodie) - base files created from assignment template

October 14th, 2013:

- working on setting up svn (Jodie & Maggie)

October 22nd, 2013: Group Meeting

CFrame Class

File "cframe.h" created.
Constructors done.
Half of cframe.cpp done.


PART1 Coding done - ( Pedro Bellesa ) PART1 Coding done - ( Maggie Ha ) PART1 Coding - partially completed - missing capture function (Jodie)

October 23rd, 2013

- trying to compile and test constructors - unable to compile working through error messages (Jodie) - issues with enum CDirection not be defined (jodie)

October 24nd, 2013

Found a bunch of spelling mistakes (variable names) FIXED!

cframe.h:29:4: error: invalid use of non-static data member âCFrame::positionâ cframe.h:80:25: error: from this location

used a variable in a struct without referencing the struct. FIXED!

iframe.h:18:27: error: âCDirectionâ has not been declared

realised we created the CDirection wrong in our cfg.h file. (Did not use enum) FIXED!

cframe.cpp: In constructor âCFrame::CFrame()â: cframe.cpp:32:31: error: invalid conversion from âconst char*â to âchar*â [-fpermissive] /usr/include/string.h:128:14: error: initializing argument 1 of âchar* strcpy(char*, const char*)â [-fpermissive]

commented out for now... was trying to change a constant variable

cframe.h:86:19: error: âiFrameâ has not been declared

In file included from test01.cpp:8:0: cframe.h:23:30: error: expected class-name before â{â token cframe.h:87:19: error: âiFrameâ has not been declared In file included from cframe.cpp:19:0: cframe.h:23:30: error: expected class-name before â{â token cframe.h:87:19: error: âiFrameâ has not been declared

November 1st, 2013

- fixed spelling mistakes and added cio namespaces - unable to compile (Jodie) /tmp/ccWeF2gJ.o: In function `testFrame()': a2test.cpp:(.text+0xc70): undefined reference to `cio::move(cio::iFrame&)' a2test.cpp:(.text+0xc90): undefined reference to `cio::move(cio::iFrame&)' collect2: ld returned 1 exit status


November 3rd, 2013

Group meeting via Teamviewer:

- unable to compile - FIXED forgot to use -lncurses

/tmp/ccaMDlgn.o: In function `testFrame()': a2test.cpp:(.text+0xc70): undefined reference to `cio::move(cio::iFrame&)' a2test.cpp:(.text+0xc90): undefined reference to `cio::move(cio::iFrame&)' /tmp/ccQ3fuxQ.o: In function `cio::Console::Console()': console.cpp:(.text+0x7): undefined reference to `initscr' console.cpp:(.text+0xc): undefined reference to `noecho' console.cpp:(.text+0x11): undefined reference to `cbreak' console.cpp:(.text+0x16): undefined reference to `stdscr' console.cpp:(.text+0x26): undefined reference to `keypad' console.cpp:(.text+0x2c): undefined reference to `LINES' console.cpp:(.text+0x38): undefined reference to `COLS' /tmp/ccQ3fuxQ.o: In function `cio::Console::~Console()': console.cpp:(.text+0xcf): undefined reference to `endwin' /tmp/ccQ3fuxQ.o: In function `cio::Console::clear()': console.cpp:(.text+0xdd): undefined reference to `erase' /tmp/ccQ3fuxQ.o: In function `cio::Console::getKey()': console.cpp:(.text+0xf5): undefined reference to `refresh' console.cpp:(.text+0xfa): undefined reference to `stdscr' console.cpp:(.text+0x102): undefined reference to `wgetch' /tmp/ccQ3fuxQ.o: In function `cio::Console::setPosition(int, int)': console.cpp:(.text+0x25a): undefined reference to `move' /tmp/ccQ3fuxQ.o: In function `cio::Console::drawCharacter()': console.cpp:(.text+0x294): undefined reference to `stdscr' console.cpp:(.text+0x2a0): undefined reference to `waddch' /tmp/ccQ3fuxQ.o: In function `cio::operator<<(cio::Console&, char)': console.cpp:(.text+0x2b7): undefined reference to `stdscr' console.cpp:(.text+0x2c3): undefined reference to `waddch' collect2: ld returned 1 exit status

November 4th, 2013

- unable to compile FIXED!!! changed void move(iFrame& frame) to void cio::move(cio::iFrame& frame)

/tmp/ccWeF2gJ.o: In function `testFrame()': a2test.cpp:(.text+0xc70): undefined reference to `cio::move(cio::iFrame&)' a2test.cpp:(.text+0xc90): undefined reference to `cio::move(cio::iFrame&)' collect2: ld returned 1 exit status

November 7th, 2013

templates for cfield.h, cfield.cpp, clabel.h, clabel.cpp created (Maggie) started coding on cfield.cpp, cline.cpp (Maggie, Jodie)

November 11th, 2013

templates for cline.h, cline.cpp, cbutton.h, cbutton.cpp created(Jodie) coding on cfield.cpp, cline.cpp(Maggie) started coding on clabel (Maggie)

November 14th, 2013

template for cdialog.h cdialog.cpp (Jodie) completed coding for cfield.cpp(Maggie, Jodie)

  • cfield.cpp: In member function âvoid cio::CField::display(int)â:
  • cfield.cpp:44:44: warning: pointer of type âvoid *â used in arithmetic [-Wpointer-arith]
  • cfield.cpp: In member function âint cio::CField::edit(int, bool*, int*, int*)â:
  • cfield.cpp:51:73: error: invalid conversion from âconst void*â to âchar*â [-fpermissive]

needed to cast

November 15th, 2013

completed coding for clabel.cpp(Maggie)

  • cfield.cpp: In member function âint cio::CField::edit(int, bool*, int*, int*)â:
  • cfield.cpp:51:23: error: expected primary-expression before âconstâ
  • cfield.cpp:51:35: error: expected â;â before âpdataâ
  • cfield.cpp:51:85: error: expected â;â before â)â token

typo - fixed

  • clabel.cpp: In destructor âcio::CLabel::~CLabel()â:
  • clabel.cpp:51:18: warning: deleting âconst void*â is undefined [enabled by default]

need to cast a value

November 25th, 2013

(reassignment of tasks) started coding cbutton, cdialog (Pedro)

November 28th, 2013

completed coding for cline, cbutton(Pedro) completed coding for cdialog(Maggie, Jodie)

  • In file included from a2test.cpp:16:0:
  • cdialog.h:29:4: error: âCFieldâ does not name a type
  • In file included from a2test.cpp:16:0:
  • cdialog.h:39:4: error: âCFieldâ does not name a type
  • cdialog.h:40:4: error: âCFieldâ does not name a type
  • - forgot to include the "cfield.h" file - FIXED

November 30th, 2013

added all code together and started incremental testing (Jodie, Maggie, Pedro)

  • a2test.cpp: In function âvoid testDialogLabel()â:
  • a2test.cpp:208:17: error: no matching function for call to âcio::CDialog::draw()â
  • a2test.cpp:208:17: note: candidate is:
  • cdialog.h:46:9: note: virtual void cio::CDialog::draw(int)
  • cdialog.h:46:9: note: candidate expects 1 argument, 0 provided

missing a default value

  • cdialog.cpp:34:14: error: invalid conversion from âvoid*â to âcio::CField*â [-fpermissive]
  • cdialog.cpp: In member function âcio::CField& cio::CDialog::curField() constâ:
  • cdialog.cpp:63:26: error: invalid initialization of reference of type âcio::CField&â from expression of type âcio::CField* constâ


December 01st, 2013

added all code together and started incremental testing (Jodie, Maggie, Pedro)

  • increment testing completed (Jodie, Maggie, Pedro)
  • tests 0, 1, 2, 3, 4 completed successfully
  • issues when testing done on Matrix
      • code that runs properly on a Mac is not running properly on Matrix
      • need to retest and resolve items one by one - repeat incremental testing


December 02nd, 2013

incremental testing - tests 0, 1, 2, 3 and 4 COMPLETED (Jodie, Maggie, Pedro) testing using custom application file - COMPLETED YIPPIE!!