Questions tagged [syntax-error]
A syntax error occurs when a program does not follow the syntactical rules of the programming language.
syntax-error
9,581
questions
0
votes
0
answers
5
views
kotlin multiplatform expect/actual usage
I used the KMP Library Wizard to generate a boilerplate project to support both Android and iOS. I can't figure out why the following code is not flagged by the compiler. I don't understand how the ...
0
votes
0
answers
20
views
How to use `reduce` with `and` in MIT-Scheme? [duplicate]
Recently when I self-learnt MIT 6.5151 course, I first read CS 61AS Unit 0 as the preparation. Then I have read SICP 1 to 2.1 (with related lecture notes) as ps0 requires (also read 2.2.1 as CS 61A ...
0
votes
0
answers
21
views
"Ill-formed syntax: (define (expmod a num num) ((exptmod num) a num))" in Scheme
I am learning SICP up to chapter 2.2.1 now. I have the following code:
(define (modular n op)
(lambda (a b)
(modulo (op a b) n)))
(define (exptmod p)
(let ((mod* (modular p *)))
(define (...
0
votes
1
answer
27
views
Use of GROUP_CONCAT() results in error 1064
I have a very simple table:
CREATE TABLE `invoice_physician` (
`INVOICENR` varchar(12) NOT NULL,
`PHYSICIAN` varchar(255) NOT NULL DEFAULT '',
`modified` timestamp NOT NULL DEFAULT ...
0
votes
1
answer
44
views
In SageMath, how to use GF() on a very large finite field which is several thousands bits long?
As far I understand it correctly, GF(Integer) is used to declare a finite field which can for example be used for declaring an elliptic curve (this is what I want to do).
But why using a very large ...
0
votes
0
answers
21
views
Hit `<foo>_pb.js` does not provide an export named `'<foo>'` syntax error
I generate proto js files with:
npx grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./grpc/client --grpc_out=grpc_js:./grpc/client --plugin=protoc-gen-grpc=`which ...
0
votes
0
answers
5
views
Class 'Object' has no method named 'getRunningAppProcesses'
JNIEXPORT jboolean JNICALL
Java_com_ghost_hooker_Hooker_isAppRunning(JNIEnv *env, jobject thiz, jstring package_name) {
const char *pkg_name = env->GetStringUTFChars(package_name, nullptr);
LOGI(&...
0
votes
0
answers
19
views
When I use Jupyterlab in google chrome to write code, It Raise "SyntaxError: invaild non-printable character U+00A0", but safari has not this problem
When I use Jupyter lab in chrome browser, it always autoadd special character in my code resulting a SyntaxError
SyntaxError: invalid non-printable character U+00A0
When I delete this special ...
1
vote
1
answer
42
views
How to pass parameters to task from file
I create a file with a content and I need to pass this to my task paramaters:
The original tasks is like this:
- name: Configure Web filter profiles.
fortinet.fortios.fortios_webfilter_profile:
...
0
votes
0
answers
34
views
SQL syntax error (mysql.connector.errors.ProgrammingError: 1064 (42000):) while trying to update records in python
Part of my code calls up an edit window. In this window it pulls the information from the record you want to update based of the C_ID unique ID number. You enter the ID number in the box for either ...
-2
votes
0
answers
47
views
form submitted but not getting email in php [duplicate]
What is the problem in coding. When I click on form submit button, it redirects to successful submission.html page, but actually I cannot receive any email from server. I am fed up and I don't have ...
0
votes
1
answer
34
views
Syntax error at input 'end of line without line continuation', Pine Script, TradingView
//@version=5
// Display correlation matrix with labels
var label corr_matrix = label.new(x=na, y=na, text="", style=label.style_label_down, size=size.normal, color=color.white)
maxBarIndex = ...
0
votes
1
answer
33
views
Vue component is not working properly, can i do this?
I'm trying to add a template tag with attributes and values nut it keeps displaying this error message
<script> </script> <template> <nav class="navbar navbar-expand-lg bg-...
0
votes
0
answers
58
views
SQL - Querying Data Within Certain Time Ranges
I'm trying to create a table called "Stats" that employees use a business application where they perform searches and projects on it. I'm trying to answer the following questions with the ...
0
votes
0
answers
18
views
XAMPP not running on Mac OS 12.7.5 - Syntax Error
I'm trying to launch the Apache Web Server on my copy of XAMPP (8.1.17) and it won't turn on. I have tried the following (all listed in THIS THREAD):
sudo killall httpd in Terminal
changing ports in ...