20,625 questions
0
votes
0
answers
68
views
Running my app causes an AbstractMethodError
Everytime I try to run the app in Android Studio, this error appears.
java.lang.AbstractMethodError: Receiver class androidx.room.migration.bundle.FieldBundle$$serializer does not define or inherit ...
0
votes
0
answers
40
views
Cannot find UniProvider used by unidac10. Check the search path of package unidac10, try a clean rebuild, check the uses (implementation) sections
I’m trying to compile a Lazarus project that uses UniDAC, but Lazarus keeps failing with:
unidac10.pas(11,3) Error: Cannot find UniProvider used by unidac10.
Check the search path of package unidac10,...
4
votes
1
answer
99
views
Cannot declare instance members in an extension block with an unnamed receiver parameter
I am trying to declare an extension property for the int type in C# 14:
extension(int)
{
public int MyProperty => 13;
}
I am getting this compilation error:
'MyProperty': cannot declare ...
-5
votes
0
answers
106
views
What is the root of these errors in the build output of my VS2022 C++ project? [closed]
I have multiple .cpp files and .h files in VS2022, there are no red squiggly things under text (yeah I have no idea what to call them), and the code has forward decl. and no circular includes or ...
-1
votes
0
answers
25
views
Unity initiate issues
In my Unity Project when my game runs my world item prefab initiates sprites that don't show on my inventory display only the canvas that can't be seen on screen and it doesn't spawn any collectable ...
0
votes
1
answer
91
views
How to compile multiple .cpp files in a folder using visual studio code with MinGW?
I'm trying to compile my app using vs code and g++ on windows 11 without having to type all the files manually in the task.json file, but everytime I try to compile I get a fatal error :
cc1plus.exe: ...
1
vote
0
answers
47
views
Why does `in` not guard types to allow indexing an object? [duplicate]
The TypeScript handbook recommends using the in operator for narrowing.
Yet this doesn't work when the attribute name is variable.
type MyObj = {
a?: string;
b?: boolean;
c?: number;
};
...
1
vote
1
answer
160
views
The "gcc" command is either misspelled or could not be found
I’ve installed GCC (MinGW-w64) and the necessary VS Code extensions for C/C++ development.
However, when I try to run even a simple C program, I get the following error:
The "gcc" command is ...
3
votes
5
answers
260
views
Why does strlen(NULL) cause a compile-time warning, while my custom ft_strlen(NULL) only crashes at runtime?
I'm trying to reimplement the standard strlen function in C, and I'm closely replicating its behavior. I defined my function based on standard C declaration for strlen:
size_t ft_strlen(const char *s);...
-3
votes
1
answer
103
views
I apparently hit a Rust bug, what to do?
I apparently hit a Rust bug. The minimal example:
use std::cell::RefCell;
thread_local! {
static REQUESTS_CHECKER: RefCell<()> = RefCell::new(());
}
async fn a() {}
async fn b() {
...
0
votes
0
answers
62
views
Qt isn't detecting MSVC compiler while installation
My Qt isn't able to detect MSVC 2022 compiler only showing MINGW compiler in installation. I have Visual Studio with MSVC 2022 Latest and have all the necessary configuration like software ...
2
votes
1
answer
404
views
Kotlin compiler error in Android Studio after using "Replace with new library catalog declaration" quickfix
NOTE: Scroll to the bottom for the exact reproduction steps.
When I add the dependency com.squareup.okhttp3:okhttp:5.1.0 to build.gradle.kts (app module), apply the "Replace with new library ...
0
votes
1
answer
57
views
Problem in compiling c++ codes including FFmpeg libraries using em++ into WebAssembly
When I try to compile FFmpeg to WebAssebly I got wasm-ld-13: error: unknown file type: demux.o, I configure and install FFmpeg (ffmpeg-8.0) using:
emconfigure ./configure \
--prefix=$(pwd)/installed ...
0
votes
1
answer
86
views
Omnet++ Inet4.5 cannot resolve import
I'm new to OMNeT++ 6.1 with INET 4.5. I wanted to create a .msg file where I import the TagBase from inet.common.TagBase. I referenced inet4.5 in Properties -> Project References but it can't ...
0
votes
0
answers
71
views
Bundler option to use older Ruby headers?
I am running some old ruby code and it misbehaves with the latest versions of some dependencies. I can change the dependency version in the Gemfile and then ask bundle to install the dependencies.
The ...
2
votes
1
answer
72
views
Why in Erlang do i need to specify `-module` if it is equal to filename?
For example, if I create file jopa.erl with this code inside ...
-module(jopa).
...everything compiles without errors
However, if I put this code inside jopa.erl ...
-module(lol).
and try to compile....
2
votes
1
answer
56
views
GHC(Haskell) not picking up imports from makefile
I have been making a Haskell project that I want to continue on in C at some point through the FFI. I wanted to create a makefile to compile all the source with Clang for C and GHC for Haskell.
The ...
0
votes
1
answer
69
views
Flutter error while running without debugging
I made no changes in any but once i ran the app as usual it started giving me this error
: file:///C:/src/flutter/packages/flutter_tools/gradle/src/main/kotlin/DependencyVersionChecker.kt:97:99 ...
0
votes
0
answers
39
views
Can't install PyCuba
I am unable to use PyCuba, a Python interface for the multidimensional-integration library Cuba, on macOS 15.5. PyMultiNest, which requires PyCuba, is common for Bayesian analysis in the scientific ...
1
vote
1
answer
62
views
How to fix this lifetime-related error happen when using the Fn trait?
Context
I'm trying to learn Rust by just reading the book and working through the problems in Advent of Code (the 2024 edition). Just to make it harder, I decided to practice TDD while I do it.
To ...
3
votes
2
answers
110
views
How to instantiate std::vector using decltype?
This is my test code:
#include<vector>
#include<iostream>
#include<type_traits>
using std::vector;
using std::is_same_v;
using std::cout;
using std::endl;
int func()
{
struct ...
0
votes
1
answer
102
views
tradingview! Persistent Pine Script v6 error: Syntax error at input 'end of line without line continuation'
It affects any struct. I've cleaned chars, renamed, tried new scripts – still fails.
Any solutions? So frustrating.
//@version=6
indicator("TestStruct", overlay=true)
struct MyData
float ...
1
vote
2
answers
179
views
What is this compiler error trying to convey?
The test code is as shown below:
#include<vector>
#include<algorithm>
#include<iostream>
using std::vector;
using std::min;
using std::cout;
using std::endl;
int func()
{
vector&...
0
votes
0
answers
86
views
Compiling JS failed in Expo(React Native)
I am currently developing with Expo (React Native) and am getting errors as shown in the attached image.
I would like to debug it. How do developers who usually use React Native debug it? I would like ...
0
votes
0
answers
46
views
getting Cannot invoke "org.w3c.dom.Node.getLocalName()" because "node" is null in Android studio [duplicate]
I'm working on an Android project and encountering a strange error during the build process. The app fails while executing the :app:mergeDebugResources task with the following error:
I have tried with ...