Top "Syntax-error" questions

A syntax error occurs when a program does not follow the syntactical rules of the programming language.

Uncaught SyntaxError: Unexpected token u in JSON at position 0

Only at the checkout and on individual product pages I am getting the following error in the console log: VM35594:1 …

javascript json syntax-error magento2
Why does Eclipse complain about @Override on interface methods?

I have an existing project that uses @Override on methods that override interface methods, rather than superclass methods. I cannot …

java eclipse interface annotations syntax-error
Visual Studio displaying errors even if projects build

I have a problem with Visual Studio on a C# solution. It displays totally random errors, but the projects build. …

c# visual-studio syntax-error resharper intellisense
mysql error 'TYPE=MyISAM'

Below query I'm executing in Ubuntu 12, MySQL 5.1 version and receiving error as mentioned: CREATE TABLE mantis_config_table ( config_id …

php mysql syntax-error myisam
Why is whitespace sometimes needed around metacharacters?

A few months ago I tattooed a fork bomb on my arm, and I skipped the whitespaces, because I think …

bash shell syntax syntax-error
How to cube a number

I just started using Python today for my class and one of my problems is cubing a number in Python. …

python syntax syntax-error exponentiation
Babel unexpected token import when running mocha tests

The solutions offered in other related questions, such as including the proper presets (es2015) in .babelrc, are already implemented in …

node.js npm syntax-error mocha babeljs
Command inside if statement of bash script

I have the following line as part of a much bigger bash script: if [ `packages/TinySVM-0.09/bin/svm_learn 2>&…

bash if-statement conditional syntax-error
C: for loop int initial declaration

Can someone elaborate on the following gcc error? $ gcc -o Ctutorial/temptable.out temptable.c temptable.c: In function ‘main’: …

c for-loop gcc syntax-error
What's wrong with my except?

I've got a SyntaxError on my except: try: opts, args = getopt.getopt(sys.argv[1:], 'P:D:H:d:u:p:…

python exception-handling syntax-error except