Regression with sccache 0.2.4: failed to acquire jobserver token: early EOF on jobserver pipe

Problem
In recent Nightlies, any compilation with sccache 0.2.4 fails with the same panic in rustc, with a message about jobservers. (If there is more than one crate to build).
Steps

curl https://github.com/mozilla/sccache/releases/download/0.2.4/sccache-0.2.4-x86_64-unknown-linux-musl.tar.gz -L | tar xz
cargo new foo
cd foo
echo 'matches = "0.1"' >> Cargo.toml
export RUSTC_WRAPPER=../sccache-0.2.4-x86_64-unknown-linux-musl/sccache
export RUST_BACKTRACE=full
rustup run --install nightly-2018-10-21 cargo build
rustup run --install nightly-2018-10-22 cargo build -v

The first build succeeds, the second one prints:
   Compiling matches v0.1.8
     Running `/home/servo/simon/foo/../sccache-0.2.4-x86_64-unknown-linux-musl/sccache rustc --crate-name matches /home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.8/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=6a626e308a29780e -C extra-filename=-6a626e308a29780e --out-dir /home/servo/simon/foo/target/debug/deps -L dependency=/home/servo/simon/foo/target/debug/deps --cap-lints allow`
thread '<unnamed>' panicked at 'failed to acquire jobserver token: early EOF on jobserver pipe', librustc_codegen_llvm/back/write.rs:1980:29
stack backtrace:
   0:     0x7f0cc2ff172f - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::hb6bbf9c852e8bb81
                               at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
   1:     0x7f0cc2fd66b7 - std::sys_common::backtrace::print::h0b05a26fe4434b95
                               at libstd/sys_common/backtrace.rs:71
                               at libstd/sys_common/backtrace.rs:59
   2:     0x7f0cc2ffcaff - std::panicking::default_hook::{{closure}}::h137fa5ca768795d3
                               at libstd/panicking.rs:211
   3:     0x7f0cc2ffc864 - std::panicking::default_hook::h52fea0104d6161d8
                               at libstd/panicking.rs:227
   4:     0x7f0cbf64f131 - rustc::util::common::panic_hook::h596f772bfbae21ad
   5:     0x7f0cc2ffd2f6 - std::panicking::rust_panic_with_hook::h7c51e7d0fdff9bd2
                               at libstd/panicking.rs:480
   6:     0x7f0cc2ffce41 - std::panicking::continue_panic_fmt::h499943668b519270
                               at libstd/panicking.rs:390
   7:     0x7f0cc2ffcd8e - std::panicking::begin_panic_fmt::hf8a762b584404a73
                               at libstd/panicking.rs:345
   8:     0x7f0cb8bdd07b - std::sys_common::backtrace::__rust_begin_short_backtrace::h959b03245837a19f
   9:     0x7f0cb8c1585d - std::panicking::try::do_call::hb7dfe518403aa5b1
  10:     0x7f0cc300a619 - __rust_maybe_catch_panic
                               at libpanic_unwind/lib.rs:102
  11:     0x7f0cb8c1a398 - <F as alloc::boxed::FnBox<A>>::call_box::h893756b5f7e5da26
  12:     0x7f0cc2ff7abd - std::sys_common::thread::start_thread::h7c22dec0f118f1ff
                               at liballoc/boxed.rs:682
                               at libstd/sys_common/thread.rs:24
  13:     0x7f0cc2fcd455 - std::sys::unix::thread::Thread::new::thread_start::haea81cde2be173fc
                               at libstd/sys/unix/thread.rs:90
  14:     0x7f0cbd03d183 - start_thread
  15:     0x7f0cc2cac03c - clone
  16:                0x0 - <unknown>
query stack during panic:
end of query stack
error: failed to acquire jobserver token: early EOF on jobserver pipe

error: aborting due to previous error

error: Could not compile `matches`.

 I managed to reproduce on Ubuntu 18.04 but not on Archlinux.

It would be worth seeing if this is reproducible with more recent versions of sccache. 0.2.5 in particular had a jobserver-specific fix included.

sccache 0.2.7 (currently the latest) seems ok with both Rust toolchains tested above, as well as 1.30.0 stable and nigthly-2018-11-06.
Still, it seems something has changed between those two nightlies but the commit ranges don’t show anything that seems suspicious.

It's probably https://github.com/rust-lang/rust/pull/54919 which caused this, although I don't know precisely why. Before sccache 0.2.5 it was basically "UB with file descriptors" so it could just be that updating some dependency is tickling something in just the wrong way. Maybe OpenSSL is now managing file descriptors with CLOEXEC? (unsure!)
In any case the fix here is to upgrade sccache, and I'm not sure if there's much else we can do on Cargo's side of things

Considering this is pretty old, and it seems like sccache is working now, I'm going to close.  If there is still an issue, feel free to re-open or file a new issue.


Domain Expired

Hey, i noticed the hosted app is down. any word on this ?

Thanks for letting me know, it's 🆙  now!


I want to hack an Instagram account

Message Blackhathacker111 on telegram he will help you with that  https://t.me/Blackhathacker111

Message Blackhathacker111 on telegram he helped me hacked my girlfriends Snapchat when she was cheating on me,he can hack everything else Instagram Facebook gmail and so on,https://t.me/Blackhathacker111

Message Blackhathacker111 on telegram he helped me hacked my girlfriends Snapchat when she was cheating on me,he can hack everything else Instagram Facebook gmail and so on,https://t.me/Blackhathacker110

					imprimir ' [-] IP do proxy: {}{}{}'.formatar(auto.b,ip,auto.e)


test: Migrate several test modules away from the deprecated framework

Migrate additional test modules away from the deprecated framework,
taking care to demonstrate both unittest- and pytest-style testing.
Add an additional Cookie class and parse cookies in the Result object
to facilitate cookie testing.
Extend BoundStream to implement more of the IO protocol so that
it works with mock WSGI input objects (and potentially improves
compatibility as a drop-in replacement for the native WSGI input
object).

Current coverage is 100% (diff: 100%)

Merging #901 into master will not change coverage

@@           master   #901   diff @@
====================================
  Files          30     30
  Lines        1911   1966    +55
  Methods         0      0
  Messages        0      0
  Branches      313    322     +9
====================================
+ Hits         1911   1966    +55
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last update b36ffe6...4348f11


AVRO-3344 Deprecating DataBlock

The class has been marked obsolete since 7/6/2019.  Additionally, it is said that it will be used internally, but no updates since it was marked obsolete, and has no internal references other than to itself.
Jira

[ ] My PR addresses the following Avro Jira issues and references them in the PR title. For example, "AVRO-1234: My Avro PR"

https://issues.apache.org/jira/browse/AVRO-3344

Tests

[ ] My PR  does not need testing for this extremely good reason: Remove unused code

Commits

[ ] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public functions and the classes in the PR contain Javadoc that explain what it does

Thank you, @KyleSchoonover !
I will not back-port this change to branch-1.11! I will be part of the 1.12.0 release.


test current functionality

This PR does some small refactoring to make getJob(...) testable, and then adds a test for its current functionality.
Why?
I'll be adding on features to getJob soon, so hopefully this will pay off soon with safety + dev speed
Summary of changes

separate getJob into a testable function and an imperative wrapper

getJobApiHandler handles interaction with net/http
getJob is a func that takes an ID and either returns a job, or not

move out all net/http calls from jobtracker.go and history.go to a new module jobclient.go

make every other module only use the JobFetchClient interface so we can mock it out easily

installed github.com/stretchr/testify/mock for mocking purposes

Testing plan
will deploy this to a QA server and thoroughly click all the buttons manually
Requested Feedback

we don't make use of packages very well –– everything is under package main. is it worth tackling this here, at least for jobclient.go?
idk what idiomatic go code looks like. would love any suggestions here

lgtm


add ww fallback  -  use ovos-utils entrypoints

Takes care of https://github.com/OpenVoiceOS/raspbian-ovos/pull/18#issuecomment-1465000329 and https://github.com/OpenVoiceOS/raspbian-ovos/pull/18#discussion_r1133140664

I think I will close this, as I merged it into the dev branch first.


Several Boolean Options default to false incorrectly.

Previously, the options "hints", "trace", and "allowScuffed" defaulted to true. Currently, these default to false when no json is present, and possibly in other circumstances when the player has not set them.

Fixed by #30


Ghost upgrade - migration error

Issue Summary
Can not upgrade to latest ghost version - get migration error
I use mysql database. And ghost image 5.12-alpine
    "database": {
        "client": "mysql",
        "connection": {
            "database": "",
            "host": "",
            "port": 3306,
            "password": "",
            "user": "",
            "ssl": "Amazon RDS"
        }
    },

Steps to Reproduce
Used image ghost:5.12-alpine with mysql8 database.
docker run --restart=always -p 3001:2368 -v /home/ubuntu/ghost:/var/lib/ghost/content -it ghost:5.12-alpine
Upgrade to image ghost:5.24.2-alpine (or ghost:5.23-alpine - same error)
docker run --restart=always -p 3001:2368 -v /home/ubuntu/ghost:/var/lib/ghost/content -it ghost:5.24.2-alpine
Ghost Version
5.12
Node.js Version
16.18.1
How did you install Ghost?
docker, alpine
Database type
MySQL 8
Browser & OS version
terminal
Relevant log / error output
[2022-12-02 10:45:05] INFO Ghost is running in production...
[2022-12-02 10:45:05] INFO Your site is now available on https://<site>/
[2022-12-02 10:45:05] INFO Ctrl+C to shut down
[2022-12-02 10:45:05] INFO Ghost server started in 2.191s
[2022-12-02 10:45:06] WARN Database state requires migration.
[2022-12-02 10:45:07] INFO Creating database backup
[2022-12-02 10:45:07] INFO Database backup written to: /var/lib/ghost/content/data/site.ghost.2022-12-02-10-45-07.json
[2022-12-02 10:45:07] INFO Running migrations.
[2022-12-02 10:45:07] INFO Renaming members.bio to members.expertise
[2022-12-02 10:45:07] INFO Adding posts.lexical column
[2022-12-02 10:45:07] INFO Adding setting: email_track_clicks
[2022-12-02 10:45:07] INFO Adding table: post_revisions
[2022-12-02 10:45:07] WARN Skipping migration - noop
[2022-12-02 10:45:07] WARN Skipping migration - noop
[2022-12-02 10:45:07] INFO Adding members_created_events.referrer_source column
[2022-12-02 10:45:08] INFO Adding members_created_events.referrer_medium column
[2022-12-02 10:45:08] INFO Adding members_created_events.referrer_url column
[2022-12-02 10:45:08] INFO Adding members_subscription_created_events.referrer_source column
[2022-12-02 10:45:08] INFO Adding members_subscription_created_events.referrer_medium column
[2022-12-02 10:45:08] INFO Adding members_subscription_created_events.referrer_url column
[2022-12-02 10:45:08] INFO Dropping table: members_link_click_events
[2022-12-02 10:45:08] INFO Dropping table: link_redirects
[2022-12-02 10:45:08] INFO Adding table: redirects
[2022-12-02 10:45:08] INFO Adding table: members_click_events
[2022-12-02 10:45:08] INFO Set email_track_clicks to true (current email_track_opens value)
[2022-12-02 10:45:08] INFO Adding emails.track_clicks column
[2022-12-02 10:45:08] INFO Adding products.monthly_price column
[2022-12-02 10:45:09] INFO Adding products.yearly_price column
[2022-12-02 10:45:09] INFO Adding products.currency column
[2022-12-02 10:45:09] INFO Updating 1 Tiers with price and currency information
[2022-12-02 10:45:09] INFO Adding table: subscriptions
[2022-12-02 10:45:09] INFO Adding table: members_feedback
[2022-12-02 10:45:09] INFO Adding newsletters.feedback_enabled column
[2022-12-02 10:45:09] INFO Dropping nullable: subscriptions.tier_id
[2022-12-02 10:45:09] INFO Rolling back: alter table `subscriptions` modify  `tier_id` varchar(24) not null  - Cannot change column 'tier_id': used in a foreign key constraint 'subscriptions_tier_id_foreign'.
[2022-12-02 10:45:09] INFO Removing newsletters.feedback_enabled column
[2022-12-02 10:45:09] INFO Dropping table: members_feedback
[2022-12-02 10:45:10] INFO Dropping table: subscriptions
[2022-12-02 10:45:10] INFO Removing currency and price information for all tiers
[2022-12-02 10:45:10] INFO Removing products.currency column
[2022-12-02 10:45:10] INFO Removing products.yearly_price column
[2022-12-02 10:45:10] INFO Removing products.monthly_price column
[2022-12-02 10:45:10] INFO Removing emails.track_clicks column
[2022-12-02 10:45:10] INFO Dropping table: members_click_events
[2022-12-02 10:45:10] INFO Dropping table: redirects
[2022-12-02 10:45:10] INFO Adding table: link_redirects
[2022-12-02 10:45:10] INFO Adding table: members_link_click_events
[2022-12-02 10:45:10] INFO Removing members_subscription_created_events.referrer_url column
[2022-12-02 10:45:10] INFO Removing members_subscription_created_events.referrer_medium column
[2022-12-02 10:45:10] INFO Removing members_subscription_created_events.referrer_source column
[2022-12-02 10:45:11] INFO Removing members_created_events.referrer_url column
[2022-12-02 10:45:11] INFO Removing members_created_events.referrer_medium column
[2022-12-02 10:45:11] INFO Removing members_created_events.referrer_source column
[2022-12-02 10:45:11] WARN Skipping migration - noop
[2022-12-02 10:45:11] WARN Skipping migration - noop
[2022-12-02 10:45:11] INFO Dropping table: post_revisions
[2022-12-02 10:45:11] INFO Dropping setting: email_track_clicks
[2022-12-02 10:45:11] INFO Removing posts.lexical column
[2022-12-02 10:45:11] INFO Renaming members.expertise back to members.bio
[2022-12-02 10:45:11] INFO Rollback was successful.
[2022-12-02 10:45:11] ERROR alter table `subscriptions` modify  `tier_id` varchar(24) not null  - Cannot change column 'tier_id': used in a foreign key constraint 'subscriptions_tier_id_foreign'

alter table `subscriptions` modify  `tier_id` varchar(24) not null  - Cannot change column 'tier_id': used in a foreign key constraint 'subscriptions_tier_id_foreign'

{"config":{"transaction":true},"name":"2022-10-18-05-39-drop-nullable-tier-id.js"}
"Error occurred while executing the following migration: 2022-10-18-05-39-drop-nullable-tier-id.js"

Error ID:
    300

Error Code:
    ER_FK_COLUMN_CANNOT_CHANGE

----------------------------------------

Error: alter table `subscriptions` modify  `tier_id` varchar(24) not null  - Cannot change column 'tier_id': used in a foreign key constraint 'subscriptions_tier_id_foreign'
    at /var/lib/ghost/versions/5.23.0/node_modules/knex-migrator/lib/index.js:1032:19
    at Packet.asError (/var/lib/ghost/versions/5.23.0/node_modules/mysql2/lib/packets/packet.js:728:17)
    at Query.execute (/var/lib/ghost/versions/5.23.0/node_modules/mysql2/lib/commands/command.js:29:26)
    at Connection.handlePacket (/var/lib/ghost/versions/5.23.0/node_modules/mysql2/lib/connection.js:456:32)
    at PacketParser.onPacket (/var/lib/ghost/versions/5.23.0/node_modules/mysql2/lib/connection.js:85:12)
    at PacketParser.executeStart (/var/lib/ghost/versions/5.23.0/node_modules/mysql2/lib/packet_parser.js:75:16)
    at TLSSocket.<anonymous> (/var/lib/ghost/versions/5.23.0/node_modules/mysql2/lib/connection.js:360:25)
    at TLSSocket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

[2022-12-02 10:45:11] WARN Ghost is shutting down
[2022-12-02 10:45:11] WARN Ghost has shut down
[2022-12-02 10:45:11] WARN Your site is now offline
[2022-12-02 10:45:11] WARN Ghost was running for a few seconds

Code of Conduct

[X] I agree to be friendly and polite to people in this repository

Here are latest migration applied

Sorry for duplication!
#15743


Reset Function

Hi, I was trying to convert your code to my current code base and I'm was facing one issue related to the reset command.
Are you sure that 0b01111010 send the reset command ?
As you can see in datasheet p. 68(here) says that to reset we must send  0b01111000 instead of 0b01111010, please if I'm wrong let me know

This indeed appears to be correct. Thanks for reporting.

Hi there, let me know if I'm wrong @mnemocronbut but I think your code was correct prior to modifying it (before commit 786cb6a)
The fast command to be sent for a RESET, when device address is 0x01, must be 0b0111 1000 which was the case before.
The current version sends only 0b0011 1000 (equivalent to 0xE << 2) and does not take into account the device address bits position [7:6] whose value is 0x01.
@calperxd Could you confirm this?
Also a few useful fast commands can be added at the bottom of mcp356xr.h:
#define DEVICE_ADC_START_RESTART_COMMAND 	(0xA << _MCP3561_COMMAND_ADDR_POS) | MCP3561_FAST_COMMAND
#define DEVICE_ADC_STANDBY_COMMAND 			(0xB << _MCP3561_COMMAND_ADDR_POS) | MCP3561_FAST_COMMAND
#define DEVICE_ADC_SHUTDOWN_COMMAND 		(0xC << _MCP3561_COMMAND_ADDR_POS) | MCP3561_FAST_COMMAND
#define DEVICE_ADC_FULL_SHUTDOWN_COMMAND 	(0xD << _MCP3561_COMMAND_ADDR_POS) | MCP3561_FAST_COMMAND

Hi @paul-thelu  I took a look in the header file and you're right the device addr is missing.
The current value is :
#define DEVICE_RESET_COMMAND                (0xE << _MCP3561_COMMAND_ADDR_POS) | MCP3561_FAST_COMMAND
The right value should be
#define DEVICE_RESET_COMMAND               (MCP3561_DEVICE_ADDRESS_MASK) | (0xE << _MCP3561_COMMAND_ADDR_POS) | MCP3561_FAST_COMMAND

@calperxd Did you think of checking out the changes from yesterday?
I don't think your changes are working/useful since MCP3561_FAST_COMMAND already embeds the Device ID address.
NB: Current version RESET cmd is tested and working on my setup along with all the other fast commands that have been added yesterday.

I'm sorry for that I didn't see, my bad.
But in this case even if I'm write it wrong, I'm just doing the bit wise operation twice. Thanks for your observation.


Stackoverflow when compiling callsite chain on a background thread

From @davidfowl on Monday, July 24, 2017 8:28:43 AM
See for details https://github.com/aspnet/Mvc/issues/6410.
There isn't an isolated repro yet.
Copied from original issue: aspnet/DependencyInjection#555

Doesn't seem like the same issue. Are you sure you didn't change the code?

No i think it is this.
Only happens when i switch to the new version, my branch which has "Runtime" mode hardcoded works fine.
I attached a debugger and it throws an IL exception.
Common Language Runtime detected an invalid program.
System.InvalidProgramException
at ResolveService(ILEmitResolverBuilderRuntimeContext , ServiceProviderEngineScope )

TargetSite
{System.Object ResolveService(ILEmitResolverBuilderRuntimeContext, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope)}
System.Reflection.MethodBase {System.Reflection.Emit.DynamicMethod.RTDynamicMethod}

@Zoxive  do you see Common Language Runtime detected an invalid program. in the repro you gave me before? I still see only SO there.

Yes in my reproduction repository linked above, I still see StackOverflow.
But due to myget issues i had to reference the project directly instead of using the nuget package.
(Myget.org Issue)
I can see the latest version in myget https://dotnet.myget.org/feed/aspnetcore-release/package/nuget/Microsoft.Extensions.DependencyInjection/2.1.0-preview2-30460 and in visual studio searching, but when trying to install, it fails. Microsoft.Extensions.DependencyInjection 2.1.0-preview2-30406 was not found. An approximate best match of Microsoft.Extensions.DependencyInjection 2.1.0-preview3-30379 was resolved.
I can confirm hitting https://dotnetmyget.blob.core.windows.net/artifacts/aspnetcore-dev/nuget/v3/flatcontainer/microsoft.extensions.dependencyinjection/index.json manually it does not show version 30460 or the older version 30406 you linked.

@pakrym / @muratg - is this a must-have for Preview2? If not, let's move to RC1.
Also, this issue is still tagged as 3-Done - does that need to be updated?

Started to get this problem with preview2.
With preview1 and before, never had this problem.
How can I set this "Runtime Mode" so I can test?
System.InvalidProgramException: JIT Compiler encountered an internal limitation.
   at ResolveService(ILEmitResolverBuilderRuntimeContext , ServiceProviderEngineScope )
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)

@stewshka what runtime are you using (.net core/.net framework?). Can you provide a repro?

@pakrym
.net core 2.1 preview2
I get the error on a big 50 project solution, with hundreds of services registered, I'm not sure how could I provide a way to reproduce.
Getting the error on VS debug and on the new dotnet preview2 docker alpine images.
Also compiled both from windows and the new dotnet sdk docker image.
The error happens only the third time I call GetServices on a few specific types.

I opened a separate issue for this: https://github.com/aspnet/Home/issues/3054

Small update on my end. I'm in the process of converting my solution to dotnet core + kestrel and the same error happens there as well.
System.InvalidProgramException: 'Common Language Runtime detected an invalid program.'

An update to my comment above.  We downloaded the Microsoft.Extensions.DependencyInjection 2.1.1 source and rebuilt it using the ServiceProviderMode.Runtime flag.  We then hosted the nuget package locally and referenced it throughout our code.  This appears to have fixed our StackoverflowException for the time being.
@pakrym Is there an ETA for a fix being provided in the official package?  Thank you.

@ghawkescs I was doing the same, but found it easier for me to just set the mode via reflection.
// Workaround this is resolved https://github.com/aspnet/Home/issues/2737
var type = options.GetType();
var propertyInfo = type.GetProperty("Mode", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
propertyInfo.SetValue(options, 1); // SET TO RUNTIME

@zoxive - Thank you, that would work too.

It's not clear what we'll be able to do in 2.2 milestone. Tentatively moving this to 3.0.

@Zoxive where are you doing that configuration? I'm running into this issue on a large project and I'd like to use the workaround you found.

@dbredvick
Inside UseDefaultServiceProvider() in Program.cs
//
.UseDefaultServiceProvider((context, options) =>
{
    options.ValidateScopes = !context.HostingEnvironment.IsProduction();

    // Workaround till they fix this https://github.com/aspnet/Home/issues/2737
    var type = options.GetType();
    var propertyInfo = type.GetProperty("Mode", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
    propertyInfo.SetValue(options, 1); // SET TO RUNTIME
})
//

@pakrym it would be great if we could get some of these applications to test the new version of DI.

@davidfowl @pakrym I'll try it out Monday

@davidfowl @pakrym Tested Dynamic, Expressions and ILEmit with the preview packages briefly seems to be working.
So when this is finally released i can remove my forced "Runtime" mode!
Thanks!

Thanks for the work around Zoxive which seems to work.
It would be nice to know when v3 will be out of preview though


0.1.0: nox is failing

Looks like something is wrong with test suite.
nox:
+ cd yaxmldiff.py-0.1.0
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-yaxmldiff-0.1.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ nox
nox > Running session lint
nox > Creating virtual environment (virtualenv) using python3 in .nox/lint
nox > python -m pip install flake8 black pylint .
nox > black --diff --check .
--- /home/tkloczko/rpmbuild/BUILD/yaxmldiff.py-0.1.0/yaxmldiff.py       2021-06-13 14:05:40 +0000
+++ /home/tkloczko/rpmbuild/BUILD/yaxmldiff.py-0.1.0/yaxmldiff.py       2023-03-15 08:27:58.031556 +0000
@@ -123,11 +123,10 @@
         attrs_right_only,
     ) = compare_attributes(left.attrib, right.attrib)

     # write the opening tag, possibly showing differing attributes
     if attrs_left_only or attrs_diff or attrs_right_only:
-
         if attrs_same:
             writer.write_same(f"<{left.tag} " + " ".join(attrs_same))
         else:
             writer.write_same(f"<{left.tag}")

would reformat /home/tkloczko/rpmbuild/BUILD/yaxmldiff.py-0.1.0/yaxmldiff.py

Oh no! 💥 💔 💥
1 file would be reformatted, 2 files would be left unchanged.
nox > Command black --diff --check . failed with exit code 1
nox > Session lint failed.
nox > Running session typecheck
nox > Creating virtual environment (virtualenv) using python3 in .nox/typecheck
nox > python -m pip install mypy lxml-stubs
nox > mypy yaxmldiff.py
yaxmldiff.py:53: error: Incompatible default for argument "buffer" (default has
type "None", argument has type "StringIO")  [assignment]
    ...f __init__(self, *, indent: int = 0, buffer: StringIO = None) -> None:
                                                               ^~~~
yaxmldiff.py:53: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
yaxmldiff.py:53: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
Found 1 error in 1 file (checked 1 source file)
nox > Command mypy yaxmldiff.py failed with exit code 1
nox > Session typecheck failed.
nox > Running session test
nox > Creating virtual environment (virtualenv) using python3 in .nox/test
nox > python -m pip install pytest .
nox > pytest '--doctest-glob=*.md'
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/yaxmldiff.py-0.1.0
collected 1 item

README.md .                                                              [100%]

============================== 1 passed in 0.02s ===============================
nox > Session test was successful.
nox > Ran multiple sessions:
nox > * lint: failed
nox > * typecheck: failed
nox > * test: success

I hadn't pinned the black and mypy versions. I've updated the code accordingly, and added version numbers to the noxfile. This should now work more reliably.

Oh, you're doing this for packaging. Would it help if I cut a new release? Would it help if I add a smoke testing entrypoint that is more useful for packagers? Using nox is convenient for development, but I hadn't thought about packager's needs.


Modernize XGBoost Python document.

Use sphinx gallery to integrate examples.
Remove mock objects.
Add dask doc inventory.

The gallery can be viewed here: https://xgboost--7468.org.readthedocs.build/en/7468/python/examples/index.html .  I changed some links in demo to sphinx references for better integration.  Some of the examples are outdated but I think it's a long-term effort to refresh them.


Loss NAN for Deit Base

I have reproduced the small and tiny model but met with problems for reproducing the base model with 224 and 384 image size. With a large probability, the loss came to NAN after training with few epochs.
My setting is 16 GPUs and the batch size is 64 on each GPU and I do not change any hyper-parameters in run_with_submitit.py . Do you have any idea to solve this problem?
Thanks for your help.

I also met this problem. I use 32 GPUs for training.

I also met this problem. I use 32 GPUs for training.

Give a simple solution for my case. I found the transformer training is sensitive to the learning rate. We must keep a vary small learning rate in the training stage (it would be best for lr < 0.0015). Otherwise the gradient will become nan caused by amp. So, you can first try to reduce the learning rate.
Another alternative way is to dis-enable the amp. I have tried this way and it works for me.

Give a simple solution for my case. I found the transformer training is sensitive to the learning rate. We must keep a vary small learning rate in the training stage (it would be best for lr < 0.0015). Otherwise the gradient will become nan caused by amp. So, you can first try to reduce the learning rate.
Another alternative way is to dis-enable the amp. I have tried this way and it works for me.

Hi,
I've just run the default command-line for DeiT base with the state of the codebase as of yesterday on 16 GPUs, and training is going fine so far (we are already at epoch 100 without issues).
We are using PyTorch 1.7.0 with CUDA 10.1, and the default hyperparameters work fine for us on this setup.
Can you share your PyTorch / torchvision / CUDA versions?

Hi,
I've just run the default command-line for DeiT base with the state of the codebase as of yesterday on 16 GPUs, and training is going fine so far (we are already at epoch 100 without issues).
We are using PyTorch 1.7.0 with CUDA 10.1, and the default hyperparameters work fine for us on this setup.
Can you share your PyTorch / torchvision / CUDA versions?

@vtddggg Thanks for your advice, it works for me.

@vtddggg Thanks for your advice, it works for me.

Hi @vtddggg @ChengyueGongR , I have also encountered the NaN issue. I wonder if there is an easy way to disable amp?
It seems with torch.cuda.amp.autocast(): in engine.py should removed. However, I wonder if we need to rewrite the loss_scaler? Thanks!

Hi @vtddggg @ChengyueGongR , I have also encountered the NaN issue. I wonder if there is an easy way to disable amp?
It seems with torch.cuda.amp.autocast(): in engine.py should removed. However, I wonder if we need to rewrite the loss_scaler? Thanks!

I meet with the same problem

I meet with the same problem

Hi,
I've just run the default command-line for DeiT base with the state of the codebase as of yesterday on 16 GPUs, and training is going fine so far (we are already at epoch 100 without issues).
We are using PyTorch 1.7.0 with CUDA 10.1, and the default hyperparameters work fine for us on this setup.
Can you share your PyTorch / torchvision / CUDA versions?

Hi, I meet the NaN problem. My version is :
torch  == 1.7.1
cuda == 11.2

Give a simple solution for my case. I found the transformer training is sensitive to the learning rate. We must keep a vary small learning rate in the training stage (it would be best for lr < 0.0015). Otherwise the gradient will become nan caused by amp. So, you can first try to reduce the learning rate.
Another alternative way is to dis-enable the amp. I have tried this way and it also works for me.

Changing the learning rate of the base model degrades its performance with a clear margin.

Give a simple solution for my case. I found the transformer training is sensitive to the learning rate. We must keep a vary small learning rate in the training stage (it would be best for lr < 0.0015). Otherwise the gradient will become nan caused by amp. So, you can first try to reduce the learning rate.
Another alternative way is to dis-enable the amp. I have tried this way and it also works for me.

Changing the learning rate of the base model degrades its performance with a clear margin.

I tried to disable the amp and replace the scaler with vanilla loss.backward() and optimizer.step(), unfortunately this won't help. Setting longer warmup epoch also has this problem.
As far as I know, the input would never be NAN. My experiment shows the NAN happens in the input x after the first Transformer block at a specific iteration step in epoch 7.

Hi~~
I also meet the error with the message when training the DeiT base:
...
Epoch: [7] [ 190/1251] eta: 0:14:12 lr: 0.000999 loss: 6.7966 (6.7639) time: 0.7753 data: 0.0002 max mem: 18018
Loss is nan, stopping training
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.8/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/opt/conda/lib/python3.8/site-packages/torch/distributed/launch.py", line 255, in main
raise subprocess.CalledProcessError(returncode=process.returncode,
subprocess.CalledProcessError: Command '['/opt/conda/bin/python', '-u', 'main.py', '--model', 'deit_base_patch16_224', '--batch-size', '128', '--data-path', '/datasets/torch/imagenet', '--output_dir', 'Results/DeiT-base/Dense_8GPU']' returned non-zero exit status 1.
Any suggestion or workaround for the "Loss is nan, stopping training" error?

Give a simple solution for my case. I found the transformer training is sensitive to the learning rate. We must keep a vary small learning rate in the training stage (it would be best for lr < 0.0015). Otherwise the gradient will become nan caused by amp. So, you can first try to reduce the learning rate.
Another alternative way is to dis-enable the amp. I have tried this way and it also works for me.

Changing the learning rate of the base model degrades its performance with a clear margin.

Have you solved the problem?

Same problem for me. "Loss is nan, stop training". My packages are pytorch-1.7.1/CUDA-10.1

Hi Everyone,
Concerning DeiT I have not encountered any NaN problems with the Tiny, Small and Base models.
Nevertheless, in our last paper Going deeper with Image Transformers  with deeper architectures we had this problem. In order to solve it we used the LayerScale method with an adjustment of the stochastic depth coefficient. This may help you to solve your stability problems.
Best,
Hugo

As there is no more activity, I am closing the issue, don't hesitate to reopen it if necessary

In my experiments on the base model, I found that if I disable RepeatedAug, i.e., run with "--no-repeated-aug", the NAN error would disappear. This helps even if I run with "--drop-path 0", which increases the probability of NAN on the default setting in my observation.

Hi,  @liuzhuang13
Thanks for your suggestion. May I ask will the performance drop with --no-repeated-aug?

Same issue when submitting the following command
python -u main.py --model deit_base_patch16_224 --batch-size 64 --data-path ~/data/imagenet --output_dir ~/experiments/deit_base

to 16 GPUs (4 Slurm nodes).
There seems to be a tricky bug somewhere in the code...

Hi, @liuzhuang13
Thanks for your suggestion. May I ask will the performance drop with --no-repeated-aug?

@ShoufaChen Yes, in my observation the performance drops from 81.5% to 81.1%, when I remove repeated aug. In my later experiments, I found if you don't use AMP, the NAN will also disappear, but the training will be much slower

@ShoufaChen  I just found that in DeiT it is still not converging even if I disable AMP, though it won't report NAN. The case I mentioned where disabling AMP can solve the NAN problem is for another architecture. Not sure this is useful but just FYI

@liuzhuang13 Great thanks for your information.

Without AMP, the loss will not become NAN. However, it will run very slowly for training.
I have found that the loss becomes NAN in attention, and simply use FP32 for attention will solve the problem. In my experiments, replacing the attention block with the followed code, the model can be resumed normally. (sometimes you will need to change random seed)
class Attention(nn.Module):
    def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.):
        super().__init__()
        self.num_heads = num_heads
        head_dim = dim // num_heads
        # NOTE scale factor was wrong in my original version, can set manually to be compat with prev weights
        self.scale = qk_scale or head_dim ** -0.5

        self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
        self.attn_drop = nn.Dropout(attn_drop)
        self.proj = nn.Linear(dim, dim)
        self.proj_drop = nn.Dropout(proj_drop)

    def forward(self, x):
        B, N, C = x.shape
        qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)

        with torch.cuda.amp.autocast(enabled=False):
            q, k, v = qkv[0].float(), qkv[1].float(), qkv[2].float()   # make torchscript happy (cannot use tensor as tuple)
            attn = (q @ k.transpose(-2, -1)) * self.scale
            attn = attn.softmax(dim=-1)
            attn = self.attn_drop(attn)
            x = (attn @ v).transpose(1, 2).reshape(B, N, C)

        x = self.proj(x)
        x = self.proj_drop(x)
        return x

I hope everyone who meets NAN can try this code and let me know if it works.

@Andy1621 Your suggestion did not solve my case. I detoured the same problem by changing the random seed.

@HeegonJin You can try to use FP32, which will cause more GPU cost. But it's stable. Or you can use smaller learning rate or weak data augmentation.

It seems that this issue is not addressed. I have run many times, the NAN of the DeiT-Base is easy to be reproduced.


Convert to NuGet-based Logic App project fails with: Cannot read properties of undefined (reading 'fsPath')

Describe the Bug with repro steps

Install VS Code, .NET 6 SDK, and Logic Apps Standard extension
Create an new Logic Apps project in VSCode
Press F1 and select Azure Logic Apps: Convert to NuGet-based Logic App project
Error will occur: Cannot read properties of undefined (reading 'fsPath')

Workflow JSON
No response
Screenshots or Videos
https://user-images.githubusercontent.com/8337913/231154409-e8a99d66-ddb0-4718-9b33-a7d0e5fb9aba.mp4
Browser
VSCode:
Version: 1.77.1 (user setup)
Commit: b7886d7461186a5eac768481578c1d7ca80e2d21
Date: 2023-04-04T23:21:11.906Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.25336
Sandboxed: Yes
Extension: v2.0.30
Additional context
The issue seems that https://github.com/Azure/LogicAppsUX/blob/149d0bfd6a7cf2e874d5ea1b7390760c0b93434b/apps/vs-code-designer/src/app/commands/workflows/switchToDotnetProject.ts#L35 target is passed as undefined.

I submitted a PR which enables this scenario to work.


refreshVersions plugin causes classpath issues when applied with wire plugin

[x] I have read the guidelines for submitting issues

🐛 Describe the bug
It seems like refreshVersions plugin is incompatible with square/wire gradle plugin which makes it impossible to use them together in a single project without disabling one of them.
I've a project that is using refreshVersions plugin, when I tried to apply wire gradle plugin to my project and run gradle task gradlew generate[SourceSet]Protos(e.g generateCommonMainProtos), the task execution failed with java.lang.NoSuchMethodError saying it couldn't find okio.FileSystem okio.Okio.asResourceFileSystem(java.lang.ClassLoader) method that is used by wire internally here, I disabled refreshVersions plugin and I was able to run generateCommonMainProtos successfully.
⚠ Current behavior
Running ./gradlew generateCommonMainProtos fails with NoSuchMethodError, stacktrace:
Caused by: java.lang.NoSuchMethodError: 'okio.FileSystem okio.Okio.asResourceFileSystem(java.lang.ClassLoader)'
        at com.squareup.wire.schema.CoreLoader$resourceFileSystem$2.invoke(CoreLoader.kt:34)
        at com.squareup.wire.schema.CoreLoader$resourceFileSystem$2.invoke(CoreLoader.kt:33)
        at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
        at com.squareup.wire.schema.CoreLoader.getResourceFileSystem(CoreLoader.kt:33)
        at com.squareup.wire.schema.CoreLoader.load(CoreLoader.kt:39)
        at com.squareup.wire.schema.internal.CommonSchemaLoader.load(CommonSchemaLoader.kt:148)
        at com.squareup.wire.schema.Linker.getFileLinker$wire_schema(Linker.kt:77)
        at com.squareup.wire.schema.Linker.link(Linker.kt:99)
        at com.squareup.wire.schema.internal.CommonSchemaLoader.loadSchema(CommonSchemaLoader.kt:103)
        at com.squareup.wire.schema.SchemaLoader.loadSchema(SchemaLoader.kt:71)
        at com.squareup.wire.schema.WireRun.execute$wire_schema(WireRun.kt:234)
        at com.squareup.wire.schema.WireRun.execute(WireRun.kt:221)
        at com.squareup.wire.gradle.WireTask.generateWireFiles(WireTask.kt:189)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)

✅ Expected behavior
Running ./gradlew generateCommonMainProtos should complete successfully with kotlin/java models being generated for proto definitions.
💣 Steps to reproduce
I've a sample reproducer here https://github.com/mr3y-the-programmer/refreshVersions-bug, running ./gradlew generateCommonMainProtos on the main branch completes successfully, while running the task on with refreshVersions branch fails with the aforementioned error.
📱 Tech info

refreshVersions version: 0.60.3
wire gradle plugin version: 4.9.1
Gradle version: 8.3
OS: Windows 10

Follow up: adding okio dependency to the buildscript classpath right before applying refreshVersions plugin in settings.gradle.kts solves the issue as well:
// It is important to add this BEFORE plugins {...} section, otherwise the task would fail as usual.
buildscript {
    dependencies {
        classpath("com.squareup.okio:okio:3.6.0")
    }
}
plugins {
    id("de.fayard.refreshVersions")
}

Do you know which okio versions are requested by both plugins?

Wire 4.9.1 seems to bring 3.5.0 version of okio, while if I have wire plugin coordinates declared as follows in libs.versions.toml:
[plugins]
wire = "com.squareup.wire:_"

gradle sync fails and it looks like refreshVersions can't detect a version for it, (it doesn't add a new version in versions.properties, and even If I added that manually, it doesn't help also). so, I have to use the version explicitly in libs.versions.toml to be able to download it:
[plugins]
wire = "com.squareup.wire:4.9.1"

But if I added okio dependency explicitly in libs.versions.toml, refreshVersions downloads version 3.6.0 (latest release)
(FYI: asResourceFileSystem should be available from okio 3.3.0 and later)

There's no reason to use the version placeholder in libs.toml.versions now as we can update this version catalog FYI. Also, the version placeholder is not supported for the plugins DSL.

Good to know that version placeholder is not supported in plugins DSL, speaking of version placeholders for libraries, does this section in the documentation need updating?

Does that work well with refreshVersions? Yes, as long as you use the version placeholder (_).

If I understand correctly what you said, this looks like to be outdated.

You're right, we should write the limitation, and also document versions catalog support better


Security exception in Firefox through self-signed certificate

Category

[x] Question
[ ] Typo
[x] Bug
[ ] Additional article idea

Observed Behavior
Firefox 59 on OSX raises a security exception because of the self-signed certificate. To get the workbench running special steps are required to trust the self-signed certificate.

In addition, the following information in FireFox is available.

In general this I guess not a big deal but might should be somewhere documented. The development certificate is trusted on my machine.
Steps to Reproduce
Open workbench in FireFox on Windows, Linux or OSX. I guess the exception gets shown everywhere.

Thanks Stefan, we absolutely need to document this for FireFox.


Script feature for data transfer

Hi,
Sometimes I want to draw a plot with the data I fetch, however I have to export the data to a file and use that. Could it be possible to add an option to the Data Transfer dialog (when you right-click the result set > Export Resultset...) that would maybe run a script with the result set piped in ?
Thanks.


chore: release  service 0.2.0

:package: Staging a new release
0.2.0 (2024-10-09)
Features

castor-common/castor-java-client/castor-service/castor-upload-java-client: upgrade parent (#68) (c712935)
castor-service: upgrade dependencies (#73) (8e0b967)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/carbynestack/castor/releases/tag/service-v0.2.0 :sunflower:


Adds description field to Leads page

Along with other input fields, I have added Text Area in components and used it in the add leads form. If you find it useful, please accept my contribution

@robbins23 , I have fixed the label style differences. Please check and merge. Thank you :)

Hi @robbins23,
Thanks for merging the PR. This gives me so much motivation 💪🏻
If you're comfortable with my coding, please lemme know if I can add more features to this app.
You can raise tasks and assign it to my name 👍🏻


Failed generating plugin: TypeError: a is not a function

seen here when I click generate plugin:
https://gera2ld.github.io/tw-prism/diy.html
Using chrome v104.0.5112.79 (most current)

https://hm.baidu.com/hm.js?76a3135860c647b9dbd880a1ce22427a
this request fails in my browser


Add ability to send an entire image to Google Lens

Great extension, good work! I needed something like this since moving back to Firefox. However, the extension was lacking in one area: the ability to send images to Google Lens. I have now added this feature. I hope you will find it acceptable.

Great work! Thank you!


Cloudevents are sometimes not emitted for task state change

Expected Behavior
Taskrun successful should emit an event.
Actual Behavior
No event is emitted for success, but I do get events for started and unknown state.
I have shown the headers of events emitted for the taskrun.
Additional Info
"headers": {
        "host": "event-logger.devops.svc",
        "user-agent": "Go-http-client/1.1",
        "transfer-encoding": "chunked",
        "accept-encoding": "gzip",
        "ce-id": "6da3bef6-1d26-486b-9c6a-3b5df9b2a3b5",
        "ce-source": "/apis/tekton.dev/v1beta1/namespaces/devops/taskruns/deploy-run-7x5ft-get-info-wjsnz",
        "ce-specversion": "1.0",
        "ce-subject": "deploy-run-7x5ft-get-info-wjsnz",
        "ce-time": "2021-02-03T21:13:38.876059184Z",
        "ce-type": "dev.tekton.event.taskrun.started.v1",
        "connection": "close",
        "content-type": "application/json",
        "eventlistener-request-url": "/"
    }
"headers": {
        "host": "event-logger.devops.svc",
        "user-agent": "Go-http-client/1.1",
        "transfer-encoding": "chunked",
        "accept-encoding": "gzip",
        "ce-id": "b114da84-58db-4716-8f89-22e27f9e740e",
        "ce-source": "/apis/tekton.dev/v1beta1/namespaces/devops/taskruns/deploy-run-7x5ft-get-info-wjsnz",
        "ce-specversion": "1.0",
        "ce-subject": "deploy-run-7x5ft-get-info-wjsnz",
        "ce-time": "2021-02-03T21:13:39.791862396Z",
        "ce-type": "dev.tekton.event.taskrun.unknown.v1",
        "connection": "close",
        "content-type": "application/json",
        "eventlistener-request-url": "/"
    },
"headers": {
        "host": "event-logger.devops.svc",
        "user-agent": "Go-http-client/1.1",
        "transfer-encoding": "chunked",
        "accept-encoding": "gzip",
        "ce-id": "104b5cac-4f02-4738-bcfc-c805de422861",
        "ce-source": "/apis/tekton.dev/v1beta1/namespaces/devops/taskruns/deploy-run-7x5ft-get-info-wjsnz",
        "ce-specversion": "1.0",
        "ce-subject": "deploy-run-7x5ft-get-info-wjsnz",
        "ce-time": "2021-02-03T21:13:43.015077921Z",
        "ce-type": "dev.tekton.event.taskrun.running.v1",
        "connection": "close",
        "content-type": "application/json",
        "eventlistener-request-url": "/"
    },

However, the task did succeed:
deploy-run-7x5ft-get-info-wjsnz                           48 minutes ago   7 seconds    Succeeded
I'm using the cloudevents to notify github of status change. However, with this issue, it becomes hard to keep track of status of tasks on github. Please let me know if you need more info.

Kubernetes version:
Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.3", GitCommit:"06ad960bfd03b39c8310aaf92d1e7c12ce618213", GitTreeState:"clean", BuildDate:"2020-02-11T18:14:22Z", GoVersion:"go1.13.6", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.14-gke.1600", GitCommit:"7c407f5cc8632f9af5a2657f220963aa7f1c46e7", GitTreeState:"clean", BuildDate:"2020-12-07T09:22:27Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}

Tekton Pipeline version:
Client version: 0.13.0
Pipeline version: v0.20.1
Triggers version: v0.11.2
Dashboard version: v0.13.0

/kind bug
/cc @afrittoli

@skk2142 Thanks for reporting the issue!
A few questions:
Are you able to reproduce this issue consistently?
Do you see it happening on a regular basis?
Do you see the issue happening more with specific pipelines / tasks?
Thank you!

I see this happening sporadically and it is not limited to a specific taskrun. I saw this issue happening multiple times yesterday. I will check again today in a few hours. Here's the spec of the task for which I logged the events:
taskSpec:
    params:
      - name: repoName
        type: string
      - name: commitSha
        type: string
    steps:
      - name: get-info
        image: stedolan/jq
        script: |
          #!/usr/bin/env bash
          set -e
          imagemap={{ $.Values.tekton.gitRepoToHelmKey | toJson | quote }}
          helmImageKey=`echo ${imagemap} | jq -r '."$(params.repoName)"'`
          echo -n "${helmImageKey}" | tee $(results.helmImageKey.path)
          echo -n "gcr.io/{{ $.Values.googleProjectId }}/${helmImageKey}:$(params.commitSha)" | tee $(results.image.path)
    results:
      - name: helmImageKey
        description: helm key for the service
      - name: image
        description: name of image

Okay so I had two replicas of event listener and one of the pods was throwing an error
{"level":"error","logger":"eventlistener","caller":"sink/sink.go:80","msg":"Error getting EventListener listener-interceptor in Namespace devops: eventlistener.triggers.tekton.dev \"listener-interceptor\" not found","knative.dev/controller":"eventlistener","logging.googleapis.com/labels":{},"logging.googleapis.com/sourceLocation":{"file":"github.com/tektoncd/triggers/pkg/sink/sink.go","line":"80","function":"github.com/tektoncd/triggers/pkg/sink.Sink.HandleEvent"},"stacktrace":"github.com/tektoncd/triggers/pkg/sink.Sink.HandleEvent\n\tgithub.com/tektoncd/triggers/pkg/sink/sink.go:80\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2042\nnet/http.(*ServeMux).ServeHTTP\n\tnet/http/server.go:2417\nnet/http.(*timeoutHandler).ServeHTTP.func1\n\tnet/http/server.go:3272"}

I restarted the pod and it does not show error anymore. Could this issue be because of one the replicas failing? I'll check and let you know soon. Thanks!


type 'List' is not a subtype of type 'List<(Store, dynamic, (dynamic) => void) => void>'

Error
Launching lib/main.dart on iPhone X in debug mode...
[VERBOSE-2:dart_error.cc(16)] Unhandled exception:
type 'List<Object>' is not a subtype of type 'List<(Store<AppState>, dynamic, (dynamic) => void) => void>'
#0      new TangboleApp (file:///Users/jagger/projects/tangbole/app/lib/main.dart:36:79)
#1      main (file:///Users/jagger/projects/tangbole/app/lib/main.dart:18:10)
#2      _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:279:19)
#3      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

Code
...

    final persistor = Persistor<AppState>(
      storage: FlutterStorage('tangbole'),
      decoder: AppState.fromJson,
      version: 10000,
      migrations: {},
    );

    var mws = [persistor.createMiddleware()];
    mws.addAll(createMiddlewares());
    mws.add(LoggingMiddleware.printer());

    final store = Store<AppState>(
      appReducer,
      initialState: AppState(),
      middleware: mws,
    );

    persistor.load(store);

...

Env
name: tangbole
description: A tumblr client app.

dependencies:
  cupertino_icons: ^0.1.2
  english_words: ^3.1.0
  flutter:
    sdk: flutter
  flutter_redux: ^0.5.1
  http: ^0.11.3+16
  meta: ^1.1.5
  redux: ^3.0.0
  redux_logging: ^0.3.0
  redux_persist: ^0.7.0-rc.2
  redux_persist_flutter: ^0.6.0-rc.1

dev_dependencies:
  flutter_driver:
    sdk: flutter
  flutter_test:
    sdk: flutter
  mockito: ^2.2.3

flutter:
  uses-material-design: true
  assets:
    - images/lake.jpg

Hey there! Thanks for writing in... I think the problem is that you're not giving Dart2 enough type information to correctly infer what's contained in the mws list.
Could you please change var mws = [persistor.createMiddleware()]; to var mws = <Middleware<AppState>>[persistor.createMiddleware()]; and see if that fixes the issue? If that doesn't do it, could you please link to full source so I can take a closer look?

Both this:
    List<Middleware<AppState>> mws = [persistor.createMiddleware()];
    mws.addAll(createMiddlewares());
    mws.add(LoggingMiddleware.printer());

and this:
var mws = <Middleware<AppState>>[persistor.createMiddleware()];
    mws.addAll(createMiddlewares());
    mws.add(LoggingMiddleware.printer());

is not working.
I think it is because the return type of printer() is LoggingMiddleware<State>, not  (Store<AppState>, dynamic, (dynamic) → void) → void.

LoggingMiddleware<State> is a generic type... therefore you can pass through your own type info for it: LoggingMiddleware<AppState>.printer()
This is working for me:
final middleware = <Middleware<SearchState>>[
    SearchMiddleware(GithubApi()),
  ];
  middleware.add(LoggingMiddleware.printer());

But if sounds like you might need to provide the extra type info to the LoggingMiddleware constructor if that's not working on your side:
final middleware = <Middleware<SearchState>>[
    SearchMiddleware(GithubApi()),
  ];
  middleware.add(LoggingMiddleware<SearchState>.printer());

Thanks! This worked for me:
    store = store ??
        Store<AppState>(
          appReducer,
          initialState: AppState(),
          middleware: [persistor.createMiddleware()] +
              createMiddlewares() +
              <Middleware<AppState>>[LoggingMiddleware.printer()],
        );

But not this:
    store = store ??
        Store<AppState>(
          appReducer,
          initialState: AppState(),
          middleware: [persistor.createMiddleware()] +
              createMiddlewares() +
              [LoggingMiddleware<AppState>.printer()],
        );

It should works too. I already specified the generic param type AppState, and printer() should return type (Store<AppState>, dynamic, (dynamic) → void) → void.

Ah, yah, it is a bit confusing... it's really all about providing the proper type info to Dart. In the second example, Dart isn't properly inferring the List as a Middleware<AppState> and therefore you need to help it out a bit.
Glad it's working!

And this is also work for me.
    final wms = [persistor.createMiddleware()]..addAll(createMiddlewares());
    if (TangboleConfig.debug) {
      wms.add(LoggingMiddleware<AppState>.printer());
    }

List<Middleware> mws, this solution worked for me, thanks.


Invalid left-hand side in assignment (Angular)

Hey 😃
the bug from #583 is still in the current version of the plugin.
People (including me) are very confused about it. Because in your comment you wrote that you promise a fix in the next version but the added tag is saying WON'T FIX.
Since the issue is closed and still people are commenting it I open this issue to continue the talk.
Hope you have a good week and greetings!

I get the same issue with the latest version @michelonsouza.
Greetings.

I'm sorry about that guys.... I promise I'll fix it ASAP

@michelonsouza , Can you please fix this , after a long long debugging process I got to know this error is from this encryption package, Can you please fix ASAP, please

@kisimediaDE ,
it is like this
window.a = 1; //This will not throw error
window?.a = 1; //But this will throw error Uncaught SyntaxError: Invalid left-hand side in assignment

@kisimediaDE thanks for that, it was quick. thanks a ton

@ravi-mone dependencies updates. Nothing relevant from function perspective.

I would like to apologize for my absence. It's been a busy few weeks, but now I'm back.
I fixed the issue and hope to have good news from testing in version 2.12.17.
Thank you all and again, I'm sorry.

Hey, no problem, we're all more than happy that you're even doing the work to develop such a great product in your spare time. And even without the update, the plugin worked in an old version.
I just updated and deployed my project.  I no longer get an error message and your latest update works perfectly.
Thank you so much and have a great day!!! 😄

@michelonsouza This issue still exists in latest version 2.12.22
@kisimediaDE How did you get this to work with Angular 15?


feat: add search bar for notes

Add search bar to notes, UI is still a bit scrappy but will be improved as part of frontend week 2 goals

New universal search looks good, but it's only notes.

OK, date fixed now!

Change your Date_t_F interface, as you don't get seconds anymore
` tests/classes.spec.ts:9:13 - error TS2739: Type 'Date' is missing the following properties from type 'Date_t_F': seconds, nanoseconds
9             createdAt : new Date(0),
              ~~~~~~~~~

  types/notes.ts:41:3
    41   createdAt: Date_t_F
         ~~~~~~~~~
    The expected type comes from property 'createdAt' which is declared here on type 'Note_t_F'


Add "color" property to Tooltip component

Bug, feature request, or proposal:
Feature request
What is the expected behavior?
Add "color" property to Tooltip component.
Color property values can be "primary", "accent", "warn" or "default".
What is the current behavior?
There is no color property for tooltip.
What are the steps to reproduce?
NA
What is the use-case or motivation for changing an existing behavior?
In my project I would like to use primary color for some tooltips and warn color for other tooltips.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
NA
Is there anything else we should know?
No

The Material Design guidelines goes against this, but it can be possible. Just use the matTooltipClass input:
Content

.primary-tooltip {
    background-color: #3F51B5;
}

OK thank you.

I try to change font color by using matTooltipClass but font color still be white. I figure out that I have to put "!important" keyword like this.
.primary-tooltip {   color: black !important; }
This is because .mat-tool-tip class is declared first and it has its own color property.
I think this should be mention in docs since I too much time on this.

add :  @Component({
// Need to remove view encapsulation so that the custom tooltip style defined in
// tooltip-custom-class-example.css will not be scoped to this component's view.
encapsulation: ViewEncapsulation.None,
})


Add an option to define the width in which SlidingDot operates

Currently SlidingDot operates on the screen width, though I'm using it on a card with images being narrower than a window width.
On image scroll I have to replace
onProgressChange={(offsetProgress) => scrollX.setValue(-offsetProgress)}

with
onProgressChange={(offsetProgress) =>
  scrollX.setValue(
    -offsetProgress * (windowWidth / imageWidth)
    + (windowWidth - imageWidth) * (MARGIN_SIZE / windowWidth)
  )
}
// ...
<SlidingDot marginHorizontal={MARGIN_SIZE} {...otherProps} />

Giving an ability to change the inputRange to [-imageWidth, 0, imageWidth] I'll be able to skip this sophisticated scaling.

Excellent observation.
for the ExpandingDot component I added the property
itemWidth?: number;
and modified
const inputRange = [
    (index - 1) * width,
    index * width,
    (index + 1) * width,
];

in
const inputRange = [
    (index - 1) * (itemWidth || width),
    index * (itemWidth || width),
    (index + 1) * (itemWidth || width),
];

Now I use
<ExpandingDot
   data={items}
    ...
   itemWidth={myItemWidth}
/>

@weahforsage
What do you think on that problem?
Can you approve the idea so the PR may be opened?


JSONAPIRequestProcessor does not support the ${query.expression.op} operator for queries

I followed the README.md for Scenario 4: Memory + Backup + Remote but get this error in my console:
Uncaught (in promise) Error: JSONAPIRequestProcessor does not support the `${query.expression.op}` operator for queries.
    at JSONAPISource.getQueryOperator (jsonapi-source.js:157)
    at JSONAPISource._query (jsonapi-source.js:115)
    at JSONAPISource.proto.__query__ (queryable.js:66)
  | getQueryOperator | @ | jsonapi-source.js:157
-- | -- | -- | --
  | _query | @ | jsonapi-source.js:115
  | proto.__query__ | @ | queryable.js:66
  | IndexedDB (async) |   |
  | eval | @ | bucket.js:175
  | eval | @ | bucket.js:171
  | Promise.then (async) |   |
  | getItem | @ | bucket.js:170
  | _reify | @ | task-queue.js:364
  | TaskQueue | @ | task-queue.js:46
  | Source | @ | source.js:44
  | JSONAPISource | @ | jsonapi-source.js:47
  | create | @ | remote.js:11
  | create | @ | index.js:558
  | create | @ | index.js:257
  | instantiateFactory | @ | index.js:369
  | lookup | @ | index.js:297
  | lookup | @ | index.js:139
  | lookup | @ | container_proxy.js:81
  | (anonymous) | @ | coordinator-factory.js:31
  | create | @ | coordinator-factory.js:31
  | create | @ | index.js:558
  | create | @ | index.js:257
  | instantiateFactory | @ | index.js:369
  | lookup | @ | index.js:297
  | lookup | @ | index.js:139
  | lookup | @ | container_proxy.js:81
  | getInjection | @ | index.js:3812
  | (anonymous) | @ | index.js:1886
  | untrack | @ | validator.js:794
  | get | @ | index.js:1885
  | CPGETTER_FUNCTION | @ | index.js:992
  | beforeModel | @ | application.js:29
  | runBeforeModelHook | @ | router_js.js:782
  | (anonymous) | @ | router_js.js:691
  | invokeCallback | @ | rsvp.js:493
  | publish | @ | rsvp.js:476
  | (anonymous) | @ | rsvp.js:19
  | invoke | @ | backburner.js:338
  | flush | @ | backburner.js:229
  | flush | @ | backburner.js:426
  | _end | @ | backburner.js:960
  | Backburner._boundAutorunEnd | @ | backburner.js:629
  | Promise.then (async) |   |
  | iterations | @ | backburner.js:28
  | flush | @ | index.js:43
  | _scheduleAutorun | @ | backburner.js:1179
  | _ensureInstance | @ | backburner.js:1167
  | schedule | @ | backburner.js:776
  | schedule | @ | index.js:361
  | waitForDOMReady | @ | application.js:421
  | init | @ | application.js:331
  | superWrapper | @ | index.js:441
  | initialize | @ | core_object.js:88
  | create | @ | core_object.js:604
  | (anonymous) | @ | app-boot.js:3

I have the same issue with scenario 3, any luck @fpauser ?

I have the same issue with scenario 3, any luck @fpauser ?

My issue seems to be b/c I have a nested experssions key and that array has the op key we're looking for here.

My issue seems to be b/c I have a nested experssions key and that array has the op key we're looking for here.

Sorry for the delay in responding and for this unnecessary confusion.
This error is due to an incompatiblity between the v0.17 beta of ember-orbit used for this demo and the stable v0.16 of @orbit/jsonapi that will be installed by default by running ember g data-source remote --from=@orbit/jsonapi.
In hindsight, I should not have upgraded the main branch of this demo to use v0.17 until it's out of beta.
This can be resolved fairly easily by updating @orbit/jsonapi to ^0.17.0-beta.12 in your package.json and then running yarn install.
Note I've extracted the demo server to https://github.com/orbitjs/todomvc-orbit-server and am still in the process of updating it. I expect to be finished in the next day or two.

Thanks for clarifying!


Add Javascript Video Playlist - Khmer/Cambodia Update - > courses/free-courses-km.md

What does this PR do?
Add resource(s)
For resources
Description
Why is this valuable (or not)?

it Tech by Khode Academy

How do we know it's really free?

it is a YouTube video

For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!

Hello, I have joined Hacktoberfest. can you mark this PR/MR as hacktoberfest-accepted. Thanks


Tweak README and add contributing and license section

Tweak the README a bit in order to align things and explain, hopefully for the better, the concept and origin of the anomaly choice.
This patch also adds the Contributing and the License section.

Noticed a couple more things to tweak. To be continued...


requirements.txt for local running?

Assuming the local gradio UI script is DocOwl1.5\app.py can we get a requirements.txt for what Python packages and versions are required?
I tried using the same requirments list as I had for mPLUG-Owl but the app.py does not seem to use the GPU (even though I specifically install a CUDA version of Torch) and I get thousands of errors repeatedly...
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Tests\mPLUG-DocOwl\DocOwl1.5\mplug_docowl\utils.py", line 83, in write
2024-05-09 18:35:02 | ERROR | stderr |     self.logger.log(self.log_level, line.rstrip())
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1547, in log
2024-05-09 18:35:02 | ERROR | stderr |     self._log(level, msg, args, **kwargs)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1624, in _log
2024-05-09 18:35:02 | ERROR | stderr |     self.handle(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1634, in handle
2024-05-09 18:35:02 | ERROR | stderr |     self.callHandlers(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1696, in callHandlers
2024-05-09 18:35:02 | ERROR | stderr |     hdlr.handle(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 968, in handle
2024-05-09 18:35:02 | ERROR | stderr |     self.emit(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\handlers.py", line 75, in emit
2024-05-09 18:35:02 | ERROR | stderr |     logging.FileHandler.emit(self, record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1218, in emit
2024-05-09 18:35:02 | ERROR | stderr |     StreamHandler.emit(self, record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1108, in emit
2024-05-09 18:35:02 | ERROR | stderr |     self.handleError(record)
2024-05-09 18:35:02 | ERROR | stderr |   File "D:\Python\lib\logging\__init__.py", line 1038, in handleError
2024-05-09 18:35:02 | ERROR | stderr |     sys.stderr.write('Message: %r\n'

A requirements.txt and any other needed info for running locally under Windows would be a great help.
Thanks.

Hi, @SoftologyPro, our test environment is the same as  mPLUG-Owl2, you can follow instructions in https://github.com/X-PLUG/mPLUG-Owl/tree/main/mPLUG-Owl2 to prepare environments. But, we have only tested the demo code under Linux and are not sure whether it works well under Windows~


Add more valid TransactionCodes

There are more than are currently listed as enums, which results in errors while building a file if a transaction code is added in an entry without having a TransactionCode enum counterpart.
Having the enum matters because that's currently how the batch control record is calculated.

jotform.com/blog/ach-transaction-codes/


Adds Automated building of all examples

Adds a script to build all the examples in an automated manner.
Description
testBuildsExample.js is a script that builds all the examples.
Changes/Tasks

[x] Added code

Motivation and Context
It is possible that changes to the react-static library can cause some of the examples that are shipped with the library to stop working. There is no easy way for a developer to check if their changes are breaking any of the templates that react-static supports. This script builds every example and if any example fails to build it prints out the error and exits with an error code.
TODO:

integrate this with travis

Types of changes

[x]  Added new test

Checklist:

[ ] My change requires a change to the documentation.

[ ] I have updated the documentation accordingly.

[ ] My changes have tests around them

Running this script I find that following examples are failing on master

firebase-auth
gentics-mesh
less-antdesign
material-ui
sass
typescript

See this gist for detailes

Looks like we need to check on those examples!


fix: Transpiler inconsistencies for CRDs

Howdy
Some context for this reasonably large refactor:

There appears to be mostly consistent issues with the CRD transpiler with 8.0.0-pre.40 as communicated #687
This issue was not limited to int/int? alone after further investigation, but instead a whole slew of types (DateTime,bool,bool?,etc)
long story short, type equality checks were the culprit (and I have no idea why). My best guess is that something is off with my machine.
While switching out conditions, I noticed opportunities to simplify

I packaged up the code and published it to a local nuget server before installing it in a project. I was able to build the CRD for this entity without any issues with these changes (functionally the kubebuilder book CronJob example):
[k8s.Models.KubernetesEntity(Group = Constants.Operator.Group, ApiVersion = "v1", Kind = "CronJob")]
public partial class V1CronJob : CustomKubernetesEntity<V1CronJob.EntitySpec, V1CronJob.EntityStatus> {
    public class EntitySpec {
        [Required]
        public string Schedule { get; set; } = string.Empty;
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public DateTimeOffset? StartingDeadlineSeconds { get; set; }
        [AllowedValues("Allow","Forbid","Replace")]
        public string? ConcurrencyPolicy { get; set; }
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public bool? Suspend { get; set; }
        [Required]
        [EmbeddedResource]
        public k8s.Models.V1JobTemplateSpec JobTemplate { get; set; } = new();
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public int? SuccessfulJobsHistoryLimit { get; set; } = 3;
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public int? FailedJobsHistoryLimit { get; set; } = 1;
    }

    public class EntityStatus {
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public string? LastScheduleTime { get; set; } = default;
        [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        public List<k8s.Models.V1ObjectReference> Active { get; set; } = new();
    }

    public static class ConcurrencyPolicy {
        public const string Allow = "Allow";
        public const string Forbid = "Forbid";
        public const string Replace = "Replace";
    }
}

this produced the following yaml:
openAPIV3Schema:
  properties:
    status:
      nullable: false
      properties:
        lastScheduleTime:
          nullable: true
          type: string
        active:
          items:
            properties:
              apiVersion:
                nullable: false
                type: string
              fieldPath:
                nullable: false
                type: string
              kind:
                nullable: false
                type: string
              name:
                nullable: false
                type: string
              namespace:
                nullable: false
                type: string
              resourceVersion:
                nullable: false
                type: string
              uid:
                nullable: false
                type: string
            type: object
          nullable: false
          type: array
      type: object
    spec:
      nullable: false
      properties:
        schedule:
          nullable: false
          type: string
        startingDeadlineSeconds:
          format: date-time
          nullable: true
          type: string
        concurrencyPolicy:
          nullable: true
          type: string
        suspend:
          nullable: true
          type: boolean
        jobTemplate:
          nullable: false
          type: object
          x-kubernetes-embedded-resource: true
          x-kubernetes-preserve-unknown-fields: true
        successfulJobsHistoryLimit:
          format: int32
          nullable: true
          type: integer
        failedJobsHistoryLimit:
          format: int32
          nullable: true
          type: integer
      required:
      - schedule
      - jobTemplate
      type: object
  type: object

I also added decimal & DateTimeOffset support due to presence here:

https://microsoft.github.io/typespec/getting-started/typespec-for-openapi-dev#type-and-format

DISCLAIMER: I have no idea what the CRD yaml output should look like. My main goal was to honor the current test suite.
Let me know if there is anything I can do for this PR, but the CRD gen is largely not usable at the moment for me, and I'm still very much confused why that is the case and why there appears to be no mention of the same issue from others.
Thanks

Hey @mauleb
Thank you for your contribution!
It seems pretty OK if the test solution says so ;-)
I'll need some time to go over the changes. It is quite weird that sometimes it works and sometimes not. The whole magic with loading assemblies is new to me, so there definitely are some bugs.

I had the same issues, but very inconsistently as well. As soon as I made a "dotnet clean" and "dotnet build" it worked. I had little to no chance to test it.
However there were issues with the typecheck. I tried to use fixed types but since they are loaded via metadata load context, it is not "the same" type.
Your solution is elegant and solves the issue perfectly. Since the tests are "all green", there should not be an issue since the YAML generated is the same.
Thanks for the contribution!


where can I find the PySilon.key to implode

I can't find where to get the PySilon.key to implode it

Root directory after compiling


test: skip TestMaliciousTestNode in race mode

Closes https://github.com/celestiaorg/celestia-app/issues/2210

Codecov Report

Merging #2213 (168df4b) into main (b3b8611) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2213   +/-   ##
=======================================
  Coverage   24.86%   24.86%
=======================================
  Files         127      127
  Lines       14326    14326
=======================================
  Hits         3562     3562
  Misses      10397    10397
  Partials      367      367


Go Programming Language

Nice if we have it added to the list...

Cold easily be done in core or as an extension, since there is a Go mode for CodeMirror already available.

Simple extension for this:
https://github.com/petetnt/brackets-codemirror-go

There is already an extension :smile:
https://github.com/devinceble/brackets-go

Dang, I searched the registry but somehow missed it. Figures.
----- Alkuperäinen viesti -----
Lähettäjä: "ApfelUser"<EMAIL_ADDRESS>Lähetetty: 12.2.2015 22:29
Vastaanottaja: "adobe/brackets"<EMAIL_ADDRESS>Kopio: "Pete Nykänen"<EMAIL_ADDRESS>Aihe: Re: [brackets] Go Programming Language (#10559)
There is already an extension
https://github.com/devinceble/brackets-go
—
Reply to this email directly or view it on GitHub.

Closing since it looks like at least two extensions are already available.

Current extension only supports syntax highlighting. I am working on one to incorporate all useful go tools (gofmt, go imports, golint, gocode).
So far formatting is done, currently working on linter and autocomplete.
https://github.com/kortemy/gockets


Hugging face repo sample code issues

The sample code on huggingface repo page, errors saying models package is missing

The models directory is included in the huggingface code.
(https://huggingface.co/minchul/cvlface_adaface_vit_base_kprpe_webface4m/tree/main)
It would be good to inspect why, in your code, the code is not registering the directory as a package.
If it requires changing the huggingface code, feel free to let me know.

While using the code in readme of huggingface, I am getting the same error. Can you please check? @mk-minchul

I am facing the same issue when I directly used the demo code from huggingface. But I was able to correctly run the verify.py script. So I went in and found the difference between the two. The problem lies in the load_model_from_local_path . You should change it to:
def load_model_from_local_path(path, HF_TOKEN=None):
    cwd = os.getcwd()
    os.chdir(path)
    sys.path.insert(0, path)
    model = AutoModel.from_pretrained(path, trust_remote_code=True, token=HF_TOKEN)
    os.chdir(cwd)
    sys.path.pop(0)
    return model

This solved the importing problem for me.
@mk-minchul @arnav-roy @jkfnc

Thank you @SARIHUST for the notice. I have changed the huggingface repo to fix the problem.


Release/0.1.8

🤔 这个 PR 的性质是？

[ ] 日常 bug 修复
[ ] 新特性提交
[ ] 文档改进
[ ] 演示代码改进
[ ] 组件样式/交互改进
[ ] CI/CD 改进
[ ] 重构
[ ] 代码风格优化
[ ] 测试用例
[x] 分支合并
[ ] 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

fix(组件名称): 处理问题或特性描述 ...

[x] 本条 PR 不需要纳入 Changelog

☑ 请求合并前的自查清单
⚠ 请自检并全部勾选全部选项。⚠

[x] 文档已补充或无须补充
[x] 代码演示已提供或无须提供
[x] Changelog 已提供或无须提供

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: Luozf12345:white_check_mark: hkaikai:x: github-actions[bot]You have signed the CLA already but the status is still pending? Let us recheck it.


NOJIRA redirect to 'url' param when user is authenticated

Hi Chris and co,
This is in response to a bug we had at NYU where Sakai wasn't redirecting to the desired URL upon returning from the SSO service.
When unauthenticated, Sakai redirects to home_url?url=desired_url.  This is the URL that the SSO service is given and thus returned to.
This patch checks for the 'url' param and user's auth status and redirects to the 'url' if authenticated.
NYU JIRA: https://jira.nyu.edu/jira/browse/ATLASNAK-36
Cheers!
Payten

@nicolaasmatthijs The issue this solves is that post-SSO authentication, it tosses the user back to the URL which existed at the time of the SSO authentication. As far as I know, the server doesn't know about the URL param, and we handle that ourselves in the topnavigation.js file currently (albeit after a login is successful, and we don't have to refresh to know).

@croby: I understand what it's doing, but I don't think the UI is the right place to do this. Somewhere in Nakamura or the NYU deployment, there must be a servlet that creates the Nakamura session for a user after successful SSO authentication. That servlet is probably also the one that redirects you back to the page you came from. The servlet can then be used to pick up on the url parameter and send the appropriate redirect.
I'm hoping this is a generic Nakamura servlet, so fixing it there would fix it properly for all deployments.

Merged in at https://github.com/sakaiproject/3akai-ux/commit/1b666e8880b406a8465d4b3a70db54c34b21fcfa

@payten @croby: It looks like this has caused a regression. When going to a content item that you're not allowed to see, the system will redirect you to something like http://localhost:8080/404?url=/content%23p%3DjKn0SLaaa/256x256_profilepicture.jpg. With the new patch, this now ends up in an infinite redirect loop. Can you please fix this? If not, I'll have to revert the patch from master.

@payten and @croby: Just a reminder that the regression this is causing is still in here. Please follow up with a fix for this by the end of the week, otherwise I will have to revert the commit.

Reopened via https://github.com/sakaiproject/3akai-ux/pull/1237
Patch will address the infinite loop, but not sure if it entirely addresses the problem.  Patch assumes all unauthenticated hits are redirected to the root path as with NYU's SSO implementation... not sure if this will be the case for others though.


KeyError: 'Non-existent config key: MODEL.BACKBONE.NAME2'

Hi, @ZrrSkywalker @yangyangyang127 ,
Thanks a lot for releasing the V2 package. I've tried running zeroshot_cls. However, when I run sh zeroshot_cls.sh, I got the following KeyError.
/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/scipy/__init__.py:138: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5)
  warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion} is required for this version of "
/data/code13/PointCLIP_V2/zeroshot_cls/clip/clip.py:23: UserWarning: PyTorch version 1.7.1 or higher is recommended
  warnings.warn("PyTorch version 1.7.1 or higher is recommended")
Traceback (most recent call last):
  File "main.py", line 131, in <module>
    main(args)
  File "main.py", line 82, in main
    cfg = setup_cfg(args)
  File "main.py", line 71, in setup_cfg
    cfg.merge_from_file(args.config_file)
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/yacs/config.py", line 213, in merge_from_file
    self.merge_from_other_cfg(cfg)
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
    _merge_a_into_b(cfg_other, self, self, [])
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/yacs/config.py", line 478, in _merge_a_into_b
    _merge_a_into_b(v, b[k], root, key_list + [k])
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/yacs/config.py", line 478, in _merge_a_into_b
    _merge_a_into_b(v, b[k], root, key_list + [k])
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/yacs/config.py", line 491, in _merge_a_into_b
    raise KeyError("Non-existent config key: {}".format(full_key))
KeyError: 'Non-existent config key: MODEL.BACKBONE.NAME2'
(pointclip_new) milton@milton-ws3:/data/code13/PointCLIP_V2/zeroshot_cls

It seems there's some issue in the config file.  Could you give some hints to fix this issue?
Thanks~

I think this problem happens when you use other Dassal package.
To solve this, please conduct:
cd PointCLIP_V2/zeroshot_cls/Dassal
python setup.py develop
cd ..

bash sh zeroshot_cls.sh

I think this may help.

@yangyangyang127 , thanks a lot for your reply. After compiling Dassl3D as listed above, this issue is passed.
However, another issue occurs: RuntimeError: No CUDA GPUs are available
(pointclip_new) milton@milton-ws3:/data/code13/PointCLIP_V2/zeroshot_cls$ sh zeroshot_cls.sh
/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/scipy/__init__.py:138: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.5)
  warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion} is required for this version of "
/data/code13/PointCLIP_V2/zeroshot_cls/clip/clip.py:23: UserWarning: PyTorch version 1.7.1 or higher is recommended
  warnings.warn("PyTorch version 1.7.1 or higher is recommended")
Setting fixed seed: 2
Collecting env info ...
** System info **
PyTorch version: 1.10.1
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: Could not collect
CMake version: version 3.16.3
Libc version: glibc-2.31

Python version: 3.8.13 (default, Mar 28 2022, 11:38:47)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.8.0-43-generic-x86_64-with-glibc2.17
Is CUDA available: False
CUDA runtime version: 11.3.58
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3080 Ti
Nvidia driver version: 470.57.02
cuDNN version: Probably one of the following:
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.24.2
[pip3] torch==1.10.1
[pip3] torch-cluster==1.6.0
[pip3] torch-scatter==2.0.9
[pip3] torch-sparse==0.6.13
[pip3] torchaudio==0.10.1
[pip3] torchvision==0.11.2
[conda] blas                      1.0                         mkl
[conda] cudatoolkit               11.3.1               h2bc3f7f_2
[conda] ffmpeg                    4.3                  hf484d3e_0    pytorch
[conda] mkl                       2021.4.0           h8d4b97c_729    conda-forge
[conda] mkl-service               2.4.0            py38h95df7f1_0    conda-forge
[conda] mkl_fft                   1.3.1            py38h8666266_1    conda-forge
[conda] mkl_random                1.2.2            py38h1abd341_0    conda-forge
[conda] numpy                     1.24.2                   pypi_0    pypi
[conda] numpy-base                1.23.5           py38h31eccc5_0
[conda] pytorch                   1.10.1          py3.8_cuda11.3_cudnn8.2.0_0    pytorch
[conda] pytorch-cluster           1.6.0           py38_torch_1.10.0_cu113    pyg
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] pytorch-scatter           2.0.9           py38_torch_1.10.0_cu113    pyg
[conda] pytorch-sparse            0.6.13          py38_torch_1.10.0_cu113    pyg
[conda] torchaudio                0.10.1               py38_cu113    pytorch
[conda] torchvision               0.11.2               py38_cu113    pytorch
        Pillow (9.4.0)

Loading trainer: PointCLIPV2_ZS
Loading dataset: ModelNet40
/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/utils/data/dataloader.py:478: UserWarning: This DataLoader will create 8 worker processes in total. Our suggested max number of worker in current system is 4, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
  warnings.warn(_create_warning_msg(
***** Dataset statistics *****
  Dataset: ModelNet40
  # classes: 40
  # train_x: 9,840
  # val: 2,468
  # test: 2,468
Loading CLIP (backbone: ViT-B/16)
100%|███████████████████████████████████████| 351M/351M [00:30<00:00, 11.6MiB/s]
Traceback (most recent call last):
  File "main.py", line 131, in <module>
    main(args)
  File "main.py", line 97, in main
    trainer = build_trainer(cfg)
  File "/data/code13/PointCLIP_V2/zeroshot_cls/Dassl3D/dassl/engine/build.py", line 11, in build_trainer
    return TRAINER_REGISTRY.get(cfg.TRAINER.NAME)(cfg)
  File "/data/code13/PointCLIP_V2/zeroshot_cls/Dassl3D/dassl/engine/trainer.py", line 280, in __init__
    self.build_model()
  File "/data/code13/PointCLIP_V2/zeroshot_cls/trainers/zeroshot.py", line 49, in build_model
    clip_model.cuda()
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 680, in cuda
    return self._apply(lambda t: t.cuda(device))
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 570, in _apply
    module._apply(fn)
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 570, in _apply
    module._apply(fn)
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 593, in _apply
    param_applied = fn(param)
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/nn/modules/module.py", line 680, in <lambda>
    return self._apply(lambda t: t.cuda(device))
  File "/home/milton/anaconda3/envs/pointclip_new/lib/python3.8/site-packages/torch/cuda/__init__.py", line 214, in _lazy_init
    torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available

I've checked my GPU using torch.cuda.is_available(), and it returns True. My system has a single RTX3080TI GPU, with CUDA 11.3 installed. Is the reason that the package requires multiple GPU training?
Any hints to solve this issue?
Thanks~


Does not make whole screen capture

Steps to reproduce:

Install the extension.
Choose any webpage.
Use the extension and press "Celá stránka" ("Whole page" - it works in Czech in my browser).
Only visible part of the webpage is captured.

I can reproduce the same behaivor

Used to work, but now "All page screenshot" is the same as "visible screenshot".
Steps to reproduce:

send browser to https://github.com/Aminadav/screenshot-extension
click on the extension icon next to address bar
click "All page screenshot"

Please test the last version, it should be fixed.

testing version 29.0.0.
"whole page screenshot" now has more than the visible area, but the resulting image is displayed at 125% of actual image size.  "copy iamge" and transferring to a drawing program, the image is genuinely the correct size it's just displayed larger than it should in the window/tab that is opened by screenshot-extension.


chore:Code Documentation for course uploads and Course list

What this PR does
Affected classes:

CourseUploadsFragment
CourseUploadsView
ExploreCourseResponse
CourseListPresenter
CourseListPresenterImpl
CourseListProvider
RetrofitCourseListProvider

Please check why codacy check is failiing.

@ujjwalagrawal17 all check passed


Change for the encoder-only ProstT5 model

This enables running ProstT5's (https://huggingface.co/Rostlab/ProstT5) encoder-only mode in Candle. This ProstT5 mode stores it's embed_tokens weights within the encoder, as its decoding stage was replaced with a CNN.  This alone is not sufficient to run ProstT5 within Candle examples. We will develop a ProstT5 runner outside candle for now, but would be willing to upstream it to candle-examples at a later point.

Thanks, fwiw these conditional tensor renames are certainly very hacky.
A cleaner way to handle this is have the VarBuilder that you provide to the model creation do the renaming (could use regex or whatever it wants), it's already possible to do so via a custom VarBuilder backend though not well documented, I'm putting together #2052 that should make it a bit easier - with this change you will be able to just create a VarBuilder based on another VarBuilder and a renaming function.


scrolling to new index?

hey, love the repo's promise! Basic scenario, looking at the demo: tap a smaller images and cause the larger images to scroll to match the tap'd index. I see an cool usage here for a larger ratio'd image above that shows more detail than a smaller version down below, similar to the iPhone camera app, but only better looking ;)
Just looking to see if this is already part of the repo, the ability to animate a scroll to an image?

ok.. if time permits i will explore, otherwise will adapt end-game or use a lesser repo ;) thx..


ERC2981

closes #140

Does the EIP even indicate whether the royalty is deducted from or in addition to the salePrice?  My above comment assumes the latter.

@0xCourtney Does the EIP say anything about reverting if royalty rate is greater than 10000? I have two issues with that:

The specification did not suggest throwing an error if the rate exceeds 10000. I tend to agree, the revert should be removed or handled in a setter independent of _royaltyInfo.

I think the standard is purposefully lightweight.

Not good enough.  The standard is barely even a standard if it doesn't answer the fundamental question of whether the royalty is added to or deducted from the base cost.
But, nothing we can do about that.  Let's just assume that the royalty is added, and therefore allow royalties above 10000 BPS.  I will make this change now.

Not good enough. The standard is barely even a standard if it doesn't answer the fundamental question of whether the royalty is added to or deducted from the base cost.

I'm not crazy about it either, this may be more relevant than the original quote I passed along.

Marketplaces that support this standard SHOULD implement some method of transferring royalties to the royalty recipient. Standards for the actual transfer and notification of funds will be specified in future EIPs.

Out of curiosity, how would the implementation be impacted whether the royalty were added or removed from the sale price?

I believe that those excerpts from the EIP are saying that the manner of payment is not specified in the EIP.  The following would be acceptable:

Immediate token transfer.
Immediate conversion to some other token and transfer.
Tracking of credits for later transfer.
Etc.

But I'm asking a different question.  Say the royalty is set o 20%, and an NFT is sold for $100.  There are several ways to handle this:

Send 100 to the seller and 20 to the royalty receiver (royalty is added on top of the base cost).
Send 80 to the seller and 20 to the royalty receiver (royalty is deducted from the base cost).
Send 100 to the seller and 25 to the royalty receiver (royalty is a percentage of total amount transferred, and the seller still gets the full base cost).

Listed in order of likelihood.  Our implementation assumes the first.
Now say the royalty is set to 200%.

Send 100 to the seller and 200 to the royalty receiver.
Send -100 to the seller, and 200 to the royalty receiver (calculation is broken).
Calculation is impossible.

The first option is ultimately the most intuitive, most flexible, and easiest to code, so I think most people will assume that this is the behavior intended by the EIP.  But the EIP should be more clear, because the other two options are perfectly valid in certain circumstances.

The first option is ultimately the most intuitive, most flexible, and easiest to code, so I think most people will assume that this is the behavior intended by the EIP. But the EIP should be more clear, because the other two options are perfectly valid in certain circumstances.

Thanks for explaining that. It's clear that the EIP left a lot of room for interpretation and potentially room for bugs to arise. Given your example would it make sense to add a setter for the royalty BPS, and throw if 10000 is exceeded as suggested earlier?
We can note the case you mentioned so that the dev is aware of the risk of overriding the default function and permitting the royalty to exceed 100%.

Because we're assuming the first case, we don't need to include any reverts.  I added a note in b0355c3c0571bd6caea7e60dfa1556d8ea46cf15.


Text + Heading: Deprecate old size options

Summary
Remove deprecated sizes from Heading and Text (sm, md and lg).
Why?
Align with design tokens and avoid arbitrary size usage.
To make any conversions using our codemods, run
yarn codemod modifyPropValue [path-to-files] --component=Heading --previousProp=size --previousValue=[value to replace] --nextValue=[new value]
and
yarn codemod modifyPropValue [path-to-files] --component=Text --previousProp=size --previousValue=[value to replace] --nextValue=[new value]
Links

Jira

Checklist

[x] Added unit and Flow Tests
[x] Added documentation + accessibility tests
[x] Verified accessibility: keyboard & screen reader interaction
[x] Checked dark mode, responsiveness, and right-to-left support
[x] Checked stakeholder feedback (e.g. Gestalt designers)

@EduhCosta Can you also remove the lines in both prop descriptions (Heading and Text) that say "The "sm", "md", and "lg" values will soon be deprecated."?

@EduhCosta Can you also remove the lines in both prop descriptions (Heading and Text) that say "The "sm", "md", and "lg" values will soon be deprecated."?

Done


Issue #88 Update code-ready/machine hash to go.mod file

Update the libmachine changes.

Already merged as part of #91


zos: use stckf builtin for high-res timer

Instead of gettimeofday which is too heavy for a fast
monotonic clock implementation.

Overly cautious CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/310/

Landed in 4776195, thanks.


Add Web MIDI API

Add Web MIDI API: https://dvcs.w3.org/hg/audio/raw-file/tip/midi/specification.html

This issue was imported from Google Moderator
Moderator votes: +10
Issue added by Matt on 2012-06-18
To vote this issue up or down, simply include +1 or -1 in your comment.

http://caniuse.com/#feat=midi


Relicense monofile under some version of the GPL

@Jack5079 Doing this with all of our branches might be weird so idk

yeah probably just client-v2 and api-v1

client-v2 has no changes so far except for removing the client so just api-v1
Once api-v1 is done we'll merge it into client-v2, where we'll then probably drop 99% of api v0
How should we merge these when client-v2 is done? first merge api-v1, then after client-v2 is done, merge that into main? because with the updates in apiv1, apiv0 would be very unstable and likely very broken in some parts, so.... idk

which version of the GPL, too?

which version of the GPL, too?

agpl? although that requires a link to the exact source so we're gonna have to do shit in build time to get the commit sha