Tracking issue for syn 1.0

Current prerelease: syn-next = "1.0.0-rc1"
Release notes in progress:

Syn is a library for parsing Rust code, largely geared toward use in procedural macros but generally applicable as a Rust parser outside of that too.
Syn was originally a sidequest on the effort to making Serde's derive macros work on stable Rust in 2016, but has since taken off as a foundational library in its own right. These days it appears in support of diverse use cases like:

convenient interop between Rust-based Wasm modules and JavaScript,
easy command line interfaces,
a polished async experience, and
a concurrency framework for embedded real time systems.

Excitingly, the fraction of open source Rust projects that rely on Syn is still climbing aggressively (see red line). This reflects how important procedural macros are to the experience we want people to have when working with Rust -- empowering everyone to build reliable and efficient software.

This 1.0 release signifies that Syn is a polished and stable library and that it offers a user experience we can stand behind as the way we recommend for all Rustaceans to write procedural macros.
Be aware that the underlying Rust language will continue to evolve. Syn is able to accommodate most kinds of Rust grammar changes via the Verbatim variants in the syntax tree, but we will plan to put out new major versions on an 8 to 12 month cadence to incorporate ongoing language changes in a first class way.

Note: in combination with this release, please see also the release notes for quote 1.0 which resolves multiple longstanding limitations of the quote macro.

Breaking changes

Minimum required Rust version is raised from rustc 1.15 to 1.31.

Items

The syntax tree for function signatures has been redesigned. The types MethodSig and FnDecl have been unified into one type Signature that is common across all varieties of function signatures.

The syntax tree for function arguments has been redesigned. The new type is FnArg which represents one argument of a function, associated function, trait function, or foreign function. Arguments of closures are no longer treated as FnArg and are simply a Pat instead.

The Fields type now implements IntoIterator, in addition to the previously existing IntoIterator impls on &Fields and &mut Fields. This may require changing .into_iter() calls to .iter() when used on a value of type &Fields.

The representation of Item::Macro2 2.0-style declarative macros have been collapsed into a single token stream pending figuring out what the syntax should be in rust-lang/rust#39412.

Expressions

Expr::Await is a new variant of expression for postfix .await syntax per ongoing work on rust-lang/rust#50547.

Patterns

Pat::Or is a new variant of pattern as specified by RFC 2535.

Pat::Type is a new variant of pattern for type ascription as specified by RFC 2522.

Pat::Rest is a new variant of pattern representing the .. pattern as specified by RFC 2707.

The Pat::Slice and Pat::Tuple patterns have been redesigned to accomodate RFC 2359.

Pat::Ref has been renamed to Pat::Reference to align with Expr::Reference and Type::Reference.

Tokens

The Lit::Int and Lit::Float literal types have been redesigned to represent arbitrarily large numbers and arbitrary suffixes. Rather than .value(), there is a .base10_digits() accessor which the caller should parse into the appropriate representation.

The types of the token representation of the self and Self tokens have been renamed from Self_ / CapSelf to SelfValue / SelfType respectively. This does not affect you if you are referring to them as Token![self] and Token![Self].

The Lit::Verbatim literal escape hatch now holds a proc_macro2::Literal primitive token directly, rather than the previous LitVerbatim wrapper.

Attributes

The Attribute::interpret_meta method is removed in favor of Attribute::parse_meta which produces a better error.

The variants of Meta now contain a Path rather than a single Ident as specified by RFC 2103.

Function parameters now hold attributes as specified by RFC 2565.

More

The argument of Path::is_ident is now taken by reference. The common case of using this method with a string literal will continue to work: path.is_ident("...").

The type returned by Punctuated::into_iter no longer has a P type parameter, as it only returns sequence elements without punctuation.

The first, last, and last_mut accessors of Punctuated now return the element T only, no longer a punctuated pair. The old paired behavior of .first() can be written as .pairs().next(), .last() can be written as .pairs().next_back(), and .last_mut() can be written as .pairs_mut().next_back().

Various uses of tts as a field name in the syntax tree have been renamed to tokens to eliminate the nonstandard abbreviation.

FYI @mystor @alexcrichton @SergioBenitez @sgrif.
The Syn changes are minor so it should be fine not to bother with the rc versions this time, but I figured I would give some advance notice. The quote changes are potentially interesting. Real release is scheduled for the week of August 12.

The variants of Meta now contain a Path rather than a single Ident as specified by RFC 2103.

The definition of Meta doesn't seem to support https://github.com/rust-lang/rust/pull/57367#issuecomment-457882109? It would be good to have a translation from Attribute to that grammar in some typed fashion.

Be aware that the underlying Rust language will continue to evolve. Syn is able to accommodate most kinds of Rust grammar changes via the Verbatim variants in the syntax tree, but we will plan to put out new major versions on an 8 to 12 month cadence to incorporate ongoing language changes in a first class way.

I would strongly recommend waiting for #[non_exhaustive] in some form to enable a more well typed gradual incorporation of language changes.

The definition of Meta doesn't seem to support rust-lang/rust#57367 (comment)? It would be good to have a translation from Attribute to that grammar in some typed fashion.

Thanks for the link! In my opinion that grammar doesn't have enough structure to benefit from a more structured representation than Attribute. Meta are a subset of attributes that are easier to work with in exchange for restricting yourself to a subset of the grammar that is common by convention. Use cases beyond that subset can parse what they need from Attribute.

I would strongly recommend waiting for #[non_exhaustive] in some form to enable a more well typed gradual incorporation of language changes.

Noted; I've been considering it but would use a __Nonexhaustive variant instead of waiting because it is effectively the same thing but stable.

Thanks for the link! In my opinion that grammar doesn't have enough structure to benefit from a more structured representation than Attribute. Meta are a subset of attributes that are easier to work with in exchange for restricting yourself to a subset of the grammar that is common by convention. Use cases beyond that subset can parse what they need from Attribute.

It's sort of the point of https://github.com/rust-lang/rust/pull/57367#issuecomment-457882109 to change the convention (which mainly exists due to language limitations), e.g.:

#[serde(bound = "T: MyTrait")]
#[serde(default = "Priority::lowest")]
#[proptest(value = "None")]

...into something better (which notably does not embed strings into the EDSL):

#[serde(bound(T: MyTrait))]
#[serde(default(Priority::lowest))]
#[proptest(value(None))]

The way I'd do it is to be more lazy about MetaList, expose:
pub struct MetaParens {
    pub ident: Ident,
    pub paren_token: Paren,
    pub tokens: TokenStream,
}

and then add a way to convert MetaParens to MetaList.

It ends up not being a net benefit. Once you've accounted for formats like #[serde(default = Priority::Low, rename = "pri")], there ends up being so little generalizable structure to attributes that manipulating them as Meta is no longer any easier than writing the parser without Meta. This isn't a reflection of your MetaParens suggestion being bad; instead it reflects how well suited the Parse trait already is to handling such things. So while we could lazify and complicate Meta to fit 95% of use cases with a user experience that is 0-10% easier than the Parse trait, the current tradeoff fits 85% of use cases with a user experience that is substantially simpler.

Thanks for championing this @dtolnay, this all sounds great to me!
There's two things I was wondering about as well:

we will plan to put out new major versions on a 9 to 18 month cadence to incorporate ongoing language changes as needed

I understand the need for this but if this were applied to serde, for example, it'd be pretty disruptive. As a massively used dependency it seems like we should try to bend over backwards pretty hard to see if we can avoid doing breaking changes for as long as possible.
Would it be possible to make all the enums of syn non-exhaustive and still preserve the basic ergonomics of what we have today? For example folds would still work, matches would have to return errors but that seems ok, and otherwise I'm not sure how too too disruptive this would be otherwise.
I suspect though that this has been thought about, so I'm curious to hear sort of what y'all have been thinking about this.

Minimum required Rust version is raised from rustc 1.15 to 1.31.

Why not 1.32.0? (being able to use the 2018 edition seems like it'd be nice?)

I understand the need for this but if this were applied to serde, for example, it'd be pretty disruptive.

This is true but it's only because serde appears in the public API of so many libraries. By contrast there are almost no libraries with syn in the public API, basically synstructure and a small handful of others. A lot of crates depend on syn but those are all proc macros with only macros in the API where a syn upgrade can be done transparently.
Analyzing changes from past releases, having a policy of non-exhaustive everything would not noticeably reduce the rate at which language changes beyond the add-a-variant variety stack up.

Why not 1.32.0? (being able to use the 2018 edition seems like it'd be nice?)

We will be using 2018 edition with 1.31.

Ah ok, that's a good point that it's not just new variants but tweaks to existing ones. If that's the case I think that there's no choice but to plan for eventual new breaking releases.
This point is moot, but although I agree that it's less pressing because syn isn't in the public API it's arguably still 'just as disruptive' in the sense that there will be a lot of effort necessary to upgrade parsers and avoid compiling 5 versions of syn in one crate graph eventually. This work can all largely happen independently because there's no public API dependencies though.

We will be using 2018 edition with 1.31.

Oops, my mistake!

I released 1.0.0-rc4 and don't have any further changes planned, so if nothing else comes up then this will be the release going out this week, likely Tuesday.

https://github.com/dtolnay/syn/releases/tag/1.0.0


Update SimpleSenderIT and SendMoneyExample to use latest interledger-rs docker image

We are using an older version of the interledger-rs node docker image. The new image on testnet has API changes that are backwards incompatible. We should update to the latest docker image.

This is blocked by https://github.com/interledger-rs/interledger-rs/issues/333

@nhartner Did this get worked out, or do we still need to coordinate with @dora-gt in https://github.com/interledger-rs/interledger-rs/issues/333?


Return id when track is executed and add get(id) to retrieve the event logged

Hello devs,

It would be extremely useful is track() returns a unique ID;

Then also have a get(ID) that fetches an event.  Atm it is not possible to add tests to verify if an event has been created with the right details.

Mixpanel's backend only returns 0 & 1 in response. It doesn't reveal the actual event id (or any other information) in the response of /track API. Moreover, I think, they didn't offer any API to retrieve any event details by id.
Documentation LInk: https://developer.mixpanel.com/reference/track-event


Does not respond with 'Loading Music Library...'

Application stops with 'Loading Music Library...'.

However in Chrome I can open and listen Google Music.
radiant-player-mac worked well so far, but it does not start today.
OSX 10.9.4
Adobe flash is up to date

The "uBlock Origins" extension was causing my issue. Once I set the URL in the whitelist, The website loaded as expected.


fix: pass all data in .request()

Current dependencies on/for this PR:

main

PR #426   👈

This comment was auto-generated by Graphite.


Regression: hot restart doesn't work on Windows

Steps to Reproduce

run github.com/csells/flutter_cropping under Windows from w/in VS Code
make zero changes and press the hot reload button
either the app will crash quickly or the "Syncing files to device Windows..." will never end

PS C:\Users\csell\Code\flutter_cropping> flutter doctor -v                                                              [√] Flutter (Channel master, v1.10.1-pre.41, on Microsoft Windows [Version 10.0.18362.295], locale en-US)                  • Flutter version 1.10.1-pre.41 at C:\Users\csell\flutter                                                              • Framework revision 5a3a46ada2 (30 hours ago), 2019-09-07 18:37:41 -0400                                              • Engine revision c9ea4dba8d                                                                                • Dart version 2.5.0 (build 2.5.0-dev.4.0 ec7ec4ecf7)                                                                                [√] Android toolchain - develop for Android devices (Android SDK version 29.0.1)                                           • Android SDK at C:\Users\csell\AppData\Local\Android\sdk                                                              • Android NDK location not configured (optional; useful for native profiling support)                                  • Platform android-29, build-tools 29.0.1                                                                              • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java                                                 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)                                          • All Android licenses accepted.                                                                                [√] Visual Studio - develop for Windows (Visual Studio Community 2017 15.9.14)                                             • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community                                       • Visual Studio Community 2017 version 15.9.28307.770                                                                                [!] Android Studio (version 3.4)                                                                                • Android Studio at C:\Program Files\Android\Android Studio                                                            X Flutter plugin not installed; this adds Flutter specific functionality.                                               X Dart plugin not installed; this adds Dart specific functionality.                                                     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)                                                                                [√] VS Code (version 1.38.0)                                                                                • VS Code at C:\Users\csell\AppData\Local\Programs\Microsoft VS Code                                                   • Flutter extension version 3.4.1
[√] Connected device (2 available)                                                                                • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)                           • Windows                   • Windows       • windows-x64 • Microsoft Windows [Version 10.0.18362.295]
! Doctor found issues in 1 category.

Do you mean hot restart? I can reproduce this with hot restart, but hot reload is working fine for me.

yes. hot restart.

Repros with the FDE example too.
On macOS, hot restart of the example is giving me:
[ERROR:flutter/shell/common/shell.cc(178)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[ERROR:flutter/shell/common/engine.cc(188)] Could not prepare to run the isolate.
[ERROR:flutter/shell/common/engine.cc(127)] Engine not prepare and launch isolate.
Error -32000 received from application: Could not run configuration in engine.

I tried hot restarting the FDE example app from flutter run. I accidentally left it running while I retested macOS, and it finished 6 minutes later.
Do you know when this last worked? I'm not sure I've ever actually used Hot Restart since Hot Reload started working.

This worked (along with the other bugs I listed last night) before the move to the Win32 implementation. This is a regression.

I did some checking on either side of the Win32 change, and that does indeed seem to be the exact regression point for this. I'm not sure how or why yet, since it doesn't seem like the windowing APIs should affect this.

Reproducing it with the debugger attached, it seems that basically the next time it draws after hot reload, it crashes somewhere inside ANGLE. The location isn't consistent though, so I'm not sure if it's something like a memory stomp, or somehow the specific draw configuration is something that goes down a bad code path.
I'm still not sure what about hot restart is the trigger.

The reason it often hangs for a really long time seems to be that until it gets some event (mouse moves over the window, window brought forward, etc.) the _launchFromDevFS steps never completes, which smells like a side-effect of the not-great runloop implementation we currently have on Windows.
That appears to be unrelated to the crash though.

is this a case where wiggling the mouse actually making it faster?

I have been using FDE Windows for experiments since May and it did use to be the other way around earlier on, so that hot reload worked, but hot-restart did not. Now it is as stated here, hot reload works (mostly) but hot-restart never does. I always have to do full rebuild for changes that requires restart, luckily it compiles pretty snappily. I'm not sure when exactly it switched, around 1.9.x maybe already in 1.8.x.

James and Francisco are both seeing this working now. I'm not sure what happened, but I'm glad it works now :)

I can also confirm that both hot-restart and hot-reload works well on Windows now (master, v1.16.4-pre.69). They both worked have for quite a while, not exactly sure when it started working either.  Thanks for the fix, whatever it was that fixed it! :)


Redhatrelease detector

Due to the detector registration and fact that their in a non-ordered
map, it is random whether the osrelease or redhatrelease detector would
hit. And likely resulted in alternately formatted namespace strings.
This change causes the osrelease to not detect when data has
centos-release or redhat-release, which is not great because if the
redhatrelease detector is not compiled in, then that would not be a
fallback that the osrelease detector could rely on. :-\
Until https://github.com/coreos/clair/pull/193 is merged, having
vulnerabilities that are tagged both rhel and centos would duplicate in
the database or use a change that requires a migration.
But presently due to the fetcher logic, the rhel provided
vulnerabilities are labelled for centos, and then the namespace does not
match and therefore not tested against.
So until such a day that a vulnerability could have both rhel and centos
label, then hack this in. It'll accomplish the same during this interim.

bump

LGTM. Is this causing enough of an issue that it should be backported into stable?

Oh that is an idea. Let me check
On Wed, Aug 31, 2016, 18:44 Jimmy Zelinskie<EMAIL_ADDRESS>wrote:

LGTM. Is this causing enough of an issue that it should be backported into
stable?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/coreos/clair/pull/229#issuecomment-243925234, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEF6QkGNFwSK-Wp9Hwd6OAk9pM8IaPnks5qlgOzgaJpZM4JjZYs
.

@jzelinskie Any idea when the next release will occcur that would include this if it isn't backported?

@brianwcook realistically on the order of months. We need to spend some time to making sure we get the multiple-namespace support in properly and make a few other breaking changes to clean things up. Doing so requires a large amount of thought around the future of project's architecture and our maintainers currently have a lot on their plates.
Backporting should be a simple git cherry-pick, so I'm totally fine with getting useful changes like this into our current stable version.

@jzelinskie in that case, then yes it would be great to have it backported to stable!


适配 DSM 7.0 版本

已升级dsm7，端茶等大佬更新

Now Netease is bocking oversea IPs, better to use another lyrics provider
Use this plugin instead: https://github.com/LightAPIs/qq_music_aum


Feature request: search/filter by keyword

Nice work so far. Would be great to filter by keyword in finding title, desc, or AWS service.
Maybe activate search/filter with / key?

Right, I'm back from my hols now - I'll look at this, I like it


Add support for changing default snippets location.

Fixes #7
Add support for changing default snippets location:
New entry in settings has been added by default with the extension, this will help setting custom location for your snippets:

By default and if no value was introduced yet, the settings get updated automatically to default location relative to your OS/machine. (e.g in Windows "snippets.snippetsLocation": "c:\\Users\\tahab\\AppData\\Roaming\\Code\\User\\globalStorage\\tahabasri.snippets\\data.json")
Data file can be renamed to whatever you like (makes sense when doing backups).
Once settings updated, extension will take care of moving your data file from old to new location.
This feature can be really handy when combined with a cloud client installed locally. You can change your snippets path to a path provided by your cloud client and ensure an instant backup of your snippets.

In addition, this upgrades y18n to version 4.0.1 or later to fix vulnerable dependency.

Hi @tahabasri,
I was working around a specific use case (where I want to get data from a specific file into a template - by running a script).
I searched on my computer for the named location but it can not be found.
I used (voidtools) app Everything to search for tahabasri.snippets and there is no entry beside the installed extension on my computer.
Reading issue #7 I could not find that setting on my VS-code either - though it should be in Release 1.0.0 (but it is not named in the change-log of any release).
Question: Where are the snippets in the latest release stored?
Add-on-Question: Would you be willing to document it somewhere in the extension?

Hi @42sol-eu thanks for reaching out!

Where are the snippets in the latest release stored?

Starting Snippets 2.x, Snippets are saved within VSCode data, check this section.

Add-on-Question: Would you be willing to document it somewhere in the extension?

In Snippets 1.x (by this PR time), they were saved in a JSON and configurable via the Storage location settings. That's no longer the case.
--
If your use case depends on snippets being hosted in an external file, check this new feature (enhanced version of the storage location).


Why uid and gid in /proc/[pid]/status have been parsed as string?

As far as I know, they are uint32

+1, I just verified this as well ((1), (2), and (3)), sending a patch!


Changes key to inlet on RankSources

This lets the user just use the inlet height to set the ranking instead of an awkward key string, see #116 .

Codecov Report

Merging #177 (7b18420) into devel (e2b6d72) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            devel     #177   +/-   ##
=======================================
  Coverage   76.66%   76.66%
=======================================
  Files         133      133
  Lines        7473     7475    +2
=======================================
+ Hits         5729     5731    +2
  Misses       1744     1744

Impacted Files
Coverage Δ

openghg/localclient/_rank_sources.py
95.55% <100.00%> (-0.10%)
:arrow_down:

openghg/standardise/surface/_gcwerks.py
81.89% <100.00%> (+0.23%)
:arrow_up:

openghg/types/_enum.py
100.00% <100.00%> (ø)

tests/dataobjects/test_searchresults.py
100.00% <100.00%> (ø)

tests/localclient/test_local_ranking.py
100.00% <100.00%> (ø)

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 e2b6d72...7b18420. Read the comment docs.


Create smallest array.py

Why:

What's being changed:

Check off the following:

[ ] All of the tests are passing.
[ ] I have reviewed my changes in staging.
[ ] For content changes, I have reviewed the localization checklist
[ ] For content changes, I have reviewed the Content style guide for GitHub Docs.

hii please accept my Merging it?

👋 @charu991 This repo is for the documentation on docs.github.com, if you'd like to make a contribution, feel free to check out the open [issue]((https://github.com/github/docs/issues) or ask any questions in discussions! For more details, see our https://github.com/github/docs/blob/main/CONTRIBUTING.md.


Add missing tests for issue #71

Problem: neither href nor model was set for the inner imported-template if the partial/viewModel property was attached before CE upgrade.

Please note, that failing tests are exactly the once that were failing for 4.0.1


/usr/bin/apr-1-config not found issue when building mod_auth_mellon using httpd:2.4.43-alpine

I'm not sure this is the right place to mention this - please forgive me if it isn't.
We were previously building mod_auth_mellon using httpd:2.4.41-alpine without problem.
Yesterday when we pulled the latest httpd:alpine (2.4.43-alpine) we received this error:
config.status: creating config.h
  cd xmlsec1-1.2.30 && \
/usr/local/apache2/bin/apxs -Wc,"-std=c99   -I/usr/local/include -I/usr/include/libxml2 -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_SIZE_T -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/local/include/xmlsec1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -DHAVE_LASSO_UTILS_H  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -g -O2" -Wl,"-lssl -lcrypto  -L/usr/local/lib -llasso  -lcurl  -lglib-2.0 -lintl " -Wc,-Wall -Wc,-g -c mod_auth_mellon.c auth_mellon_cache.c auth_mellon_config.c auth_mellon_cookie.c auth_mellon_diagnostics.c auth_mellon_handler.c auth_mellon_util.c auth_mellon_session.c auth_mellon_httpclient.c
  cd xmlsec1-1.2.30 && \
apxs:Error: /usr/bin/apr-1-config not found!.
make: *** [Makefile:45: mod_auth_mellon.la] Error 1

Now I know this isn't the place to talk about mod_auth_mellon, but it would appear something has changed in regard to the availability of /usr/bin/apr-1-config between the httpd:alpine versions?
Thanks for your time.

Could you provide a Dockerfile so people could at least reproduce your issue?

This was an intentional change/fix in https://github.com/docker-library/httpd/pull/163 -- you'll want to manually apk add --no-cache apr-dev in your Dockerfile (optionally with --virtual so you can easily/cleanly apk del after you build your module).

Thank you for your quick reply!

I'll also add (for anyone else coming across this thread) I also needed apr-util-dev as /usr/bin/apu-1-config was also required and missing.

My environment includes that.
apk info -L apr-util-dev | grep apu-1-config
usr/bin/apu-1-config


[build-presets] Test Swift Syntax during macOS PR smoke testing

There have been occasions in the past where changes to the gyb_syntax_support broke the SwiftSyntax build that weren't caught in CI because smoke test didn't build/test the downstream Swift Syntax project.

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci please smoke test windows

@swift-ci please smoke test windows

@swift-ci please smoke test windows

@swift-ci please smoke test windows


Crash the app in react native 0.59.4

I updated to the lastest version of react native and in IOS when I push the button that it uses this code crash the app and it closes. I tried with the versions 1.0.1 ( my previous version) and 1.0.4
In Android the same button go well.
Before to the update I used 0.55.4 version and in both SO went well.

With react native version 0.55.9 we have the same crash.

Can you try with latest version? Please check your client token also.

I have the same error, I'm trying with the react native version 0.55.9

If you want I can do any other test. The problem in IOS is that I can not access to see the log

I am having the same issue with the new version, tested with react native 0.59 and 0.60

2019-09-03 18:51:22.813 [info][tid:com.facebook.react.JavaScript] Error happenedTypeError: null is not an object (evaluating '_reactNativeBraintreePaymentsDropIn.default.show')
2019-09-03 18:51:22.812823+0530 app[18202:2045133] Error happenedTypeError: null is not an object (evaluating '_reactNativeBraintreePaymentsDropIn.default.show')

@Minishlink , have you been able to see it?

I fixed the problem, in the previous version the field amount in threeDSecure json it was a value from a state (this.state.price) now it needs to pase a float: parseFloat(this.state.price)


🐛 [EPIC GAMES FREE] Captcha not working

Description
Just installed and configured addon:
config.json
{     "runOnStartup": true,     "cronSchedule": "15 18 * * *",     "logLevel": "info",     "webPortalConfig": {         "baseUrl": "http://<IP_ADDRESS>:3005",     },     "accounts": [         {             "email"<EMAIL_ADDRESS>            "password": "my-password"         },     ],     "notifiers": [     {         "type": "email", // This indicates the notifier type         "smtpHost": "smtp.gmail.com",         "smtpPort": 587,         "emailSenderAddress"<EMAIL_ADDRESS>        "emailSenderName": "[HomeAssistant]: Epic Games Captchas",         "emailRecipientAddress"<EMAIL_ADDRESS>        "secure": true,         "auth": {             "user"<EMAIL_ADDRESS>            "pass": "my-password",         },     },     ], }
and gettings this error:
`
Starting...
/etc/cont-init.d/00-banner.sh: executing

Add-on: Epic Games Free
Automatically login and redeem promotional free games from Epic Games Store
Add-on version: bullseye-slim-2023-05-03
You are running the latest version of this add-on.
System: Debian GNU/Linux 11 (bullseye)  (amd64 / qemux86-64)
Home Assistant Core: 2023.6.0
Home Assistant Supervisor: 2023.06.1
Please, share the above information when looking for help
or support in, e.g., GitHub, forums
Provided by: https://github.com/alexbelgium/hassio-addons
/etc/cont-init.d/01-custom_script.sh: executing
[17:02:02] INFO: Execute /config/addons_autoscripts/epicgamesfree.sh if existing
[17:02:02] INFO: ... no script found
/etc/cont-init.d/20-folders.sh: executing
/etc/cont-init.d/99-run.sh: executing
[17:02:02] WARNING: The config.json file found in /config/addons_config/epicgamesfree will be used. Please customize according to https://github.com/claabs/epicgames-freegames-node#json-configuration and restart the add-on
[17:02:02] INFO: Starting the app

<EMAIL_ADDRESS>entrypoint-config
node dist/src/entrypoint-config.js

npm notice
npm notice New minor version of npm available! 9.5.1 -> 9.7.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.7.1
npm notice Run npm install -g<EMAIL_ADDRESS>to update!
npm notice
Setting timezone: America/Fortaleza
Run on startup: true
[2023-06-12 17:02:04.287 -0300] INFO: Started epicgames-freegames-node
COMMIT_SHA: "c0dfe30ee94fa609a9efcb5eb2b8fd0c1dafe6e2"
BRANCH: "master"
DISTRO: "alpine"
[2023-06-12 17:02:04.634 -0300] INFO: Checking free games for<EMAIL_ADDRESS>user<EMAIL_ADDRESS>[2023-06-12 17:02:17.542 -0300] INFO: Go to this URL and do something
user<EMAIL_ADDRESS>url: "http://<IP_ADDRESS>:3005/?targetId=5EEA09BF70DB4F80A087F595BD04F2F9"
[2023-06-12 17:02:17.858 -0300] ERROR: Error sending email. Please check your configuration
user<EMAIL_ADDRESS>reason: "LOGIN"
emailConfig: {
"type": "email",
"secure": true,
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"emailSenderAddress"<EMAIL_ADDRESS>"emailSenderName": "[HomeAssistant]: Epic Games Captchas",
"emailRecipientAddress"<EMAIL_ADDRESS>"auth": {
"user"<EMAIL_ADDRESS>"pass": "my-password"
}
}
[2023-06-12 17:02:18.024 -0300] ERROR: Encountered an error during browser automation. Saved a screenshot for debugging purposes.
user<EMAIL_ADDRESS>errorFile: "error-2023-06-12T20:02:17.858Z.png"
[2023-06-12 17:02:18.030 -0300] ERROR: 380BC2E4DB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
user<EMAIL_ADDRESS>err: {
  "type": "Error",
  "message": "380BC2E4DB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:\n",
  "stack":
      Error: 380BC2E4DB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

  "library": "SSL routines",
  "reason": "wrong version number",
  "code": "ESOCKET",
  "command": "CONN"
}

[2023-06-12 17:02:18.030 -0300] WARN: Current version
COMMIT_SHA: "c0dfe30ee94fa609a9efcb5eb2b8fd0c1dafe6e2"
BRANCH: "master"
DISTRO: "alpine"
[2023-06-12 17:02:18.030 -0300] INFO: Exiting successfully
Run once: false
Setting cron schedule as 15 18 * * *
`
i have a cookie file on the /config folder, using the how-to on read.me (Installed Chrome Extension and dump cookie data).
Reproduction steps
Install and configure

Addon Logs
Starting...
/etc/cont-init.d/00-banner.sh: executing

-----------------------------------------------------------
 Add-on: Epic Games Free
 Automatically login and redeem promotional free games from Epic Games Store
-----------------------------------------------------------
 Add-on version: bullseye-slim-2023-05-03
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (amd64 / qemux86-64)
 Home Assistant Core: 2023.6.0
 Home Assistant Supervisor: 2023.06.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
/etc/cont-init.d/01-custom_script.sh: executing
[17:02:02] INFO: Execute /config/addons_autoscripts/epicgamesfree.sh if existing
[17:02:02] INFO: ... no script found
/etc/cont-init.d/20-folders.sh: executing
/etc/cont-init.d/99-run.sh: executing
[17:02:02] WARNING: The config.json file found in /config/addons_config/epicgamesfree will be used. Please customize according to https://github.com/claabs/epicgames-freegames-node#json-configuration and restart the add-on

[17:02:02] INFO: Starting the app

><EMAIL_ADDRESS>entrypoint-config
> node dist/src/entrypoint-config.js

npm notice
npm notice New minor version of npm available! 9.5.1 -> 9.7.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.7.1>
npm notice Run `npm install -g<EMAIL_ADDRESS>to update!
npm notice
Setting timezone: America/Fortaleza
Run on startup: true
[2023-06-12 17:02:04.287 -0300] INFO: Started epicgames-freegames-node
    COMMIT_SHA: "c0dfe30ee94fa609a9efcb5eb2b8fd0c1dafe6e2"
    BRANCH: "master"
    DISTRO: "alpine"
[2023-06-12 17:02:04.634 -0300] INFO: Checking free games for<EMAIL_ADDRESS>    user<EMAIL_ADDRESS>[2023-06-12 17:02:17.542 -0300] INFO: Go to this URL and do something
    user<EMAIL_ADDRESS>    url: "http://<IP_ADDRESS>:3005/?targetId=5EEA09BF70DB4F80A087F595BD04F2F9"
[2023-06-12 17:02:17.858 -0300] ERROR: Error sending email. Please check your configuration
    user<EMAIL_ADDRESS>    reason: "LOGIN"
    emailConfig: {
      "type": "email",
      "secure": true,
      "smtpHost": "smtp.gmail.com",
      "smtpPort": 587,
      "emailSenderAddress"<EMAIL_ADDRESS>      "emailSenderName": "[HomeAssistant]: Epic Games Captchas",
      "emailRecipientAddress"<EMAIL_ADDRESS>      "auth": {
        "user"<EMAIL_ADDRESS>        "pass": "my-password"
      }
    }
[2023-06-12 17:02:18.024 -0300] ERROR: Encountered an error during browser automation. Saved a screenshot for debugging purposes.
    user<EMAIL_ADDRESS>    errorFile: "error-2023-06-12T20:02:17.858Z.png"
[2023-06-12 17:02:18.030 -0300] ERROR: 380BC2E4DB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

    user<EMAIL_ADDRESS>    err: {
      "type": "Error",
      "message": "380BC2E4DB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:\n",
      "stack":
          Error: 380BC2E4DB7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

      "library": "SSL routines",
      "reason": "wrong version number",
      "code": "ESOCKET",
      "command": "CONN"
    }
[2023-06-12 17:02:18.030 -0300] WARN: Current version
    COMMIT_SHA: "c0dfe30ee94fa609a9efcb5eb2b8fd0c1dafe6e2"
    BRANCH: "master"
    DISTRO: "alpine"
[2023-06-12 17:02:18.030 -0300] INFO: Exiting successfully
Run once: false
Setting cron schedule as 15 18 * * *

Architecture
No response
OS
No response

There seems to be an update for this issue https://github.com/claabs/epicgames-freegames-node/pull/352


Issue with highlighted texts

The highlight on this page omits the text it's highlighting in Edge, it works fine in chrome.

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

ID: 3437af67-630b-d28f-7fbd-3eedf647f22a
Version Independent ID: 6c44f987-19a7-c256-e8fa-10378e61cf6e
Content: Creating a Model - EF Core
Content Source: entity-framework/core/modeling/index.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @rowanmiller
Microsoft Alias: divega

Edge bug.


Receiving "Cancelling Rendering" Message when trying to log in to certain website

I am trying to log in to a certain website with the following code:
        open(url)             >>> get(by: .name("fdsa"))             >>> setAttribute("value", value: user)             >>> get(by: .name("fdsa"))             >>> setAttribute("value", value: pw)             >>> get(by: .name("loginform"))             >>> submit             === output
After it submits the login form it fails to render the new page form some unknown reason...

I am getting this also. I see this when using the simulator. I cannot seem to  catch the error and once I get it for one url i continue to get it. closing the simulator does not fix the problem. restarting the mac seems to be the only fix

Anyone solved this problem? I am still getting the problem even if I restart my mac.


Compiler pre v7 support out of the box

Hi.  Great library.  I was pointed here as a possible solution by the NLog maintainers... so you are getting noticed!
I have a unique situation where I cant upload/reference assemblies in a dotnet based CMS SaaS solution.  I do have the ability to upload source files all day long, however those source files get compiled with the old compilers present in the NetFramework and zero support right now for any of the Microsoft.Net.Compilers way of upgrading the compile time to newer versions.
Because of that... I cant use => property shorthand functions, or any of the newer C# features for the time being.
Would you mind if I submit a PR that just downgrades these type of issues?

Since all newer refactoring tools will encourage one to make use of the latest C#-features, then I don't think you will get a promise that all future PRs will not make use of new syntax sugar. Unless you volunteer to become full time maintainer of LibLog :).
Btw. there are very few changes to LibLog so maintaining your own custom version should not be a big hazzle.

@snakefoot agreed.  And you know basically most of my situation... lol

Hi @ericnewton76,
this is a unique request. I am somewhat weary of supporting unique scenarios, especially ones I can't really test. Before I consider targeting a previous version of C# 7, can you verify that the this CMS SaaS thing can build SDK based .csproj? LibLog, as of version 5 only supports these project formats. It would be very strange to for these project formats to be supported in the CMS SaaS but C# 7 not.
Thx.

You should also check if v4.x will work for you too. The major difference between v4 and v5 was the move to supporting the new SDK csproj format.

The cms handles compilation itself, I only get to upload cs files. It also has its own aspx parser but that’s a slightly different topic.
The biggest pain I’ll have is that the cms uses a specific csc version (probably whatever is current framework dir csc and probably still 4.5 I would guess)
It’s entirely possible I’ll have to maintain a separate fork for the time being if you don’t wanna merge. I’m fine with that.


Menuflyout Item mouse/touch invocation sizing regression test

Description

This PR adds test to verify correct sizing of menuflyout item when invoked with touch vs mouse.
Motivation and Context

This test will make sure that we have expected size for touch vs mouse invocation for MenuFlyout items.
How Has This Been Tested?

Manually.

/azp run

/azp run


Drawing custom dashed lines for interactions without contacts

Hi all!
I would like to draw the interactions between the ligand and the protein but using a set of pairs and types that we have precalculated. At the end, what i need is to add the dashed lines between the pairs, with a specific color and some pickup details. Is this already possible or is this something i could easily implement? I already had a look into the contacts representation in ts2. There you finally use geometry/dash. Can I use this object directly without going through the contacts? If so, how? I would appreciate some guide/tips!
Thank you!

add option, use like var shape = new NGL.Shape('shape', { dashedCylinder: true }), will release later

Thank you Alexander for the quick fixes!
I could not manage to make the picker work though. It seems the data is lost in getFixedLEngthDashData. In examples/scripts/component/shape.js the picker is not working when dashedCylinder is true, and working otherwise.
Also i would appreciate if you could point me where i could modify the picker hover text: to remove cylinder: and (shape) from it and keep only the label/name i am providing.
Thank you a lot!

I could not manage to make the picker work though. It seems the data is lost in getFixedLEngthDashData. In examples/scripts/component/shape.js the picker is not working when dashedCylinder is true, and working otherwise.

fixed

Also i would appreciate if you could point me where i could modify the picker hover text: to remove cylinder: and (shape) from it and keep only the label/name i am providing.

fixed too, no more text is added to custom labels

This is great! 👍 Thank you! :)
By the way, i have some local modifications of ts2 in a private github repository: I added an atom serial based selection syntax and stored the PDB header lines when reading to be able to write them back (we were losing them when downloading the files from NGL and the crystallographers quickly complained :P). If you are interested, I can share these changes with you guys. Probably the coding for the PDB parser/writer enhancement is not so nice as yours though...

Sounds great, feel free to make PRs!


WCF listens <IP_ADDRESS> (on linux)

After I ran mono ASF.exe --server , I found the mono process listening <IP_ADDRESS>:1242  .
 cloud@2  ~/ASF $ sudo netstat -antp | grep 1242
tcp        0      0 <IP_ADDRESS>:1242            <IP_ADDRESS>:*               LISTEN      19777/mono
 cloud@2  ~/ASF $ ssh <IP_ADDRESS>
Last login: Sun Dec 11 17:03:24 2016 from <IP_ADDRESS>
 cloud@centos  ~ $ telnet <IP_ADDRESS> 1242
Trying <IP_ADDRESS>...
Connected to <IP_ADDRESS>.
Escape character is '^]'.

I tried changing WCFHostname from localhost to <IP_ADDRESS> in the ASF.json , nothing changes.
I think this shouldn't happen since the wki says:

ASF by default listens only on localhost address, which means that accessing ASF WCF from any other machine but your own is impossible.

ASF V<IP_ADDRESS> on Ubuntu 16.04 .

 For some reason it doesn't work with specifying localhost, therefore I also renamed property appropriately and enforced <IP_ADDRESS> instead of localhost from now on.
Thanks for report.


Continents coastal line in Portrait plot?

Somehow a portrait plot that I generated has a line that looks like part of continents coastal line. I have no idea where it come from.

input JSON:
https://github.com/eguil/ENSO_metrics/blob/master/scripts/test_MC1_all.json
Python script:
ENSO_PP-Test.py.txt

@lee1043  wow!   Thats a new feature... we'll have to think how to use that one ;-)

@lee1043 I did see and fixed this. Are you using CDAT 8.0?

@doutriaux1 I was using 3.0. I will try with 8.0.


Thread unsafe and/or memory leak due to static members

@dimvar's recent commit removes some static and thread unsafe members: https://github.com/google/closure-compiler/commit/cc1ea4c4a1f67dd637de504d8e96dd5f873e5667#commitcomment-18707738
Here's another potential issue:
https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/newtypes/JSType.java#L240
JsType.TOP_OBJECT, among others, is another case. This retains a bunch of stuff related to a past compilation and is thus probably thread unsafe. Examining a memory dump after compilation was long finished showed this retention path:
com.google.javascript.jscomp.newtypes.JSType.TOP_OBJECT
com.google.javascript.jscomp.newtypes.ObjsType.commonTypes
com.google.javascript.jscomp.newtypes.JSTypes.builtinFunction
com.google.javascript.jscomp.newtypes.RawNominalType.defSite
com.google.javascript.rhino.Node.typei
com.google.javascript.rhino.jstype.FunctionType.registry
com.google.javascript.rhino.jstype.JSTypeRegistry.reporter
com.google.javascript.jscomp.RhinoErrorReporter$OldRhinoErrorReporter.compiler
and thus retains the Compiler plus all its modules+sources, AST nodes etc.
also see https://github.com/google/closure-compiler/issues/1925 and https://github.com/google/closure-compiler/issues/1822
In practice if not doing concurrent compilation this might not matter, but it seems bad practice for AST nodes from a prior compilation to potentially bleed into subsequent compilations.

I have a fix pending for this.


Uncaught (in promise) Error: No matching state found in storage

Hi,
Our scenario is like this: If user presses browser back button right after the login it goes back to provider. And there our provider asks for login again (they don't keep the session apparently). So, after entering the login info, user is redirected to our login result page with new token.
Here we only call the signinRedirectCallback  method to get the user. But this method fails and goes in to the catch from promise. From the console I see following error:
Uncaught (in promise) Error: No matching state found in storage
    at oidc-client.min.js:1

In catch if I restart login by calling signInRedirect it works but I am just curious about what is the issue here. Is it because the second login can't overwrite the first one? Is there a good way to handle this from our application?
P.S. I can't make any change from provider side if that's necessary. Need to handle this in our application somehow.

Do you clear the callback page form your history entry? Perhaps you should. Here's an example:
https://github.com/IdentityServer/IdentityServer4/blob/master/samples/Clients/src/JsOidc/wwwroot/callback.js#L4

Thank you for the reply. But in my case the Promise is rejected and goes to catch directly.

I just dropped in to say, I was running into the same thing. Your key value for oidc. is missing. In order to debug it, I changed node_modules/oidc-client package.json to use the non-min version of oidc-client.js for debugging purposes.
I then put a break point in UserManager.prototype._signInStart. (line 10207-ish) Step through, and after the call to 'createSigninRequest' (line 10216-ish),  check your storage, the key should be there 'oidc.' and values to go with it. That generated state id is sent to Identity Server as part of the authentication request's redirect string, you can see the &state param in the url for the request (which is subsequently used by the client to pull the state back out of storage after post-auth re-direct). Then put a breakpoint on 'return handle.navigate(...)' line 10222-ish. This is the actual redirect call. Let it redirect (to login page), then immediately check storage. If your key is still there and the values are gone, or both the key and values are gone, if it's not an http to https issue  you're likely doing a localstorage.clear() in script on your login page.
I spent more time than I wanted to debugging through this library, and in the end IT WAS MEEEE!
;=P

Do you clear the callback page form your history entry? Perhaps you should. Here's an example:
https://github.com/IdentityServer/IdentityServer4/blob/master/samples/Clients/src/JsOidc/wwwroot/callback.js#L4

Sorry for running into this conversation, but no matter if I replace the history entry or not, I have a strange behavior only in Chrome.
The browser seems to ignore the callback page and goes straight to the Idsrv login page when the user presses back button. But when holding the back button and choosing explicitly the callback page from history entry - chrome hits the callback and everything is fine.
Should I enhance the callback page with proper headers? Why is chrome not hitting the callback? Any ideas?

Do you clear the callback page form your history entry? Perhaps you should. Here's an example:
https://github.com/IdentityServer/IdentityServer4/blob/master/samples/Clients/src/JsOidc/wwwroot/callback.js#L4

Unfortunatly we get thrown out of the 'then' before we start the function. the exception seems to be thrown in signinRedirectCallback

@abarisuzuner
i have fixed this issue by alllowing cookies to store data.actually i have faced this issue from the last 4 month but i could not able to find any clue about this error. but yesterday my colleague and me were trying find out the exact issue and we have found that cookie is blocked for our app url. so we have allow to it and issue is solved within a pulse of second.

Much of these problems are due to browsers trying to protect users from tracking/advertising software and sites. Unfortunately to implement many of the OIDC/OAuth2 protocols from the client browser/JS side, we need to utilize the similar storage mechanisms. if these features are disabled/blocked wholesale, then there's not much we can do except reachitect to a more BFF pattern:
https://leastprivilege.com/2020/03/31/spas-are-dead/

@abarisuzuner
i have fixed this issue by alllowing cookies to store data.actually i have faced this issue from the last 4 month but i could not able to find any clue about this error. but yesterday my colleague and me were trying find out the exact issue and we have found that cookie is blocked for our app url. so we have allow to it and issue is solved within a pulse of second.

go to show cookies and other site data then go to blocked tab and allow from there itself will fix the issue

Did you also change the store type from tbe oidc library? And how would you handle people denying cookies?
We now handle people who have cookies disabled by showing an alert and not rendering the app, same for storage.

Much of these problems are due to browsers trying to protect users from tracking/advertising software and sites. Unfortunately to implement many of the OIDC/OAuth2 protocols from the client browser/JS side, we need to utilize the similar storage mechanisms. if these features are disabled/blocked wholesale, then there's not much we can do except reachitect to a more BFF pattern:
https://leastprivilege.com/2020/03/31/spas-are-dead/

Thank you for that answer we were thinking the same, we have decided to block users who do not have localstorage available.
There are some older devices with android 5.1 that do not have localstorage activated automatically.
Now we only need to write a how to on turning on the localstorage 😁

Ok, I think it's safe to close this issue now.

Deleting all cookies solved this problem for me.

I got the same error here, to finally found that I was calling signinRedirectCallback twice. The second call caused the error.

Same, it was called twice
For react users, I had a dependency in my array which caused a rerender so userManager.signinRedirectCallback() was called twice


[Bug] Type object 'MacroFuzzEnvironment' has no attribute 'concat'

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
Can someone take a look into this? I'm getting this error when I ran dbt command (compile or run) on the new version v.1.8.02b. , I don't see issue on 1.7.11
`dbt compile'
20:55:32  [WARNING]: Deprecated functionality
User config should be moved from the 'config' key in profiles.yml to the 'flags' key in dbt_project.yml.
20:55:33  Running with dbt=1.8.0-b2
20:55:33  Registered adapter: snowflake=1.8.0-b2
20:55:33  Unable to do partial parsing because saved manifest not found. Starting full parse.
20:55:36  Encountered an error:
type object 'MacroFuzzEnvironment' has no attribute 'concat'
20:55:36  Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/dbt/cli/requires.py", line 106, in wrapper
result, success = func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dbt/cli/requires.py", line 91, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dbt/cli/requires.py", line 184, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dbt/cli/requires.py", line 213, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dbt/cli/requires.py", line 260, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dbt/cli/requires.py", line 286, in wrapper
ctx.obj["manifest"] = parse_manifest(
File "/usr/local/lib/python3.9/site-packages/dbt/parser/manifest.py", line 1854, in parse_manifest
manifest = ManifestLoader.get_full_manifest(
File "/usr/local/lib/python3.9/site-packages/dbt/parser/manifest.py", line 325, in get_full_manifest
manifest = loader.load()
File "/usr/local/lib/python3.9/site-packages/dbt/parser/manifest.py", line 430, in load
self.parse_project(
File "/usr/local/lib/python3.9/site-packages/dbt/parser/manifest.py", line 689, in parse_project
parser.parse_file(block)
File "/usr/local/lib/python3.9/site-packages/dbt/parser/base.py", line 484, in parse_file
self.parse_node(file_block)
File "/usr/local/lib/python3.9/site-packages/dbt/parser/base.py", line 445, in parse_node
self.render_update(node, config)
File "/usr/local/lib/python3.9/site-packages/dbt/parser/models.py", line 348, in render_update
super().render_update(node, config)
File "/usr/local/lib/python3.9/site-packages/dbt/parser/base.py", line 421, in render_update
context = self.render_with_context(node, config)
File "/usr/local/lib/python3.9/site-packages/dbt/parser/base.py", line 270, in render_with_context
get_rendered(parsed_node.raw_code, context, parsed_node, capture_macros=True)
File "/usr/local/lib/python3.9/site-packages/dbt/clients/jinja.py", line 146, in get_rendered
rendered = render_template(template, ctx, node)
File "/usr/local/lib/python3.9/site-packages/dbt_common/clients/jinja.py", line 539, in render_template
return template.render(ctx)
File "/usr/local/lib/python3.9/site-packages/dbt_common/clients/jinja.py", line 144, in render
return self.environment.handle_exception()
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
AttributeError: type object 'MacroFuzzEnvironment' has no attribute 'concat'`
Expected Behavior
able to finish dbt command
Steps To Reproduce
dbt compile
Relevant log output
No response
Environment
- OS:Linux 3.10.0-1160.114.el7.x86_64 x86_64
- Python: 3.9
- dbt: 1.8.02b

Which database adapter are you using with dbt?
snowflake
Additional Context
No response

We'd be happy to take a look @endlessdb. We've used that version a bit and haven't seen that issue pop up yet.
We'd just need a simple set of project files that reproduce the issue so we can get to the bottom of it. Could you provide that?

Something like this:

Reprex

Create these files:
models/my_model.sql
select 1 as id, null as status

models/_models.yml
models:
  - name: my_model
    columns:
      - name: status
        tests:
          - not_null:
              name: 'Expect "node_id" values to be unique.'
              config:
                store_failures_as: view

Run this command:
dbt build -s my_model

Here are a handful of examples:

https://github.com/dbt-labs/dbt-core/issues/9752#issuecomment-1992645641
https://github.com/dbt-labs/dbt-core/issues/9881#issuecomment-2045286159
https://github.com/dbt-labs/dbt-core/issues/9647#issuecomment-1961937081

@dbeatty10 I have a same issue after upgraded 1.8 and causing issues from any of dbt commands( run, seed, compile and ....), and figured out that MacroFuzzEnvironment class was available in the 1.7.X, but not 1.8.X.
https://github.com/dbt-labs/dbt-core/blob/v1.7.17/core/dbt/clients/jinja.py
Is there any reason that you removed this class?

Thanks for following up on this @olivewood1 !
We moved MacroFuzzEnvironment to dbt-common within https://github.com/dbt-labs/dbt-core/pull/8906. You can read about the background in 1 2 3.
How are you installing and running dbt? I'm guessing there's something very specific to your environment or the way you are using dbt that is causing the error you are seeing.

Thanks @dbeatty10 . We built docker image with dbt_core and dbt-snowfalke , and run dbt commands, never used dbt-common. Do we need to include dbt-common to the docker container?

@dbeatty10 is it required jinja2 version 3.1.3 or higher?
dbt-common 1.4.0 requires jinja2<4,>=3.1.3, but you have jinja2 3.0.3 which is incompatible.
dbt-core 1.8.2 requires Jinja2<4,>=3.1.3, but you have jinja2 3.0.3 which is incompatible.
also MacrosFuzzEnvironment is something different between 1.7 and 1.8

@olivewood1 Which version of dbt are you expecting to install? And which command(s) are you using?
For dbt v1.7 and earlier, installing/upgrading dbt can look something like this:
pip install --upgrade "dbt-core~=1.7" "dbt-bigquery~=1.7"

For dbt v1.8 and later, it might be something like this:
pip install --upgrade "dbt-core~=1.8" dbt-common dbt-adapters dbt-bigquery

dbt's current requirement for Jinja2 is >=3.1.3,<4 which can be seen here and here.

Looks like  issue was resolved after upgrading the Jinja2 version to 3.1.2. Previously, it was running with version 3.0.3 in the container. Thank you so much @dbeatty10


OWN API INSTEAD OF BIGCOMMERCE

Hi,
Can I use my own api for login and products instead of BIGCOMMERCE?
Thanks

@roomco-dev
Yup you can, but in its current state you will need to do the heavy lifting of coding that out yourself. There's talks and seems like work may have started on building modules for other providers in #2. You can take a look here to see how they are integrating BigCommerce: https://github.com/vercel/commerce/tree/master/pages/api/bigcommerce
Out of curiosity, what platform are you using? I ask because I'm really interested in building a Magento provider module for this and want to see if our interests align here.

Thank you for your great answer.
I have custom platform built in PHP.
I want to use PHP Laravel Framework API for Backend.

Wonderful! Thank you both. We're currently working on supporting multiple data providers. Stay tuned for updates!


Deformation occurs when transform the items

I`m trying to build a 3D scene after the training process, with the loss of:
Epoch 150 of 150
Training epoch 150 of 150 - mean loss: 0.7399571372403039 , mean ergo loss: 7.594853436505353 Time: 60.28231788999983 s
Validation epoch 150 of 150 - mean loss: 0.7853390574455261 , mean ergo loss: 8.394208812713623 Time: 2.69264634800129 s
and the transform codes are as follow:
      transform = np.array(item["transform"]).reshape((4, 4))
      obj_mesh.transform(transform)
      obj_mesh.translate((np.array(item["bbox"]["min"]) + np.array(item["bbox"]["max"])) / 2)

where transform is read from the output json.
the output object is deformed in a weied way

Do you happen to know where goes wrong? And here is a example of the output json
house.txt

Oh， I found that the result would be fine by changing
# obj_mesh.transform(np.linalg.inv(transform))
to
obj_mesh.transform(transform.T)
Thanks for sharing the work!


Podspec output to build/j2objcOutputs

Debug and release podspecs output to build/j2objcOutputs
destPodspecDir to specify output directory for pod specs
prevent podspec paths that traverse parent
unit tests updated for these changes
Fixes #549

Can you please add to CHANGELOG.md, esp. if a migration step will be required for users from 0.5.0-alpha to our next release?
LGTM otherwise

Since the podspecs were already in the build directory, this will be a seamless move that likely no one will notice.
As for CHANGELOG.md, I thought it would be easier to wait until a release, review the recent changes and then select what's appropriate. I'd prefer not to get in the habit of trying to update that for each PR unless the release is close to completion.


musig: include pubkey in secnonce and compare when signing

Builds on #211.
This PR implements a defense-in-depth measure that is specified in BIP-MuSig2. In fact, it revealed a bug in the scriptless_atomic_swap test.

I pushed a fix for the failing ctime test: the pubkey needs to be declassified in secnonce_invalidate.

needs some trivial rebase


tandoor-recipes: fix build, 1.5.19 -> 1.5.25, add jvanbruegge as maintainer

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thanks for working on this! I can confirm that the frontend build is now fixed, but the main (python) package still fails to build
Tested with: nim-build ./nixos/tests/tandoor-recipes.nix
The following patch does fix the python package for me though:
diff --git a/pkgs/applications/misc/tandoor-recipes/default.nix b/pkgs/applications/misc/tandoor-recipes/default.nix
index b6d99325f120..73bea7e03a3a 100644
--- a/pkgs/applications/misc/tandoor-recipes/default.nix
+++ b/pkgs/applications/misc/tandoor-recipes/default.nix
@@ -1,52 +1,15 @@
 { callPackage
 , nixosTests
-, python311
-, fetchFromGitHub
+, python3
 }:
 let
-  # python-ldap-3.4.4 does not work with python3(12)
-  python = python311.override {
-    self = python;
-    packageOverrides = self: super: {
-      validators = super.validators.overridePythonAttrs (_: rec {
-        version = "0.20.0";
-        src = fetchFromGitHub {
-          owner = "python-validators";
-          repo = "validators";
-          rev = version;
-          hash = "sha256-ZnLyTHlsrXthGnaPzlV2ga/UTm5SSEHLTwC/tobiPak=";
-        };
-        propagatedBuildInputs = [ super.decorator super.six ];
-      });
-
-      djangorestframework = super.djangorestframework.overridePythonAttrs (oldAttrs: rec {
-        version = "3.14.0";
-        src = oldAttrs.src.override {
-          rev = version;
-          hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
-        };
-        nativeCheckInputs = with super; [
-          pytest7CheckHook
-          pytest-django
-        ];
-      });
-
-      # python3.11-extruct-0.16.0 doesn't work with lxml-5.2.2
-      lxml = super.lxml.overridePythonAttrs (oldAttrs: rec {
-        version = "5.1.0";
-        src = oldAttrs.src.override {
-          rev = version;
-          hash = "sha256-eWLYzZWatYDmhuBTZynsdytlNFKKmtWQ1XIyzVD8sDY=";
-        };
-      });
-    };
-  };
+  python = python3;

   common = callPackage ./common.nix { };

   frontend = callPackage ./frontend.nix { };
 in
-python.pkgs.pythonPackages.buildPythonPackage rec {
+python.pkgs.pythonPackages.buildPythonPackage {
   pname = "tandoor-recipes";

   inherit (common) version src;
@@ -97,9 +60,10 @@ python.pkgs.pythonPackages.buildPythonPackage rec {
     psycopg2
     pyppeteer
     python-dotenv
-    pytube
+    pytubefix
     pyyaml
     recipe-scrapers
+    redis
     requests
     six
     uritemplate

Yes, fixed now.

I also deployed this now and it is working as expected

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 369173

aarch64-linux

:fast_forward: 2 packages blacklisted:

nixos-install-tools
tests.nixos-functions.nixos-test

:white_check_mark: 1 package built:

tandoor-recipes


Simplify comments to use logging instead of Github API

This PR does the following:

Converts previous comments into workflow annotations instead, removing the need to use the Github API
This also removes the dependency on the github.token (so users no longer need to provide a Github token) and does not require the Github Action to extract owner, repository, and pullRequestNumber from github.context
Lint errors no longer show up as comments/conversations, but are instead annotations that only show up in the Files tab of a pull request
Allows us to use the "Unchanged files with check annotations" feature, which shows annotations for lint errors, even for files outside of the PR -- this was testing on an internal repository

This mirrors a similar change made to buf-lint-action, https://github.com/bufbuild/buf-lint-action/pull/5

👌🏻 . Does this require us updating some documentation anywhere? The blog post?

Yeah, the plan is to do a follow-up update on the README, etc. before release (same thing with buf-lint-action).


feat(RingTheory/Flat): flat is stable under base change

Shows that Module.Flat is stable under arbitrary base change of rings. Also adds the corresponding version for Algebra.Flat.

Thanks!
bors merge

Thanks for the review!

bors merge


Tell users how to upgrade from Postgres 9.5

What
We are about to ask all our users to upgrade from Postgres 9.5, as it is end-of-life early next year.
Unfortunately we don't support a direct upgrade from Postgres 9.5 to our newest version (Postgres 12.) Users must first upgrade from 9.5 to 10, and then direct from 10 to 12.
Until now, a user encountering this limitation has seen an ugly AWS error message that does not help them:
Server error, status code: 502, error code: 10001, message: Service broker error: InvalidParameterCombination: RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t3.micro, Engine=postgres, EngineVersion=9.5.23, LicenseModel=postgresql-license. For supported combinations of instance class and database engine version, see the documentation.

With this commit, the user will instead see a more helpful error
explaining what they need to do:
Server error, status code: 502, error code: 10001, message: Service broker error: to upgrade from Postgres 9.5, first upgrade to Postgres 10, and then upgrade from there to your desired version

This is still not perfect, but users who read this will know exactly what to do. It doesn't replace the need for documentation, but it's a start.
How to review

See if the tests pass
Code review

Ready for review

This was done in #129 instead


Fixed "Cast from AEXMLElement to unrelated type ___ always fails"

I removed the subclassing from NSObject and fixes the after effects.
Please review the changes.
If its a good move and if its helpful then we shud merge the changes.

:+1:

It was done like that before, but I removed it in this commit and now I don't really remember why... :)
I'll leave this open for now and hopefully check it again when I have time.

Hi, in the end, I just removed inheritance from NSObject (without Equatable protocol for now) so this PR can be closed. Thanks!


Inquiring about Training Configuration

Hi,
Thanks for the amazing work!
But I have a simple question about the training configuration:
Does your latest model use both images and videos as training data during pre-training? Or video-only pre-train?
Thanks again for your amazing work!

It is not clear that what is stage you mentioned pre-trained. We first trained a image model and use it to initilize video model. When training video model we do not use image data.


[Breaking] Don't save leaf child count in JSON.

The field is deprecated and not used anywhere in XGBoost.

Codecov Report

Merging #6094 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6094   +/-   ##
=======================================
  Coverage   78.52%   78.52%
=======================================
  Files          12       12
  Lines        3069     3069
=======================================
  Hits         2410     2410
  Misses        659      659

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 68c55a3...7f478be. Read the comment docs.


RefCounted does not emit NOTIFICATION_PREDELETE after being unreferenced and awaiting to be freed

Godot version
v4.2.dev6.official [57a6813bb]
System information
Godot v4.2.dev6 - Arch Linux #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 22:55:13 +0000 - X11 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1650 (nvidia; 535.113.01) - Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (8 Threads)
Issue description
The RefCounted class does not emit a notification of PREDELETE when it should be deleted.
Steps to reproduce
class_name test extends RefCounted
func _notification(what):
    if self == null: return
    if what == NOTIFICATION_PREDELETE: print("Queued for deletion!")

extends Node
func _ready():
   var r:=test.new()

Minimal reproduction project
minimal.zip

This works for me:
class_name test extends RefCounted

var test_value = 5

func _notification(what):
    if what == NOTIFICATION_PREDELETE:
        print("Queued for deletion!")
        print(test_value)

Looks like not having any member variables causes self to be null during NOTIFICATION_PREDELETE (and possible some other notifications?). You can see the notification even in the original code if you remove the line if self == null: return.

After some digging, looks like this is basically a duplicate of https://github.com/godotengine/godot/issues/31166 and https://github.com/godotengine/godot/issues/80834. The same fundamental problem is mentioned there, self can be null. Looks like a pretty ancient issue, all the way back from Godot 3.x. Closing this to keep discussion in one (or two) place.


Feature Request: Full ASCII WiFi Password Implementation

Describe the Issue (If applicable)
My WiFi password has a ^ in it. - also it appears & isn't a character you can enter too.. might be more!
How can the issue be reproduced? (If applicable)
try to set the WiFi password.
What device are you using?
RG351P
What version of ArkOS are you on?
1.5.7
Anything else you'd like to include that may help to review this issue or feature request?
Nope! Program is awesome!!
(and yes I know I can change my password, but I have a lot of devices!)

As a workaround, I did find the psk hiding inside /etc/NetworkManger/system-connections in plaintext.

As a workaround, I did find the psk hiding inside /etc/NetworkManger/system-connections in plaintext.

Already a known issue per item number 8 here https://github.com/christianhaitian/arkos/wiki/Known-issues.  Hope to address in the future but I have no timetable set on when this will be done at this time.

Already a known issue per item number 8 here https://github.com/christianhaitian/arkos/wiki/Known-issues.  Hope to address in the future but I have no timetable set on when this will be done at this time.


Migrated Kafka Connect Elasticsearch sink connector

What changed, and why it matters
Migrated Kafka Connect Elasticsearch sink connector https://help.aiven.io/en/articles/2349675-aiven-for-apache-kafka-elasticsearch-sink-connector
Also adds Kafka Connect Opensearch sink connector
Fixes #566, #568

Thanks for the review @anelook, I addressed some of your concerns.
I took some bits out of the old article but they were about something not strictly needed (like how to check if a connector is working and how to check data in OS/ES), do you think the current version is ok?

@ftisiot, what should go into  "key.converter.basic.auth.credentials.source" param? :D  is it reference to one of the certificates we have?

Should be fixed!

@anelook moved from CLI to Console instructions


Can a node be collapsed depending on the number of children or subordinates it has?

Hi!
I have a requirement that basically is that I need to be able to initially show all descendant nodes as collapsed if they exceed x amount, and the amount will also vary depending on the depth of the node.
It would be something like this:
if (node.depth == 1 && node.quantityOfChildrens > 2) return collapse
if (node.depth == 2 && node.quantityOfChildrens > 5) return collapse
I really don't know how to manipulate the chart to achieve this, so I'm looking forward to seeing if any of you have already implemented something similar or have a better idea

@gustavog6 I guess you will need to manually manipulate _expanded property which controls which node (and siblings) are visible.
Rough code is here
https://stackblitz.com/edit/js-lc9xkw?file=index.html
  d3.csv(
    'https://raw.githubusercontent.com/bumbeishvili/sample-data/main/data-oracle.csv'
  ).then((data) => {
    const hierarchical = d3.stratify()(data);
    console.log(hierarchical);
    hierarchical.each((item) => {
      console.log({ item });
      if (item.children.length > 2) {
        item.data._expanded = false;
      } else {
        item.data._expanded = true;
      }

      if (!item.data._expanded) {
        const descendants = item.descendants();
        descendants.forEach((d) => (d.data._expanded = false));
      }
    });
    console.log(hierarchical);
    new d3.OrgChart()
      .container('.chart-container')
      .initialExpandLevel(0)
      .data(data)
      .render();
  });

@gustavog6 I guess you will need to manually manipulate _expanded property which controls which node (and siblings) are visible.
Rough code is here
https://stackblitz.com/edit/js-lc9xkw?file=index.html
  d3.csv(
    'https://raw.githubusercontent.com/bumbeishvili/sample-data/main/data-oracle.csv'
  ).then((data) => {
    const hierarchical = d3.stratify()(data);
    console.log(hierarchical);
    hierarchical.each((item) => {
      console.log({ item });
      if (item.children.length > 2) {
        item.data._expanded = false;
      } else {
        item.data._expanded = true;
      }

      if (!item.data._expanded) {
        const descendants = item.descendants();
        descendants.forEach((d) => (d.data._expanded = false));
      }
    });
    console.log(hierarchical);
    new d3.OrgChart()
      .container('.chart-container')
      .initialExpandLevel(0)
      .data(data)
      .render();
  });

Oh I thought I could collapse node by node in a similar way to how I define the width of each node:
.nodeWidth((d) => {
if (d.depth == 0) return 250;
if (d.depth == 1) return 230;
return 200;
})

only by getting the value of d.data._directSubordinates and setting _expanded true or false depending on the case inside some listener. Isn't there a way to do it like this?

I don't think that there is other way

cause I have a problem with the stratify parsing my data to the hierarchy

org chart uses stratify for your data, so just make sure that correct id and parent id are referenced
https://github.com/bumbeishvili/org-chart/blob/cb1f376656bc83360a4fea6872597fd427fcd775/src/d3-org-chart.js#L1407


upgrade color-name dependency to ESM version

The color-name dependency was recently updated to use ESM, and released their package v2.0.0 with the only change being to use ESM default export. As a followup to #102, in the process of updating this package to ESM, we should also update our sole dependency to its ESM version.
I have specifically omitted changing the import style in this PR, and updating the package.json to "type": "module". As those changes have already been made in #102, and would be duplicative here.
So -- just a fair warning -- the first round of tests will fail because of incorrect import style.
But once that #102  is merged, we can immediately pull master into this branch. And at that time, it will pass tests.

#102 has been updated to include this now.  So this change won't be necessary once that's merged.


block implicitly retains self

I'm getting this warning:
nanovg_mtl.m:1387:33: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
      dispatch_semaphore_signal(_semaphore);
                                ^
                                self->

Easy to fix :)

I couldn't reproduce the same warning on Xcode 11 beta 5. What Xcode version do you use?

@olliwang Version 10.3 (10G8)

Thanks. Fixed in d3e0fc65180f6f2cb1a9.


SFOS is now <IP_ADDRESS>

Signed-off-by<EMAIL_ADDRESS>

Ping! No update on this?

Are you planning on merging?


feat: add opportunitiesSlice utils tests

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #3186   👈

This comment was auto-generated by Graphite.


Bug: edit posts in profile page

Edit button of all posts in profile page changes the first post. This feature should edit the post of interest when pressed edit button.

https://github.com/SWE-574-GROUP-1/SWE574-GROUP-1/pull/39/files


Fix redundant imports in the package

This PR should fix issue #213

I removed resolution attribute from Template class since it was causing a circular import with Database_functions module. This attribute was only initialized in the code but never used. Is it fine to remove it?

I removed resolution attribute from Template class since it was causing a circular import with Database_functions module. This attribute was only initialized in the code but never used. Is it fine to remove it? @DarioMarzella

Yes, it is fine at this moment. That variable was supposed to be used at some point to fix issue #37, but it really does not seem to be a priority now. We might never implement that feature anyways.


Add translations for top level taxonomies in inaturalist

Problem
All of the descriptive text about photos from inaturalist is in Latin, which will make the search results less useful for users who are unfamiliar with the scientific nomenclature.
Description
Taxonomies are trees though, so we could at least look up some higher levels terms (e.g. "birds" and terms in languages from the community rather than "aves") to include in our inaturalist metadata.
Alternatives
We could try some kind of automated translation service, but it might not be that helpful. See https://wwf.panda.org/discover/knowledge_hub/teacher_resources/webfieldtrips/scientific_nomenclature/
Implementation

[ ] 🙋 I would be interested in implementing this feature.

I wonder if we could do some data augmentation and get a short summary about the species from Wikipedia and use it as a description. Wikipedia site is also great for looking up the names of species in various languages.
For instance, the title of the first result in the API search filtered by source (https://api.openverse.engineering/v1/images/?source=inaturalist) is Buteo jamaicensis. If you search for it in Wikipedia, you get redirected to the page titled Red-tailed hawk. From there, you can get the name of the species in other languages simply by selecting the language in the sidebar or changing the URL to add the locale prefix. So, the Spanish version is at https://es.wikipedia.org/wiki/Buteo_jamaicensis.
This is how I usually look up the species names in other languages, it is much better than a dictionary :)

That's true! I wonder if we could have a pre-ingestion step which sets up a lookup table in the inaturalist schema based on some public data. Looks like folks have asked this before but unfortunately most of the links on that post are dead 😭

We could use the data from the Catalog of life. The downloads page has a ColDP zip archive.
First, we would need to find the species code in the NameArchive.tsv, 46VWN here:

col:ID
...
col:basionymID
...

46VWN
...
Neotrigonia margaritacea
...

Then we can find the English "vernacular" name in the VernacularName.tsv file using that code. Simplified data example:

col:taxonID
col:name
col:language

46VWN
Australmuschel Australian
deu

46VWN
brooch clam
eng

Ooh! Thanks! There's more on inaturalist taxonomic categories here, but the taxa table isn't so big, so it wouldn't take too too long to cycle through looking things up the names in wikipedia.

@obulat and @AetherUnbound do you think I can close this now that https://github.com/WordPress/openverse-catalog/pull/745 has been merged?

Yes, I think so. Awesome work, @rwidom!


feat: update golang-github-buengese-sgzip to 0.0_git20220517.9bca1b6

experiments for a seekable gzip for use in rclone based on pgzip (library)
Issue: https://github.com/deepin-community/sig-deepin-sysdev-team/issues/552
Log: update repo

/lgtm
/approve


Records as basic data structure.

Have you thought about using records as basic data structure?.
Showcase:

function call
(add 1 2)

dynamically sized data structure ~ list, map, set, vector, etc
[1 (add 1 2)]

tuple is a record with fields 1, 2 .. n
{1 (add 1 2)}

record with fields a, b
{a=1 b=(add 1 2)}

field access

{a=1}.a
(.a {a=1}) -- .a is just a function

simple module system

echo {add  = (a. b. (add a b))} > ./foo.moon
echo {main = (foo.add 1 2)}     > ./bar.moon
run-moon ./bar.moon
3

let in expression

(let {a=1} (add a 1))

to keep some methods private you just use let
./foo.moon

(let
  {inc  = (a. (add a 1))}
  {main = (inc 10)})

echo {main = (foo.inc 1)}     > ./bar.moon
run-moon ./bar.moon

error: record `foo` does not have field `inc`

As you see, although records are indeed a very simple data structure, they really improve the expressiveness of language.

That's already part of Moon... it is called map. It is expressed as {"field1": value1, "field2": value2}. An array is just syntax sugar for a map with fields 0, 1, ... n, and length. Field access is (get map "field"). With @Pyrolistical's syntax, you can use the dot notation.

Note that, despite it being part of Moon, it doesn't actually increase it expressivity. Maps/records can be expressed with λ-encoded datatypes on the calculus, so there is no need to have it. It will possibly be removed in a future.

:D Oh well, I meant convenience then...

Hmmm, but I'm not sure I understand... what you described is already part of the lang so I don't get it (?)

You need to make a simple tutorial really, one page with few examples is not enough.

Maps/records can be expressed with λ-encoded datatypes on the calculus, so there is no need to have it. It will possibly be removed in a future.

Oh I see, so moon is trying to be something similar to assembly, the less primitives it has the better.

Exactly! It is sort of like a functional assembly. The philosophy is: if a feature can be implemented on top of Moon, it should not be a primitive. The reason for that is to make it as simple as possible to implement Moon in different environments. That way, Moon code achieves some sort of universality, like what Java attempted to do, but from the other way around: instead of making a huge VM that runs everywhere, we build a language so simple "we can compile it to anywhere".
The point of using a functional core rather than a small ASM-like language is that it preserves the logical structure of a program. That has many benefits. For one, it is possible to recover the original, high-level human-readable syntax of a complex Moon application from the bytecode! This allows, for example, the user of a browser to recover an high-level code from any application, so any app made on Moon is easily forkable. If we used WASM, the user wouldn't be able to do so, the best we could do is make the ASM more readable, but that is hard.

I'm sorry about the tutorial, things aren't friendly enough yet, but for now I'm too busy with making a browser for Moon apps...

For one, it is possible to recover the original, high-level human-readable syntax of a complex Moon application from the bytecode!

Are you sure? What if I compile something that cannot be expressed in moon directly ? E.G pattern matching compiled into moon as some if hackery. How can you recover it back?

the best we could do is make the ASM more readable, but that is hard

I am all up for that.  That's why I though moon could be built on top of records similar to LISP which is built on top of lists, but they really concise field accessor syntax like .age to be readable! Would it complicate the language so much?

For example this is the beginning of haskell Prelude rewritten in moon, with

records
pattern matching
syntax sugar for lambdas

Notice how you can nicely simulate sum types with records !
(
-- id : a -> a
id = a. a

-- const : a -> b -> a
const a _ = a

-- >> : (a -> b) -> (b -> c) -> (a -> c)
>> f1 f2 a = f2 (f1 a)

-- |> : a -> (a -> b) -> b
|> a f = f a

-- flip : (a -> b -> c) -> (b -> a -> c)
flip f a b = f b a

-- type Bool = (true : ()) | (false : ())
-- not : Bool -> Bool
not (true) = (false = ())
not (false) = (true = ())

-- type Either a b = (ok : a) | (err : b)
-- either : (a -> c) -> (b -> c) -> Either a b -> c
either f _ (ok) = f ok
either _ f (err) = f2 err
)

case of can be implemented as match a (case) = case a and then used like this :
main = match (person = (name = "john, age = 27)) (
  case (person = ("john", _)) = "Hello John"
  case _ = "Sorry, I don't know you"
)

Anyway I agree that pattern matching should be implemented by the means of scott encoding.

Woops, I missed the last two posts, but yes, I think scott encodings are the way to go to encode any ADT that you can express in Haskell.

I see you have removed the quotes from map syntax 👍.
Why does moon-core contain Let constructor when it also has Map? Does not Map provide all functionality that Let does and more?


[cmake] Turn off -Werror=extra -Werror=pedantic

In no universe should Werror be enabled in end-user builds (rather than just developers local builds and CI checks), and certainly not for warning categories that Drake's own CI doesn't even enable. We don't want this repository to be a warning-catcher for Drake code.
The easy fix for now is to just turn off the overly broad warning categories. This does not fix the bug that Werror=all is enabled for builds triggered by downstream users.

This change is

\CC @EricCousineau-TRI @IanTheEngineer FYI

Thanks! CI errors appear to be unrelated to this PR:
https://github.com/RobotLocomotion/drake-ros/actions/runs/9670843228
Will merge this PR and file issue about the segfault.

Yeah.  CI has been broken for weeks (months?).


Checkpoint and restart recovery

fix #120
Signed-off-by: yanxuean<EMAIL_ADDRESS>

@Random-Liu   PTAL

Please run make verify, your code doesn't pass gofmt.

@yanxuean And this PR doesn't completely fix #120. We should not close #120 after this is merged.

I see.  Thanks for your  review

LGTM
@yanxuean Thanks a lot for this! :)


Cotext vs DefaultRequestPath.validateContextPath

When you set context app by:
application.yml:
spring:
  webflux:
    base-path: /gtw

And apply rule to RewritePath
filters:
            - RewritePath=/gtw/ict/(?<segment>.*),/ict/$\{segment}

You will get bug with:
java.lang.IllegalArgumentException: Invalid contextPath '/gtw': must match the start of requestPath: '/ict/swagger-ui/index.html'
	at org.springframework.http.server.DefaultRequestPath.validateContextPath(DefaultRequestPath.java:81)
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):

So you apply validation rules (DefaultRequestPath) on result path after apply RewritePath - that does not make sense. After apply base-path you cannot remove that path from result path (that is running in deferent context and path)

Hi @llacina. Is this issue related to a problem in the Guide on spring.io/guides? This issue has several components that are not in the guide. That leads me to assume this is about something broader. Perhaps Stack Overflow would be a better place for assistance or submitting an issue to the Spring Cloud Gateway if you think there is a bug in the framework code.
I will close the issue, but please feel free to reply if this is an issue with the guide.


229 Add fixtures to check description is correctly placed as property

See https://github.com/rectorphp/rector-symfony/issues/229

Thanks :+1:
What Symfony version support the name and the description?

I think from 5.3 they support this: https://symfony.com/doc/5.3/console.html (but that is not maintained) so i would say 5.4/6.0 and 6.1
The blog post you probably found: https://symfony.com/blog/new-in-symfony-5-3-lazy-command-description
What do you mean by

thus 2 different configs and rules.

Should i use different configs to test this behavior? And is there some docs about that?

That is for the description, yes :+1:
The $defaultName is available since Symfony 3.4: https://github.com/symfony/symfony/pull/23887

Ah like that i can do that but takes a bit more time

You can run:
vendor/bin/rector && composer fix-cs

To make CI green.

Thanks @samsonasik i did and squashed my commits into 1 commit.

String_ and ClassConstFetch check no longer needed, can be removed as already checked by ExprAnalyzer.
Also, please update PR Title to something like:
[Symfony53] Add CommandDescriptionToPropertyRector

Thank you :clap:


code splitting and uploading all source maps

Hi,
In my react app I am using code splitting (react-loadable) to reduce the bundle size and serve them on demand whenever the respective route is loaded. Using this technique I am getting about 53 chunks and a main file (.js and .map).
How can I upload all these source maps to identify the error stack trace correctly.
regards
Aman

Hi @amanthegreatone. Are you using webpack? If so you should take a look at our webpack plugins module which can upload sourcemaps:
webpack-bugsnag-plugins (docs)
If you're not using webpack, you can make use of the underlying JS API/CLI tool:
bugsnag-sourcemaps (docs)

I see!
So create-react-app does use webpack for you but it hides the details away, and as far as I can tell doesn't let you add plugins.
Our webpack plugin would do exactly what you want – it iterates over all the chunks/maps and uploads them all. But it seems like your only option would be to "eject" from create-react-app in order to modify the webpack config yourself. But you probably don't want to do that!
Alternatively you can use bugsnag-sourcemaps, iterating over all of the generated source maps using bash or javascript. Here's a sketch of what I mean (in JS):
const { upload } = require('bugsnag-sourcemaps')
const glob = require('glob')

// find all of the map files in ./dist
glob('dist/**/*/*.map', (err, files) => {
  if (err) throw err
  // process each .map file
  Promise.all(files.map(processMap))
})

// returns a Promise which uploads the source map with accompanying sources
function processMap (sourceMap) {

  // remove .map from the file to get the js filename
  const minifiedFile = sourceMap.replace('.map', '')

  // remove the preceding absolute path to the static assets folder
  const minifiedFileRelativePath = minifiedFile.replace(`${__dirname}/dist/`, '')

  // call bugsnag-sourcemaps upload()
  return upload({
    apiKey: 'YOUR_API_KEY_HERE',
    appVersion: '1.2.3',
    minifiedUrl: `http*://your-domain.app/path/to/assets/${minifiedFileRelativePath}`,
    sourceMap,
    minifiedFile,
    projectRoot: __dirname
    uploadSources: true
  })

}

I didn't run or test this so you will undoubtably need to tweak paths/urls for your setup and play with the arguments to bugsnag-sourcemaps. This also rather crudely will fire off all the uploads concurrently. See webpack-bugsnag-plugins for an example of how to limit the concurrency of that.
Feel free to continue on this thread if you have any further questions, or alternatively email<EMAIL_ADDRESS>where we can dig into your specific project and have a bit more context. We can also then share more detail than we would be able to on this public issue tracker.
Thanks!

Thanks @bengourley.
I will try your suggestions and update.

@bengourley as per your suggestion I followed the same instructions and uploaded the chunk.js.map files to bugsnag. Here is my code.
const upload = require('bugsnag-sourcemaps').upload;
const glob = require('glob');
const appVersion = require('./package.json').version;
const bugsnagKey = require('./src/config/env').bugsnagKey;
const path = require('path');

glob('source-maps/*.js.map', (err, files) => {
  if (err) throw err;
  Promise.all(files.map(processMap));
});

const processMap = sourceMap => {
  const minifiedFileName = sourceMap.split('/')[1].split('.map')[0]; //just extracting the file name.
  return upload({
    apiKey: bugsnagKey,
    appVersion: appVersion,
    minifiedUrl: `http://myAppWebsite.com/static/js/${minifiedFileName}`,
    sourceMap,
    minifiedFile: `${__dirname}/build/static/js/${minifiedFileName}`,
    projectRoot: __dirname,
    uploadSources: true,
    overwrite: true,
  });
};

The files are all uploaded and everything works. But the problem is the map and chunks are not mapped when an error is raised in the stacktrace i still get the chunk code rather than the original code.
Hoping you could point out where I am going wrong or what the error really is.
Thanks.

Hi @pavan-syook. I took a look at your account and it seems you are uploading everything correctly 👍
There is just one minor problem which you need to resolve. For your source maps, you are providing a value for appVersion (it's currently 0.1.0), but events coming in from your notifier have no appVersion. What our system does is look for an uploaded source map matching the url and app version, and since the app version is different (undefined vs. 0.1.0) it doesn't find your source map.
All you need to do is make sure the app version is set in your notifier and kept in sync with the version of your app. Then we'll be able to use the source maps you've uploaded to show the original sources. Hope this helps!

@bengourley Thanks for the quick update. will do that and let you know if I face any issues.

Hi @bengourley. we are also using code splitting in our react web application(groww.in) and in our case, the number of chunks are more than 80. all chunks source map files are uploaded on bugsnag for every app release. So my doubt is how many source map files can be uploaded on bugsnag, is there any restriction on uploading number of files?

Nope, no restriction. As many as you need.

@bengourley Thanks for the reply.


forbid write to table with generated column

close https://github.com/pingcap/tispark/issues/906

/run-all-tests

Consider also update the document about what scenario do we support and what we do not?

Consider also update the document about what scenario do we support and what we do not?

yes, i will update the document before release. (we also do not support partition table which will also be included in document.)


Introduce the generalized Grassmann manifold

Which is slightly generalising the existing Grassmann manifold, which was also done in Manopt, see https://www.manopt.org/reference/manopt/manifolds/grassmann/grassmanngeneralizedfactory.html
This PR also introduces (nearly automatically) the complex generalized Grassmann manifold, it fill feature a basis once #115 is merged.

[x] Thorough reading of the documentation
[x] test cases for generalized Grassmannian

While we are still fighting time issues, the only not-completely covered file in this PR is the EmbeddedManifold, which will move soon anyways. So this is ready in both testing and docs.

I didn't check everything but the PR look good 🙂 .

Yes, EmbeddedManifold is covered in Base, there is no point in covering it here temporarily.

Cool, thanks. Once the tests finish I'll merge this and bring master into base for faster tests there afterwards.


[Bug Report] Netherite Armor and tools not properly categorized.

Describe the bug
Netherite Armor and tools are not properly categorized under the "Armor", "Weapons" and "Tools" category and only shows up in the "Other" Category.
Versions (please complete the following information):

Minecraft Server Version: 1.16
Plugin Version: 1.2.15

The "NETHERITE_SHOVEL"was forgotten in this merge.