Setting breakpoint fails on Python files containing ascii characters

Issue Type: Bug
F5 and click to set a breakpoint,vscode print the next:
C:\Users\Administrator\Desktop\项目源代码\unetfe-rotation>cd c:\Users\Administrator\Desktop\项目源代码\unetfe-rotation && cmd /C "set "PYTHONIOENCODING=UTF-8" && set "PYTHONUNBUFFERED=1" && python c:\Users\Administrator\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\experimental\ptvsd_launcher.py 53714 c:\Users\Administrator\Desktop\项目源代码\unetfe-rotation\app.py "
Traceback (most recent call last):
  File "c:\Users\Administrator\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\experimental\ptvsd\ptvsd\wrapper.py", line 1292, in done
    fut.result()
  File "c:\Users\Administrator\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\experimental\ptvsd\ptvsd\futures.py", line 40, in result
    reraise(self._exc_info)
  File "c:\Users\Administrator\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\experimental\ptvsd\ptvsd\futures.py", line 149, in callback
    x = next(it)
  File "c:\Users\Administrator\.vscode\extensions\ms-python.python-2018.9.0\pythonFiles\experimental\ptvsd\ptvsd\wrapper.py", line 2123, in on_setBreakpoints
    msg = '{}\t{}\t{}'.format(bp_type, path, vsc_bpid)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 31-35: ordinal not in range(128)

Extension version: 2018.9.0
VS Code version: Code 1.28.1 (3368db6750222d319c851f6d90eb619d886e08f5, 2018-10-11T18:13:53.910Z)
OS version: Windows_NT x64 6.1.7601

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (4 x 2494)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: unavailable_softwarevideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: unavailable_off

Memory (System)
3.93GB (0.55GB free)

Process Argv

Screen Reader
no

VM
50%

Please fill in the rest of our issue template, e.g. what version of Python are you using?

Python 2.7.15

@mazhan465 Please could you install the latest version of the extension and let us know whether you're still experiencing this issue?

Upstream issue has been resolved


--not-when-audio does not work for Zoom calls

We use Zoom calls every day for meetings and xidlehook does not recognize zoom calls audio and will lock my screen after 10mins of inactivity.
Whereas, this works on the browser if I am playing any sort of video/audio.

<Insert generic "zoom bad" response>
Yeah I'm not going to install zoom on my machine. Feel free to debug it and send a PR, though!


Option to sort re-exports in __all__ (sort_exports from isort)

Isort allows sorting __all__ when sort_reexports is used:
https://github.com/PyCQA/isort/blob/f547290178f86b6e5f0007cf1cb31d4736dcdaee/isort/core.py#L235-L241

Is this undocumented behavior?

isort has not had a release for over a year so it's one of the features that never ended up getting released. Actually, that reminds me of another (more important) feature that also has not been released yet, and seems like ruff isn't handling it properly either, will make an issue in a moment.

Note that there's another functionality that is available in a released version of isort - sorting literals that are prepended with # isort: list or # isort: tuple:
https://github.com/PyCQA/isort/issues/1358
sort_reexports option is actually using the same code for sorting.
One thing that both of these don't support is __all__ with multiple sections in it that should be sorted separately, e.g. something like what typing's code does (well, sort of, it doesn't seem like they're that good at keeping it alphabetical manually :smile:):
https://github.com/python/cpython/blob/606adb4b891b52c8b9a53d29d594e996f117c0b3/Lib/typing.py#L42-L152
I'm actually not sure if isort's literal sorting even supports other profiles such as Black's, it seems to just sort it all in a pre-defined way.

Oh yeah, this was brought to my attention on Twitter. I think we could support this! There are some other things I need to get done before I spend time on it though.

I have a suggestion to extend this feature request a bit and allow sorting by the definition order of names (functions/classes/variables) that are put in __all__.
So for example:
from .submodule import reexported_name

__all__ = (
    "reexported_name",
    "function_b",
    "X",
    "function_a",
    "function_c",
    "Y",
)

def function_b():
    ...

class X:
   ...

def function_a():
    ...

def function_c():
    ...

class Y:
   ...

The reason for such a suggestion is that I think it makes it easier to find out what names of public APIs are missing in __all__ since it allows one to just go through the file and look through the names in __all__ in the same order.

For reference, there's another tool available to sort __all__: https://github.com/cpendery/asort
I guess it could be used to get rid of isort while we wait to have this feature implemented in ruff.

For reference, there's another tool available to sort __all__: https://github.com/cpendery/asort

Hmm, forget about asort, I just stumble upon an issue: asort breaks docstring indention (asort#8)
That being said, regarding the sorting order, I also proposed to add support for another one that would be a case-insensitive lexicographical sorting. Not sure how popular or common this is.

Hey @charliermarsh I'd be happy to contribute this since it's still hanging around in the backlog if it's something you still think would be useful

@cpendery - Yeah I'm open to including this. We'll need to decide how it should be categorized (i.e., does it go in the isort rule set? Or the Ruff-specific rules?) but it seems like a reasonable thing to include.

@cpendery - Yeah I'm open to including this. We'll need to decide how it should be categorized (i.e., does it go in the isort rule set? Or the Ruff-specific rules?) but it seems like a reasonable thing to include.

@charliermarsh I think it probably should be categorized as Ruff specific rule since it was never an officially released isort feature, especially if we extend it with the additional functionality of multiple sorting options

I have a suggestion to extend this feature request a bit and allow sorting by the definition order of names (functions/classes/variables) that are put in __all__.

This existed with isort's # isort: unique-list code styling comment as described in #7929.

We've tried using isort's sort_exports in our project and it has several problems (from https://github.com/python-telegram-bot/python-telegram-bot/pull/4052#issuecomment-1875942280):

Doesn't honor black settings, i.e. uses single quotes (') instead of double (").
collapses multiline definitions (https://github.com/PyCQA/isort/issues/2193)

We found a new package https://pypi.org/project/sort-all/ which fixes these issues, however that package has one drawback of removing the comments in the __all__.

Adding to @harshil21 s comment, I'd like to mention that we're also interested in sorting __slots__ in addition to __all__.

I'm working on a PR to implement this feature.

One thing that both of these don't support is __all__ with multiple sections in it that should be sorted separately, e.g. something like what typing's code does (well, sort of, it doesn't seem like they're that good at keeping it alphabetical manually 😄):
https://github.com/python/cpython/blob/606adb4b891b52c8b9a53d29d594e996f117c0b3/Lib/typing.py#L42-L152

So, a question on this: what should ruff do if it encounters something like this?
__all__ = [
    "d",
    "c",
    # a comment introducing a new section for 'b' and 'a':
    "b",
    "a",
]

Should it:

Emit the violation on this snippet (since __all__ is not sorted), but refuse to autofix it, since the comment introduces an ambiguity

Sort __all__ like this, assuming that the user wanted to use the comment to create a new section:
__all__ = [
    "c",
    "d",
    # a comment introducing a new section for 'b' and 'a':
    "a",
    "b",
]

Same as (2), but only if the user enabled a specific configuration flag on the command line or in their config file to enable "sorting per-section"?

I think the thing we probably shouldn't do in this kind of situation is this:
__all__ = [
    "a",
    "b",
    # a comment introducing a new section for 'b' and 'a':
    "c",
    "d",
]

For alphabetical definitely option 2. For sort by definition order I'm not really sure what would work best, I guess anything is fine though I would definitely prefer if whatever it does didn't require a manual fix.

This is an interesting question. I would expand the example by one that uses a non-section defining comment:
__all__ = [
	"c",
	# TODO: Remove once #0000 is complete
	"a"
]

In this case, I would expect the comment to move with a.
From what I understand is that isort requires the use of isort suppression comments to suppress import sorting. What if we would do the same for __all__?
__all__ = [
    "c",
    "d",
    # a comment introducing a new section for 'b' and 'a':
    "a",  #  noqa: RUFXXX Don't move
    "b",
]

or
__all__ = [
    "c",
    "d",
    # a comment introducing a new section for 'b' and 'a':  #  noqa: RUFXXX Don't move
    "a",
    "b",
]

This is an interesting question. I would expand the example by one that uses a non-section defining comment [...] In this case, I would expect the comment to move with a.

Yes, that's exactly the kind of thing I was worrying about w.r.t. Option (2) -- thanks!

From what I understand is that isort requires the use of isort suppression comments to suppress import sorting. What if we would do the same for __all__?

That's an interesting idea! Let's call that Option (4). I worry with Option (4) that the precise semantics of the noqa directive might be hard for users to get their head around, though. You'd be applying a noqa directive to a specific line in __all__, but the addition of the noqa directive could have an impact on ruff's treatment of all items in __all__.
Here's three possible things the noqa directive could mean if it were applied to a comment at "index 3" in a multiline __all__ (I don't find (2) very plausible, but it would at least be simpler to implement than (3) 😅)

The comment should remain at "index 3", but all items in __all__ are free to "move around" it.
The comment should remain at "index 3". All items above it should be sorted, but all items below it should be untouched.
The comment should remain at "index 3", and should be treated as a section delimiter. All items in the range of (previous_delimiting_comment_index + 1)..3 should be sorted within their section, and all items in the range of 4..index_of_previous_delimiting_comment should be sorted within their section.

I guess I'm leaning towards Option (3) in my original selection of options:

By default, comments move with the items below them with multiline __all__ definitions.
But, if a specific configuration flag is enabled, the behaviour changes so that ruff treats all comments on their own line as being "section delimiters" -- it will sort imports according to each section it spots, but won't disturb the sections.

If neither of the above is what the user wants, they can just # noqa the whole definition of __all__ (or just not opt into the rule at all!), so Option (1) in my original selection isn't very appealing here.

For sort by definition order I'm not really sure what would work best

FWIW, my initial implementation of this rule is just going to do "sort by alphabetical order", so that I can get a MVP out there :)
We can possibly implement "sort by definition order" as a followup.

That's an interesting idea! Let's call that Option (4). I worry with Option (4) that the precise semantics of the noqa directive might be hard for users to get their head around, though. You'd be applying a noqa directive to a specific line in all, but the addition of the noqa directive could have an impact on ruff's treatment of all items in all.

That's fair. Do you know how common the use of sections is? If they're uncommon, then disabling sorting for the entire __all__ might be a reasonable option.
Is there some sort of a community standard when it comes to formatting section comments, that we could use to identify them? If not, could we allow users to configure a regex to identify the section comments?

I guess I'm leaning towards Option (3) in my https://github.com/astral-sh/ruff/issues/1198#issuecomment-1884429395:

I fear that a project-level configuration might not be granular enough, but maybe it is. I really don't know.

FWIW, my initial implementation of this rule is just going to do "sort by alphabetical order", so that I can get a MVP out there :)

I think that's a great start. Let's get sorting working and figure out how to disable sorting at a later stage :)

Here's an idea: as well as simple noqa comments to switch isort on and off, isort also supports slightly more sophisticated "action comments": docs.astral.sh/ruff/linter/#action-comments. What if we had a version of that for this rule, as well as a global config setting? So, if ruff saw this

I'm a bit hesitant of adding more "magic comments" because they're hard to remember and not easily understood. You can't click on them and get an explanation of what they do; you need to know in which places they're allowed, and they don't work well with auto formatters (formatter needs to understand them as well).  That's why I would favor a solution that doesn't require a new pragma comment.

Okay, https://github.com/astral-sh/ruff/pull/9474 has now been merged! The next release of Ruff should include a rule and autofix to keep your __all__ definitions sorted. The sort order you get is an "isort-style" sort:

SCREAMING_SNAKE_CASE members come first
After that come CamelCase members
Anything else comes last
Within each casing category, members are sorted according to a natural sort.

Currently the rule is not configurable. We might consider adding some configuration options in the future, but for now we've decided to wait to see how much demand there is for that in the community.
The rule has been added as RUF022 rather than as an isort rule, since it seems like it doesn't really have much to do with imports. While isort does have this functionality, it's never been documented.
Enjoy tidying up your __all__ definitions! 😄


feat(useAsync): remove effector behaviour from hook

Use composition with effectors for such functionality.
BREAKING CHANGE:
useAsync hook now has only 2 arguments, asyncFn and initialValue
and do not execute provided function on its own.
How does this PR fix the problem?
Remove effector functionality and unnecessary arguments.
Checklist

[x] Have you read contribution guideline?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Is there an existing issue for this PR?

#317

[x] Have the files been linted and formatted?
[x] Have the docs been updated to match the changes in the PR?
[x] Have the tests been updated to match the changes in the PR?
[x] Have you run the tests locally to confirm they pass?

:tada: This PR is included in version 10.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Adds Crambda to the serverless computing section

Link

Crambda
Checklist

[x] - Shard is at least 30 days old.
[ ] - Shard has CI implemented.
[ ] - Shard has daily/weekly periodic builds (ideally with Crystal latest and nightly).

Broken specs. Sorry, closed because of inactivity. Be free to reopen or submit a new request.


SR-IOV for AMD/mxGPU

Is anyone looking into virtualizing AMD mxGPU cards with https://github.com/GPUOpen-LibrariesAndSDKs/MxGPU-Virtualization  for SR-IOV?
I would like to be able to present multiple containers on a host with a virtualized AMD GPU.  This would be both for tensorflow as well as more graphics-framebuffer oriented projects.

@rrichardson - I don't know if these might help, but there are both SRIOV and an Intel GPU passthrough doc over at https://github.com/kata-containers/documentation/tree/master/use-cases
afaik, the only AMD specific things we've had so far have been around a security enclave style feature, and not GPU... unless somebody else knows different.

@grahamwhaley - that's an excellent resource.  Thanks.  Now to see if I can find some corresponding "client" kernel settings for the AMD open source drivers.


⚠ Fortnite has degraded performance

In feb4a9c, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1534 ms

Resolved: Fortnite performance has improved in 2926f79.


Implicit changes in em.transactional() aren't written to the db

Describe the bug
EntityManager's transactional() used to write any data registered in the IdentityMap (but not explicitly flushed) at the end of the transaction. This no longer seems to be the case.
Expected behavior
Given:
@Entity()
export class A extends BaseEntity<A, 'id'> {
  @PrimaryKey({ type: 'uuid' })
  id = v4();
}

This should result in a database record and a value returned:
const id = await orm.em.transactional(async () => {
  const a = new A();
  orm.em.persist(a);
  return a.id;
});
orm.em.clear();
const fetchedA = await orm.em.findOneOrFail(A, { id });

Actual behavior
No record exists and the last line throws.
Versions

Dependency
Version

node
12.x

typescript
3.9.3

mikro-orm
4.0.6

pg
3.8.3

@B4nan - I've been trying to follow what happens here. I can see the entity written to the UOW's persistStack, however it's gone by the time commit() gets called from the transactional flush. I can't see anything explicitly removing it, which leaves me to wonder if it's actually the same UOW instance?

You need to use the EM from parameter.
await orm.em.transactional(em => {
  //... do some work
  const user = new User(...);
  user.name = 'George';
  em.persist(user);
});

https://mikro-orm.io/docs/transactions#approach-2-explicitly

Bah, that's what happens when you stare at something for too long. RTFM.
Thanks Martin. Sorry for the noise...


Search is broken: {"message":"indexName is not valid","status":400}

steps
Search
problems
{"message":"indexName is not valid","status":400}

Fixed


Refactoring

Server login is handled by the main entry point, and passed as an argument to the individual commands.
Commands can use the server functions but do not care about logging into the server.

Profile still needs refactoring. The arguments to login into the server and to save into the profile are conflicting and log messages create confusion


[API] Support use of a custom icon in window.withProgress().

window.withProgress() in the VS Code API is useful, particularly in how it reduces the number of things you would have to do manually to get the same effect.  However, if you want to use a custom "spinner" icon then you cannot use withProgress().  Ideally that would change, reducing the need to do (basically) the same thing in multiple different ways.
Having the function support custom icons would reduce the need to manually try to get the same effect:
    const statusBarProgress = window.createStatusBarItem(StatusBarAlignment.Left);
    try {
        statusBarProgress.show();
        const req = ...;
        req.on('progress', (percent: number) => {
            statusBarProgress.text = `${icon} ${progressMessage} ${percent}`;
        });
    } finally {
        statusBarProgress.dispose();
    }

If window.withProgress() supported custom icons (e.g. through vscode.ProgressOptions) then that same could look more like this:
    await window.withProgress({ icon, location: ProgressLocation.Window }, async (progress) => {
        const req = ...;
        req.on('progress', (percent: number) => {
            progress.report({ message: `${progressMessage} ${percent}` });
        });
    });

However, if you want to use a custom "spinner" icon

Why? Isn't that defeating the purpose of a unified UX for progress? Won't this confuse users if progress for foo looks different than progress for bar?

See https://github.com/microsoft/vscode-python/issues/10495.

Adding @misolori for feedback. Generally, you should be able (already today) to add more icons, e.g just use it with the message but swapping the icon that indicates progress isn't possible today


Updating solvers module to use arraylias

Summary
This PR updates all of the solvers folder to use arraylias, aside from the perturbative_solvers folder, which must be updated after the perturbation folder.
The new release notes describe the material change to the interface:

Solver.__init__ now takes arguments array_library and vectorized instead of evaluation_mode.
The logic for when Solver.solve decides to automatically JAX compile when simulating a list of schedules has been slightly modified.

Details and comments
All of the tests in the following command should be passing:
python -m unittest discover test.dynamics.models; python -m unittest discover test.dynamics.arraylias; python -m unittest discover test.dynamics.signals; python -m unittest discover test.dynamics.pulse; python -m unittest test.dynamics.solvers.test_diffrax_DOP5; python -m unittest test.dynamics.solvers.test_fixed_step_solvers; python -m unittest test.dynamics.solvers.test_jax_odeint; python -m unittest test.dynamics.solvers.test_lanczos; python -m unittest test.dynamics.solvers.test_solver_utils; python -m unittest test.dynamics.solvers.test_solver_functions; python -m unittest test.dynamics.solvers.test_solver_functions_interface;

It reflects on the discussion that the model class is immutable.

https://github.com/Qiskit-Extensions/qiskit-dynamics/blob/88b2dfd357005f5241d0c059a814360059a91fae/qiskit_dynamics/models/__init__.py#L107
Also, need to fix it?

https://github.com/Qiskit-Extensions/qiskit-dynamics/blob/88b2dfd357005f5241d0c059a814360059a91fae/qiskit_dynamics/models/__init__.py#L107
Also, need to fix it?

yes good catch - for now I don't want to fix documentation, I think it should all be fixed at the end when all of the changes have been made (to avoid having to make further unexpected changes).


Color standards

Added new semantic colors
Replaced brown, orange, green with semantic draft, scheduled, published colors
delete unused brown, orange, green colors
semantic toolbar view colors applied to toolbar

👍

@nelsonpecora Fixed the Orange ->Scheduled mistake. Defaulting to darker View colors for the toolbar until the View/Edit toggle comes onto the scene.

Coverage remained the same at 78.961% when pulling 12abcab2b29746ef0fe3573824115195abd032d5 on color-standards into b804c720896856c6d429fb25f94a3f77804dc8a7 on master.


Week 5 - UI Starters

HTML Python/Flask project (Individual)

Personalize index.html page with HTML customized

Code

Personalize stub menu and stub.html.

Code

Bootstrap

Code

HTML Fastpages project (Individual)
 Add new _pages with submenu
Post that uses HTML fragments and JavaScript data to build a table
Jupyter Notebook that shows usage of Jupyter JavaScript kernel
Team Project
Our team met during the week and also over the weekend to brainstorm on project design ideas continuously for hours. A Google Drawing was created to capture the final project look and feel. Also, we discussed and captured the SCRUM, DevOps, Frontend, Backend roles for each of the individuals.
Draft a couple screens to introduce your final project idea.

I think that you deserve a grade of 2.7+. The way you personalized your flash project showed an understanding of Java. I like how you showcased your use of JavaScript showing a deep understanding of the concepts.

He had all the parts and went above and beyond.
3

Flask index.html. did some picture changes.   Personalized stub page and changed the menu.  Added some link to page.  Made a chart with Bootstrap.
HTML Fastpages and put a dropdown inside a page.  Changed data in JavaScript.  Talked on JavaScript well.   Made extra button with a random using time algorithm
2.9

3, Had everything done and did a lot more

2.8+
All parts met and very good explanation


"is divisible by" not working

{% if loop.index is divisible by(4) %}
Unexpected token "name" of value "by" ("end of statement block" expected).

http://twig.sensiolabs.org/doc/tests/divisibleby.html

There is an unmerged PR that looks like it addresses this issue https://github.com/asm89/twig-lint/pull/23

Yes always
{% if i is divisible by(14) %}

Unexpected token "name" of value "by" ("end of statement block" expected)


#999: docker service :log_level property converted to String.

Description
provides a fix to set :log_level for dockers' syslog driver.
Issues Resolved
#999
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

Merging under the obvious fix policy


how did you perform downgrade after flash

Hello,
I have V2 goggles in 01.03.0000, I managed to flash them but I don't understand how to downgrade the firmware afterwards.
Is it possible to have some details on the follow-up to be given to the flash?
best regards Fred.

There's an issue where the firmware number cache is not cleaned after downgrading with butter, meaning you can't rely on the version number displayed in assistant or the goggles.
Just try to root, it should work now.

Thank you for your feedback, I will test it right away.


Implement formatting in webdemo

Fixes #356

Does the right thing in principle: There is now a "Format document" option available in the webdemo, but the implementation in terms of the LSP is still stubbed out.

Not working yet, but I am sure I am pretty close ^^

It does work now. But it is a bit slow :/

I can reproduce the slowness.
Interestingly, if you watch the browser console, you can observer that the following lines appear almost instantly:
client -> server: {"jsonrpc":"2.0","id":19,"method":"textDocument/formatting","params":{"textDocument":{"version":0,"uri":"inmemory://demo.pol"},"options":{"tabSize":4,"insertSpaces":true}}} [editor.bundle.js:135878:41](http://localhost:9000/editor.bundle.js)
server -> client: {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Formatting request: inmemory://demo.pol","type":3}} [editor.bundle.js:135878:150](http://localhost:9000/editor.bundle.js)
server -> client: {"jsonrpc":"2.0","result":[{"newText":"data Nat { Z, S(n: Nat) }\n\ndef Nat.add(y: Nat): Nat {\n    Z => y,\n    S(x') => S(x'.add(y))\n}\n\ndata Vec(n: Nat) {\n    Nil: Vec(Z),\n    Cons(n x: Nat, xs: Vec(n)): Vec(S(n))\n}\n\ncodata Stream { .head: Nat, .tail: Stream }\n\ncodata NatToNat { .ap(x: Nat): Nat }","range":{"end":{"character":4294967295,"line":4294967295},"start":{"character":0,"line":0}}}],"id":19} [editor.bundle.js:135878:150](http://localhost:9000/editor.bundle.js)
 [info] Formatting request: inmemory://demo.pol [editor.bundle.js:135892:602](http://localhost:9000/editor.bundle.js)

Note that this already includes the formatting result sent by the server.
Then, after a noticeable delay, we see:
client -> server: {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"version":0,"uri":"inmemory://demo.pol"},"contentChanges":[{"range":{"start":{"line":0,"character":0},"end":{"line":14,"character":36}},"text":"data Nat { Z, S(n: Nat) }\n\ndef Nat.add(y: Nat): Nat {\n    Z => y,\n    S(x') => S(x'.add(y))\n}\n\ndata Vec(n: Nat) {\n    Nil: Vec(Z),\n    Cons(n x: Nat, xs: Vec(n)): Vec(S(n))\n}\n\ncodata Stream { .head: Nat, .tail: Stream }\n\ncodata NatToNat { .ap(x: Nat): Nat }"}]}} [editor.bundle.js:135878:41](http://localhost:9000/editor.bundle.js)
server -> client: {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Changed file: inmemory://demo.pol","type":3}} [editor.bundle.js:135878:150](http://localhost:9000/editor.bundle.js)
server -> client: {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"inmemory://demo.pol"}} [editor.bundle.js:135878:150](http://localhost:9000/editor.bundle.js)
 [info] Changed file: inmemory://demo.pol [editor.bundle.js:135892:602](http://localhost:9000/editor.bundle.js)
client -> server: {"jsonrpc":"2.0","id":20,"method":"textDocument/codeAction","params":{"textDocument":{"version":0,"uri":"inmemory://demo.pol"},"range":{"start":{"line":14,"character":35},"end":{"line":14,"character":36}},"context":{"diagnostics":[]}}} [editor.bundle.js:135878:41](http://localhost:9000/editor.bundle.js)
server -> client: {"jsonrpc":"2.0","method":"window/logMessage","params":{"message":"Code action request: inmemory://demo.pol","type":3}} [editor.bundle.js:135878:150](http://localhost:9000/editor.bundle.js)
server -> client: {"jsonrpc":"2.0","result":[{"edit":{"changes":{"inmemory://demo.pol":[{"newText":"data NatToNat { }\n\ndef NatToNat.ap(x: Nat): Nat { }","range":{"end":{"character":36,"line":14},"start":{"character":0,"line":14}}}]}},"kind":"refactor.rewrite","title":"Defunctionalize NatToNat"}],"id":20} [editor.bundle.js:135878:150](http://localhost:9000/editor.bundle.js)
 [info] Code action request: inmemory://demo.pol

Let's observe if we have the same slowness on the version served by github.io. Unlikely, but we'll see :)


Laravel 10 and 11 Compatibility Missing in Documentation Table

Hi Max,
I noticed that the compatibility table in the Laravel API Boilerplate documentation doesn’t include Laravel 10 or 11, even though the l5-api package clearly states support for these versions.
This could lead to confusion for users trying to determine if the boilerplate supports these Laravel versions.

The table ends at Laravel 9.x, but l5-api supports:
Laravel 11.x (Boilerplate Version 6.x.x, PHP 8.2, Supported)
Laravel 10.x (Boilerplate Version 5.x.x, PHP 8.1, Supported)

Links:
https://github.com/specialtactics/laravel-api-boilerplate/wiki
https://github.com/specialtactics/l5-api
Could you confirm if the boilerplate itself supports these versions? If so, it would be great to update the table for clarity.
Thanks!

Hi, yes it does @JoshSalway, I need to update this table, it's a bit inconsistent right now because it's across the 2 repositories, I aim to fix it up within a few weeks, you're welcome to subscribe to this thread (although I guess you already are), and I'll update it once everything has been updated.


When Isso starts, log the path of the database and of the config file

I initially made some mistakes when using Isso and it was harder to debug than it might have been. Can I suggest that when Isso starts it outputs log messages for:

either "No configuration file specified", or else "Using configuration file </full/path.cfg>"
"The configuration file </full/path.cfg> does not exist" rather than silently ignoring if the specified configuration file doesn't exist (preferably also abort after logging this error message)
"Using database at </full/path.db>"

@jwatt @jefft would you like to tackle this?

Related: https://github.com/posativ/isso/issues/673 (on the client side)

Tracked in #854


Invite-to-server link broken

Not a bug with the bot itself, but the "invite bot to server" link is broken; it just produces a discord web page with an error reading "Invalid OAuth2 redirect_uri".

Fixed in commit c77f10f. Thanks!


QA: FsR: Validate Support for Object Selection Criteria (any combination)

EPIC:
#491 Fluids Report Implementation
PARENT:
#492 Get from Store (R) Fluids Report Object
SIZE:
12 hrs = 1 1/2 days = 3 pts
QA Support for Object Selection criteria (any combination) – Validation only no code req’d – 3pts based on need for additional cards

QA tested.. able to successfully query Fluid Report object with UID and name.  Closing the card.


Remove obsolete GitHub Actions workflows

Description
Since Azure DevOps handles UI builds as well as backend builds, these GitHub Actions workflows are no longer needed.
Jira Issue:
Type of change

[ ] Bug fix
[ ] New feature
[X] Other

Instructions for testing

Checklist:

[ ] I have written new tests (if applicable)
[ ] I have ran the tests myself (if applicable)
[ ] I have made necessary changes to the documentation, link to confluence
or other location:

Other relevant info
See Azure DevOps for build information.

Remember to reference this Jira issue in merge commit: https://helsinkisolutionoffice.atlassian.net/browse/HAI-1843


Update Unicode data to 9.0.0

Unicode 9.0 is out and we should follow suit!

incidentally, this also begs the question of how to allow folks to update their existing installation…


fix: allow digits in block name

What this PR does / why we need it
We added block circleE2EExtra in stencil-circleci some time ago but it is not working because the block name includes digit which is not matched as valid block name by stencil. This PR introduces digits in block names.

Jira ID
DT-2042

Notes for your reviewers

Coverage remained the same at 40.768% when pulling 9e86b588b3da36539dd802d0b5c1b4f8b04d7c4a on dundee/fix/block-pattern into 30b5101420f11b69419a2da9729a11d72b76f37d on main.


⚠ Bofrost.be has degraded performance

In 3ec3868, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1581 ms

Resolved: Bofrost.be performance has improved in 8ffd8d2 after 25 minutes.


FormWizard needs confirmation step logic

This issue was originally submitted on Trac (#21644). I've added some snippets from the original ticket below, see the link above for the full conversation.

The FormWizard needs to handle a confirmation step that is capable of easily outputting a readonly copy of all step data. It is currently very difficult to support a confirmation step in the FormWizard workflow. The confirmation step needs access to the "final_form_list" created in the render_done() method and passed to the done() method. This is important so the user can see the data he is confirming.
I.e. the confirmation step as presented in the documentation https://docs.djangoproject.com/en/1.6/ref/contrib/formtools/form-wizard/#using-a-different-template-for-each-form does not satisfy the requirements for confirmation since the user cannot actually see his order that he is supposed to confirm.
This could be worked into the render_done() method, or broken into two steps. However, currently, one must duplicate a ton of code to render a confirmation view that outputs a readonly copy of the previous steps.
This could be implemented in a way that allows the developer to "opt out" of the confirmation if the specific FormWizard in question does not need a confirmation step.
EDIT: this cannot currently be performed easily in the done() method override because render_done() calls self.storage.reset() after it calls the done() method.

@thenewguy django-formtools has moved to outside of django contribs, in this separate repository.
this issue is still relevant to you?

@luzfcb This is relevant to me but work has currently taken me in a different direction and I haven't been able to swing back around to this yet unfortunately.

This issue is relevant to me.  Was trying to get this accomplished in the done() method until I saw this.
Validating the wizard as a whole strikes me as a fairly common use-case.  I am not qualified to write a patch but am happy to help with documentation or any other place if this issue is taken back up.
thanks @luzfcb @thenewguy @gchp @jezdez for your work on this...

My solution was to have a ConfirmationForm, which is used as a step. This then requires pulling in all of the previous steps cleaned data for rendering.


chore(deps): pin dependencies

This PR contains the following updates:

Package
Type
Update
Change

caddy
final
pinDigest
-> 15e576e

caddy

pinDigest
-> 15e576e

mongo
final
pinDigest
-> db616c3

mongo-express

pinDigest
-> dcfcf89

node
stage
pinDigest
-> 667dc6e

node
final
pinDigest
-> 0d2712a

registry.access.redhat.com/ubi8/ubi
stage
pinDigest
-> 70fc843

Configuration
📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Thanks for the PR!
Any successful deployments (not always required) will be available below.
Frontend available
Backend available
Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow

I'm not sure this is needed.  We can reopen the PR after a discussion.


Step 4 missing instruction

Step 4 should have at the beginning to open Group Policy Management console and navigate to the 'Change Control' folder beneath your domain

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

ID: 04053f4b-5eb8-6146-6256-14205459a503
Version Independent ID: 8ca210bf-e27f-a8ce-f296-585f28a50a39
Content: Step-by-Step Guide for Microsoft Advanced Group Policy Management 4.0
Content Source: mdop/agpm/step-by-step-guide-for-microsoft-advanced-group-policy-management-40.md
Product: w10
Technology: mdop
GitHub Login: @jamiejdt
Microsoft Alias: jamiet

@officedocsbot assign @e0i

Hello, @phgray
The content is being reviewed in the light of your feedback and we'll keep you posted on updates.
Thank you for providing feedback.

@phgray
Upon your feedback, We have updated the content with relevant changes accordingly. Thanks.


Helm chart for QAT plugin

@obaranov1

#1018 is also a good thing to check. There are samples how this is done (e.g., TCS or NFD projects)

intel/intel-device-plugins-for-kubernetes#1072


add react tutorial

I read and follow the instruction
*Create a todo list in React
*Add checkbox
*Add add button
*Add delete button

Hello Mirna, you have more than 5000 changed files and you have not created the ones that are needed for this project so it could not be reviewed


raidboss: uwu ifrit nails

alert safe zone for woken ifrit dashes, based on reverse-Z order strategy for now
maybe needs to adjust which is safe by the order nail was killed?

Thanks for this!  Yeah, ideally I think this nail trigger should track nail deaths and not nail added combatants so that it can handle reverse-Z and forward-Z (or accidents, regardless of strategy).
If you wanted to make this even fancier, I think it could say:

which intercardinal to go to for the first set of dashes
which way to rotate for the dashes
how far to rotate, depending on where awoken ifrit is

(but not required! I think having a dash safe zone that knows about nail death order would be plenty if that's all you wanted to do)


Initial commit.

Add the initial files to this repository.

All files have been updated and converted to a release.


Fixed boost rosdep

rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO

currently fails with the following error:
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
adma_ros2_driver: Cannot locate rosdep definition for [Boost]

This PR fixes the error.

Thank you.


No Image Available for 2.2.1

Problem/Motivation

The add-on does not start after upgrading to 2.2.1

Expected behavior

Supervisor downloading the updated image.

Actual behavior

Supervisor is unable to find the image to download.
23-10-19 08:27:49 ERROR (SyncWorker_3) [supervisor.docker.manager] Image ghcr.io/hassio-addons/zwave-js-ui/aarch64:2.2.1 does not exist for addon_a0d7b954_zwavejs2mqtt

Steps to reproduce

Upgrade from 2.2.0 to 2.2.1

It does exists:
https://ghcr.io/hassio-addons/zwave-js-ui/aarch64:2.2.1

And has been downloaded quite a lot. Seems like you have a different issue/network issue.
../Frenck


Add --export-texts option

Add a new option --export-texts that extracts several texts from the various webpages and stores them as text-files:

summary.txt contains the series summary from the series list page
*_title.txt contains the title of each chapter
*_notes.txt contains the author notes of each chapter, if present

If --export-texts is used together with --separate, then this changes the names of the chapter-directores: they now have a suffix based on the title.
closes #3

Thank you @olaf-mandel for the multiple PRs you submitted, I'll make sure to have a look at all of them.
I think this is a great addition and all looks good just a few minor notes

All looks good to me. Just a minor point about the interaction between export_texts and separate 😄


Fatal Android 13 problem. Help wanted!

I cannot play the game on my Samsung A51 device. Dragging an game piece the icon becomes a blur effect and the size is wrong. The size is between the playing field size (=correct) and the game piece view size (=half size).
Deinstallation and re-installation does not solve this problem. Restarting the device solves the problem for maybe one or more moves.
API level 33

It works on API level 33 emulator with newest Android Studio. Bug seems to be on device, maybe Samsung's One UI 5.


Day-of-the-week relative shifting failed

I am not able to run the example listed on this page: http://arrow.readthedocs.io/en/latest/
Python 3.6.2 (default, xxxxx)
[GCC 7.1.1 20170630] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import arrow
>>> arw = arrow.utcnow()
>>> arw
<Arrow [2017-11-12T17:05:52.334182+00:00]>
>>> arw.shift(weekday=5)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/Projects/app/env/lib/python3.6/site-packages/arrow/arrow.py", line 461, in shift
    raise AttributeError()
AttributeError
>>>

pip freeze | grep arrow
arrow==0.10.0

duplicate of #450

fixed in #389


Use a stateful ordered_input_names in ORTModel

This allows to avoid repeated regex calls when using IOBinding.
The tests from pytest tests/onnxruntime/test_modeling.py -k "test_compare_to_io_binding" -s all pass.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Not able to use npm-rails in rails 3.2 version. is it compatible?

I want to use this gem for rails 3 application. But due to some reason i am still unable to import the packages from node_modules.
Please guide me if i am missing something.
For example:- I was trying to add the npm package https://www.npmjs.com/package/react-sortable-tree
but when i require this by the statement
require 'react-sortable-tree''
or
require 'react-sortable-tree/react-sortable-tree''
it raise error 404
Thanks in advance..

It does't work this way. The gem can only attach package to window object so you can call it like window.PackageName, but not all packages can work this way. This gem is very old and I don't maintain it anymore. There are better options like webpacker.


@thirdweb-dev/sdk incompatibility issue with ethers v6

I'm encountering an issue related to ethers v6 with @thirdweb-dev/sdk.
The specific error is:
Cannot find module 'ethers/lib/utils' from '../../../node_modules/.pnpm/@thirdweb-dev+sdk@4.0.19_ethers@6.9.0_typescript<EMAIL_ADDRESS>This appears to stem from a change in the file path structure in ethers v6 (refer to this issue for more details).
To work around this, I've temporarily resorted to creating an alias for ethers as "ethers6"<EMAIL_ADDRESS>allowing us to use it throughout the project via import { ethers } from 'ethers6';, while also maintaining ethers v5.7.2.
However, this solution is quite hacky and not ideal. It would be greatly beneficial for @thirdweb-dev/sdk to extend support to ethers v6, especially considering it has reached a stable release. Currently, @thirdweb-dev/sdk is the sole dependency in our stack that is causing compatibility issues with ethers v6.

+1 Is this on the roadmap?

@sebpalluel @bennettl thank you for submitting the issue - we're actively working on an upgrade that will allow to use the SDK alongside ethers v6, v5 and viem.
Will update here with progress updates - cc @jnsdls

I have the same issues in here, hope this will be updated ASAP

Any update on timing?

We're close to opening up the alpha version of our new SDK which will be compatible with ethers 5, 6 and viem.
Here's the alpha tester sign up link if you're interested: https://docs.google.com/forms/d/e/1FAIpQLSfMTy_1ZKPHAGIs8hQAlLfR_Xur1tw5soF_fEumFawdBEhK5g/viewform?usp=send_form
Adding @saminacodes and @jnsdls for 👀

Our lead dev Sameer will be filling this out. Thank you!

@joaquim-verges -- we need Ether 6 compatibility for the SDK, and have filled up the form to get access to the alpha version. Could you please give us access? Thanks!

Hey Acme!
Here are some links to get you started:

Documentation
Repository
Feedback form

Let us know if you have any questions and please join our #sdk-v5-alpha Discord channel to directly speak with the engineers on the project. :D

@joaquim-verges -- we need Ether 6 compatibility for the SDK, and have filled up the form to get access to the alpha version. Could you please give us access? Thanks!

Needed

Please give us an update. I'm about to have torecode half of my marketplace that connects to seaport js at this point. We filled out the form and got nothing in return. At this point its delaying our launch... PLEASE HELP!

Do we have a date when this will be released? We desperately requires Ethers v6 support

hey @hexforcesy @GENERATIONART we have an ethers6adapter in the new version of our SDK that would be the path forward here:
New Docs
Ethers6Adapter
Note that this will only work with the new version of the SDK (currently in alpha, the APIs are about to be stable today or tomorrow and we'll go to beta)

also cc @AcmeNiles @bennettl @juniardys ☝

ETA on beta?

@hexforcesy beta is out today! https://blog.thirdweb.com/changelog/introducing-the-unified-thirdweb-sdk/

posting the ethers6 adapter docs here for anyone looking for it: https://portal.thirdweb.com/typescript/v5/adapters#ethers-v6

the new SDK npm i thirdweb is now stable as v5 it is fully compatible with ethers v5, ethers v6 and viem (including adapters for each)

Thank you
We will deploy this today.
Regards

From: Jonas Daniels @.>
Sent: 29 March 2024 11:54
To: thirdweb-dev/js @.>
Cc: SY @.>; Mention @.>
Subject: Re: [thirdweb-dev/js] @thirdweb-dev/sdk incompatibility issue with ethers v6 (Issue #2057)
the new SDK npm i thirdweb is now stable as v5 it is fully compatible with ethers v5, ethers v6 and viem (including adapters for each)
—
Reply to this email directly, view it on GitHubhttps://github.com/thirdweb-dev/js/issues/2057#issuecomment-2027150369, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQKD7FOQH765PEIJZSYEI6LY2VI73AVCNFSM6AAAAABALIHRNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRXGE2TAMZWHE.
You are receiving this because you were mentioned.Message ID: @.***>


Error while running the python app from the hello world sample

I am starting to learn DAPR. I started off with the first sample 1.Hello world. While running the python app with dapr, i am getting the following error.
Starting Dapr with id pythonapp. HTTP Port: 51906. gRPC Port: 51907
exec: "python3": executable file not found in %!P(MISSING)ATH%!(NOVERB)
I can run python app separately and it works fine. The error indicates that python is not available in path. But I can still execute python from a command prompt. So, not sure why it's not working with dapr. Appreciate your help on this

Hey @shankarmaha can you please refer to this issue and let me know if it still doesn't work.

@shankarmaha is the issue resolved now?

Feel free to re-open if the issue is not resolved using the resources provided above.


Support for import by named package.json in folders (RN)

Suggestion
React Native's Metro builder supports imports like import Button from '@components'
by using a package.json file in the /components folder like
{
    "name": "@components"
}

I'm trying to use https://github.com/IjzerenHein/react-native-bundle-visualizer which uses Haul, but it fails the build on those import statements :)
Not sure how easy or hard this would be. Thanks.

The feature you mention comes from Haste modules used by Facebook (and RN). Feel free to update https://github.com/callstack/haul/blob/next/src/resolvers/HasteResolver.js to support this scenario :)

Closing due to inactivity


[spark] Fix insert overwrite with compact error (#2425)

Purpose
Fix bug: #2425

Linked issue: close #2425

Tests

API and Format

Documentation

@Xiangakun see https://github.com/apache/incubator-paimon/pull/2445

And, when use parquet format, seems some jar conflicts:

Job aborted due to stage failure: Task 0 in stage 3.0 failed 1 times, most recent failure: Lost task 0.0 in stage 3.0 (TID 3) (<IP_ADDRESS> executor driver): java.lang.NoSuchMethodError: org.apache.parquet.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V

Updated, thanks~

@Xiangakun

since the writeBuilder in bucketMode match { } is not the same with the one after collect

Can you explain it in more detail?

And your test case does not cover the real compact action, it will not do a compaction since only one file in each bucket

In fact, the trigger of this bug is that when inserting overwrite partition pk table, restoreFiles + new file can reach num-sorted-run.compaction-trigger (no need compaction to be done before), my test can just cover it.


Excel Request

Hey, I came with an idea to keep the record in local drive while the "PINNED" scanner is running & showing results continuously there is no record that a person can keep that which stocks were given at what time.
Kindly enable live excel exporting as an optional feature, it'd be disabled by default if someone wants to keep record then they can manually enable it. This feature would be helpful for people to keep track at the times when stocks perform.
The rows in excel should have the record of date & time, and consolidation range. Rest all according to the the default data provided by the screener.
I hope this happens soon. God bless your great work 😊

@keithevans786 - this is done. You should see all the data you need by turning on the setting in pkscreener.ini
alwaysexporttoexcel = y

Please note that by default it's turned off to improve performance.


Fixes #1411 by adding a separate query fr DB2 on AS400

Environment
Liquibase Version: 4.0.0
Database Vendor & Version: DB2 for AS400
Pull Request Type

[X ] Bug fix (non-breaking change which fixes an issue.)
[ ] Enhancement/New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
See https://github.com/liquibase/liquibase/issues/1411
Fast Track PR Acceptance Checklist:

[X ] Build is successful and all new and existing tests pass
[ ] Added Unit Test(s)
[ ] Added Integration Test(s)
[ ] Documentation Updated

┆Issue is synchronized with this Jira Story by Unito
┆Fix Versions: Community 4.x

@molivasdat is there anything else needed to get this PR merged?

Hi @wardvijf Thanks for reaching out again.  If you have a unit test to add that would be great. I don't have a DB2 on i to test out this fix with for integration testing either.  I'll get with the team to see where this can be integrated.

@molivasdat can you point me to an example test? As far as I can see, none of the existing as400/db code has unit tests?

@molivasdat can you point me to an example test? As far as I can see, none of the existing as400/db code has unit tests?

@molivasdat just a friendly reminder, as we're waiting for this one ;-)

Hi @wardvijf As far as unit tests, if there are none for db2 on i, then it would be great to be the first.
https://liquibase.jira.com/wiki/spaces/LB/pages/1274937609/How+to+Write+Liquibase+Core+Unit+Tests
or a functional test for those with access to a db2 on i system
https://liquibase.jira.com/wiki/spaces/LB/pages/1276608569/How+to+Write+Liquibase+Integration+Tests
Thanks for the reminder too.  We are working on releasing 4.3.0 in the final testing phase.  It won't make that one but looking at what fits in the next release.

Hi @molivasdat, I have been looking into the Liquibase code to write some tests for this. I did not find a way to write a standard unit test for it because the changes are made deep down in an private nested class (JdbcDatabaseSnapshot.CachingDatabaseMetaData.ForeignKeysResultSetCache).
Writing an integration test is also not possible, because by default Liquibase does not support db2i as a database, only the standard db2 (although there is some db2i specific code in the core). An extension is available for db2i (see https://github.com/liquibase/liquibase-db2i). I have also been thinking if we can do the change over there, but since the change is needed deep down in the Liquibase core (ForeignKeysResultSetCache), I don't think that's possible? Maybe @r2liquibase knows?
Side note: the existing db2i specific code that is already present in ForeignKeysResultSetCache is also not tested (see https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/snapshot/JdbcDatabaseSnapshot.java#L1533 )
How can we proceed with this one? We really want to upgrade to Liquibase 4.x, but this is blocking us right now.

Hi @wardvijf Thanks for the detailed feedback.  I'll bring this issue up in our development meeting and get back to you with options.

@molivasdat ok thanks. Do you have an idea of timing?

@molivasdat any updates?

Apologies, it has not made it into the branch for 4.4.0.  We are starting our focus on issues/PRs that are preventing folks from moving to 4.x.

@molivasdat do you expect anything from my side for this to be merged?


Is there a version of this that works with 2.6?

Question is in the title.

Yep! You can find it on the v1 branch of the repo. Just follow the install instructions.
Hope that helps!
-Tyler


Factories may return NULL

Thank you for this PR. Can we also add a test that will cover a use case which would break without this?

Done

Thanks for the additional test. 👍 What I wonder though is whether it actually makes sense for a factory to return null or if that isn't a case where we should throw an exception (and maybe catch and transform it into an error afterwards). 🤔 Do you have a real world use case where returning null is the expected behaviour?

Yes, i think it does makes sense. I do have many cases where the factory returns null. Most common scenario is when I have a collection type of object that can hold 1 or more elements. In that case i want to have it as null if there are no elements to store in the collection object

A last question for clarification: This does work with the 0.2.0 release, but breaks on the latest main branch?

Returning null in the factory works on 0.2.0 as there is no strong types and it stopped working since #119


Bolt should support prompting for the password

Putting a password on the command line is not a best practice. Perhaps there should be a -P option or -p - to support prompting for a password.

Yep, this is filed under BOLT-28


Prod 193/enable navbar dailydeck

✅ Add Linear ID (e.g., PROD-123) to PR title to automatically link issue

Description

User can skip daily deck and it will be shown in the expiring soon section user can access it again from there.

What are the steps to test that this code is working?
Able to skip daily deck and open again from the expiring soon section.
Screen shots or recordings for UI changes

@yash431garg this looks great to me.
@Yihwan how do we want to record QuestionAnswer.status that are not answered because the user clicks home? Some options 'Viewed', 'Skipped', 'Exited'. Currently, this PR uses QuestionAnswer.status = Viewed for this case.

happy to defer to devs on this since i don't have a specific ask in mind right now. if there is a specific ask later (e.g., we want to differentiate between exit actions for analytics purposes) i can submit a new task if that works

There's a different issue preventing me from testing a second time. I think because I already answered a daily deck today then created another, it now thinks I've already answered the second deck? I don't think we would expect to see two daily decks in prod but can you look into this behavior?
https://github.com/user-attachments/assets/355b48fa-a344-44c1-ba64-93eb1b0e28ce

@Yihwan can you please test this again? The expected behavior is a little different than what's on Linear. Users are auto redirected to complete daily deck if they have not seen any of the questions. Otherwise, it will only show up in expiring soon. Regardless of refreshing, etc.

@yash431garg can you fix conflicts?


Update LoginForm.cs

Changed the information to reflect the updated version in the main page of DiscordSharp since the old method would not build and compile.

👍 thank you very much


1543-msk added

ГБОУ Школа №1543 added

@yvainr First stage of verification passed, official domain is gym1543.mskobr.ru as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://gym1543.mskobr.ru/articles/823

@yvainr Thank you for your patience while waiting for a review and processing your request. Pull request merged.

Thank you, but my school email (it ends on<EMAIL_ADDRESS>still doesn't work, probably you need to add 1543.msk.ru domain?
Thank you in advance.


Update README.md

Minor typo and some more details on which package file to choose for VS Code on Linux.

Thank you!


Copy over link check scripts

Changes

/kind

Fixes #

Release Note

Docs

Link checking functionality was actually removed. So these scripts serve no purpose: https://github.com/knative/test-infra/pull/2476


when trying to pip install i get this error in cmd 'C:\Python310\Scripts\pygmentize.exe' -> 'C:\Python310\Scripts\pygmentize.exe.deleteme'

System OS
Windows
Python Version
3.7 (CPython)
Install Source
pip / PyPi
Install version / commit hash
"package not found "
Expected Behavior vs Actual Behavior
install but it didnt can use any commands related to it
Steps to reproduce
the litteral first step
Traceback
'C:\\Python310\\Scripts\\pygmentize.exe' -> 'C:\\Python310\\Scripts\\pygmentize.exe.deleteme'

Other details
help

pip is trying to install this library in a system folder that you do not have permission to write to. It suggests using --user so that it will be installed in a directory owned by you rather than one of the system directories.

https://www.reddit.com/r/learnpython/comments/bishfp/permission_denied_error_while_trying_to_install/

pip is trying to install this library in a system folder that you do not have permission to write to. It suggests using --user so that it will be installed in a directory owned by you rather than one of the system directories.

https://www.reddit.com/r/learnpython/comments/bishfp/permission_denied_error_while_trying_to_install/

im sure but there is no error but its still not recognized

Have you tried installing it on a virtual environment?


fix(scan): false positive import in multiline comment

Description
Fix #4027 (again), see new comment https://github.com/vitejs/vite/issues/4027#issuecomment-873232983
The PR first removes multiline comments content, to avoid false positives in this case:
<script lang="ts">
/*
import this from "non-existant"
*/
</script>

This is still not bullet proof, as it could lead to the removal of some misses like in
<script lang="ts">
const open = "/*"
import this from "non-existant"
const close = "*/"
</script>

See this comment to see why this shouldn't be an issue. I think it is better to miss this one than to detect commented out imports
https://github.com/vitejs/vite/blob/eb2e41b098fb3d5f367c1f4fdfcad12f7538ac16/packages/vite/src/node/optimizer/scan.ts#L32
What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Added also a guard against commented out imports with single-line comments (see https://github.com/vitejs/vite/issues/4027#issuecomment-873290600)

Added some more tests and reverted the change to require a space after type. Not giving false positives in these tests can be done in another PR so we can merge this one (see skipped tests).


[Bug] Aborted (core dumped) after completing single inference

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[X] 2. The bug has not been fixed in the latest version.
[x] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
After each multi-images inference done, the core will be dumped and stopped. Streaming output is not available.
Reproduction
`
from lmdeploy import pipeline, TurbomindEngineConfig, GenerationConfig, VisionConfig
from lmdeploy.vl import load_image
import os
import json
import ast
import pandas as pd
from tqdm import tqdm
import setproctitle
setproctitle.setproctitle("TJ-InternVL_Multi_Images")
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
model = '/data2/zhangxin/model_zoo/OpenGVLab/InternVL2-40B'
pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
folder_path = "/data1/ouyangtianjian/ALL_DATA_MIXED_NEW"
for task in os.listdir(folder_path):
if "Socioeconomic" not in task and "Retrieval" not in task:
continue
task_name = task.split("_formatted")[0]
done_len = 0
if os.path.exists(f"/data1/ouyangtianjian/ALL_DATA_MIXED_NEW/results_new_multi_images/InternVL2-40B/{task_name}_test_result.jsonl"):
    with open(f"/data1/ouyangtianjian/ALL_DATA_MIXED_NEW/results_new_multi_images/InternVL2-40B/{task_name}_test_result.jsonl", "r") as f:
        done_lines = f.readlines()
    done_len = len(done_lines)

with open(f"/data1/ouyangtianjian/ALL_DATA_MIXED_NEW/{task_name}_formatted/{task_name}_data_test_1000.json", "r") as f:
    test_data_1000 = json.load(f)

for cell in tqdm(test_data_1000[done_len:]):
    try:
        question = cell["conversations"][0]["value"].replace("<image>", "{IMAGE_TOKEN}")
        image_paths = cell["image"]
        images = [load_image(image_path) for image_path in image_paths]

        response = pipe((question, images), use_tqdm=False, gen_config=GenerationConfig(temperature=0.3))

        with open(f"/data1/ouyangtianjian/ALL_DATA_MIXED_NEW/results_new_multi_images/InternVL2-40B/{task_name}_test_result.jsonl", "a") as fout:
            fout.write(json.dumps({
                "id": cell["sample_id"],
                "true_label": cell["conversations"][1]["value"],
                "response":  response.text
            }) + "\n")
    except Exception as e:
        print("ERROR:", e)

`
Environment
absl-py==2.1.0
accelerate==0.33.0
addict==2.4.0
aiofiles==24.1.0
aiohappyeyeballs==2.4.0
aiohttp==3.10.5
aiosignal==1.3.1
altair==5.4.1
annotated-types==0.7.0
anyio==4.4.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1698341106958/work
async-lru==2.0.4
async-timeout==4.0.3
attrs==24.2.0
autocommand==2.2.2
babel==2.16.0
backports.tarfile==1.2.0
beautifulsoup4==4.12.3
bitsandbytes==0.41.0
bleach==6.1.0
blinker==1.8.2
cachetools==5.5.0
certifi==2024.8.30
cffi==1.17.0
charset-normalizer==3.3.2
click==8.1.7
cmake==3.25.0
colorama==0.4.6
comm @ file:///home/conda/feedstock_root/build_artifacts/comm_1710320294760/work
contourpy==1.3.0
cycler==0.12.1
debugpy @ file:///croot/debugpy_1690905042057/work
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work
decord==0.6.0
deepspeed==0.13.5
defusedxml==0.7.1
einops==0.6.1
einops-exts==0.0.4
exceptiongroup @ file:///home/conda/feedstock_root/build_artifacts/exceptiongroup_1720869315914/work
executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1725214404607/work
fastapi==0.112.2
fastjsonschema==2.20.0
ffmpy==0.4.0
filelock==3.15.4
fire==0.6.0
flash_attn==2.3.6
fonttools==4.53.1
fqdn==1.5.1
frozenlist==1.4.1
fsspec==2024.6.1
future==1.0.0
gdown==5.2.0
gitdb==4.0.11
GitPython==3.1.43
gradio==3.35.2
gradio_client==0.2.9
grpcio==1.66.1
h11==0.14.0
hjson==3.1.0
httpcore==1.0.5
httpx==0.27.2
huggingface-hub==0.24.6
idna==3.8
imageio==2.35.1
importlib_metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1724187233579/work
importlib_resources==6.4.4
inflect==7.3.1
ipdb==0.13.13
ipykernel @ file:///home/conda/feedstock_root/build_artifacts/ipykernel_1719845459717/work
ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1701831663892/work
ipywidgets @ file:///home/conda/feedstock_root/build_artifacts/ipywidgets_1724334859652/work
isoduration==20.11.0
jaraco.context==5.3.0
jaraco.functools==4.0.1
jaraco.text==3.12.1
jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1696326070614/work
Jinja2==3.1.4
joblib==1.4.2
json5==0.9.25
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter==1.1.1
jupyter-console==6.6.3
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter_client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1716472197302/work
jupyter_core @ file:///home/conda/feedstock_root/build_artifacts/jupyter_core_1710257447442/work
jupyter_server==2.14.2
jupyter_server_terminals==0.5.3
jupyterlab==4.2.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_widgets_1724331334887/work
kiwisolver==1.4.5
latex2mathml==3.77.0
linkify-it-py==2.0.3
lit==15.0.7
lmdeploy==0.5.3
Markdown==3.7
markdown-it-py==2.2.0
markdown2==2.5.0
MarkupSafe==2.1.5
matplotlib==3.9.2
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1713250518406/work
mdit-py-plugins==0.3.3
mdurl==0.1.2
mistune==3.0.2
mmcls==0.25.0
mmcv==2.2.0
mmcv-full==1.6.2
mmengine==0.10.5
mmengine-lite==0.10.4
mmsegmentation==0.30.0
model-index==0.1.11
more-itertools==10.3.0
mpmath==1.3.0
multidict==6.0.5
narwhals==1.6.0
nbclient==0.10.0
nbconvert==7.16.4
nbformat==5.10.4
nest_asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1705850609492/work
networkx==3.2.1
ninja==<IP_ADDRESS>
notebook==7.2.2
notebook_shim==0.2.4
numpy==1.26.4
nvidia-cublas-cu12==<IP_ADDRESS>
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==<IP_ADDRESS>
nvidia-cufft-cu12==<IP_ADDRESS>
nvidia-curand-cu12==<IP_ADDRESS>
nvidia-cusolver-cu12==<IP_ADDRESS>
nvidia-cusparse-cu12==<IP_ADDRESS>
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.6.68
nvidia-nvtx-cu12==12.1.105
opencv-python==<IP_ADDRESS>
opencv-python-headless==<IP_ADDRESS>
opendatalab==0.0.10
openmim==0.3.9
openxlab==0.0.11
ordered-set==4.1.0
orjson==3.10.7
overrides==7.7.0
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1718189413536/work
pandas==2.2.2
pandocfilters==1.5.1
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1712320355065/work
peft==0.11.1
pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1706113125309/work
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
pillow==10.4.0
platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1715777629804/work
prettytable==3.11.0
prometheus_client==0.20.0
prompt_toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1718047967974/work
protobuf==5.28.0
psutil @ file:///home/conda/feedstock_root/build_artifacts/psutil_1719274564771/work
ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
pure_eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1721585709575/work
py-cpuinfo==9.0.0
pyarrow==17.0.0
pycocoevalcap==1.2
pycocotools==2.0.8
pycparser==2.22
pycryptodome==3.20.0
pydantic==2.8.2
pydantic_core==2.20.1
pydeck==0.9.1
pydub==0.25.1
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1714846767233/work
pynvml==11.5.3
pyparsing==3.1.4
PySocks==1.7.1
python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1709299778482/work
python-json-logger==2.0.7
python-multipart==0.0.9
pytz==2024.1
PyYAML==6.0.2
pyzmq @ file:///croot/pyzmq_1705605076900/work
referencing==0.35.1
regex==2024.7.24
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==13.8.0
rpds-py==0.20.0
safetensors==0.4.4
scikit-learn==1.5.1
scipy==1.13.1
semantic-version==2.10.0
Send2Trash==1.8.3
sentencepiece==0.1.99
setproctitle==1.3.3
shortuuid==1.0.13
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
smmap==5.0.1
sniffio==1.3.1
soupsieve==2.6
stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1669632077133/work
starlette==0.38.3
streamlit==1.38.0
streamlit-image-select==0.6.0
svgwrite==1.4.3
sympy==1.13.2
tabulate==0.9.0
tenacity==8.5.0
tensorboard==2.17.1
tensorboard-data-server==0.7.2
tensorboardX==<IP_ADDRESS>
termcolor==2.4.0
terminado==0.18.1
terminaltables==3.1.10
threadpoolctl==3.5.0
tiktoken==0.7.0
timm==0.9.12
tinycss2==1.3.0
tokenizers==0.15.1
toml==0.10.2
tomli==2.0.1
torch==2.3.1
torchaudio==2.3.1+cu121
torchvision==0.18.1
tornado @ file:///home/conda/feedstock_root/build_artifacts/tornado_1724955920300/work
tqdm==4.66.5
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1713535121073/work
transformers==4.37.2
triton==2.3.1
typeguard==4.3.0
types-python-dateutil==<IP_ADDRESS>40821
typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1717802530399/work
tzdata==2024.1
uc-micro-py==1.0.3
uri-template==1.3.0
urllib3==2.2.2
uvicorn==0.30.6
watchdog==4.0.2
wavedrom==2.0.3.post3
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1704731205417/work
webcolors==24.8.0
webencodings==0.5.1
websocket-client==1.8.0
websockets==13.0.1
Werkzeug==3.0.4
widgetsnbextension @ file:///home/conda/feedstock_root/build_artifacts/widgetsnbextension_1724331337528/work
yacs==0.1.8
yapf==0.40.1
yarl==1.9.6
zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1724730934107/work

Error traceback
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
[WARNING] gemm_config.in is not found; using default GEMM algo
  0%|▏                                                                                | 1/721 [00:09<1:59:20,  9.95s/it]
Aborted (core dumped)
GPU 0 has no active processes or is corrupted. Restarting associated process.
Restarted process on GPU 0: bash -c 'source /usr/local/anaconda3/etc/profile.d/conda.sh && conda activate internvl && cd /data1/ouyangtianjian/InternVL && python /data1/ouyangtianjian/Intern
VL/InternVL_Multi_Images.py'
Flash Attention 2.0 only supports torch.float16 and torch.bfloat16 dtypes. No dtype was provided, you should run training or inference using Automatic Mixed-Precision via the `with torch.aut
ocast(device_type='torch_device'):` decorator.
Flash Attention 2.0 only supports torch.float16 and torch.bfloat16 dtypes. No dtype was provided, you should run training or inference using Automatic Mixed-Precision via the `with torch.aut
ocast(device_type='torch_device'):` decorator.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
[WARNING] gemm_config.in is not found; using default GEMM algo
  0%|▏                                                                                | 1/720 [00:04<57:50,  4.83s/it]
Aborted (core dumped)
GPU 0 has no active processes or is corrupted. Restarting associated process.
Restarted process on GPU 0: bash -c 'source /usr/local/anaconda3/etc/profile.d/conda.sh && conda activate internvl && cd /data1/ouyangtianjian/InternVL && python /data1/ouyangtianjian/Intern
VL/InternVL_Multi_Images.py'
Flash Attention 2.0 only supports torch.float16 and torch.bfloat16 dtypes. No dtype was provided, you should run training or inference using Automatic Mixed-Precision via the `with torch.aut
ocast(device_type='torch_device'):` decorator.
Flash Attention 2.0 only supports torch.float16 and torch.bfloat16 dtypes. No dtype was provided, you should run training or inference using Automatic Mixed-Precision via the `with torch.aut
ocast(device_type='torch_device'):` decorator.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
[WARNING] gemm_config.in is not found; using default GEMM algo
  0%|▏                                                                                | 1/719 [00:09<1:50:01,  9.19s/it]
Aborted (core dumped)
GPU 0 has no active processes or is corrupted. Restarting associated process.
Restarted process on GPU 0: bash -c 'source /usr/local/anaconda3/etc/profile.d/conda.sh && conda activate internvl && cd /data1/ouyangtianjian/InternVL && python /data1/ouyangtianjian/Intern
VL/InternVL_Multi_Images.py'
Flash Attention 2.0 only supports torch.float16 and torch.bfloat16 dtypes. No dtype was provided, you should run training or inference using Automatic Mixed-Precision via the `with torch.aut
ocast(device_type='torch_device'):` decorator.
Flash Attention 2.0 only supports torch.float16 and torch.bfloat16 dtypes. No dtype was provided, you should run training or inference using Automatic Mixed-Precision via the `with torch.aut
ocast(device_type='torch_device'):` decorator.
^CTraceback (most recent call last):
  File "/data1/ouyangtianjian/InternVL/InternVL_Multi_Images_AutoRecover.py", line 58, in <module>
    monitor_gpus(gpu_processes)
  File "/data1/ouyangtianjian/InternVL/InternVL_Multi_Images_AutoRecover.py", line 55, in monitor_gpus
    time.sleep(check_interval)

hi, do you solve this problem ? I also encounter this problem.


Cannot fund additional mints when one is in database

As soon as one has funded any mint, it is not possible to fund additional ones without explicitly using the --host flag.
So regardless of the MINT_URL / MINT_HOST+MINT_PORT, it will use the one mint that is already in the database. This is because of the new multimint UI where the user gets asked which mint they want to use. This UI only considers mints for which there are already proofs available, not the one that is actually set as an env variable.

I already have a proposal for a fix: #205.
Also thought about adding a test for it but I'm not deep enough into the code yet to know how I would do that in this case.

Was fixed in #210


[BUG] 启动完成时出现的奇异错误

Linux 986fae5cc3f1 <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 Linux
PHP 8.0.13 (cli) (built: Nov 30 2021 08:08:04) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
donjan-deng/hyperf-casbin               3.18.0    An authorization library that supports access control models like ACL, RBAC, ABAC in hyperf.
hyperf/amqp                             v2.2.20   A amqplib for hyperf.
hyperf/async-queue                      v2.2.8    A async queue component for hyperf.
hyperf/cache                            v2.2.15   A cache component for hyperf.
hyperf/command                          v2.2.9    Command for hyperf
hyperf/config                           v2.2.0    An independent component that provides configuration container.
hyperf/config-center                    v2.2.18   The abstraction component of config center
hyperf/constants                        v2.2.15   A constants component for hyperf.
hyperf/contract                         v2.2.8    The contracts of Hyperf.
hyperf/crontab                          v2.2.10   A crontab component for Hyperf.
hyperf/database                         v2.2.20   A flexible database library.
hyperf/db-connection                    v2.2.0    A hyperf db connection handler for hyperf/database.
hyperf/devtool                          v2.2.5    A Devtool for Hyperf.
hyperf/di                               v2.2.20   A DI for Hyperf.
hyperf/dispatcher                       v2.2.0    A HTTP Server for Hyperf.
hyperf/engine                           v1.1.6
hyperf/event                            v2.2.0    an event manager that implements PSR-14.
hyperf/exception-handler                v2.2.0    Exception handler for hyperf
hyperf/filesystem                       v2.2.17   flysystem integration for hyperf
hyperf/framework                        v2.2.14   A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and m...
hyperf/guzzle                           v2.2.0    Swoole coroutine handler for guzzle
hyperf/http-message                     v2.2.19   microservice framework base on swoole
hyperf/http-server                      v2.2.19   A HTTP Server for Hyperf.
hyperf/logger                           v2.2.14   A logger component for hyperf.
hyperf/macroable                        v2.2.13   Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                           v2.2.0    An independent component that use to operate and manage memory.
hyperf/model-listener                   v2.2.14   A model listener for Hyperf.
hyperf/paginator                        v2.2.0    A paginator component for hyperf.
hyperf/pool                             v2.2.0    An independent universal connection pool component.
hyperf/process                          v2.2.20   A process component for hyperf.
hyperf/redis                            v2.2.9    A redis component for hyperf.
hyperf/resource                         v2.2.17   A api resource component for hyperf.
hyperf/server                           v<IP_ADDRESS> A base server library for Hyperf.
hyperf/snowflake                        v2.2.0    A snowflake library
hyperf/socketio-server                  v2.2.19   Socket.io implementation for hyperf
hyperf/testing                          v2.2.20   Testing for hyperf
hyperf/translation                      v2.2.13   An independent translation component, forked by illuminate/translation.
hyperf/utils                            v2.2.19   A tools package that could help developer solved the problem quickly.
hyperf/validation                       v2.2.13   hyperf validation
hyperf/watcher                          v<IP_ADDRESS>  Hot reload watcher for Hyperf
hyperf/websocket-server                 v2.2.14   A websocket server library for Hyperf.

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.6.2
Built => Dec  8 2021 05:40:12
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1k  25 Mar 2021
dtls => enabled
http2 => enabled
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

Descrption:
服务刚启动后前面几个请求过来部分请求会异常
第1种异常:
|| 2021-12-16T06:35:57.310849+00:00 || sys || ERROR || Hyperf\Database\Connection::prepared(): Argument #1 ($statement) must be of type PDOStatement, bool given, called in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 282[974] in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php || [] || []
|| 2021-12-16T06:35:57.311062+00:00 || sys || ERROR || #0 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(282): Hyperf\Database\Connection->prepared(false)
#1 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(1075): Hyperf\Database\Connection->Hyperf\Database\{closure}('select count(*)...', Array)
#2 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(1039): Hyperf\Database\Connection->runQueryCallback('select count(*)...', Array, Object(Closure))
#3 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(289): Hyperf\Database\Connection->run('select count(*)...', Array, Object(Closure))
#4 /www/wanhe-core/server/vendor/hyperf/db-connection/src/Connection.php(68): Hyperf\Database\Connection->select('select count(*)...', Array, true)
#5 /www/wanhe-core/server/vendor/hyperf/db-connection/src/Traits/DbConnection.php(41): Hyperf\DbConnection\Connection->__call('select', Array)
#6 /www/wanhe-core/server/vendor/hyperf/database/src/Query/Builder.php(2736): Hyperf\DbConnection\Connection->select('select count(*)...', Array, true)
#7 /www/wanhe-core/server/vendor/hyperf/database/src/Query/Builder.php(1878): Hyperf\Database\Query\Builder->runSelect()
#8 /www/wanhe-core/server/vendor/hyperf/database/src/Query/Builder.php(2901): Hyperf\Database\Query\Builder->Hyperf\Database\Query\{closure}()
#9 /www/wanhe-core/server/vendor/hyperf/database/src/Query/Builder.php(1879): Hyperf\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#10 /www/wanhe-core/server/vendor/hyperf/database/src/Query/Builder.php(2777): Hyperf\Database\Query\Builder->get()
#11 /www/wanhe-core/server/vendor/hyperf/database/src/Query/Builder.php(1928): Hyperf\Database\Query\Builder->runPaginationCountQuery(Array)
#12 /www/wanhe-core/server/vendor/hyperf/database/src/Model/Builder.php(738): Hyperf\Database\Query\Builder->getCountForPagination()
#13 /www/wanhe-core/server/app/Plugins/Course/Service/CourseService.php(101): Hyperf\Database\Model\Builder->paginate()
#14 /www/wanhe-core/server/runtime/container/proxy/App_Plugins_Course_Controller_Api_CourseController.proxy.php(54): App\Plugins\Course\Service\CourseService->getList(1, 10028, Array, Array, 1, '', true)
#15 /www/wanhe-core/server/vendor/hyperf/http-server/src/CoreMiddleware.php(161): App\Plugins\Course\Controller\Api\CourseController->list()
#16 /www/wanhe-core/server/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatched), Object(Hyperf\HttpMessage\Server\Request))
#17 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#18 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#19 /www/wanhe-core/server/vendor/hyperf/validation/src/Middleware/ValidationMiddleware.php(83): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#20 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\Validation\Middleware\ValidationMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#21 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#22 /www/wanhe-core/server/app/Http/Middleware/PluginMiddleware.php(49): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#23 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Http\Middleware\PluginMiddleware->process(Object(Hyperf\HttpMessage\Server
\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#24 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#25 /www/wanhe-core/server/app/Http/Middleware/AuthMiddleware.php(88): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#26 /www/wanhe-core/server/app/Http/Middleware/AuthMiddleware.php(58): App\Http\Middleware\AuthMiddleware->checkLogin(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler), 'App\\Plugins\\Cou...', 'list')
#27 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Http\Middleware\AuthMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#28 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#29 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request)
)
#30 /www/wanhe-core/server/vendor/hyperf/http-server/src/Server.php(117): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array,
 Object(Hyperf\HttpServer\CoreMiddleware))
#31 {main} || [] || []

第2种异常:
Warning: Wrong COM_STMT_PREPARE response size. Received 1 in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 282
|| 2021-12-16T06:39:55.764495+00:00 || sql || INFO || [2.16] select `column_key` as `column_key`, `column_name` as `column_name`, `data_type` as `data_type`, `column_comment` as `column_comment`, `extra` as `extra`, `column_type` as `column_type` from information_schema.columns where `table_schema` = 'course' and `table_name` = 'course' order by ORDINAL_POSITION || [] || []

Warning: Packets out of order. Expected 1 received 2. Packet size=23 in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 282
|| 2021-12-16T06:39:55.783552+00:00 || sys || WARNING || Database connection refreshing. || [] || []
|| 2021-12-16T06:39:55.786840+00:00 || sys || WARNING || Database connection refreshed. || [] || []
|| 2021-12-16T06:39:55.789335+00:00 || sql || INFO || [23.2] select count(*) as aggregate from `course` where 0 = 1 and `status` = '1' || [] || []

Notice: PDO::prepare(): Send of 52 bytes failed with errno=32 Broken pipe in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 282

Notice: PDOStatement::execute(): Send of 25 bytes failed with errno=32 Broken pipe in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 286
|| 2021-12-16T06:39:55.822020+00:00 || sys || WARNING || Database connection refreshing. || [] || []
|| 2021-12-16T06:39:55.824337+00:00 || sys || WARNING || Database connection refreshed. || [] || []
|| 2021-12-16T06:39:55.825174+00:00 || sql || INFO || [20.45] select * from `plugins` where `key` = 'Course' limit 1 || [] || []
|| 2021-12-16T06:39:55.869558+00:00 || sys || ERROR || Hyperf\Database\Connection::prepared(): Argument #1 ($statement) must be of type PDOStatement, bool given, called in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 282[974] in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php || [] || []
|| 2021-12-16T06:39:55.869726+00:00 || sys || ERROR || #0 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(282): Hyperf\Database\Connection->prepared(false)
#1 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(1075): Hyperf\Database\Connection->Hyperf\Database\{closure}('select `column_...', Array)
#2 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(1039): Hyperf\Database\Connection->runQueryCallback('select `column_...', Array, Object(Closure))
#3 /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php(289): Hyperf\Database\Connection->run('select `column_...', Array, Object(Closure))
#4 /www/wanhe-core/server/vendor/hyperf/database/src/Schema/MySqlBuilder.php(46): Hyperf\Database\Connection->select('select `column_...', Array)
#5 /www/wanhe-core/server/vendor/hyperf/database/src/Schema/Schema.php(47): Hyperf\Database\Schema\MySqlBuilder->getColumnListing('integral_gift')
#6 /www/wanhe-core/server/app/Kernel/Model/BuilderQuery.php(33): Hyperf\Database\Schema\Schema::__callStatic('getColumnListin...', Array)
#7 /www/wanhe-core/server/vendor/hyperf/utils/src/Functions.php(279): App\Kernel\Model\BuilderQuery->ignoreSelect(Array)
#8 /www/wanhe-core/server/vendor/hyperf/database/src/Model/Builder.php(145): call(Array, Array)
#9 /www/wanhe-core/server/app/Plugins/Integral/Service/GiftService.php(70): Hyperf\Database\Model\Builder->__call('ignoreSelect', Array)
#10 /www/wanhe-core/server/runtime/container/proxy/App_Plugins_Integral_Http_Controller_Api_GiftController.proxy.php(48): App\Plugins\Integral\Service\GiftService->getList(Array, 5, '', true)
#11 /www/wanhe-core/server/vendor/hyperf/http-server/src/CoreMiddleware.php(161): App\Plugins\Integral\Http\Controller\Api\GiftController->index()
#12 /www/wanhe-core/server/vendor/hyperf/http-server/src/CoreMiddleware.php(113): Hyperf\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatched), Object(Hyperf\HttpMessage\Server\Request))
#13 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#14 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#15 /www/wanhe-core/server/vendor/hyperf/validation/src/Middleware/ValidationMiddleware.php(83): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#16 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): Hyperf\Validation\Middleware\ValidationMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#17 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#18 /www/wanhe-core/server/app/Http/Middleware/PluginMiddleware.php(49): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#19 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Http\Middleware\PluginMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#20 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#21 /www/wanhe-core/server/app/Http/Middleware/AuthMiddleware.php(88): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#22 /www/wanhe-core/server/app/Http/Middleware/AuthMiddleware.php(58): App\Http\Middleware\AuthMiddleware->checkLogin(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler), 'App\\Plugins\\Int...', 'index')
#23 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(64): App\Http\Middleware\AuthMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#24 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#25 /www/wanhe-core/server/vendor/hyperf/dispatcher/src/HttpDispatcher.php(40): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request)
)
#26 /www/wanhe-core/server/vendor/hyperf/http-server/src/Server.php(117): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array, Object(Hyperf\HttpServer\CoreMiddleware))
#27 {main} || [] || []

Notice: PDO::prepare(): Send of 49 bytes failed with errno=32 Broken pipe in /www/wanhe-core/server/vendor/hyperf/database/src/Connection.php on line 282
|| 2021-12-16T06:39:55.894757+00:00 || sys || WARNING || Database connection refreshing. || [] || []
|| 2021-12-16T06:39:55.896420+00:00 || sys || WARNING || Database connection refreshed. || [] || []

在linux环境下试试

@limingxinleo 换到mac还是不行, 前端发来5个请求，有时候2个500，有时候1个500，剩余的就正常。异常就是上面那2个随机性来。
前端刷新多1次就是下面这样了
PHP Notice:  Hyperf\Database\Connection::setPdo(): Send of 5 bytes failed with errno=32 Broken pipe in /Users/wangdong/web/phpProject/wanhe/server/vendor/hyperf/database/src/Connection.php on line 647

Notice: Hyperf\Database\Connection::setPdo(): Send of 5 bytes failed with errno=32 Broken pipe in /Users/wangdong/web/phpProject/wanhe/server/vendor/hyperf/database/src/Connection.php on line 647
[2021-12-18 00:43:05 $6069.0]   WARNING Server::check_worker_exit_status(): worker(pid=6077, id=7) abnormal exit, status=0, signal=10
PHP Notice:  Hyperf\Database\Connection::setPdo(): Send of 5 bytes failed with errno=32 Broken pipe in /Users/wangdong/web/phpProject/wanhe/server/vendor/hyperf/database/src/Connection.php on line 647

Notice: Hyperf\Database\Connection::setPdo(): Send of 5 bytes failed with errno=32 Broken pipe in /Users/wangdong/web/phpProject/wanhe/server/vendor/hyperf/database/src/Connection.php on line 647
[2021-12-18 00:43:05 $6069.0]   WARNING Server::check_worker_exit_status(): worker(pid=6076, id=6) abnormal exit, status=0, signal=10

uname -a && php -v && composer info | grep hyperf && php --ri swoole
Darwin wangdongdeMacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64
PHP 8.0.13 (cli) (built: Nov 19 2021 08:51:23) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies
donjan-deng/hyperf-casbin               3.18.0    An authorization library that supports access control models like ACL, RBAC, ABAC in hyperf.
hyperf/amqp                             v2.2.20   A amqplib for hyperf.
hyperf/async-queue                      v2.2.8    A async queue component for hyperf.
hyperf/cache                            v2.2.15   A cache component for hyperf.
hyperf/command                          v2.2.9    Command for hyperf
hyperf/config                           v2.2.0    An independent component that provides configuration container.
hyperf/config-center                    v2.2.18   The abstraction component of config center
hyperf/constants                        v2.2.15   A constants component for hyperf.
hyperf/contract                         v2.2.8    The contracts of Hyperf.
hyperf/crontab                          v2.2.10   A crontab component for Hyperf.
hyperf/database                         v2.2.20   A flexible database library.
hyperf/db-connection                    v2.2.0    A hyperf db connection handler for hyperf/database.
hyperf/devtool                          v2.2.5    A Devtool for Hyperf.
hyperf/di                               v2.2.20   A DI for Hyperf.
hyperf/dispatcher                       v2.2.0    A HTTP Server for Hyperf.
hyperf/engine                           v1.1.6
hyperf/event                            v2.2.0    an event manager that implements PSR-14.
hyperf/exception-handler                v2.2.0    Exception handler for hyperf
hyperf/filesystem                       v2.2.17   flysystem integration for hyperf
hyperf/framework                        v2.2.14   A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and mi...
hyperf/guzzle                           v2.2.0    Swoole coroutine handler for guzzle
hyperf/http-message                     v2.2.19   microservice framework base on swoole
hyperf/http-server                      v2.2.19   A HTTP Server for Hyperf.
hyperf/logger                           v2.2.14   A logger component for hyperf.
hyperf/macroable                        v2.2.13   Hyperf Macroable package which come from illuminate/macroable
hyperf/memory                           v2.2.0    An independent component that use to operate and manage memory.
hyperf/model-listener                   v2.2.14   A model listener for Hyperf.
hyperf/paginator                        v2.2.0    A paginator component for hyperf.
hyperf/pool                             v2.2.0    An independent universal connection pool component.
hyperf/process                          v2.2.20   A process component for hyperf.
hyperf/redis                            v2.2.9    A redis component for hyperf.
hyperf/resource                         v2.2.17   A api resource component for hyperf.
hyperf/server                           v<IP_ADDRESS> A base server library for Hyperf.
hyperf/snowflake                        v2.2.0    A snowflake library
hyperf/socketio-server                  v2.2.19   Socket.io implementation for hyperf
hyperf/testing                          v2.2.20   Testing for hyperf
hyperf/translation                      v2.2.13   An independent translation component, forked by illuminate/translation.
hyperf/utils                            v2.2.19   A tools package that could help developer solved the problem quickly.
hyperf/validation                       v2.2.13   hyperf validation
hyperf/watcher                          v<IP_ADDRESS>  Hot reload watcher for Hyperf
hyperf/websocket-server                 v2.2.14   A websocket server library for Hyperf.

swoole

Swoole => enabled
Author => Swoole Team<EMAIL_ADDRESS>Version => 4.8.2
Built => Nov 20 2021 01:59:25
coroutine => enabled with boost asm context
kqueue => enabled
rwlock => enabled
pcre => enabled
zlib => 1.2.11
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 262144 => 262144

我把在BeforeServerStart触发时调用自定义command注释掉就正常了，不知道是否这块问题，先观望一阵。