querydsl mongodb does not generate Q-Classes after upgrade to Spring boot 3

Observed vs. expected behavior
Previously on Spring boot 2.7.17 everything worked fine and the classes were generated as expected. However now I try to upgrade the project to Spring Boot 3 and Spring Cloud 2022.0.3 and querydsl is not working anymore.
The issue is only related to mongodb.
Steps to reproduce
Try generating Q-Classes in the environment describe below
Environment
Spring Boot 3.0.13
Spring Cloud 2022.0.3
Java 17.0.7
Gradle 8.5 (gradle wrapper)
Querydsl version: 5.0.0
Querydsl module: querydsl-mongodb
Database: mongodb
JDK: 17
Additional details
We are using Lombok and jakarta annotation API additionally in the annotation processors
And we are using GraphQL Codegen as well.

I also have this problem, the Q class is not generated. This is very fatal, forcing me to temporarily give up using Querydsl. I hope there is a solution to save this bad situation.
environment:
springboot 3.2.0
kotlin 1.9.20
gradle 8.5
openjdk 20
querydsl 5.0.0
h2database 2.2.224
IntelliJ IDEA 2023.3.2 (Ultimate Edition)
Here are the relevant parts of build.gradle.kts:
plugins {
    id("org.springframework.boot") version "3.2.0"
    id("io.spring.dependency-management") version "1.1.4"
    kotlin("jvm") version "1.9.20"
    kotlin("plugin.spring") version "1.9.20"
    kotlin("plugin.jpa") version "1.9.20"
}
dependencies {
    implementation("org.springframework.boot:spring-boot-starter-actuator")
    implementation("org.springframework.boot:spring-boot-starter-data-jpa")
    implementation("org.springframework.boot:spring-boot-starter-webflux")
    implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
    implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
    implementation("org.jetbrains.kotlin:kotlin-reflect")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
    implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta")
    annotationProcessor("com.querydsl:querydsl-apt:5.0.0:jakarta")
    annotationProcessor("org.springframework.boot:spring-boot-starter-data-jpa")
    runtimeOnly("com.h2database:h2")
}

Phenomenon:

There are no errors in the gradle build phase
The following error will appear when starting in idea:

2023-12-26T16:45:26.479+08:00 ERROR 21926 --- [job-server] [  restartedMain] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jobServiceImpl' defined in file [/Users/liucheng/it/lc/lc-job/build/classes/kotlin/main/com/lc/job/domain/service/impl/JobServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'jobRepository' defined in com.lc.job.domain.repository.JobRepository defined in @EnableJpaRepositories declared on LcJobApplication: Did not find a query class com.lc.job.domain.model.QJobModel for domain class com.lc.job.domain.model.JobModel
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:802) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:241) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1193) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:563) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:523) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:946) ~[spring-context-6.1.1.jar:6.1.1]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616) ~[spring-context-6.1.1.jar:6.1.1]
	at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:66) ~[spring-boot-3.2.0.jar:3.2.0]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:753) ~[spring-boot-3.2.0.jar:3.2.0]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:455) ~[spring-boot-3.2.0.jar:3.2.0]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:323) ~[spring-boot-3.2.0.jar:3.2.0]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1342) ~[spring-boot-3.2.0.jar:3.2.0]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1331) ~[spring-boot-3.2.0.jar:3.2.0]
	at com.lc.job.LcJobApplicationKt.main(LcJobApplication.kt:21) ~[main/:na]
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[na:na]
	at java.base/java.lang.reflect.Method.invoke(Method.java:578) ~[na:na]
	at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50) ~[spring-boot-devtools-3.2.0.jar:3.2.0]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobRepository' defined in com.lc.job.domain.repository.JobRepository defined in @EnableJpaRepositories declared on LcJobApplication: Did not find a query class com.lc.job.domain.model.QJobModel for domain class com.lc.job.domain.model.JobModel
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1775) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:601) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:523) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1441) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1348) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:911) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789) ~[spring-beans-6.1.1.jar:6.1.1]
	... 22 common frames omitted
Caused by: java.lang.IllegalArgumentException: Did not find a query class com.lc.job.domain.model.QJobModel for domain class com.lc.job.domain.model.JobModel
	at org.springframework.data.querydsl.SimpleEntityPathResolver.createPath(SimpleEntityPathResolver.java:78) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.jpa.repository.support.QuerydslJpaPredicateExecutor.<init>(QuerydslJpaPredicateExecutor.java:97) ~[spring-data-jpa-3.2.0.jar:3.2.0]
	at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getRepositoryFragments(JpaRepositoryFactory.java:282) ~[spring-data-jpa-3.2.0.jar:3.2.0]
	at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getRepositoryFragments(JpaRepositoryFactory.java:252) ~[spring-data-jpa-3.2.0.jar:3.2.0]
	at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryComposition(RepositoryFactorySupport.java:428) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:293) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:279) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.util.Lazy.getNullable(Lazy.java:135) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.util.Lazy.get(Lazy.java:113) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:285) ~[spring-data-commons-3.2.0.jar:3.2.0]
	at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:132) ~[spring-data-jpa-3.2.0.jar:3.2.0]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1822) ~[spring-beans-6.1.1.jar:6.1.1]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1771) ~[spring-beans-6.1.1.jar:6.1.1]
	... 33 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.lc.job.domain.model.QJobModel
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
	at java.base/java.lang.Class.forName0(Native Method) ~[na:na]
	at java.base/java.lang.Class.forName(Class.java:496) ~[na:na]
	at java.base/java.lang.Class.forName(Class.java:475) ~[na:na]
	at org.springframework.boot.devtools.restart.classloader.RestartClassLoader.loadClass(RestartClassLoader.java:121) ~[spring-boot-devtools-3.2.0.jar:3.2.0]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
	at java.base/java.lang.Class.forName0(Native Method) ~[na:na]
	at java.base/java.lang.Class.forName(Class.java:496) ~[na:na]
	at java.base/java.lang.Class.forName(Class.java:475) ~[na:na]
	at org.springframework.util.ClassUtils.forName(ClassUtils.java:304) ~[spring-core-6.1.1.jar:6.1.1]
	at org.springframework.data.querydsl.SimpleEntityPathResolver.createPath(SimpleEntityPathResolver.java:71) ~[spring-data-commons-3.2.0.jar:3.2.0]
	... 45 common frames omitted

Very good news, I solved this problem and made the following changes based on the build.gradle.kts I posted earlier:
1. Add kapt plug-in
plugins {
    ...
    kotlin("kapt") version "1.9.22"
}

2. Use kapt to build, select jakarta, originally jpa
dependencies {
    implementation("org.springframework.boot:spring-boot-starter-actuator")
    implementation("org.springframework.boot:spring-boot-starter-data-jpa")
    implementation("org.springframework.boot:spring-boot-starter-webflux")
    implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
    implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
    implementation("org.jetbrains.kotlin:kotlin-reflect")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
    implementation("com.querydsl:querydsl-jpa:5.0.0:jakarta")
  // kapt("com.querydsl:querydsl-apt:5.0.0:jpa")
    kapt("com.querydsl:querydsl-apt:5.0.0:jakarta")
    runtimeOnly("com.h2database:h2")
}

After recompiling and starting, everything is normal.

That is nice for jpa, means for postgres users, however on mongoDB this does not help! There is no jakarta classifier.. here the relevant parts of my build.gradle:
plugins {
    id 'java'
    id 'org.springframework.boot' version '3.0.13'
    id 'io.spring.dependency-management' version '1.1.4'
    id "io.github.kobylynskyi.graphql.codegen" version "5.9.0"
    id 'jacoco'
}

...

ext {
    set('springCloudVersion', '2022.0.3')
    querydslVersion = '5.0.0'
    lombokVersion = '1.18.30'
    set('testcontainersVersion', "1.19.0")
}

...

dependencies {
   implementation('org.springframework.boot:spring-boot-starter-data-mongodb')

  ...

    // https://mvnrepository.com/artifact/jakarta.persistence/jakarta.persistence-api
    implementation("jakarta.persistence:jakarta.persistence-api:3.1.0")
    implementation("jakarta.annotation:jakarta.annotation-api")

    implementation("com.querydsl:querydsl-mongodb:${querydslVersion}")
    compileOnly "com.querydsl:querydsl-apt:${querydslVersion}:jakarta"
    compileOnly('org.springframework.boot:spring-boot-configuration-processor')

    annotationProcessor(
            "com.querydsl:querydsl-apt:${querydslVersion}:jakarta",
            "jakarta.annotation:jakarta.annotation-api",
            "jakarta.persistence:jakarta.persistence-api:3.1.0",
            "org.projectlombok:lombok:${lombokVersion}",
    )

....
}

The Q-Classes for my Postgres entities are getting generated, however not the ones for mongodb entities

Is it easy to post Mongdb-related entity classes?

Sure, here one of them:

import com.querydsl.core.annotations.QueryEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@Getter
@NoArgsConstructor
@QueryEntity
public class Provider {

    private ProviderType type;

    /**
     * id of the original activity assigned by the provider
     */
    private String externalId;
}

And here the generated one from the version as we used spring 2.7:

import static com.querydsl.core.types.PathMetadataFactory.*;

import com.querydsl.core.types.dsl.*;

import com.querydsl.core.types.PathMetadata;
import javax.annotation.processing.Generated;
import com.querydsl.core.types.Path;

/**
 * QProvider is a Querydsl query type for Provider
 */
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QProvider extends EntityPathBase<Provider> {

    private static final long serialVersionUID = -2130270020L;

    public static final QProvider provider = new QProvider("provider");

    public final StringPath externalId = createString("externalId");

    public final EnumPath<ProviderType> type = createEnum("type", ProviderType.class);

    public QProvider(String variable) {
        super(Provider.class, forVariable(variable));
    }

    public QProvider(Path<? extends Provider> path) {
        super(path.getType(), path.getMetadata());
    }

    public QProvider(PathMetadata metadata) {
        super(Provider.class, metadata);
    }

}

Think I've found the problem, have to add the "@Entity" annotation to the classes I need a Q-Class of.. Previously it seems that "@QueryEntity" was fine.

Think I've found the problem, have to add the @Entity annotation to the classes I need a Q-Class of.. Previously it seems that @QueryEntity was fine.

Very correct, I was just about to say this. I have always used javax.persistence.@Entity. Of course, now in openjdk 21, I use jakarta.persistence.@Entity.

reopen

Sorry, but I have to reopen this issue. Since the @jakarta.persistence.Entity annotation makes a lot of trouble with mongodb. Before that, an @jakarta.persistence.Id Annotation was not neccessary, now it is, however we have usecases where no ID is needed and where it makes trouble in some points.
i.e. we have a Class A (@Entity) which can contain some more complex classes i.e. Lists of Datapoints (also @Entity) or complex Datatypes consisting of multiple interger fields. In MongoDB this complex data should be formed to a JSON document i.e.:

{

  name: classA,

  id: 1234,

  cadenceData: {

    min: 1

    mean: 2

    max: 3

  },

  datapoints: [

    { date: XXX, value: 1.2 },

    { date: XXX, value: 1.3 }

    ...

  ]

}

Now you may see, it is not necessary to have an ID for the cadenceData or for each datapoint, since those are not separated tables as it would be in a SQL based DB.
So still wondering how to use queryDSL with gradle and Spring boot 3.0.

As you said, I think it's a relational and non-relational design conflict, and I think the easiest solution right now is to make a compromise between DSL and Mongodb, for example, using @jakarta.persistence.Id to fit the needs of dsl, but actually ignores the existence of this field.

Thats what I've already tried, however it seems that on this road cascading problems are coming up.. because the next problem after that are JDBC type errors on subclasses used in an Entity. May on of the Maintainers could give a short hint what to do here?

There appears to be no classifier jakarta for querydsl-mongodb

I also have this issue. There's more problems with @Entity then just the @id field. It doesn't work with various other types like List<String>.
Luckily, I was able to find a work-around that works with Spring Boot 3.x. The only drawback here is that the mysema plugin is from 2014 :(, but better then nothing lol.
			<plugin>
				<groupId>com.mysema.maven</groupId>
				<artifactId>apt-maven-plugin</artifactId>
				<version>1.1.3</version>
				<executions>
					<execution>
						<goals>
							<goal>process</goal>
						</goals>
						<configuration>
							<outputDirectory>target/generated-sources/java</outputDirectory>
							<processor>org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor</processor>
						</configuration>
					</execution>
				</executions>
			</plugin>

I also have this issue. There's more problems with @Entity then just the @id field. It doesn't work with various other types like List<String>.
Luckily, I was able to find a work-around that works with Spring Boot 3.x. The only drawback here is that the mysema plugin is from 2014 :(, but better then nothing lol.
<plugin>
	<groupId>com.mysema.maven</groupId>
	<artifactId>apt-maven-plugin</artifactId>
	<version>1.1.3</version>
	<executions>
		<execution>
			<goals>
				<goal>process</goal>
			</goals>
			<configuration>
				<outputDirectory>target/generated-sources/annotations</outputDirectory>
				<processor>org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor</processor>
			</configuration>
		</execution>
	</executions>
</plugin>

Get ready for things to break once Maven 4 releases, can't believe there is no update for generating Q classes for MongoDB types, even though querydsl clearly supports it.

I also have this issue. There's more problems with @Entity then just the @id field. It doesn't work with various other types like List<String>.
Luckily, I was able to find a work-around that works with Spring Boot 3.x. The only drawback here is that the mysema plugin is from 2014 :(, but better then nothing lol.
<plugin>
	<groupId>com.mysema.maven</groupId>
	<artifactId>apt-maven-plugin</artifactId>
	<version>1.1.3</version>
	<executions>
		<execution>
			<goals>
				<goal>process</goal>
			</goals>
			<configuration>
				<outputDirectory>target/generated-sources/annotations</outputDirectory>
				<processor>org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor</processor>
			</configuration>
		</execution>
	</executions>
</plugin>

Get ready for things to break once Maven 4 releases, can't believe there is no update for generating Q classes for MongoDB types, even though querydsl clearly supports it.

@rayman245 shrug. It works with the Java 21 / Spring Boot 3.x.
I posted that workaround in March. For some reason, when I tried to run it today, I had to pull my hair out before figuring out that it needs to point to target/generated-sources/java now <== java instead of annotations folder. I know for a fact it was working in "annotations" when I posted that in March, but that was several Spring Boots and several Intellijs and several Mavens and a bunch of dependency upgrades ago. So who knows what changed? Maybe it was a fluke that I got it to work under the annotations folder back then.
I'm not losing sleep over Maven 4. If they're dropping old plugins, it'll be YEARS, if ever that Spring Boot will require it. I have a small Gradle project that I keep the dependencies up to date, and I can't upgrade beyond Gradle 8.9 because the hand full of dependencies I use haven't bothered to upgrade deprecated Gradle syntax.
Regardless, I had forgotten about this. Seems concerning that nobody has looked at this for almost a year now.
Seems like the project is dead, no code updates in like 5+ months :(. I wonder what people are using if not this. Raw queries are janky imo.

@rayman245 Hmm ... seems like it was originally abandoned in 2019 then it was taken over by some folks and in late 2023 was abandoned again. Greeeattt :).

@SledgeHammer01 Yeah I have been using the apt-maven-plugin plugin for years now, seemed to working fine until recently upgraded my application to the latest Spring Boot and maven started throwing the warning.
I am using the following configuration, if you need it....Its been working for me, maybe might solve yours.
<plugin>
      <groupId>com.mysema.maven</groupId>
      <artifactId>apt-maven-plugin</artifactId>
      <version>1.1.3</version>
      <executions>
          <execution>
             <goals>
                  <goal>process</goal>
             </goals>
             <configuration>
                   <outputDirectory>target/generated-sources/java</outputDirectory>
                   <processor>org.springframework.data.mongodb.repository.support.MongoAnnotationProcessor</processor>
             </configuration>
          </execution>
     </executions>
</plugin>

@rayman245 I haven't tried it yet, but https://github.com/robtha/apt-maven-plugin is an updated fork.

@rayman245 Hmm ... seems like it was originally abandoned in 2019 then it was taken over by some folks and in late 2023 was abandoned again. Greeeattt :).

I think QueryDsl is most probably going to be inactive or dead.... Saw a fork that seems to be continuing to have regular PR commits and updates.
Thinking if should time to port over..
https://github.com/OpenFeign/querydsl


undefined reference to RestClient::Connection::Connection(std::string const&)

Hello everybody!
I am trying to use this library, but I need some help from you.
Here is the code I am trying to build.

#include
#include "connection.h"
#include "restclient.h"
int main(){
RestClient::Response r = RestClient::get("www.google.es");
std::cout << r.code;
RestClient::init();
RestClient::Connection* conn = new RestClient::Connection("www.google.es");
return 0;
}
The problem is that there is no problem using the  RestClient::get method, but however I cannot build any object of the RestClient::Connection class, so I cannot do the request I want.
The request I want to do needs to have a kind of special header, so I cannot do a normal get request to a single url.
Anybody know how could I fix it? I read it in the documentation and I have tried to check in the test, in order to follow the way it is done there, but is not running neither. I have included the path for the headers and added the library -l restclient-cpp, but I am wondering if the fail could be there, and it is not foud because of there is a different library wich contains it.

Wrong forum/project. This is gflags, no REST client library.


Update member list search filters

What's New
Add a dropdown button to select member filters, replacing previous implementation of one link per filter.
Add filters for graduation years of the 5 most recent years.
Closes #205

also, re: "Do we want years going back all the way to 2007"
one possible approach that avoids an arbitrary year cutoff is if you could somehow force the dropdown to a maximum length, and allow it to be scrollable. i have no idea how one would go about that, but it'd at least hide the less-relevant options better

@ReubenRosenberg feel free to take a look at this when you get a chance, lmk what you think.


Merge v1.x into master

HAd to manually solve a bunch of conflicts, let's see what the CI says.

CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/323/

CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/324/

Here we go again: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/325/
Note: some Windows bots will fail because we dropped support for older Windows and VS versions.

More fixes...
CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/326/

We are green (on Unix) can any @libuv/collaborators PTAL? Also, something seems wrong with the Windows bots... who can we ping about that?

Also, something seems wrong with the Windows bots... who can we ping about that?

@joaocgreis or @jbergstroem maybe?

Thanks, Colin!

Looks good on z/OS :-)

Windows failure is because the label vs-set-2015 is missing in vcbuild.bat, was probably an oversight in the merge. I did not test, but this should fix it:
--- a/vcbuild.bat
+++ b/vcbuild.bat
@@ -64,6 +64,7 @@ goto select-target

 @rem Look for Visual Studio 2015
+:vs-set-2015
 if not defined VS140COMNTOOLS goto vc-set-notfound
 if not exist "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-notfound
 call "%VS140COMNTOOLS%\..\..\vc\vcvarsall.bat" %vs_toolset%

Thanks @joaocgreis!! Good catch, I'll update and rerun the CI later today.

CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/331/

Damn, I hope this is the last one: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/332/

Sigh, 2 tests are failing due to the API changes in fs. I'll push fixes and silently run the CI in order to avoid more noise here...

Finally! Windows went Hulk 💚  https://ci.nodejs.org/view/libuv/job/libuv-test-commit/335/
@libuv/collaborators can you PTAL again? The commits to be looked at are the ones after "Merge branch 'v1.x' into merge-v1". Thanks!

LGTM, great work!

Thanks for the reviews, landed everything!


Resultset Table - Default sorting column

The ResultsetTable must support this default sorting feature. For example, even when you handle the sorting order from the server side, there needs to be a way to notify the user that the table is defaultly sorted with a specific column. Currently, there is no visual indication in the UI.
#1441

We discussed this with the rest of the team and we concluded that we will not add this feature.
The arrow indicator does not only indicate the order of the items in the table, it also indicates the user action.
Without the user action, we should not add the order indicator.

https://datatables.net/examples/basic_init/table_sorting.html


Let SecretStrs be value equals

Change Summary
As discussed in the issue, this PR adds a __eq__ method for SecretStr that compares the secret value such that SecretStr('a') == SecretStr('a') and SecretStr('a') != SecretStr('b')
Related issue number
#1078
Checklist

[x] Unit tests for the changes exist
[x] Tests pass on CI and coverage remains at 100%
[x] Documentation reflects the changes where applicable
[x] changes/<pull request or issue id>-<github username>.md file added describing change
(see changes/README.md for details)

I couldnt find a place that needed documentation updating but correct me if I'm wrong

thanks a lot.


Dynamic page component loading

How to load page components by component name stored in variable or returned by function?
TemplateSyntaxError at /
'unicorn' tag's argument should be in quotes

views.py:
class HomeView(TemplateView):
    http_method_names: Final[list[str]] = ['get', 'head', 'options']
    template_name: Final[str] = 'base.html'
    extra_context: ClassVar[dict[str, str]] = {'page_component': 'home'}

home_view = login_required(HomeView.as_view())

base.html:
{% load static unicorn %}<!doctype html>
<html class="fixed">
<head>
    <meta charset="UTF-8">
... some meta here
    {% unicorn_scripts %}
</head>
<body>
{% csrf_token %}
{% unicorn page_component %}
... some js-scripts here
</body>
</html>

Traceback (most recent call last):
  File "/Users/lorddaedra/Library/Caches/pypoetry/virtualenvs/core--hfFaf5y-py3.9/lib/python3.9/site-packages/django_unicorn/templatetags/unicorn.py", line 51, in unicorn
    raise template.TemplateSyntaxError(

Exception Type: TemplateSyntaxError at /
Exception Value: 'unicorn' tag's argument should be in quotes

So my idea: set page_component on view level or set dict with pairs url_pattern (or view name): page_component and load first level components dynamically for all pages.

I suggest to add this feature:
    "DEFAULT_COMPONENT_NAME": '',  # empty str by default (same behaviour) or in format 'some.module:function', function MUST accept view
}```

for example,

settings.py:

UNICORN = {
"DEFAULT_COMPONENT_NAME_GETTER": 'frontend.utils:get_default_component_name',
}
base.html:

{% unicorn %}

urls.py:

path('', views.home_view, name='home'),

frontend.utils.py:

get_default_component_name(view):
return view.request.resolver_match.url_name
Returns 'home' if `{% unicorn %}` is used in `home_view` template so it's equal to `{% unicorn 'home' %}`

(It should work because of view is attached by django.views.generic.base.ContextMixin to context_data so you can get `view` from context in template layer)

Benefits for users: users can create url patterns with names related to page component names and use single base.html for all pages.

This is an interesting idea! Let me think about it and see what makes the most sense to me. I should have time in a day or two to try out some ideas.

My initial reactions:

I explicitly check for quotes around the component name. I might be able to remove that logic and check the context if it doesn't have quotes to resolve the variable.
The DEFAULT_COMPONENT_NAME_GETTER setting feels to me like it's removing some of the explicitness. Although, I do like that this be an opt-in feature -- just not sure it's worth the complexity in code.

One other thought: another approach for this same problem would be something like https://github.com/adamghill/django-unicorn/issues/179, right?

I like idea of dynamic components. Something like https://v3.vuejs.org/api/built-in-components.html#component
I think this is required feature for some complex projects.

About DEFAULT_COMPONENT_NAME_GETTER - it's just one of the possible implementations. May be it's not the best way to do it. It just allows to map url patterns/views to page components without creating page templates for views.

About problem. I think it's about how to implement root node of components tree, page router and page components (next to root node).
We may use django default router (urls.py, urlpatterns), why not. But we would like to use components instead of traditional views&templates because of we can reload it without full page refresh.
So if we will try to combine views with components at the end we will see that we do not need templates and move all things to page components. And our templates will be something like
{% extends "base.html" %}{% load unicorn %}

{% block body %}
    {% unicorn 'home' %}
{% endblock %}

So just single main/base/home template and helper templates for views. And all other things inside components/component templates.
May be we can somehow do not create these view templates at all and create views directly from components. So, yes, #179 is about it. Another implementation.

I think this is also related topic https://github.com/adamghill/django-unicorn/issues/183


Dynamically add state vars

Currently all state vars need to be defined as fields within the State class. Sometimes it is useful to dynamically add vars after the state class is already defined.
Minimally this requires:

logic to set all the relevant state var info: https://github.com/pynecone-io/pynecone/blob/main/pynecone/state.py#L114:

        for prop in cls.base_vars.values():
            if not utils._issubclass(prop.type_, utils.StateVar):
                raise TypeError(
                    "State vars must be primitive Python types, "
                    "Plotly figures, Pandas dataframes, "
                    "or subclasses of pc.Base. "
                    f'Found var "{prop.name}" with type {prop.type_}.'
                )
            cls._set_var(prop)
            cls._create_setter(prop)
            cls._set_default_value(prop)

adding it as a Pydantic field

Then we should be able to do something like
State.add_var(pc.BaseVar(name="myvar", type_="str"))

I'll have a look at this issue.
Since I have a use case that would benefit from it, it should make testing it a bit easier.


Edge tooltip position is not working as expected

I am facing an issue where am getting the correct position of tooptip for Nodes but for edges it is showing the tooltip on top left corner of the screen.
While looking into the jQuery qtip library, jquery.qtip.js, i have found that for egdes the "target" option of "position" is an array of two elements [0,0] due to which tooltip appearing on the top left of the screen whereas for Nodes it's not an array hence correct position of tooptip.
This seems to be the possible reason of this problem.
Another observation is that, in cytoscape-qtip.js library, in updateposition function there is a variable used "isNode", which make this function and position setting for Nodes only and not for any other element.
I have checked the Demo example at the following link:
https://github.com/cytoscape/cytoscape.js-qtip
Using the cytoscape-qtip.js file from there, i can see the tooltip bubble box at correct position for edges.
But, i am getting the tooltip bubble box at [0,0] location i.e top left corner of screen as well. So there are 2 tooltip bubble box appearing at the same time, one at the correct mouse location on edge, other one at the [0,0] location i.e top left corner of screen.
when i comment out the following line in cytoscape-qtip.js, the problem of extra tooltip bubble box at [0,0] location is resolved:
opts.position.target = [0, 0]; // Line no. 201
Could any help, how to proceed on this.
Thanks & Regards.

I have found the solution for this issue.
Could anybody let me know how can i provide the solution authentically for this project! So that fix can be published for everybody.
Thanks & Regards.

The demo works for edges.  We can look into issues only if you can provide a reproducible test case that fails.
If you can come up with a valid test case that fails, then post it here.  Otherwise, just follow the docs.

Here is the example which i am working upon:
It consist of compound nodes, where edges(if any) are there between child nodes only.
index.html
index.txt
code.js
code.txt
Following zip file includes all the libraries which i have used:
libraries.zip
Snapshot of the diagram with multiple qtip bubble for edge:

Hello Max,
Hope you were able to get my code attached in my previous comment and run it.
Please let me know if there any mistake in my code.
Thanks & Regards.
Nitin


kie-issues#237: Implement DMN 1.4 Boxed iterator expression

Closes: https://github.com/apache/incubator-kie-issues/issues/237
Closes: https://github.com/apache/incubator-kie-issues/issues/238
Both tickets were made together because the iterator expression covers both as it is in the spec. See <IP_ADDRESS> Boxed iterator

Hi @ljmotta  @tiagobento @danielzhe
I've just tested this new functionality and I'm getting the following exception:
{   "name": "Error",   "message": "IteratorExpression can't have more than 3 rows.",   "stack": "Error: IteratorExpression can't have more than 3 rows.     at child (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4951260)     at aa (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4331465)     at Gs (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4383558)     at Dl (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4370837)     at Sl (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4370765)     at kl (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4370628)     at _l (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4367615)     at https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4317387     at t.unstable_runWithPriority (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4533910)     at Yr (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4317164)     at Kr (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4317332)     at $r (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4317267)     at Ie (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4388077)     at Qt (https://business-modeller-app.eu.ngrok.io/new-dmn-editor-envelope.js:2:4295958)" }
https://github.com/apache/incubator-kie-tools/assets/138981666/cdd63bdb-4bb4-4387-93a7-e06c2b977283
Build Version:
0.0.0 (daily-dev) @ 236931cf7a3299ac81d1fd84c7228cb1033496ae (2024-04-18 08:31:17)
Kogito Runtimes Version:
999-20240414-SNAPSHOT
Quarkus Version:
3.2.10.Final
Dev deployments Base image URL:
quay.io/kie-tools/dev-deployment-base-image:daily-dev
Dev deployments Kogito Quarkus Blank App image URL:
quay.io/kie-tools/dev-deployment-kogito-quarkus-blank-app-image:daily-dev
Dev deployments DMN Form webapp image URL:
quay.io/kie-tools/dev-deployment-dmn-form-webapp-image:daily-dev
Extended Services version:
0.0.0
Commit SHA:
236931cf7a
Google Chrome Version 123.0.6312.123 (Official Build) (64-bit) in Windows 10

@jaimeizuz Ty for your report. It got broken in the code review, I'm already fixing it.


Fixed #22383 -- Added support for HTML5 required attribute on required form fields.

https://code.djangoproject.com/ticket/22383
Same as PR #6341 but without the deprecation cycle.

Please check the docs for rendered form examples that might need to be updated, e.g. docs/topics/forms/index.txt.

I have addressed the concern. All additional feedback is welcome. Thanks.

Should explain how this works for formsets somewhere. Maybe here and elsewhere?

Added some text to ref/forms/api.txt  and to topics/forms/formsets.txt. Please let me know what you think and if this addresses what you had in mind.

Please check the docs for rendered form examples that might need to be updated, e.g. docs/topics/forms/index.txt.

Done. This resulted in changes to:

refs/forms/api.txt
refs/forms/fields.txt
refs/forms/widgets.txt
topics/forms/index.txt

merged in ec6121693f112ae33b653b4364e812722d2eb567, thanks!


Add ADFS / Azure Stack Support

On-prem active directory instance support
Requested by CLI / PSH for .NET and Python

Is  this task about creating an active directory instance before authenticating? (possibly on parallel, then using it when possible)? What other requirements are here?

@sadasant this is the investigation @g2vinay is driving, from the identity v-team standup.

@g2vinay - can you update here with the results of the investigation of the latest source?


Updates the list of supported HTTP methods

.. in the README

Shouldnt HEAD be supported acc. to RFC 2616?

the methods GET and HEAD MUST be supported by all general-purpose servers.
All other methods are OPTIONAL

http://www.w3.org/Protocols/rfc2616/rfc2616.txt

Ah, I see it's added now.  Great!


Incorporate all public methods of KnapsackSolver into Java wrapper

I want to use full features of this great knapsack solver from JVM, therefore I modify the Java SWIG interface referring to #1097.
Additional methods are renamed to lower camel case.

Thanks


[$250] Key navigation - Onboarding task can be dismissed after going to search dialog

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.10-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:

Create a new account
On the Onboarding task Press CMD+K (CTRL+K for Windows) to open the search page.
Go to Self DM
Notice onboarding task is dismissed

Expected Result:
Onboarding task is not dismissed
Actual Result:
Onboarding task is dismissed
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/user-attachments/assets/57fb7900-7dc7-4207-9002-5fc2986801e4
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01eeceae077853a6ac
Upwork Job ID:<PHONE_NUMBER>136149880
Last Price Increase: 2024-07-22

Issue OwnerCurrent Issue Owner: @hungvu193

@slafortune  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

We think that this bug might be related to vip-vsp

🎀 👀 🎀

@Krishna2323 's proposal looks good. But I'm not sure if we want to fix this bug.

Oh thanks. That's good to know 👍

little bump @youssef-lr for the above discussion 🍵

little bump @youssef-lr, this one will need your attention 🙇

I think we can close this in favor of this issue which is intended to find a general solution for this https://github.com/Expensify/App/issues/44401


Add list-timers to systemd user commands

This is useful for listing "cron like" systemd jobs

Hey there -- I really appreciate the contribution.
Cheers,
Robby


Update nf-dwrite_2-idwritefontfallbackbuilder-addmappings.md

Elaborate on the usage of this function, and the relationship between it and GetSystemFontFallback (which currently isn't mentioned here, even though it was one of the reasons I specifically added that API, for composition of large font fallback definitions).

@fdwr : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@stevewhims : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Images of different size and colour for selected and not selected items in the paging menu, animated.

Hello,
Is it possible to do something similar to what is below in gif?
So, basically, to menu items add images of

different colour for a selected and non-selected state, or alternatively one image but with ability to change it's tintColor depending on whether selected or not

different size (or change size) for selected and not selected selected state.

And apply animation when moving form item to item.
Many thanks for the advice.

Unfortunately it doesn't allow to apply the animation for now. What this library has is two images like below which are non selected one and selected one and It's simply switching depends on state.
public enum MenuItemDisplayMode {
    case text(title: MenuItemText)
    case multilineText(title: MenuItemText, description: MenuItemText)
    case image(image: UIImage, selectedImage: UIImage?)
    case custom(view: UIView)
}

That's pity, would be really great to have animation.
Is there any chance you might make such an upgrade?
I can create separate request for that if necessary and test it later on.
Thank you very much for your help.

I agree with @IVANKRUPSKI , this is an interesting functionality, it would be nice to implement it in PagingMenuController.

There used to be similar stuff, but I had some issues with AutoLayout and removed it... Maybe, I should try to implement this functionality again.

That would be great!


add skonto to release roster & sign him up for v1.11 release

/assign @skonto
cc @pierDipi you'll want to find someone to help with eventing for v1.11 in July

ok done - this just needs a LGTM


Unable to deposit into USDT on Eth ThorChain savers

Overview
getting an error when trying to depost into usdt on eth savers vault
References and additional details

https://jam.dev/c/56116463-ff29-4279-a73c-6f079bd86a5b
Acceptance Criteria
Should be able to deposit into USDT on eth savers vault
Need By Date
No response
Screenshots/Mockups
No response
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
No response
Sponsor / Stakeholder
No response
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

@MBMaria this should be fixed next release assuming this guy gets merged! https://github.com/shapeshift/web/pull/7670


Docker provider not picking up some containers

What did you do?
I am using traefik as a reverse proxy in a docker based deployment but it doesn't pick up some containers randomly, I have to stop/start the container multiple times until it picks it up but it also causes traefik to lose other containers sometimes.
I tried updating the rules to HostHeader instead of Host but that didn't help at all.
What did you expect to see?
All containers with traefik labels get picked up correctly and requests are redirected correctly.
What did you see instead?
Some containers don't receive anything from traefik
Output of traefik version: (What version of Traefik are you using?)
v2.3.0-rc3

This problem has always been present since I upgraded to traefik2 (2.2.1 and up) but it seems to have gotten worse with time.
What is your environment & configuration (arguments, toml, provider, platform, ...)?
global:
  sendAnonymousUsage: false

log:
  level: "INFO"
  format: "common"

entryPoints:
  https:
    address: ':443'
    forwardedHeaders:
      trustedIPs:
        - "<IP_ADDRESS>/20"
        - "<IP_ADDRESS>/22"
        - "<IP_ADDRESS>/22"
        - "<IP_ADDRESS>/22"
        - "<IP_ADDRESS>/18"
        - "<IP_ADDRESS>/18"
        - "<IP_ADDRESS>/20"
        - "<IP_ADDRESS>/20"
        - "<IP_ADDRESS>/22"
        - "<IP_ADDRESS>/17"
        - "<IP_ADDRESS>/15"
        - "<IP_ADDRESS>/12"
        - "<IP_ADDRESS>/13"
        - "<IP_ADDRESS>/22"
        - "2400:cb00::/32"
        - "2606:4700::/32"
        - "2803:f800::/32"
        - "2405:b500::/32"
        - "2405:8100::/32"
        - "2a06:98c0::/29"
        - "2c0f:f248::/32"

metrics:
  prometheus: {}

providers:
  docker:
    watch: true
    exposedByDefault: false
    endpoint: "unix:///var/run/docker.sock"

Apparently I needed to manually set the priority for each container as "website.com" matched before "list.website.com".


Integrate constants variables for src and test, #55.

Codecov Report

Merging #59 into master will not change coverage.
The diff coverage is 77.77%.

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   76.56%   76.56%
=======================================
  Files          31       31
  Lines         721      721
  Branches       98       98
=======================================
  Hits          552      552
  Misses        118      118
  Partials       51       51

Impacted Files
Coverage Δ

...entdb/core/convert/MappingDocumentDbConverter.java
70.9% <100%> (ø)
:arrow_up:

...pring/data/documentdb/core/DocumentDbTemplate.java
77.09% <100%> (ø)
:arrow_up:

...zure/spring/data/documentdb/DocumentDbFactory.java
94.11% <100%> (ø)
:arrow_up:

...epository/support/DocumentDbEntityInformation.java
83.75% <100%> (ø)
:arrow_up:

...ore/mapping/BasicDocumentDbPersistentProperty.java
83.33% <100%> (ø)
:arrow_up:

...ig/DocumentDbRepositoryConfigurationExtension.java
53.33% <50%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2600f85...df86760. Read the comment docs.


Faster travis builds?

Apparently, explicitly disabling sudo on the Travis build should speed things up.

very cool. let's see


support unsafe recover for majority of replicas fail.

This is for unsafe-recover cluster even if majority of replicas are failed.

@BusyJay @siddontang PTAL thanks.

@overvenus @BusyJay PTAL again thanks.

Please give an example here.

Suppose we can 3 replicas for region 100 on stores 1 ~ 3. Now stores 1 and 2 are failed so that we have only 1 replica on store 3. Then we can run the command on store 3:
$ tikv-ctl --db /path/to/db unsafe-conf-change remove-store 1 2

This will remove 1 and 2 from peer list of regions which contains both 1 and 2 in their peer list.

do you test the case of 4 repliacs with 2 down ?

@siddontang @BusyJay PTAL thanks.

@siddontang @BusyJay @overvenus PTAL again thanks.

Any updates?

If we want to remove stores 1, 2, but run this command on store 1, what is the result?
I guess we should avoid recovering itself.

@Busyjay PTAL thanks.

it's possible that all replicas will be destroy after restarting from this unsafe recovery.

Is it really possible? remve_fail_stores has already updated epoch of the region. So if any ConfChange is commited but not applyed, they will meet epoch error when TiKV restart and apply them.

/run-all-tests

Then this tool can cause inconsistency. We should reject recovering more than one survivor or just leave epoch untouched.

Now the PR doesn't touch epoch anymore. PTAL @BusyJay thanks.

PTAL @BusyJay

Now it logs like this:
region 1 change peers from [store_id: 11, id: 1 store_id: 12, id: 2 store_id: 13, id: 3 store_id: 14], to [store_id: 11, id: 1 store_id: 12]


[Dataset]Fix broken urls in `HGBDataset

Description

Checklist
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage
[x] Code is well-documented
[ ] To the best of my knowledge, examples are either not affected by this change,
or have been fixed to be compatible with this change
[ ] Related issue is referred in this PR

Changes

Have you tested the other examples that use the HGBDataset? I remember the SimpleHGN has used this dataset, what about the other heterogeneous examples?


Update for 1.7

Don't merge yet. cc @steveklabnik @aturon

r? @aturon
(rust_highfive has picked a reviewer for you, use r? to override)

:+1:

:confetti_ball:


Fix a spelling error in advanced-bonfires.json

FreeCodeCamp Pull Request template
Please, go through these steps before you submit a PR.

Make sure that your PR is not a duplicate.
If not, then make sure that:

2.1. You have done your changes in a separate branch. Branches MUST have descriptive names that start with either the fix/ or feature/ prefixes. Good examples are: fix/signin-issue or feature/issue-templates.
2.2. You have a descriptive commit message with a short title (first line).
2.3. You have only one commit (if not, squash them into one commit).
2.4. npm test doesn't throw any error.

After these steps, you're ready to open a pull request.

3.1.  You probably want to target staging instead.
3.2. Give a descriptive title to your PR.
3.3. Provide a description of your changes.
3.4. Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.
PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING
A little error.

Thanks, but this is actually correct as it currently is. Next time please follow the Contribution Guidelines and remove the PR template when you're submitting a PR. Thanks and happy coding!

Sorry, I misunderstood it.
I solve it now.


Immutable Progressbar Value

Greetings, I have lately started using the NiGui library. However, I have recently encountered a problem where I am not able to change the progressbar.value as displayed here on line 26 inside a for loop with an onButtonClick event

This report is not helpful?
Which os are you on?
Please provide a minimal example showing the error.
The link you provided is working as expected.

OS: Arch Linux
Example:
import nigui

app.init()

var window = newWindow()

var container = newLayoutContainer(Layout_Vertical)
window.add(container)

# Adds a button
var loadButton = newButton("Load")
container.add(loadButton)

# Add a Progress Bar control:
var progressBar = newProgressBar()
container.add(progressBar)

# When load button is clicked
loadButton.onClick = proc(event: ClickEvent) =
    for i in 0..100:
        progressBar.value += float(0.01)

window.show()
app.run()

value is a procedure, not a field.
progressBar.value = progressBar.value + 0.01

It works! Thank you very much! I am very sorry about this


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_f204fa8a-eb1a-4c17-8fcd-70f10c66c320/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_f204fa8a-eb1a-4c17-8fcd-70f10c66c320.git

Docs Build status updates of commit ea0db98:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_main_2022-01-25-03-35-43 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Release/0.1.0--yak-shaving

[x] review
[x] bump version numbers

[x] package.json
[x] bower.json

[x] added browser-sync run script
[x] PR from release/0.1.0--yak-shaving to master
[ ] finish release/0.1.0--yak-shaving with git flow release finish -k
[ ] push all branches and tags to origin

opened in error.......


Svelte 5.1.0 - Error

This library is having problems with latests version of svelte, any timeframe when it will be upgraded ?
npm error Found<EMAIL_ADDRESS>npm error node_modules/svelte
npm error   dev<EMAIL_ADDRESS>from the root project
npm error
npm error Could not resolve dependency:
npm error peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm error node_modules/svelte-qrcode-image
npm error   dev svelte-qrcode-image@"latest" from the root project

package.json needs maybe this?
"peerDependencies": {
"svelte": "^3.55.1 || ^4.0.0 || ^5.0.0"
},

Good! Thanks
On Wed, Oct 30, 2024, 14:14 1toldyou @.***> wrote:

Haven't tested on Svelte 5 yet
Will come back in few days when I have time
—
Reply to this email directly, view it on GitHub
https://github.com/1toldyou/svelte-qrcode-image/issues/4#issuecomment-2447981755,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFIOQ5OXKXWRT7MCJFHWMUTZ6EOXNAVCNFSM6AAAAABQRCW472VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXHE4DCNZVGU
.
You are receiving this because you authored the thread.Message ID:
@.***>


add helm_hendrycks_test

As discussed in https://github.com/EleutherAI/lm-evaluation-harness/issues/614, add helm_hendrycks_test.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks very much for this PR! Looks really great at a glance, have you tested this for comparison against HELM's implementation with any models yet by chance?

helm-run was segfaulting for me for some reason. Will try to follow up with this to confirm equivalence in scores tomorrow

@haileyschoelkopf I tested on GPT2, the original implementation has a score of 25.69%. The current HELM implementation has a score of 25.50%. I do not have the results of the original HELM implementation (also failed to run on the original HELM code).

@haileyschoelkopf Sorry for replying late. In my case, it actually looks like a network error, not a segfault error.

Closing as we'll port this to main.


Complete funding information task

Changes in this PR
Implements the rest of the funding information task.
NB there is a bug with the 'alternative identification' page - when 'Save and continue' is clicked with no selection, the error summary does not link to the top of the checkboxes. Any thoughts on what's going wrong very welcome :)
Screenshots of UI changes

Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

this looks good, a big feature! I think we can merge this with the understanding that there two known issues:
1. the error linking. It looks like this is an issue with the govuk checkbox component - if a divider is given as the first element it knocks the labelling/ids of the next checkboxes so the error summary can't link to them. Should be fixable by just providing the first divider outside of the checkbox items and adding custom CSS.

2. deleting conditional answers. This is the same problem we have elsewhere, if a user goes back and changes answers then it doesn't wipe the conditional questions (e.g. switching from benefits to personal savings)

I'm happy to get this merged, and then I can take on those two issues today so that you don't have to switch contexts off the Nacro views. Does that sound ok?

That sounds good! Thanks for working out the error message issue :)


Different zoom levels per monitor/display

My laptop monitor has a different device pixel ratio (or DPI, or PPI, or whatever it's called) than my external monitor. This means that what is a good window.zoomLevel on one is too large/small on the other. That makes it annoying when moving my VS Code between displays.
It would be nice to be able to set the window.zoomLevel per screen. A possible solution was proposed here where the zoom level can be set per resolution. Though ideally I would like to be able to set the zoom level per DPI.
This has been requested multiple times over the years (some examples: 1, 2, 3, 4) but generally closed due to not enough votes on the issue (though all the issues together would have enough votes).

I assume that this was the duplicate issue: https://github.com/microsoft/vscode/issues/143663
(for anybody that comes here looking for a similar issue)


Add Training Dummy as the encounter NPC

Is your feature request related to a problem? Please describe.
Many times, we sim and then try to work on our rotation on a training dummy, with results having bigger or smaller deviations.
Describe the solution you'd like
The idea is to add a training dummy preset for the encounter, so that we can get a more precise idea of what is going on when trying to work on our rotation and find pain areas.
Describe alternatives you've considered
I tried doing it with a custom, but I am not sure what proper settings are for a dummy
Additional context
In the same concept, it might help having a predefined buff preset for "self-buffed"

The default encounter setting is equivalent to the (boss level) target dummy, minus any of the bugs specific to target dummies that nobody sane is going to try and reproduce.
Unless there's something I'm missing?

Actually there is one difference, you need to set the execute percentages to 0.

Is there a way to revert to the default after you have selected and saved for example Patchwerk?

Not sure what exactly you're referring to, but you can either select one of the NPC presets again, or reset everything to default with gear icon on the top right -> restore defaults (this will not delete any saved sets).


Lua script support

I'm not intimately aware of any intricacies that might be involved in supporting Lua scripts, is it not supported simply because there's been no need for the feature?  I'm looking at migrating this project to use Redis Cluster and the Lua scripts are something that are desperately needed.
Do you know if there'd be any blocking issues with adding support, or would it be possible? I'd be happy to do the legwork, just wanted to ask whether it would be a welcome contribution or not.

Whelp. I'm dumb, I just realized that our library already supports Redis Cluster.  Ignore me!


www.secdwp.net

@adguard-bot commented on Thu Dec 22 2022
Issue URL (Incorrect Blocking)
https://www.secdwp.net/login
Comment
Username: @engas

secdwp.net/login doesn't open properly when AdGuard enabled. It seems that AdGuard blocks plugin loading because I installed plugin already but web page requires when AdGuard enabled.

Screenshots

Screenshot 1

Screenshot 2

System configuration

Information
value

AdGuard product:
AdGuard for Windows v7.11.3

Browser:
Chrome

AdGuard driver:
WFP

Stealth mode:
disabled

DNS filtering:
server: https://53a3a333.d.adguard-dns.com/dns-queryfilters: https://filters.adtidy.org/windows/filters/15.txt, User+rules

Filters:
Ad Blocking:EasyList, AdGuard Mobile Ads, AdGuard BasePrivacy:AdGuard Tracking ProtectionSocial Widgets:AdGuard Social MediaOther:AdGuard ExperimentalLanguage-specific:List-KR, YousList, Dandelion Sprout's Nordic Filters, AdGuard German, AdGuard Japanese, AdGuard Dutch, AdGuard Spanish/Portuguese

Userscripts:
disabled

@AdamWr commented on Thu Dec 22 2022
It looks like that problem is not related to filters and SSL certificate for <IP_ADDRESS> (which I guess is installed and used by this plugin) isn't trusted by the browser when AdGuard is used.
Screenshots

Could you please try to open AdGuard's settings and in General Settings go to Advanced Settings and disable Filter localhost option and then save settings (like on a screenshots below)?
Screenshots

Or you can also try to add <IP_ADDRESS> to HTTPS exclusions - Settings -> Network tab - HTTPS filtering section - Exclusions (screenshots below).
Screenshots

@piquark6046 commented on Thu Dec 22 2022
@AdamWr The website is used by Samsung Electronics employees as https://www.secdwp.net said. [^1]
[^1]: A VPN connection with a non-South Korean IP is required.

@AdamWr commented on Thu Dec 22 2022
I'm aware of this and I was able to reproduce this issue,
I just wanted to know if this solution works and then move it to correct repository.

@AdamWr Hi! Seeing as you have already installed the software and reproduced the issue, can you please collect AdGuard's logs with /trace and Chrome's net-export? I just really don't want to put Samsung's corporate spyware on my machine :)

@AdamWr @engas Sorry for the wait. Does it work correctly after the initial failure? I see the issue is that AdGuard does MITM incorrectly, but it then adds an HTTPS exception because the client doesn't accept our certificate. It should work on the second and subsequent tries.
Also disabling "filter loopback (localhost)" in the advanced settings should solve this issue. Although I see this option can't be disabled when AdGuard VPN is installed, for some reason... Adding a network rule like @@<IP_ADDRESS>/8$network should be a viable workaround.

Does it work correctly after the initial failure? I see the issue is that AdGuard does MITM incorrectly, but it then adds an HTTPS exception because the client doesn't accept our certificate. It should work on the second and subsequent tries.

It seems that it doesn't work, I have refreshed website few times and restarted web browser, but the problem still occurs.

Adding a network rule like @@<IP_ADDRESS>/8$network should be a viable workaround.

It looks like that such rule cannot be added.

This - @@<IP_ADDRESS>$network works on my end.

@AdamWr Could you please send the logs where it doesn't work on the second and further tries?

Sure thing, done.
Time about 14:39, I have refreshed website few times.
adg_logs_7.12.4170.0_0209_1439.zip

@AdamWr Thanks! Also, on second thought, the $network exclusion is not a good solution: it will prevent AdGuard from filtering any site when AdGuard VPN is running, due to the way AdGuard VPN redirects all connections to loopback.

So I've looked into this more, and it should be fixed (in the sense that it will work after the first failure) in CoreLibs 1.11 (which are coming soon to the applications).


[REVAMP]: ABOUT SECTION PROFILE CARD DESIGN 💡

Description

The profile picture of cards are displayed as their original resolution, so those images are uneven in measurements.
This makes the user interface a mess, i want to add proper border radius to the component so that it could look the same as regardless of image measurement.

Screenshot

CURRENT STATE
DESIRED STATE

Hey there @Astrodevil  👋🏻
Please make sure to assign this issue to me asap to make the work done!
Thank you.

@0xabdulkhalid assigned


Allow configuration

Currently the address for listening, port, redis etc. is hardcoded in source
It would be nicer if there are CLI config options instead

Things to config:

[ ] Redis host, port
[ ] Server listening address, port

Fixed in https://github.com/ckcr4lyf/kiryuu/pull/6


VM Update October 2022

Full run kicked off: https://dev.azure.com/vcpkg/public/_build/results?buildId=79288&view=results

All the bits from the new machines are done (only osx still running) and the results are identical to the old pool there https://dev.azure.com/vcpkg/public/_build/results?buildId=79284&view=results. As a result, merging this.


Error while trying to use JwtTokenValidation.authenticate_request

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
botbuilder-schema==4.11.0
botframework-connector==4.11.0
Describe the bug
Using python.
After using the following request 'JwtTokenValidation.authenticate_request' we started getting the error:
[Errno Unauthorized. Invalid AppId passed on token: ] b*******-4***-4***-8***-a***********
this issue started occurring from ~March 2024
To Reproduce
Steps to reproduce the behavior:
the whole flow is represented in the code snippet. after the main init we try to setup a webhook which is failing
Expected behavior
we want the auth to get approved and manage to communicate
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
adding a code snippet to show the flow (only relevant for this issue)
 class MicrosoftTeamsMainloop(FrameworkMainloop):
    def __init__(self, config):
        super().__init__(config)
        self.client = MicrosoftTeamsClient(config.bot_id, config.app_password)
        self.user_cache = TeamsUsersCache(self.client)
        self.app = Flask(__name__)
        self.setup_webhook_app()
        self._maybe_setup_global_proxy_for_process()

    def setup_webhook_app(self):
        @self.app.route("/", methods=["POST"])
        def webhook():
            # pass on the flask global request object
            return self.handle_post(request)

    def authenticate_webhook(self, current_request: Request, activity: Activity):
        logger = get_algobot_logger()
        loop = asyncio.new_event_loop()
        try:
            loop.run_until_complete(
                JwtTokenValidation.authenticate_request(
                    activity,
                    current_request.headers.get("Authorization"),
                    self.credential_provider,
                )
            )
            return True
        except Exception as e:
            logger.error('exception {} thrown while trying to authenticate webhook.'.format(e))
            return False
        finally:
            loop.close()

@Loprock That error indicates the token the bot received does not contain the correct audience claim.  The expectation is that the audience claim matches the bots AppId.  Is 4.11.0 correct?  That was released in Nov 2020.  If accurate, this is ually because the config for the bot is wrong.

The config was correct.. i verified it multiple times. but the issue persists

As a start, I would recommend updating to the latest released version, and review what changed around March.  But if you've been using this bot without changes, and it started happening in March, this would lead to some other change outside the bot happening.

Tried doing it on multiple bots, each with a different AppId, getting the same error every time, with the new AppId in the logs.
getting the exact same error - > [Errno Unauthorized. Invalid AppId passed on token: ]
I can try and upgrade the whole project but the code I'm using didn't change since it was written as far as I can tell from what I saw in the repo (the whole Auth section)

The exact cause is the 'aud' claim in the token the bot received doesn't match the bots appId in config.  This is part of token validation. If your bot hasn't changed then this is a config issue elsewhere.  Did your Azure resources change?  If you run the bot in debug, and break in your app.py, 'messages' function.  Take the token in the 'Authorization' header and decode it (search for 'JWT token decoder').  You'll be able to see what 'aud' claim is being sent.

You could log it.  I would recommend removing that log message when done though.

Actually... the error message should have the appId it received in it.

The AppID I got matches exactly to the one I have in my Azure app and the same one I set over the .conf file over the machine

Hi @Loprock
I can see you're using version 4.11 where single-tenant Azure Bots are not compatible, only multi-tenant are.
I have faced a similar issue in the past where I was trying to configure my BotFramework Python SDK with single-tenant.
While creating the bot you need to select multi-tenant as shown in image

To verify this issue you can import this curl request into POSTMAN and test it with your Azure Bot APP_ID and APP_PASSWORD.
curl --location 'https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'grant_type=client_credentials'
--data-urlencode 'scope=https://api.botframework.com/.default'
--data-urlencode 'client_id=<APP_ID>'
--data-urlencode 'client_secret=<APP_PASSWORD>'
If you're not able to generate an access token using your credentials, your Azure Bot is probably not configured properly.
You can always change your bot from single-tenant to multi-tenant if that's the underlying issue.


Custom functions/hooks executed before and after autoformat

As discussed online with many threads and this #64 , clang-format cannot do #pragma omp for properly. I found the perfect solution and can also be generalized to do more. The concept is to replace #pragma omp ... to a comment before the formatting and replace the //#pragma omp ... back after the formatting.
The concept can be demo in bash:
# Replace "#pragma omp" by "//#pragma omp"
sed -i 's/#pragma omp/\/\/#pragma omp/g' ./main.c
# Do format
clang-format ./main.c
# Replace "// *#pragma omp" by "#pragma omp"
sed -i 's/\/\/ *#pragma omp/#pragma omp/g' ./main.c

or vim script:
command! -nargs=? -range=% -complete=filetype -bar MAutoformat
            \ let mm_winview=winsaveview() |
            \ <line1>,<line2>s/#pragma omp/\/\/#pragma omp/e |
            \ <line1>,<line2>s/#pragma simd/\/\/#pragma simd/e |
            \ <line1>,<line2> Autoformat |
            \ <line1>,<line2>s/\/\/ *#pragma simd/#pragma simd/e |
            \ <line1>,<line2>s/\/\/ *#pragma omp/#pragma omp/e |
            \ call winrestview(mm_winview)

I use this vim script and it works. However..... I really don't know how to write a vim function and loop that make this ugly code better. I propose to have this ability to do something before and after Autoformat. I'm sorry that due to my ability, I cannot provide a PR. I hope someone can help to do that.
More descriptions are available here:
https://medicineyeh.wordpress.com/2017/07/13/clang-format-with-pragma/#more-1846

Alternatively you could consider that bash script a formatprogram, and create a format definition for that. Sounds easier to me.

Yeah, that is an alternative solution for this as well. I just try to propose a new idea here. The load seems to be not easy. Maybe we should stick with the script solution which is also more extensible.