x error, unexpected ':', expecting '=' on M-x evernote-login

I feel like i've been installing everything from scratch and in circles today, but i think i've finally hit an issue that is out of my hands. I hope you can point out a solution, although it seems it's with the oauth code.
Here's the Messages output when i attempt M-x evernote-login. The error occurs before the prompt to enter credentials.
x error, unexpected ':', expecting '='
            with_resources_data: false,
                                ^
/opt/local/lib/ruby/gems/1.8/gems/evernote_oauth-0.2.3/lib/evernote/edam/type/resource.rb:18: Can't\
 assign to false
/opt/local/lib/ruby/gems/1.8/gems/evernote_oauth-0.2.3/lib/evernote/edam/type/resource.rb:19: synta\
x error, unexpected ':', expecting '='
            with_resources_recognition: false,
                                       ^
/opt/local/lib/ruby/gems/1.8/gems/evernote_oauth-0.2.3/lib/evernote/edam/type/resource.rb:19: Can't\
 assign to false
/opt/local/lib/ruby/gems/1.8/gems/evernote_oauth-0.2.3/lib/evernote/edam/type/resource.rb:20: synta\
x error, unexpected ':', expecting '='
            with_resources_alternate_data: false
                                      ^
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in  require'
    from /opt/local/lib/ruby/gems/1.8/gems/evernote_oauth-0.2.3/lib/evernote_types.rb:6
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in  gem_original_require'
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:31:in  require'
    from /opt/local/lib/ruby/gems/1.8/gems/evernote_oauth-0.2.3/lib/evernote_oauth.rb:6
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in  gem_original_require'
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in require'
    from /usr/bin/enclient.rb:44

Quit

And here is a long note of how my system is configured. The file listing of installation logs provides clues to time/order of installations and by what method.

OS X 10.9.5 Mavericks
MacPorts: GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0)
ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin13]
gdbmtool (gdbm) 1.11)

Then a message that libgdbm.dylib couldn't be found, so another symbolic link:
sudo ln -s /opt/local/lib/libgdbm.dylib /usr/local/lib/libgdbm.dylib
ls -l .emacs.d/lisp/org-evernote.el
-rw-r-----@ 1 judielaine  staff  2530 May 17 21:23 .emacs.d/lisp/org-evernote.el
History of various installs
-rw-r--r--  1 judielaine  staff    107 May 26 07:47 InstallLogs/gemLogs/evernote_oauth.20150526
-rw-r--r--  1 judielaine  staff   2530 May 26 07:47 InstallLogs/evernote-mode/org-evernote.el
-rw-r--r--  1 judielaine  staff  94188 May 26 07:47 InstallLogs/evernote-mode/evernote-mode.el
(i tried remaking these all over at the very end and still got the error above)
-rw-r--r--  1 judielaine  staff    130 May 26 09:11 InstallLogs/gemLogs/gdbm.20150526
-rw-r--r--  1 judielaine  staff    183 May 26 09:13 InstallLogs/gemLogs/ffi.20150526
-rw-r--r--  1 judielaine  staff    463 May 26 09:31 InstallLogs/MacPortsLogs/gdbm.20150526
I w3m                20150522.357  available  melpa      an Emacs interface to w3m
-rw-r--r--  1 judielaine  staff   8519 May 26 16:22 InstallLogs/EmacsLogs/w3m-20150526
-rw-r--r--  1 judielaine  staff    847 May 26 16:55 InstallLogs/MacPortsLogs/w3m.20150526
-rw-r--r--  1 judielaine  staff   1720 May 26 17:15 InstallLogs/MacPortsLogs/ruby.20150526
   9  17:21   sudo ln -s /opt/local/bin/ruby1.8 /opt/local/bin/ruby
drwxr-xr-x  6 judielaine  staff    204 May 26 17:24 InstallLogs/evernote-mode/ruby
           sudo ln -s /opt/local/bin/enclient.rb /usr/bin/enclient.rb
-rw-r--r--  1 judielaine  staff   1062 May 26 18:35 InstallLogs/MacPortsLogs/rb-rubygems.20150526
-rw-r--r--  1 judielaine  staff    470 May 26 18:44 InstallLogs/gemLogs/evernote_oauth.20150526b

`

Try upgrading to Ruby 1.9 to see if that solves the problem.

Thanks for the suggestion. It appears to have solved the oauth issue, but left me with another mystery.
Upgraded ruby & rubygems;
used gem to reinstall gdbm & ffi & evernote_oauth;
used ruby to setup evernote-mode.
Now when i run M-x evernote-login the exceedingly terse message in the message buffer is
Waiting for the result...
progn: No catch for tag: error, 2

Did you configure evernote-developer-token yet?


Does not run as unprivileged user

I've just installed version  0.9.3 on a Win10 64bit box.
As privileged user (eg, in 'Administrators' group) work as expected; for an unprivileged user, does not run, and don't emit errors or so; simply does not run.
Thanks.

Ok. @alex5105 i think like the work you are doing on portable installer would fix this.
@marcogaio there is a problem - and this would exist on any app that wants to take over mouse or keyboard actions. You can’t control full screen uiaccess apps (eg Grid3 Tobii Dynavox software ) unless they are installed as admin with the uiaccess flag. But if you don’t need that we should be able to make a “portable “ app that runs wherever you put it

But I have installed as admin, and then used as unprivileged user... i'm a sysadmin and i use scripted provisioning to install software on users pc (currently, with a tool called WPKG).
I've installed software with commandline:
"%SOFTWARE%\WPKG\FaceCommander-Installer-v0.9.3.exe" /sp- /verysilent /suppressmsgboxes /norestart /lang="it" /mergetasks="desktopicon"
from administrators user (precisely: SYSTEM use), and then i've tried to run it from an unprivileged one.

Ok. I think this is all the same issue actually. It’s to do with a) the config and logging paths the app uses and b) the installer needing admin rights and c) the app needing to be signed / with uiaccess flag
@marcogaio nothing you can do until we fix a couple of things

@marcogaio try 0.9.4 (latest release)

@marcogaio try 0.9.4 (latest release)

No, still does not work: app start, open the debug window, then crash.
Seems even was able to create folders in profiles for unprivileged users; for examples for user 'gaio' (a privileged one) i can see C:\Users\gaio\AppData\Local\AceCentre\FaceCommander folder and within the log.txt logfile.
 USB or other.. I have a feeling this crash is more complicated than user permissions.

Yes; i've still installed 'Project Gameface', and for the same unprivileged user Face Commander does not work while Project Gameface yes...

Ok. I think I see the problem. I can’t say I know how to fix this yet. I’m on holiday for the next week or so so give a little while..


fix(risedev): use tmux -L to isolate with possible other tmux instances in the system

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Previously if the system has a tmux config (~/.tmux.conf) that spawns some tmux sessions on tmux startup, risedev k will not completely kill the whole tmux instance. This PR changes to use tmux -L risedev to prevent possible conflict with other instances and use tmux -L risedev kill-server to kill the whole instance started by risedev d. Fixes #15885.
Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

cc @MrCroxx Is this the case of #14228?


[BUG] Hover Effect missing and loading twitter button Every time when fetch happen

Hover Effect not working for Space, cooking, and music buttons.
We need to fix the Twitter link button Every time loads when fetching new jokes etc.

Can I work on this?

i am working on this you can create new issue


Remove Semantic Tasks extension

I'm not sure what's going on with this extension. Canasta until now has been using the Wikiteq fork of this extension, at https://github.com/WikiTeq/SemanticTasks, but it became unmaintained, and was just archived a few weeks ago. The official Semantic Tasks repository is at https://github.com/SemanticMediaWiki/SemanticTasks, but it too seems to be essentially unmaintained - the last non-i18n commit was over two years ago. I have no idea if Semantic Tasks works with MW 1.43, but I'm pretty sure it doesn't work yet with the current SMW version, 4.2: this discussion stated that ST was not yet working with SMW 4.x in September 2022 - and that commit I linked to is the only commit that ST has had since that discussion.
I think this extension should be removed from Canasta. It doesn't seem to get much usage: the talk page about it is minimal, and Canasta is the only package or wiki farm that uses it. It was only added to Canasta last year, in #258. As I wrote during that discussion, it's a silly use of SMW, and would have been much better implemented via a simple parser function that takes in a due date, a set of assignees, etc. But this is all sort of irrelevant if the extension isn't working in the first place

@vedmaka - I am especially curious about your opinion on this, since you had asked for Semantic Tasks to be added in the first place.


Errors: Frient (Develco) SMSZB-120 en HESB-120

Hello,
I have two Frient HESZB-120 heat detectors installed (recognized and installed as Develco HESZB-120), both work within Domoticz and the plugin.
However in the Domoticz log appears the repeating error messages
"2022-02-14 20:14:33.897 Error: Zigbee2MQTT: Brandmelder (keuken): can not process binary item "test"
2022-02-14 20:14:33.898 Error: Zigbee2MQTT: Brandmelder (keuken): can not process numeric item "max_duration"
2022-02-14 20:14:33.899 Error: Zigbee2MQTT: Brandmelder (keuken): can not process binary item "alarm"
2022-02-14 20:14:33.899 Error: Zigbee2MQTT: Brandmelder (keuken): can not process binary item "fault"
2022-02-14 20:14:34.006 Error: Zigbee2MQTT: Brandmelder (schuur): can not process binary item "test"
2022-02-14 20:14:34.006 Error: Zigbee2MQTT: Brandmelder (schuur): can not process numeric item "max_duration"
2022-02-14 20:14:34.007 Error: Zigbee2MQTT: Brandmelder (schuur): can not process binary item "alarm"
2022-02-14 20:14:34.007 Error: Zigbee2MQTT: Brandmelder (schuur): can not process binary item "fault"
2022-02-14 20:14:34.182 Error: Zigbee2MQTT: Brandmelder (huiskamer): can not process binary item "test"
2022-02-14 20:14:34.182 Error: Zigbee2MQTT: Brandmelder (huiskamer): can not process numeric item "max_duration"
2022-02-14 20:14:34.182 Error: Zigbee2MQTT: Brandmelder (huiskamer): can not process binary item "alarm"
2022-02-14 20:14:34.183 Error: Zigbee2MQTT: Brandmelder (huiskamer): can not process binary item "fault"
Smoke detector en temperature working fine.
On 4-9-2021 I already brought this problem in, but then nothing could be done about it and I could ignore the messages.
What is the cause of these messages and is there perhaps a solution now?
I hoped that the error messages will go away with the new recent updates, but they did not.
RaspberryPi 3b
Domoticz Version: 2022.1
Python Version: 3.7.3
Plugin Version 3.1.0.-beta
Zigbee2mqtt v.1.23.0 (zStack12 20190608)
Zigbee CC2531 coordinator USB-dongle (soon the CC2652RB)
What could be the problem ?
Thanks in advance !
Regards, Theo (NL).

The errors should gone with the latest plugin version


Document fan-out request support

The Toguru Scala client provides support for keeping the state of a
toggle consistent over sub-requests. This adds some documentation to
the README of this project.

Coverage remained the same at 96.277% when pulling 771ebdd0b402ba0abd223f7fc347c91e8b3993fb on andreas-schroeder:fanout-request-support-docs into f46aec3231759934b75023bf38026fe730803dc4 on AutoScout24:master.

Coverage remained the same at 96.277% when pulling 771ebdd0b402ba0abd223f7fc347c91e8b3993fb on andreas-schroeder:fanout-request-support-docs into f46aec3231759934b75023bf38026fe730803dc4 on AutoScout24:master.


Update mockito-core to 3.5.15

Updates org.mockito:mockito-core from 3.3.3 to 3.5.15.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.mockito", artifactId = "mockito-core" } ]

labels: test-library-update, semver-minor

Superseded by #88.


Weird Gui Bug

Hello, I'm experiencing a weird bug. Please see the picture uploaded for reference. Basically none of the buttons are working except the Play/Stop.
I've already restarted the app, then reinstalled the app and finally rebooted the PC. None have worked...

It looks like your player list got corrupted somehow. Try hitting "clear list" and re-adding the players you want.

Thanks it worked!
Too bad we lose the info on a specific player and his contribution to lifetime profit once we take him out of the list.

@hunterjm I have also experienced this issue multiple times. Not sure what causes it.

I guess that new players do this. It seems that when I add players that switched clubs during this transfer window (fonte, deulofeu, markovic, depay for instance) the app bugs. All players still show their previous club on the app.

or having our own players in the transfer list to be sold, it seems the app doesn't handle very well with that..

@Daves10 - I am seeing both versions of the card available when searching for deulofeu.  I will make a note to store the player contributions separately from the player list in the future so that removing them from the list doesn't lose their history if you ever were to add them back, and so they will still count toward lifetime profit.

see #59 for keeping history.  I don't really have time to dig into the root cause of the player list being corrupted, but I am going to close this out as hitting "clear list" is a short term solution.


Difficulty Feature Added

PR Description 📜
I have removed the input column for rows and columns and I have added Difficulty selection.
Now players can easily select difficulty levels for them and it will also make game board to render on predefined size.
Fixes #546

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for review.

## Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

great change!


Deleting un-used code in default files

hi All
I thought gulp was being taken out?

On Apr 28, 2015, at 10:04 AM, Mike Loffland<EMAIL_ADDRESS>wrote:
You can view, comment on, or merge this pull request online at:
https://github.com/codeforokc/school-finder/pull/81 https://github.com/codeforokc/school-finder/pull/81
Commit Summary
Deleting un-used code
File Changes
M school-finder-frontend/app/DefaultController.js https://github.com/codeforokc/school-finder/pull/81/files#diff-0 (18)
M school-finder-frontend/app/default.html https://github.com/codeforokc/school-finder/pull/81/files#diff-1 (29)
Patch Links:
https://github.com/codeforokc/school-finder/pull/81.patch https://github.com/codeforokc/school-finder/pull/81.patch
https://github.com/codeforokc/school-finder/pull/81.diff https://github.com/codeforokc/school-finder/pull/81.diff
—
Reply to this email directly or view it on GitHub https://github.com/codeforokc/school-finder/pull/81.

Dee... You are correct.
I was going to address that stuff in a different PR... But, it probably makes more sense to wrap all the cleanup stuff into one PR.

Hi Mike
Great…. I think we are making great progress and thanks for all the stuff you put in.  BTW what’s PR?

On Apr 28, 2015, at 10:10 AM, Mike Loffland<EMAIL_ADDRESS>wrote:
Dee... You are correct.
I was going to address that stuff in a different PR... But, it probably makes more sense to wrap all the cleanup stuff into one PR.
—
Reply to this email directly or view it on GitHub https://github.com/codeforokc/school-finder/pull/81#issuecomment-97100407.

PR = Pull Request


Update all readmes

Motivation and Context
Closes https://github.com/kedro-org/kedro/issues/3111
I made all spaceflight starter README.md files consistent. And updated any outdated info.
Checklist

[ ] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
[ ] Assigned myself to the PR
[ ] Added tests to cover my changes

Thanks for the changes @merelcht -- all look good to me. I committed them.


Swift Compiler Error: Type 'UITextView' has no member 'textDidChangeNotification'

Using v1.4.0 from cocoapods (latest as of the writing of this post).
In the file "NextGrowingInternalTextView.swift", the "addObserver" line from the code snippet below has an error with the name input parameter, saying "Type 'UITextView' has no member 'textDidChangeNotification'."
I have spent hours trying to determine why textDidChangeNotification is not being recognized. I have removed the dependency, added it back, cleaned, and rebuilt multiple times to no avail. Perhaps it is deprecated in Swift 4. Would appreciate some help on this. Thanks!
override init(frame: CGRect, textContainer: NSTextContainer?) {
    super.init(frame: frame, textContainer: textContainer)

    NotificationCenter.default.addObserver(self, selector: #selector(NextGrowingInternalTextView.textDidChangeNotification(_ :)), name: UITextView.textDidChangeNotification, object: self)
  }

I also had same problem. (using Swift4.0)
I changed 'UITextView.textDidChangeNotification' into '.UITextViewTextDidChange' and fixed this issue.
I think that this fix works correctly.
But, I don't know that if this fix will work under Swift 4.2.

i also had same issue facing with swift 4.2.0

NSNotification.Name.UITextViewTextDidChange Swift 4.2

thank you @jtaka1012


Is that possible to make a survival model from xgboost?

Basically, change the objective function and evaluation metrics. The evaluation metrics could be timeROC.

You can def create a discrete time hazard model without any modifications, using the proper person-period data set. http://gseacademic.harvard.edu/alda/Handouts/ALDA Chapter 11.pdf is a quick reference. SAS actually has a fantastic course with a lot of details (can be ran on my software).

I am not sure how to combine period-event as one dependent variable.

Does a discrete time model fit your data or do you have continuous time? The work I do deals with monthly data mainly so it is a perfect fit.

I have death flag as the survival outcome variable, and last known alive day (in days) as time to event.

If you can treat the problem as a discrete time hazard model (read the pdf I posted) you can use any supervised learning algorithm (including xgboost). I have fit them with GBM and actually am doing it as we speak. If discrete time is not appropriate then I suggest you use another method such as cox regression (which is actually a loss function in the R GBM package if you wanted to stick with boosted trees). Good luck!

+1 cox regression loss function

move objective function proposal to https://github.com/dmlc/xgboost/issues/749


cgo-less?

I would like to be able to use tcell, but I have applications in places where CGO is  very much to be avoided. Is there a way to build a subset of tcell that avoids CGO completely?

Right now cgo is required to issue the ioctls to adjust the terminal settings.  We need to have more functionality in the Go runtime in order to make this possible.

Btw, cgo is not used for Windows.  It is only needed for UNIX platforms where we have to be able to make ioctls to change terminal settings.

As of now, CGO is only used on a few platforms (e.g. illumos/Solaris) -- all of the major mainstream platforms (Linux, macOS, and Windows, as well as other BSD based systems like FreeBSD) use system calls directly to bypass CGO.
A lot of this was fixed in #43
That said, if you have to build for illumos/Solaris, you're stuck with CGO for now.  That's because we don't have a nice ioctl syscall there and have to go through libc.
The other cases where libc is needed at present are if you are rebuilding the terminal database -- for that we are using libterminfo.  It turns out that this can probably be redesigned to parse the output from infocmp instead.  That would be something I'd be happy to see a PR for; I may get around to it eventually if nobody else does.  Of course, that means spawning out infocmp.
The good news is that the vast majority of developers should never need to rebuild the terminal database -- this is a manual procedure I only ever do by hand, and is not part of the standard build process.
I'm half tempted to close this PR, and open others for the other systems and to eliminate the terminfo native library calls.

It also turns out, I think, that we could use infocmp to yank and parse a terminal database definition at runtime, if it wasn't one we already knew about.  That would give us a lot more capability to respond automatically to new terminals showing up.  It would require a functional infocmp be in the users $PATH though.

So I did the infocmp thing.  The only time CGO is required is for platforms that don't have a suitable terminfo available via a system call.  At the moment, this means only Solaris/illumos need cgo.  All other platforms work fine without it.
I'm closing this for now -- fixing Solaris/illumos means adding functionality to the golang core library that is missing -- out of scope.


add option to only mirror public gitlab repositories.

For security reasons I like only to mirror public repositories.

please use the procudure described in CONTRIBUTING for sending changes. Thanks!


Can't import components from the ui package

I have included the ui package as a dependency on the web workspace and I'm trying to import the component Button from the ui package but it doesn't work.

Have you managed to get it working?


ippevesubmit: insert dates for plist files, not date when tool was run

The ippevesubmit tool generates JSON that includes a "date" field whose value is the date the tool was run, not the file date of the .plist files. This is a problem because If you run the IPP Everywhere Self-Certification tools and certify a printer on August 15, 2020 but run ippevesubmit on November 1, 2021, and there was a cutoff date in September, the user will be unable to have their submissions be accepted.

[master 1860a59] Use the modification date of the PLIST files for the submission date (Issue #81)


contrib/DropWizardMetrics: Exclude Meter rate measures

Codecov Report

Merging #1493 into master will decrease coverage by 0.06%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1493      +/-   ##
============================================
- Coverage     82.44%   82.38%   -0.07%
+ Complexity     1594     1593       -1
============================================
  Files           243      243
  Lines          7498     7471      -27
  Branches        702      702
============================================
- Hits           6182     6155      -27
  Misses         1100     1100
  Partials        216      216

Impacted Files
Coverage Δ
Complexity Δ

...encensus/contrib/dropwizard/DropWizardMetrics.java
95.45% <100%> (-1.07%)
15 <0> (-1)

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 809ed22...0516fc3. Read the comment docs.


Dockerfile: set default to bash

This sets a default to /bin/bash. The default being sh this should avoid issues for people running the docker with setting a shell.
This is easily overridden by passing the shell to the command as usual.

I'll double check but that only happens in the Github Action, no? When you launch the docker the rust toolchain is available (at least with bash). I'm just making sure it's not launched into sh by default.

Does the GH Actions still work with this?

If the GH builds works here after updating it to main, it should be fine, right?


Support required Vite@5

Hi, recently Vite was updated to 5 and seems no longer compatible.

https://github.com/yuyinws/vite-plugin-turbo-console/blob/a9f28d0a07ed82e8d66793358a2eada655592433/src/index.ts#L55

V0.3.0 is compatible with vite@5 now.


Update dg

Coverage remained the same at 88.209% when pulling 0b9c26d81b3b6926b58134d8dd9c2661f7d54fc6 on tshradheya:UpdateDG into 5ba973daaca7e659b7b87d106479abc6c315c2cf on CS2103AUG2017-W14-B1:master.


Support multiple certificates and other enhancement in TokenGenerator

Currently the TokenGenerator class only supports one private key/public certificate to issue/verify tokens.
For the verifying process, we want it smarter so it can choose a certificate based on the issuer to verify token. That makes the class verify tokens issued by different authorities.
Do we need to make the library issue tokens from different authorities (private keys) as well? If we do, I think it has lower priority thank verifying.
This class has another issue - it fetches certificate from the cn url every time when it verifies a token. We need a cache mechanism to eliminate those unnecessary network traffics. Since the cn LE certificate expires every three months, the cache mechanism should  handle the case either by periodically checking or refetching after a failure.

This the code of the class in the main branch.

Forgot to address these:

Do we need to make the library issue tokens from different authorities (private keys) as well? If we do, I think it has lower priority thank verifying.

I agree this is a lower priority (if it is even necessary at all), so we should punt for now.

This class has another issue - it fetches certificate from the cn url every time when it verifies a token. We need a cache mechanism to eliminate those unnecessary network traffics. Since the cn LE certificate expires every three months, the cache mechanism should handle the case either by periodically checking or refetching after a failure.

The existing code does actually cache the server cert, and does not re-fetch for every request. There is also a check every 5 minutes to ensure the cached copy is still valid, and finally, in case of a failure, the certificate is re-fetched.


Featured games service

https://developer.riotgames.com/api/methods#!/977
Implements end point to retrieve list of featured games.

Changes Unknown when pulling 5b55f91fb946955e5ec0a816cf5e0e2cdb81689f on featured-games-service into ** on master**.


Broken link - Understanding cost reports

The word "understading" is misspelt with a missing letter n in the url https://docs.microsoft.com/en-au/azure/cost-management/understading-cost-reports resulting in broken link page. Should be "understanding".

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a9c157c3-4bc4-b18b-62db-726c9b391b95
Version Independent ID: 62e50bda-fc84-3df2-012d-5fc5959aed97
Content: Overview of Azure Cost Management
Content Source: articles/cost-management/overview.md
Service: cost-management
GitHub Login: @bandersmsft
Microsoft Alias: banders

@ivanl8 Thanks for the feedback! We are currently investigating and will update you shortly.

@ivanl8 Thank you for the heads up. We have updated the link in the left side navigation bar along with updating the link in one of the documents. The changes should be made public shortly.


Updating BWC test to use JS version 2.5.0

Signed-off-by: Joshua Palis<EMAIL_ADDRESS>Description
Currently Job Scheduler BWC tests use JS <IP_ADDRESS>. Now that 2.x has been bumped to version <IP_ADDRESS>, BWC tests versions must also be updated to use the latest 2.x.
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #285 (4eb4103) into main (9506b98) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main     #285   +/-   ##
=========================================
  Coverage     53.19%   53.19%
  Complexity       65       65
=========================================
  Files             8        8
  Lines           438      438
  Branches         50       50
=========================================
  Hits            233      233
  Misses          186      186
  Partials         19       19

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add umd build

Closes #8.
babel-plugin-transform-es2015-modules-umd is an easy way to get the umd build from the existing sources, which are also using babel to create a release build.
I have added a separate build:umd script to create the umd build and output it at lib/is-hotkey.umd.js. I have added it only to the prepublish script, so it's not adding to the test and/or build time.
I believe there's no need for the minified version, which was mentioned in the #8; the script is tiny in size as it is. For production builds, the consumer can add minification to their pipeline.
@ianstormtaylor I hope this still works with your np config.
With this change, the script should be available at unpkg.com/is-hotkey/lib/is-hotkey.umd.js

Hey @markogresak thanks for this! Does Unpkg support CJS or ES modules these days? I wonder if we could get rid of the need for UMD at all?

@ianstormtaylor there is a ?module option but it only works with ES modules and it's experimental. UMD is required to make it work in the browser, and I think that's the whole point of unpkg. Otherwise the consumer whould have to polyfill require/import in the browser and make it use unkpg. I'm not sure if it would even work.


AS0045 seems to be missing from this list/page?

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0045-permissionsmustbeassigned

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 03cc1f40-cea7-5449-10a6-9736f9713c53
Version Independent ID: afcd6e13-c135-08ba-f973-cab671fb579c
Content: AppSourceCop Analyzer - Business Central
Content Source: dev-itpro/developer/analyzers/appsourcecop.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for catching this, this is a bug in the auto-generation of the overview page. I've filed a bug and once it is fixed, we'll be able to publish the updated page.

Hello, an update to this issue is that rule as0045 has been retired together with rule as0046 - we will retire both topics with the next doc refresh. Thanks.


Update winerror.h and NTSTATUS codes and add values that aren't strictly errors

As per title. We're missing values before the 0x40000000 range in NTSTATUS and we don't have the new definitions in the recent SDKs (Windows 10 and 11).

Fixed by #288


publish<EMAIL_ADDRESS>

Requested by: @romtsn
Merge target: (default)
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[x] symbol-collector
[ ] maven
[ ] github
[ ] registry

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

@romtsn its easier to retry this. U less u need to change the ask

Sdk


Broken icon URL in quarkus-extension.yaml

Bug description
The icon URL referenced in the quarkus-extension.yaml seems to be invalid. See https://github.com/apache/camel-quarkus/blob/main/extensions-core/core/runtime/src/main/resources/META-INF/quarkus-extension.yaml#L27
This icon is displayed on the quarkus.io website extension catalog. We should fix the URL as the Quarkus website will fallback to the Apache feather as an icon as soon as the website gets rebuilt

I guess the URL to logo has the potential to change across website rebuilds. Maybe we should just point to its location on GitHub instead. E.g.
https://raw.githubusercontent.com/apache/camel-website/main/antora-ui-camel/src/img/logo-d.svg

Maybe we should just point to its location on GitHub instead. E.g.
https://raw.githubusercontent.com/apache/camel-website/main/antora-ui-camel/src/img/logo-d.svg

Yeah, it even seems to be served with the right content-type. Let's try it.

Thanks for the report @christophd!


python310Packages.pyglet: <IP_ADDRESS> -> 2.0.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pyglet is: "A cross-platform windowing and multimedia library"
meta.homepage for python310Packages.pyglet is: "http://www.pyglet.org/"
meta.changelog for python310Packages.pyglet is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.0 with grep in /nix/store/a2xmbci48mic921pj0b54v7qsdm58a3f-python3.10-pyglet-2.0.0
found 2.0.0 in filename of file in /nix/store/a2xmbci48mic921pj0b54v7qsdm58a3f-python3.10-pyglet-2.0.0

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
manim
printrun
python310Packages.moderngl-window
python310Packages.pyglet
python310Packages.pytmx
python39Packages.moderngl-window
python39Packages.pyglet
python39Packages.pytmx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/a2xmbci48mic921pj0b54v7qsdm58a3f-python3.10-pyglet-2.0.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.pyglet https://github.com/r-ryantm/nixpkgs/archive/a90f8cec8c67f66abd76e3bfa15c85efde410418.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/a2xmbci48mic921pj0b54v7qsdm58a3f-python3.10-pyglet-2.0.0
ls -la /nix/store/a2xmbci48mic921pj0b54v7qsdm58a3f-python3.10-pyglet-2.0.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

manim
python310Packages.moderngl-window
python39Packages.moderngl-window

5 packages built:

printrun
python310Packages.pyglet
python310Packages.pytmx
python39Packages.pyglet
python39Packages.pytmx

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pyglet is: "A cross-platform windowing and multimedia library"
meta.homepage for python310Packages.pyglet is: "http://www.pyglet.org/"
meta.changelog for python310Packages.pyglet is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.1 with grep in /nix/store/7isqyibqgvrz2s7simb7wc2niw1pvfv7-python3.10-pyglet-2.0.1
found 2.0.1 in filename of file in /nix/store/7isqyibqgvrz2s7simb7wc2niw1pvfv7-python3.10-pyglet-2.0.1

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
manim
printrun
python310Packages.moderngl-window
python310Packages.pyglet
python310Packages.pytmx
python39Packages.moderngl-window
python39Packages.pyglet
python39Packages.pytmx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7isqyibqgvrz2s7simb7wc2niw1pvfv7-python3.10-pyglet-2.0.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.pyglet https://github.com/r-ryantm/nixpkgs/archive/7b95c3b3e49873420869e3a8b33beb5a80bd994d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7isqyibqgvrz2s7simb7wc2niw1pvfv7-python3.10-pyglet-2.0.1
ls -la /nix/store/7isqyibqgvrz2s7simb7wc2niw1pvfv7-python3.10-pyglet-2.0.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

manim
python310Packages.moderngl-window
python39Packages.moderngl-window

5 packages built:

printrun
python310Packages.pyglet
python310Packages.pytmx
python39Packages.pyglet
python39Packages.pytmx

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pyglet is: "A cross-platform windowing and multimedia library"
meta.homepage for python310Packages.pyglet is: "http://www.pyglet.org/"
meta.changelog for python310Packages.pyglet is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found <IP_ADDRESS> with grep in /nix/store/pxh88y81xynivb7hfwdx2zlxvwm713wp-python3.10-pyglet-<IP_ADDRESS>
found <IP_ADDRESS> in filename of file in /nix/store/pxh88y81xynivb7hfwdx2zlxvwm713wp-python3.10-pyglet-<IP_ADDRESS>

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
manim
printrun
python310Packages.moderngl-window
python310Packages.pyglet
python310Packages.pytmx
python39Packages.moderngl-window
python39Packages.pyglet
python39Packages.pytmx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/pxh88y81xynivb7hfwdx2zlxvwm713wp-python3.10-pyglet-<IP_ADDRESS> \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.pyglet https://github.com/r-ryantm/nixpkgs/archive/3650459c2ff4f102dbc7159a5cfd0cb93b09c70f.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/pxh88y81xynivb7hfwdx2zlxvwm713wp-python3.10-pyglet-<IP_ADDRESS>
ls -la /nix/store/pxh88y81xynivb7hfwdx2zlxvwm713wp-python3.10-pyglet-<IP_ADDRESS>/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pyglet is: A cross-platform windowing and multimedia library
meta.homepage for python310Packages.pyglet is: http://www.pyglet.org/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.3 with grep in /nix/store/cz9xpll3rx9hc6l7mffcc2fnwy6chf13-python3.10-pyglet-2.0.3
found 2.0.3 in filename of file in /nix/store/cz9xpll3rx9hc6l7mffcc2fnwy6chf13-python3.10-pyglet-2.0.3

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
manim
printrun
python310Packages.moderngl-window
python310Packages.pyglet
python310Packages.pytmx
python311Packages.moderngl-window
python311Packages.pyglet
python311Packages.pytmx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/cz9xpll3rx9hc6l7mffcc2fnwy6chf13-python3.10-pyglet-2.0.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.pyglet https://github.com/r-ryantm/nixpkgs/archive/16133b85bb8cf56f07a05f7f1089359bfc42c8a6.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/cz9xpll3rx9hc6l7mffcc2fnwy6chf13-python3.10-pyglet-2.0.3
ls -la /nix/store/cz9xpll3rx9hc6l7mffcc2fnwy6chf13-python3.10-pyglet-2.0.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages failed to build:

manim
python310Packages.moderngl-window
python311Packages.moderngl-window
python311Packages.pytmx

4 packages built:

printrun
python310Packages.pyglet
python310Packages.pytmx
python311Packages.pyglet

Maintainer pings

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pyglet is: A cross-platform windowing and multimedia library
meta.homepage for python310Packages.pyglet is: http://www.pyglet.org/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.4 with grep in /nix/store/3jfnqxkzyl31b0lbl630kkn03c4f6h4i-python3.10-pyglet-2.0.4
found 2.0.4 in filename of file in /nix/store/3jfnqxkzyl31b0lbl630kkn03c4f6h4i-python3.10-pyglet-2.0.4

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

8 package rebuild(s)

First fifty rebuilds by attrpath
manim
printrun
python310Packages.moderngl-window
python310Packages.pyglet
python310Packages.pytmx
python311Packages.moderngl-window
python311Packages.pyglet
python311Packages.pytmx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3jfnqxkzyl31b0lbl630kkn03c4f6h4i-python3.10-pyglet-2.0.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.pyglet https://github.com/r-ryantm/nixpkgs/archive/76ef12297aa0908ccaab45133ac66b60528070aa.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3jfnqxkzyl31b0lbl630kkn03c4f6h4i-python3.10-pyglet-2.0.4
ls -la /nix/store/3jfnqxkzyl31b0lbl630kkn03c4f6h4i-python3.10-pyglet-2.0.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

python311Packages.pytmx

7 packages built:

manim
printrun
python310Packages.moderngl-window
python310Packages.pyglet
python310Packages.pytmx
python311Packages.moderngl-window
python311Packages.pyglet

Maintainer pings


Port GREF logging to .NET 6+ EventSource infrastructure

Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 6
Description
The .NET Podcast app shows dotnet trace output for:

https://github.com/xamarin/xamarin-android/blob/af2875138afada68a870cc803c3e8dcd2e85ff6f/src/Mono.Android/Android.Runtime/AndroidRuntime.cs#L178-L188
https://github.com/xamarin/xamarin-android/blob/af2875138afada68a870cc803c3e8dcd2e85ff6f/src/Mono.Android/Android.Runtime/AndroidRuntime.cs#L206-L211
This logging is almost always disabled, but we call into unmanaged code to increment an integer.
We could ideally port this logging to EventSource and do everything on the managed side -- avoid p/invoke for these.
Steps to Reproduce
Get dotnet trace output for an .NET 6 app.
Did you find any workaround?
No response
Relevant log output
No response

FYI this an idea for the future.

Time to start writing down some notes…
Collecting Traces
Here is a sample for logging events with EventSource, and then capturing EventSource output: https://learn.microsoft.com/dotnet/core/diagnostics/eventsource-getting-started#log-an-event
The problem is, the Collect and view a trace file  section is slightly out of date; it suggests:
dotnet-trace collect --providers Demo -- EventSourceDemo.exe

Problem: .exe files haven't been the output of .NET apps for ages.
So, "obvious alternate is obvious"; "I'll use dotnet run!
dotnet-trace collect --providers Demo -- dotnet run

Problem: that hangs.  Oops.
You need to run the .dll directly:
dotnet build
# because I haven't added `$HOME/.dotnet/tools` to $PATH…
$HOME/.dotnet/tools/dotnet-trace collect --providers Demo -- dotnet bin/Debug/net9.0/EventSourceDemo.dll

The above produces a dotnet_*.nettrace file.  Nice.
Viewing Traces
How do you view a dotnet_*.trace file?  TL;DR: you don't! 🤣
More seriously, dotnet-trace supports Speedscope output:
# do not use
$HOME/.dotnet/tools/dotnet-trace collect --providers Demo \
  --format Speedscope
  -- dotnet bin/Debug/net9.0/EventSourceDemo.dll

The problem is that Speedscope output only contains CPU information, not events!
// SpeedScope handles only CPU samples, events are not support

The Collect and View EventSource Traces documentation mentions

Visual Studio
Perfview

Visual Studio errors out for me (?!).
Perfview only runs on Windows.
If we want macOS or Linux support for viewing GREF logs -- and I do! -- then…
I guess I need to use EventPipeTraceEventParser and write my own utility?


Manually update c++ release version

The bot pushing to asf-site doesn't seem to be working and I don't know if the translation from this branch to the live site will work. But let's at least try.

Not required and actually not allowed as we don't have permission.


Value cannot be null for declaryingType when visting FieldInfo

Hello all! I'm experiencing the following exception in my setup:
System.ArgumentNullException: Value cannot be null.
Parameter name: declaringType
   at HotChocolate.Validation.FieldSelectionMergingVisitor.FieldInfo..ctor(IType declaringType, FieldNode field)
   at HotChocolate.Validation.FieldSelectionMergingVisitor.VisitField(FieldNode field, IType type, ImmutableStack`1 path)
   at HotChocolate.Validation.QueryVisitor.VisitSelectionSet(SelectionSetNode selectionSet, IType type, ImmutableStack`1 path)
   at HotChocolate.Validation.QueryVisitor.VisitOperationDefinition(OperationDefinitionNode operation, ImmutableStack`1 path)
   at HotChocolate.Validation.FieldSelectionMergingVisitor.VisitDocument(DocumentNode document, ImmutableStack`1 path)
   at HotChocolate.Validation.QueryVisitorValidationErrorBase.Validate(ISchema schema, DocumentNode queryDocument)
   at HotChocolate.Validation.QueryValidator.Validate(DocumentNode query)
   at HotChocolate.Execution.QueryExecuter.CreateQueryInfo(String queryText)
   at HotChocolate.Runtime.Cache`1.GetOrCreate(String key, Func`1 create)
   at HotChocolate.Execution.QueryExecuter.ExecuteInternalAsync(QueryRequest request, CancellationToken cancellationToken)
   at HotChocolate.AspNetCore.QueryMiddlewareBase.HandleRequestAsync(HttpContext context, QueryExecuter queryExecuter)
   at HotChocolate.AspNetCore.QueryMiddlewareBase.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.InvokeCore(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

My startup:
services.AddGraphQL(serviceProvider => Schema.Create(options =>
{
    options.RegisterServiceProvider(serviceProvider);
    options.RegisterQueryType<ObjectType<GraphQLRepository>>();
    options.RegisterType<InputObjectType<MapDefinition>>();
}));

My types:
public class GraphQLRepository
{
    private DbContext dbc;

    public GraphQLRepository(DbContext dbContext)
    {
        dbc = dbContext;
        productMatcher = matcher;
    }

    // This works!
    public async Task<List<EntityFrameworkType>> EntityFrameworkType() => await dbc.EntityFrameworkType.ToListAsync();

    // This produces the declaringType cannot be null exception.
    public async Task<int> AddNewMap(MapDefinition mapDefinition)
    {
        return 1;
    }
}

public class MapDefinition
{
    public int Id { get; set; }
}

I think I'm missing a fundamental concept here...trying to figure it out through the docs and what not. I believe it has something to do with parsing the MapDefinition argument of AddNewMap. I've tried IType, and Object/InputObject inheritance wrappers. I've also enabled trace level logs in appSettings. Is there any way I can drill deeper?

Which version of hotchocolate are you using?

Ah yes! I'm using version 0.6.11.

Ok, I will have a look at it.

Hi, I have setup a little test server but cannot reproduce the error... could you also send me the query. that you are sending to the server?
Mine looks something like this
{
  addNewMap(mapDefinition:{id:1})
}

I set my server up like this:
 public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddGraphQL(sp => Schema.Create(c =>
            {
                c.RegisterServiceProvider(sp);
                c.RegisterQueryType<ObjectType<GraphQLRepository>>();
                c.RegisterType<InputObjectType<MapDefinition>>();
            }));
        }

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            // enable this if you want tu support subscription
            // app.UseWebSockets();
            app.UseGraphQL();
            app.UseGraphiQL();
        }
    }

    public class GraphQLRepository
    {

        public GraphQLRepository()
        {

        }

        // This produces the declaringType cannot be null exception.
        public async Task<int> AddNewMap(MapDefinition mapDefinition)
        {
            return 1;
        }
    }

    public class MapDefinition
    {
        public int Id { get; set; }
    }

Hello, my GraphQL query looks like this:
mutation
{
  addnewMap(mapDefinition: { id: 1 })
}

Leaving out mutation results in an error:
The field addnewMap does not exist on the type GraphQLRepository.
I admit I'm not well versed in GraphQL verbs.
I think our setups look the same.

Ah, if you want that as mutation than you have to declare your type as mutation. You registered it as query. Still there should not be an exception like this. Try RegisterMutationType

Hello, how do I properly register and query a class like this?
    public class MapDefinition
    {
        public MapOptions Options { get; set; }
        public List<ColumnMap> ColumnMaps { get; set; }
    }

The List is giving me some trouble.

I'll head on over to the GraphQL docs.

GraphQL.org is a good place to start.
We have created an example server that implements their demo schema.
HotChocolate StarWars Server

I admit I'm not well versed in GraphQL verbs.

In GraphQL you have basically three root types: Query, Mutation, Subscription
Queries is for read-only data consumption and all fields of a query are resolved in-parallel
Mutations are for modifying data. The top-level mutation fields are resolved serial.
Subscriptions represents queries that open up a response stream, basically it is for events/messages.
I think you should first read through the GraphQL.org examples because there is a lot more to know. We are currently working on a tutorial that explains those things but it is not ready yet. So, GraphQL.org is the best place to get stated.

Hello, how do I properly register and query a class like this?

Let's say we take you initial example....
Then map data. would be an InputObjectType. So a query with an InputObjectType payload would look like the following:
{
  addnewMap(mapDefinition: { options: { field1: "abc" field2: 123 } columnMaps:[ { field1: "abc" field2: 123 } ]  })
}

GraphQL does not need commas to delimit fields.
So for the next thing I will use the following schema:
type Query {
  foo: [Foo]
}

type Foo {
  bar: String
}

So, the query to ask for the list is the same if it were a complex type (ObjectType/InterfaceType)
{
 foo {
   bar
 }
}

I will close this issue now and hope the infos helped you.... have fun learning GraphQL :)

I have opened a new issue for the nullrefexception.... we will fix that with the next release. Although the query was invalid there should never be a nullrefexception from the system. Thanks for reporting that.


fix: create an isolated stack frame for constructors

Fixes #27

Anyway to test for this?

Anyway to test for this?

It's not pretty, but I am checking in the following test to functionless
test("$AWS.DynamoDB.* with PropAccessExpr reference to constructor parameter", () => {
  class Foo {
    constructor(props: { bookingsTable: typeof table }) {
      new Function<any, any>(stack, "Foo", async (event) => {
        await $AWS.DynamoDB.PutItem({
          Table: props.bookingsTable,
          Item: {
            pk: { S: event.reservation.trip_id },
          },
        });
      });
    }
  }
  new Foo({ bookingsTable: table });
});


The interval of the calendar could use an exclusive date on the end period

Majority of the date libraries uses the [start, end) type of convention for inclusiveness and exclusiveness of dates in intervals.
What this means is that the end date of the interval, is not considered unless other wise specified.

It is not the case of the python module I use for which both dates are inclusive (see documentation here: https://dateutil.readthedocs.io/en/stable/).
Other examples also feature as default the inclusiveness of both start and end dates, such as the 'pandas.date_range' function.

I would not change this behaviour except if this feature is requested.


Create counterparty.sol contract

Summary
Creates the AtomicBridgeCounterparty.sol contract, tests and updates necessary logic in AtomicBridgeInitiator.sol. I added a storage mapping of balances in the Initiator contract. This is so that when users move MOVETH -> WETH they are able to withdraw their associated balance. We could have used a seperate Vault type contract, but I decided to keep it as simple as possible with minimal change necessary.
Because of this, counterpary needs to call a withdraw function on Initiator, where the balances mapping is held. This function should of course only be callable by that contract and not by anyone, For this I added the ownable patter. To keep the contract upgradable, I used UpgradableOwnable.
Changelog

Creates new contract
Creates new test
Uses UpgradableOwnable.sol openzeppelin lib for initiator
Updates AtomicBridgeInitiator.t.sol to assert on the enum values.
Adds the solidity tests to Checks CI

Testing
Please run the tests.
cd protocol-units/bridge/contracts && forge test --fork-url https://ethereum-sepolia-rpc.publicnode.com

Ok using a simple pool now, and addressed your other points re. checks for WETH balance. Issue for a Vault contract has been created here and added to the feature branch checklist.
https://github.com/movementlabsxyz/movement/issues/269


Make dora cli connect to remote coordinator

To make CLI coordinator connection configurable, such as
dora start dataflow.yaml --coordinator-addr IP:PORT
Allow users to pass a parameter when dora up, dora start, and dora list --coordinator-address to specify the address or the default address control_socket_addr().
To test this PR:
# In a remote terminal
dora up
# In a local terminal
dora list --coordinator-addr REMOTE_IP:PORT
dora start dataflow.yaml --coordinator-addr REMOTE_IP:PORT
dora logs [DATAFLOW] <NODE> --coordinator-addr REMOTE_IP:PORT
dora destroy --coordinator-addr REMOTE_IP:PORT
dora check --coordinator-addr REMOTE_IP:PORT

Before merging, can we add some CI test so that we know that this features works.
Something in the likes of adding a bash script within https://github.com/dora-rs/dora/blob/ea47a556a77f6c64f29ab07939d747edc8573671/.github/workflows/ci.yml  with something like:
export IP="$(curl ipinfo.io/ip)"
dora coordinator --addr $IP

dora list --coordinator-addr $IP

# ...

Thanks!

Before merging, can we add some CI test so that we know that this features works.
Something in the likes of adding a bash script within https://github.com/dora-rs/dora/blob/ea47a556a77f6c64f29ab07939d747edc8573671/.github/workflows/ci.yml with something like:
export IP="$(curl ipinfo.io/ip)"
dora coordinator --addr $IP

dora list --coordinator-addr $IP

# ...

Thanks!
ok, I will add it!

Could we try to find what need to be changed for the CI to work with external IP?

Could we try to find what need to be changed for the CI to work with external IP?

How about creating a docker image for testing coordinator services?

I think that before trying docker, we need to be able to run with the same machine, same environment, just with the external IP instead of localhost.
We can have docker container testing as a follow up PR.

If i try:
export IP="<IP_ADDRESS>:6013"                                                                                (base)  ✘ 130 remotes/gege/multiple
dora coordinator --addr $IP &

dora list --coordinator-addr $IP

I'm having this warning issue:
  2024-05-29T14:20:56.596707Z  WARN dora_coordinator::listener: failed to deserialize node message

Caused by:
    invalid type: string "List", expected struct Timestamped at line 1 column 6

Location:
    /home/peter/Documents/work/dora/binaries/coordinator/src/listener.rs:38:48
    at binaries/coordinator/src/listener.rs:41

Could we try to find what need to be changed for the CI to work with external IP?

@haixuanTao You mean substituting the <IP_ADDRESS> in the CI job with the external IP of the runner? We might be able to do that using the third-party haythem/public-ip action.

The public IP is probably not reachable this way because of firewalls, NATs, etc. So we decided to postpone the creation of a proper CI test for now.

  2024-05-29T14:20:56.596707Z  WARN dora_coordinator::listener: failed to deserialize node message

Caused by:
    invalid type: string "List", expected struct Timestamped at line 1 column 6

Location:
    /home/peter/Documents/work/dora/binaries/coordinator/src/listener.rs:38:48
    at binaries/coordinator/src/listener.rs:41

dora coordinator --addr $IP1 &
dora list --coordinator-addr $IP2
I think $IP1 is not same as $IP2,  $IP1 is the coordinator port, which is default DORA_COORDINATOR_PORT_DEFAULT. IP2 is the coordinator control port(default control_socket_addr()), almost all of the cli command create session using control port, but the coordinator task using the hardcode control_socket_addr(), we haven't make it configurable.
dora/binaries/coordinator/src/lib.rs
    let control_events = control::control_events(control_socket_addr(), tasks)
        .await
        .wrap_err("failed to create control events")?;

I see. So, basically the port is not configurable yet. In that case, could it be possible to get a warning or raise an error if we specify the wrong port?

I have tried in EC2 as the following:
#  EC2
ubuntu@ip-172-31-30-172:~/dora/test_rust_project$ dora up
started dora coordinator
started dora daemon

and local
# local
# check the EC2.   (right)
dora check --coordinator-addr <IP_ADDRESS>:6012
Dora Coordinator: ok
Dora Daemon: ok

# check the default coordinator-adds.   (right)
$ dora check                                              1 ↵
Dora Coordinator: not running
Dora Daemon: not running

Environment check failed.

now,  the control_socket_addr() is still <IP_ADDRESS>:6012, but we can still connect to remote coordinator. I cannot understand, but it works, I think it should be <IP_ADDRESS>:6012, but not.
dora/binaries/coordinator/src/lib.rs
    let control_events = control::control_events(control_socket_addr(), tasks)
        .await
        .wrap_err("failed to create control events")?;

@XxChang , yes, there are also some problem about dora start.
dora start dataflow.yaml --coordinator-addr <IP_ADDRESS>:6012
Failed to read yaml dataflow: failed to open given file: No such file or directory (os error 2)

I see. So, basically the port is not configurable yet. In that case, can we only specify IP address in the cli configuration. To avoid people using the PORT and realising it can´t be used.

ok, I have done this in https://github.com/dora-rs/dora/pull/513/commits/ce2b02fb054ed0f892135aa3003654f2078c1053

dora coordinator --addr $IP1 & dora list --coordinator-addr $IP2 I think $IP1 is not same as $IP2, $IP1 is the coordinator port, which is default DORA_COORDINATOR_PORT_DEFAULT. IP2 is the coordinator control port(default control_socket_addr()), almost all of the cli command create session using control port, but the coordinator task using the hardcode control_socket_addr(), we haven't make it configurable.

Yes, exactly. The coordinator listens on two different ports:

On DORA_COORDINATOR_PORT_DEFAULT (0xD02A = 53290) for daemon<->coordinator connections.

This port be configured using dora coordinator --addr <IP_ADDRESS>:<port>
The daemon needs to be started with the remote IP and port of the coordinator: dora list --coordinator-addr <ip:port>

On control_socket_addr (6012) for cli<->coordinator connections.

This port is not configurable yet on the coordinator side.
This PR adds a argument to the CLI commands to specify how the CLI can reach the coordinator.

Thanks! Great work!

Yes, the coordinator should listen on <IP_ADDRESS>:6012 instead of <IP_ADDRESS>:6012. The daemon should still connect to <IP_ADDRESS>:6012 by default.

I implemented this in #520, amont some other improvements.


Full Cone Beam

This PR adds full cone beam support, including:

Factorized separable cone beam projectors
Updated readthedocs documentation with LFS figures

Tested readthedocs on the bouman_dev branch, and it works fine!

The LFS stuff didn't work out. So I'm closing this PR.


Provide better transaction/block support in TXE

Complex TXE tests can be hard to read since TXE doesn't neatly expose the concept of transactions or block mining - we only have advance_block_by. We should change this so that tests more closely resemble actual transactions.

A very small example of this leaking can be seen here, where we had to manually advance the block by one in order to ensure we'd have a block we can build private proofs off of.


#0: Enable Local Sweeps and Use a Faster Interprocess Queue

Problem description

Running large numbers of sweeps is impractical with ES backend, especially if the sweeps are not reused/rerun
Interprocess communication in the runner is slow and a bottleneck for running sweeps

What's changed

Changed interprocess queues to faster-fifo for better throughput/more efficient locking
Modified the parameter generator to optionally dump vectors to disk as JSON instead of pushing to ES
Modified the runner to optionally read vectors from a JSON file on disk instead of reading from ES

Checklist

[ ] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] Device performance regression CI testing passes (if applicable)
[ ] (For models and ops writers) Full new models tests passes
[ ] New/Existing tests provide coverage for changes

Remote sweeps:
https://github.com/tenstorrent/tt-metal/actions/runs/12378719341
https://github.com/tenstorrent/tt-metal/actions/runs/12378714739


Segmentation fault when converting arrow table to r data frame

I am trying to translate the pandas - arrow table - R data frame conversion example from the official documentation ("From pandas.DataFrame to R data.frame through an Arrow Table") to python without Ipython magic.
This produces a segmentation fault in zsh and bash on exit, so when the file has finished running. That means the code is executed and outputs correct results and then produces the segmentation fault.
Here is a minimal reproducible example:
import faulthandler; faulthandler.enable()
import pandas as pd
import pyarrow
from rpy2.robjects import pandas2ri
from rpy2.robjects.packages import importr
import rpy2.robjects.conversion
import rpy2_arrow.arrow as pyra
from rpy2.robjects.conversion import localconverter
base = importr('base')

code = """
    function(df) {
        cbind(df$col1,df$col2)
    }
"""
rfunction = rpy2.robjects.r(code)

df = pd.DataFrame({
                    "col1": range(10),
                    "col2":["a" for num in range(10)]
                    })

conv_arrow = rpy2.robjects.conversion.Converter(
    'Pandas to data.frame',
    template=pyra.converter)

@conv_arrow.py2rpy.register(pd.DataFrame)
def py2rpy_pandas(dataf):
    pa_tbl = pyarrow.Table.from_pandas(dataf)
    return base.as_data_frame(pa_tbl)

conv = (
    rpy2.robjects.default_converter
    + pandas2ri.converter
    + conv_arrow
)

with localconverter(conv):
    output = rfunction(df)

This is another example with the same error:
import faulthandler; faulthandler.enable()
import pandas as pd
import pyarrow
from rpy2.robjects.packages import importr
import rpy2_arrow.arrow as pyra

base = importr('base')

df = pd.DataFrame({
                    "col1": range(10),
                    "col2":["a" for num in range(10)]
                    })

df_pyarrow = pyarrow.Table.from_pandas(df)
r_df = pyra.pyarrow_table_to_r_table(df_pyarrow)
r_df = base.as_data_frame(r_df)
print(r_df)

This second example works fine without the print statement in the last line. As soon as I use r_df in any other function (in R or Python) a segmentation fault occurs on exit.
I am running the code as a python file with this command: python3 -q  -X faulthandler myfile.py with the output below. Unfortunately faulthandler does not output a trace to point me to the C Module where the potential failure could be.
R[write to console]:
Attaching package: ‘dplyr’

R[write to console]: The following objects are masked from ‘package:stats’:

    filter, lag

R[write to console]: The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

R[write to console]: There were 25 warnings (use warnings() to see them)
R[write to console]:

zsh: segmentation fault  python3 -q -X faulthandler

The segmentation fault occurs both on my Mac and inside a Docker container running Linux:
Mac Ventura 13.1 (zhs shell):
Python version: 3.10.6 (with pyenv)
R version: 4.2.1
rpy2==3.5.4
rpy2-arrow==0.0.7
Docker OS: Debian GNU/Linux (bash shell):
Python version:  3.10.6
R version: 4.0.4
rpy2==3.5.4
rpy2-arrow==0.0.7

I can't reproduce a segfault for the first example with

Linux
R: 4.2.1-Patched
rpy2: 3.5.10
rpy2-arrow: 0.0.7

I suggest to update rpy2 to the latest release.
Beside that, the warning messages you are show suggest that there is more going on with your R process than what is in the example. For example the warning about loading dplyr. Do you have an .RData file loading data from an older R session, or do you have a custom startup script for R?

@paleolimbot : I just updated R to 4.2.3-Patched and ran update.packages(). Now I see an segfault when exiting the Python process after running the first example. arrow is <IP_ADDRESS>.
Running Python through gdb lands on ../sysdeps/unix/sysv/linux/clock_nanosleep.c as the point of failure. Could this be related to https://github.com/apache/arrow/issues/33424 ?

Still segfault when exiting the process with arrow-nightly.
gdb says:
Thread 18 "python" received signal SIG32, Real-time event 32.
[Switching to Thread 0x7fffd1871700 (LWP 44062)]
0x00007ffff7e9623f in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7fffd189f680 <cli.tick_ts>, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
78	../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.

I worked out a smaller example. In a nutshell the sequence is:
pandas DataFrame -> pyarray table -> R arrow Table -> R data.frame -> R cbind() column of that data.frame

Oddly the segfault happens with one of the column types but not the other (see rcode below).
import pandas as pd
import pyarrow
from rpy2.robjects.packages import importr
import rpy2.robjects
import rpy2_arrow.arrow as pyra
base = importr('base')

rcode = """
    function(df) {
        # cbind(df$col1,df$col2)  # segfault on exit
        # cbind(df$col2, df$col2) # segfault on exit
        cbind(df$col1, df$col1)  # no segfault on exit
    }
"""
rfunction = rpy2.robjects.r(rcode)

pd_df = pd.DataFrame({
    "col1": range(10),
    "col2":["a" for num in range(10)]
})
pd_tbl = pyarrow.Table.from_pandas(pd_df)
r_tbl = pyra.pyarrow_table_to_r_table(pd_tbl)
r_df = base.as_data_frame(r_tbl)

output = rfunction(r_df)

Thanks for the quick answers!
I tried the failing example code with different pyarrow versions 8.0.0 throughout 11.0.0. and also the latest rpy2 now, I also used arrow nightly builds and also R=4.2.3. And both on my Mac and inside my Debian docker container. Still the same issue and also managed to reproduce the clock_nanosleep error in gdb.
I'm quite new to gdb but according to some discussions it seems that the clock_nanosleep error could also be due to a wrong resolution from gdb and not necessarily point to the correct issue. I'm not sure though how to further investigate this.

With (gdb) thread apply all bt I get the following output on my linux system. Not sure if that is helpful?
Thread 5 (Thread 0x7f979c2dd700 (LWP 787) "python3"):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x55bb15c01b30) at ../sysdeps/nptl/futex-internal.h:186
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55bb15c01ae0, cond=0x55bb15c01b08) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55bb15c01b08, mutex=0x55bb15c01ae0) at pthread_cond_wait.c:638
#3  0x00007f97adee490c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f97a134a465 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<arrow::internal::ThreadPool::LaunchWorkersUnlocked(int)::{lambda()#1}> > >::_M_run() () from /usr/local/lib/R/site-library/arrow/libs/arrow.so
#5  0x00007f97adee9ed0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007f97b7e5cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f97b7f73a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f97a30dc700 (LWP 786) "python3"):
#0  0x00007f97b7f3a561 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7f97a3eab610 <cli.tick_ts>, rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
#1  0x00007f97b7f3fd43 in __GI___nanosleep (requested_time=requested_time@entry=0x7f97a3eab610 <cli.tick_ts>, remaining=remaining@entry=0x0) at nanosleep.c:27
#2  0x00007f97a3e8dd82 in clic_thread_func (arg=<optimized out>) at thread.c:37
#3  clic_thread_func (arg=<optimized out>) at thread.c:23
#4  0x00007f97b7e5cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5  0x00007f97b7f73a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f97acfff700 (LWP 764) "jemalloc_bg_thd"):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x7f97ad60a5f0) at ../sysdeps/nptl/futex-internal.h:186
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7f97ad60a638, cond=0x7f97ad60a5c8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7f97ad60a5c8, mutex=0x7f97ad60a638) at pthread_cond_wait.c:638
#3  0x00007f97afa493c4 in background_thread_sleep (tsdn=<optimized out>, interval=<optimized out>, info=<optimized out>) at src/background_thread.c:232
#4  background_work_sleep_once (ind=0, info=<optimized out>, tsdn=<optimized out>) at src/background_thread.c:307
#5  background_thread0_work (tsd=<optimized out>) at src/background_thread.c:452
#6  background_work (ind=<optimized out>, tsd=<optimized out>) at src/background_thread.c:490
#7  background_thread_entry (ind_arg=<optimized out>) at src/background_thread.c:522
#8  0x00007f97b7e5cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f97b7f73a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

--Type <RET> for more, q to quit, c to continue without paging--
Thread 2 (Thread 0x7f97b4c92700 (LWP 763) "python3"):
#0  futex_wait_cancelable (private=0, expected=0, futex_word=0x7f97b73596e0 <thread_status+96>) at ../sysdeps/nptl/futex-internal.h:186
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x7f97b7359690 <thread_status+16>, cond=0x7f97b73596b8 <thread_status+56>) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x7f97b73596b8 <thread_status+56>, mutex=0x7f97b7359690 <thread_status+16>) at pthread_cond_wait.c:638
#3  0x00007f97b56d7deb in blas_thread_server () from /usr/local/lib/python3.10/site-packages/numpy/core/../../numpy.libs/libopenblas64_p-r0-742d56dc.3.20.so
#4  0x00007f97b7e5cea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5  0x00007f97b7f73a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f97b7d01740 (LWP 759) "python3"):
#0  clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:78
#1  0x00007f97b7f621de in __spawnix (pid=pid@entry=0x7fff4553758c, file=file@entry=0x7f97b800d152 "/bin/sh", file_actions=file_actions@entry=0x0, attrp=0x7fff455372e0, attrp@entry=0x7fff45537790, argv=argv@entry=0x7fff455375d0, envp=0x55bb0c9501f0, xflags=0, exec=0x7f97b7f3ffc0 <execve>) at ../sysdeps/unix/sysv/linux/spawni.c:382
#2  0x00007f97b7f62817 in __spawni (pid=pid@entry=0x7fff4553758c, file=file@entry=0x7f97b800d152 "/bin/sh", acts=acts@entry=0x0, attrp=attrp@entry=0x7fff45537790, argv=argv@entry=0x7fff455375d0, envp=<optimized out>, xflags=0) at ../sysdeps/unix/sysv/linux/spawni.c:431
#3  0x00007f97b7f6205b in __GI___posix_spawn (pid=pid@entry=0x7fff4553758c, path=path@entry=0x7f97b800d152 "/bin/sh", file_actions=file_actions@entry=0x0, attrp=attrp@entry=0x7fff45537790, argv=argv@entry=0x7fff455375d0, envp=<optimized out>) at spawn.c:30
#4  0x00007f97b7ebca29 in do_system (line=0x7fff45537930 "rm -Rf /tmp/RtmpP6I3cA") at ../sysdeps/posix/system.c:148
#5  0x00007f97a6e024b6 in R_system () from /usr/lib/libR.so
#6  0x00007f97a6e613cb in R_CleanTempDir () from /usr/lib/libR.so
#7  0x00007f97a709ed64 in _cffi_f_R_CleanTempDir (self=<optimized out>, noarg=<optimized out>) at build/temp.linux-x86_64-cpython-310/_rinterface_cffi_api.c:2279
#8  0x00007f97b819f024 in cfunction_vectorcall_NOARGS (func=<built-in method R_CleanTempDir of _cffi_backend.Lib object at remote 0x7f97a70fa020>, args=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/methodobject.c:489
#9  0x00007f97b8194f4a in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x7f979c2edcf8, callable=<built-in method R_CleanTempDir of _cffi_backend.Lib object at remote 0x7f97a70fa020>, tstate=0x55bb0b442080) at ./Include/cpython/abstract.h:114
#10 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7f979c2edcf8, callable=<built-in method R_CleanTempDir of _cffi_backend.Lib object at remote 0x7f97a70fa020>) at ./Include/cpython/abstract.h:123
#11 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, trace_info=0x7fff45537e90, tstate=<optimized out>) at Python/ceval.c:5891
#12 _PyEval_EvalFrameDefault (tstate=<optimized out>, f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:4181
#13 0x00007f97b81a1878 in _PyEval_EvalFrame (throwflag=0, f=Frame 0x7f979c2edb70, for file /usr/local/lib/python3.10/site-packages/rpy2/rinterface_lib/embedded.py, line 322, in endr (fatal=0, rlib=<_cffi_backend.Lib at remote 0x7f97a70fa020>), tstate=0x55bb0b442080) at ./Include/internal/pycor--Type <RET> for more, q to quit, c to continue without paging--c
e_ceval.h:46
#14 _PyEval_Vector (kwnames=<optimized out>, argcount=<optimized out>, args=<optimized out>, locals=0x0, con=0x7f97a7128cb0, tstate=0x55bb0b442080) at Python/ceval.c:5065
#15 _PyFunction_Vectorcall (func=<function at remote 0x7f97a7128ca0>, stack=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/call.c:342
#16 0x00007f97b826f311 in atexit_callfuncs (state=0x55bb0b427010) at ./Modules/atexitmodule.c:98
#17 0x00007f97b826eb1b in _PyAtExit_Call (interp=<optimized out>) at ./Modules/atexitmodule.c:118
#18 Py_FinalizeEx () at Python/pylifecycle.c:1731
#19 0x00007f97b82672a3 in Py_RunMain () at Modules/main.c:668
#20 0x00007f97b823d6c9 in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:720
#21 0x00007f97b7e9ad0a in __libc_start_main (main=0x55bb09a1c140 <main>, argc=2, argv=0x7fff455381d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff455381c8) at ../csu/libc-start.c:308
#22 0x000055bb09a1c07a in _start ()

The error I get when running one of the minimal examples above is the following:
Starting program: /usr/local/bin/python3 segfault.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
[New Thread 0x7ffff4852700 (LWP 152)]
[New Thread 0x7fffec9ff700 (LWP 153)]
[Detaching after vfork from child process 154]
[Detaching after vfork from child process 156]
[Detaching after vfork from child process 171]
[Detaching after vfork from child process 173]
[New Thread 0x7fffe2c98700 (LWP 175)]
[New Thread 0x7fffdbe99700 (LWP 176)]
   col1 col2
1     0    a
2     1    a
3     2    a
4     3    a
5     4    a
6     5    a
7     6    a
8     7    a
9     8    a
10    9    a

[Detaching after vfork from child process 177]

Thread 4 "python3" received signal SIG32, Real-time event 32.
[Switching to Thread 0x7fffe2c98700 (LWP 175)]
0x00007ffff7afa561 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=req@entry=0x7fffe3a63610 <cli.tick_ts>,
    rem=rem@entry=0x0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
48	../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.

I simplified the example to reproduce the issue further.  The issue might be with the way R arrow or arrow keeps references to the underlying arrays, and walks the nested references and frees them when Tables are referenced in both Python and R. Also this seems specific to string arrays.
import pandas as pd
import pyarrow
from rpy2.robjects.packages import importr
import rpy2.robjects
import rpy2_arrow.arrow as pyra
base = importr('base')

code = """
    function(df) {
        # df$col1  # no segfault on exit
        # I(df$col1)  # no segfault on exit
        # df$col2  # no segfault on exit
        I(df$col2)  # segfault on exit
    }
"""
rfunction = rpy2.robjects.r(code)

pd_df = pd.DataFrame({
    "col1": range(10),
    "col2":["a" for num in range(10)]
})
pd_tbl = pyarrow.Table.from_pandas(pd_df)
r_tbl = pyra.pyarrow_table_to_r_table(pd_tbl)
r_df = base.as_data_frame(r_tbl)

output = rfunction(r_df)

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00005555557868b0 in new_threadstate (interp=0x0, init=1) at ../Python/pystate.c:616
616	../Python/pystate.c: No such file or directory.
(gdb) up
#1  0x00005555557a4ee2 in PyThreadState_New (interp=<optimized out>)
    at ../Python/pystate.c:684
684	../Python/pystate.c: No such file or directory.
(gdb) up
#2  PyGILState_Ensure () at ../Python/pystate.c:1504
1504	in ../Python/pystate.c
(gdb) up
#3  0x00007fffe0ee6003 in arrow::py::NumPyBuffer::~NumPyBuffer() ()
   from /opt/software/python/py310_env/lib/python3.10/site-packages/pyarrow/libarrow_python.so
(gdb) up
#4  0x00007fffe0ecb56d in std::_Sp_counted_ptr_inplace<arrow::ArrayData, std::allocator<arrow::ArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()
   from /opt/software/python/py310_env/lib/python3.10/site-packages/pyarrow/libarrow_python.so
(gdb) up
#5  0x00007fffe0ecb4d5 in std::_Sp_counted_ptr_inplace<arrow::ArrayData, std::allocator<arrow::ArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()
   from /opt/software/python/py310_env/lib/python3.10/site-packages/pyarrow/libarrow_python.so
(gdb) up
#6  0x00007fffde32f04a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() ()
   from /opt/software/python/py310_env/lib/python3.10/site-packages/pyarrow/libarrow.so.1100
(gdb) up
#7  0x00007fffdee02a4c in arrow::(anonymous namespace)::ReleaseExportedArray(ArrowArray*) ()
   from /opt/software/python/py310_env/lib/python3.10/site-packages/pyarrow/libarrow.so.1100
(gdb) up
#8  0x00007fffd0aab6f7 in std::_Sp_counted_ptr_inplace<arrow::(anonymous namespace)::ImportedArrayData, std::allocator<arrow::(anonymous namespace)::ImportedArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()
   from /usr/local/packages/R/4.2/lib/R/library/arrow/libs/arrow.so
(gdb) up
#9  0x00007fffd04eda4a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x55555c8b2a70)
    at /usr/include/c++/11/bits/shared_ptr_base.h:168
168		    _M_dispose();
(gdb)

Calling R's gc()  before shutting down the session does not solve the segfault. Neither does Python's gc.collect().

x86_64. Depending on what is involved I might be able to build from source.

Still a segfault (Python 3.10, numpy 1.24, pandas 2.0.0)
(gdb) backtrace
#0  0x00005555557868b0 in new_threadstate (interp=0x0, init=1) at ../Python/pystate.c:616
#1  0x00005555557a4ee2 in PyThreadState_New (interp=<optimized out>) at ../Python/pystate.c:684
#2  PyGILState_Ensure () at ../Python/pystate.c:1504
#3  0x00007fffe0f315a3 in arrow::py::NumPyBuffer::~NumPyBuffer() ()
   from /home/guest/software/py310_env/lib/python3.10/site-packages/pyarrow/libarrow_python.so
#4  0x00007fffe0f16c5d in std::_Sp_counted_ptr_inplace<arrow::ArrayData, std::allocator<arrow::ArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () from /home/guest/software/py310_env/lib/python3.10/site-packages/pyarrow/libarrow_python.so
#5  0x00007fffe0f16bc5 in std::_Sp_counted_ptr_inplace<arrow::ArrayData, std::allocator<arrow::ArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () from /home/guest/software/py310_env/lib/python3.10/site-packages/pyarrow/libarrow_python.so
#6  0x00007fffddbc297a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() ()
   from /home/guest/software/py310_env/lib/python3.10/site-packages/pyarrow/libarrow.so.1200
#7  0x00007fffde6909ac in arrow::(anonymous namespace)::ReleaseExportedArray(ArrowArray*) ()
   from /home/guest/software/py310_env/lib/python3.10/site-packages/pyarrow/libarrow.so.1200
#8  0x00007fffd03746f7 in std::_Sp_counted_ptr_inplace<arrow::(anonymous namespace)::ImportedArrayData, std::allocator<arrow::(anonymous namespace)::ImportedArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () from /usr/local/packages/R/4.2/lib/R/library/arrow/libs/arrow.so
#9  0x00007fffcfdb6a4a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x55555c017cb0)
    at /usr/include/c++/11/bits/shared_ptr_base.h:168
#10 0x00007fffd0378031 in std::_Sp_counted_ptr_inplace<arrow::(anonymous namespace)::ImportedBuffer, std::allocator<arrow::(anonymous namespace)::ImportedBuffer>, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () from /usr/local/packages/R/4.2/lib/R/library/arrow/libs/arrow.so
#11 0x00007fffcfe7ecde in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x555559f5fe20)
    at /usr/include/c++/11/bits/shared_ptr_base.h:168
#12 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count (this=0x55555cd82208, __in_chrg=<optimized out>)
    at /usr/include/c++/11/bits/shared_ptr_base.h:705
#13 std::__shared_ptr<arrow::Buffer, (__gnu_cxx::_Lock_policy)2>::~__shared_ptr (this=0x55555cd82200, __in_chrg=<optimized out>)
--Type <RET> for more, q to quit, c to continue without paging--c
   /11/bits/shared_ptr_base.h:1154
#14 std::shared_ptr<arrow::Buffer>::~shared_ptr (this=0x55555cd82200, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/shared_ptr.h:122
#15 std::_Destroy<std::shared_ptr<arrow::Buffer> > (__pointer=0x55555cd82200) at /usr/include/c++/11/bits/stl_construct.h:151
#16 std::_Destroy_aux<false>::__destroy<std::shared_ptr<arrow::Buffer>*> (__last=0x55555cd82210, __first=0x55555cd82200) at /usr/include/c++/11/bits/stl_construct.h:163
#17 std::_Destroy<std::shared_ptr<arrow::Buffer>*> (__last=0x55555cd82210, __first=<optimized out>) at /usr/include/c++/11/bits/stl_construct.h:196
#18 std::_Destroy<std::shared_ptr<arrow::Buffer>*, std::shared_ptr<arrow::Buffer> > (__last=0x55555cd82210, __first=<optimized out>) at /usr/include/c++/11/bits/alloc_traits.h:848
#19 std::vector<std::shared_ptr<arrow::Buffer>, std::allocator<std::shared_ptr<arrow::Buffer> > >::~vector (this=0x5555579454f8, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/stl_vector.h:680
#20 arrow::ArrayData::~ArrayData (this=0x5555579454d0, __in_chrg=<optimized out>) at /tmp/Rtmp3j0oQh/R.INSTALL2da0c279091ac/arrow/libarrow/arrow-<IP_ADDRESS>000321/include/arrow/array/data.h:77
#21 __gnu_cxx::new_allocator<arrow::ArrayData>::destroy<arrow::ArrayData> (__p=0x5555579454d0, this=0x5555579454d0) at /usr/include/c++/11/ext/new_allocator.h:168
#22 std::allocator_traits<std::allocator<arrow::ArrayData> >::destroy<arrow::ArrayData> (__p=0x5555579454d0, __a=...) at /usr/include/c++/11/bits/alloc_traits.h:535
#23 std::_Sp_counted_ptr_inplace<arrow::ArrayData, std::allocator<arrow::ArrayData>, (__gnu_cxx::_Lock_policy)2>::_M_dispose (this=0x5555579454c0) at /usr/include/c++/11/bits/shared_ptr_base.h:528
#24 0x00007fffd0190042 in arrow::StringArray::~StringArray() () from /usr/local/packages/R/4.2/lib/R/library/arrow/libs/arrow.so
#25 0x00007fffcfdb6a4a in std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (this=0x55555b140940) at /usr/include/c++/11/bits/shared_ptr_base.h:168
#26 0x00007ffff7c45495 in __run_exit_handlers (status=0, listp=0x7ffff7e19838 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at ./stdlib/exit.c:113
#27 0x00007ffff7c45610 in __GI_exit (status=<optimized out>) at ./stdlib/exit.c:143
#28 0x00007ffff7c29d97 in __libc_start_call_main (main=main@entry=0x55555577f2f0 <main>, argc=argc@entry=2, argv=argv@entry=0x7fffffffe508) at ../sysdeps/nptl/libc_start_call_main.h:74
#29 0x00007ffff7c29e40 in __libc_start_main_impl (main=0x55555577f2f0 <main>, argc=2, argv=0x7fffffffe508, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe4f8) at ../csu/libc-start.c:392
#30 0x000055555577f225 in _start ()

I even tried when R's garbage collection is exhaustive (gc(full = TRUE)), with or without Python's gc.collect() (and when with it the two permutations of calling sequences). Still a segfault.
The stack trace in gdb shows that this happens in pyarrow rather that in R's arrow. I am also noting that the issue is only present with string arrays.  Freeing the individual strings in the array twice would lead to a segfault. Also, IIRC R using a memory optimization trick to avoid duplication of identical strings (see installChar in the R C-API). May the exit code leads to the memory for those string being freed one time too many.

I am not using conda. R is compiled from source, arrow is installed using R's package management, pyarrow through pip and in a virtualenv.

The call stack when it segfaults indicates that the shared library (.so) in arrow is a starting point, and it moves to pyarrow mid-way. I looked at what is the status of the embedded R during that sequence an noticed that the embedded R is ended (the embedded R has to be initialized before anything R can be done, and ended to run R cleanup and finalizers). This mean that the starting is not R itself, but more a registered exit handler for Python calling a function in that .so.
If trying to acquire the GIL while the Python process has already shut down is the issue as you suspect then this is happening here: https://github.com/apache/arrow/blob/45918a90a6ca1cf3fd67c256a7d6a240249e555a/python/pyarrow/src/arrow/python/numpy_convert.cc#L56 . And then it means that this code should have been called before Python has shut down.
The segfault happens even when both R and Python arrow objects are deleted and the garbage collection for both languages is performed.  Or even when the R code that creates the R data.frame using the pyarrow-created array fails (see snippet below as a change to my minimal example few comments above).
code = """
    function(df) {
        # df$col1  # no segfault on exit
        # I(df$col1)  # no segfault on exit
        # df$col2  # no segfault on exit
        tmp <- I(df$col2)  # segfault on exit
        "a" + 1  # Error here
        tmp
    }
"""

). This means that materializing a pyarrow-created array in R (or whatever I() is doing) is sufficient to create the segfault at exit without having an R object still protecting that data from collection. The problem is limited to string arrays though. The issue is almost certain where things differs between say, FloatArrays and StringArrays but I am unfamiliar with Arrow's code base.

I just tried again with release 12.0.0 (both on the arrow and pyarrow sides). It still segfault and the backtrace in gdb looks similar.
I have observed that the following small change in my minimal example (see earlier in this thread)
toggles the segfault:
identity(df$col2)  # no segfault
I(df$col2)  # segfault

This seems like additional evidence supporting some form unwanted or incomplete copy of underlying data / memory regions. The issue is only present with strings, so may this is cause by mismatched expectations between shallow and deep copies of a string array?
In

Fixed upstream (https://github.com/apache/arrow/pull/35812).


LAST: Format according to PEP8, re-gen docs

Formatted to black in 1e956f566c5801f963db137169ae020f6204b896 and regenerated docs.
All remaining changes before publication will only change how output is done to the console, which will not result in any changes to the docs.


errors trying to run gaps 0.0.3.jar

Hi,
I've been trying to figure out the best way to get this thing to run. So I finally just downloaded the jar and put the application.yaml in a folder together. I edited the application.yaml with my plex key and moviedb key and I'm getting these errors when I try to run the jar through powershell - https://imgur.com/a/L15wp8l
Also I'm not 100% sure my plex token thing is working, I've gotten the key from my view xml file and inserted it and tried removing the brackets in the url and leaving the brackets in the url and both gave the same errors. Then I checked the ID for my movies and it is indeed ID 1 but the url for it(http://<IP_ADDRESS>:32400/library/sections/1/all/?X-Plex-Token=) doesn't work(nothing loads when I go to the url) but I go to http://<IP_ADDRESS>:32400/library/sections/2/all/?X-Plex-Token= or http://<IP_ADDRESS>:32400/library/sections/3/all/?X-Plex-Token= which are tv shows and music and they both load just fine in my browser.
I'm guessing that's the problem i'm getting is that the plex movie id url is incorrect maybe?

Try running with the docker build now.


How to use rule for having a begin and end

Summary
I want to use the rule for checking if there are any if-else or for or while with single statements but doesn't have begin-end.
Which rules should I use, as I don't see them in the rules list.
Proposal
[optional] Suggest approach or include pseudo code for how one might implement
the rule.
Additional context
https://chipsalliance.github.io/verible/lint.html

If you can guide me, I would like to add this rule and maybe be a contributor. Would you mentor me in this regard?