Web Client won't launch correctly (BC14).

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
Created a container for BC14.8.  The web client will not launch correctly.  It comes up, asks for username/password and it just "flashes" and returns to the sign in dialog.
There are number of "odd" messages in the Event Log that may help.  For example:
From MicrosoftDynamicsNAVClientWebClient

The storage control blocks were destroyed.

From MicrosoftDynamicsNavServer$NAV

Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.

and

The operating system cannot run Server instance: NAV
Tenant:
Web API Base Address: http://unit001-ci:7048/NAV/ODataV4.

and many others.  The evtx is attached as a zip file.
It is happening to more the one 14.8 container.  Another 14.8 container included the RTC and the RTC comes up fine but has the same problem with the web client.  I have recreated these a few times with the same results.  I have slimmed this script down to the minimum I thought was useful for testing, excluded tests and c/side.

Starting Internet Information Server
Copying Service Tier Files
Copying Web Client Files
Copying Windows Client Files
Copying PowerShell Scripts
Copying ConfigurationPackages
Copying Test Assemblies
Copying TestToolKit
Copying UpgradeToolKit
Copying Extensions
Copying ClientUserSettings
Copying ReportBuilder
Restoring CRONUS Demo Database
Determining Database Collation
Changing Database Server Collation to Latin1_General_100_CI_AS
Restoring CRONUS Demo Database
Installing C:\NAVDVD\Installers\GB\RTC\RoleTailoredClient.Local.Gb.msi
Skipping C:\NAVDVD\Installers\GB\WebHelp\WebHelp.Local.Gb.msi
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Starting Business Central Service Tier
Importing CRONUS license file
Generating Symbol Reference
Stopping Business Central Service Tier
Installation took 367 seconds
Installation complete
Removing intermediate container 8a220cb35fa5
 ---> 570abec920d2
Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447"       created="202102131237"       nav="1904"       cu="cu7"       country="gb"       version="14.8.3
8658.0"       platform="14.0.38650.0"
 ---> Running in 21050daf8ae9
Removing intermediate container 21050daf8ae9
 ---> b08bb69053e9
Successfully built b08bb69053e9
Successfully tagged internal:onprem-14.8.38658.0-gb
Building image took 1667 seconds
Using image internal:onprem-14.8.38658.0-gb
Creating Container unit001-ci
Version: 14.8.38658.0-gb
Style: onprem
Multitenant: No
Platform: 14.0.38650.0
Generic Tag: <IP_ADDRESS>
Container OS Version: 10.0.19042.804 (20H2)
Host OS Version: 10.0.19042.804 (20H2)
Using process isolation
Using locale en-GB
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file d:\license\bc14license.flf
Files in d:\bccontainerhelper\Extensions\unit001-ci\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container unit001-ci from image internal:onprem-14.8.38658.0-gb
f3230ea85e4beb2fd3db79d95af813e7475aea7318cd8c14e84e5c4a46df6762
Waiting for container unit001-ci to be ready
Initializing...
Setting host.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting dbserver.containerhelper.internal to <IP_ADDRESS> in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to <IP_ADDRESS> in container hosts file
Starting Container
Hostname is unit001-ci
PublicDnsName is unit001-ci
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 05729731BD5A2C14F86623700C9751CDEF6EF0F3
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: <IP_ADDRESS>
Container Hostname  : unit001-ci
Container Dns Name  : unit001-ci
Web Client          : http://unit001-ci/NAV/
Dev. Server         : http://unit001-ci
Dev. ServerInstance : NAV
Setting unit001-ci to <IP_ADDRESS> in host hosts file

Files:
http://unit001-ci:8080/ALLanguage.vsix

Container Total Physical Memory is 15.7Gb
Container Free Physical Memory is 4.1Gb

Initialization took 102 seconds
Ready for connections!
Reading CustomSettings.config from unit001-ci
Creating Desktop Shortcuts for unit001-ci
Container unit001-ci successfully created

Use:
Get-BcContainerEventLog -containerName unit001-ci to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName unit001-ci to get debug information about the container
Enter-BcContainer -containerName unit001-ci to open a PowerShell prompt inside the container
Remove-BcContainer -containerName unit001-ci to remove the container again
docker logs unit001-ci to retrieve information about URL's again

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

does it happen all the time?  It has happened on another 14.8 container too.
did it use to work?  BC17 containers seem to be fine

EventLog shows some messages I don't recognize.
unit001-ci 2021-02-13 12.54.50.evtx.zip

Could you try a different browser?

That was with MS Edge, in-private doesn't work either.
Chrome regular/incognito doesn't work either.
Firefox regular does work.  Something with the Chromium engine?
Tried Chrome and Edge again, still doesn't work.

Could you try to add -usessl and -installcertificateonhost

Okay after adding those parameters Edge and Chrome open web client as expected.
$containerName = 'unit001-ci'
$password = 'P@ssw0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'OnPrem' -version '14.8' -country 'gb' -select 'Latest'
$licenseFile = 'd:\license\bc14license.flf'
New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -licenseFile $licenseFile `
    -imageName 'internal' `
    -dns '<IP_ADDRESS>' `
    -updateHosts `
    -usessl `
    -installcertificateonhost

What you run into is browsers who are trying to detect whether the site is safe.
You might be able to categorize the containers as safe in different ways, but adding SSL apparently also did it.
You would probably have the same problem if installing without docker.


Can't build from repo on MacOS X: configure: error: cannot find sources (Makefile.in) in jemallocator/target/debug/build/jemalloc-sys-a78a0bf5b0ae6246/out/jemalloc or ..

I just cloned the repo and tried cargo build. It didn't work. Full build console output: https://gist.github.com/jorendorff/514255feb593b7a886c6f9087a8407d0

You need to run git submodule init.

Of course! Thanks for the quick response, and I'm sorry for the noise.


Add entry point section to routing docs

Please revise the text, English is not my native language.
Closes #105

Thanks, I will make corrections and merge in a bit.


Avoid getting the "Syntax error" from json_decode

Avoid getting the "Syntax error" from json_decode when LinkedIn API returns an empty response.

@mnajafzadeh could you provide an example when you did run into such issue?

Hi @zoonman
An example can be, when you try to post a comment on a LinkedIn company page like:
$response = $client->post("companies/".$company_id."/updates/key=".$updateKey."/update-comments-as-company/", ['comment' => $message]);
This kind of requests have not any response if it is successful.
Thank you.

Hi @zoonman
An example can be, when you try to post a comment on a LinkedIn company page like:
$response = $client->post("companies/".$company_id."/updates/key=".$updateKey."/update-comments-as-company/", ['comment' => $message]);
This kind of requests have not any response if it is successful.
Thank you.

This is not the correct fix for the issue.
https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/ugc-post-api

The UGC Post is created with a 201 Created response and the response header X-RestLi-Id contains the ugcPost ID.

Linkedin does give response but it's in the header not body. We should parse the response correctly.

Hi
In my case, the problem was resolved by changing the API Root URL to version 2.
    $this->client = new Client(
        env('LINKEDIN_CLIENT_ID'),
        env('LINKEDIN_CLIENT_SECRET')
    );

    $this->client->setApiRoot('https://api.linkedin.com/v2/');

    $this->client->setRedirectUrl(env('LINKEDIN_CALLBACK'));


AppVeyor builds appear to be stuck

AppVeyor appears to be stuck on cancelling a build:
https://ci.appveyor.com/project/scipy/scipy/history
This seems to be a known problem:
http://help.appveyor.com/discussions/problems/5896-build-stuck-on-cancelling-disallowing-further-builds
Does anyone know of a way to fix it or are we going to have to contact them?

Open an issue in the appveyor/ci repository. they usually fix the problems quickly.

Fixed.


Bootstrap responsive navbar displayed incorrectly

Using Rails 5, poltergeist 1.13.0, capybara 2.12.1 and Bootstrap 4 (alpha6) with the following setup:
Capybara.register_driver :poltergeist_debug do |app|
  output = StringIO.new
  Capybara::Poltergeist::Driver.new(
    app,
    js_errors: true,
    window_size: [1280, 912],
    screen_size: [1280, 912],
    phantomjs_logger: output,
    inspector: true
  )
end

Capybara.default_driver = :poltergeist
Capybara.javascript_driver = :poltergeist_debug

in a test I am seeing the following:

if I remove the "navbar-toggleable-md" class (or any variant i.e. -sm, -md, -lg, -xl) from the navbar I get the following:

however, I should be getting the following:

The navbar contains the following markup, and works perfectly in browser:

    <button type="button" class="navbar-toggler navbar-toggler-right" data-toggle="collapse" data-target="#main-menu">

    </button>

    <%= link_to 'MyApp', root_path, class: 'navbar-brand' %>

        <%= active_link_to fa_icon('dashboard fw', text: 'Dashboard'), admin_dashboard_index_path, class: 'nav-item nav-link' %>
        <%= active_link_to fa_icon('building fw', text: 'Organisations'), admin_organisations_path, class: 'nav-item nav-link' %>
        <%= active_link_to fa_icon('book fw', text: 'Courses'), admin_courses_path, class: 'nav-item nav-link' %>

          <%= fa_icon 'user-circle', text: current_admin_user.email %>

        <%= link_to destroy_admin_user_session_path, class: "nav-item nav-link", method: :delete do %>
          <%= fa_icon 'sign-out fw', class: 'hidden-md-up' %>
          Log out
        <% end %>

Any ideas?

Poltergeist doesn't render the pages, it uses PhantomJS for that.  The latest release version of PhantomJS 2.1.1 which is roughly equivalent to a 5 year old version of Safari.  So, assuming the html in the page (page.html) is what you expect and it's only the look/layout that's off odds are you're using CSS that isn't supported by it.  There is a PhantomJS 2.5beta that you can try that acts more like a modern browser but it is very much still a beta.  Closing this because it's not a Poltergeist issue.

Being caught in the same problem with bootstrap 4.1 and poltergeist 2.1.1. Probably I must move to headless chrome-driver now to solve it.


Constructing policy from EST JSON fails for chained multiplication

Before opening, please confirm:

[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Bug Category
Cedar Parser
Describe the bug
Given a policy
permit(principal,  action,  resource) when {1 * 2 * true };

we can parse the policy and convert it to a JSON EST using Policy::to_json.
{
  "effect": "permit",
  "principal": {
    "op": "All"
  },
  "action": {
    "op": "All"
  },
  "resource": {
    "op": "All"
  },
  "conditions": [
    {
      "kind": "when",
      "body": {
        "*": {
          "left": {
            "*": {
              "left": {
                "Value": 1
              },
              "right": {
                "Value": 2
              }
            }
          },
          "right": {
            "Value": true
          }
        }
      }
    }
  ]
}

but using this JSON to construct a Policy gives an error multiplication must be by a constant int: neither `1 * 2` nor `true` is a constant.
Expected behavior
It should always be possible to reconstruct a policy after serializing JSON.
Reproduction steps
.
Code Snippet
// Put your code below this line.

Log output
// Put your output below this line

Additional configuration
No response
Operating  System
No response
Additional information and screenshots
No response

Just a note to make sure we don't change error semantics of addition. We should be sure to test error behavior of these expressions remains unchanged after the fix:

2^62*2^62*0
2^62*0*2^62
0*2^62*2^62

RFC is https://github.com/cedar-policy/rfcs/pull/50

RFC50 was replaced by https://github.com/cedar-policy/rfcs/pull/57 which is implemented in #702


Take the BDNS configuration  from a shared github path

Not high priority, we managed to have a different approach on managing the BDNS configurations together with servers configurations for each partner, component (eg mobile apps).  can continue I prefer to keep it for the next year. It is planed that the BDNS to  be replaced by a better solution that will use the blockchain &  smart contracts


credit to original author

I don't know who this Nathan French guy is, but he's basically stolen all my code
Do you want to give a tip of the hat to the originator?


Morshedniaz patch 1

The CircleCI preview didn't run. Perhaps because it was from a fork, not a different branch. I'll have to look into it. I'll make it an issue.

Hey @morshedniaz, want some help walking through what to do next here? You can email me if you have questions. Basically the goal is to get this fixed up until there are no more comments and then we can accept the changes and merge into the gh-pages branch (the one that serves the website).
You can keep pushing to your fork/branch and the changes will show up here.


Standard_ Workflow parameters : There is change in view of parameters in read only mode and edit mode. Array parameters is not showing in brackets(in both edit and read only mode) and boolean value is not shown in read only mode.

Describe the Bug with repro steps
1.Create a new stateful logic app in standard, open the designer.
2.Validate if 'Parameters' command button shows
3.Add some parameters, save and run it.
4.After creating some parameters, the parameters should continue to be shown in the parameters panel. Open up the parameters panel. The parameters should be in read-only mode. Click on the name of the parameter to expand.
Expected: Parameters should be in orginal mode.
Actual: There is change in view of parameters in read only mode and edit mode. Array parameters is not showing in brackets( both edit and read only mode) and boolean value is not shown in read only mode.
What type of Logic App Is this happening in?
Standard (Portal)
Are you using Preview Designer or GA Designer
Preview
Workflow JSON
{
  "definition": {
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "actions": {
      "Response": {
        "type": "Response",
        "kind": "Http",
        "inputs": {
          "statusCode": 200,
          "body": "@parameters('a')"
        },
        "runAfter": {}
      }
    },
    "contentVersion": "<IP_ADDRESS>",
    "outputs": {},
    "triggers": {
      "When_a_HTTP_request_is_received": {
        "type": "Request",
        "kind": "Http"
      }
    }
  },
  "connectionReferences": {},
  "parameters": {
    "a": {
      "type": "Array",
      "value": [
        1,
        2
      ]
    },
    "b": {
      "type": "Bool",
      "value": true
    },
    "c": {
      "type": "Int",
      "value": 123
    },
    "d": {
      "type": "String",
      "value": "abcdef"
    }
  }
}

Screenshots or Videos

Browser
Edge
Additional context
Environmental Details:
URL: https://aka.ms/emastaging
Version : 2.20501.1.1

Functionally it is not changing the value, this is just display issue.

Issue repro in the latest request:
Environment Details:
URL: https://aka.ms/emastaging-flowstip1
Version: 2.30508.1.1

Issue repro in latest artifact.

VS Code extension –   vscode-azurelogicapps-2.15.15.vsix
NuGet package: https://artprodeussu2.artifacts.visualstudio.com/A41bf5486-7392-4b7a-a7e3-a735c767e3b3/b32aa71e-8ed2-41b2-9d77-5bc261222004/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL21zYXp1cmUvcHJvamVjdElkL2IzMmFhNzFlLThlZDItNDFiMi05ZDc3LTViYzI2MTIyMjAwNC9idWlsZElkLzczMDA5ODA5L2FydGlmYWN0TmFtZS9kcm9wX2J1aWxkX0J1aWxkQXJ0aWZhY3RzX1dpbmRvd3M1/content?format=file&subPath=%2FMicrosoft.Azure.Workflows.WebJobs.Extension.1.21.3.nupkg
Extension Bundle (CDN URL): https://cdnforlogicappsv2.blob.core.windows.net/logicapps-vendortesting
Extension Bundle (Direct Download): https://cdnforlogicappsv2.blob.core.windows.net/logicapps-vendortesting/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle.Workflows/1.21.3/Microsoft.Azure.Functions.ExtensionBundle.Workflows.1.21.3_any-any.zip
Resources vsix.   vscode-azureresourcegroups-LA.vsix


[BUG] pyproject.toml: Unicode character in a license file prevents dependencies from being installed

Description
Some licenses, in this specific example, LGPL-2.1, contains Unicode characters. In case of LGPL 2.1 it is U+000c - Form Feed character.
In pyproject.toml having a license file with those characters silently breaks package dependencies installation.
Expected behavior

pip install -e . installs package dependencies
pip install -e .[dev] installs optional dev dependencies group

pip version
23.2.1
Python version
3.10, 3.11
OS
Fedora Linux 38
How to Reproduce

Create pyproject.toml

[project]
name = "unicode-bug"
version = "0.1.0"
requires-python = ">=3.10"
license = {file = "LICENSE"}
dependencies = [
    "requests"
]
[project.optional-dependencies]
dev = [
  "pytest"
]

Create LICENSE file with unicode character

$ echo -e '\U000b' > LICENSE

Try to install the package  and optional dependencies - doesn't install dependencies

$ pip install -e .
...
Successfully built unicode-bug
Installing collected packages: unicode-bug
  Attempting uninstall: unicode-bug
    Found existing installation: unicode-bug 0.1.0
    Uninstalling unicode-bug-0.1.0:
      Successfully uninstalled unicode-bug-0.1.0
Successfully installed unicode-bug-0.1.0

$ pip install -e .[dev]
...
WARNING: unicode-bug 0.1.0 does not provide the extra 'dev'
...

Remove unicode character

$ echo "" > LICENSE

Try to install the package  and optional dependencies - installation works

$ pip install -e .
...
Successfully built unicode-bug
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests, unicode-bug
  Attempting uninstall: unicode-bug
    Found existing installation: unicode-bug 0.1.0
    Uninstalling unicode-bug-0.1.0:
      Successfully uninstalled unicode-bug-0.1.0
Successfully installed certifi-2023.7.22 charset-normalizer-3.2.0 idna-3.4 requests-2.31.0 unicode-bug-0.1.0 urllib3-2.0.4

$ pip install -e .[dev]
Successfully built unicode-bug
Installing collected packages: pluggy, packaging, iniconfig, unicode-bug, pytest
  Attempting uninstall: unicode-bug
    Found existing installation: unicode-bug 0.1.0
    Uninstalling unicode-bug-0.1.0:
      Successfully uninstalled unicode-bug-0.1.0
Successfully installed iniconfig-2.0.0 packaging-23.1 pluggy-1.3.0 pytest-7.4.0 unicode-bug-0.1.0

Output
No response
Code of Conduct

[X] I agree to follow the PSF Code of Conduct.

Hi @yurinnick thank you very much for reporting, I will have a look on this.

Distribution loaded from unicode_bug.egg_info directory has valid metadata [1]\nDiscribution loaded from temporary /tmp/pip-modern-metadata-0q88s1hj/unicode_bug-0.1.0.dist-info has invalid metadata [2]

This is interesting. Is the PKG-INFO file in the top of the sdist OK? I had a quick view in the code and it seems that we do use UTF-8 to read the file pointed out by readme in pyproject.toml. And then we use UTF-8 again to write PKG-INFO.
One thing that might be related is that setuptools  produces PKG-INFO files and those are later transformed into METADATA by pypa/wheel. But then pypa/wheel also seems to deal with the files using UTF-8.
The code contains some places that we use email.message_from_file (via distutils) to read PKG-INFO when building from the sdist, this might be where UTF-8 is not explicitly used. But I am not sure this is used, I need to investigate better.
If you build the project skipping the sdist step (e.g. python -m build --wheel) is the metadata file still ill-formed?

PKG-INFO in egg-info directory has the unicode character, but gets parsed correctly.
LICENSE file from dist-info directory also contains unicode, but METADATA file doesn't.
Here are the files in the hex form: https://gist.github.com/yurinnick/94fc3d9b19e0bf6270f7dd332f4b0e61

One thing confuses me. You keep referring to a "unicode character", but the reproducer you gave (which, as I said, works fine for me on Windows) uses the character \U000b, which is a perfectly ordinary ASCII character - 'LINE TABULATION' (U+000B).
Is the problem here caused by the fact that this character is whitespace, and as such is getting stripped at some point due to something removing trailing whitespace from lines?

I added some debug statements to see when the transformation is happening and it seems to come from https://github.com/pypa/wheel/blob/0.41.2/src/wheel/bdist_wheel.py#L587:
...
       serialization_policy = EmailPolicy(  # email.policy.EmailPolicy
            utf8=True,
            mangle_from_=False,
            max_line_length=0,
        )
        with open(pkg_info_path, "w", encoding="utf-8") as out:
            Generator(out, policy=serialization_policy).flatten(pkg_info)  # email.generator.Generator
...

This is how I obtained the info:

(patch format)
diff .venv/lib/python3.10/site-packages/wheel/orig_bdist_wheel.py .venv/lib/python3.10/site-packages/wheel/bdist_wheel.py
558a559,563
>             with open(pkginfo_path, "rb") as fp:
>                 print(f"\n\n*** {__file__=} {sys._getframe().f_code.co_name=} ***")
>                 print("---------------------PKG-INFO-------------------------->>")
>                 print(repr(fp.read()))
>                 print("<<---------------------PKG-INFO--------------------------")
559a565,569
>             metadata = pkg_info
>
>             print("\n\n---------------------LICENSE-------------------------->>")
>             print(f"{metadata['License']=!r}")
>             print("<<---------------------LICENSE--------------------------")
587a598,602
>
>         with open(pkg_info_path, "rb") as fp:
>             print("\n\n---------------------METADATA-------------------------->>")
>             print(repr(fp.read()))
>             print("<<---------------------METADATA--------------------------\n\n")

And this is the output (when I run python -m build --no-isolation[^2]):
...

*** __file__='/tmp/myproj/.venv/lib64/python3.10/site-packages/wheel/bdist_wheel.py' sys._getframe().f_code.co_name='egg2dist' ***
---------------------PKG-INFO-------------------------->>
b'Metadata-Version: 2.1\nName: unicode-bug\nVersion: 0.1.0\nLicense: \x0b\n        \nRequires-Python: >=3.10\nProvides-Extra: dev\nLicense-File: LICENSE\n'
<<---------------------PKG-INFO--------------------------

---------------------LICENSE-------------------------->>
metadata['License']='\x0b\n        '
<<---------------------LICENSE--------------------------

---------------------METADATA-------------------------->>
b"Metadata-Version: 2.1\nName: unicode-bug\nVersion: 0.1.0\nLicense: \n\n        \nRequires-Python: >=3.10\nLicense-File: LICENSE\nRequires-Dist: requests\nProvides-Extra: dev\nRequires-Dist: pytest ; extra == 'dev'\n\n"
<<---------------------METADATA--------------------------

...

Now, I am not sure why stdlib's email.policy.EmailPolicy is replacing the UTF-8 character if utf8=True... Maybe that is part of the spec in the email message RFC? I am not sure how to tackle this.
Maybe it is worth to discuss with pypa/wheel?
Do the pip maintainers have any suggestions?
[^2]: I use --no-isolation to force the "patched" version of wheel to be used instead of build downloading a new one.

Hang on. License-Path isn't valid metadata. So presumably it's a setuptools-specific thing, and bdist_wheel is trying to make it into a valid value for the License field?
It looks like bdist_wheel is failing to "properly"[^1] escape that value, resulting in a metadata file with an unescaped \n\n in the license field, which is then treated as the end of the headers with everything following being dumped into the description (because it's now the message body).
[^1]: I have no idea what proper escaping would be for a multi-line value, it's not at all well-defined if I recall correctly.

@agronholm do you have any thoughts in the matter? (see https://github.com/pypa/setuptools/issues/4033#issuecomment-1698853282).
The escaping behaviour seems to be inherited by bdist_wheel from the standard library, but I am not sure if it is intentional or accidental (in the stdlib, since utf8=True is passed to the EmailPolicy)

Ah. I missed that. Looks like it's translating \x0b to \n` in that case.
Yes:
from email.policy import EmailPolicy
policy = EmailPolicy(utf8=True, mangle_from_=False, max_line_length=0)
print(repr(policy.fold("License", "a\x0bb\n")))

produces
❯ py .\em.py
'License: a\nb\n'

So that policy doesn't handle arbitrary control characters correctly...
It's worth noting that the specification is (deliberately) vague on how to serialise metadata to a file:

However, email formats have been revised several times, and exactly which email RFC applies to packaging metadata is not specified. In the absence of a precise definition, the practical standard is set by what the standard library email.parser module can parse using the compat32 policy.

So there's no formal answer to the question "how do we handle data like this?" - other than "don't do that, then" 🙁

The following is worth noting:
>>> m = email.message_from_string("Foo: a\x0b\x0bc\nBar: 12\n\nBody")
>>> m.as_string()
'Foo: a\nc\nBar: 12\n\nBody'
>>> m["Foo"]
'a\x0b\x0bc'

The email module can parse data where header values contain values like \x0b, but it can't produce them. So it doesn't round-trip correctly.

One minor comment is that the compat32 policy will do a different escaping that could potentially work (I haven't tested)[^1]. The compat32 is however a bit problematic because it does not support UTF-8.
If we replace the EmailPolicy(utf8=True, ...) with compat32 we are likely to start receiving reports of People's names not rendering properly on PyPI...
[^1]: It still removes \x0b but it does not seem to add a second \n:
print(repr(compat32.fold("License", '\x0b\n        '))) => 'License:         \n'

Like it or not, compat32 (for reading) is what the standard says. I omitted an additional part of the spec:

Whenever metadata is serialised to a byte stream (for example, to save to a file), strings must be serialised using the UTF-8 encoding.

And what does (mostly) work is to read the file using UTF-8 into a string, and then parse with email.message_from_string.
>>> m = email.message_from_string("Name: André")
>>> m["Name"]
'André'

You can't round-trip like this, and the email module (and the spec!) gives you little or no help in writing such a metadata file, so I agree that bdist_wheel has a problem with creating a file like this, but if you can create one, it's readable.
IMO, the temporary solution here is probably for setuptools to just refuse to allow control characters in a license file. The UTF-8 question is something of a red herring here, as the current behaviour with UTF-8 is fine, it's only control character handling that seems broken.
Longer term, license file handling will have to be dealt with as part of PEP 639, and if the problem of writing arbitrary user-entered text into metadata values other than license and description becomes a problem, someone will need to bite the bullet and propose a standard for how to encode such data (or we switch to a different metadata serialisation format, like JSON...)

So is there some metadata getting used by wheel that should be omitted?

@agronholm The problem is basically that if PKG-INFO contains text like b"License: \x0b\n        \n", bdist_wheel isn't encoding it correctly (i.e., in a way that can be read back).
This is because neither the metadata spec nor the email standards really say what to do with control characters in header values, and the stdlib email package appears to handle it inconsistently.
My recommendation is to reject characters like \x0b - either just fail with a helpful error, or strip them out somehow.

Are newlines still allowed though?

Ran into this issue; it's of note that some standard LICENSE texts will contain characters that end up being incorrectly escaped thus generating a PKG-INFO that's 'broken'.


Added Http NoContent extension

Returning Http NoContent when status is Ok, but there isn't any data. Bumped version.

Thanks, look forward to start using this. When will the new package be available?


Providing Typescript typings

I am using freewall in a Typescript context and would love to have some typings provided for it.
Widely used is the typings public registry, which provides a semi-automated installation and setup process.
Is there any way that you could provide tpyings for freewall?
(And while we're at it: what about adding freewall as a package to the npm registry?)

Hey again!
As I was in dire need of mentioned type definitions, I wrote a first version of them by myself.
It would be nice if you could have a look and correct them, if needed.
The typings are in a seperate repository, whilst the pull request to include these definitions in the public registry can be found here.
Any feedback is welcome!

Closed because of inactivity


sqlite: use REPLACE if UPSERT is not supported

For versions that don't support UPSERT, we'll use a slower but simple REPLACE query (e.g. for test_set benchmark with 10K entries it takes 0.6sec instead of 0.4 sec). Alternatives seem to be either a trigger or 2 queries, which are more complex to maintain.
Also lowering sqlite version requirement down to 3.8.3, as suggested in https://github.com/iterative/sqltrie/issues/8#issuecomment-1460087690
Fixes #12

Codecov Report
Patch coverage: 60.00% and project coverage change: -0.24 :warning:

Comparison is base (99ee929) 79.38% compared to head (0757c66) 79.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   79.38%   79.14%   -0.24%
==========================================
  Files          11       11
  Lines         582      585       +3
  Branches      101      102       +1
==========================================
+ Hits          462      463       +1
- Misses        109      110       +1
- Partials       11       12       +1

Impacted Files
Coverage Δ

src/sqltrie/sqlite/sqlite.py
84.91% <60.00%> (-0.88%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


chore: update checkpoint issue template to use new commands

Summary of changes

Changes introduced in this pull request:

Use use the new forest-cli archive checkpoints command when updating checkpoints.

Reference issue to close (if applicable)

Closes
Other information and links

Change checklist

[x] I have performed a self-review of my own code,
[x] I have made corresponding changes to the documentation,
[x] I have added tests that prove my fix is effective or that my feature works (if possible),
[x] I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

I like it. It does seem to me, given this guide, that we don't meatbag assistance here anymore; this could be fully automated with a cron workflow, right?

I like it. It does seem to me, given this guide, that we don't meatbag assistance here anymore; this could be fully automated with a cron workflow, right?

Yes, it could be fully automated. Someone should go automate it. :)


Human player stuck in invisible bot's lobby

Bot can create the lobby and invite human player. But once the player accepted the invitation, he could see no lobby detail  window but a "back to lobby" button in the lower right corner. And clicking it wounldn't pop the lobby window either. The player would stuck in this state, only a force_leave_game_button in console could help. Is this a bug or only my config error? Need help, thanks.

It would be helpful if you'd provide us with the code you're using to set up and configure the lobby...
On 13 Jun 2016 4:24 p.m., Roger<EMAIL_ADDRESS>wrote:
Bot can create the lobby and invite human player. But once the player accepted the invitation, he could see no lobby detail window but a "back to lobby" button in the lower right corner. And clicking it wounldn't pop the lobby window either. And the player would stuck in this state, only a force_leave_game_button in console could help. Is this a bug or only my config error? Need help, thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Basically, I just ran the example2.js in dev branch, and added an inviting function call.
           var creatingLobby = 1;
           var leavingLobby = 0;

            if(creatingLobby == 1){ // sets only password, nothing more
                var lobbyPassword = "ap";
                var lobbyName = "Lobby Name";

                Dota2.createPracticeLobby(lobbyPassword, lobbyName, function(err, data){
                    util.log(JSON.stringify(data));
                    Dota2.inviteToLobby("7656119********");
                });
            }

Hmm, can you try and pass some additional options? So instead of lobbyName, pass an object like this one
{
        "game_name": "MyLobby",
        "server_region": 3,
        "game_mode": 2,
        "series_type": 2,
        "game_version": 1,
        "allow_cheats": false,
        "fill_with_bots": false,
        "allow_spectating": true,
        "pass_key": lobbyPassword,
        "radiant_series_wins": 0,
        "dire_series_wins": 0,
        "allchat": true
    }

It might be that there's a minimum amount of options that need to be set in order for a player to be able to actually join...

@Crazy-Duck It works! Thanks a lot. By the way, the example2.js should be updated a bit.

Did you check which options are required and which ones are optional? If not I'll look into making a pull with an update that contains the entire object.

So sorry that I didn't check which options are necessary. I am now busy on making my bot just working.

eh, don't sweat, I'm sure we'll know some day :p


Adds --from-wallet to the new-wallet cli command

Implements #69

Note: this feature is stacked on top of the PR #70

Ready for review @lcswillems

It seems the PR doesn't treat the case where the password is not specified as an argument.


use app.getPath(name) to get preferences directory

Currently doing this the old fashioned way: homePath = process.env.HOME || process.env.USERPROFILE.  Should start doing it the right way with the app module

and the prefs dir should be md-viewer not mb-viewer
also note the www/about.html file references mb-viewer


28296 Adds as_subquery method to aggregates.

https://code.djangoproject.com/ticket/28296
Also leverages the new methods on Subquery to make the interface for Exists simpler.

I'm don't mean to hijack the conversation, but if we're discussing the API, a somewhat related need is for having a subquery in the FROM clause so wanted to mention that in case others want to chime in

@airstrike that's a different can of worms which is should be tracked by another ticket, if it's not already the case.

Kindly bumping this PR, is this still a planned feature?


can not find "cmp_out_shape_floor_as_conv" in apollo caffe branch

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information

OS Platform and Distribution (e.g., Linux Ubuntu 14.04):
ubuntu 18.04
Apollo installed from (source or binary):
from source
Apollo version (1.0, 1.5, 2.0, 2.5, 3.0):
5.5
cuda_version:10.1

Steps to reproduce the issue:

Please use bullet points and include as much details as possible:
I search in caffe.proto in applo caffe branch
https://github.com/ApolloAuto/caffe/tree/apollo
But can not find variable named "cmp_out_shape_floor_as_conv"
But it was used in traffic light detection module.

Supporting materials (screenshots, command lines, code/script snippets):

@ghy200692162 : Hi I am facing the same issue with traffic light recognition. Can you help me in resolving this issue ?

Hi, Sorry to bother. Do you still have the https://github.com/ApolloAuto/caffe source code?


MapView annotations displayed is less than setted

Show items in mapView,and change type by segmentControl.
When changed selected，the different type items will show in mapView.
But,i found the item displayed is less than setted.
Problems cropped up in RCTMapAnnotationView, the function of
- (void)setContentView:(UIView *)contentView
{
[_contentView removeFromSuperview];
_contentView = contentView;
[self addSubview:_contentView];
}

The pointer of _contentView may be equal to the pre added of contentView. When remove from superview,the pre added of contentView will be removed.
Fixed function is
- (void)setContentView:(UIView )contentView
{
while (self.subviews.count) {
UIView child = self.subviews.lastObject;
[child removeFromSuperview];
}

_contentView = contentView;
[self addSubview:content];
}

pullRequest

Hi there! No need to have an open issue for this in addition to the pull request :) @chieryw -- can you answer nicklockwood in his response to your pull request? Thanks!


Version 0.47b0

{package} {version} {:snowflake:}
Destination channel: {Snowflake | defaults}
Links

{ticket_number}
Upstream repository
Upstream changelog/diff
Relevant dependency PRs:

...

Explanation of changes:

...

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_a0wu2u7nx5/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:46: documentation_specifies_language: Use the generic link, not a language specific one
clone/recipe/meta.yaml:52: documentation_overspecified: Using doc_url and doc_source_url is overspecified

===== ERRORS =====

clone/recipe/meta.yaml:52: missing_dev_url: The recipe is missing a dev_url
clone/recipe/meta.yaml:46: invalid_url: https://opentelemetry-python.readthedocs.io/en/latest/ : Not reachable: 403
clone/recipe/meta.yaml:1: patch_must_be_in_build: patch must be in build when source/patches is set.
===== Final Report: =====
3 Errors and 2 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_c49ngw4r7f/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:52: documentation_overspecified: Using doc_url and doc_source_url is overspecified
clone/recipe/meta.yaml:46: documentation_specifies_language: Use the generic link, not a language specific one

===== ERRORS =====

clone/recipe/meta.yaml:46: invalid_url: https://opentelemetry-python.readthedocs.io/en/latest/ : Not reachable: 403
clone/recipe/meta.yaml:1: patch_must_be_in_build: patch must be in build when source/patches is set.
clone/recipe/meta.yaml:52: missing_dev_url: The recipe is missing a dev_url
===== Final Report: =====
3 Errors and 2 Warnings were found

Linter check found the following problems:
ERROR conda.cli.main_run:execute(125): `conda run conda-lint /tmp/abs_f3ta0a6tnh/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:49: documentation_specifies_language: Use the generic link, not a language specific one
===== Final Report: =====
0 Errors and 1 Warning were found


Typo in /docs/workfolder.md

Build.ArtifactsStagingDirectory should be Build.ArtifactStagingDirectory (no 's' after artifact)

fixed.  thx


Dashboard Simple Table with paging

I have in my dashboard several simple tables - I am open to using slick grid if need be. I have 4 to 6 of these to implement on the dashboard page.
I have this in my cshtml file

@if (Model.CompletedOrdersList.Count > 0)
{

            Order Number
            Customer Name
            Order Due Date
            Sales Person

@foreach (Jobber.JobOrder.Entities.OrdersRow item in Model.CompletedOrdersList)
 {

            <td style="width<EMAIL_ADDRESS>            <td style="width<EMAIL_ADDRESS>            <td style="width<EMAIL_ADDRESS>            <td style="width<EMAIL_ADDRESS>

}

}

In my DashBoardPage I have this
using (var connection = SqlConnections.NewFor<MyOrder>())
 {
        var completedOrderData = connection.Query<MyOrder>("sp_Reports_Order_By_OrderCompleted_Status",
             commandType: System.Data.CommandType.StoredProcedure);
        model.CompletedOrdersList = (List<MyOrder>)completedOrderData;
 }

I have an issue because one field in the database it is a string but in the row it is an enum and it declares it cannot parse  Status = "My String" which is what is the datatype stored in the db.
I would like to get that field and I would also like to implement paging - and the samples with paging on the simple tables do not seem to function anyone who could assist me I would appreciate it.

See #1610

@wldkrd1  - No disrespect intended - I am looking here https://www.gitbook.com/book/volkanceylan/serenity-guide/details issues/questions - while this is not an issue it is a question. The simple table examples in the SimpleTables.cshtml under AdminLTE - the paging does not page any new data at all. Going to AdminLTE - their sample is not paging anything either.
I know my java is old as 2000 ,and my typescript is new as can be. So I am just looking to be pointed in the right direction - with an example - my lists can show up - but how to implement paging I do not know - I see the code for the page buttons - understood - how to make the data source respond with the next page is not.
Also on the issue of handling the parse issue - am I doing this correctly - I used the stored procedure example to get the data but that is not working - any ideas how to parse it with in the code ?

Well for paging, you can use any of the tables plugins (JqGrid, DataTables, SlickGrid...) or even PagedList.Mvc.

@awesomegithubusername I downloaded both the DataTables and also the PagedList.MVC with Nuget. I had some trouble with DataTables as I am not entirely sure how to incorporate it into the cshtml file -
I know where to put the source script identifiers and src paths but as for the remaining code.
from here I have an example : DataTables-Pagination
But Should I use  this in the same location - or does serenity have away of mapping the table that this could be placed in the serenity.core.js ??

I will have multiple tables on the dashboard - an I am trying to maintain consistent look and feel - along with not rigging it like a backyard mechanic special as someone else will need to work with this after I am done.

For DataTables, try this:
yourfile.cshtml:
@{
    ViewBag.Title = "Test";
}

<link href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" />

                    id
                    Field1
                    Field2
                    Field3

Your controller:
 public JsonResult ListTest()
    {

	using (var connection = SqlConnections.NewFor<MyOrder>())
        {
           var completedOrderData = connection.Query<MyOrder>("sp_Reports_Order_By_OrderCompleted_Status",
             commandType: System.Data.CommandType.StoredProcedure)
			 .ToList();

			  var ListTest = completedOrderData.Select(
                a => new
                {
                    a.id,
                    a.field1,
                    a.field2,
                    a.field3,

                });

	return Json(new { data = ListTest }, JsonRequestBehavior.AllowGet);
        }

    }

For IPagesList:
Your controller:
using PagedList;

//
   public object Test(int? page)
    {

	using (var connection = SqlConnections.NewFor<MyOrder>())
        {
            var completedOrderData = connection.Query<MyOrder>("sp_Reports_Order_By_OrderCompleted_Status",
             commandType: System.Data.CommandType.StoredProcedure)
	 .ToList();

	    var pageNumber = page ?? 1;
            var OnePageOfOrders = completedOrderData.ToPagedList(pageNumber, 25);

            return View("~/yourView.cshtml", OnePageOfOrders);
        }

    }

your view:

@model PagedList.IPagedList<OrderRow>
@using PagedList.Mvc

@{
    ViewBag.Title = "test";
}
//

    @if (Model.Count > 0)
    {

                @foreach (var order in Model)
                {

			<td style="width<EMAIL_ADDRESS>                        <td style="width<EMAIL_ADDRESS>                        <td style="width<EMAIL_ADDRESS>                        <td style="width<EMAIL_ADDRESS>

                }

    }
    else
    {

No orders.

    }

    @if (Model.PageCount > 1)
    {
        @Html.PagedListPager(Model, page => Url.Action("Test", new { page }))
    }

@awesomegithubusername Wow- Thanks that helps me tremendously as I am learning Razor, MVC, and my Java stuff was last used almost 15 years ago..

I recommend throwing this on the wiki :+1:


setup user: cannot set any additional groups in a rootless container

Encountered this error after doing ./fedora-toolbox create and fedora-toolbox enter.  I only cloned the repo and then tried those commands. If there are other setup instructions needed, feel free to inform us.  : )  Thanks!
[jwc@localhost fedora-toolbox]$ ./fedora-toolbox -v enter unable to start container "fedora-toolbox-jwc:29": container create failed: container_linux.go:336: starting container process caused "setup user: cannot set any additional groups in a rootless container" : internal libpod error ./fedora-toolbox: failed to start container fedora-toolbox-jwc:29

Same here, Fedora Silverblue 29.

It would help if you paste podman, runc versions.
For F29 I know for sure that you have to override runc version (https://github.com/debarshiray/fedora-toolbox/issues/4#issuecomment-432184146)

Yes, this is certainly a duplicate of #4.


Recommendations for error handling?

I was wandering, what would be the recommended way of handling errors when using Inertia with Laravel?
Here's my current solution:
In order to have consistent error pages when making requests directly and when making them through Inertia, in an app I'm using for testing Inertia, I've decided to show error pages only using Inertia. So, I have a trait that I apply to App\Exceptions\Handler class:
<?php

namespace App\Exceptions;

use Inertia\Inertia;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;

trait ShowsErrorPageUsingInertia
{
    /**
     * Render the given HttpException.
     *
     * @param  \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function renderHttpException(HttpExceptionInterface $e)
    {
        $statusCode = $e->getStatusCode();

        $inertiaResponse = Inertia::render('Error', [
            'code' => $statusCode,
            'message' => $this->responseStatusText($statusCode),
        ]);

        if (! $inertiaResponse instanceof Response) {
            return new Response($inertiaResponse, $statusCode);
        }

        return $inertiaResponse;
    }

    /**
     * Get the status text based on status code.
     *
     * @param  int  $statusCode
     * @return string
     */
    private function responseStatusText($statusCode)
    {
        if ($statusCode === 419) {
            return 'Page Expired';
        }

        return Response::$statusTexts[$statusCode] ?? 'Unknown Error';
    }
}

I could have inlined it in the class, but having this in a trait feels better to me 😄
And I have Error.vue page that shows error and short message, in the same way that Laravel does usually.
So far it's worked perfectly for me 🙂

I was wandering, what would be the recommended way of handling errors when using Inertia with Laravel?
Here's my current solution:
In order to have consistent error pages when making requests directly and when making them through Inertia, in an app I'm using for testing Inertia, I've decided to show error pages only using Inertia. So, I have a trait that I apply to App\Exceptions\Handler class:
<?php

namespace App\Exceptions;

use Inertia\Inertia;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;

trait ShowsErrorPageUsingInertia
{
    /**
     * Render the given HttpException.
     *
     * @param  \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function renderHttpException(HttpExceptionInterface $e)
    {
        $statusCode = $e->getStatusCode();

        $inertiaResponse = Inertia::render('Error', [
            'code' => $statusCode,
            'message' => $this->responseStatusText($statusCode),
        ]);

        if (! $inertiaResponse instanceof Response) {
            return new Response($inertiaResponse, $statusCode);
        }

        return $inertiaResponse;
    }

    /**
     * Get the status text based on status code.
     *
     * @param  int  $statusCode
     * @return string
     */
    private function responseStatusText($statusCode)
    {
        if ($statusCode === 419) {
            return 'Page Expired';
        }

        return Response::$statusTexts[$statusCode] ?? 'Unknown Error';
    }
}

I could have inlined it in the class, but having this in a trait feels better to me 😄
And I have Error.vue page that shows error and short message, in the same way that Laravel does usually.
So far it's worked perfectly for me 🙂

Hi @reinink , I'm following this. when i tested it entered an incorrect url hoping to get a 404 error but why did i get "localhost is currently unable to handle this request."

When I try this it gives me this error:
Symfony\Component\HttpFoundation\Response::__construct(): Argument #1 ($content) must be of type ?string, Inertia\Response given, called in /home/vagrant/code/schoolsysteem/app/Exceptions/ShowsErrorPageUsingInertia.php on line 21
Stack trace: https://flareapp.io/share/dmk1vJD7#F26
Am I using the wrong response class, or is there something else wrong?


Install from PyPi

It would be easy for users to instal from PyPi directly using pip. If this is in order, I can send a PR

Sounds good. Could you submit a PR?

At this moment, everything seems to be properly in place for it to be uploaded to PyPI. The owner of the project should be the one owning the PyPi package as well. If this is not an issue, I can upload it to PyPi.


JSON files not being parsed and are being rejected

The JSON files that I am trying to add to MILVUS vector database are not being added and are instead being rejected by the parser is there any reason for this or any reason why this would be happening?

Hi @indohito,
can you please post a self-contained example that reproduces your issue? Thank you!

Yeah! This is an example:
def create_library(library_path, lib_name):
    lib = Library().create_new_library(lib_name)
    print(lib.add_files(library_path))
    embedding_model = "mini-lm-sbert"
    vector_db = "milvus"
    lib.install_new_embedding(embedding_model_name=embedding_model, vector_db=vector_db)
    return lib

and this is the output for adding the files:

Thank you for posting this, @indohito! Might I also ask you post a sample of one of your json?
The reason for rejecting is that the library does not have a parser for json. How would you expect such a parser to work?

ok yeah I figured I was wondering if there was way around this, Probably just a way to extract the metadata fields that are given in the json files

What do you mean with a way around this?
Do I understand you correctly, when I say that you want to embed the metadata?

@indohito - we have made some updates to improve the json file handling, as well as an updated example that can be found here   If you clone the latest code in the repo, it will provide all of the fixes outlined in the example.   Please also note that generally if a JSON file does not include a "text" key attribute, the parser will not know which text to extract from the file in the core text index (which is the main content that is 'parsed.'    Closing this issue - but please raise a new issue if you continue to have any problems wiht this.  Thanks for raising this!


make validator keys ranges pretty printed

I wanna make some changes / probably move this somewhere else. Thinking/working on it right now.

closing in favor of https://github.com/ethpandaops/4844-testnet/pull/134


Wurm Unlimited <IP_ADDRESS>

Please can you update this mod for the new release of WU v <IP_ADDRESS> since it has stopped working with this release.
thanks a lot

Fixed.
There is a new release with a quick compatibility fix for WU 1.8.0.X.


asChild for Tooltip.Trigger doesn't accept div

Description
Neither plain div, nor ark.div can not be used as Tooltip.Trigger
This code doesn't work:
const AsDiv = () => (
  <Tooltip.Root>
    <Tooltip.Trigger asChild={(props) => <ark.div {...props}/>}>
      Hover Me
    </Tooltip.Trigger>
    <Portal>
      <Tooltip.Positioner>
        <Tooltip.Content>I am an asDiv tooltip!</Tooltip.Content>
      </Tooltip.Positioner>
    </Portal>
  </Tooltip.Root>
)

I'm composing a complex button-like component and want some of its inner elements to have tooltips. So I think it should be rendered as <button/> with
s inside as tooltip triggers.
Link to Reproduction (or Detailed Explanation)
https://stackblitz.com/~/github.com/dannylin108/arkui-bug-report
Steps to Reproduce

Wait until rendering
It should render 3 different tooltip triggers: default, as Park-UI's Button and as ark.div
It renders only 2, not rendering tooltip trigger with ark.div

Ark UI Version
4.2.1
Framework

[ ] React
[X] Solid
[ ] Vue

Browser
No response
Additional Information
No response

asChild is a boolean, and you should be able to do it like this:
const AsDiv = () => (
  <Tooltip.Root>
    <Tooltip.Trigger asChild>

Hover Me

    </Tooltip.Trigger>
    <Portal>
      <Tooltip.Positioner>
        <Tooltip.Content>I am an asDiv tooltip!</Tooltip.Content>
      </Tooltip.Positioner>
    </Portal>
  </Tooltip.Root>
)

asChild is a boolean

No, in SolidJS it is not.
https://ark-ui.com/solid/docs/guides/composition

You need to call the props to get the object
<Tooltip.Trigger asChild={(props) => <ark.div {...props()} />}>
      Hover Me2
</Tooltip.Trigger>


Passing Functions as Tools

Features:

Pass in python functions as tools into .chat(tools=[python_func,...]) 🥳
Follows Google Python Docstring Styleguide - See Google Docstrings
Lenient on docstring specification - should handle unusual cases elegantly

Design Decisions

Uses python type system to parse functions and then maps to a pydantic class for validation
Recursively parses types for nested types
Added return_type for function definition - this is not necessary but matches the pattern of other similar libraries. Avoided using return as dictionary key to avoid conflict with python
Manages complex typing in python and allows the use of Python 3.10+ typing recommendations with the use of |
Can still use a mixture of Python functions as tools and JSON values - feature is purely additive.

Future Design

I want the ability to pass in pydantic class or a python dataclass as a type and have it serialize appropriately to be used as a tool

Examples to come on follow up for both Pydantic and Functions as Tools

Blocked on https://github.com/ollama/ollama/pull/7613 to support typing options


API Changes

@mattpannella @neil-morrison44
I've been making some progress on refactoring the updater codebase to introduce some new features (APIs, category landing pages, author landing pages, etc.).
While looking into the cores.yml, I noticed that we're still tracking the prerelease and tag_name for repositories that are using releases as a deployment strategy. Are either of you using these? I'm pretty sure these were created prior to the download_url so I doubt they have much use (other than additional metadata).
Are you guys okay if we axe them?
- username: agg23
  cores:
  - id: agg23.Arduboy
    display_name: Arduboy for Analogue Pocket
    repository:
      platform: github
      name: openfpga-arduboy
      prerelease: false
      tag_name: 0.9.0
    requires_license: false
    download_url: https://github.com/agg23/openfpga-arduboy/releases/download/0.9.0/agg23.Arduboy.0.9.0.zip
    platform_id: arduboy
    description: A small, portable Arduino console.
    version: 0.9.0
    date_release: '2022-09-03'
    platform:
      category: Handheld
      name: Arduboy
      manufacturer: Arduboy
      year: 2016
    assets:
    - platform: arduboy
      extensions:
      - hex
    sponsor:
      github:
      - https://github.com/sponsors/agg23

all good to drop them on my end

Same here, Pocket Sync doesn’t use them anymore

@mattpannella @neil-morrison44
I'm looking into a few more changes to the API in order to have it be more focused around the metadata coming from the core definition files and was thinking of dropping display_name in favor of platform.name. This may lead to some confusion when multiple cores exist for the same platform (ie: Analogizer cores, bududes GB / GBC cores) but seems pretty clean otherwise. What are your thoughts?

@joshcampbell191 think that's fine with me, Pocket Sync doesn't use display_name just now

when I get home I'll have to double check but I'm fairly certain I'm not using it at all in pupdate. I think just the inventory is

I'm just about ready to release the changes for the refactor. I made another change to the assets by exposing all of the data_slots regardless of their status.

Let me know what you guys think.


Url is "wrong" after a failed edit.

Currently if an edit fails and the edit form is re-rendered, the url no longer includes edit.  We need to find a way to keep edit in the url.
As an example, say you are editing a project and the url is badgeapp/projects/1/edit, as it should be.
If you try to change the repo_url in some way other than changing http to https (or vice versa), the change will error out and render the edit form again.  However, the url will now be just badgeapp/projects/1
I have been looking for quick solutions, but it seems since update acts as a put/post to projects/:id, the solution is not as simple as it may seem.
Any suggestions @dankohn?

#633 should fix the issue.


Feature Request: Release a version

In order to use bower to handle this package (along with all of the rest of my product codebase) there must be a released version. Could you please add one with the current version?

Also, if you could add a minified version that would be great, but not necessary for my integration.

Hi @jasondecamp,
I've been generally reluctant to modify this script for any particular package managers, but things have changed a bit and I might be willing to reconsider for Bower. Can you make a pull request demonstrating what you mean precisely? Would you simply need a package.json file as part of the repo?
I don't think I'll add a minified version though.
Also: slightly curious what your product codebase is that's using konami-js, if that's publicly viewable anywhere :)

For basic bower usage your git repo should have a tagged release version:
http://git-scm.com/book/en/v2/Git-Basics-Tagging
This way when someone uses bower to manage inclusion of your script they can add:
"konami-js": "<>"
This is also not specific to any package manager and is good practice for anyone to be able to easily navigate through the history of this script.
My project (in it's infancy) is located here: https://useabode.com
The codebase lives in a private git repo.

@jasondecamp I've done this at https://github.com/sukima/konami-js.git however attempting to register gives a EDUPLICATE Duplicate package error. So someone else has done this.

Gotchya. There is now a release:
https://github.com/snaptortoise/konami-js/releases/tag/1.4.2
I have no idea how I arrived at that version number years ago... but there we go!
I think this closes the issue but let me know if not. Also: thanks for the suggestion :)


Add module extract processed reads to the pipeline

Is your feature request related to a problem? Please describe

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Module is added


RFC proposal for thread affinity

Relevant discussion on Rust internals https://internals.rust-lang.org/t/pre-rfc-thread-affinity/3117/9

Thread affinity is something I'm sorely needing in Rust today as well. Some immediate comments on the RFC:

Rather than have just a lock, probably want a set, which maps better to the underlying thread affinity implementations (e.g., cpu_set_t), and which better reflects some real cases of "don't care" among threads on the same physical processor/socket.

At least for the pthread implementation of threads, there is a builder that initializes its pthread_attr_t before the thread is even spawned. For example, that is how the thread stack size is set (see libstd/sys/unix/thread.rs). Logically, it would make sense to allow setting the affinity through the thread builder as well, using pthread_attr_setaffinity_np under the hood. This could be in addition to a guard-based mechanism as you described.

There are also general problems which I think concern the affinity implementations for any language's standard library. Dumping some here off the top of my head

How are processors/sockets, cores, and threads numbered? Typically the "system" numbering convention can be arbitrary or insane.
How to query for all threads belonging to a physical core or a physical processor? I'm aware of the C libraries libnuma and hwloc which address this, neither of which are particularly standard.
What numbering convention to accept through your affinity interface? My feeling is that the convention should be to just interpret them as the "system" numbering scheme, and leave the finesse to another library.

It could be interesting if libstd received a standard way of querying CPU topology. But more likely it'll start off as just another library, which is just fine if it just works.

Thanks for the RFC @jamperry! The discussion here and on the internals forum leads me to think that this may best be served by starting as an external library? It sounds like there's a lot of competing possible strategies and there's a lot of concerns to take into account. Taking some time to flesh out the library externally, get some experience, and toy with an API may be the best step forward here?

:bell: This RFC is now entering its week-long final comment period :bell:

I agree with @retep998, @alexcrichton and others that this work should start in an external library and be considered for addition to std at a later time, after we've gained practical experience with it.

If implemented, how about using the thread Builder like this: thread::Builder::new().affinity(0x3).spawn(move || { /* ... */ }) ...where 0x3 is a bitmask of allowed cores.

Like others I think this should (at least initially) live in an external library.
Apart from that I think the term "lock(ing)" is unfortunate in this context, as it is already used with different meaning(s) (cf. mutexes, and x86's lock prefix). I would prefer pinning, binding, or affinity.

The libs team discussed this RFC at triage today and the decision was to close for now. There doesn't appear to be a fundamental reason why this needs to be in the standard library right now, and otherwise it seems like this can be developed externally on crates.io
Thanks again though for the RFC @jamperry!


Sub-selection from DOM.select

I've been playing with nested dialogues and have found it would be handy to pass an already-instantiated DOM.select('.my-custom-component') to a sub-component, so that it can do its event checking within that scope.
My ideal API:
DOM.select('.my-custom-component').select('.my-other-custom-component').events('click')

Which would essentially translate into:
DOM.select('.my-custom-component .my-other-custom-component').events('click')

That's a valid alternative, I've thought of it once, but for now we are investigating even deeper solutions: https://github.com/cyclejs/cycle-core/issues/167

@ckknight this is now implemented in the auto-scope branch, and released as version 8.0.0-rc2. Soon we will release it 8.0.0.


Remove support for deprecated application:didReceiveRemoteNotification:

Now only application:didReceiveRemoteNotification:fetchCompletionHandler: is supported unconditionally.
Without removing the conditional around the new API, Firebase would not be able to drop support for the old API.
Part of the solution for https://github.com/firebase/firebase-ios-sdk/issues/11693
This is a breaking change and should wait for version 8.

I created a release-8.0 branch and changed the base branch of this PR.


Add sortColumnsBy DataFraneExt

This was inspired by https://stackoverflow.com/questions/57821538/how-to-sort-columns-of-nested-structs-alphabetically-in-pyspark#:~:text=You can first flatten your DF with the nice colname.*
Here we support more flexible sorting by allowing user to provide a custom transformation and implicit ordering.

add support to sorting of ArrayType(StructType) column which was not available in original implementation

Let me enable CI on pr first


Have game titles under each boxart

I guess this is more of an enhancement/feature request or milestone.

It is.  I'll see what I can do soon.

as always: happy to test any changes :)

This feature has been added so I am now closing.


Support for custom output other than stdout

Coverage remained the same at 100.0% when pulling c1b6759ca9cc0f40f3c0030c6d9ea3bbe869fefd on custom_output into 3ca51dfc751411193bd70f80a7a90388e2fbf217 on master.


PDOException: No handler for this scheme

Background

I am using this package with Laravel 5.7
I have resolved the issue describe below. This is just an informative ticket.

Issue
After configuring my first pipeline I was greeted with the following error when attempting to execute it.
PDOException with message 'SQLSTATE[HY000] [2002] No handler for this scheme'
Details
The default database config for Laravel 5.7 sets the unix_socket option to an empty string. Whenever this package attempts to establish a connection it only checks to see if a socket option `isset. It doesn't check to see if the provided option is truthy.
This results in it generating adns option that looks something like the following: mysql:unix_socket=;dbname=default. I'm not sure if that's ever considered a valid option, however it certainly sent me down the rabbit hole.
Solution
The simplest solution, for me, was to completely remove the unix_socket option from my database configuration. Doing so resulted in a dns option that looks more like the following: mysql:host=<IP_ADDRESS>;port=3306;dbname=default which worked great for me.
I'm not sure if this is documented somewhere. I might have missed an aside or skimmed over something I should have read thoroughly, however, I wanted to share my findings just in case anybody else runs into this issue.
Code References
The following is the code that checks to see if a unix_socket option has been provided. The same method also checks for other settings, such as a host, port, etc. As you can see, it only checks to see if the option isset, and it does not check to ensure a non-empty string is provided. (Again, I'm not sure if an empty string is ever acceptable. If it isn't, it would be great to see this check extended to also check for truthiness.)
https://github.com/leomarquine/php-etl/blob/master/src/Database/Connectors/MySqlConnector.php#L36-L38

Looks like this is a duplicate of https://github.com/leomarquine/php-etl/issues/12


Possible light/dark mode for the page :)

Hi Midu, friends dev. I don't know if you like the idea but I still present it. I based it on the dark mode of another midu's project. Feel free to improve the code later if necessary 💯
portfolio dev: https://github.com/midudev/porfolio.dev/blob/main/src/components/ThemeToggle.astro
light:

dark:

I added some comments

nice, thanks for the help :)


feat: leak Npmrc, remove cloning

By leaking Npmrc, all its data become 'static, allowing store_dir to be passed to another thread without .clone().
Closes https://github.com/pnpm/pacquet/pull/101

There is actually yet another way (also no cloning and no Arc) that doesn't require leaking memory, but it would require dealing with lifetimes. Let me know if you guys want to try it.


fix: moves auro library to dependencies in package.json #128

Alaska Airlines Pull Request
Moves Auro Library into dependencies from devDependencies to avoid installation issues, as originally reported in #573.
Resolves: #128
Summary:

Moved to dependencies within package.json
Regenerated package.lock
Verified build and test ran successfully

Type of change:
Please delete options that are not relevant.

[x] Revision of an existing capability

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Chris Friedberg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Kodi services aren't loaded when Kodi is configured by discovery tool

Home Assistant release with the issue:
0.103.2

Last working Home Assistant release (if known):
Unknown
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io

arch
aarch64

dev
false

docker
true

hassio
true

os_name
Linux

python_version
3.7.5

Integration:
Kodi https://www.home-assistant.io/integrations/kodi

Description of problem:
Im using discovery integration (link) to automatically configure kodi. The Kodi media player works with no problem, but when i try to call a Kodi Servcice (like get channels) nothing happens. It seems like kodi call services aren't loaded when Kodi is configured by discovery process because it works if I configure Kodi manually with configuration.yaml.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
discovery:

Traceback (if applicable):
There are 2 log messages when I call service kodi call_method:
Error executing script script.get_pvr_channels. Service not found for call_service at pos 1: Unable to find service kodi/call_method

Error executing service <ServiceCall script.get_pvr_channels (c:24f8a90fde12427f93564582f5cf96dc)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1243, in _safe_execute
    await self._execute_service(handler, service_call)
  File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 142, in service_handler
    await script.async_turn_on(variables=service.data, context=service.context)
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 214, in async_turn_on
    raise err
  File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 209, in async_turn_on
    await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 190, in async_run
    await self._handle_action(action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 273, in _handle_action
    await self._actions[_determine_action(action)](action, variables, context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 355, in _async_call_service
    context=context,
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 97, in async_call_from_config
    domain, service_name, service_data, blocking=blocking, context=context
  File "/usr/src/homeassistant/homeassistant/core.py", line 1210, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service kodi/call_method

Additional information:
This is the Kodi entity info:

And here is where the Kodi methods should be in services tab:

Thanks for the help.
As I understand, that "if" statement checks if there is any "media_player" in configuration.yaml. I modify the code to also check if there is "discovery".
    if (
        any((CONF_PLATFORM, DOMAIN) in cfg.items() for cfg in config.get(MP_DOMAIN, [])) or \
            ('discovery' in config and config['discovery'])
    ):

It works with discovery and manual configuration. But I dont know if it is a correct fix; maybe it raise some errors. For example, how Home-Assistant handle Kodi service if you have "configuration.yaml" like this?:
discovery:
media_player:
    platform: kodi
    host: <IP_ADDRESS>

I would assume in this function it's not possible to detect reliably if we need the services or not. Better would be to register the services in media_player.py in (async_)setup_platform. But I'm not sure if this is best practice.
In the long run adding config_flow would be a real solution.

Yes, it could be done in async_setup_platform, at least epson integration is doing so.
https://github.com/home-assistant/home-assistant/blob/67b73bd74ce1820a2eddb579da81caa3506e316f/homeassistant/components/epson/media_player.py#L85-L124

Well, I have to learn about config_flow and give it a try. As you say, it is the real solution.
This PR https://github.com/home-assistant/home-assistant/pull/25753 moved services to __init__. I guess it's better to leave it as is

Is there a workaround for this other than not using discovery for Kodi instances and how likely is it, this issue can/will be resolved?


[Tracking] Move from Scheduler to Readiness Gates

Goal
Deprecate the scheduler approach in favor of the Readiness Gates
Details
PoC available in #1249, more info available in @RealAnna comment
### Items
- [ ] https://github.com/keptn/lifecycle-toolkit/issues/1445
- [ ] https://github.com/keptn/lifecycle-toolkit/issues/1457
- [ ] https://github.com/keptn/lifecycle-toolkit/issues/1458
- [ ] https://github.com/keptn/lifecycle-toolkit/issues/1459
- [ ] https://github.com/keptn/lifecycle-toolkit/issues/1477
- [ ] https://github.com/keptn/lifecycle-toolkit/issues/1460

due to https://github.com/kubernetes-sigs/controller-runtime/issues/2362 #1457 needs to wait for a bug fix release of controller-runtime, new poc for it is here #1701

Removing on_hold label, as it is possible to continue with this epic

Closing, as this epic is already finished


Parameter Name Not Highlighted in JSDoc If No Type Specified

The parameter name in the JSDoc is not highlighted if the type is not specified in the JSDoc. I don't want to specify the types in the JSDoc, because they are all specified in the function signature because I am developing in typescript. It would like the syntax highlighting to automatically highlight the first string after the @param tag if no type is specified. Ideally the highlight would be the same if there was a type specified or if there wasn't.
You can see in the screenshot below, var1 has the proper highlighting because it has a type. var2 is not highlighted at all.

VSCode Version: 1.11.0-insider
OS Version: Windows 7

Steps to Reproduce:

Create JSDoc for function
Don't add types for the params in the documentation
Notice there is no syntax highlighting on the variable name.

Requested Behavior:
Automatically highlight the first string after the @param tag if no type is specified in the JSDoc

This issue was moved to Microsoft/TypeScript-TmLanguage#439


Load integrations only once

Description:
Make sure that we load each integration only once.
Uses the approach used by @Swamp-Ig for registries.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

merging it because want to have it while working on after deps.


Please fix this issue as fast as possible

import numpy as np
import cupy as cp

name_time = [('duration', cp.int64, (2,)),
 ('name', '<U16'),
 ('start_time', cp.int64),
 ('end_time', cp.int64)]

np.array([], dtype=name_time)

*Output
array([],
      dtype=[('duration', '<i8', (2,)), ('name', '<U16'), ('start_time', '<i8'), ('end_time', '<i8')])

cp.array([], dtype=name_time)

*OutPut
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-41-2d70f09a223d> in <module>
----> 1 cp.array([], dtype=name_time)

/conda/envs/rapids/lib/python3.6/site-packages/cupy/_creation/from_data.py in array(obj, dtype, copy, order, subok, ndmin)
     39
     40     """
---> 41     return core.array(obj, dtype, copy, order, subok, ndmin)
     42
     43

cupy/core/core.pyx in cupy.core.core.array()

cupy/core/core.pyx in cupy.core.core.array()

cupy/core/core.pyx in cupy.core.core._send_object_to_gpu()

ValueError: Unsupported dtype [('duration', '<i8', (2,)), ('name', '<U16'), ('start_time', '<i8'), ('end_time', '<i8')]

Hello,
I am sorry but CuPy does not support structured data types and we are not planning to do so in the short-mid term.

Can i add string data into it

W don't have planned support for string arrays as well.
If you want you can implement it and send a PR 😀

Outside of the string bit, this is a duplicate of issue ( https://github.com/cupy/cupy/issues/2031 ).


Unable to build from Skypack or ESM.sh non-versioned import URL's

Trying to build a very basic example, using SkyPack/ESM.sh:
import { Wallet } from "https://cdn.skypack.dev/@ethersproject/wallet";

console.log(Wallet.createRandom().privateKey);

This code will work fine with deno run, however trying to build it with the suggested settings will throw an error:
[dnt] Transforming...
[dnt] Running npm install...
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "-/" of package "-/@ethersproject": name can only contain URL-friendly characters.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2022-06-17T23_38_09_035Z-debug-0.log
error: Uncaught (in promise) Error: npm install failed with exit code 1
        throw new Error(
              ^
    at runCommand (https://deno.land/x/dnt@0.26.0/lib/utils.ts:56:15)
    at async build (https://deno.land/x/dnt@0.26.0/mod.ts:183:5)
    at async file:///home/user/dev/tests/dnt/build-npm.ts:5:1

I have tried using an esm.sh URL, but a similar error appears:
import { Wallet } from "https://esm.sh/@ethersproject/wallet";

console.log(Wallet.createRandom().privateKey);

Build output:
[dnt] Transforming...
[dnt] Running npm install...
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "v86/" of package "v86/@ethersproject": name can only contain URL-friendly characters.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2022-06-17T23_40_38_188Z-debug-0.log
error: Uncaught (in promise) Error: npm install failed with exit code 1
        throw new Error(
              ^
    at runCommand (https://deno.land/x/dnt@0.26.0/lib/utils.ts:56:15)
    at async build (https://deno.land/x/dnt@0.26.0/mod.ts:183:5)
    at async file:///home/user/dev/tests/dnt/build-npm.ts:5:1

Getting this step to work would mean everything to be able to make the jump to Deno <3
Thank you!

The problem happens on NPM, but for some reason, Skypack URL's are interpreted such in a way that NPM is asked to install something like this (package.json):
{
  ...
  "dependencies": {
    "-/": "ethersproject"
  },
}

Both with the intended URL (https://cdn.skypack.dev/@ethersproject/wallet) and with the expanded one (https://cdn.skypack.dev/-/@ethersproject/wallet@v5.6.2-hbht5UfbVmWkq5PkNraB/dist=es2019,mode=imports/optimized/@ethersproject/wallet.js).

It's hard to detect the npm version for these, so this will just default to include the source for these.
To fix this, you can (and should) use a versioned skypack or esm.sh url, such as: https://esm.sh/<EMAIL_ADDRESS>

I'm getting a similar error, but I'm using a URL in the "correct" format:
➜  strfry-policies git:(npm) deno task npm 0.1.0
Task npm deno run -A scripts/npm.ts "0.1.0"
A new release of Deno is available: 1.32.1 → 1.32.3 Run `deno upgrade` to install it.
[dnt] Transforming...
[dnt] Running npm install...
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "v114/nostr-tools" of package<EMAIL_ADDRESS>name can only contain URL-friendly characters.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alex/.npm/_logs/2023-04-16T16_52_42_536Z-debug-0.log
error: Uncaught (in promise) Error: npm install failed with exit code 1
        throw new Error(
              ^
    at runCommand (https://deno.land/x/dnt@0.34.0/lib/utils.ts:57:15)
    at async build (https://deno.land/x/dnt@0.34.0/mod.ts:210:5)
    at async file:///home/alex/Projects/strfry-policies/scripts/npm.ts:5:1


Display of an alias matched by queries

Right now, only file names are searched, but not aliases, for which you still require the quick switcher plugin. I think when aliases are searched, the quick switcher can be fully substituted

ah, no I see what the issue was – as opposed to the quick switcher your plugin does not display the current note and its aliases when searching.
That is a subtle but good improvement to search, it only confused me since I was testing aliases of course with the note I have currently open 🤦 😅
However, I noticed another small issue: The alias is used for matching, but it is not displayed in the suggester itself. I think it would make sense to show the alias itself, too, so the user knows why a note appears in the search results.

it only confused me since I was testing aliases of course with the note I have currently open 🤦 😅

I know how you feel. I have the same mistakes until now, although I am a developer of this plugin. 😅 (confirm the behavior only)

The alias is used for matching, but it is not displayed in the suggester itself. I think it would make sense to show the alias itself, too, so the user knows why a note appears in the search results.

I agree. We decided that users would know what the alias was in many cases, so we had set a lower priority for it. I will try to support to display of an alias matched by queries.

@chrisgrieser
Please let us know your opinion.
If it shows all aliases on the suggestion item, does it satisfies your requirement?. Because why it is effortless to implement than to display only matched aliases.

All aliases could be a bit much when you multiple aliases. Hm. How about this:
For every alias, you generate a separate item in the suggester. Those items have the alias symbol and the name of the alias, but to the right, they have the original filename instead of the parent folder's name.
Would that maybe work?

Thank you for your reply!

All aliases could be a bit much when you multiple aliases

I think so, too..

For every alias, you generate a separate item in the suggester.

If I respect the policy of Obsidian, it seems to be best. However, it also appears to be a bit noisy when we use Recent Search.

Based on the above, I would like to keep this issue, Display of an alias matched by queries, and try it implement again :)

@chrisgrieser
I have added the feature and pushed the latest commit.
I replaced core logic, so there might be some bugs. Therefore, I will use it for a while, and I'll release it as v2.0.0 when it works correctly.
If you do not mind, It would be great to try the latest source code (not version updated yet) :)
https://user-images.githubusercontent.com/9500018/141674322-4312e75c-f319-4d56-bbf6-f8793f937f9e.mp4

The aliases have more padding to the left than the file title, otherwise this look fine too me! Maybe highlight the alias that is being matched?

Thanks for your reply!

The aliases have more padding to the left than the file title

This is what I intended, but it might not need. I'll format the layout and release it :)

I have released as v2.0.0 (and 2.0.1) 🚀


ModuleNotFoundError: No module named 'paystack.urls'

ModuleNotFoundError: No module named 'paystack.urls'

i am facing same issue how am i going to resolve it. pls. can some help .

try paystack.frameworks.django.urls

I think it has to do wth the installation @blackpandan
I tried to install using this pip install -e git+https://github.com/gbozee/pypaystack.git@master#egg=paystack but its not working saying it's depreciated.
Any help?

Change egg="pypaystack"

so it looks like this
pip install -e @.***#egg=pypaystack
https://github.com/tobiolusa/pypaystack#django-specific-setup
On Thu, Oct 6, 2022 at 8:17 AM Faith_James @.***> wrote:

Change egg="pypaystack"
—
Reply to this email directly, view it on GitHub
https://github.com/gbozee/pypaystack/issues/23#issuecomment-1269467263,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKEK2G6A2E77XW6RBMODGJLWBZ4H3ANCNFSM5VID2RKQ
.
You are receiving this because you commented.Message ID:
@.***>

pip install -e git+https://github.com/gbozee/pypaystack.git@master#egg=pypaystack like this ?

Thanks

pip install -e git+https://github.com/gbozee/pypaystack.git@master#egg=pypaystack like this?

Thanks for coming to my help, this actually works.

You're welcome


Trait implementations in external crates are not shown

Consider the ImportsLocator trait from the ra_assists:
https://github.com/rust-analyzer/rust-analyzer/blob/9be1ab7ff948d89334a8acbc309c8235d4ab374f/crates/ra_assists/src/lib.rs#L86
When I open the project with RA and navigate to it, I get a single implementation shown in a lens:

This is it, in the same file, in the test module:
https://github.com/rust-analyzer/rust-analyzer/blob/9be1ab7ff948d89334a8acbc309c8235d4ab374f/crates/ra_assists/src/lib.rs#L249
But there's another one, in ra_ide crate that is not shown in the lens even after I navigate to that file and back (just to ensure that RA is aware and loaded that file):
https://github.com/rust-analyzer/rust-analyzer/blob/9be1ab7ff948d89334a8acbc309c8235d4ab374f/crates/ra_ide/src/imports_locator.rs#L44
I would expect the lens to show both implementations.

Triage: ImportsLocator is gone, but trait Diagnostic is shown as having 0 implementation.

Triage: ImportsLocator is gone, but trait Diagnostic is shown as having 0 implementation.

Looks like this was fixed by https://github.com/rust-analyzer/rust-analyzer/pull/8020


Verify card after new product addition is properly added

What

Verify card after new product addition is properly added

Part of

#1379

Can this be closed @cli1005


PHPStorm laravel IDE preset

Hi @nunomaduro
Any chance we someday get the PHPStorm IDE config available with rules to meet laravel preset style?

I've no idea. Sorry.

michael

You could add a file watcher to fix on save, just like phpstorm does with "ESLINT"
You could also do it from WSL, check this
Check this out: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004625879-WSL-and-file-watchers

@tarreislam of course I can, but:

That would be slow to run on every change.
PHPStorm built-in "Laravel" code style differs from that one in Pint.
The team already used to PHPStorm quick styling/docblocking.


Channel/Network search with ESP32 not working

First off all thank you for all the work that all of you guys already put in this project.
I bought a 2021 Model, all of the components and downloaded the software. When I run the Channel search with my Arduino plugged to the LC12, I get the response on Channel 15 also the Network search is performs flawlessly. As soon as I connect the LC12 to the ESP32(AZ-Delivery Dev Kit V4), neither the Channel search nor the Network search is working. Only blinking LC12
CP210XVCP Driver is downloaded, Pin connection was checked many times, no success.
The only thing that is different to your description is, that I can't use "AVR" as Programer in the Arduino IDE (1.8.x and also 2.3.2) I can only select "Eptool" there.
Anyone an idea or do I miss something? Can I use a different ESP32?
Thank you in advance

Great project !
I tried a lot of time but I did'nt found The channel. Only blink on the blue led, no response (using ESP32 kit C, and esp Driver V2, version 3.01 output no serial2 signal)
An Idéa ?


View results not working

This project looks promising and is full of good functionality.
Unfortunately, I am unable to view the detailed results of a quiz. That specific functionality seems to be broken.
Any ideas?

Disable full group by mode of sql
it will fix your problem


Concatenation of Char and NotBlankString types

Description
Implement the following declarations for allowing users to concatenate Char and NotBlankString types together (see the Char.plus(String): String operation in the Kotlin standard library for more information about the behavior).
/** Returns the concatenation of this character with the [other] string. */
operator fun Char.plus(other: NotBlankString): NotBlankString = TODO()

/** Returns the concatenation of this string with the [other] character. */
operator fun NotBlankString.plus(other: Char): NotBlankString = TODO()

Checklist

[ ] Implement and test the Char.plus(NotBlankString) operation.
[ ] Implement and test the NotBlankString.plus(Char) operation.
[ ] Refactor code.
[ ] Update Work in progress section in changelog.

The NotBlankString.plus(Char) operation is shadowed by the NotBlankString.plus(Any?) member function.
So, this issue is blocked until we convert member functions to extensions (see #48).


In tree/graph widgets, make sure that transitivity and toplogy graph mis-matches are handled correctly

In some cases (see GO:0030414), it can be that the topology graph, which was created by stepping up the graph over all relations, has more nodes than the transitivity graph, which was create by reasoning from the target node. Some relationship chains do not reduce to a simple relation and instead can only be expressed as a chain; in this case, the transitivity graph does not add the relation.
The perl and JS implementations need a new icon and a mini explanation for this case. The implementation is related to fixes from #161.

http://amigo.geneontology.org/amigo/term/GO:0030414#display-lineage-tab

Touched bases with @hdietze about the current product of the loader in this case. We are making use of a "fail" state here because of the current expression materializing reasoner. A more detailed explanation of what's going on right now can be found on the wiki.


Update command: site set to include option for SharingCapability

We have a command for setting tenant global setting where we can mention the sharing capability of the tenant globally. Do we have one for site collection level (site level)?
spo site set --SharingCapability [SharingCapability]

[Docs for PnP command of the same] (https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnpsite?view=sharepoint-ps)
Ignore and close this issue if it's already opened somewhere

I think we have it already in spo site classic set https://pnp.github.io/office365-cli/cmd/spo/site/site-classic-set/

Thank you, I think you can close this then.


Projects/namespaces listers are presenting the other way around

Version: 2.0.0-rc1
Go to Projects/Namespaces and use the listers to present data differently, Grouped Projects/Namespaces and List Namespaces.
Result: Grouped Projects/Namespaces shows List Namespaces and List Namespaces shows Grouped Projects/Namespaces

Fix in https://github.com/rancher/ui/pull/1859

Version - 2.0 master 4/30
Verified fixed


[W6.1e][W11-A1] Lai Qi Wei

Ready for review.

@qwlai
Some comments added. Please ack & close the PR after reading comments.

Noted with thanks.


How to obtain datasets/features?

Hi, thanks for your excellent work!
Could you provide extracted features? The link given in report is not a download link, and I can't find where to download extracted features. And how to structure the floders of these data? Thank you!

Hello, and thank you for reaching out!
To get started, please download the dataset annotations from the official website. Following that, you have the option to either download the videos directly from YouTube or select the relevant videos from the Kinetics-600 dataset by using the provided video IDs. Once you have obtained the videos, you can refer to the instructions provided here for guidance on how to extract the visual features.
The features should be structured as follows:
--data
    --features
        --clip
            video1.npy
            video2.npy
            ...

Is Kinetics-400 dataset okay？

Is Kinetics-400 dataset okay？

It might not be okay; using the Kinetics-400 dataset could lead to missing out on some videos.


When will offline deployment be supported?

@DearYangs Can you elaborate a little bit more?

@DearYangs Can you elaborate a little bit more?
In many cases, it is necessary to deploy k8s clusters in the company's intranet in an offline environment. However, when the bottom layer of kurator automatically manages the life cycle of k8s clusters, it uses the kubespray image to install. As far as I know, kubespray installation requires a lot of network downloads Dependency. I really like the multi-cluster life cycle management method of kurator. I think it is very good to provide an offline deployment of kurator. It can integrate a resource package based on the installation of a kurator to provide offline deployment.

@DearYangs This is proposed sometime before, we made it with lower priority. Can you describe more about your use case


allow the assembly configuration block to be optional

forgot to do this along side the volume enhancements, resolves #66.

btw, i've created some extremely crude pom test cases in this project (https://github.com/jgangemi/docker-maven-test) and i've added you as a collaborator.
if you'd like to use them, please feel free. you're also more then welcome to push the repository if you want. i don't think it's necessary to follow the same workflow for that, but we can if you want.

Thanks, I will have a look in this test project. Indeed, we desperately need some integration tests, especially for securing against Docker version upgrades. Maybe we can have a look at the setup of the integration tests of wouterd/docker-maven-plugin ?  (AFAIR they are quite comprehensive)

i'll have a look - i think we could come up w/ some fairly good individual integration tests, the hard part is going to be getting the environment setup correctly to run. perhaps creating a simple, dedicated container that can be pushed/pulled from the hub would help then setup of the test can make sure the environment is good.


iOS: Navigation back two screen after call navigation.goBack()

Describe the bug
When I call navigation.goBack() inside onReadCode, the app will back 2 screen. It will same when I use navigation.pop(1)
<CameraScreen
      scanBarcode={true}
      containerStyle={{
          backgroundColor: "blue",
      }}
      onReadCode={e => {
          navigation.goBack();
      }}
       ref={ref => (cameraRef = ref)}
       reactivateTimeout={10000}
       laserColor="red"
       frameColor="white"
/>

when I remove navigation.goBack(), the screen doesn't back,
Device

Device: iPhone6s Plus
OS: iOS 15.7.7

CameraScreen is no longer supported. Please move to using Camera directly.
However, onReadCode isn't guaranteed to only trigger once. It may trigger multiple times for each QR/barcode that's in the viewfinder. You need to write custom code to ensure your event is only triggered once.
For example:
const [goBack, setGoBack] = useState(false);
useEffect(() => goBack && navigation.goBack(), [goBack]);
<Camera ... onReadCode={e => { setGoBack(true); }} />


using multiple projects

Hi I just downloaded the pckg looks great,
i work on multiple projects at the same time and i was wondering if it would be possibel to have a tag or something in the task identifying the project. if so than perhaps it would also be possible to sort the kaban view per project or for that matter any other tag??
kind regards Martijn

Yes, use categories in outlook. Assign each task a category. You can use the search feature to filter. You can also adjust the config to sort by categories


New comer question: How to run "Run" in vt100 emacs ?

@rksm
I was able to use emacs X version to use mouse click on Run to  do cargo run.

But for vt100 emacs session like below, how to get it to run ?

Sorry for the disturbance.  I didn't RTFM,
Answer: Tab after two control+c