Top "Syntax-error" questions

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

Python invalid syntax with "with" statement

I am working on writing a simple python application for linux (maemo). However I am getting SyntaxError: invalid syntax on …

python syntax syntax-error
SyntaxError: Generator expression must be parenthezised / python manage.py migrate

I'm really new in programming and I wanted to follow the Djangogirls tutorial, but I'm stucked now. In the tutorial, …

python django syntax-error migrate
How can I check JavaScript code for syntax errors ONLY from the command line?

JavaScript programs can be checked for errors in IDEs or using online web apps but I'm looking for a way …

javascript syntax-error jslint jshint
Syntax Error: Not a Chance

I tried executed the following code in the python IDLE from __future__ import braces And I got the following error: …

python syntax-error curly-braces
As3 flash error "Cannot access a property or method of a null object reference"

im trying to do a couple of basic games on flash that consist in random numbers but im receiving this …

actionscript-3 flash syntax-error flash-cs6
makefile is missing separator

Alright I am stuck on this and I have no idea what I am doing wrong. Everything was going great …

makefile syntax-error gnu-make
Can't get ASCII art to echo to console

I'm new to Bash scripting, and this here is just puzzling to me. I'm adding ASCII art to a project, …

bash scripting syntax-error ascii
Hash syntax in Ruby

According to The Well Grounded Rubyist: Ruby allows a special form of symbol representation in the hash-key position, with the …

ruby hash syntax-error
PostgreSQL syntax error when using EXECUTE in Function

I'm trying to create a function which references a temporary table in PostgreSQL 8.4. Based on my research it seems the …

function postgresql syntax-error execute temp-tables
Declare variable syntax invalid in MySQL Workbench?

I am trying to create and set a variable: DECLARE myId INT; SET myId = 5; However, I am getting invalid syntax …

mysql syntax-error mysql-workbench declare