Implement HikariCP connection pooling

An error occurred when I tried to use MySQL to store data.
Output error message: [HuskHomes] The mySQL JBDC library is missing! Please download and place this in the /lib folder.
HuskHomes version 2.5. MySQL version 5.7.

Thanks for your report - please tell me what Java version you are using. I recently updated the driver to work with Java 11+ environments, so that might be the cause. If not, then you need to make sure you download the updated driver from  https://dev.mysql.com/downloads/connector/j/ and put this in your Java library folder (on Windows this is in C:\Program Files (x86)\Java\<java version you are using>\lib\)

I use OpenJDK11. My server did not install OpenJDK on the host for easy transfer. I downloaded the OpenJDK11 portable zip package from https://bell-sw.com/ and unzipped it to a separate folder. When starting the server, the OpenJDK path is specified separately to start. Just now I downloaded mysql-connector-java-8.0.25.jar from https://dev.mysql.com/downloads/connector/j/ and placed it in OpenJDK/lib/, and then tried to start the server, the plug-in still does not work .My English is not very good, I use Google Translate, hope you forgive me.

I'm very sorry - but I am not totally certain what the cause of the issue is.
I would recommend upgrading to Java 16 because Mojang will require it soon and not use the Liberica OpenJDK but perhaps the Oracle JDK https://www.oracle.com/java/technologies/javase-jdk16-downloads.html - why is it that you are wanting to use a separate java installation for Minecraft rather than installing it standard on your OS?
What operating system are you using - Windows? If so, you should use the mySQL installer to install the drivers which may be a more direct way of doing it - although this will do it system wide and it seems you want to install it into a separate folder..

thanks for your help. The problem was not solved. But I'm exhausted, and I plan to think of a solution later. Your plugin looks great, although I can't use it, haha. Maybe you can be like other developers, most of the plugins that use MySQL to store data are working properly on my server.

My apologies again - the reason other plugins probably work is because they
utilise HikariCP connection pooling whereas I do it directly with the
driver. In the vast majority of cases this is fine as the JDBC connection
library comes standard with the installation of Java on the machine. In
your case, however, this is not what’s happened. This is something I’d like
to look into soon. I’m going to refocus this issue to track the
implementation of connection pooling which may have some other benefits to
it. Thank you and I am sorry it didn’t work out right away :)
On Thu, 3 Jun 2021 at 01:04, GuNanOvO @.***> wrote:

thanks for your help. The problem was not solved. But I'm exhausted, and I
plan to think of a solution later. Your plugin looks great, although I
can't use it, haha. Maybe you can be like other developers, most of the
plugins that use MySQL to store data are working properly on my server.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/WiIIiam278/HuskHomes2/issues/40#issuecomment-853459513,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHN6D7ODOBMGQNWODP4VG5DTQ3BJXANCNFSM457ALQWA
.

too crazy! I tried to unzip the ‘mysql-connector-java-8.0.25.jar’ package into the plug-in ‘HuskHomes-2.5.jar’ package and save it. Surprisingly, it has no errors and no longer prompts "The mySQL JBDC library is missing! Please download and place this in the /lib folder."Haha. Is it okay to do this? Will there be any hidden errors?

too crazy! I tried to unzip the ‘mysql-connector-java-8.0.25.jar’ package into the plug-in ‘HuskHomes-2.5.jar’ package and save it. Surprisingly, it has no errors and no longer prompts "The mySQL JBDC library is missing! Please download and place this in the /lib folder."Haha. Is it okay to do this? Will there be any hidden errors?
Just now, I checked my database. The plug-in successfully created the data table!

Haha, that's a really interesting one.. I guess it should work fine!?

Hey @GuNanOvO - Sorry for the tag, wanted to let you know that the latest versions of HuskHomes ensure that the mysql connector library is present at runtime using the spigot library install feature (especially since apparently some JDK 16's don't come with this by default unlike JDKs for 1.8)

Great, now the plugin will automatically download the MySQL connector library and it works fine. Thank you for reminding me.  When I use the command: /home, HomeGUI should be opened under normal circumstances, but now there is an accident.
[15:02:22 WARN]: [HuskHomesGUI] Plugin HuskHomesGUI v1.01 generated an exception while executing task 16153 java.lang.NullPointerException: Cannot invoke "me.william278.huskhomes2.data.SQL.Database.getConnection()" because "me.william278.huskhomes2.HuskHomes.database" is null         at me.william278.huskhomes2.HuskHomes.getConnection(HuskHomes.java:63) ~[?:?]         at me.william278.huskhomes2.api.HuskHomesAPI.getConnection(HuskHomesAPI.java:25) ~[?:?]         at me.william278.huskhomes2.api.HuskHomesAPI.getHomes(HuskHomesAPI.java:102) ~[?:?]         at com.technovision.HuskHomesGUI.playerdata.HuskHomesReader.<init>(HuskHomesReader.java:17) ~[?:?]         at com.technovision.HuskHomesGUI.gui.HomeGUI.<init>(HomeGUI.java:29) ~[?:?]         at com.technovision.HuskHomesGUI.events.HomeEvents.lambda$onCommandPreProcess$1(HomeEvents.java:105) ~[?:?]         at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.jar:git-Paper-"a9394b8"]         at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.17.jar:git-Paper-"a9394b8"]         at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.jar:git-Paper-"a9394b8"]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]         at java.lang.Thread.run(Thread.java:831) [?:?]
After updating HomeGui, I did not use the plug-in in time. This problem has not been discovered until now, and it was normal before the update.
I am using OpenJDK16 and paper1.17. The link between the HoskHomes plug-in and the database is normal.

I don’t want to open another question, so I’m here to give you feedback. When I use the command: /home, HomeGUI should be opened under normal circumstances, but now there is an accident.
[15:02:22 WARN]: [HuskHomesGUI] Plugin HuskHomesGUI v1.01 generated an exception while executing task 16153 java.lang.NullPointerException: Cannot invoke "me.william278.huskhomes2.data.SQL.Database.getConnection()" because "me.william278.huskhomes2.HuskHomes.database" is null at me.william278.huskhomes2.HuskHomes.getConnection(HuskHomes.java:63) ~[?:?] at me.william278.huskhomes2.api.HuskHomesAPI.getConnection(HuskHomesAPI.java:25) ~[?:?] at me.william278.huskhomes2.api.HuskHomesAPI.getHomes(HuskHomesAPI.java:102) ~[?:?] at com.technovision.HuskHomesGUI.playerdata.HuskHomesReader.<init>(HuskHomesReader.java:17) ~[?:?] at com.technovision.HuskHomesGUI.gui.HomeGUI.<init>(HomeGUI.java:29) ~[?:?] at com.technovision.HuskHomesGUI.events.HomeEvents.lambda$onCommandPreProcess$1(HomeEvents.java:105) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.jar:git-Paper-"a9394b8"] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.17.jar:git-Paper-"a9394b8"] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.jar:git-Paper-"a9394b8"] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?] at java.lang.Thread.run(Thread.java:831) [?:?]
After updating HomeGui, I did not use the plug-in in time. This problem has not been discovered until now, and it was normal before the update.
I am using OpenJDK16 and paper1.17. The link between the HoskHomes plug-in and the database is normal.

Hi there,
I'm aware of this issue and have opened an issue to track it: #54
Thanks


Add ability to paginate results.

This change is

Coverage increased (+0.5%) to 92.681% when pulling a17123b191cc41858593288ba9addc6a6eeecdc4 on maruqu:master into f9645f41e11427fbc2c3caac205db261617a7aac on socialwifi:master.

Coverage increased (+0.5%) to 92.681% when pulling a17123b191cc41858593288ba9addc6a6eeecdc4 on maruqu:master into f9645f41e11427fbc2c3caac205db261617a7aac on socialwifi:master.

LGTM. But we rely need "links" to use it.
JSON API doc:
The following keys MUST be used for pagination links:
first: the first page of data
last: the last page of data
prev: the previous page of data
next: the next page of data

Fixed.


fixed types comparison in Posts.isApproved helper

Posts.isApproved helper return 'false' when admin user is adding new post with the Status = "approved" - the post.status is a String compared with Integer value of Posts.config.STATUS_APPROVED.
As a result, the postedAt value is not stored in the Posts collection, which leads to ugly error whenever <FormattedRelative value={post.postedAt}/> is used, i.e. in the PostsItem.

I was able to fix this simply by parsing post.status with parseInt().

Thanks!


Update contributing docs

Things to cover

master vs 2x
snapshots are published to bintray
~/.bintray/.credentials to ignore warning
probably more...

Is there a styleguide?  Should we add a .scalafmt.conf file to the project and do a reformat to reduce future formatting changes?

Styleguide is definitely missing. scalameta/paradise enforces scalafmt in CI and it has worked great for me so far (but I'm obviously biased :)). We'd have to take a look at the diffs for this repo and see, the scalameta codebase uses a ton of quasiquotes and patterns (waaay more than is usual in scala projects) which might not look so great with scalafmt.
I know @jvican has expressed interest in reformatting the repo with scalafmt.

We just merged https://github.com/scalameta/scalameta/pull/709, which is a good start for this issue. I think we are safe to close this issue, missing info from CONTRIBUTING.md can be added via PRs.


Cannot WintabsClose the final modified buffer in a window.

If you open Vim, and modify the default non-named buffer. It will show up as a wintab, but then if you try to WintabsClose it, you will get an error message:

set hidden
let g:tabSystem = 'wintabs'
let g:wintabs_autoclose=1
let g:wintabs_autoclose_vim=1
let g:wintabs_switchbuf='useopen,usetab'
let g:wintabs_ui_modified*
let g:wintabs_ui_active_higroup = 'TabLineSel'

Note that let g:wintabs_autoclose=2 does work, but let g:wintabs_autoclose=1 does not.

Thanks for flagging this! Will fix it soonish.

Related, you cannot even close any non-named buffer without raising this error (try :enew). One helpful datapoint: If before deleting the non-named buffer, you set :setlocal bufhidden=hide then the error doesn't happen. I think it's because with bufhidden=delete (or even the default value of empty string) the buffer is deleted twice - once by default and once by wintabs.

And with the following config:
let g:wintabs_display='statusline'
set hidden
let g:wintabs_autoclose=2
let g:wintabs_autoclose_vim=1
let g:wintabs_autoclose_vimtab=1
let g:wintabs_switchbuf='useopen,usetab'
let g:wintabs_ui_active_higroup = 'TabLineSel'

As mentioned in the initial description closing the first/only non-named modified buffer works.
But then with that new config, closing the first/only  named buffer does not work if you have modifications.

This should be fixed now. Thank you for the analysis @jordwalke, it helped me resolve another issue. Some of the edge cases we see here are indeed caused by wintab's reliance on the interaction between "confirm" and "hidden".
Due to the recent vim changes on "silent!"+"confirm", I'm not very sure if I'm fixing the right thing (I removed some "silent!" to bubble up exceptions). Please test out the new version and let me know if things still behave correctly and consistently.


How to use Proxy protocol v2 in envoy to pass the CN field in the client certificate to the upstream server.

Looking at the config https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/core/v3/proxy_protocol.proto#envoy-v3-api-msg-config-core-v3-proxyprotocolconfig, I think custom TLVs are not supported. You could maybe manually create TLVs in a custom downstream filter, and then rely on the upstream proxy protocol upstream transport to pass it along.

Thank you very much for your reply.


Expose rf_explode_tiles_sample in SQL

Expression for ExplodeTiles already takes sampleFraction and seed parameters, and a Seq of child Expressions. Note alternate constructor for just a sequence of Expressions.

See branch https://github.com/s22s/rasterframes/tree/feature/rf_explode_tiles_sample

@vpipkt Is the branch a work in progress?

Yes, no PR because it is so far just a failing unit test :-D


ModuleNotFoundError: No module name 'tensorflow_probability'

Hi,
I think installing this module is required since it is imported in model.py.
Guy

Yeah, thank you for spotting the error.

@ @ggaziv @sygi ,hi could you tell me which version of tensorflow and tensorflow_probability are used by you? I install tensorflow=1.12.0 and  tensorflow_probability0.5.0. when i run the code, I get a error message like"AttributeError: module 'tensorflow_core.compat.v2.math' has no attribute 'xlog1py'”.


null coalesce operator in php >= 5.4.0 ? really?

This version positioned is to run on php 5.4.0+ but following code will not be compiled on versions under 7.0
protected function getRelevanceField()
{
if ($this->relevanceField ?? false) {
return $this->relevanceField;
}

"nicolaslopezj/searchable": "1.10.*" for php 5
problematic commit : https://github.com/nicolaslopezj/searchable/commit/3874f6680347c072acfdd06ca1636e32cffba838#diff-a684410f1c0c617785bc98acd92b7aa2


run publish scripts in parallel

I suspect that --tolerate-republish is terminating the script early when an already-published version is found, in spite of what its name suggests.
Per the docs:

Warn and exit when republishing an already existing version of a package

This suggests to me that by looping over packages and publishing (as we do with yarn workspaces foreach), we're actually exiting the loop when a republish is detected, which is exactly what we don't want to do. I'm hoping that by running the publish tasks in parallel, --tolerate-republish won't terminate the whole script when a republish is detected.

I don't think this would explain why things stopped working all of a sudden, but it's worth a shot.


fixed bugs

Signed-off-by: Ken Museth<EMAIL_ADDRESS>

@Idclip, I have tested this with ABI 6 and 7 (and actually fixed an unknown bug) but you still need to check it against Houdini builds


Demote or suppress some errors in logs

@sougou
Quick change to suppress some of the errors that we've seen as being too spammy.
I'm unsure about 1406/ER_DATA_TOO_LONG, @nurblieh can confirm that we want to suppress that one too.

Demoting ER_DATA_TOO_LONG makes sense to me. It's not an operational issue for Vitess. The important thing is that the client gets the message that their query failed and that's happening.

LGTM


Compound Statements for Large Datasets

For v1.0 we only support publishing simple statements.
The capacity measurements in #48 indicate that the cost of each statement is around 1K, which results in the statement db being almost 3 times larger than the datastore.
Nonetheless, this is not something unexpected; we anticipated the need for compressing statements (and amortizing signature costs) in the form of compound statements.
Compound statements allow multiple simple statement bodies to be grouped together in a single statement.
This allows us to reduce the space consumption of the statement db, at the cost of object retrieval granularity:
we can no longer retrieve a single statement body in a query by wki, while merging a compound statement will fetch the metadata for all objects in the group.
Let's roughly analyze the space cost of the statement db in order to appreciate the potential capacity increase by using a modest grouping of 10 statements that doesn't overwhelm the client.
The statement db has 3 tables:

The Statement table, which contains ids and data; the cost of this table is about 400 bytes/stmt
The Envelope, which indexes statement header fields. It has 2 indexes (Statement-id, and namespace) and comes at a cost about the same as the statement table: about 400bytes/stmt
The Reference table, which relates statements to wki and has 2 indexes (Statement-id, wki). Cost is about 200 bytes/object

By using compound statements of 10, the cost per object is reduced to:

~130 bytes/object in the Statement table: statement size is increased by ~9x100 bytes for wki/object references, but we only need one statement per 10 objects)
~40 bytes/object in the Envelope table: we store 1/10th of the statements, with linear decrease in cost
~200 bytes/object in the References table; this doesn't depend on the number of statements, so it's unchanged

So the amortized cost is about 370 bytes/object, which is almost a 3-fold decrease in our space requirements.
This should bring the statement db storage down to the about same level as the datastore, and increases our capacity accordingly (for dual SSD setups).
Note that there is little point in further increasing the compound statement density -- a 100 statement grouping will result in saving maybe another 60 bytes/object at the cost of 10x increased client overhead.
The gains are negligible for any further compression.

Hmm what do you think is the added complexity of going up to a 100+ statement group size, versus 10? I find it a bit awkward to arbitrarily pick a size like 10 for something that's actually committed to the store.
Also, let's keep in mind the signing overheads, not just space savings.

Sorry, I meant client overhead (edited).
The group size issue is that you will have to fetch (and merge) 100 objects when you may only interested in 1.
And yes, signing overheads are important -- plus there is the verification cost that is reduced by the factor of the group size when merging large sets.

https://github.com/mediachain/aleph/pull/48 implements the requisite support in aleph.

There is a small ingestion performance improvement with compound statements.
Ingestion time for  4mm batch from flickr:
real    12m30.530s
user    82m32.192s
sys     0m51.676s

which is down about a minute.

Ingesting the 60mm flickr data set results in the following space usage:
$ du --si /mnt/ssd1/stmt /mnt/ssd2/data
25G     /mnt/ssd1/stmt
22G     /mnt/ssd2/data

So we have usage of about 4K per statement, with an amortized cost of about 417bytes/object.

Ingesting with c=100:
$ du --si /mnt/ssd1/stmt /mnt/ssd2/data
19G     /mnt/ssd1/stmt
22G     /mnt/ssd2/data

$ mcclient query "SELECT COUNT(*) FROM *"
600000

So with compound statements of 100 objects it comes at about 317 bytes/object.

We can expect another 50 bytes/object from the schema object dependency.

c=100 seems like a nice balance, feel good moving forward w/that

Ingestion with schema/c=100:
$ du --si /mnt/ssd1/stmt /mnt/ssd2/data
22G     /mnt/ssd1/stmt
23G     /mnt/ssd2/data

So it's inded 50 bytes/object, up to 367 bytes/object.


Add lndinit binary

Copied over code from https://github.com/lightningnetwork/lnd/pull/5150.
A docker image can be found at guggero/lnd-with-lndinit:v0.0.1-lnd-v0.14.2-beta-test2.

Thanks for the review, @bhandras! Addressed all comments and pushed a new image: guggero/lnd-with-lndinit:v0.1.0-lnd-v0.14.2-beta


modifying the libgen site connection url

The libgen.io website has changed its domain to libgen.is. For this reason, the library was unusable

Yeah, this is one of the main reasons I'm not really interested in maintaining this any more. libgen.io also seems to be down sporadically. You're free to maintain a public fork, or just patch my existing code in any way you see fit, privately.


fix(intellij): Use node interpreter to run commands

Summary
Fixes #404 - explanation
For windows the plugin need to use node interpreter to be able to run biome lsp-proxy and biome format
Fix for biome format for #402 - explanation
The biome format command was running  without cwd, now it's set to run on projects root
Test Plan

[x] UI Testing - Validate list of quickfixes

Thank you @victor-teles ! I would be nice to have a section in the CONTRIBUTING.md that explains a bit the UI testing and how a maintainer can run them locally

@ematipico
Thank you for the review
I'll update CONTRIBUTING.md and add the new README.md

By the way, the UI test did not work on my end with the following error.
I don't think this needs to be fixed right now, as fixing the bug is the first thing to do.
test result
16:13 🐧 ❯ ./gradlew test
Calculating task graph as configuration cache cannot be reused because the file system entry 'build/classes/kotlin/main/classpath.index' has been created.

> Configure project :
Kotlin DSL property assignment is an incubating feature.

> Task :test
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true

BasicProjectNpmTest > openQuickFixes(RemoteRobot) FAILED
    org.opentest4j.AssertionFailedError at BasicProjectNpmTest.kt:63

1 test completed, 1 failed

> Task :test FAILED

0 problems were found storing the configuration cache.

See the complete report at file:///Users/d002024/code/github.com/biomejs/biome/editors/intellij/build/reports/configuration-cache/517ysd6f9umxr929v0i5rmazs/dwau8wqkvt5e8qfxn26lff4zf/configuration-cache-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/d002024/code/github.com/biomejs/biome/editors/intellij/build/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.

BUILD FAILED in 19s
12 actionable tasks: 5 executed, 7 up-to-date
Configuration cache entry stored.

IDE error
2023-09-30 16:13:24,274 [  54437]   WARN - #c.i.o.v.i.l.LocalFileSystemBase - /dev/fd/20: Bad file descriptor
java.nio.file.FileSystemException: /dev/fd/20: Bad file descriptor
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
        at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148)
        at java.base/java.nio.file.Files.readAttributes(Files.java:1851)
        at com.intellij.openapi.util.io.NioFiles.readAttributes(NioFiles.java:177)
        at com.intellij.util.io.PlatformNioHelper.visitDirectory(PlatformNioHelper.java:54)
        at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.listWithAttributes(LocalFileSystemImpl.java:307)
        at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.lambda$new$0(LocalFileSystemImpl.java:49)
        at com.intellij.openapi.vfs.DiskQueryRelay.accessDiskWithCheckCanceled(DiskQueryRelay.java:45)
        at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.listWithCaching(LocalFileSystemImpl.java:274)
        at com.intellij.openapi.vfs.newvfs.RefreshWorker.partialDirRefresh(RefreshWorker.java:321)
        at com.intellij.openapi.vfs.newvfs.RefreshWorker.processQueue(RefreshWorker.java:185)
        at com.intellij.openapi.vfs.newvfs.RefreshWorker.lambda$parallelScan$0(RefreshWorker.java:121)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)

@nissy-dev Thank you very much for the review, I will address your points in another PR
I'll let you know when I open the PR


Question about apollo seg detect node

I am looking at the lidar segmentation detection node and was wondering if you could help me with the following questions:

How is the training done?
I see the models are in caffemodel format. Is there possibility of exporting to a different format? such as onnx or tensorflow.

Caffe-1 has not released new versions in 3 years and caffe-2 has been absorbed into pytourch. The support for this caffemodel format is dwindling in various frameworks.

@yukkysaito or @kosuke55 can you comment on this?

@LiyouZhou thank you for comment.

How is the training done?

The original Apollo didn't publish the training code, so we are currently working on the training code by trial and error
https://github.com/kosuke55/train_baiducnn

I see the models are in caffemodel format. Is there possibility of exporting to a different format? such as onnx or tensorflow.

The save format is caffe, but it is converted to tensorRT at runtime.
In the training code we are creating, we will save it in onnx format


RFP - sshfs-win

Checklist

[x] The package I am requesting does not already exist on https://chocolatey.org/packages;
[x] There is no open issue for this package;
[x] The issue title starts with 'RFP - ';
[x] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL : https://github.com/billziss-gh/sshfs-win
Direct download URL for the software / installer : https://github.com/billziss-gh/sshfs-win/releases/download/v3.7.21011/sshfs-win-3.7.21011-x64.msi
Software summary / short description: SSHFS For Windows

Just a comment:  sshfs-win is dependent on winfsp which already has a package maintained by @billziss-gh, the author of both applications.  It may be worth asking them to take ownership and maintenance the package.

The package already exists here: https://community.chocolatey.org/packages/sshfs

Thanks for checking that.


pip-tools should have to be installed once, globally, not pip-install it every time

Can it be installed globally?
Because it seems to want to remove my global packages when I run pip-sync inside my virtualenv!


Multiple remote subscribes result in duplicate callback evals

If a datastore subscribes to a remote datastore multiple times (same path, multiple callbacks), then when the remote store calls .set it results in both local callback functions getting called twice. Here's an example:
let parent=new Entangld();
let child=new Entangld();

parent.attach("child",child);

parent.transmit((msg, store)=>store.receive(msg,parent));
child.transmit((msg, store)=>store.receive(msg, child));

// Attach first subscribe:
var call_count_1 = 0;
parent.subscribe('child.value', (path,value) => { call_count_1 += 1; console.log(`Sub 1 called for ${call_count_1}th time`) })
var call_count_2 = 0;
parent.subscribe('child.value', (path,value) => { call_count_2 += 1; console.log(`Sub 2 called for ${call_count_2}th time`) })

setTimeout(() => {
  child.set("value",0)
}, 50);

The output in the current version is:
Sub 1 called for 1th time
Sub 2 called for 1th time
Sub 1 called for 2th time
Sub 2 called for 2th time

so that both callbacks are called twice. I think that the correct functionality should either be:

Both subscribes get called once:

Sub 1 called for 1th time
Sub 2 called for 1th time

Only the last subscribe gets called once:

Sub 2 called for 1th time

The former seems more consistent wit the rest of the package.

See PR #7


maybe can extended collision results

Can you consider increasing the collision detection result?
like:
longest axis of overlap
Cross-sectional area

And contact points


Implement I/O-safe traits

This PR implements AsFd and AsSocket for Async<T>. In addition, TryFrom<OwnedFd/OwnedSocket is implemented for Async<T> and TryFrom<Async<T>> is implemented for OwnedFd/OwnedSocket, in order to mirror the From/Into<OwnedFd/OwnedSocket> impls in std but also considering that the operations are fallible in async-io.
See also: sunfishcode/io-lifetimes#38

Published in 1.8.0.


Compression format COMPRESSION_FORMAT_XPRESS_HUFF issue

Somehow the compression format COMPRESSION_FORMAT_XPRESS_HUFF does not work properly either during compression or decompression.
I'm getting always C00000E8: STATUS_INVALID_USER_BUFFER.
Is there a bug with that format?
COMPRESSION_FORMAT_LZNT1 and COMPRESSION_FORMAT_XPRESS are working properly with same code.

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

ID: 5553dc31-7364-ae5d-ff4d-bf1a1757bff8
Version Independent ID: ca77dfd1-7d40-8240-125a-d02291684cb0
Content: RtlCompressBuffer function (ntifs.h) - Windows drivers
Content Source: wdk-ddi-src/content/ntifs/nf-ntifs-rtlcompressbuffer.md
Product: windows-hardware
GitHub Login: @lorihollasch
Microsoft Alias: loriwhip

If you want to see the code, here the link: https://www.freebasic.net/forum/viewtopic.php?f=6&p=259395#p259395

Ok, it is not a bug, rather my ignorance to read RtlDecompressBuffer function carefully.
RtlDecompressBuffer function does not support the decompression of COMPRESSION_FORMAT_XPRESS_HUFF compressed data - only RtlDecompressBufferEx function does.

@U-E-Z , glad you got it figured out! :)


⚠ GitLab Server has degraded performance

In 5afec74, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 12662 ms

Resolved: GitLab Server performance has improved in b4fe98a.


support for json (or other?) grammar?

llama.cpp now supports grammars:
https://til.simonwillison.net/llms/llama-cpp-python-grammars
Is that something that will come to candle?
It sounds like the approach taken in this python library would be straight forward:
https://github.com/1rgs/jsonformer/blob/main/jsonformer/main.py
Basically, since you know the JSON schema, you return appropriate LLM tokens for structure based on control flow, and constrain logit output for typed value situations.
I started to work on this approach in a demo codebase... I'll report back on any progress.
Curious to hear from others about how feasible the approach is.

👋 I wrote a implementation of constrained sampling with candle here that might be useful as a reference. Here are a few things I found important:

Parsing must be incremental if you want to get reasonable speeds for longer sequences (This makes FSM a good choice)
You can accelerate text generation by eagerly sampling the grammar and feeding the required next tokens into the LLM in one batch instead of one token at a time

@lucasavila00
It would be great if you could implemented your model grammar work via BNF into Candle


[boost-cobalt] Build error on x64-windows-static

Package<EMAIL_ADDRESS>Host Environment

Host: x64-windows
Compiler: MSVC 19.29.30154.0
vcpkg-tool version: 2024-08-01-fd884a0d390d12783076341bd43d77c3a6a15658
vcpkg-scripts version: a2367ceec 2024-08-06 (6 hours ago)

To Reproduce
vcpkg install
Failure logs
-- Using cached boostorg-cobalt-boost-1.85.0.tar.gz.
-- Cleaning sources at D:/lib/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/lib/vcpkg/downloads/boostorg-cobalt-boost-1.85.0.tar.gz
-- Using source at D:/lib/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j9
    Working Directory: D:/lib/vcpkg/buildtrees/boost-cobalt/x64-windows-static-dbg
    See logs for more information:
      D:\lib\vcpkg\buildtrees\boost-cobalt\install-x64-windows-static-dbg-out.log
      D:\lib\vcpkg\buildtrees\boost-cobalt\install-x64-windows-static-dbg-err.log

Call Stack (most recent call first):
  S:/Sophus/bin/.build/cmake/Release/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  S:/Sophus/bin/.build/cmake/Release/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  S:/Sophus/bin/.build/cmake/Release/vcpkg_installed/x64-windows/share/vcpkg-boost/boost-install.cmake:65 (vcpkg_cmake_install)
  buildtrees/versioning_/versions/boost-cobalt/2c39cef923bb54a5c8230dea5b7d72586f4d67ec/portfile.cmake:12 (boost_configure_and_install)
  scripts/ports.cmake:192 (include)

D:\lib\vcpkg\buildtrees\boost-cobalt\install-x64-windows-static-dbg-err.log
ninja: error: unknown target 'install'

D:\lib\vcpkg\buildtrees\boost-cobalt\install-x64-windows-static-dbg-out.log
Change Dir: 'D:/lib/vcpkg/buildtrees/boost-cobalt/x64-windows-static-dbg'

Run Build Command(s): "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j9 install

Additional context
vcpkg.json
{
  "builtin-baseline": "a2367ceec5f092d8777606ca110426cadd7ed7db",
  "dependencies": [
    {
      "name": "grpc",
      "features": [
        "codegen"
      ]
    },
    "protobuf",
    "boost"
  ],
  "overrides": [
    {
      "name": "grpc",
      "version": "1.60.0"
    },
    {
      "name": "protobuf",
      "version": "4.25.1"
    },
    {
      "name": "boost",
      "version": "1.84.0"
    }
  ]
}

@pavel-cpp looks like your compiler toolchain does not me the libarary prerequisites:

This library is supported since Clang 14, Gcc 10 & MSVC 19.30 (Visual Studio 2022).

if(MSVC_VERSION AND MSVC_VERSION LESS 1930)
    message(STATUS "Boost.Cobalt: not building, the lowest supported MSVC version is 1930.  ${MSVC_VERSION} is not supported")
    return()
endif()

Similar: https://github.com/microsoft/vcpkg/issues/40290#issuecomment-2269639431

@pavel-cpp looks like your compiler toolchain does not met the libarary prerequisites:

This library is supported since Clang 14, Gcc 10 & MSVC 19.30 (Visual Studio 2022).

if(MSVC_VERSION AND MSVC_VERSION LESS 1930)
    message(STATUS "Boost.Cobalt: not building, the lowest supported MSVC version is 1930.  ${MSVC_VERSION} is not supported")
    return()
endif()

I'm trying to build boost 1.84.0 which is compatible with my compiler, why does this package pull the boost 1.85.0 libraries?

1.85 is the version specified in the boost port json file
c:\Dev\vcpkg\ports\boost\vcpkg.json
BTW, I don't know if it's possible to use vcpkg and ask for older versions?...

I'm trying to build boost 1.84.0 which is compatible with my compiler, why does this package pull the boost 1.85.0 libraries?

@pavel-cpp The vcpkg.json overrides the version of the boost meta-port. But the failing port is boost-cobalt`. If you don't pin the version of that port, you might get a newer version.

I don't know if it's possible to use vcpkg and ask for older versions?

@greenozon Manifest mode allows to control versions. https://learn.microsoft.com/en-us/vcpkg/users/versioning

I'm trying to build boost 1.84.0 which is compatible with my compiler, why does this package pull the boost 1.85.0 libraries?

@pavel-cpp The vcpkg.json overrides the version of the boost meta-port. But the failing port is boost-cobalt. If you don't pin the version of that port, you might get a newer version.

@dg0yt Don't you find it strange that a package of an older version has dependencies on packages of a newer one? So you're suggesting that we go through all the boost dependencies and select compatible versions at random?

How do I specify a specific version of a package and make it take dependencies that are compatible with its version?

@pavel-cpp   you could find more info here
https://learn.microsoft.com/en-us/vcpkg/consume/boost-versions

@pavel-cpp you could find more info here https://learn.microsoft.com/en-us/vcpkg/consume/boost-versions

@greenozon I don't really understand where I should get the baseline version of boost 1.84.0#1 for each of the packages, in principle, the use of such a hike is not very obvious. As a user, I want to specify the package version and get it, if I want to put a restriction that the library version must be >= I will specify it, but how am I supposed to guess that I need to specify some abstract baseline? Totally not a user friendly approach.

And how do I use these baselines for other packages, because oin is also subject to the fact that in a couple of years I will not be able to download the version I need, because its dependencies will be newer

It might be difficult to form a neutral answer to a suggestive question.

Don't you find it strange that a package of an older version has dependencies on packages of a newer one?

I would find that strange indeed. Fortunately, it is not the case. boost 1.84 depends on boost-cobalt 1.84 or newer. It is not so strange that new versions can satisfy minimum version requirements. AFAICS boost-cobalt 1.85 is compatible with boost 1.84. That's not the problem.

So you're suggesting that we go through all the boost dependencies and select compatible versions at random?

No. I suggest you select specific versions where you actually see a problem. So boost-cobalt and boost. That's just two ports. (I acknowledge that you can't choose 1.84 for boost-cobalt without choosing 1.84 for boost. That's the downside of the >= version constraints in port boost.)
The real problem is a combination of boost-cobalt 1.85 having higher compiler requirements than most ports (maybe higher than boost-cobalt 1.84), and of failing to meet the requirement resulting in a poor UX with the vcpkg port because boost-cobalt simply decides to silently create no build/install steps instead of reporting a clear error during configuration.
And the question from here is how to improve that UX.
If you don't need boost-cobalt, and don't need most other boost ports, it might be better to not install the boost meta-port but the individual components which are relevant.

@dg0yt
Sorry for being too rude in my previous posts.
I think as a vcpkg user I would like to see the following changes:

So that the project in manifest mode does not clutter up CMakeCache, but pulls dependencies from buildtrees
So that you don't have to use the overrides zone to determine a specific package version
So that vcpkg downloads dependencies compatible with my port + we have dependencies that require boost-1.84 modules and maybe the boost 1.84.0 package itself can use dependencies from boost 1.85.0, but our project does not support them and this creates a lot of problems, I would like to work on our project, and not rewrite parts of the project because boost has decided to release an update.

Maybe I'm not very experienced in using vcpkg, if this is the case, you can help with writing the manifest that I attached above and fix the current versions of libraries + add boost 1.84.0

I'm only a contributor, so don't expect official answers.

So that the project in manifest mode does not clutter up CMakeCache, but pulls dependencies from buildtrees

I might misunderstand some items, but I guess the answer is No.
IMO "Buildtrees" are cluttered, and only available when dependencies are really being built instead of being installed from artifact cache.
What manifest mode promises to deliver - an exact solution to the given manifest - can only be done in an installation tree which considers the manifest and the cmake configuration. This is well placed in the CMake binary dir.

So that you don't have to use the overrides zone to determine a specific package version

Overrides is precisely for the case when you really need a specific version of package. You have to declare this in some way.

... boost ...

It is not an easy example. boost is not "one" package. It is a meta-port which depends on the individual packages, in some cases even subject to platform expressions.
To pin (nearly) all boost ports to a specific version, the tutorial at https://learn.microsoft.com/en-us/vcpkg/consume/boost-versions#2---use-a-baseline-to-override-boost-packages shows the suggested solution: Using a second registry entry with the desired boost baseline revision together with suitable package name patterns (boost*).

@dg0yt Thank you so much for your answer, it's a pleasure to communicate with you. When I first started using vcpkg, I thought it was an analog of pip, only for C++, but apparently this is not so, I think now you understand my expectations from the package manager, I really hope that the UX of vcpkg will one day come closer to pip. While I have found an excellent analog that allows you to specify the exact version of the package and install it without any problems, I will try to use Conan, if it is worse, then I do not know what to do(


Printing incorrect Date in method didSelectDate

When I try to print the user selected date within the below function, I get a date 1 day lesser than the selected date. This happens even in the calendar tutorial examples
Please suggest, How I could fix this issue ?
func calendar(_ calendar: JTAppleCalendarView, didSelectDate date: Date, cell: JTAppleDayCellView?, cellState: CellState) {
        handleCellSelection(view: cell, cellState: cellState)
        handleCellTextColor(view: cell, cellState: cellState)
        selectedDate.text = String(describing: date)
        print("Date \(date)")
    }

Date is correct.
You just need to format it.
Let me know if the following helps you --> https://github.com/patchthecode/JTAppleCalendar/issues/252
When dealing with Dates, printing it to the console will give you incorrect results depending on your timeZone. Never simply print a date. The correct way to handle dates is to use DateFormatters if you want the correct date printed to console.

If you still need help on this, I'll be available in the morning.

Thanks again, I got it working by using the below code:
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZZZZZ"
print("printing current Date\(formatter.string(from: date))")


SLC, UT

Please add Salt Lake City, UT!

SLC has a template in an open PR (#124). Please review that and comment with anything that's not correct, you think should be changed, or needs to be added.

Closing this out to de-duplicate, but thank you!
Thanks @cstrouse for the PR – we'll take a look today!


fix: typo in import

Hey, I think it worked for you before perhaps because you're on OSX, where the filesystem is case insensitive. On Linux, the build fails.

Thanks for the fix!


Fixed issued found in list-kubernetes-clusters and list-kubernetes-hosts CLI commands

Fixed issued found in list-kubernetes-clusters and list-kubernetes-hosts CLI commands

Thanks for the fix @dinithis! I have now merged this master branch.


Restart containers on boot

It would be nice if there was a feature to restart containers on boot under the container tab.

AFAIK Docker does not allow changing the restart policy of an existing container. You'd have to start a new one. In which case it would be nice if dockerui had the restart policy option included in the "Create And Start Container From Image" dialog.

Restart policy should be implemented already, see here

@kevana Thanks! However for some reason I don't see it in the actual UI or in the controller...  (running 0.8.0 beta)

That's odd...

Fix should be in the latest 0.8.0-beta image on the hub if you'd like to verify.


Update some docs about service broker

Signed-off-by: leonwanghui<EMAIL_ADDRESS>
What this PR does / why we need it:
The installation and test script of service broker is out of date, so I updated these docs according to the latest version of service catalog.
Which issue this PR fixes:
Special notes for your reviewer:
Release note:

lgtm


respect user's curlrc file

Users may have ~/.curlrc file to include options like proxies.
However, since we overwrite HOME environment variable during the build
and test, curl won't be able to find it.
This commit solves this issue by using CURL_HOME environment variable,
which will be pointed to the original HOME path.
From curl(1):

curl tries to find the "home dir": It first  checks  for  the
CURL_HOME and then the HOME environment variables. Failing that,
it uses getpwuid() on Unix-like systems (which returns the  home
dir  given the current user in your system). On Windows, it then
checks for the APPDATA variable, or as a last resort the '%USER-
PROFILE%\Application Data'.

👍


Detect symbolic links to md files

Hi,
I'm migrating from Drupal. Everything is fine, except that in Drupal it is possible to have many links pointing to the same page.
I have created different symbolic links to the same md file, in order to preserve the links I had before. The problem is that on the main blog page, that lists all my posts, it is listing duplicates. It is considering both the real file and the symlink. Is there a way to detect symbolic links, in order to avoid duplicates?

Can this be merged with #252? @PhrozenByte

No @theshka, unfortunately this isn't that easy.  This is no generic solution. One could use symlinks for different reasons, e.g. providing contents that are stored in a users home directory. We must validate that the symlink really is a duplicate (symlinks can cascade, it's not just a single in_array()) and then provide a way to exclude this page safely (we can't just remove it from $pages, this would break Pico::discoverCurrentPage()). Imho the use case doesn't justify the added complexity. Anyway, it's still possible to implement this as a plugin...

Okay, thanks for the clarification.

Thank you for the efforts.
I have changed my Pico to inform when a page is a symlink. Then on my theme I only list the pages that are not.
But I agree with @PhrozenByte when he says this is better suited to be on a Plugin. I will transform this change into a plugin.

Modify Pico to inform if a page is a link is easy. I have added something like
$data['symlink'] = is_link($page);

Inside get_pages method. It works fine. The problem is. I can't find an easy way to implement this as a plugin. The hook get_page_data don't have the $page. To use the get_pages hook seems like an overkill, since I would have to recalculate the key for $sorted_pages and that require rebuild $page_meta


feat: add core mainnet

Fixes https://linear.app/uma/issue/UMA-2392/add-core-to-osnapsafesnap-plugins-in-snapshot
Changes in this PR: adds Core mainnet to both oSnap and safeSnap plugins
There are still couple of outstanding issues for adding Core support:

Safe app links in both oSnap/safeSnap tx builder does not work as Core Safe app instance does not support safe externally
Transaction builder is not able to automatically fetch contract ABI since Core chain explorer requires API key to fetch that.
Transaction builder fails to load token/NFT balances for Core as Covalent service does not support Core network: https://www.covalenthq.com/docs/networks/

How to test and review this PR?
Fixes: https://linear.app/uma/issue/UMA-2410/point-cordao-treasury-links-to-coredao-safe-app

prd here https://github.com/snapshot-labs/snapshot/pull/4575


Building on MacOS 10.15 not compatible with older OS

Is your feature request related to a problem?
When building with hover build darwin the binary produced is not compatible with MacOS versions below 10.15.
Describe the feature you'd like
It looks like the clang compiler on 10.15 requires a flag to build for older versions of MacOS. The flag is CGO_CFLAGS=-mmacosx-version-min=10.8. I'm unsure if the linker needs this flag as well, I believe it may. I tried exporting this before a build but I believe hover is superseding the env.
https://github.com/go-flutter-desktop/hover/blob/master/cmd/build.go#L469
If you try otool -l go/build/outputs/darwin/outputBinary you will notice:
platform 1
       sdk 10.15.4
     minos 10.15

Is there currently a way to pass through additional flags? If not and we can come to an agreement on implementation we could most likely get a PR together for it.

Currently there is no way for passing flags (I believe), but the flag should definitely be added.

Would it make sense to live in hover.yaml?

I would just directly put it into hover, because the flag seems to be needed for compatability so everyone should get the fix. Just put it here: https://github.com/go-flutter-desktop/hover/blob/master/cmd/build.go#L460
Can you try that and make a PR if it works?

I'm not sure if there is a usecase for custom compiler flags. If then we could add a field in hover.yaml and add a flag to build/run.

You're right. Assuming it doesn't cause any errors for older versions of clang it should be fine. I just sent a PR to the hover repo.
https://github.com/go-flutter-desktop/hover/pull/133
Tested builds on MacOS 10.14 and 10.13 and they worked well.
Thanks for the great tool!


If you have both "Gyazo" and "Gyazo Teams" extensions, markdown paste option give you redundant result

Install both "Gyazo" and "Gyazo Teams" extensions.
Keep Replace Gyazo's URL to markdown style when it's pasted. check on for both extensions.
Paste a Gyazo URL, you will get;
[![Screenshot from Gyazo](https://gyazo.com/f4fe013fa85328c657292aff4e2990e1/raw)](https://gyazo.com/f4fe013fa85328c657292aff4e2990e1)[![Screenshot from Gyazo](https://gyazo.com/f4fe013fa85328c657292aff4e2990e1/raw)](https://gyazo.com/f4fe013fa85328c657292aff4e2990e1)
, but you expect;
[![Screenshot from Gyazo](https://gyazo.com/f4fe013fa85328c657292aff4e2990e1/raw)](https://gyazo.com/f4fe013fa85328c657292aff4e2990e1)

I think just change Gyazo Teams extension to match only teams urls like https://nota.gyazo.com/f4fe013fa85328c657292aff4e2990e1 may suffice.


4.0/exchange store: introduce tracking points

While this hasn't been completely implemented, the last work is a major step. Closing anyways, because the issue is just too old.


Test merge branch

Test merge branch

123456

I have followed the steps in merge tada. Can you merge my branch into it?


no need to use --wait

@bpasero I remember why I had this flag, I was using code-cli.sh while running perf tests against OSS. But I shall use code.sh.


Best practice on using grocer for large scale push notifications

I need to send notifications to a large number of devices (> 100K scaling to 1M). These notifications are triggered from client interaction with server side objects. Obviously I can't send these out inline so I'm looking at solutions to send the notifications asynchronously (e.g. sidekiq or delayed job). Are there existing best practices for achieving this with Grocer?

Hello @ebalassanian,
That is basically the same use case we had when we originally built Grocer. We had a large number of iOS clients and a Rails app. The Rails app would send notifications via Grocer, in a Resque job. Grocer has no dependencies on Rails nor any specific background job library. It's just Ruby and so can be integrated with any of those libraries.

I'm closing this for now. Please re-open if you have specific questions.


Swashbuckle CLI lacks support for minimal APIs with .NET 6

We're trying out various Swashbuckle-enabled scenarios with the upcoming Minimal APIs feature, and noted that it appears to not work out-of-the-gate with the new style of development.
I created a basic minimal API, then added Swashbuckle to it and got both the OpenAPI description and Swagger UI working using the following code with the RC1 preview bits.
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(c =>
{
    c.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo
    {
        Title = "Minimal API",
        Version = "v1"
    });
});

var app = builder.Build();

if (app.Environment.IsDevelopment())
{
    app.UseDeveloperExceptionPage();
    app.UseSwagger();
    app.UseSwaggerUI();
}

app.MapGet("/", () => "Hello World!");

app.Run();

Things work fine in the "run" scenario. Yet, when I execute the CLI command as such:
swagger tofile --host https://localhost:5001 MinimalWithSwashbuckle.dll v1

I get an error indicating that the code would need a Startup class to interrogate to work.
Unhandled exception. System.InvalidOperationException: A type named 'StartupProduction' or 'Startup' could not be found in assembly 'MinimalWithSwashbuckle'.
   at Microsoft.AspNetCore.Hosting.StartupLoader.FindStartupType(String startupAssemblyName, String environmentName) in Microsoft.AspNetCore.Hosting.dll:token 0x6000136+0x14c
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors) in Microsoft.AspNetCore.Hosting.dll:token 0x6000189+0x2de
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass14_2.<BuildCommonServices>b__5(IServiceProvider _) in Microsoft.AspNetCore.Hosting.dll:token 0x6000289+0x0
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) in Microsoft.Extensions.DependencyInjection.dll:token 0x6000094+0x0
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) in Microsoft.Extensions.DependencyInjection.dll:token 0x60000a6+0x23
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) in Microsoft.Extensions.DependencyInjection.dll:token 0x600008e+0x61
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) in Microsoft.Extensions.DependencyInjection.dll:token 0x60000a5+0x4e
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) in Microsoft.Extensions.DependencyInjection.dll:token 0x600008b+0x26
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType) in Microsoft.Extensions.DependencyInjection.dll:token 0x6000068+0x38
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) in System.Collections.Concurrent.dll:token 0x60000d3+0x4f
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) in Microsoft.Extensions.DependencyInjection.dll:token 0x6000066+0xd
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) in Microsoft.Extensions.DependencyInjection.dll:token 0x6000061+0x0
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) in Microsoft.Extensions.DependencyInjection.Abstractions.dll:token 0x6000094+0xe
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureStartup() in Microsoft.AspNetCore.Hosting.dll:token 0x600014b+0x9
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices() in Microsoft.AspNetCore.Hosting.dll:token 0x600014a+0x8
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize() in Microsoft.AspNetCore.Hosting.dll:token 0x6000147+0x0
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() in Microsoft.AspNetCore.Hosting.dll:token 0x6000188+0x9a
   at Swashbuckle.AspNetCore.Cli.Program.GetServiceProvider(Assembly startupAssembly) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 133
   at Swashbuckle.AspNetCore.Cli.Program.<>c.<Main>b__0_3(IDictionary`2 namedArgs) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 72
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 68
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 59
   at Swashbuckle.AspNetCore.Cli.Program.Main(String[] args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 111

@domaindrivendev I was chatting with @captainsafia @brennanconroy and @davidfowl about this and we're prepared to create a PR but just wanted to make sure we know what you'd expect. Proposing a list below.

[ ] actual coding work completed to fix the issue
[ ] updates to docs in this repository (like the readme.md, etc.) if there are any impacts to existing use cases that impact existing customers
[ ] tests to make sure the existing scenario (Web API with Controllers with .NET Core) continue to work
[ ] tests to make sure the new scenario (minimal APIs) work

Let us know if this is accurate and we'll get on it. As well, we'd like to know an expectation on turnaround time once the PR comes in as we're trying to ready this against other items and would appreciate it if you could give us an expectation.
As always, we appreciate the support.

Sounds good @bradygaster 👍

Is there a temporary workaround for this to start generating clients again for Net 6 Minimal APIs?

It should work now

I am already using 6.2.3 and this all used to work until I added the following line in my code, after which it failed with the same exception as mentioned by the original poster:
builder.Configuration.AddAzureKeyVault(
        new Uri($"https://{builder.Configuration["keyvault:name"]}.vault.azure.net/"),
        new DefaultAzureCredential());

I am using .NET 6 top level statements template but with a full blown API. Does anyone have any ideas?

After some digging I figured out the problem. Even though the error is the same, the root cause is unrelated. I'll create a separate issue for it and link it here after I have done so.

I just ran into this exact same problem and I'm not using minimal APIs: this appears to be an issue related to the simplified top-level program setup.
Upon running the cmd against my DLL, I get an error instantaneously:
dotnet swagger tofile --output c:\sample.json {pathToMyAssembly} v1

Unhandled exception. System.InvalidOperationException: A type named 'StartupProduction' or 'Startup' could not be found in assembly '{myAssembly}'.
   at Microsoft.AspNetCore.Hosting.StartupLoader.FindStartupType(String startupAssemblyName, String environmentName)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass14_2.<BuildCommonServices>b__5(IServiceProvider _)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureStartup()
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Swashbuckle.AspNetCore.Cli.Program.GetServiceProvider(Assembly startupAssembly) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 145
   at Swashbuckle.AspNetCore.Cli.Program.<>c.<Main>b__0_4(IDictionary`2 namedArgs) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 82
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 68
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 59
   at Swashbuckle.AspNetCore.Cli.Program.Main(String[] args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 121

Just to see what would happen, I created an empty Startup class somewhere with a void Configure method. Then, this is what I get after running the command again (seems like it really is looking for a startup class there):
Unhandled exception. System.InvalidOperationException: No service for type 'Swashbuckle.AspNetCore.Swagger.ISwaggerProvider' has been registered.
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Swashbuckle.AspNetCore.Cli.Program.<>c.<Main>b__0_4(IDictionary`2 namedArgs) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 82
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 68
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 59
   at Swashbuckle.AspNetCore.Cli.Program.Main(String[] args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 121

I'm using version 6.3.1 of the CLI package.
I need to obtain the swagger doc during my pipeline build to update Azure API Management. Any help is appreciated.

Is everything updated to the latest? .NET 6 and swashbuckle?

Updated to the latest. It's working now, Thanks a lot

Is everything updated to the latest? .NET 6 and swashbuckle?

Updated to the latest. It's working now, Thanks a lot

This is a very confusing error. In my real problem was also unrelated, just an error while launching swagger with a different environment (missing config values).
Assume that the problem is not with swagger:

check that the app can launch
check that it can launch with the environment setting you use for swagger

The issue still occurs with .NET 6. Created a very simple .NET 6 API with swagger. All nuggets are the latest. And created a default publish profile with GitHub actions.
It fails in step: Generate open api specification
Here's the error:
Run swagger tofile --output "X/publish/swagger.json" "SimpleIp/bin/Release/net6.0/X.dll" "v1"
Unhandled exception. System.InvalidOperationException: A type named 'StartupProduction' or 'Startup' could not be found in assembly 'SimpleIp'.
at Microsoft.AspNetCore.Hosting.StartupLoader.FindStartupType(String startupAssemblyName, String environmentName)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass14_2.b__5(IServiceProvider _)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at Microsoft.AspNetCore.Hosting.WebHost.EnsureStartup()
at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Swashbuckle.AspNetCore.Cli.Program.GetServiceProvider(Assembly startupAssembly) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 133
at Swashbuckle.AspNetCore.Cli.Program.<>c.b__0_3(IDictionary2 namedArgs) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 72    at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 68
at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 59
at Swashbuckle.AspNetCore.Cli.Program.Main(String[] args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 111
Error: Process completed with exit code 1[34]

Should this thread be closed? Running into the same issues on .Net 7.0
System.InvalidOperationException: A type named 'Startuplocalhost' or 'Startup' could not be found in assembly 'MarketCarpenter-6'.
   at Microsoft.AspNetCore.Hosting.StartupLoader.FindStartupType(String startupAssemblyName, String environmentName)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.ScanAssemblyAndRegisterStartup(ServiceCollection services, String startupAssemblyName)

cc @captainsafia FYI

The dotnet new webapi command creates a project file with an outdated Swashbuckle.AspNetCore reference. That's where the error is coming from. Just updated it to the same version with the tool (6.5.0 atm.) and everything is working fine.
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <RootNamespace>web_api</RootNamespace>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
  </ItemGroup>

</Project>

The dotnet new webapi command creates a project file with an outdated Swashbuckle.AspNetCore reference. That's where the error is coming from. Just updated it to the same version with the tool (6.5.0 atm.) and everything is working fine.

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>

    <TargetFramework>net6.0</TargetFramework>

    <Nullable>enable</Nullable>

    <ImplicitUsings>enable</ImplicitUsings>

    <RootNamespace>web_api</RootNamespace>

  </PropertyGroup>

  <ItemGroup>

    <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />

  </ItemGroup>

</Project>

@nkoudelia Can you open a bug on the ASP.NET Core repo for this? We can see about patching the 6.0 templates to pick up the fixed package version.

Even though I'm using "Swashbuckle.AspNetCore" Version="6.5.0" and having a tool version 6.5.0 I'm getting the error.
Unhandled exception. System.InvalidOperationException: A type named 'StartupProduction' or 'Startup' could not be found in assembly 'Presentation.WebApi'

Any update on this?

I've opened https://github.com/dotnet/aspnetcore/pull/47860 to update the version of the package referenced in the .NET 6 templates to the latest release. This should resolve the issue. If there are any problems happening that aren't resolved by updating the latest version, filing an ew issue would be helpful so we can track it down.

This also should be updated in the GitHub Actions template under the environment variable SWASHBUCLE_ASPNET_CORE_CLI_PACKAGE_VERSION:
Set it to 6.5.0 if anyone is looking for the solution to the same issue running GitHub actions.

I just ran into this exact same problem and I'm not using minimal APIs: this appears to be an issue related to the simplified top-level program setup.
Upon running the cmd against my DLL, I get an error instantaneously:
dotnet swagger tofile --output c:\sample.json {pathToMyAssembly} v1

Unhandled exception. System.InvalidOperationException: A type named 'StartupProduction' or 'Startup' could not be found in assembly '{myAssembly}'.
   at Microsoft.AspNetCore.Hosting.StartupLoader.FindStartupType(String startupAssemblyName, String environmentName)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.<>c__DisplayClass14_2.<BuildCommonServices>b__5(IServiceProvider _)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureStartup()
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at Swashbuckle.AspNetCore.Cli.Program.GetServiceProvider(Assembly startupAssembly) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 145
   at Swashbuckle.AspNetCore.Cli.Program.<>c.<Main>b__0_4(IDictionary`2 namedArgs) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 82
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 68
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 59
   at Swashbuckle.AspNetCore.Cli.Program.Main(String[] args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 121

Just to see what would happen, I created an empty Startup class somewhere with a void Configure method. Then, this is what I get after running the command again (seems like it really is looking for a startup class there):
Unhandled exception. System.InvalidOperationException: No service for type 'Swashbuckle.AspNetCore.Swagger.ISwaggerProvider' has been registered.
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Swashbuckle.AspNetCore.Cli.Program.<>c.<Main>b__0_4(IDictionary`2 namedArgs) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 82
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 68
   at Swashbuckle.AspNetCore.Cli.CommandRunner.Run(IEnumerable`1 args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\CommandRunner.cs:line 59
   at Swashbuckle.AspNetCore.Cli.Program.Main(String[] args) in C:\projects\ahoy\src\Swashbuckle.AspNetCore.Cli\Program.cs:line 121

I'm using version 6.3.1 of the CLI package.
I need to obtain the swagger doc during my pipeline build to update Azure API Management. Any help is appreciated.
EDIT:
As per what @jvos-priva above mentioned, it appears that exceptions in the setup are causing this package to raise unrelated errors.... after adding System.Diagnostics.Debugger.Launch to my startup, I can see it is trying to obtain production settings and throwing a InvalidOperationException.
It seems to be hosting the API in default production mode, which causes appsettings.Production.config to be read... my app doesn't have all production settings in that file, some of the settings come through the hosting environment through environment variables in Azure.
How am I supposed to run this without forcing production mode? I don't see any flags in the tool help to change it.
EDIT 2:
Ok, I made it work by temporarily replacing a configuration.GetRequiredSection call with configuration.GetSection. After that, it was a only a matter of running the tool from the correct folder and it worked. I was running the tool from the solution root instead of the actual API project root, meaning it wasn't even loading my appsettings.json properly and causing other errors (I assume it hosts considering the callsite as the main folder, so if no config files exist at that level, nothing is loaded).
Not happy with the fact that I had to make my code more brittle however... the GetRequiredSection call was there for a purpose: to warn me in case configuration values were missing during startup. Oh well... I'll have to rethink some of this.

This was exactly my problem.
2 workarounds:

As you suggested, use GetSection instead of GetRequiredSection
Create a appsettings.Production.json file (appsettings.Prod does not work)

This is a bit clunky either way, I would expect alot of people want to use GetRequiredSection in their Program.cs
It's the same issue with Nswag btw.

Why is this issue closed?
This issue still persists using the latest versions (6.5.0) of both the CLI package and the ASP.NET Core package on .NET 7.0

Sorry to lay it on thick. it is for a roadmap question.
I've been in this exact situation of this thread on .net 7.0.
As mentionned earlier, we have implemented Startup.cs and Program.cs as it was on .net core 3.1 (see below).
    public class Startup
    {
        public IConfiguration Configuration { get; }
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;
        }

        public void ConfigureServices(IServiceCollection services)
        {
            // Add services to the container.
            services.AddControllers();

            //Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
            services.AddEndpointsApiExplorer();
            services.AddSwaggerGen(option =>
            {
                // Use options as you need
            });
        }

        public void Configure(WebApplication app, IWebHostEnvironment env)
        {
           // Do thing
        }
    }

I've seen that in 2019 sverrirs explain another way to resolve this issue :  https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/356#issuecomment-566449902
I think a lot of person fall in this same issue (that have solutions, as mention on this thread and https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/356 thread).
Is there a roadmap to resolve this issue without add extra code ?
Thanks.
Samuel

Don't suppose there's any movement on this? I'm still seeing it on 6.5.0 and 6.8.0 with .net8

@MitchellW-DWL https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2168#issuecomment-1520497113


Webhook union type missing org membership hooks

This union doesn't contain OrganizationMembership{Created,Updated,Deleted} so the library parses the body into an UntypedWebhook.
https://github.com/workos/workos-python/blob/ae0c61da7ccd64df79e58b4160f407be071f2004/workos/types/webhooks/webhook.py#L240-L281

Hey @gatesn - thanks for the report. Will put out a release to fix this shortly.

This has been fixed in version 5.4.3. Thanks again!


Use raft state in placement

Description
This PR is to use the state (dapr runtime host list and consistent hashing table) maintained by Raft consensus algorithm and include following improvements:

Batched table dissemination instead of disseminate hashing tables to runtimes immediately.

improve runtime and placement service stability.

Split runtime connection from runtime membership.

When there is intermittent failures between placement and Dapr runtime, placement will not delete host from the membership and update consistent hashing table immediately.

Whenever runtime sends heartbeat to placement, placement records the latest heartbeat timestamp.

Placement will remove the member from membership and update tables only when the last heartbeat timestamp is outdated. But if runtime disconnects the connection from placement gracefully, then it will remove the member from membership in the next flush tick.

Next work:

[ ] dapr runtime will disconnect the connection from placement gracefully when it gets exit signal.
[ ] dapr runtime can connect to leader of multiple placement instance
[ ] helm chart update.

Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #663 #2089
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

/ok-to-test

@yaron2 @artursouza all missing test for the existing code, such as gRPC stream connection/disconnection and three phase updates, are added.

/ok-to-test

@artursouza @mukundansundar I addressed all your comments. please review it again. the PR aims at using raft state with smaller change in the existing placement behavior, such as performTableUpdate. But I tried to refactor the existing code to make it testable and added comments and unit-tests. So, TODO comment will be addressed by the separate issues and PRs.

/ok-to-test

/ok-to-test

/ok-to-test


Remove the check that disables writes to Delta tables with deletion vectors

Given that now we have support for writing into DV tables as part of the delta-io/delta#1485 and delta-io/delta#1591, we should remove the check.

There's one left: shouldWritePersistentDeletionVectors in DeleteCommand.scala.

shouldWritePersistentDeletionVectors

I think we need this. This decides whether to generate DVs or not. Let me know if this is not the case.

shouldWritePersistentDeletionVectors

I think we need this. This decides whether to generate DVs or not. Let me know if this is not the case.

I think he means this: Utils.isTesting in the shouldWritePersistentDeletionVectors method
https://github.com/delta-io/delta/blob/5c3f4d37951ab4edf1cc3364ec6e8259844b331c/core/src/main/scala/org/apache/spark/sql/delta/commands/DeleteCommand.scala#L444

shouldWritePersistentDeletionVectors

I think we need this. This decides whether to generate DVs or not. Let me know if this is not the case.

I think he means this: Utils.isTesting in the shouldWritePersistentDeletionVectors method
https://github.com/delta-io/delta/blob/5c3f4d37951ab4edf1cc3364ec6e8259844b331c/core/src/main/scala/org/apache/spark/sql/delta/commands/DeleteCommand.scala#L444

Ah, I missed that. Thank you!

These lines were added when we blocked DV, but I think we don't use:
https://github.com/delta-io/delta/blob/5c3f4d37951ab4edf1cc3364ec6e8259844b331c/core/src/test/scala/org/apache/spark/sql/delta/deletionvectors/DeletionVectorsSuite.scala#L607-L609


fix(ci): CHARMHUB_TOKEN -> CHARMCRAFT_AUTH

Description
Incorrect secret name CHARMHUB_TOKEN is being used within the CI definition. This incorrect name causes the CI to fail when checking the charm library versions because GitHub cannot not find the secret resource. Setting the name to CHARMCRAFT_AUTH will fix the issue since the secret name is configured to be CHARMCRAFT_AUTH.
How was the code tested?
Test CI job after merge request is opened by me.
Related issues and/or tasks
Required to unblock #10, #11, and #12
Checklist

[x] I am the author of these changes, or I have the rights to submit them.
[x] I have added the relevant changes to the README and/or documentation.
[x] I have self reviewed my own code.
[x] All requested changes and/or review comments have been resolved.

Lint is expected to fail because of spelling error in CONTRIBUTING.md. Fixed in separate pull request.


refactor(semantic): minimize calls to is_not_expression_statement_parent

Current dependencies on/for this PR:

main

PR #2422   👈

This stack of pull requests is managed by Graphite.


output number of skipped tests

This just outputs them. Do we also want to report their reasons in verbose mode? What about the report?

I think they should also be in the report, but we can totally apply YAGNI here and wait until there is a use case for it.
On a side note it would be cool to have this work with the CI server interaction (currently teamcity only): https://github.com/pybuilder/pybuilder/blob/master/src/main/python/pybuilder/plugins/python/test_plugin_helper.py#L60
Would just be a matter of processing the skipped attribute and adding a corresponding dispatch method to the proxy (https://github.com/pybuilder/pybuilder/blob/master/src/main/python/pybuilder/ci_server_interaction.py#L66).

I think you just need to add the skipped callback to the custom test runner (https://github.com/pybuilder/pybuilder/blob/master/src/main/python/pybuilder/plugins/python/unittest_plugin.py#L52) for 2.6 to work.

I am no loner interested in contributing this feature.

I am no loner interested in contributing this feature.


Browser cryptography breaking changes

Contributes to #20143.
Preview link.

It seems like we should also add the PNSE to the API docs for all the affected methods. Or is it just too many?
It would look something like this: https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsa.create?view=net-5.0#System_Security_Cryptography_RSA_Create_System_Int32_.

Ping for review/approval so I can get this merged. Thanks!


ref(routing): enable route debugging in dev

Enables useful routing and navigation information in the console when running in dev mode.

LGTM, in fact it looks great!


Keep track of peers that have been asked and peers that delivered

Addresses #75 .

[x] Write tests

[x] Create NodeViewSynchronizerTests in scorex.testkit.properties package
[x] Create NodeViewSynchronizerSpec in hybrid package in examples submodule.
[x] Clean tests

[x] Disconnect peers that have been banned
[x] Create a class to encapsulate operations on asked
[ ] Add delivery timeout to settings
[x] Penalize peer that doesn't deliver within timeout (currently: the penalty is a total ban)
[x] Generalize the Asked class and use it for delivered as well

Banning
Relevant for banning: https://www.usenix.org/system/files/conference/usenixsecurity15/sec15-paper-heilman.pdf
Layers:   NetworkController <-> NodeViewSynchronizer <-> NodeViewHolder
to ban a peer, we need to send a message to NetworkController to drop a connection (NetworkController will send PeerConnectionHandler.CloseConnection to a peer of interest)

Testing
Relevant paper: https://github.com/kushti/scorex-laws

Please do TTL to be set via settings for asked. If something is asked but not delivered within timeout, a peer should get a negative feedback.

If something is asked but not delivered within timeout, a peer should get a negative feedback.

I see two ways of doing that. The most straighforward way would be to: make NVS send a scheduled message to itself, with the given timeout. And when NVS receives the message from itself, it checks whether the asked object has been delivered.
A potential problem with this solution is that self-message would go into the queue of messages received by NVS, and there is no guarantee that it will be processed exactly after the timeout. If there are too many messages in the queue, NVS will only process the self-message and check the delivery after all previously queued messages have been processed. And this might happen only some time after the timeout.  But maybe this problem is not an issue in practice? Should I worry about this problem?
The other way would be to create a Future for the task of checking the delivery and executing the Future after the timeout. This approach would avoid the problem described above, but it would b eless elegant, I think.
I am in favour of the self-message approach. What do you think?

A more simple option, we can check "asked" collection on a message delivery, so along with the check that delivered object is in "asked", also filter "asked"

A more simple option, we can check "asked" collection on a message delivery, so along with the check that delivered object is in "asked", also filter "asked"

Unless I misunderstood your suggestion, I think it doesn't always solve the problem and, when it does, it doesn't do it as efficiently as possible.
Why I think it doesn't always solve the problem: Imagine the following extreme case: if messages are never delivered, we will never check the "asked" collection, and we might never notice that there are elements in "asked" that have already exceeded the timeout.    (Less extremely, if messages are delivered on average every X milliseconds, where X is greater than the specified timeout, we would be checking "asked" not as frequently as we should be checking it...)  This wouldn't be a problem in practice, if messages are delivered frequently enough.
Why I think it is not so efficient: if we have N elements in "asked", we would have to traverse, check and filter N elements after every delivery. In practice, I believe we expect to have as many deliveries as asked messages. Therefore, this approach would have, roughly, quadratic complexity (Omega(N^2)).
In contrast, The two solutions that I described above could be implemented in O(N), I believe.
Does this make sense? Or have I misunderstood your suggestion?

@kushti , while testing NVS, I noticed something that seems to be a bug. I fixed it in this commit: https://github.com/ScorexFoundation/Scorex/pull/76/commits/6f855a3f5a6ea6a3100cef6bf53c278995b59b70
Without my fix, extOpt.get throws an exception when extOpt is empty.

@kushti , this MR is ready to be reviewed and, hopefully, accepted.
For now:

The delivery timeout is hard-coded. (I will keep trying to understand why Ficus is not managing to parse the config file when I add "deliveryTimeout" to "settings.conf" and to the "NetworkSettings" case class.)

Peers that do not deliver on time are banned.  I believe a nicer de-prioritaziation scheme (instead of total banning) would require more extensive changes in PeerInfo and PeerManager. I sketched a proposal here: https://github.com/ScorexFoundation/Scorex/pull/76/commits/6c3f90392e126a0cf78567bb98b4d4f8529d641b . Since this goes beyond refactoring NodeViewSynchronizer, I think we should work on this in another MR, after this MR is accepted.

Thanks!


feat: add isCompact_{quasi}spectrum for instances of the continuous functional calculus

We already have instances for CompactSpace, but it's handy to have these when you need to work with the sets themselves (e.g., to show that spectrum R a ∪ spectrum R b is compact).

bors r+


Remove uglify plugin from webpack config

Fixes #303  https://github.com/fusionjs/fusion-cli/issues/12

!merge


Create Crafting Logic

Description
Task: Create Logic Behind Crafting.
Feature: Crafting System
A new class named crafting will be created which will host all the methods. Combinations class will hold logic to make each item (wood + steel = sword for this sprint) and will also contain event handlers for clicks made by the user. The class will also determine what items are shown on the menu and updates when user clicks on items. Class will also check if user has required resources for the crafting (will always return true this sprint).
Example (optional)

Craft Sword: Players can craft the sword using the menu and have it put in their inventory

Dependencies
This task will require an inventory to be partially present to check for resources. It will also require the display to work in order to get user inputs.

[ ] Inventory class will be needed to check for resources(#xx)
[ ] Visual display will need to work for event handlers to get inputs (#xx)

Milestones
List of steps that need to be completed for this task.

[ ] Class structure defined(Aug. 19)
[ ] Logic to craft sword complete(Aug. 20)
[ ] Logic to check inventory complete (Aug. 23)
[ ] Event handlers to check users clicks complete (Aug. 23)

Completion Deadline: Aug. 23
Documentation

Crafting System Layout (../wiki/Crafting System Layout)

Member

Rohan (rkoll55)

@notalie @BozenX


fix: get starknet v4 MetaMask detection

Fix MetaMask Detection and Provider Handling for get-starknet
This PR fixes the detection and handling of the MetaMask provider in the get-starknet v4 integration, following the same strategy as in the get-starknet v3 implementation: provider logic detection happens in the metaMaskVirtualWallet.ts.
The hasSupport methods detects the provider and sets it as provider attribute in the object, so that when loading the wallet the provider does not need to be fetched again. If the provider is not set when loading then we try to load it again.
This PR is required to finalise the get-starknet v4 implementation on the StarkNet Snap.

Looks good. Can you add a changeset with your PR so that I can make a release as soon as it's merged?

@fracek : just added the changeset!


Build sign and deploy Blueprint artifacts automatically from master branch

Build, sign and deploy the built Blueprint artifacts for all three OS (Windows, Linux, Mac) to the Eclipse download area. This is done via the Eclipse hosted Jenkins instance.

Update: Created a ticket regarding the SSH errors: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1162

Note the name change for CDT.cloud identifiers on Eclipse's infrastructure: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1195

PR for adding additional Jenkins Plugins: https://github.com/eclipse-cbi/jiro/pull/208

Issue regarding Mac and Windows Build nodes: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1288

@jfaltermeier Is the Jenkins build now pointing to the cdt-cloud-blueprint master and run automatically on every push? If yes then please close the issue here.

Branch is updated now. Build will check every 15 minutes for new commits.


Undefined name: all_train used before it is defined

https://github.com/THUDM/cogdl/blob/master/cogdl/tasks/node_classification_sample.py#L106

Hi @cclauss ,
Thank you very much for reporting this to us. We're working on testing the code comprehensively. Will fix in the future.

Hi @cclauss,
We are planning to rebuild our whole code and the code (node_classification_sample.py) is temporarily deleted and will be rewritten in the future. Thank you for your support and understanding.


path of openl3_audio_linear_music-v0_2_0.h5.gz not exists

failed of downloading https://github.com/marl/openl3/raw/models/openl3_audio_linear_music-v0_2_0.h5.gz, the path is not exists?

Please try downloading again, the path definitely exists (I just clicked on the link in your message and downloaded the model file successfully). Thanks.


Enforce error checking for Vault component initialization on tests.

Description
Tests in vault_test.go had the following:
    // This call will throw an error on Windows systems because of the of
    // the call x509.SystemCertPool() because system root pool is not
    // available on Windows so ignore the error for when the tests are run
    // on the Windows platform during CI
    _ = target.Init(m)

As of Go 1.18 this is not the case for Windows anymore and
we can instead enforce error checking.
While enforcing error checking we notice that the code above was
actually hiding errors in the test setup. Component initialization was
ending prematurely due to those errors and the test code was wrongfully
testing for the behavior of a component that has not been successfully
initialized. This is also addressed in this PR.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #2330
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[ ] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

FYI: this has been tested on Windows (native, not WSL) ;)


"Unexpected Usage" When Web-Workers Aren't Available In Webpack Context

monaco-editor version: 0.21.2
I created an extension that integrates monaco into github.
It uses webpack and typescript module imports/exports. This extension only uses the markdown mode and everything works as expected.
However, for a different feature, I want to use the typescript language mode and all the advanced features that monaco provides for typescript.
The typescript mode first tries to create a webworker, which is not possible in chrome extensions.
It then falls back to a synchronous worker.
This fails later with "Unexpected usage":
EditorSimpleWorker.prototype.loadForeignModule = function (moduleId, createData, foreignHostMethods) {
    var _this = this;
    var proxyMethodRequest = function (method, args) {
        return _this._host.fhr(method, args);
    };
    var foreignHost = _base_common_types_js__WEBPACK_IMPORTED_MODULE_13__["createProxyObject"](foreignHostMethods, proxyMethodRequest);
    var ctx = {
        host: foreignHost,
        getMirrorModels: function () {
            return _this._getModels();
        }
    };
    if (this._foreignModuleFactory) {
        this._foreignModule = this._foreignModuleFactory(ctx, createData);
        // static foreing module
        return Promise.resolve(_base_common_types_js__WEBPACK_IMPORTED_MODULE_13__["getAllMethodNames"](this._foreignModule));
    }
    // ESM-comment-begin
    // 		return new Promise<any>((resolve, reject) => {
    // 			require([moduleId], (foreignModule: { create: IForeignModuleFactory }) => {
    // 				this._foreignModule = foreignModule.create(ctx, createData);
    //
    // 				resolve(types.getAllMethodNames(this._foreignModule));
    //
    // 			}, reject);
    // 		});
    // ESM-comment-end
    // ESM-uncomment-begin
    return Promise.reject(new Error("Unexpected usage"));
    // ESM-uncomment-end
};

It does not fail in the monaco playground, as the playground apparently does not use ESM. In the playground, it just uses require to load the typescript worker which seems to work.
How can I make the fall back mechanism work when I consume monaco as ESM?
If this is a configuration issue on my side, it might be helpful to change the error message to make it more obvious what the problem is.
Anyways, it is really awesome that this editor can be integerated so easily with full typescript support!

According to #2212 this is a bug in the ESM support, the Promise is essentially hard coded to be rejected. Maybe you can confirm my findings?

I currently don't have time to confirm your findings, but it sounds very familiar to what I encountered.
In my case however, I'm relying on the sync web worker fallback. The web worker fallback usually happens due to misconfiguration, but in my case it is because chrome extensions cannot spawn web workers.
I also think this is a bug in the ESM support and my 1h time constrained debugging session also came to the conclusion that _foreignModuleFactory is always null and that the error always happens when using the ESM build, regardless of the configuration.