Why aren't Java Collections remove methods generic?

Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remove(E o); Then, when you accidentally try to remove (for example) Set<String> instead of each...

"Expected a type" error pointing to the return type of a method

I've attempted to compile, but every time I do, one method throws a strange "expected a type" error. I have a method in the header: -(ANObject *)generateSomethingForSomethingElse:(NSString...

Could not find required file 'setup.bin'

I'm unable to build a Setup Project in VS2010, for a Windows Service project. It fails with this error: Could not find required file 'setup.bin' in 'C:\MyProject\Engine'. My environment is...

the name <...> does not exist in the namespace clr-namespace <...>

I have a small WPF application which used to compile just fine but is not anymore. I can't really say at which point it stopped building. It just worked fine one day, and the next it's not. Here's...

Extending XUnit Assert class with new asserts

I'm trying to extend the xUnit assert method by adding some selenium functionality namespace MyProject.Web.Specs.PageLibrary.Extensions { public static class AssertExtensions { ...

Getting a unique_ptr out of a priority queue

I am maintaining a set of unique_ptr instances in a priority_queue. At some point, I want to get the first element and remove it from the queue. However, this always produces a compiler error. See...

No acceptable C compiler found in $PATH when installing python

I'm trying to install a new Python environment on my shared hosting. I follow the steps written in this post: mkdir ~/src wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz tar -zxvf...

Visual Studio compiles fine, but it still shows red lines

I am using Visual Studio 2012 and it was working all fine until I started observing some funny behavior. When I open my code it shows red Underlines which we usually see when there is an error...

Unable to compile any C++ Code

Whenever I try to compile a C++ file with IOStream , I get this error.. I've tried reinstalling GCC G++ (both 4.6 and 4.9) AND cpp.. It hasnt helped (or maybe I didnt do it the right way). How do...

How to create a custom controls on a dialog based MFC project (visual studio 2012)

(Sorry for my poor English) I'm trying to create a custom control on dialog based MFC project (visual studio 2012). This is the setting when i create MFC Dialog based project : MFC App Wizard...

In typescript, how to do import merge from "lodash/merge"

With es6, I can import just one function from a library to minimise the whole bundle, like: import merge from "lodash/merge" However, in typescript, the above sentence will cause a compile error:...

error LNK2001: unresolved external symbol PyInit_

I am trying to follow this tutorial to be abe to use C code in python. http://dfm.io/posts/python-c-extensions/ here is the gist...

Coroutine (WaitForSeconds()) in "OnCollisionEnter()" gives compile error

I'm trying to make a platformer game and I want to disable gravity of platforms after x seconds. But it gives a compile error that it can't be used since void isn't an interior interface...

"Pointer from integer/integer from pointer without a cast" issues

This question is meant to be a FAQ entry for all initialization/assignment between integer and pointer issues. I want to do write code where a pointer is set to a specific memory address, for...

Kotlin compile "ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher." but no kotlin_version in build.gradle?

I tried cloning and building this project, https://github.com/mitrejcevski/ui-testing, but upon opening it in Android Studio, I get the following build error: ERROR: The Android Gradle plugin...

ng update --all says 'Repository is not clean' even though git commit

I'm trying to update my Angular with ng update --all as in this question stated [https://stackoverflow.com/questions/56419456/cant-find-compiler-ngcc-module-after-upgrading-angular-and-project],...

clang-tidy with CMake and an embedded target

The goal here to help people catch some bugs on their embedded systems when developing with C++. As part of this I'm trying to get clang-tidy to work for small embedded targets. I'm trying setup...

CSS and Bootstrap not loading in Rails 6 app when deployed to Heroku

I have a Rails 6 project with the default webpacker. I loaded bootstrap and jQuery by followign a tutorial and everything works locally. Here's the structure of the relevant...

Weblogic 12.2.1 Application server JDK 11 support

Creating a new domain in Weblogic 12.2.1 server with Oracle JDK 11 fails What we have tried: As JDK 8 is already in End of life, We have upgraded our java servlet based web application to compile...

GoLand (JetBrains) shows error message "Unresolved Reference". But Code compiles and runs

I am writing a project using the Go language with GoLand IDE by Jetbrains. While writing the code, GoLand shows me an error message such as "unresolved reference" when the reference do exist and...

Java 11 : Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile failed.: NullPointerException

I am upgrading my project from java 8 to java 11. I'm able to build and deploy it with java11, spring 5 dependencies but when I am adding module-info.java into my project I am getting below error...

clang-tidy - ignore third party headers code

I'm using CMake for my project and I wanted to introduce clang-tidy checks to the project. I'm using for this purpose CMAKE_CXX_CLANG_TIDY and .clang-tidy file for checks setup. I wanted to use...

Angular Compile Error: NG6001: The class is listed in the declarations of the NgModule 'AppModule', but is not a directive, a component, or a pipe

App fails to compile with error error NG6001: The class NavigationMenuItemComponent is listed in the declarations of the NgModule AppModule, but is not a directive, a component, or a pipe....

Assets file obj\project.assets.json doesn't have a target ".NETFramework,Version=v4.8/win7-x86" (NETSDK1047)

After I upgrade my project files to new project file format, my executable client project (.exe) throw the error when I compile it with msbuild: error NETSDK1047: Assets file...

pyenv configure: error: C compiler cannot create executables

I am trying to install multiple versions of Python on my laptop running MacOS Big Sur v11.1. I initially installed xcode command line tools, homebrew, and python via instructions here xcode-select...

I am getting this error while implementing cuberto liquid swipe animation -Could not GET 'https://maven.pkg.github.com/Cuberto/liquid-swipe-android/

I was implementing the cuberto liquid swipe animation in my app and after adding the github.properties and the dependencies as I added the code to build.gradle inside the app module that will be...

Uncaught Error: JIT compiler unavailable in Angular 12

For a few days I have a problem with a certain error: Uncaught Error: JIT compiler unavailable. After upgrading angular from version 8 to 12 there was a problem that I run the ng build --prod...

VSCode : Unable to start debugging. Unexpected GDB output from the command -environment-cd "Path" . No such file or directory

I've just started to use VSCode, I meet this error and try some ways to fix but it doesn't work. This is my launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view...

Strange preprocessor warnings

Having 2 strange warnings during auto generation enum + string items... EnumItems.h (2 times included header to build enum and string array + possibility to have multiple enums and single...

Building Assimp with Code::Blocks and MinGW

I am trying to build Assimp with Code::Blocks and MinGW as a static library. I have downloaded the latest available version (5.0.1) and created a makefile for Code::Blocks using cmake-gui. I am...