Questions tagged [syntax-error]

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

0 votes
0 answers
11 views

Syntax Error in YAML for setting PATH problem

I have this line of code in a YAML file: path: <%= ENV['LOCAL_PATH'] || 'abc' %> Now I want to change it to add another path like "123" -- so how do I do that? path: <%= ENV['...
user avatar
  • 597
0 votes
1 answer
22 views

function are not giving the output entered by the user in 2D Array format in C

The function isn't giving the correct number output entered by the user in value and the size of the array has been passed from main to the created function. The problem is that the output isn't ...
user avatar
-3 votes
0 answers
26 views

IndexError: list index out of range but I don't know where is the exact error [closed]

I've got an error in the ZCvalue formula. I know that an IndexError means that my code is trying to access an index that is invalid. But I don't know where is my error there. I think the error ...
user avatar
0 votes
0 answers
11 views

My wordpress site suddenly displays this error for 2 days: Parse error: syntax error, unexpected '?' in ..../Module/ModuleViewAbstract.php

My wordpress site suddenly displays this error for 2 days: Parse error: syntax error, unexpected '?' on line 5 of this code : protected function random_ads_position( $count ) { $position = - 1; ...
user avatar
0 votes
0 answers
14 views

Doctrine - syntax issue when trying to add sql statements

I am trying to run migration file in doctrine with: php bin/console doctrine:migrations:execute --up 'App\Migration\Version20220818173035' And I get: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax ...
user avatar
0 votes
0 answers
36 views

hello I am new I am lost with this problem object has no attribute 'get ,someone who can guide me?

I'm new to Django, and I'm looking for a solution to this error. I sent you my forms and my view, and the error is as follows in my app . According to what appears to me in the tracer back, I would ...
user avatar
  • 1
0 votes
1 answer
29 views

Why there is an error in var in line 44 (var finalURL = formURL + formData; and line 46

When I am saving or running this it shows syntax error unexpected token var in line 44 var finalURL = formURL + formData; I followed this step by step from a tutorial and that one ran smoothly. But ...
user avatar
0 votes
0 answers
18 views

Nested <span> tag inside link_to in Rails 7

I need the following HTML output exactly as shown below: <section id='option1'> <a href='#option1'><h6>Option1</h6><span>&#x3e;</span></a> <div ...
user avatar
  • 1,083
0 votes
1 answer
18 views

Universal Link, AASA file component syntax wrong

I correctly have created Universal Link on iOS side and also successfully upload it to the domain. Apple Validate service shows me that all work fine but I can't open specific links because the syntax ...
user avatar
  • 540
0 votes
0 answers
49 views

Error C2760 syntax error: unexpected token 'identifier', expected 'type specifier' [closed]

The code: // Variadic function for all Component type constructor template <typename T, unsigned N> template <typename... argv> T* CustomAllocator<T, N>::Allocate(argv... args) { ...
user avatar
  • 11
-3 votes
0 answers
28 views

Syntax error on token "}", { expected is the error for this program [closed]

can anyone tell me what is wrong with my code I have been practising multi threading in java and while i open a new java i get this error Syntax error on token "}", { expected This is my ...
user avatar
-1 votes
0 answers
20 views

Can't find source of probelm [closed]

I am getting a "attempt to apply non-function" error with this code and can't find the source. Other people said the UI created html just fine, but even after changes, I'm getting some weird ...
user avatar
0 votes
0 answers
9 views

Why do I get the Cannot read properties of undefined (reading 'parentNode') error only when I log in as admin?

I have a js code that takes care of deleting the user account and showing a popup only when you hit the "delete user" button. In addition, I have a small function that allows you to show and ...
user avatar
-1 votes
0 answers
22 views

Failed to loop files through directory in Google Colab to apply a python module [closed]

I am trying to loop some .flac audio files in a parent directory in Google Colab to apply a python module. ! for file in ".flac"; do python-m demucs.separate -n "mdx_extra" --...
user avatar
0 votes
2 answers
44 views

Vscode doesnt show errors on the IDE like other IDEs such as (visual studio 2019, repl.it, etc.)

so I recently got started with vscode and working with the c++ project when I noticed that some of the errors aren't displaying. Also, the program would run fine on vscode but when used it on repl.it ...
user avatar

15 30 50 per page
1
2 3 4 5
598