Spotify installer fail with error: "Installer failed with exit code:<PHONE_NUMBER>"

Brief description of your issue
When running 'winget install spotify', winget is unable to verify the hash, even if I let winget to continue and try to install it, I'll get the following error: 'Installer failed with exit code:<PHONE_NUMBER>'
Steps to reproduce
Open Windows Terminal, then run 'winget install spotify', the app will download, fail to verify hash and the installation will fail
Expected behavior
winget would be able to verify the hash of the app for Spotify and then properly install it with or without verifying it
Actual behavior

Environment
[winget --info]
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19041.264
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Any other software?
Not applicable

I get the same error code, but I can verify the hash.
Successfully verified installer hash
Installing ...
Installer failed with exit code:<PHONE_NUMBER>

with
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19628.1
Package: Microsoft.DesktopAppInstaller v1.0.41331.0

Having a similar experience with cpu-z:
PS C:\Users\numb3rs404> winget install cpu-z Found CPU-Z [CPUID.CPU-Z] This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading http://download.cpuid.com/cpu-z/cpu-z_1.92-en.exe   ██████████████████████████████  1.82 MB / 1.82 MB Successfully verified installer hash Installing ... Installer failed with exit code: 1

The Spotify.Spotify manifests reference a generic URL rather than a version specific URL. When a newer version of the installer is released, the SHA256 will no longer match. Maybe someone from the community or Spotify can find URLs that point to a specific versioned release.


feat: lsp completion for internal pkg from program root

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y #1429

2. What is the scope of this PR (e.g. component or file name):
kclvm/tools/src/LSP/src/completion.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):
lsp completion for internal pkg from program root

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[x] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[x] Manual test (add detailed scripts or steps below)
[ ] Other

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

55 of 69 (79.71%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.007%) to 71.44%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

kclvm/tools/src/LSP/src/completion.rs
55
69
79.71%

Totals

Change from base Build<PHONE_NUMBER>:
0.007%

Covered Lines:
55879

Relevant Lines:
78218

💛  - Coveralls


Document each class in generate_fixtures.py

In generate_fixtures.py there are multiple classes. We should document each 1, why we need it and the basics of the fixture it produces.

#366 will close this issue because it removes generate_fixtures.py.

#366 is merged!


wastebin: 2.4.3 -> 2.4.3-unstable-2024-08-11

Description of changes
fix for rust 1.80
related: https://github.com/NixOS/nixpkgs/issues/332957

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 335578 run on x86_64-linux 1

1 package built:

wastebin

Has upstream been asked for a release?

:facepalm: I forgot to git add twice...

Has upstream been asked for a release?

Just asked them over on mastodon, let's wait for a bit.

There is a new release now: https://github.com/matze/wastebin/releases/tag/2.5.0

Result of nixpkgs-review pr 335578 run on x86_64-linux 1

1 package built:

wastebin


Profile and optimize heavy frontend components

Using React devtools, profile and optimize the frontend, focusing on:

USCView
BillDisplay

We might need to convert the renderRecursive functions to be creating new React components instead of straight dom. Then we can take advantage of the shouldComponentUpdate things to avoid unnecessary rerenders.


Adds recipes WSClean and all its dependencies

This is a work-in-progress to build wsclean and dependencies on Setonix (and Garrawarla).

Hey @dipietrantonio could you please rebase this onto main (which has mwalib et. al.) ? thanks

aoflagger needs the +date_time variant of boost

@d3v-null  Done :)

@d3v-null confirmed these work on Setonix, and so do I. I also tested them in a stand-alone spack environment. Some earlier version of everybeam might not work correctly, but the latest versions do and that is what is actually needed for the Garrawarla migration.

@ilkhomab @pelahi I addressed all the comments. @pelahi I added the 'tablelocking' variant to casacore (default=False)


Sequence contains no matching element. Nvarchar2 type issue

You had a problem with nvarchar type (https://github.com/zzzprojects/EntityFramework-Effort/issues/10).
I faced with same error, but with type nvarchar2) Have you plans to fix it?

Hello @azaharov ,
Which provider are you using?
Best Regards,
Jonathan

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

Hello @azaharov ,
Which provider are you using?
Best Regards,
Jonathan

Hello, @JonathanMagnan
I'm using EF for Oracle https://www.nuget.org/packages/Oracle.ManagedDataAccess.EntityFramework/.

Thank you,
My developer normally assigned to Effort would be back from vacancy this Thursday, I will give this info to him.

Hello @azaharov ,
The v2.0.2 has been released, the type nvarchar2 has been added.
If more type is missing, please provide us your EDMX file: https://entityframework-extensions.net/edmx
Best Regards,
Jonathan

Hello @JonathanMagnan ,
Sorry, I can't provide EDMX to you cause of NDA. But now I have an issue with varchar2(
I remember that I had no varchar2 problem in previous version.

Hello @azaharov ,
That's why the EDMX is required. Effort was not supporting multiple Oracles columns before, so unless you provide it, we will need to fix it type per type which is not really efficient.
You can either send it in private here: EDMX or provide a distinct list of all your types and we will check what we can do.

@JonathanMagnan
We have only this two specified types: nvarchar2 and varchar2.

Hello @azaharov ,
The v2.0.3 has been released.
Let me know if your model now works correctly.
Best Regards,
Jonathan

Hello, @JonathanMagnan
Now it works. Thank you!


sass not compile

### UNEXPECTED ERROR
Machine & Versions

Item
Value

VS Code
v1.86.2

Platform
win32 x64

Node
18.17.1 (118)

Live Sass
6.1.2

Installed Extensions
- vscode.css-language-features (1.0.0)- vscode.debug-auto-launch (1.0.0)- vscode.debug-server-ready (1.0.0)- vscode.emmet (1.0.0)- vscode.extension-editing (1.0.0)- vscode.git (1.0.0)- vscode.git-base (1.0.0)- vscode.github (0.0.1)- vscode.json-language-features (1.0.0)- vscode.merge-conflict (1.0.0)- vscode.npm (1.0.1)- vscode.typescript-language-features (1.0.0)- bradlc.vscode-tailwindcss (0.10.5)- esbenp.prettier-vscode (10.1.0)- formulahendry.code-runner (0.12.1)- glenn2223.live-sass (6.1.2)- ms-vscode.live-server (0.4.13)- ritwickdey.LiveServer (5.7.9)

LOG:
{
"NO LOG": "PLEASE SPECIFY YOUR ISSUE BELOW"
}

=======================

Sorry I'm going to need more information. What file? Has it ever compiled? Have you made the switch to the @use rule before it stopped? There might be a sass error, did the icon in the bottom left change when you save the file?
Have you regretted to the faq section https://github.com/glenn2223/vscode-live-sass-compiler/blob/master/docs/faqs.md

Thx glenn,
I solved the problem with auto compilation with live sass
But I can't configure tailwindcss well with sass
I installed tailwind but I noticed that Only one of them " tailwindCss or
SASS" works
Not together
Can you help me with config tailwindcss to work concurrently with sass?
, give me any instructions.
On Thu, Feb 15, 2024, 9:59 PM Glenn @.***> wrote:

Sorry I'm going to need more information. What file? Has it ever compiled?
Have you made the switch to the @use rule before it stopped? There might
be a sass error, did the icon in the bottom left change when you save the
file?
Have you regretted to the faq section
https://github.com/glenn2223/vscode-live-sass-compiler/blob/master/docs/faqs.md
—
Reply to this email directly, view it on GitHub
https://github.com/glenn2223/vscode-live-sass-compiler/issues/346#issuecomment-1947187587,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BDT4ENSQWJKZR3RSRY63SN3YTZSLHAVCNFSM6AAAAABDK3SWQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGE4DONJYG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Depends on the context. Tailwind analysis your choice to create small CSS files whereas SASS just compiles into CSS. If you're creating content with tailwind classes compiling your CSS but having extra stylings coming from your SASS work then I don't see why they won't work side by side. If imagine you'd just have the 2 CSS links in your head elements
However, in the more likely case, you're building custom styles for tailwind via SASS. You probably don't want to and can refer to https://tailwindcss.com/docs/using-with-preprocessors

I'm closing this issue as you've resolved your problem but continue to comment if you like


Added -Verb argument completer for Get-Verb/ Get-Command + Get-Verb refactoring

PR Summary

Fixes #20059.
Fixes #20412.
Added VerbArgumentCompleter for Get-Verb -Verb & Get-Command -Verb. Also refactored Get-Verb to use the same code for getting verbs.
PR Context

Currently when using tab completion with Get-Verb -Verb or Get-Command -Verb there is no recommended verbs being shown. This PR adds completion for this parameter.
It also adds a bit of refactoring to Get-Verb to use same code that I've created for completion. This was to ensure that both the cmdlet and completion use Verbs.FilterByVerbsAndGroups to filter verbs by groups.
For Get-Verb -Verb it also takes -Group into consideration.
For Get-Command -Verb it also takes -Noun into consideration.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

@iSazonov Thanks for the feedback. I have made some more changes and removed LINQ and replaced with yield. Let me know what you think 🙂.

Restart CI-macos....

@PowerShell/wg-powershell-cmdlets looked at this and agree on this being a useful change.

unrelated MacOS test failure for Test-Connection.

Reopen to restart CIs

Ah i confused this as a new parameter being added instead of an argument completer

@SteveL-MSFT could you please look CI-macos fails (or ping anybody)?

@iSazonov Seems to have magically worked after updating branch. I think we have some flaky tests in this repo which need more hardening 😄

@ArmaanMcleod Sometimes Test-Connection fails on MacOS.

@MartinGC94 Could you please review?

@iSazonov At a glance it looks good to me, though I wonder why the tests have all those verbs manually typed out instead of just getting them like this: $allVerbs = (Get-Verb).Verb | Sort-Object a manually maintained list will make it slightly more annoying to add new verbs.

@MartinGC94 Thanks for review!
As for tests, I think verb list is very stable, it's unlikely that the list will change.  Besides, there are 8 lists and tests will become unnecessarily complicated if we create them dynamically following the same style.


fix: move scattered guides under api section

Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@yoonhyejin is this PR still relevant? Looks like there's a bunch of merge conflicts, so I suggest we extract out the good parts of this PR and then close this one


Unexpected keyword argument 'loop' under Python 3.10

    await client.connect(config["irc"]["server"], tls=True, tls_verify=True)
  File "/usr/lib/python3.10/site-packages/pydle/features/tls.py", line 35, in connect
    return await super().connect(hostname, port, tls=tls, **kwargs)
  File "/usr/lib/python3.10/site-packages/pydle/features/rfc1459/client.py", line 190, in connect
    await super().connect(hostname, port, **kwargs)
  File "/usr/lib/python3.10/site-packages/pydle/client.py", line 124, in connect
    await self._connect(hostname=hostname, port=port, reconnect=reconnect, **kwargs)
  File "/usr/lib/python3.10/site-packages/pydle/features/tls.py", line 54, in _connect
    await self.connection.connect()
  File "/usr/lib/python3.10/site-packages/pydle/connection.py", line 48, in connect
    (self.reader, self.writer) = await asyncio.open_connection(
  File "/usr/lib/python3.10/asyncio/streams.py", line 47, in open_connection
    transport, _ = await loop.create_connection(
TypeError: BaseEventLoop.create_connection() got an unexpected keyword argument 'loop'

Looking through some of the other open issues, it does not appear Pydle supports Python 3.10 at present (Ref #161, #142) as a few places call asyncio.coroutine which was removed in Python 3.10.
I can't say if this issue is related to that or not, but it might be a contributing factor. Can you provide more information about your environment and the context this code is in to assist in diagnosis?

Dug into this a bit.
There are a couple distinct issues

If pydle is passed an event loop to use Client(..., loop=some_event_loop), pydle will use it via the now deprecated loop= parameters in asyncio calls.
If pydle is not passed an event loop, it will instantiate a new one instead of fetching the current event loop.

The combination of these two issues leads to an easy footgun demonstrated by this sample code (using #165 's new feature, although not relevant to this issue) :
from pydle import Client
import asyncio

client = Client("MyBot", realname='My Bot')

@client.event
async def on_connect(self):
 await self.join('#bottest')

@client.event
async def on_message(self, target, source, message):
 # don't respond to our own messages, as this leads to a positive feedback loop
 if source != self.nickname:
   await self.message(target, message)

async def main():
 await client.connect('localhost', tls=True, tls_verify=False)
 await client.handle_forever()

if __name__ == "__main__":
 asyncio.run(main())

Pydle tries to run on a different event loop than it was called under.
RuntimeError: Task <Task pending name='Task-1' coro=<main() running at test.py:20> cb=[_run_until_complete_cb() at /usr/lib/python3.8/asyncio/base_events.py:184]> got Future <Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.8/asyncio/futures.py:360]> attached to a different loop

The currently "correct" version of the above is:
from pydle import Client
import asyncio

loop = asyncio.get_event_loop()
client = Client("MyBot", realname='My Bot', loop=loop)

@client.event
async def on_connect(self):
    await self.join('#bottest')

@client.event
async def on_message(self, target, source, message):
    # don't respond to our own messages, as this leads to a positive feedback loop
    if source != self.nickname:
        await self.message(target, message)

async def main():
    await client.connect('localhost', tls=True, tls_verify=False)
    await client.handle_forever()

if __name__ == "__main__":
    loop.run_until_complete(main())

The real fix here would be to remove Pydle's internal handling of the event loop object entirely, and instead depend upon the fact that pydle's coroutines will be awaited by downstream code - from a valid event loop.
By removing the loop parameter from pydle.Client and all internal logic that uses self.eventloop, we can eliminate this class of issue all together.
Doing so would be a breaking change by semver, as it changes the public api in a backward-incompatible way.

Is this still a problem on 3.11, or is upgrading Python a potential solution?

@Baughn
Pydle is also broken on 3.11. Upgrading is not a fix. See #180 for the current discussion on various potential fixes.
I'll also note for the record that 3.11 removed coroutine as a valid import from asyncio (see: https://docs.python.org/3.11/whatsnew/3.11.html#removed) but Pydle still attempts in some places to import that, so once 3.10 compatibility is confirmed 3.11 will need to have another look.


[DOCS] Mention behavior of string returning functions

Did you read the Contributor Guide?

Yes, I have read Contributor Rules and Contributor Development Guide

Is this PR related to a JIRA ticket?

No, this is a documentation update. The PR name follows the format [DOCS] my subject.

What changes were proposed in this PR?

show function escapes special characters, this messes up with functions that return string with special characters.

How was this patch tested?
Did this PR include necessary documentation updates?

Yes, I have updated the documentation update.

Please let me know if there are more functions that return strings with special characters.


[monitor-query] Remove obsolete npm packages

Packages impacted by this PR

monitor-query
monitor-opentelemetry-exporter

Issues associated with this PR

#21645

Describe the problem that is addressed by this PR
Updates to remove the following warning:
 WARN  deprecated<EMAIL_ADDRESS>Package renamed to @opentelemetry/sdk-trace-base
 WARN  deprecated<EMAIL_ADDRESS>Package renamed to @opentelemetry/sdk-trace-node

Updated dependencies from the deprecated to the new packages and to the 1.2 release.
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

API change check
API changes are not detected in this pull request.


Deploying on virtual machines?

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

@NeuralChatBot

@NeuralChatBot

@NeuralChatBot

It sounds like you're having trouble with a specific repository and getting "illegal instruction" errors. To troubleshoot this, you can try the following steps:

Check the compatibility of the software with your virtualization platform and hardware. Make sure the software is compatible with the CPU architecture and operating system you're using.

Ensure that you have the latest updates and patches installed for both the host operating system and the guest operating system.

Verify that you have the necessary dependencies and libraries installed for the software to run properly.

If the issue persists, you may need to consult the software's documentation or support forums for more specific guidance on running it in a virtualized environment.

Consider using a different virtualization platform or hardware configuration if the issue remains unresolved.

If you're still unable to resolve the issue, you may need to seek help from a professional or experienced user in the relevant software community.

@NeuralChatBot

It sounds like you're having trouble with a specific repository and getting "illegal instruction" errors. To troubleshoot this, you can try the following steps:

Check the compatibility of the software with your virtualization platform and hardware. Make sure the software is compatible with the CPU architecture and operating system you're using.

Ensure that you have the latest updates and patches installed for both the host operating system and the guest operating system.

Verify that you have the necessary dependencies and libraries installed for the software to run properly.

If the issue persists, you may need to consult the software's documentation or support forums for more specific guidance on running it in a virtualized environment.

Consider using a different virtualization platform or hardware configuration if the issue remains unresolved.

If you're still unable to resolve the issue, you may need to seek help from a professional or experienced user in the relevant software community.

give me more details

give me more details @NeuralChatBot

It seems like you're having trouble with a specific repository and getting "illegal instruction" errors. To troubleshoot this, you can try the following steps:

Check the compatibility of the software with your virtualization platform and hardware. Make sure the software is compatible with the CPU architecture and operating system you're using.

Ensure that you have the latest updates and patches installed for both the host operating system and the guest operating system.

Verify that you have the necessary dependencies and libraries installed for the software to run properly.

If the issue persists, you may need to consult the software's documentation or support forums for more specific guidance on running it in a virtualized environment.

Consider using a different virtualization platform or hardware configuration if the issue remains unresolved.

If you're still unable to resolve the issue, you may need to seek help from a professional or experienced user in the relevant software community.

give me more details @NeuralChat

It sounds like you're having trouble with a specific repository and getting "illegal instruction" errors. To troubleshoot this, you can try the following steps:

Check the compatibility of the software with your virtualization platform and hardware. Make sure the software is compatible with the CPU architecture and operating system you're using.

Ensure that you have the latest updates and patches installed for both the host operating system and the guest operating system.

Verify that you have the necessary dependencies and libraries installed for the software to run properly.

If the issue persists, you may need to consult the software's documentation or support forums for more specific guidance on running it in a virtualized environment.

Consider using a different virtualization platform or hardware configuration if the issue remains unresolved.

If you're still unable to resolve the issue, you may need to seek help from a professional or experienced user in the relevant software community.

give me more details @Neu

It sounds like you're having trouble with a specific repository and getting "illegal instruction" errors. To troubleshoot this, you can try the following steps:

Check the compatibility of the software with your virtualization platform and hardware. Make sure the software is compatible with the CPU architecture and operating system you're using.

Ensure that you have the latest updates and patches installed for both the host operating system and the guest operating system.

Verify that you have the necessary dependencies and libraries installed for the software to run properly.

If the issue persists, you may need to consult the software's documentation or support forums for more specific guidance on running it in a virtualized environment.

Consider using a different virtualization platform or hardware configuration if the issue remains unresolved.

If you're still unable to resolve the issue, you may need to seek help from a professional or experienced user in the relevant software community.

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

It's possible that there might be issues running certain software or programs on Virtual Machines, depending on the specific software, hardware configuration, and virtualization platform. In your case, it seems like you're encountering an issue with the "illegal instruction" error when trying to use a specific repository. To troubleshoot this, you can try the following step

@NeuralChatBot Please help

@NeuralChatBot Please help

@NeuralChatBot Please help

Bot Please help

@NeuralChatBot Please help

Bot Please help


Bypass LAN and private networks feature

Hello,
Using the latest update on Mac and iOS, the release notes state that now Outline Client bypasses LAN and private networks while connected.
Unfortunately I used outline to access a lot of private resources on remote networks (SSH...) and with the new update I am unable to do it anymore.
I know it was added in this recent pull request (https://github.com/Jigsaw-Code/outline-client/pull/311).
Could it be possible to let the user chose the default behaviour instead of pushing the feature to everyone?

@shanghaix Thanks for using Outline and for reporting this. I'm afraid that in addition to this client change, we also recently removed support for accessing private networks in the server - so even if we added this as an option in the client, it still wouldn't work (with Outline servers, at least).
Sorry this has bitten you - @sandrigo FYI and @shanghaix perhaps you could describe in a little more detail how you access those servers?

@trevj I too use outline to access private networks, is this feature now discontinued permanently?

@rmonst3r Sorry for the slow reply - I can't say permanently because we could make it a feature in the client and if this issue received a lot of upvotes we would re-prioritise but for now we have no plans to change this, sorry.

Upvote for this feature.
I thought it was an issue with the shadowbox Docker container network and spent the whole afternoon trying to figure out what is going on.
The usage scenario is pretty clear. An easy way to use outline (from home or while traveling) to access remote private LAN (in office) for work.

It is valuable to privately access home machines connected through Outline while not at home (e.g. from a smartphone or laptop).

I also want this feature. Is it feasible to add as an option during setup?

I agree. The reason I wanted Outline in the first place was I thought this feature was built in. Now back to the drawing board for a VPN to access my servers. Sad face indeed

Guys try out Softether, that's what I switched to.


Create Sonarqube addon

@BanzaiMan I've merge the script into the addon

@dbmeneses Thanks! The next step is to set up a repository on https://staging.travis-ci.org. I will let you know when this is deployed, so that you can test it.

@BanzaiMan Just so that we can get organised on our side: when can we expect the add-on to be available on the staging instance?

@bellingard I can set this up for testing for tomorrow (2016-06-02) EU time. I'm in Seattle now, so I can't give the real time feedback when you test it, but I can look at whatever you found.
Thanks.

I'll update this when it's ready for testing again.

@bellingard @dbmeneses Sorry about the delay. Staging is set up with this addon.

Thanks @BanzaiMan! I'll test this beginning of next week.

@BanzaiMan I tried to test the addon using the following project => https://github.com/FabOrga/multi-language-project. My ".travis.yml" file is quite simple:
language: java
sudo: false
install: true
addons:
  sonarqube: true

jdk:
  - oraclejdk8

script:
  - echo "Check the Maven OPTS env variable to see wether the addon is working or not => $MAVEN_OPTS"
  - echo "And try to launch the SQ Scanner to see if it's installed..."
  - sonar-scanner -v
  - echo "And finnaly try to really execute a SQ analysis using Maven..."
  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -B -e -V -Dsonar.login=$SONAR_TOKEN

cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'

notifications:
  email: false

But looks like either I'm missing something, or the addon is not available. Any idea?

Hello there. Could you try again? Looks like there was a problem with earlier deployment.

I can confirm that the addon is deployed.

It works correctly for a project that I want to analyse with the SonarQube Scanner:
Ex.: https://github.com/FabOrga/multi-language-multi-module-project
This greatly simplifies the configuration!
however I get a problem for a project that I want to analyse with Maven:
See https://github.com/FabOrga/multi-language-project and most precisely https://staging.travis-ci.org/FabOrga/multi-language-project
It looks like the "MAVEN_OPTS" variable is not used by Maven - whereas it works perfectly on my side when I test this on my laptop
Are you doing something special with Maven env properties on Travis?

@bellingard We do indeed set $MAVEN_OPTS (which I believe is set in /etc/maven_opts).

https://github.com/travis-ci/travis-ci/issues/4613#issuecomment-135215956

@BanzaiMan Great, this works! We will update the pull request to fix this problem. Do you know if you're doing something similar for Gradle with GRADLE_OPTS?

@BanzaiMan I have updated the P/R to fix the issue with MAVEN_OPTS. I tried to be very polite and not override existing MAVEN_OPTS value defined in /etc/mavenrc. But please double check that what I have done is correct. My only concern is that some user applying the workaround for https://github.com/travis-ci/travis-ci/issues/4613 will override our own settings. Do you know if the addon has the permission to append to /etc/mavenrc directly?

Hello! Sorry for the delay. I've deployed @8d54c61 to staging. Please test it.

@BanzaiMan Thanks! I could test it successfully.
Last question on my side before we can go into production. I sent you a mail about the name of the add-on inside the YML file: is it possible (somehow) to have:
addons:
  sonarqube.com: true

instead of:
addons:
  sonarqube: true

The reason is that our cloud offering is now renamed "SonarQube.com" instead of Nemo.

@BanzaiMan Did you get a notification for my previous comment? Apart from this point, everything is OK on our side for this first version.

@bellingard Sorry for the delay. I was on a cross-country trip last week, and did not have time to take a close look.
I do not think
addons:
  sonarqube.com: true

would work. While this is valid YAML which will result in the key sonarqube.com, we rely on keys at each level being a single word, so that we can get to the values in deeper levels more succinctly.
Does something like sonarqube_com work for you?

@BanzaiMan OK, thanks for your answer Hiro! So we'll stick to "sonarqube" like this is currently done.
What are the next steps to go live on https://travis-ci.org?

@bellingard We would need a documentation PR to https://github.com/travis-ci/docs-travis-ci-com. If you would like to write (or help me write) a blog post, that's good, too.

@BanzaiMan OK, I will do the PR for the documentation. For the blog post, sure that's a good idea. I'll come back to you on this too - wether I write it or help you on this.

Docs PR is https://github.com/travis-ci/docs-travis-ci-com/pull/634.

This has been deployed to production. We'll discuss docs PR and blog posts separately.


monitoring: use vendored kube-prometheus directly instead of via GitHub link

Rather than have Kustomize make remote call to
https://github.com/bfritz/homelab-apps/vendor/kube-prometheus (always on
the main branch) to pull the kube-prometheus manifests, just use them
directly via the submodule directory.  Will help avoid confusion where
the kube-prom manifests are updated in a branch, the ArgoCD AppSet is
updated to that branch, but the kube-prom resources still do not update
because the GitHub link is still pointing to main.
Relocated the vendor directory under apps/monitoring/ because
Kustomize will not load resources from parent directories for for
security reasons.

bors r+


Publish extension to open-vsx.org

As VSCodium  has made the move to the https://open-vsx.org marketplace, could you please publish this extension there?
Here is a guide on How to Publish an Extension on their marketplace.
Thank you,

OK! I published and you can see Office Theme on https://open-vsx.org.


It also looks good to save conv_inv.

main.py
origin code :
for i in range(H * W):
# cov[:, :, i] = LedoitWolf().fit(embedding_vectors[:, :, i].numpy()).covariance_
cov[:, :, i] = np.cov(embedding_vectors[:, :, i].numpy(), rowvar=False) + 0.01 * I
# save learned distribution
train_outputs = [mean, cov]
change to :
for i in range(H * W):
# cov[:, :, i] = LedoitWolf().fit(embedding_vectors[:, :, i].numpy()).covariance_
cov[:, :, i] = np.cov(embedding_vectors[:, :, i].numpy(), rowvar=False) + 0.01 * I
# save learned distribution
conv_inv = np.linalg.inv(cov.T).T
train_outputs = [mean, cov, conv_inv]
how to using  :
dist_list = []
for i in range(H * W):
mean = train_outputs[0][:, i]
#conv_inv = np.linalg.inv(train_outputs[1][:, :, i])
dist = [mahalanobis(sample[:, i], mean, train_outputs[2][:, :, i]) for sample in embedding_vectors]
dist_list.append(dist)
in my opinion

you do not need to save cov as well
save only
train_outputs = [mean, conv_inv]


[service-connector] Streamline display of next steps links

Multiple links in the Next steps section look a bit off.

This PR streamlines the display of Next steps section for the service-connector documentation

@shizn - Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Hi @devndive, sorry this took so long, I just saw your PR. Thank you for the nice suggestions. I've pulled your changes into another PR to generate a preview and it will be merged in a moment.

The PR has been merged and it will be visible on the website in a couple of hours. Thank you @devndive!

#please-close


Offscreen handstate preservation

Describe the problem
The view area of Hololens 1/ 2 is a lot smaller than the perceivable area of the player. This means he can perform interactions with his hand and accidentially move outside of the view area without noticing the Lens losing track of the hand.
Currently this leads to just dropping the current interaction. Interactions like scaling therefore mean to aim at the corresponding handle again and drag again
It also leads to additional carefulness due to a certain threshold awareness, reducing the used interaction space even further (The player tries to avoid loss of control and keeps his hand even closer to the center)
Describe the solution you'd like
A hand interaction should not be canceled immediately. The user should be given a configurable amount of time to move his hand back into the perceivable space. If the hand pose still matches the last one, the interaction can carry on. Accompanied with an indication of the tracking loss, the user can use more of his interaction space and does not lose too many of his ongoing interactions. Furthermore he learns more about the spacial limitations by not de- but exceeding the borders of the view area.
Describe alternatives you've considered
none
Additional context
Add any other context or screenshots about the feature request here.

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


Now there is an Error called " syntaxerror: "undefined" is not valid json "

I dont know what to do but plz fix this.

please add console output

Umm What do u mean by that ????

send a picture of the entire error that you are receiving

Reason for closure: Inactivity

I ran the bot few times. After like 3 4 times it was unable to get checklist and the bot functioned.


set navigation label in sidebar

I wanted to add this feature right now but eventually decided that this will have to be handled along with the i18n as a global/long term solution. That is why I am closing this one in favour of #156


How to delete or rename a repository

I created my first attic repository and now I would like to change it's name since the current one is not too descriptive. Primarily I would rename it but is this possible? If I can't do that, secondarily I would delete the repository but can't find a command to do that from documentation. There is command to delete an archive but I need to delete the whole repository. I assume I can't just delete it from the filesystem on the target server.

Renaming a repository: Just rename the .attic folder. Renaming archives is not possible AFAIK.
Deleting a repository: Get the attic repository id by reading the config file in the .attic folder. In ~/.cache/attic/, delete the folder with the corresponding id. Delete the .attic folder.

Almost I had answered "just rm -rf X", but that is only easy for the repo itself.
I just looked into my .cache/attic/ and found a ton of caches from testing.
So, I'ld say we rather need a "attic delete REPO" and stop using rm -rf for that.
Of course, as people might confuse killing an archive and a repo, this should get a --force option and if that is not given, it will ask rather clearly, whether one really wants to delete ALL the archives and the repo.

See PR #226.
I tested it for local, but not for remote repositories. Help and feedback is welcome. :)

See PR #251 for archive rename.


backup stall after a few minutes

Given restic a try to backup from my laptop to my NAS server (using sftp) in the local network.  Things start of nicely (~350mbit/s on the network once restic starts pushing), but after a few minutes the transfer stalls and the backup seems to grind to a halt.
NAS is running plain Debian jessie. Laptop run debian unstable with restic build from git:
restic 0.1.0 (v0.1.0-317-gcf88b33)
compiled at 2016-02-01 08:17:04 with go1.5.3
Unlike #353 i don't see any errors regarding the sftp connection failing, hence opening a fresh issue.

Tested with the v0.1.0 tag as well, that nicely completed the backup. So this may well be a regression in more recent versions

Thanks for reporting this. I've seen this happen to myself and already did a git bisect, I have a rough idea what might cause the problem and will have a look in the evening today.
This is indeed a bug.

Just a quick heads-up: I've built a test that triggers the issue.


Remove events month filter on whats-on

Date
Q4
Page
https://wellcomecollection.org/whats-on
Problems to solve

Month filter isn't being used and majority of visitors aren't seeing upcoming events.
We don't have many events during Summer months and makes the events list quite light.
End of the month, there are only few events left to promote.
When we are doing testing on events, we have to use 'All events' which isn't ideal view for users.

Hypothesis

Removing the month filter on the whats on page will allow more events to be surfaced to the user, and thus have more people navigate to event pages
Allows the team to promote What's on rather than 'All events' which will help the audience to discover other public programme.

Primary outcome

More visits to event pages from whats-on
Improves internal workflow in testing

Sample size / power
baseline conversion =3.8%
If we want to see a 100% increase to 7.6% then we need 320 people in each condition to have an adequately powered test. If we want to see an increase lower than 100, say 50% to 5.7% we would need 1300 in each condition.
Comments

Would it have any impact on page performance?
Is the list too jarring to browse on mobile?

Baseline conversion rate (march1st -July30th)
clicks to events pages from whats on (excluding list page):
event pages viewed from whats on = 5103
whats on page views = 133953
*(5103/133953)100 = 3.8%
Worth noting that the pageviews for whats on may be conflated due to the different page states i.e. people may click a different date page state and THEN click through to an event so the conversion rate may not be fully reflective (it seems low but we don't necessarily have to worry about this presently.) However it is fine to use as a comparison for a test.

Based on current traffic levels to what's on (and taking in to account inflation of pageviews due to date picker) the test should only need to run for about 2-3 days.

The verdict was we don't remove this

We would like to remove it from experience point of view based on the following facts.

the month filters are easily missed by the users especially on mobile
the number of events fluctuates each month and filtering by it makes it difficult to discover relevant events especially at the end of the month

However, there's a concern that displaying all events in one list may be overwhelming to users and impact on performance. Ideal solution may be displaying up to set # of events and display 'View more' to allow users to see the rest of events.

cool cool - I imagine then we want to evolve it into something else, might be worth creating a new issue around what else we might do with this referenced.

Agreed:
/whats-on and /events
Display by next upcoming event
(https://github.com/wellcometrust/wellcomecollection.org/issues/3407#issuecomment-428179570)

Keeping this one open until we resolve the Smoke and Mirrors Live Performance event series discussion.


newbie question about elements

Hi,
I'm trying to dynamically select an element. It works well if I type @mypage.myelement, but when I try @mypage[:myelement] or @mypage["myelement"] it gives me the error: undefined method '[]' for #<MyPage:0x000055e0be333728> (NoMethodError).
A simple example to simulate the error could be like this:
name = :myelement
@mypage[name]
@mypage[name.to_s]

@jampow It's Ruby question not site_rism. @mypage is a class and myelement is a method in this class. You cannot call a method with brackets by default. If you want to do this you can use send method.
name = :myelement
@mypage.send(name) # or
@mypage.send(name.to_s)

It might be possible to alias [] to send though
@luke-hill What do you think about it? We might combine this with other potentially useful feature I was thinking about.

Store available elements, section names to an array. So it's easy to inspect the structure of the element container

> MyPage.new.structure
< [:a, :b, :c, d: [:e, :f]]

define #[] to be

def [](name)
   send(name) if structure.include?(name)
end

Hi @ineverov, tks... I will study more ruby. ^^

the available element names are already found via mapped_items. It's not quite in the structure you mentioned, but it's kinda there.


R21C: Needed to handle OMPS-LP-N21

Ozinfo file was missing needed components to assimilate OMPS-LP from N21. I also changed the permissions in this file and another - no needed for these text files to be executables.
These are clearly only non-zero differences when data from N21 is available; otherwise, these are zero-diff.
CHANGES AIMED AT R21C BRANCH

N21 OMPS-LP also needs to be added to gmao_ozinfo.db (availabla.tbl and active.tbl). It will be identical to the N-SNN OMPS-LP except the start date.

Looks good to me

Actually: when I trying using these in an x-exp like settings, the code crashes in error when trying to read either one of the files in the following obs-classes:
BEGIN r21c_npp_ompslp_nc => ompslpnc_npp.%y4%m2%d2.t%h2z.nc
20130101_00z-21001231_18z 060000 /discover/nobackup/projects/gmao/input/dao_ops/ops/reanalysis/OMPS-LP/v2.6-adjusted-tint/Y%y4/M%m2/OMPS-LPoz-v2.6-adj.%y4%m2%d2_%h2z.nc
END
BEGIN m2scr_n21_ompslp_nc => ompslpnc_n21.%y4%m2%d2.t%h2z.nc
20230301_00z-21001231_18z 060000 /discover/nobackup/projects/gmao/m2scream/data/ompslp-n21/adjusted/Y%y4/M%m2/OMPS-LPoz-n21-v1.0.%y4%m2%d2_%h2z.nc
END
For the x-exp I put both N21 and NPP  together in the same experiment - the code seems to think the number of levels is 61+61=122 ... I can't put my finger one what could be wrong. I haven't tried in the R21C settings, but I checked the codes for ozone handling and they are the same between the R21C and what I am using for x-exp!

@kwargan can you point me to the scream experiment? I assume that experiment is using both sources of OMPS-LP?!

@kwargan I think I found a bug in the reading of the nc ozone files ...

@kwargan I now added to this what I believe is a fix the issue I had in trying to get more than one source of OMPS-LP processed in the code - just by augmenting the ozinfo table was enough for the code to be unhappy - even when a single source is passed gsi.rc ... the change in the Fortran code here fixes the issue. I am putting this here for M21C and also adding the same change in another PR for 5.41.x

@kwargan or @elakkraoui Can one of you approve this? This is good by me and I'd like to close on this.

Hi Matt, can you please approve this when you have a chance? This has been revised and it's also a part of what I have incorporated in the 5.41.x version of GEOSadas. Thanks.


Keys now have names?

Is there a specific reason why you've decided to give keys name? Not complaining, just curious. Can you reference to a key with the name?
Like
SETCURRENTKEY("ItemTrackingByLot");
Instead
SETCURRENTKEY("Lot No.", "Item No.", etc...);
That would make the key into an object you can more easily read and replace

That is the plan in an upcoming version.

This is tracked by #140.  I will close this issue


[BUG] Plugins integration tests are failing after upgrade to 1.1 w/TransportSerializationException

Describe the bug
Looks like multiple plugins have failing integration tests when taking a 1.1 dependency of OpenSearch and common utils.
org.opensearch.indexmanagement.indexstatemanagement.MetadataRegressionIT > test move metadata service FAILED
    TransportSerializationException[Failed to deserialize response from handler [org.opensearch.transport.TransportService$ContextRestoreResponseHandler/org.opensearch.action.ActionListenerResponseHandler@3f6b757b/org.opensearch.client.transport.TransportClientNodesService$RetryListener@1a5133b8]]; nested: IOException[Invalid string; unexpected character: 179 hex: b3];
        at org.opensearch.transport.InboundHandler.handleResponse(InboundHandler.java:250)
        at org.opensearch.transport.InboundHandler.messageReceived(InboundHandler.java:146)
        at org.opensearch.transport.InboundHandler.inboundMessage(InboundHandler.java:102)

        at org.opensearch.transport.TcpTransport.inboundMessage(TcpTransport.java:713)
        at org.opensearch.transport.InboundPipeline.forwardFragments(InboundPipeline.java:155)

at org.opensearch.transport.InboundPipeline.doHandleBytes(InboundPipeline.java:130)
        at org.opensearch.transport.InboundPipeline.handleBytes(InboundPipeline.java:95)
        at org.opensearch.transport.nio.MockNioTransport$MockTcpReadWriteHandler.consumeReads(MockNioTransport.java:309)
        at org.opensearch.nio.SocketChannelContext.handleReadBytes(SocketChannelContext.java:241)
        at org.opensearch.nio.BytesChannelContext.read(BytesChannelContext.java:53)
        at org.opensearch.nio.EventHandler.handleRead(EventHandler.java:152)
        at org.opensearch.transport.nio.TestEventHandler.handleRead(TestEventHandler.java:164)
        at org.opensearch.nio.NioSelector.handleRead(NioSelector.java:433)
        at org.opensearch.nio.NioSelector.processKey(NioSelector.java:259)
        at org.opensearch.nio.NioSelector.singleLoop(NioSelector.java:187)
        at org.opensearch.nio.NioSelector.runLoop(NioSelector.java:144)
        at java.base/java.lang.Thread.run(Thread.java:832)

        Caused by:
        java.io.IOException: Invalid string; unexpected character: 179 hex: b3
            at org.opensearch.common.io.stream.StreamInput.throwOnBrokenChar(StreamInput.java:545)
            at org.opensearch.common.io.stream.StreamInput.readString(StreamInput.java:504)
            at org.opensearch.common.io.stream.StreamInput.readCollection(StreamInput.java:1233)
            at org.opensearch.common.io.stream.StreamInput.readList(StreamInput.java:1183)
            at org.opensearch.common.io.stream.StreamInput.readStringList(StreamInput.java:1194)
            at org.opensearch.plugins.PluginInfo.<init>(PluginInfo.java:120)
            at org.opensearch.common.io.stream.StreamInput.readCollection(StreamInput.java:1233)
            at org.opensearch.common.io.stream.StreamInput.readList(StreamInput.java:1183)
            at org.opensearch.action.admin.cluster.node.info.PluginsAndModules.<init>(PluginsAndModules.java:60)
            at org.opensearch.common.io.stream.StreamInput.readOptionalWriteable(StreamInput.java:1016)
            at org.opensearch.action.admin.cluster.node.info.NodeInfo.<init>(NodeInfo.java:98)
            at org.opensearch.common.io.stream.StreamInput.readCollection(StreamInput.java:1233)
            at org.opensearch.common.io.stream.StreamInput.readList(StreamInput.java:1183)
            at org.opensearch.action.admin.cluster.node.info.NodesInfoResponse.readNodesFrom(NodesInfoResponse.java:71)
            at org.opensearch.action.support.nodes.BaseNodesResponse.<init>(BaseNodesResponse.java:57)
            at org.opensearch.action.admin.cluster.node.info.NodesInfoResponse.<init>(NodesInfoResponse.java:62)
            at org.opensearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:82)
            at org.opensearch.action.ActionListenerResponseHandler.read(ActionListenerResponseHandler.java:49)
            at org.opensearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1198)
            at org.opensearch.transport.TransportService$ContextRestoreResponseHandler.read(TransportService.java:1185)
            at org.opensearch.transport.InboundHandler.handleResponse(InboundHandler.java:247)
            ... 16 more

opensearch-notebooks
https://github.com/opensearch-project/dashboards-notebooks/pull/62
https://github.com/opensearch-project/dashboards-notebooks/pull/62/checks?check_run_id=3352176545
index-management
https://github.com/opensearch-project/index-management/pull/119/
https://github.com/opensearch-project/index-management/pull/119/checks?check_run_id=3344612616

First, we found out that main wasn't bumped to 2.0 (@nknize is working on this), so we've been dropping 1.1-SNAPSHOT to opesearch.org from main and from the 1.x branches, overwriting each-other. We disabled the main snapshot build for now to avoid this problem. Next time we do version increments we'll need to make sure we both increment 1.0 to 1.1 and bump main to 2.0 kind of thing.

I haven't dug into this yet, but this usually means there was a change to the transport layer that isn't matching between Version.V_M_m_p

/cc @opensearch-project/index-management

@dblock : not aware of any transport change which made into 1.1 core codebase, will take a look if anything pops related to this exception.

I am pretty sure this was caused by the fact that we were building against OpenSearch and common-utils 1.1, but running tests against what was effectively OpenSearch 2.0 that seems to have had backwards incompatible transport changes. After fixing that in our CI, https://github.com/opensearch-project/dashboards-notebooks/pull/62 and https://github.com/opensearch-project/index-management/pull/119 are passing.


Clean up video thumbnail image

sharpened & adjusted white balance
Fixed permissions

Hi Tim,
Quick question: What permissions are you talking about?

The file was 755, I changed it to 644 (removed executable bit). Mostly I just wanted to sharpen it a bit :-)

Alright, looks good. Thanks, Tim! :)


Migrate to Plotly 4.0

Use Figure instead of FigureWidget.
Add require.js file to docs.
Fixes: #305.

@shreyasbapat Rebased to the lastest master.

Hello @Varunvaruns9! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file docs/source/conf.py:

Line 27:1: E302 expected 2 blank lines, found 1

Good to go!


SofortController inheritance

shouldn't it inherit from Spree::StoreController?
Spree uses a current_store nowaday to be cool with the multistore-gem. Therefore we should let SofortController be inherited from Spree::StoreController.

thank you, makes sense fixed in f3b6d0d6a0bb3d6447f210cabda4325e61b596ec


Correct "it's" and "its"

Now in the entire repository all uses of "it's" and "its" are correct.

Once again thanks for the submission. Merged as be429d22681f9486b9ee47b53b93c3beb97e3b17.


RuntimeError: Input type (struct c10::Half) and bias type (float) should be the same

I customized a convolution method,

But when I run faster-rcnn I get an error.
Traceback (most recent call last):
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Input type (struct c10::Half) and bias type (float) should be the same
I didn't do anything, I just defined a method, and  it reported an error. help me please.

How did you fix this?

The data type is incorrect, just use the data type ‘x’


How to get the landmarks of the 3D reference face model

Hi,
Thank you very much for sharing your research.I try to use myself landmark predictor ,it can get
a  .pts file of  the 2D image  landmark,due to it outputs different points, i don't know how to map my landmark point onto 3D reference face model, and how to get the coordinate of 3D reference face modle.

Just have a look at how the current system works, for example step through the fit-model app. Most if not all you need to change is share/ibug2did.txt.

I know I should change the share/ibug2did.txt,but my own  landmarks are different from you ,in the ibug2did.txt , write the landmark name on the left side ,but on  the right side ,I don't know the corresponding 3D vertex ID .How can I get the 3D vertex ID corresponding to my own landmarks?

Look for the vertex id's on the reference. Open the obj in Blender, MeshLab, or a similar tool. It's actually all quite well documented in the readme here and in the ibug2did.txt file itself.

I open the reference.obj in Blender, It has  presented a 3D face model，but I still can't get the  vertex ID,can you tell me the specific method to get the ID?Thank you very much.

I don't know Blender that well but a quick Google search should reveal it to you. In MeshLab, it's either the "Get Info" button or "Render => Show Label".


Ti 7, touch to focus, autoFlash

Ti 7x
touch to focus
autoFlash parameter
HIGH by default
doFocus()
onFocus event

@m1ga You da boss! :D Been waiting on a PR like this for a while. Please merge this, @brownemint! 👍


⚠ Bofrost.de has degraded performance

In c203e2f, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1035 ms

Resolved: Bofrost.de performance has improved in 48c8fa2 after 13 minutes.


[WIP] Add ApiServerSource tests

Refactored how we call tests so that we don't need to change anything when new tests are added

/retest


Use Java 9 in the 2.12 jobs on Travis CI

@alexarchambault Java 8 is still live and not deprecated yet, so I think that should be vetted against still. How do you feel about adding a shard with java9?

This doesn't switch all the CI jobs to java 9, only the scala 2.12 ones. This seemed like a good compromise to me, in order to:

have java 9 jobs,
keep some java 8 ones to ensure it's still ok, and
not adding more overhead on the CI.

In order to check that some 2.12-only modules (cli…) are still fine on the CI, maybe these could also be compiled on 2.11.

https://github.com/scala/scala-dev/issues/480 makes that conflict with https://github.com/coursier/coursier/pull/824 for now anyway.

That said, errors like https://github.com/scala/bug/issues/10575 are worrying :|

Yeah looks like this might need a little more time to mature.
I'd like to be a little more clear on our perspective, cli and core modules have to test with java 8 because we heavily consume the CLI portion on java 8. Java 9 tests are nice to have, but not required at the moment.

Also generally speaking, since coursier is a fundamental tool that goes into other build tools, it would be a good idea to be a little more conservative in terms of upgrading and to offer migration path where needed.

Closing this for now, that can't work because of https://github.com/scala/scala-dev/issues/480 for now anyway.


Content Text is not changed after importing

Hi, guys. Thank you for your great project.
I just have issue in your demo.
See attached the screenshot.
After importing, the text was changed, but it is not changed again anymore. It is reverting with original text
Looking forward to your response. Thanks

I just fixed it, please contact me on upwork

I just fixed it, please contact me on upwork
Upwork Profile Link: https://www.upwork.com/freelancers/~0112a6380422c5d09c

Using Object.assign causes the uuid to fail to update, which is the reason


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Creating or previewing a document for an order does not remove the temporary copy

Description:
Given you have an order (auto_increment = 1) with one line item. You go into the admin panel and start editing the order. This creates a temporary copy of this order (auto_increment = 2). After closing the tab or navigating away, the temporary order (auto_increment = 2) will be deleted as expected.
However, if you created a document or look at the preview instead of navigating away, a second copy (auto_increment = 3) would have been created.  Creating multiple documents or watching the preview keeps creating a new permanent copy every time.
With every copy of an order, there are also copies of the respective line items.
Environment:
Doesn't matter
Steps to reproduce:
(optional) Start with an empty database to keep track

Create an order via storefront customer with one order line item

Your database will contain one order and one line item

Edit the order via the admin panel

Your database will now contain two orders and two line items

Navigate away from the edit of the order

Your database will have one order and one line item

Go back to your previous order in the edit mode

You will, again, have two orders and two line items

Create a document or preview the document

Your database will now contain three orders and three line items

Navigate away again

You still have two orders and two line items

Repeat the document creation / preview step as often as you like and the orders will keep adding up

Expected result:
There will only be one order entity for a given order
Actual result:
There are copies of a given order entity even after closing it, significantly messing up our database and giving inconsistent and unexpected results. This does not just affect our plugins but also other (third party) plugins which is impossible to work around

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37509.
[created from NEXT-37509, comment 486923]


[#169479287] Refactor definition of bearerAuth security schema in specs

This PR aims to refactor the definition of bearerAuth security schema in specs file, in order to fix the lack of authentication info in the generated request types.

Affected stories

🐞 #169479287: I tipi generati per le operazioni non contengono le informazioni sull'autenticazione

  Generated by :no_entry_sign: dangerJS against c085bc50f699da0ad89cea9c79ffcff58ff073c4


[Driver] SR-2396: Driver should have a -verify-debug-info option

Add a -verify-debug-info option that invokes dwarfdump --verify as the last step after running dsymutil. dwarfdump is invoked with same options clang 8<IP_ADDRESS> uses to invoke it:
dwarfdump --verify --debug-info --eh-frame --quiet
A warning is produced if -verify-debug-info is set and no debug option is also set.
dwarfdump is failing to validate the debug info in the test verify-debug-info.swift. The failure is:
error: .debug_line[0x0000007d].row[0].file = 1 is not a valid index
What addtional tests need to be added?
Would you like to add additional options to the driver provided by dwarfdump?
https://bugs.swift.org/browse/SR-2396

@swift-ci test and merge

@swift-ci test and merge
test failure looks unrelated.

@swift-ci test and merge

@swift-ci test and merge

TEST 'Swift(macosx-x86_64) :: Driver/actions.swift' FAILED ********************
Could you take a look?

Yes, dwarfdump is failing to validate the debug info in the test verify-debug-info.swift. The failure is:
error: .debug_line[0x0000007d].row[0].file = 1 is not a valid index
I get the same result from the command line using swiftc in Xcode 8.3 beta and dwarfdump 138.

Sweet, we found a bug! Could you just change test test to only verify the driver decisions (check the output of -###) without actually executing it?

@swift-ci Please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 90da86255f79c285627db7a92b6fe4eeabd8906a
Test requested by - @slavapestov

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 90da86255f79c285627db7a92b6fe4eeabd8906a
Test requested by - @slavapestov

@adrian-prantl,
I think this is ready. Would you mind retesting it?
Thanks!

@swift-ci please test and merge

@adrian-prantl,
Would you mind retesting this?

@swift-ci please test

@adrian-prantl,
Thanks. All tests passed.


ocamlPackages.core: 0.11.2 → 0.11.3

Motivation for this change
Bugfix release: https://github.com/janestreet/core/releases/tag/v0.11.3
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build ocaml-ng.ocamlPackages_4_06.csvfields


Use auth app to create PR

Instead of using fixed token this will make use of GitHub App to generate ephemeral token for each run to keep it safer.

/lgtm

/approve


ghcmod "Could not load module" for test file

Getting the following ghcmod error message in the test file:
Could not load module ‘Hedgehog.Range’
It is a member of the hidden package ‘hedgehog-0.6.1’.
Perhaps you need to add ‘hedgehog’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.

If I open a Lib file HIE works fine without any errors.
Using GHC 8.6.4
Issue can be reproduced both with Atom and VSCode
To reproduce you can git clone this project: https://github.com/fairy-tale-agi-solutions/fairy-tale-artificial-general-intelligence-solutions/tree/master/Sources/Razvan Flavius Panda/Haskell/artificial-general-intelligence
At SHA:<PHONE_NUMBER>41c2f2f0a4f19a1e70e413543fa72e
And open the test/Spec.hs file to see the issue.

For now I used the workaround of adding the test packages to the library part of the cabal file also:

hedgehog
hedgehog-fn

ghcmod sees the modules then and HIE works.

I'm running into something I think is similar on a stack project --
File:     ./test/GetMaxFromMapSpec.hs
Range:    4:7-4:17
Source:   not found
Severity: DsError
Message:
  Could not find module ‘Test.Hspec’
  It is not a module in the current program, or in any known package.

here's my package yaml:
name:                friendface
version:             <IP_ADDRESS>
github:              "githubuser/friendface"
license:             BSD3
author:              "Author name here"
maintainer<EMAIL_ADDRESS>copyright:           "2019 Author name here"

extra-source-files:
- README.md
- ChangeLog.md

# Metadata used when publishing your package
# synopsis:            Short description of your package
# category:            Web

# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description:         Please see the README on GitHub at <https://github.com/githubuser/friendface#readme>

dependencies:
- aeson
- base >= 4.7 && < 5
- bytestring
- cassava
- containers
- servant
- servant-server
- text
- time
- vector
- wai
- warp

library:
  source-dirs: src

executables:
  friendface-exe:
    main:                Main.hs
    source-dirs:         app
    ghc-options:
    - -threaded
    - -rtsopts
    - -with-rtsopts=-N
    dependencies:
    - friendface

tests:
  friendface-test:
    defaults: hspec/hspec@master
    # main:                Spec.hs
    # source-dirs:         test
    # ghc-options:
    # - -threaded
    # - -rtsopts
    # - -with-rtsopts=-N
    dependencies:
    - friendface

I am experiencing it open haskell-ide-engine itself (stack based) with vscode in windows 10:
{
	"resource": "/D:/dev/ws/haskell/haskell-ide-engine/test/functional/FunctionalCodeActionsSpec.hs",
	"owner": "Haskell HIE (haskell-ide-engine)",
	"severity": 8,
	"message": "Could not load module `Control.Applicative.Combinators'\nIt is a member of the hidden package `parser-combinators-1.1.0'.\nPerhaps you need to add `parser-combinators' to the build-depends in your .cabal file.\nUse -v to see a list of the files searched for.",
	"source": "ghcmod",
	"startLineNumber": 11,
	"startColumn": 1,
	"endLineNumber": 11,
	"endColumn": 49
}

and 4 more similar errors

Should be resolved now. For different components, having different dependencies works. Resolved by #1126


Codespell report for "cwa-app-ios" (on fossies.org)

The FOSS server fossies.org offers among others a feature "Source code misspelling reports".
Although smartphone apps are not included in the portfolio of that server, due to the expected importance of the CWA app I have set up as server admin a kind of continuous source code spelling error checks for all associated CWA sub-projects (repos). This is realized by cloning the GitHub default branch ("master" resp. in case of cwa-app-ios  "development") and using the tool "codespell". The according reports are generated in a special restricted "test" folder that isn't fully integrated into the Fossies standard services and should also not be accessible to search engines. The cwa-app-ios report can be found here:
  https://fossies.org/linux/test/cwa-app-ios-development-snap.tar.gz/codespell.html
That version independent URL hopefully always redirects to the report for the latest "development" version identified by the short commit ID and a year-month-day string (YYMMDD) representing the according git pull date (mostly = commit date). The refresh rate is currently half-hourly.
Although after a first review some obviously wrong matches ("False Positives" = FPs) are already filtered out (especially unsupported German words) please inform me if you find more of them so that I can force a new improved check if applicable (e.g. "seperator" -> "separator" may be a FP).
Just for information there are also three supplemental pages showing some used "codespell" configuration details, all obvious False Positives and an error history (log).
Ok, corrections of spelling errors and typos have a low priority. Additionally some of the few found errors are "only" in comments (so not directly visible or relevant for users) and that within output strings may not all handled by the development team itself (/corona-warn-app/cwa-app-android#72).
Maybe nevertheless these reports can make a (very) small contribution to the overall code quality.

Internal Tracking ID: EXPOSUREAPP-9775

I could take this one. It's mostly just comments, except "seperator". Since that might be an edge case, should I leave it?

Hi @jschleus ,
thank you for letting us know. It would be a huge help if you could let us know about your proposal in a pull request. Highly appreciate your contribution.
Best,
-KM

Although your wish is understandable I cannot fulfill it.  Quoting from the page mentioned above:

A note: Fossies provides as an information only the source code spelling check reports with the special option to inspect the context of the probably misspelled words in a fast and comfortable way. However Fossies doesn't create for e.g. "diff"-like files usable by the "patch" command or even GitHub pull requests (PRs) since the risk is too high that something would be wrongly corrected (but here you may find some small codespell usage hints). Whether it's worth the effort to correct the misspelling errors manually is a decision of the respective project.

The main reason is that I don't know what is really correct. E.g. variable names don't have to be spelled correctly, but there could still be an error. A good example may be the mentioned "seperator".
By the way, the above text (page) contains also a link to some small "codespell" usage hints.

Hi!
We appreciate your effort and think this is definitely a valuable improvement to the code base.
However, due to our current time constraints and other, more high priority items, we have to put this issue on hold.
If the time allows, at some future moment we will be able to come back to this issue.
Thank you for your understanding.

FYI: I created #3627 which addresses most of the typos listed on the website.

@Ein-Tim Thanks for the PR.


fix: Add latest tag for releaser image

What type of PR is this?

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug

/kind cleanup
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:
This PR addresses an issue with automated image signing introduced in #266. In #266 we missed tagging the nephio/releaser image with latest tag. This caused the image signing process to fail because all images tried to pull nephio/releaser:latest but couldn't find it.
This PR fixes the issue by ensuring the nephio/releaser image is tagged with the latest tag along with ${PULL_BASE_REF}. This will allow all images to successfully pull and use the nephio/releaser:latest image for signing.
Which issue(s) this PR fixes:

Related to #266
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
No.

NONE

/approve

/assign @radoslawc @electrocucaracha

/ok-to-test

/lgtm


Invoke-BuildExec spitting out service principal secret as current directory

I just found out on one of our build script that Invoke-BuildExec shows part of the command output as cd. Possibly confused by piping into ConvertFrom-Json.

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     5.9.12                InvokeBuild                         {Build-Checkpoint, Build-Parallel, Invoke-Build}

Name                           Value
----                           -----
PSVersion                      7.3.2
PSEdition                      Core
GitCommitId                    7.3.2
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

azure-cli azure-cli-core azure-cli-telemetry extensions
--------- -------------- ------------------- ----------
2.44.1    2.44.1         1.0.8               @{aks-preview=0.5.117; application-insights=0.1.16; automation=0.2.1; azure-devops=0.25.0; costmanagement=0.2.1; k8s-extension=1.3.7}

exec -each {...} prints $pwd as cd, see
https://github.com/nightroman/Invoke-Build/blob/ccb3839522fe39e17b6366a7af9d1caeab651af0/Invoke-Build.ps1#L269
Is it possible that your $pwd contains such a value?

Hmm, an idea. Do you by any chance use the PowerShell automatic variable $pwd (current location) as a some sort of password?

If yes, I'd say it is not a good idea to mess with PS automatic variables, who knows when and how this bites.
But this is up to the author / script, indeed, no problem.
In the meantime I'll think of printing cd $global:pwd to minimize chances of such issues.

Yes, you're right. There was another function within the same module assigning $script:pwd which within a module means module-wide scope.
The $global:pwd sounds good 👍

Question: Why not Get-Location? Because it's isn't available in PowerShell 2.0?

Benefit from Get-Location would be that it's supported by Pester Mock. Not that I can think off the shelf a scenario where one would want to use it...
Describe "Get-Location" {
	Context "Mocking works..." {
		BeforeEach{
			Mock Get-location { return @{ Path = 'D:\' } }
			$script:result = Get-Location
		}

		It "should work" {
			$script:result.Path | Should -Be 'D:\'
		}
	}
}

Why $pwd? Well, why not? Using Get-Location may have some advantages (and disadvantages). Just like using $pwd, some advantages and disadvantages.

Done, v5.10.2


add (optional) to optional fields

Title

Email address

👍  code-wise it's good, if it's the agreed approach :)


Make helpers global

Helper() is on slog.Logger which makes it annoying to use with slogtest since t.Helper() doesn't work. Best way to fix would be to add slog.Helper to avoid having to create a new logger just for calling Helper on it and also for upstream functions to easily mark themselves as helper without passing down a logger when using slogtest.
Should also reconsider just making t.Helper() native functionality.

See #42


update MANUAL.md with toc links, some umodes, and some language

I have deliberately left out +E (Roleplaying) as I was advised it was depreciated and I am not comfortable with the concept yet

Thanks!


Shipped API files don't include python/binaryninja/py.typed

Version and Platform (required):

Binary Ninja Version: 3.4.4271, also occurs on 3.5.4286-dev (latest dev at time of writing)
OS: Arch Linux
CPU Architecture: x64

Bug Description:
Using the type annotations requires manually creating an empty file at python/binaryninja/py.typed, despite the fact that this repo includes such a file.
Steps To Reproduce:

Run scripts/install_api.py
cd ~/tmp && echo 'import binaryninja' > meow.py && mypy meow.py
Observe the following error:meow.py:1: error: Skipping analyzing "binaryninja": module is installed, but missing library stubs or py.typed marker  [import]
meow.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Create an empty file at python/binaryninja/py.typed within the binaryninja installation
Run mypy meow.py and observe it now works.

Expected Behavior:
mypy works out of the box, with py.typed shipped with the rest of Binary Ninja.
Additional Information:
See also: #2747.
While I can't find it now, I seem to recall seeing an issue where the problem was that empty py.typed files get stripped by the build process, which is why there's now a dummy comment in them. Nonetheless, this doesn't seem to be helping, as they are still not included.

Good catch, I've modified the cmake config so that should be included in future builds, not just in the repo.


[BUG] Error in example about connecting with SQLAlchemy

Describe the bug
Facing an error with example sql_app from the tutorial SQL (Relational) Databases.
  File "./sql_app/main.py", line 25, in create_user
    db_user = crud.get_user_by_email(db, email=user.email)
  File "./sql_app/crud.py", line 11, in get_user_by_email
    return db.query(models.User).filter(models.User.email == email).first()
  AttributeError: 'generator' object has no attribute 'query'

To Reproduce
Follow instruction from the example (link above):

Create files into sql_app directory.
Run venv/bin/uvicorn sql_app.main:app --reload
http://<IP_ADDRESS>:8000/docs
Execute the Create user operation

Environment:

OS: Linux, Ubuntu 18.04.3 LTS
Python 3.7.3
FastAPI 0.39.0
SQLAlchemy 1.3.10

FastAPI 0.39.0 does not support yield in dependencies, try to upgrade FastApi to 0.42.0.
or see this
https://github.com/tiangolo/fastapi/blob/78272ac1f32bce5c972633006d301d16557eee9e/docs/src/sql_databases/sql_app/main.py

Thanks! This helped.

I am seeing this same issue in .52 using almost verbatim the doc examples with postgres.  Depends is not calling the function but returning what appears to be an instantiate Depends object.

The reference previously posted by @peilion seems to no longer be a valid URL. Following the same example as the OP, I am receiving the following error: 'Depends' object has no attribute 'query'. This is because I'm using the db: Session = Depends(get_db) approach to access SessionLocal. If I attempt to get a db session by calling get_db directly, then I receive the 'generator' object has no attribute 'query' error that the OP originally mentioned.  This is with FastAPI version .53

Thanks for the help here @peilion ! :clap: :bow:
Thanks for reporting back and closing the issue @rappongy  :+1:

@pspierce and @H0r53 if you are still having problems, please create a new issue with a minimal self-contained example with the problem, that way we can check what's happening.

I am seeing this same issue in .52 using almost verbatim the doc examples with postgres. Depends is not calling the function but returning what appears to be an instantiate Depends object.

Did you solve this? I am seeing in 0.58.1. I also tried: instead of using generator, returning the db directly -- same problem.

I am seeing this same issue in .52 using almost verbatim the doc examples with postgres. Depends is not calling the function but returning what appears to be an instantiate Depends object.

@pspierce and @H0r53, Did you solve this? I am seeing in 0.58.1. I also tried: instead of using generator, returning the db directly -- same problem.

from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker

engine = create_engine('postgresql://postgres:postgres@localhost:5432/postgres', echo=True)
default_session = scoped_session(sessionmaker(autocommit=False,
                                         autoflush=False,
                                         bind=engine))

def get_database():
    db = default_session()
    try:
        yield db
    finally:
        db.close()

First error I got:

AttributeError: 'Depends' object has no attribute 'query'

from database.data import get_database, scoped_session
from database.models.reference import Reference
from fastapi import Depends

def get_references(db: scoped_session = Depends(get_database())):
    references = db.query(Reference).all()
    return references

Without Depends:

AttributeError: 'generator' object has no attribute 'query'

def get_references(db: scoped_session = get_database()):

@osmanbaskaya @BrainABar my issue was never truly resolved. A workaround I've been using is to ignore Depends altogether and define get_db as a generator. So to access a session I have to next(get_db). This seems to work, but after FastAPI runs for a while I consistently receive issues with the MySQL database connection timing out or the Sessions transaction being rolled back during a flush. I understand this is probably more of an issue with getting FastAPI and SQLAlchemy to work together - but without being able to establish connections after a few hours of running or perform simple atomic database operations, the entire FastAPI SQLAlchemy solution is broken.

Did you guys solve this? Im having the same issue  when a method is called locally, but when a get method is called, it works..
@app.get("/all_program_tasks/{program_ID}")  #works perfectly
def get_all_program_tasks(program_ID: int, db:Session = Depends(get_db)):
    user_ID=3
    db_program_tasks = crud.get_program_tasks_by_program_ID(db, program_id=program_ID)
    if db_program_tasks is None:
        raise HTTPException(status_code=404, detail="finner ingenting ?")

    for details in db_program_tasks:
        crud.auto_generate_workout_plan_tasks(db, user_id=user_ID, program_tasks_id=details.program_tasks_ID, day_to_perform_the_task=calendar.day_name[details.day_number_to_perform_task])
        print("PROGRAM TASKS ID? {}".format(details.program_tasks_ID))
        #print("day number to perform task? {}".format(details.day_number_to_perform_task))
        print("WEEKDAY? {} ".format(calendar.day_name[details.day_number_to_perform_task]))

    return db_program_tasks

def get_all_program_tasks2(program_ID: int, db:Session = Depends(get_db)):  # does not work
    user_ID=3
    db_program_tasks = crud.get_program_tasks_by_program_ID(db, program_id=program_ID)
    if db_program_tasks is None:
        raise HTTPException(status_code=404, detail="finner ingenting ?")

    for details in db_program_tasks:
        crud.auto_generate_workout_plan_tasks(db, user_id=user_ID, program_tasks_id=details.program_tasks_ID, day_to_perform_the_task=calendar.day_name[details.day_number_to_perform_task])
        print("PROGRAM TASKS ID? {}".format(details.program_tasks_ID))
        #print("day number to perform task? {}".format(details.day_number_to_perform_task))
        print("WEEKDAY? {} ".format(calendar.day_name[details.day_number_to_perform_task]))

    return db_program_tasks

Did you guys solve this? Im having the same issue  when a method is called locally, but when a get method is called, it works..

@app.get("/all_program_tasks/{program_ID}")  #works perfectly

def get_all_program_tasks(program_ID: int, db:Session = Depends(get_db)):

    user_ID=3

    db_program_tasks = crud.get_program_tasks_by_program_ID(db, program_id=program_ID)

    if db_program_tasks is None:

        raise HTTPException(status_code=404, detail="finner ingenting ?")

    for details in db_program_tasks:

        crud.auto_generate_workout_plan_tasks(db, user_id=user_ID, program_tasks_id=details.program_tasks_ID, day_to_perform_the_task=calendar.day_name[details.day_number_to_perform_task])

        print("PROGRAM TASKS ID? {}".format(details.program_tasks_ID))

        #print("day number to perform task? {}".format(details.day_number_to_perform_task))

        print("WEEKDAY? {} ".format(calendar.day_name[details.day_number_to_perform_task]))

    return db_program_tasks

def get_all_program_tasks2(program_ID: int, db:Session = Depends(get_db)):  # does not work

    user_ID=3

    db_program_tasks = crud.get_program_tasks_by_program_ID(db, program_id=program_ID)

    if db_program_tasks is None:

        raise HTTPException(status_code=404, detail="finner ingenting ?")

    for details in db_program_tasks:

        crud.auto_generate_workout_plan_tasks(db, user_id=user_ID, program_tasks_id=details.program_tasks_ID, day_to_perform_the_task=calendar.day_name[details.day_number_to_perform_task])

        print("PROGRAM TASKS ID? {}".format(details.program_tasks_ID))

        #print("day number to perform task? {}".format(details.day_number_to_perform_task))

        print("WEEKDAY? {} ".format(calendar.day_name[details.day_number_to_perform_task]))

    return db_program_tasks

It has to be within a request context

Did you guys solve this? Im having the same issue when a method is called locally, but when a get method is called, it works..
@app.get("/all_program_tasks/{program_ID}")  #works perfectly
def get_all_program_tasks(program_ID: int, db:Session = Depends(get_db)):
    user_ID=3
    db_program_tasks = crud.get_program_tasks_by_program_ID(db, program_id=program_ID)
    if db_program_tasks is None:
        raise HTTPException(status_code=404, detail="finner ingenting ?")

    for details in db_program_tasks:
        crud.auto_generate_workout_plan_tasks(db, user_id=user_ID, program_tasks_id=details.program_tasks_ID, day_to_perform_the_task=calendar.day_name[details.day_number_to_perform_task])
        print("PROGRAM TASKS ID? {}".format(details.program_tasks_ID))
        #print("day number to perform task? {}".format(details.day_number_to_perform_task))
        print("WEEKDAY? {} ".format(calendar.day_name[details.day_number_to_perform_task]))

    return db_program_tasks

def get_all_program_tasks2(program_ID: int, db:Session = Depends(get_db)):  # does not work
    user_ID=3
    db_program_tasks = crud.get_program_tasks_by_program_ID(db, program_id=program_ID)
    if db_program_tasks is None:
        raise HTTPException(status_code=404, detail="finner ingenting ?")

    for details in db_program_tasks:
        crud.auto_generate_workout_plan_tasks(db, user_id=user_ID, program_tasks_id=details.program_tasks_ID, day_to_perform_the_task=calendar.day_name[details.day_number_to_perform_task])
        print("PROGRAM TASKS ID? {}".format(details.program_tasks_ID))
        #print("day number to perform task? {}".format(details.day_number_to_perform_task))
        print("WEEKDAY? {} ".format(calendar.day_name[details.day_number_to_perform_task]))

    return db_program_tasks

It works

@vlori2k
It has to be within a request context

It has to be within a request context, so your get example is valid but the other function is not.
Please see above.

Also can check here, https://gitanswer.com/fastapi-depends-object-returned-instead-of-session-python-653439292

you can't use Depends in your own functions, it has to be in FastAPI functions, mainly routes. You can, however, use Depends in your own functions when that function is also a dependency, so could can have a chain of functions.
Eg, a route uses Depends to resolve a 'getcurrentuser', which also uses Depends to resolve 'getdb', and the whole chain will be resolved. But if you then call 'getcurrentuser' without using Depends, it won't be able to resolve 'getdb'.
What I do is get the DB session from the route and then pass it down through every layer and function. I believe this is also better design. ——GabrielCarpr


vimPlugins.neotest: add dependencies

Description of changes
In the neotest README, it is said that

plenary.nvim is a "hard" dependency
FixCursorHold.nvim is "recommended"

This patch adds both in the neotest derivation.
Should only plenary be actually included ?
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 267847 run on x86_64-linux 1

1 package built:

vimPlugins.neotest


chore(build): update component builder to use modules; suppresses stylelint notice on build

Description
With the update of our stylelint tooling to v16, we are seeing deprecations notices in our build tasks because postcss is running stylelint in a CJS script.  This update suppresses the node warnings for the console using --no-warnings.
This PR also updates our linting GitHub packages to their latest versions.
A side-effect of updating the *.json files is that the linter sorted the keys.
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
To ensure your run goes without referencing the build cache, start by running nx cache.

[x] yarn build --verbose: should no longer surface warnings about CJS being deprecated for stylelint
[x] yarn lint --verbose: should not surface warnings about CJS being deprecated for stylelint
[x] yarn build:site --verbose: should not surface warnings about CJS being deprecated for stylelint

To-do list

[x] I have read the contribution guidelines.
[x] ✨ This pull request is ready to merge. ✨

Thanks @rise-erpelding for catching the site builder warning!  I pushed up an update that should correct his now.  Thanks!


Preliminary arara log parsing support

Not sure how many people use arara here, but I know I do ;-)
tried to keep naming conventions as close as possible to the latexmk parsing helper functions, while keeping some flexibility for future improvements like bibtex log parsing,

Not a priority, but can this be merged prior to the next update?
I have been using arara quite extensively, and this will keep my logs clean(er)! :-)