summarisePopulationCharacteristics

summarisePopulationCharacteristics <- function(cdm,
                                          studyPeriod = c(NA, NA),
                                          sex = NULL,
                                          ageGroup = NULL) {
  CohortConstructor::demographicsCohort(cdm = cdm) |>
    CohortConstructor::trimToDateRange(dateRange = studyPeriod) |>
    CohortConstructor::trimDemographics(sex = sex, ageGroup = ageGroup) |>
    CohortCharacteristics::summariseCharacteristics()
}

(Please @catalamarti  confirm)
Create the previous summarisePopulationCharacteristics function. Just have in mind that:

Sex is a boolean variable TRUE/FALSE. If true, results should be stratified by sex.
ageGroup is a list specifying which ageGroups to stratify by

Strata is mixed (i.e., female &&  age < 60; male && age < 60; overall && age <60)
In both cases, the overall (although is not necessarily specified by the user), is included in the result.

studyPeriod: two dates to trim the observation period. If NULL, start_observation_period and end_observation_period are used. If c(NA, date), start_observation_period and the specified date are used.


Conda support?

face_recognition version: latest
Python version: 3.6
Operating System: Windows 10 64bits

Description
Hi I am trying to install this on my conda python 3.6 environment.
I managed to install dlib 19.4.0 via using conda-forge channel and I can import it just fine.

However I cannot install face_recognition (using pip) because it will attempt to install dlib again and fail.
I dont think you support installing via conda either right?
What I Did
conda create -n py36 python=3.6

activate py36

conda install -c conda-forge dlib=19.4

pip install face_recognition

here the installation will fail to detect that dlib has already been installed and attempt to re-install it and fail

You're correct that Conda isn't currently supported. But having Conda support would be really cool - especially on Windows where this library is currently nearly impossible to install!
Unfortunately I don't know much about how Conda works or what would be required to make this work with conda install. If anyone knows, let me know! Otherwise I'll take a look when I have a little free time.

If you use docker (there is an example provided) you can use a windows machine to run it virtually.
I recommend it.
@ageitgey awesome library btw.

The docker image, iirc, use 3.5 while I am looking for a 3.6 option.
And you are absolutely correct that libraries has been next to impossible to deal with on window. I am following @ageitgey original tutorial using OpenFace and dlib with plan to move on to this library later. The manual compile process of dlib and Boost has been such a nightmare and Conda helped so much.
Probably gona give the docker thing a try, downloaded VMWare last night too.

I had to learn Docker in order to run this library as well. Using Docker was significantly more straight forward than I thought it would be. IMO Docker is far less overhead than using VMWare with the GUI and everything.
I followed this guide. https://docs.docker.com/get-started/.
During step 2 instead of making a new directory and dockerfile just CD into your local clone of this repository.
If you need 3.6 you can just change the Dockerfile it is pretty straight forward.

@fhboswell do you mind making a quick markdown for docker installation for this particular library? Just a functional brief GIST maybe and then we could pull request on that and include it to the main readme.md

Yes I will do that!

@fhboswell I would be happy with just a guide showing how stuff in \examples run with docker

Almost all the issues people have with installation are with installing dlib. There's only so much I can do since I don't maintain dlib itself. I've provided installation dlib instructions for OSX and Linux and a pre-made virtual machine for other users. But beyond that, I'm not sure what I can do. I don't use Windows myself.
Hopefully the awesome folks who package dlib for anaconda will get that all working and then I can just direct Windows users to install with Anaconda.

as mentioned over #89 , conda solved so much problem with installation for me.
I strongly suggest people to use it over normal lib, especially with dlib and opencv getting involved.
I will be closing this issue thread for now but I do hope @ageitgey will consider conda distribution in the future ✌

I did as you said, conda-forge's dlib, pip install dlib, pip install face_recognition. I didn't fail. It worked!
I don't know how could pip possibly locate the wheel file:
Collecting dlib
  Downloading dlib-19.7.0-cp36-cp36m-win_amd64.whl (2.2MB)
Installing collected packages: dlib
Successfully installed dlib-19.7.0

I am using Windows 10,python 3.5 and pycharm editor. I installed dlib from Anaconda cloud successfully. But when i try to work sample code for face recognition via webcam, i am getting error "No module named face_recognition" . When i try to import dlib, there is no problem. Is there anyone help me?

I am using Windows 10,python 3.5 and pycharm editor. I installed dlib from Anaconda cloud successfully. But when i try to work sample code for face recognition via webcam, i am getting error "No module named face_recognition" . When i try to import dlib, there is no problem. Is there anyone help me?

you need pip instal face_recognition for conda

this should help
https://stackoverflow.com/a/52803626/2696230

check cmake
https://stackoverflow.com/a/52803626/2696230


Support line breaks in alert descriptions

From IRC:

jrv: shimin: yeah, I believe we still need to add a way to specify multi-line strings. Either with \n-style interpolation or allowing raw newlines in strings...

For description we'd want raw, and pretty much everywhere else we'd want \n so I guess that means both.

Looking into this, adding support for raw newlines seems easy (simply don't error on them within a string), but supporting escaped characters is going to be more difficult: the parser just stores the raw part of the input expression that constitutes the string, without doing any escape character interpretation. So if the input expression is
"my\nstring"

...the string node that will be stored will contain the literal value
`"my\nstring"`

...and not
"my\nstring"

We need a mechanism to actually interpret all the possible escape sequences. The escape lexing part we could copy from https://golang.org/src/go/scanner/scanner.go?s=931:1526#L364, but not sure where the actual interpretation happens yet).

For our purposes, it seems cleanest to still let the lexer store the raw strings (as it does for any token it scans) and then do the escape interpretation in the parser (do a call to expandEscapeSequences() or similar on the raw string val of the node, which can start out simple to just support \n-style newlines).

@fabxc does that sound good? Then I'd go ahead with that.

Whatever makes things as we want them to in a clean way.
I would prefer multi-line strings to be python-styled with triple quotes.
On Tue, Sep 29, 2015 at 3:28 PM Julius Volz<EMAIL_ADDRESS>wrote:

@fabxc https://github.com/fabxc does that sound good? Then I'd go ahead
with that.
—
Reply to this email directly or view it on GitHub
https://github.com/prometheus/prometheus/issues/1121#issuecomment-144058642
.

This is going to (presumably) apply to the parser everywhere, so we probably want to think a little how it'll work on the expression browser etc.

Yeah, I don't see any issues with that being handled the same everywhere (whether interactive expressions or rules). Ok, I'll get to this soon.

@fabxc Since our user-exposed templating is already Go-based, wouldn't it be nicer to also use Go-style backticks for raw strings rather than Pythonesque triple quotes? They also need less lookahead logic ("" is a complete string vs. """ being only the beginning of a string.).
The bigger question is whether we then also want to disable \ escape sequences in raw strings like in Go. In Go, you can't even escape backticks in raw string literals, which can be worked around in Go by concatenating multiple strings (not yet possible in Prometheus). I'd go for doing it like in Go for now, since the alternative would also have drawbacks. People can still use normally-quoted single-line strings with \n if they need to include backticks in their strings?

We have $value and $labels indirection with the comment stating explicitly that we do so because we don't want to expose users to Go specifics. I don't care too much – but only one reasoning should be applied.

Hm yeah, I guess $value and $labels are still Go-specific, just less scary for the common user than .Value and .Labels :)
Looking at how to implement this, I've found https://golang.org/pkg/strconv/#Unquote, which would be pretty much reusable if we decide to do it the Go way. The exception would be single-quoted strings, which are runes in Go, but normal strings in Prometheus. These could be manually converted on-the-fly into double-quoted strings before applying Unquote to them (or into backticked strings if we wanted to treat them that way).

We had issues with the Unquote and single quotes in the past. "Pretty much reusable" is out of the window if the takes another three sentences to explain which cases "pretty much" does not cover.
I would not take this as an argument for going any particular direction.
I also don't think we want the rawness-behavior for those but really just the addition of multi-lines.

The issue with Unquote was exactly the single-quote handling: https://github.com/prometheus/prometheus/pull/685
But that introduced the bug that we have now (including tests that expect broken output), namely that escape sequences no longer work. I would rather not try to reimplement all the logic in Unquote(), as I think it's much more likely to get a bug that way than by working around this one special case in Unquote().

Correction: the tests added in #685 were expecting the right thing, as that's in the lexer and still expected to be raw. But we'll need additional tests for the parser now to make sure that the escape sequences get handled correctly on that level.

I went throught the commit, but still couldn't figure out how should i put the \n in the description to show in slack. Can we please mention it here.

@prat0318 Strings work basically like in Go. If you want newlines, you can either put \n in a double-quoted string or have an actual newline in a backtick-quoted string, like so:
`foo
bar`

If that isn't visible in Slack, is it maybe because Slack expects HTML or something? Like a <br>?


NullPointerException when get InputStream of "LICENSE.txt"

i have watched the same issue opend last year, i upgrade the version to 2.2.0,but still not work.

the version 2.3.1 works, but the newest version is 2.2.0 in the http://nanohttpd.org/

Then use 2.3.1, despite what the site says.
You should always upgrade to newer versions.
@elonen @ritchieGitHub is there something going on with the site?

yes, it is down. I have already a request running. But because it is a "cheap" machine, that takes a little.

I didn't mean technically, but in terms of data and accurate information, since apparently the site reports 2.2.0 as the latest version...

It should be automatically updated, but I can not check it, because offline ;)


Don't necessarily require manual acknowledgement for audit-recovery

In an environment with a large number of servers orchestrator may recovery quite frequently. If this works well then it may not be necessary to verify/validate each recovery that takes place.
I would like to optionally limit the acknowledgement state on failed recoveries as that probably requires someone to verify what happened, and auto-close other successful recoveries for primary master or intermediate masters.
I would guess the current behaviour is fine by default so an option to only require acknowledgement on failed recoveries would be good.
I can provide more context privately if that would be useful.

An alternative option would be to provide an acknowledge all type button which would be applied to all un-acknowledged failures. To some extent I think that both features should exist.

@sjmudd what would be the logic for orchestrator to determine which recoveries should be auto-acknowledged?
Also, please be advised that there is a -c ack-all-recoveries command, see #447


Tips and gotchas for Redshift, EMR, etc.

Welcome Hai :)

Done addressing Max's comments

Thanks, @HDNoob !

Can we commit as is? I'll fix it in the next PR. I want to avoid having this open for too long, which will create other issues.

@HDNoob, please resolve the conflicts and commit to a separate branch. I will clean things up and merge to master.

Josh's comments addressed

Thanks again @HDNoob!


feat(payment): INT-5384 Openpay: Add support to hosting their widget

What? INT-5384
Created a new OpyPaymentMethod that wraps a HostedWidgetPaymentMethod to allow the learn more button widget to be injected in the initialization step.
Why?
Openpay wants to show this widget when the shopper selects Openpay as a payment option.
Testing / Proof
Demo:
https://user-images.githubusercontent.com/4843328/153463964-97fb66af-4d49-4c93-b674-f01adae34025.mov

OpyPaymentMethod

HostedWidgetPaymentMethod

OnClick:

AUSTRALIA

Depends on:
👉 https://github.com/bigcommerce/checkout-sdk-js/pull/1344 to recognize opy as a known property of PaymentInitializeOptions and mount Opy's widget.
@bigcommerce/apex-integrations @bigcommerce/checkout

Just an FYI, CircleCI fails to build due to the recent code change.

@bc-peng That's because of the dependency with https://github.com/bigcommerce/checkout-sdk-js/pull/1344

LGTM. Please run another CircleCI build once you have bumped sdk🙇🏻♂

@bc-peng done ♻


Issue #2140 - Handle reading null from xx_RESOURCES.DATA

Issue #2140 - Handle reading null from xx_RESOURCES.DATA
Signed-off-by: Troy Biesterfeld<EMAIL_ADDRESS>

Comments addressed. Ready to merge.


Not saving my keymap changes.

For some reason, after messing around with the mod and adjusting a few keys, it stops saving any keys I try to remap.
In the console, this is what the log says

[07/05/2023 04:50:04 AM] [Render thread/WARN] KeyComboData(keyCode=66, keyType=KEYBOARD, alt=false, shift=false, ctrl=false)
[07/05/2023 04:50:07 AM] [Render thread/WARN] KeyComboData(keyCode=80, keyType=KEYBOARD, alt=false, shift=false, ctrl=false)
[07/05/2023 04:50:07 AM] [Render thread/WARN] Remove ignored, Keymapping [gui.xaero_new_waypoint] not registered!

Minecraft: 1.19.2
Forge: 43.2.0
Mod Version: keymap-0.7.0-beta.0+1.19.2-forge
Let me know if there is any other information I can provide to help solve this issue. I have been playing modded Minecraft for years and I had always used controlling in the past, but this mod is an absolute game changer, and would love to help ensure that this becomes the new standard mod for keymapping.

Apologies for the lack of response, I'll look into this, thanks!

should be fixed by the PR I think. need your test @Zoofule

should be fixed by the PR I think. need your test @Zoofule

Ok, I'll try to test it soon, unfortunately my summer has gotten extremely busy.

Apologies for the lack of response, I'll look into this, thanks!

No worries, everyone has different things in life that make availability fluctuate.

Thanks @SettingDust and @Zoofule!, the build should be up on curseforge for now, forgot to update modrinth, gimme a sec,

Aaand I completely forgot about uploading it to Modrinth, haha, in any case, it up now, thanks!,
oh, also, there's also this for bleeding edge builds, just in case https://app.circleci.com/pipelines/github/Einjerjar/keymap


Regular expression for translation id is utterly wrong

Matches characters normally reserved for use as context separator _.

fixed with refactoring of ypo-parser-common


Bower Install Failing

I am getting the below error

I have tried all solutions available over Stackoverflow or Issue #226 with no luck
I have another workspace with different branch and everything was working fine there,I was able to install bower and bring up the UI. Please help me understand why I am facing issue now.

What command did you use?

I used 'bower install'

It is fixed with latest code,I was working with older version


Can't paste into 'type an url' field

Can't paste copied url into field:

osx64.zip v1.1

We need a help,  could you open pull request?


use an off heap map

https://github.com/jankotek/mapdb/

I have used https://github.com/snazy/ohc in the end.
MapDB has a poor performance compared to ohc.


The extension breaks java/vscode

OK, I don't know what exactly happens so I'll have to write a long text to explain it, here it goes.
Part 1 - The problem
I've created a brand new spring project using the vscode spring boot initialzr extension and run the project successfully. Then, I added your extension so I could use lombok on my project. Vscode asked me to restart/reload and as soon as vscode opened I received the message "Language Support for Java Server crashed 5 times in the last 3 minutes".
Checking the project folder, I found out that the JVM crashed and several core dump files were created in the folder, each one with 1GB+ size. First I thought it was a problem with that Java Server extension and/or with my project. But after trying several things, to solve it there was nothing left but remove your extension.
I removed it and found another problem which was already reported in this issue https://github.com/redhat-developer/vscode-java/issues/1175 and apparently is not fixed yet. I did what was suggested in that issue and removed the JVM parameters referencing your extension and the project opened again without crashing the JVM.

NOTE: anyone reading this issue and having this problem on Linux, the path for the file that need to be fixed is $HOME/.config/Code/User/settings.json

Part 2 - The solution
I obviously couldn't build the project because lombok was not on my classpath anymore. This was when I tried to do something very specific (don't know why, just luck I guess) and that solved the problem for me.

I ensured that your extension was completely removed checking the vscode extensions folder (on Linux $HOME/.vscode/extensions)

I removed all Java and Spring extensions using the vscode extension manager

After removing all these extensions I closed and reopened vscode to check if no errors were occuring. Everything was OK

I reinstalled only your extension using vscode extension manager, but this time, when vscode asked me to restart, I denied and closed vscode manually to prevent it from opening again

With vscode closed I downloaded the last version of Lombok (1.18.18) and replaced the jar on your extension folder with it

Then I reopened vscode and reinstalled all Java and Spring extensions

And voila!! No errors, the code started compiling and I could run the project normally
Phew, that was a long text, thanks for your patience!
Part 3 - The conclusion
After thinking for a while why this worked, a light bulb popped over my head. Here's what I think it's happening. When we include lombok in the project dependencies using gradle, usually this is done this way:
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

If you pay attention closely, you will see that the version of Lombok is not specified, which probably means that Gradle/Maven downloads the latest version and add to the classpath. This is the version that will be used to compile the project.
When I was replacing your jar by the one downloaded from the lombok site, I noticed that the size of your jar was slightly smaller. This makes me think that your jar is an older version. Probably what happens is that your jar expects an older version of lombok in the classpath that matches it, but since gradle grabbed the latest one from the repository, a JAR HELL occurred and crashed the JVM!
Oh dear! I should have listened to my mom and become a lawyer! Maybe I should sell my laptop and buy a popcorn machine to sell popcorn on a square.
Anyways, I have nothing to support this theory, but it's the best that my brain can do for now, at 1:08pm! Thank you for your great work until here, your extension is very useful and I'll be very happy if you find a way to help us all.

Hi, I just experienced exactly the same issue. Those dumps could fill a hard-drive pretty quick. I did the similars manuals steps and It worked fine. ( Java 15 / maven 3.6 )

Had a similar issue, but instead of uninstalling all the Java extensions and the Lombok extension, I only uninstalled the Lombok extension and reloaded the window. This was the only way I could get the "Please restart VSCode" notification to appear after re-installing Lombok.
Then, instead of restarting, I followed the same steps of closing VSCode (instead of restarting) and copying lombok.jar into the extension folder, then re-opening VSCode.

@noschang There's definitely an issue that causes weird behavior when the jars in the maven dependencies don't match what is provided by this extension.  I noticed in this commit, it updates the jar to 1.18.12:  https://github.com/GabrielBB/vscode-lombok/blob/master/server/lombok.jar.  However, the most recent version of lombok from maven repo vis-a-vis spring boot initializer is 1.18.18.
When these versions were different, it was getting stuck on a @JsonProperty annotation as seen in the code snippet below.
This would also have the weird effect of not allowing automatic imports of something as auto importing java.util.List for a simple property type of private List<String> usernames;
###remedy
to fix this, I copied over the jar from the maven repo to ~/.vscode/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar
This is a pretty fragile fix.   Is there a preferred way to sync up the jars when specified by two different sources?
!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:53.439
!MESSAGE >> document/codeAction

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:53.449
!MESSAGE >> document/documentSymbol

!ENTRY org.eclipse.jdt.core 4 4 2021-04-06 13:01:53.509
!MESSAGE Exception occurred during compilation unit conversion:
----------------------------------- SOURCE BEGIN -------------------------------------
package com.paraware.sizing.room;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class Room {
    private Integer id;
    /** Name of this room */
    private String name;
    /** Name of the creator of this room */
    private String creator;
    /** Date this room was created */
    private Date created;

    /** Password for this room - hash this value */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
}

----------------------------------- SOURCE END -------------------------------------
!STACK 0
java.lang.IllegalArgumentException: startPos = 446 and length is -306.
This breaks the rule that lengths are not allowed to be negative. Affected Node:
class org.eclipse.jdt.core.dom.MemberValuePair: access=JsonProperty.Access.WRITE_ONLY
    at lombok.eclipse.agent.PatchDiagnostics.setSourceRangeCheck(PatchDiagnostics.java:36)
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2538)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2587)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1097)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5663)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5607)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5722)
    at org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:3633)
    at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:541)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:201)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3316)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1513)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1231)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getASTRoot(CodeActionHandler.java:282)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:120)
    at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
    at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

!ENTRY org.eclipse.jdt.core.manipulation 4 2 2021-04-06 13:01:53.510
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
!STACK 0
java.lang.IllegalArgumentException: startPos = 446 and length is -306.
This breaks the rule that lengths are not allowed to be negative. Affected Node:
class org.eclipse.jdt.core.dom.MemberValuePair: access=JsonProperty.Access.WRITE_ONLY
    at lombok.eclipse.agent.PatchDiagnostics.setSourceRangeCheck(PatchDiagnostics.java:36)
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2538)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2587)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1097)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5663)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5607)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5722)
    at org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:3633)
    at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:541)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:201)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3316)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1513)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1231)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getASTRoot(CodeActionHandler.java:282)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:120)
    at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
    at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

!ENTRY org.eclipse.jdt.core.manipulation 4 0 2021-04-06 13:01:53.511
!MESSAGE Error in JDT Core during AST creation
!STACK 0
java.lang.IllegalArgumentException: startPos = 446 and length is -306.
This breaks the rule that lengths are not allowed to be negative. Affected Node:
class org.eclipse.jdt.core.dom.MemberValuePair: access=JsonProperty.Access.WRITE_ONLY
    at lombok.eclipse.agent.PatchDiagnostics.setSourceRangeCheck(PatchDiagnostics.java:36)
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2538)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2587)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1097)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5663)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5607)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5722)
    at org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:3633)
    at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:541)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:201)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3316)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1513)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1231)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getASTRoot(CodeActionHandler.java:282)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:120)
    at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
    at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:53.601
!MESSAGE >> document/foldingRange

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:53.657
!MESSAGE >> document/codeAction

!ENTRY org.eclipse.jdt.core 4 4 2021-04-06 13:01:53.680
!MESSAGE Exception occurred during compilation unit conversion:
----------------------------------- SOURCE BEGIN -------------------------------------
package com.paraware.sizing.room;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class Room {
    private Integer id;
    /** Name of this room */
    private String name;
    /** Name of the creator of this room */
    private String creator;
    /** Date this room was created */
    private Date created;

    /** Password for this room - hash this value */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
}

----------------------------------- SOURCE END -------------------------------------
!STACK 0
java.lang.IllegalArgumentException: startPos = 446 and length is -306.
This breaks the rule that lengths are not allowed to be negative. Affected Node:
class org.eclipse.jdt.core.dom.MemberValuePair: access=JsonProperty.Access.WRITE_ONLY
    at lombok.eclipse.agent.PatchDiagnostics.setSourceRangeCheck(PatchDiagnostics.java:36)
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2538)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2587)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1097)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5663)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5607)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5722)
    at org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:3633)
    at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:541)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:201)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3316)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1513)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1231)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getASTRoot(CodeActionHandler.java:282)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:120)
    at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
    at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

!ENTRY org.eclipse.jdt.core.manipulation 4 2 2021-04-06 13:01:53.682
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.core.manipulation".
!STACK 0
java.lang.IllegalArgumentException: startPos = 446 and length is -306.
This breaks the rule that lengths are not allowed to be negative. Affected Node:
class org.eclipse.jdt.core.dom.MemberValuePair: access=JsonProperty.Access.WRITE_ONLY
    at lombok.eclipse.agent.PatchDiagnostics.setSourceRangeCheck(PatchDiagnostics.java:36)
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2538)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2587)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1097)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5663)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5607)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5722)
    at org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:3633)
    at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:541)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:201)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3316)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1513)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1231)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getASTRoot(CodeActionHandler.java:282)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:120)
    at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
    at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

!ENTRY org.eclipse.jdt.core.manipulation 4 0 2021-04-06 13:01:53.683
!MESSAGE Error in JDT Core during AST creation
!STACK 0
java.lang.IllegalArgumentException: startPos = 446 and length is -306.
This breaks the rule that lengths are not allowed to be negative. Affected Node:
class org.eclipse.jdt.core.dom.MemberValuePair: access=JsonProperty.Access.WRITE_ONLY
    at lombok.eclipse.agent.PatchDiagnostics.setSourceRangeCheck(PatchDiagnostics.java:36)
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2538)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2587)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1097)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5663)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5607)
    at org.eclipse.jdt.core.dom.ASTConverter.setModifiers(ASTConverter.java:5722)
    at org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:3633)
    at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:541)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:201)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:3316)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1513)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:323)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1231)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:820)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider$1.run(CoreASTProvider.java:272)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.createAST(CoreASTProvider.java:264)
    at org.eclipse.jdt.core.manipulation.CoreASTProvider.getAST(CoreASTProvider.java:197)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getASTRoot(CodeActionHandler.java:282)
    at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:120)
    at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$14(JDTLanguageServer.java:646)
    at org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:75)
    at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
    at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:53.713
!MESSAGE >> workspace/executeCommand vscode.java.resolveMainMethod

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:54.649
!MESSAGE >> document/hover

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:54.674
!MESSAGE >> java/findLinks

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:55.153
!MESSAGE >> document/hover

!ENTRY org.eclipse.jdt.ls.core 1 0 2021-04-06 13:01:56.665
!MESSAGE >> document/codeAction```

My solution was:

Spent the last hour trying to figure out what the heck was going on. Realized @Setter and @JsonProperty imports were conflicting with one another. Removing one or the other solves the issues I was experiencing in VSCode.
However, I don't believe this extension has anything to do with it. I uninstalled the extension entirely and the language server was still having hiccups when both imports were present.

Hmm, copying over lombok.jar seemed to fix it for me.      Did you restart your language server to verify it wasn't in the classpath?  I'm wondering if the jar file that caused it to break is still in the classpath.


Position is ignored when Cartesian is specified in AudioBlockFormatObjects constructor

This doesn't assert, which was a bit of a surprise:
adm::CartesianPosition pos(adm::X(0.1), adm::Y(0.2), adm::Z(0.3));
adm::AudioBlockFormatObjects block_format(pos, adm::Cartesian(true));
assert(block_format.get<adm::CartesianPosition>().get<adm::X>().get() == 0.0);

This happens because the setter for Cartesian does this:
  void AudioBlockFormatObjects::set(Cartesian cartesian) {
    if (isDefault<Cartesian>() || get<Cartesian>() != cartesian) {
      cartesian_ = cartesian;
      if (cartesian == true) {
        set(CartesianPosition());
      } else {
        set(SphericalPosition());
      }
    }
  }

I'm not really sure what the best behavior would be here. To just fix this, we could remove the 'isDefault' check from the setter, and therefore only make the change if the requested cartesian-ness is not the same as the current position and/or flag:
  void AudioBlockFormatObjects::set(Cartesian cartesian) {
    cartesian_ = cartesian;
    if (get<Cartesian>() != cartesian) {
      if (cartesian == true) {
        set(CartesianPosition());
      } else {
        set(SphericalPosition());
      }
    }
  }

Having the cartesian flag at all seems a bit odd now, because the type of the position and the flag are always kept in sync, so it could either be removed or replaced with a boolean flag to say whether it exists or not. If this was done, might it make sense to use a variant to store the position, too? That should simplify all this a bit.

Thanks for spotting this.
After looking at this a little bit, I think the problem is somewhere else, because even the constructor without the cartesian flag does not work.
The following (yet missing) unit test does also fail:
adm::CartesianPosition pos(adm::X(0.1), adm::Y(0.2), adm::Z(0.3));
adm::AudioBlockFormatObjects block_format(pos);
REQUIRE(block_format.get<adm::CartesianPosition>().get<adm::X>().get() == 0.1f);

This is because the Cartesian flag will be set implicitly here:
void AudioBlockFormatObjects::set(CartesianPosition position) {
    cartesianPosition_ = position;
    unset<SphericalPosition>();
    set(Cartesian(true));
  }

which will then in turn overwrite the cartesian position value :-(
The fix could be trivial, but I think it's worth checking all other uses of the Cartesian flag int he AudioBlockFormatsObjects as well.
Regarding the duplicity of having a cartesian flag and the position type:
The general design philosophy was to stay as close to the BS.2076 recommendation as possible/feasible. Thus, if you're familiar with the ADM in general it should be straightforward to kguess which parameters are available within the lib, and vice versa.
That being said, we can and should discuss where to draw the line here, because we already introduced deviations when it would render the libadm to painful to use.

Ah, ok, yes. Thanks for looking into it.
Your test is simpler, but I think the root cause is the same. It could be better described as "setting the cartesian flag may reset the cartesian position". My replacement for ::set fixes both issues.
Regarding the duplication, I think the interface is probably fine, it just seems odd to have code to maintain invariants on data structures when the data structures could be simplified such that the invariants are always met.

The problem with "removing" the cartesian flag is the optional nature of the this flag.
Setting this flag only based on the position type is not able to represent all possible states.
That means that parsing and writing a "file" without modification could lead to different (yet equivalent) XML representations.
I'd propose to fix the obviously wrong behaviour now and put the Cartesian flag removment on th e list for a separate API improvement / clarification discussion?


[R Package] 'lgb.get.eval.result' function gives error

Hi,
I'm running LightGBM in R for Windows.
I can run most fucntions and the speed improvement is huge.
I'm trying to understand both lgb.cv and lgb.train output. So, I've tried to run lgb.get.eval.result, however I get an error message:
Error in lgb.get.eval.result(model, "train", "regression") :    lgb.get.eval.result: wrong data name
I already tried to use both my own data and agaricus.train data from the R Package.
I've tried this:
lgb.get.eval.result(model, "dtrain", "regression")
and this
lgb.get.eval.result(model, "train", "regression") even though I know it should use dtrain .
Any idea?
Thank you

@Laurae2 it seems that is something wrong with R. Do you know why ?

@guolinke Works correctly here.
Reproducible example:
library(lightgbm)
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
data(agaricus.test, package = "lightgbm")
test <- agaricus.test
dtest <- lgb.Dataset.create.valid(dtrain, test$data, label = test$label)
params <- list(objective = "regression", metric = "l2")
valids <- list(test = dtest)
model <- lgb.train(params,
                   dtrain,
                   100,
                   valids,
                   min_data = 1,
                   learning_rate = 1,
                   early_stopping_rounds = 10)
lgb.get.eval.result(model, "test", "l2")
#  [1] 6.441652e-17 1.972152e-31 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
# [11] 0.000000e+00 0.000000e+00 0.000000e+00

@patarol You are using the wrong values for the parameters. Check the reproducible example above.

@Laurae2 Thank you!!
I tried to look up in ?lgb.get.eval.result but no usage example comes within the R documentation  help.
I didn't know that the dataset should be a "lgb.Dataset" "R6" data derived from lgb.Datased.
It would be great if both the usage example (like this one used by you) and type of dataset should be used as argument for lgb.get.eval.result in R documentation help.
Thank you again!
P.S.: lgb.train runs amazingly fast.

re-open this, I'll make a PR to fix during this day and it will be closed automatically once the PR gets merged to the master branch.

@Laurae2 updates ?


[QUESTION] How to build whl file with uv that exist same name in pypi??

I am planning to create a project that uses a local .whl file with uv.
However, there is a .whl file with the same name available on PyPI.
For example, our pyproject.toml looks like this:
[project]
name = "test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "langflow-base",
]

[tool.uv.sources]
langflow-base = { path = "../../../tmp/langflow_base-0.1.1-py3-none-any.whl" }

After building the project with uv, when I try to install the generated .whl file from another location, it downloads the file from PyPI instead.
How can I configure the build process to prioritize the local .whl file?
Thanks for solving my problem

A built package can't contain references to other wheels via a relative file path, that's sort of "by definition".
At install time, you'd need to add an index containing a wheel for the package, e.g., with --find-links <directory>

I'd recommend picking a unique name to avoid confusion though.

Thank you so much. I solved my problem using --find-links


Add Singularity instructions and improve Docker info

ENSVAR-4874

Check the changes in my sandbox.
Check if the Singularity commands make sense.

@nuno-agostinho  - could you confirm is this is for 108 or 109?

Hi @msmanoj! It would be nice to include in 108 if possible, but it's not urgent. @nakib103 still needs to review if the Singularity documentation makes sense.


Add verifiers to CHAPI playground test suite.

Made changes to bound language.

@dlongley @gannan08 I have added details to the README about how to implement an issuer/verifier and the endpoints that are required.


libpython3.6m.so.1 is missing

Hi,
Your installation of python 3.6.1 is without the shared library resource in:
/usr/lib/arm-linux-gnueabihf/libpython3.6m.so.1
https://github.com/pyenv/pyenv/issues/917 says that BEFORE installing python the following should be set:
CONFIGURE_OPTS=--enable-shared pyenv install 3.6.1
Without this, cmake of OpenCV 3.0.0 fails for python 3.6.1, it does not find the library which is a must for numpy.
follow:
https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/
Can you kindly check this up ?
Best,
Mickey
===================================================
I am using Raspberry Pi 4 model B:
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"

I do not understand how this issue is with berryconda. Can you provide more details about how you have installed berryconda and what you are trying to accomplish?

The libpython3.6m.so.1 file is missing from the python 3.6 packages in berryconda.  The package does supply libpython3.so, libpython3.6m.so and libpython3.6m.so.1.0 files in the lib directory of the environment where the package is install.  A symlink the the last of these would be the appropriate target for the .so.1 file.  In most cases the un-numbered SO will suffice.
When building OpenCV the Python library can be passed during configuration with -DPYTHON_LIBRARY=/path/to/libpython3.6.m.so.  The opencv-feedstock may offer additional hints on building OpenCV against Python not installed in the system location.

Hi
I intalled it twice on a clean Raspberry Pi 4B. In both case neither libpython3.6m.sohttp://libpython3.6m.so/ nor libpython3.6m.sohttp://libpython3.6m.so/.1.0 were
installed.
So, again on a clean OS, I installed python 3.6.1 and the dev package of 3.6.1  BEFORE   installing berryconda. And the make file detected everything without a need for:
DPYTHON_LIBRARY=/path/to/libpython3.6.m.so
The suggested DPYTHON_LIBRARY would solve the problem of OpenCV that looks at the python version of conda instead of the version I install under an active environment under which I would want to compile OpenCV.
Best,
Mickey

From: Jonathan J. Helmus<EMAIL_ADDRESS>Sent: Wednesday, October 16, 2019, 11:33 PM
To: jjhelmus/berryconda
Cc: tadam98; Author
Subject: Re: [jjhelmus/berryconda] libpython3.6m.so.1 is missing (#72)
The libpython3.6m.so.1 file is missing from the python 3.6 packages in berryconda. The package does supply libpython3.so, libpython3.6m.so and libpython3.6m.so.1.0 files in the lib directory of the environment where the package is install. A symlink the the last of these would be the appropriate target for the .so.1 file. In most cases the un-numbered SO will suffice.
When building OpenCV the Python library can be passed during configuration with -DPYTHON_LIBRARY=/path/to/libpython3.6.m.so. The opencv-feedstockhttps://github.com/conda-forge/opencv-feedstock may offer additional hints on building OpenCV against Python not installed in the system location.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/jjhelmus/berryconda/issues/72?email_source=notifications&email_token=AFBMCT3WLW6IHCGFJQZ5RFDQO53ADA5CNFSM4JAGKMZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBN26EY#issuecomment-542879507, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFBMCT4TQQFG5GUNLDFV5VDQO53ADANCNFSM4JAGKMZQ.

I intalled it twice on a clean Raspberry Pi 4B. In both case neither libpython3.6m.sohttp://libpython3.6m.so/ nor libpython3.6m.sohttp://libpython3.6m.so/.1.0 were installed.

Where are you looking for these files?  They should be in the lib directory under the folder where berryconda is installed.  I just did a fresh install and all three files were present.

Nope. I looked in the folder I wrote. Will check again. And if there I will use the suggeted define.
I amny case, I would prefer the standard installtion onto the folder I wrote as your install should be "under" the conda rather than one of the environments.
Unless there is a python path pointing to your folder after the installation which OpenCV would use. This did not happen for me.
Best,
Mickey

From: Jonathan J. Helmus<EMAIL_ADDRESS>Sent: Wednesday, October 16, 2019 11:49:46 PM
To: jjhelmus/berryconda<EMAIL_ADDRESS>Cc: tadam98<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [jjhelmus/berryconda] libpython3.6m.so.1 is missing (#72)
I intalled it twice on a clean Raspberry Pi 4B. In both case neither libpython3.6m.sohttp://libpython3.6m.so/ nor libpython3.6m.sohttp://libpython3.6m.so/.1.0 were installed.
Where are you looking for these files? They should be in the lib directory under the folder where berryconda is installed. I just did a fresh install and all three files were present.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/jjhelmus/berryconda/issues/72?email_source=notifications&email_token=AFBMCT5NSOXZQDOLW3UMRFLQO546VA5CNFSM4JAGKMZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBN4NQI#issuecomment-542885569, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFBMCTZ5N2NJJRQ2EZSTYWTQO546VANCNFSM4JAGKMZQ.

I amny case, I would prefer the standard installtion onto the folder I wrote as your install should be "under" the conda rather than one of the environments.

Conda is designed to install files into a location separate from the operating system paths.  Installing into system paths is not possible.

Will try again on a fresh install and let you know.
Best,
Mickey

From: Jonathan J. Helmus<EMAIL_ADDRESS>Sent: Wednesday, October 16, 2019 11:58:56 PM
To: jjhelmus/berryconda<EMAIL_ADDRESS>Cc: tadam98<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [jjhelmus/berryconda] libpython3.6m.so.1 is missing (#72)
I amny case, I would prefer the standard installtion onto the folder I wrote as your install should be "under" the conda rather than one of the environments.
Conda is designed to install files into a location separate from the operating system paths. Installing into system paths is not possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/jjhelmus/berryconda/issues/72?email_source=notifications&email_token=AFBMCTZ443TTHOWXW5ZOI3TQO56BBA5CNFSM4JAGKMZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBN5JKI#issuecomment-542889129, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFBMCT5YLZQVTVHYPPKJKQDQO56BBANCNFSM4JAGKMZQ.

Hi,
Adding the suggested -D worked fine.
(Compilation of OpenCV on RP4B fails because of missing sys/videoio.h but this is not a conda isssue. Thank you for your quick response).
Best,
Mickey

From: Mickey Cohen
Sent: Wednesday, October 16, 2019 9:17 PM
To: jjhelmus/berryconda<EMAIL_ADDRESS>jjhelmus/berryconda<EMAIL_ADDRESS>Cc: Author<EMAIL_ADDRESS>Subject: Re: [jjhelmus/berryconda] libpython3.6m.so.1 is missing (#72)
Will try again on a fresh install and let you know.
Best,
Mickey

From: Jonathan J. Helmus<EMAIL_ADDRESS>Sent: Wednesday, October 16, 2019 11:58:56 PM
To: jjhelmus/berryconda<EMAIL_ADDRESS>Cc: tadam98<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [jjhelmus/berryconda] libpython3.6m.so.1 is missing (#72)
I amny case, I would prefer the standard installtion onto the folder I wrote as your install should be "under" the conda rather than one of the environments.
Conda is designed to install files into a location separate from the operating system paths. Installing into system paths is not possible.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/jjhelmus/berryconda/issues/72?email_source=notifications&email_token=AFBMCTZ443TTHOWXW5ZOI3TQO56BBA5CNFSM4JAGKMZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBN5JKI#issuecomment-542889129, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFBMCT5YLZQVTVHYPPKJKQDQO56BBANCNFSM4JAGKMZQ.


Provide a way to bypass rustup

cargo public-api should provide a way to bypass the rustup checks, so that any cargo binary can be used.
This could maybe be done by respecting the CARGO env-var.

related #613


Opt out of PORT

Is there a way to out of setting the $PORT automatily?

We're using unset as a workaround:
app: unset PORT && run_app.sh

Added --no-port (-N) flag to 2.2.0


Misc Fixes

[x] Dynamic list setting add page broken
[x] Opacity slider in Show Inviable Entities is always active
[x] Make Packet Cancel debug mode print readable class names
[x] Have Checkbox be the default display type for bool setting
[x] Look into Vector for thread safe lists
[ ] Fix now flickery Add element tooltip
[ ] Make all tooltips a consistent size
[x] Rewrite Ray caster
[ ] See if No Chat Normalization does anything
[x] Make Item Shortcuts not activate when in a screen
[x] More info in the about command (game version, loader version, mapping version, protocol version, etc.)
[x] Fix chat command
[ ] Proper error messages in resourcepack command
[ ] Cleanup /util run repeat syntax
[ ] Make killing a delay task not send message

maybe:

[ ] Fix now flickery Add element tooltip
[ ] Make all tooltips a consistent size


Loading page after files are public

I can run hugo server and the site looks great. If I run hugo and get the html files I just get spinning screen whether on webserver or local.
Start building sites …
hugo v0.88.1-5BC54738 windows/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
               | EN

-------------------+-----
Pages            | 40
Paginator pages  |  1
Non-page files   |  0
Static files     | 95
Processed images |  0
Aliases          |  5
Sitemaps         |  1
Cleaned          |  0
Total in 17149 ms

Hey @Brantlab ,
Thanks for using our theme. It seems that you already compiled the Hugo files. Can you please indicate what issue you are facing here? Is it the spinning issue or anything else? Sometimes a video can give us a deep understanding about the issue ( use loom.com and create a video )
Thanks

Actually turning cookies off  in the config.toml fixed my issue
`# cookies
[params.cookies]
enable = false
expire_days = 2`
The site would come up and just act like it was loading

Good to know that your issue has been fixed . May I know where you are using this theme(Domain) . And why you choose this theme ?
Also would be grateful if you put a star in this repo.
Thanks


Base kubectl branch for 1.19-rc.0

1.19 pick list
Previous base https://github.com/openshift/kubernetes-kubectl/pull/20
Following https://github.com/openshift/enhancements/blob/master/enhancements/oc/upgrade_kubernetes.md

Closing for https://github.com/openshift/kubernetes-kubectl/pull/25
/close

/reopen


Material UI Template links are not working

All links(source code) of free react templates inside the docs of mui are not working.
Page Link: https://mui.com/material-ui/getting-started/templates/
After seeing on the devtools its page is getting undefined for environment variables
const sourcePrefix = `${process.env.SOURCE_CODE_REPO}/tree/v${process.env.LIB_VERSION}`;
code repo page link
Template urls we get undefined/tree/vundefined/docs/data/material/getting-started/templates/dashboard

I will do it please assign me to it.

I will do it please assign me to it.

Thanks!

I'm already work on ,could you assign me to it.

It looks like the regression comes from #34454. I believe this PR also broke https://mui.com/joy-ui/getting-started/templates/

Fixed with https://github.com/mui/material-ui/pull/34454#issuecomment-1288127728


Support authoritative AND recursor simulaneously on one node

If you try to create both an authoritative and recursor on one node by defining them in hiera create_resources fails in init.pp as such:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Duplicate declaration: Powerdns::Config[local-address] is already declared in file /etc/puppetlabs/code/environments/dev_powerdns/modules/powerdns/manifests/init.pp:42; cannot redeclare at /etc/puppetlabs/code/environments/dev_powerdns/modules/powerdns/manifests/init.pp:51 at /etc/puppetlabs/code/environments/dev_powerdns/modules/powerdns/manifests/init.pp:51:5 on node ns1.nrg.wustl.edu

Here's my hiera:
powerdns::backend: 'postgresql'
powerdns::backend_install: false
powerdns::backend_create_tables: false
powerdns::db_host: 'localhost'
powerdns::db_name: 'pdns'
powerdns::db_username: 'pdns'
powerdns::db_password: "%{hiera('generic::credentials::ns1_postgres_pdns_password')}"
powerdns::authoritative::package_ensure: 'latest'
powerdns::authoritative: true
powerdns::auth::config:
  local-address:
    value: '<IP_ADDRESS>'
  local-port:
    value: 5300
  api:
    value: 'yes'
  api-key:
    value: "%{hiera('generic::credentials::ns1_api_key')}"
  webserver-address:
    value: '<IP_ADDRESS>'
  webserver-allow-from:
    value: '<IP_ADDRESS>/28'
powerdns::recursor: true
powerdns::recursor::package_ensure: 'latest'
powerdns::recursor::config:
  local-address:
    value: "%{::ipaddress}"
  allow-from:
    value: '<IP_ADDRESS>/0'
  forward-zones:
    value: 'nrg.wustl.edu=127.0.01:5300'
  forward-zones-recurse:
    value: '.=<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>'

If I leave aout the powerdns::recursor::config section, both get installed an running, but obviously only the authoratitive is configured.

This is due to Hiera passing on local-address as the $name parameter to powerdns::config. The only way to get around this for now is to change it as follows:
powerdns::auth::config:
  local-address-auth:
    setting: 'local-address'
    value: '<IP_ADDRESS>'
powerdns::recursor::config:
  local-address-recursor:
    setting: 'local-address'
    value: "%{::ipaddress}"

(this is how we run it in production ourselves - if it doesn't work let me know)

Of course, fixing that just lead to the next duplicate setting name causing a conflict.   However, I get the joke now and have it working as expected.
Probably worth adding a note about this in the README.md.

@lschweiss-wustl I agree. I've added it to the documentation. It'll be included in the next release. Thanks for reporting this and good to hear you got it working.
Feel free to open a pull/merge requests if you find anything that can be improved by the way.


[Issue #8268][Pulsar Function] k8s runtime with go functions support

Fixes #8268
Motivation
currently, go function cannot work with k8s runtime other than java and python, this PR is intended to add go function support with k8s runtime.
Modifications
removed UnsupportedOperationException with GO function, fixed go function executable permissions, and fix arguments passed to go function with correct format.
this PR is making k8s runtime with go function workable, but may not cover all k8s scenarios, so comments are welcome, also need some help with tests, havnt add any tests yet.
Verifying this change

[ ] Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:
tests WIP

@freeznet Can you add an integration test for this?

@freeznet Can you add an integration test for this?

sure, wip

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

The change overall looks good. But I think we need to add an integration test to ensure this work.

@sijie thanks for your review. currently the pulsar repo do not have any integration test implemented with k8s runtime, maybe we should create a new issue to address the lack of integration test for k8s runtime. once the integration tests with k8s runtime implemented, then we can manage the integration tests with k8s runtime & golang functions.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

Error:  Tests run: 3, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 153.034 s <<< FAILURE! - in org.apache.pulsar.client.api.ClientDeduplicationFailureTest
Error:  testClientDeduplicationCorrectnessWithFailure(org.apache.pulsar.client.api.ClientDeduplicationFailureTest)  Time elapsed: 20.957 s  <<< FAILURE!
java.io.IOException: Error open RocksDB database
	at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:184)
	at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:85)
	at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.lambda$static$0(KeyValueStorageRocksDB.java:60)
	at org.apache.bookkeeper.bookie.storage.ldb.LedgerMetadataIndex.<init>(LedgerMetadataIndex.java:69)
	at org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage.<init>

depends by #8780