BTP300A Team 4 Bugs Report

From CDOT Wiki
Jump to: navigation, search

Team members: Jodie Carleton and Maggie Ha

Week 1

  • 09/09/13: Began development.

Week 2

  • 09/16/13: Began working on display function
  • 09/16/13: Compiling error:

/tmp/ccagyqLx.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/ccagyqLx.o: In function `cio::Console::~Console()': console.cpp:(.text+0xcf): undefined reference to `endwin' /tmp/ccagyqLx.o: In function `cio::Console::clear()': console.cpp:(.text+0xdd): undefined reference to `erase' /tmp/ccagyqLx.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/ccagyqLx.o: In function `cio::Console::setPosition(int, int)': console.cpp:(.text+0x25a): undefined reference to `move' /tmp/ccagyqLx.o: In function `cio::Console::drawCharacter()': console.cpp:(.text+0x294): undefined reference to `stdscr' console.cpp:(.text+0x2a0): undefined reference to `waddch' /tmp/ccagyqLx.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

FIXED! Forgot -lncurses

Week 3

  • 9/19 - Pair Programming - used to complete display function. Discovered that we needed to use max columns.
    - Ran in to an issue with printing values for troubleshooting purposes - will post on other board for help.
  • 9/20 - Pair Programming - Discovered our display function was not positioning the cursor properly at the end of the string. FIXED!

Week 4

  • 9/24 - Pair Programming - working on edit function.

Errors: consolelineedit.cpp:75:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] consolelineedit.cpp:76:25: error: invalid conversion from âsize_t {aka unsigned int}â to âint*â [-fpermissive]

    - had to dereference "strOffset" (FIXED!)

consolelineedit.cpp: In function âint edit(char*, int, int, int, int, bool*, int*, int*)â: consolelineedit.cpp:80:22: warning: NULL used in arithmetic [-Wpointer-arith]

    - field dereference that shouldn't be dereferenced
    - cannot compare int with NULL, but can with pointer (FIXED!)

consolelineedit.cpp:131:3: error: expected primary-expression before â}â token consolelineedit.cpp:131:3: error: expected â;â before â}â token

    - forgot braces (FIXED!)
  • 9/26 - Pair Programming - Had an awesome time today!

Issue 1: string was not being printed, but the cursor was being placed appropriately at the end of the string. Fixed!

- had an "if" , "else if", but no "else" (Yay fixed!)

Issue 2: RIGHT arrow jumping cursor to the end of the field length and display not refreshing properly. Fixed! - Had to call display function first before calling the "setPosition".

Issue 3: HOME button not working properly (not sure if Matrix or computer that we are on) - tested code using another button that we know works - verified the code is working as expected - must be issue with the button. (will retest on another computer).

Week 5

  • 9/28 - Pair Programming - very eventful!

Issue 1: Problem with End button after a DEL - cursor Position was jumping to maxStrLength. (fixed!)

Issue 2: DEL key - was adjusting the offset and moving characters to the right instead of to the left (fixed!)

Issue 3: INSERT - when in INSERT mode entering characters it was adding the new chars to the left of the cursor instead of to the right of the cursor (fixed!)

  • 9/29 - Pair Programming

Preparing to hand in assignment but when compiling in Borland we received many errors. C:\Borland\BCC55\Bin>bcc32 a1test.cpp console.cpp consolelineedit.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland a1test.cpp: console.cpp: consolelineedit.cpp: Error E2268 consolelineedit.cpp 35: Call to undefined function 'strlen' in funct ion display(const char *,int,int,int) Error E2268 consolelineedit.cpp 37: Call to undefined function 'strlen' in funct ion display(const char *,int,int,int) Error E2268 consolelineedit.cpp 54: Call to undefined function 'strlen' in funct ion display(const char *,int,int,int) Error E2268 consolelineedit.cpp 60: Call to undefined function 'strlen' in funct ion display(const char *,int,int,int) Error E2268 consolelineedit.cpp 61: Call to undefined function 'strlen' in funct ion display(const char *,int,int,int) Error E2268 consolelineedit.cpp 64: Call to undefined function 'strlen' in funct ion display(const char *,int,int,int) Error E2268 consolelineedit.cpp 87: Call to undefined function 'strlen' in funct ion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 88: Call to undefined function 'strcpy' in funct ion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 94: Call to undefined function 'strlen' in funct ion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 95: Call to undefined function 'strlen' in funct ion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 105: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 106: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 107: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 108: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 131: Call to undefined function 'strcpy' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 173: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 187: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 189: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 192: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 193: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 200: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 201: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 217: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 222: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2268 consolelineedit.cpp 226: Call to undefined function 'strlen' in func tion edit(char *,int,int,int,int,bool *,int *,int *) Error E2228 consolelineedit.cpp 226: Too many error or warning messages in funct ion edit(char *,int,int,int,int,bool *,int *,int *) *** 26 errors in Compile ***

- Fixed... added #include <iostream> and it compiled... not sure why we needed iostream