30

a missing semi colon is overated, the white space character at the end of a string is the real OG. Been hunting a bug for three days because of it!!

Comments
  • 3
    Which editor/IDE do you use?
    On sublime, I can auto trim the whitespace at the end of lines.
  • 4
    I am developing an android app. so android studio. Now I need to look into that. thanks
  • 3
    @mrlinnth I have found that option in android studio. thanjs again
  • 3
    @hilpitome glad I could help and welcome from DevRant :D
  • 3
    been there. even had to ask on SO for it.

    also +1 for semicolon. it's and outdated problem. including turbo pascal, semi colon was almost never a problem to me.
  • 1
    There are just some bugs you’ve gotta expect. This is one of them haha
  • 1
    @exploretheC hehe. I guess this is where experience gets 1 over talent in this here life
  • 2
    Trim em down :)
  • 1
    Does your compiler not give you an insight into which line the syntax error is located?
  • 0
    @theupandup a preceeding or trailing white space is not an error. it could be placed there by default. Now, the variable in question was being used to put data into an sqlite database. in an sqlite android query one pulls data using the integer value of a column(maybe you know this). e.g if i had a column value as "name " and i tried calling it from the cursor object as cursor.getColumnIndexOf("name") (this returns an int). thats where world war III begins
  • 0
    @theupandup notice the difference between "name " and "name"
  • 1
    Oh. I thought we talking about a certain interpreted language.

    The most annoying/difficult bugs come from these stupid little typos. I can relate to that. Sometimes I spend forever trying to figure out and tackle edge cases when in reality the issue was from a misspelling. It's incredibly frustrating whenever that happens.
  • 1
    @theupandup haha yes. I have come to the conclusion that its always the little things. mispellings especially. and when you want to overcome it with a copy paste you end up omitting either the last or first letter with your highlighting
  • 1
    thankd for the + 1 @dfox. its an honor
  • 0
    @hilpitome absolutely! Haha
Add Comment