9,542 questions
4
votes
2
answers
132
views
Error with creating an array of named/predefined string constants in c
For background, I am working to create a version of minesweeper that runs in the terminal to become more familiar with coding bigger projects in c.
I am coding in VScode, to run on a Linux server (...
0
votes
0
answers
48
views
Keycloak v.26.0.0 causes the error in flt file
With the upgrade of Keycloak from version 25.0.0 to 26.0.0 (26.4.2), the login theme doesn't work and produces the following error:
FTL stack trace ("~" means nesting-related):
Failed at: #...
1
vote
1
answer
53
views
Type mismatch error when using domain subtraction on function variable
I have this formal specification and the error seems to be simple to fix. However, I have spent a decent amount of time and still cannot figure out. The error is related to domain subtraction. The ...
-2
votes
1
answer
137
views
Making Dijkstra's in c++ - priority queue iterator problems
I've just learnt Dijkstra's in school but i wanted to try and code it. I'm having a problem with an iterator and changing a specific point in a vector, but most likely my implementation is wrong. The ...
0
votes
0
answers
26
views
Repeated collation errors in stored procedure in MySQL [duplicate]
I have written this stored procedure which reports monthly performance if employees by their activity and batchwise runrates.
'''
DELIMITER $$
DROP PROCEDURE IF EXISTS roadware_pts....
1
vote
1
answer
91
views
How do I make this query as a dynamic stored procedure?
I need this working query as a stored procedure where I can give two databases (one masterdb one testdb), start chainage, end chainage and UniqueRun as input
DECLARE @StartChainage FLOAT = 17.00;
...
0
votes
0
answers
57
views
Select Asterisk/Wildcard * on an attached DB
In a sqlite connection I attach another DB via
ATTACH DATABASE 'file::memory:?cache=shared' AS backend
A SELECT with asterisk/wildcard * resulting in a syntax error:
SELECT db.table.* FROM db.table
...
1
vote
0
answers
187
views
Spring Boot Application Fails with "Missing preceding open capture character" in Path Pattern Despite Correct Mappings
I'm encountering a Spring Boot startup failure during Maven build tests in my recommendation microservice. The error indicates an invalid mapping pattern /recommendation}, but I've verified all my ...
0
votes
1
answer
54
views
How to Resolve Unexpected Token and EOF Errors in React JSX Return Block of a Profile Component?
Hello I am working on creating a profile page, and keep getting this persistent syntax error in line 381 and I can't figure out how to fix it. If its an easy fix could someone take a look at it tell ...
5
votes
1
answer
2k
views
What is the ternary operator equivalent in GitHub Actions?
How do I write something like this? At the moment using a colon seems to break everything. Is there an equivalent?
run-name: Something Running ${{ (inputs.cache-retain == 'true') ? '(with forced ...
0
votes
1
answer
184
views
Databricks with temp view with syntax error [PARSE_SYNTAX_ERROR]
I am using .NET C# with the SparkSQL ODBC driver to run a query against Databricks. To test my query, I first test and run in a SQL Notebook in the Databricks portal. I create a TEMP VIEW and then use ...
-2
votes
1
answer
676
views
"Pine Script Strategy: 'Could not find function or function reference 'ta.adx' and Syntax Error in buyCondition"
i used claude to help me developeda trading strategy in Pine Script version 5, but I'm encountering two critical errors that are preventing it from working correctly.
'Could not find function or ...
0
votes
0
answers
77
views
VSCode shows errors in the code (red squiggly lines) for a few minutes & then stops displaying the errors I have in the code, making it hard to work
This started earlier this week and I don't know if I'm the only one. When I open VSCode and I start coding, if I make a mistake, I get the typical red squiggly lines on the code that is wrong or ...
0
votes
0
answers
114
views
Cant fix Uncaught (in promise) SyntaxError: Cannot convert 22,42,79,4,0,0,0,0 to a BigInt
const BN = window.BN || solanaWeb3.BN;
if (typeof window !== "undefined" && typeof window.Buffer === "undefined") {
window.Buffer = {
from: (data) => new ...
-6
votes
2
answers
163
views
Write a program that takes in three lowercase characters and outputs the characters in alphabetical order [closed]
Write a program that takes in three lowercase characters and outputs the characters in alphabetical order.
Hint: Ordering three characters takes six permutations. If the input is CBA the output will ...
1
vote
2
answers
71
views
Flutter_fft: Why is the argument type 'String' can't be assigned to the parameter type 'int'?
I've started working on a project with Flutter and Dart. The app should display a spectrometer based on the signal received by the microphone. I used flutter_fft to handle the signals and syncfusion ...
2
votes
1
answer
70
views
Create new dataset from common ids/knees in 2 datasets in sas
I have 2 datasets, id and knee together identify unique records, vx identifies a specific visit where x=0, 1 or 2 in this example but in my data I have thousands of records and hundreds of variables.
...
0
votes
0
answers
162
views
Syntax error at programming HP Prime Pro G2
I have this new calculator (HP Prime Pro G2) and I am trying to program some script, but I am having some trouble with it. I have two problems:
I am trying to define some LOCAL variables. However, ...
1
vote
1
answer
75
views
Power Query Custom Column error messages Syntax error
I'm trying to create a custom column in my Power Query Editor using the below code however whenever I add the last line of the code I get the
Expression.SyntaxError: Token 'else' expected. message.
...
0
votes
0
answers
296
views
'<' - open parenthesis expected
I am trying to develop an Expert Advisor (EA) for MetaTrader 5 using MQL5, but I keep encountering the error '(<) - open parenthesis expected' for the following:
if (Bars < 3)
Here is a snippet ...
0
votes
1
answer
65
views
Is there a way to forbid line breaks inside single and double-quoted strings?
I discovered today, to my horror, that Postgres accepts newline characters inside single- and double-quoted string literals:
postgres=# select 'a
postgres'# b';
┌──────────┐
│ ?column? │
├──────────┤
│...
1
vote
2
answers
63
views
How do I get a variable from another file, but use a functions string to define the variable
I have set a variable x="hii!!" in another file called ImporterFile.py. I thought pre-defining the variable x and then re-importing it would work, but it didn't.
from ImporterFile import x
...
-1
votes
1
answer
262
views
"Unterminated string literal" (when it is terminated) - Why does Python parsing differ from syntax highlighting on VSCode
yield f"data: {json.dumps({
'status': 'success',
'message': 'Success',
'data': {
'response': response,
...
3
votes
2
answers
69
views
postgresql concat error when used in function
PostgreSQL syntax error when using CONCAT in user defined function.
Using DbVisualizer as SQL client.
CREATE FUNCTION t() RETURNS TEXT
AS ' SELECT CONCAT('some', '_text') ; '
LANGUAGE plpgsql;
[Code:...
8
votes
1
answer
3k
views
SyntaxError: Missing initializer in const declaration in React Native (ActivityIndicator.js)
I am encountering the following error when running my React Native project:
SyntaxError: D:\Reacting\node_modules\react-native\Libraries\Components\ActivityIndicator\ActivityIndicator.js: Missing ...
0
votes
1
answer
65
views
Error in "across( )" when summing multiple columns in R
Using the following data:
Distance <- data.frame(
DAY = c("1", "2","3")
,TEMP = c(25, 27, 26.5)
,C1Dist01 = c(1, 1, 1)
,C2Dist01 = c(1, 1, 0)
,C3Dist01 =...
1
vote
3
answers
74
views
How to compute modular square roots in Pari/Gp when the modulus is composite?
pari is both a library and Computer algebra programming language through Pari/gp.
Now my problem is unlike most similar systems, pari/gp doesn’t decompose automatically modular square roots into prime ...
-1
votes
1
answer
92
views
Syntax error at ',' in PLY Pascal-like interpreter
I'm working on a simple Pascal-like interpreter using PLY, but I'm encountering a Syntax error at ',' during parsing. The issue arises when trying to parse a source file that includes commas. Below is ...
0
votes
0
answers
73
views
A JavaScript error occured in the main process: Unexpected end of JSON input
I’m reaching out for advice on resolving the issue shown in the attached image regarding the error message:
A JavaScript error occurred in the main process
Unexpected end of JSON input
The error ...
0
votes
0
answers
38
views
Exclude certain HTML item testing during Github Linter test
During my linting test in Github Actions I've met an issue that looks like this:
Config loaded: /action/lib/.automation/.htmlhintrc
/github/workspace/consoleLogQuiz.html
L45 | <...
1
vote
1
answer
51
views
Using fsolve in python3
I am trying to find a solve the following equation using Python3:
83.045269**(8)np.exp(-3.045269a) + 63.516372**(8) np.exp(-[a+1.042817]3.516372) - 42.8578**8 * np.exp(-2.8578a) - 4*3.3**(8) *exp(-[a+...
0
votes
0
answers
21
views
Unable to create virtual environment using virtualenv on Spyder IDE [duplicate]
I'm using Spyder IDE 5.51, Python 3.12.4 64-bit. I have installed virtualenv 20.28.0 on my Windows computer. I tried to create a virtual environment using the following code on Sypder Console by ...
2
votes
0
answers
233
views
Unity C# - Tuple must contain at least two elements - error
I am trying to update discord activities while playing my game in unity by DiscordGameSDK. I am weak in this area, so I admit that I copied everything from the guide, but I got stuck with this error:
...
0
votes
0
answers
94
views
How do I fix: Column 8 in UNION ALL has incompatible types: DOUBLE, STRING at [24:1]
I have the following query which is returning an error:
My code:
SELECT
LOCATION,
DEPARTMENT,
MANAGER,
SUPERVISOR,
ASSOCIATE,
FISCAL_DATE,
AUX_NAME,
ACTUAL,
...
0
votes
0
answers
832
views
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
X.jsx:
import React from 'react';
function X() {
return (
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/...
0
votes
0
answers
56
views
TypeError: Technician.__init__() missing 1 required positional argument: 'specialization'
I'm trying to do my homework on object-oriented programming but I get a weird error.
tried restarting VSCode or changing names.
Objective: To develop an employee management system that demonstrates ...
0
votes
2
answers
141
views
Create a table (SQL in MS Access)
Doesn't run, says Syntax error in a constraint clause
CREATE TABLE Project
(
ProjectID INTEGER NOT NULL,
Name VARCHAR(25) NOT NULL,
DepartmentName VARCHAR(20) NOT NULL,
MaxHours ...
-1
votes
1
answer
81
views
Why am I getting this syntax error in AMPL? (beginner)
I am learning AMPL for a university project and i don't understand why i'm getting a syntax error, my code:
model:
set FOODS;
param calories;
param proteins;
param calcium;
param vitaminA;
param cost;
...
0
votes
0
answers
63
views
MasmBasic assembly code to encrypt any file problem
I had problem with line 15
test.asm(15) : error A2008: syntax error : ,
the code
include \masm32\MasmBasic\MasmBasic.inc
.data
key db "AMU", 0
keyLength db 3,0
Init
Let esi = ...
1
vote
1
answer
82
views
ERROR VCP2000 "Syntax error. Unexpected token: initial." "testbench.sv" 50 7
I am not able to find the exact reason for the error here. Can anyone help me?
`include "uvm_macros.svh"
import uvm_pkg::*;
class my_driver extends uvm_driver;
`uvm_component_utils(...
-1
votes
3
answers
72
views
VS Code doesnt interprete a python code that works
I'm starting to learn and this issues are really frustrating.
I have this simple code that works on the terminal smoothly:
user_prompt = "entra un PorHacer:"
porHaceres = []
while True:
...
-1
votes
1
answer
124
views
Syntax Error in Update Statement. This is what I got when I try to update my database [duplicate]
sql = "Update tblUserAccount set username = '" & txtUsername.Text & "', password = '" & txtPassword.Text & "', AccessLevel = '" & cmbAccessLevel.Text &...
0
votes
2
answers
460
views
Mypy throws syntax error for multi-line f-strings, despite code running without error
I'm working with Python 3.12 and recently added mypy type-checking to my project. I've encountered an odd issue where mypy throws a syntax error for certain f-strings in my code, specifically those ...
-1
votes
1
answer
60
views
Getting 'Element not defined' Error for ExtGraphNodes in OPL model
I'm working on an optimization problem using IBM's OPL (Optimization Programming Language). I have defined a set called ExtGraphNodes in my model file, but when I try to use it in my data file, I ...
-2
votes
2
answers
141
views
Error in syntax of fstrings in function input() [closed]
I have the following code in Python 3
def inputWithDefault(text:str, default):
result = input(f"{" " * int(len(text))}{default}\r{text}")
return default if not(result is ...
0
votes
1
answer
2k
views
HFValidation Error for calling the repo-id incorrectly, what am I doing wrong?
HFValidationError: Repo id must be in the form 'repo_name' or
'namespace/repo_name': 'meta-llama/llama3.1/8b-instruct-fp16'. Use
repo_type argument if needed.
tokenizer = AutoTokenizer....
0
votes
0
answers
23
views
Scilab tbx_build_macros Error: Syntax Error in System_IF.sci File During Macro Build
Details of the Problem:
I'm developing a Scilab-based toolbox for spacecraft guidance and navigation control. While attempting to build macros for the toolbox, specifically during the processing of ...
0
votes
1
answer
66
views
"Expecting member declaration"
I'm having trouble with these lines of code:
class MainActivity : ComponentActivity() {
var item = "None"
var price: Double = 16.99
var Quantity: Int = 2
println(Calculate(...
0
votes
1
answer
182
views
Why am I getting an "Uncaught SyntaxError" that leads to ChunkLoadError's and hydration error in next.js?
Hello, I have a next.js project that I just started. When I run npm run dev on Chrome, I get the following error in the Chrome console:
layout.js:160 Uncaught
SyntaxError: Invalid or unexpected token ...
0
votes
0
answers
129
views
error: expected ';', identifier or '(' before 'int' in header file
I keep getting the error in the title with the line extern int inp_arr[SIZE];. This is the full header file, queue.h
#ifndef SIZE
#define SIZE 4
#endif
#ifndef QUEUE_H
#define QUEUE_H
extern ...