Top "Syntax-error" questions

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

Syntax error on token ";", { expected after this token in Random string creator

I am writing code to generate a random 3 letter strings using the letters a, b, and c. I am getting …

java syntax syntax-error brackets
How do I fix this missing semicolon syntax error in Javascript?

A friend wrote some code for me, and there was one file with a weird syntax error in it. After …

javascript unicode syntax-error
SQL Query Syntax Error - Spaces in Field Names

The database my application uses has field names containing spaces. I believe this to be the cause of my problem. …

sql ms-access-2007 syntax-error
f-strings giving SyntaxError?

I am getting an error message with my Atom reader here, where it is suggesting the first print.(f"message") …

python syntax-error python-2.x f-string
Parse error: syntax error, unexpected '[', expecting ')'

I have this linecode $media = $dc->thumbnail->attributes()['url']; runs fine on my local (WAMP) php 5.4.3 but when …

php syntax-error php-5.2
Invalid Syntax error when running python from inside Visual Studio Code

i have a python file with the following content saved on my machine: types_of_people = 10 x = f"There are {…

python python-3.x visual-studio-code syntax-error
GraphQL gql Syntax Error: Expected Name, found }

I'm attempting to set up Apollo GraphQL support in a new React project, but when I try to compile a …

syntax-error graphql apollo react-apollo graphql-tag
How to pass a variable by name to a Thread in Python?

Say that I have a function that looks like: def _thread_function(arg1, arg2=None, arg3=None): #Random code Now …

python multithreading syntax syntax-error python-multithreading
Syntax error: EOF in backquote substitution

I'm getting an error Syntax error: EOF in backquote substitution and I don't have the faintest idea why. Would anyone …

bash syntax-error sh init.d
SQL Error: Incorrect syntax near the keyword 'End'

Need help with this SQL Server 2000 procedure. The problem is made difficult because I'm testing procedure via Oracle SQL Developer. …

sql-server stored-procedures sql-server-2000 syntax-error dynamic-sql