Shut down all operations with single click

🙋 feature request

In order to stop all Pacbot operations I either have to run the destroy command or manually disable all CloudWatch event rules.
🤔 Expected Behavior

From the portal a user should be able to click a button to disable all CloudWatch rules related to Pacbot for a given account.
😯 Current Behavior
Current behavior does not exist.
💁 Possible Solution

A simple script that disables each Pacbot CloudWatch event rule.

@twce  Can you please provide some additional information on future request.
In the Admin we have feature to enable/disable rules, that will take care of disabling cloud watch rules related to  Rules.

@santhoshigorle I want to disable all rules with a single click.

@twce  this something not possible right now .  IF you want disable all rules, workaround would be  from the database cf_ruleInstance table set status to disabled with query.

@santhoshigorle Disabling with query is not going to disable cloud watch rules and that is what I think @twce is asking for.
@twce we can look into this in future releases.

This feature is now available in release 1.3


Test for InMemoryGlobberFileSystem

Added one test for InMemoryGlobberFileSystem  - I check a scenario when method getFileStatus is called on null file.

@medb I applied your suggestions. Please put your comments. Could you verify whether the "new" way of tests initialization is applied correctly? I am not sure - I made a similar thing like mgasiorowski in his PR.

Ready for another review.


Fix URL to Wowza documentation

URL to Wowza documentation about adaptive streaming has changed.

Thanks for the patch


custom dialog sample not working for spfx 1.8.0

This https://github.com/SharePoint/sp-dev-docs/blob/master/docs/spfx/extensions/guidance/using-custom-dialogs-with-spfx.md example not working with SPFx 1.8.0
thanks

thx @peterremote1980 or reporting. We have pushed updates on the document to address the issue with 1.8 version. Most readable version at https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/guidance/using-custom-dialogs-with-spfx
You should be explicitly using Office UI Fabric v5.x to avoid issues, so executing this in the solution folder will help to address this.
npm install<EMAIL_ADDRESS>


version to 0.10.0

Codecov Report

Merging #1014 into master will increase coverage by 0.14%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1014      +/-   ##
============================================
+ Coverage     48.56%   48.71%   +0.14%
- Complexity     1670     1675       +5
============================================
  Files           364      364
  Lines         10147    10147
  Branches       1027     1027
============================================
+ Hits           4928     4943      +15
+ Misses         4855     4842      -13
+ Partials        364      362       -2

Impacted Files
Coverage Δ
Complexity Δ

...ervice/service/ReleaseMessageServiceWithCache.java
85.71% <0%> (ø)
24% <0%> (ø)
:arrow_down:

.../apollo/internals/RemoteConfigLongPollService.java
77.91% <0%> (+1.22%)
28% <0%> (+1%)
:arrow_up:

...lo/configservice/util/InstanceConfigAuditUtil.java
77.19% <0%> (+7.01%)
15% <0%> (+2%)
:arrow_up:

...work/apollo/biz/message/DatabaseMessageSender.java
66.66% <0%> (+10.41%)
8% <0%> (+2%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d8ce1a...79ad95a. Read the comment docs.

Coverage increased (+0.1%) to 52.281% when pulling 79ad95a8be16c3e7fb6213d9c66d6fdc381f0fb2 on nobodyiam:0.10.0 into 4d8ce1adc91c7f843191421d9f084c6c1a6e4be0 on ctripcorp:master.


Actor: Collisions Disable: Player - doesn't work

When using Actor: Collisions Disable: Player, the player doesn't pass through all collisions and actors like it says in the docs.
To Reproduce
Steps to reproduce the behavior:

Open new project, Beta 4 and/or 5
Create an actor or put the following code on the scene init.
Add Event Actotr: Collisions Disable: Player
See error, walk around and the collisions still apply.

Expected behavior
The player should be able to pass through all collisions and actors.
Note
Actor: Collisions Disable: Event - that does work for letting the player pass only that event.
Thanks just trying to report a bug and help out. Found it trying to work on my project.

Just wanted to note that this bug still seems to exist even in the most recent beta.


 I can't tell if this is a apiary-client issue or an app.apiary.io one.
Sample:
> apiary publish --path _site/api/luna/config-visitor-prioritization-data/blueprint.apib --api-name akamaiopen2lunaconfigvisitorprioritizationdatadev
Apiary service responded with an error: Blueprint you are trying to publish is not valid. Please validate with your snowcrash.

Yet:
> snowcrash -l _site/api/luna/config-visitor-prioritization-data/blueprint.apib

OK.

Versions:
> apiary version
0.2.4
> snowcrash -v
v0.16.1

Gist: https://gist.github.com/jrep/b462c73a1838cf99790d#file-blueprint-apib

Please, can you try with new 0.2.5 version?

is this still an issue ?


Annotations should perhaps not be rendered in the docs using :py:class:

Consider the apidocs, using sphinx-autodoc-typehints, of
def f1(x):
    """
    A function.

    :param int x: The x.
    """

def f2(x: int):
    """
    A function.

    :param x: The x.
    """

By default, for f1, int is rendered in italic while for f2, it is rendered in bold.  This is due to the fact that sphinx-autodoc-typehint adds a :py:class: in front of the typename.
While this may be semantically correct, this is inconsistent with sphinx's default recommendation (http://www.sphinx-doc.org/en/stable/domains.html#info-field-lists), so I think this should be off by default.

I think it'd make sense to not add the :class: for builtins, since they're not going to link anyway for pretty much every project using Sphinx.

Revisiting this, it looks like Sphinx tries to link unannotated types automatically, but it won't look in any intersphinx docs.
It also turns out the Python docs actually has an intersphinx database as well, so I guess this behaviour should be configurable.

Please check again with latest release and report back if the problem is still active.


BUG: Override defaults not working for Angular 16 Standalone Bootstrap

Describe the bug
Im tried to use ngx-popperjs with an angular 16 project with just standalone components and bootsrapping a standalone component.
Unfortunatelly it seems that the overriding of the default parameters has no effect AND the default trigger HOVER is also not working.
I got default "click"
To Reproduce
My Main.ts config:
bootstrapApplication(AppComponent, {
  providers: [
    importProvidersFrom(
      BrowserModule,
      AppRoutingModule,
      FormsModule,
      ReactiveFormsModule,
      NgxPopperjsModule.forRoot({
        placement: NgxPopperjsPlacements.AUTO,
        applyClass: 'popper-tooltip',
        showDelay: 200,
        trigger: NgxPopperjsTriggers.hover,
      })
    ),
    provideAnimations(),
    provideHttpClient(withInterceptorsFromDi()),
  ],
}).catch((err) => console.error(err));

Expected behavior
Override trigger with HOVER and popper tooltip will be shown on hover not just on click.
Desktop (if execution):

OS: Windows
Browser chrome

** Versions

"ngx-popperjs": "^16.0.6",
"@angular/animations": "^16.2.6",
"@angular/common": "^16.2.6",
"@angular/compiler": "^16.2.6",
"@angular/core": "^16.2.6",
"@angular/forms": "^16.2.6",
"@angular/platform-browser": "^16.2.6",
"@angular/platform-browser-dynamic": "^16.2.6",
"@angular/router": "^16.2.6",
"typescript": "~4.9.5"

@SleeplessFox If I remember correctly the default trigger is actually "click". Maybe there's some issue in the docs.
Can you create a blitz please?

@SleeplessFox can you try with the v16.1.0-beta.0? Closing this for now


Cannot read property '0' of undefined for certain jpgs

When I try to run the following code, it fails with JPEGs that I've exported from the Preview application in MacOS. Here's the node code I'm running:
readimage(fileData, function (err, image) {
if (err) {
throw image file could not be read correctly. Try re-exporting it with GIMP or another image editor.;
}
imageData = image;
});
It works perfectly with JPEGs that I've exported from GIMP.
Here's the relevant part of the stack from the error
TypeError: Cannot read property '0' of undefined
at quantizeAndInverse (/Users/cella/Sites/facet/node_modules/jpeg-js/lib/decoder.js:356:26)
at buildComponentData (/Users/cella/Sites/facet/node_modules/jpeg-js/lib/decoder.js:509:9)
at constructor.parse (/Users/cella/Sites/facet/node_modules/jpeg-js/lib/decoder.js:772:18)
at Object.decode (/Users/cella/Sites/facet/node_modules/jpeg-js/lib/decoder.js:966:11)
at parseJpg (/Users/cella/Sites/facet/node_modules/readimage/readimage.js:88:18)
at read (/Users/cella/Sites/facet/node_modules/readimage/readimage.js:26:10)
Not sure if if this is helpful, but here's the beginning of the hex of the JPEG that isn't working and was causing this error. I've tried it with other JPEGs exported from Preview and keep getting this same error. Wondering if they write file headers a little differently or something?
<Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 00 00 90 00 90 00 00 ff e1 00 9e 45 78 69 66 00 00 4d 4d 00 2a 00 00 00 08 00 05 01 12 00 03 00 00 00 01 00 01 ... 51105 more bytes>
And here's the beginning of the hex of a JPEG that is working correctly:
<Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 02 00 1c 00 1c 00 00 ff e1 36 76 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 07 00 12 01 03 00 01 00 00 00 01 00 ... 267024 more bytes>

Here's the file that is failing for me, if that's helpful


Monitor tab in settings always crashes

Every time I switch to the Monitor tab, the settings app will crash.
The error stack is:
Settings.lua:303: bad argument: string expected, got nil

I forgot to add a check if there was a monitor or not, that's why this happens. If you attach a monitor to the computer or to your network, it will work.

Fixed in 1.1


fix(card-image): fixed error where onLoad doesn't fire

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

8 of 12 (66.67%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 80.434%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/card-image/src/Component.tsx
8
12
66.67%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
7392

Relevant Lines:
8367

💛  - Coveralls


Failing to create datasets with " Queries of this type are not supported" error

Creating dataset: customer_all...Checking if CUR is enabled and available...
        Athena table: 00000000_cur
        Resource IDs: yes
2022-01-07 17:09:43,876 - ERROR - cid.helpers.athena:execute_query:156 - Athena query failed: An error occurred (InvalidRequestException) when calling the StartQueryExecution operation: Queries of this type are not supported
2022-01-07 17:09:43,876 - ERROR - cid.helpers.athena:execute_query:157 - Full query: SELECT
  identity_line_item_id
FROM
<PHONE_NUMBER>_cur
WHERE
  savings_plan_savings_plan_a_r_n NOT LIKE ''
LIMIT 10

Traceback (most recent call last):
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/helpers/athena.py", line 147, in execute_query
    WorkGroup='primary'
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/botocore/client.py", line 391, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/botocore/client.py", line 719, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidRequestException: An error occurred (InvalidRequestException) when calling the StartQueryExecution operation: Queries of this type are not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cloudshell-user/.local/bin/cid-cmd", line 8, in <module>
    sys.exit(main())
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/click/decorators.py", line 38, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/cli.py", line 41, in deploy
    App.deploy()
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/common.py", line 208, in deploy
    self.create_datasets(required_datasets)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/common.py", line 487, in create_datasets
    if self.create_dataset(dataset_definition):
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/common.py", line 527, in create_dataset
    '${cur_table_name}' else name for name in _views]
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/common.py", line 527, in <listcomp>
    '${cur_table_name}' else name for name in _views]
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/common.py", line 84, in cur
    print(f"\tSavingsPlans: {'yes' if _cur.hasSavingsPlans else 'no'}")
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/helpers/cur.py", line 91, in hasSavingsPlans
    self._hasSavingsPlans = bool(len(self.athena.execute_ahq('hasSavingsPlans', **kwargs)))
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/helpers/athena.py", line 254, in execute_ahq
    execution_id = self.execute_query(query)
  File "/home/cloudshell-user/.local/lib/python3.7/site-packages/cid/helpers/athena.py", line 159, in execute_query
    raise Exception
Exception

Looks like the FROM clause is missing quotation marks around the table name

Did you try running this query directly in Athena console?

Yes - i updated the cid/queries files locally and it worked a dream. I'll get a PR together shortly.

It will be fixed in #140


fix: remove api-docs and swagger package

resolves #602

Can you fix the lint error? Also, check

https://github.com/Real-Dev-Squad/website-backend/pull/35
and remove things that were added there as well.

okh will do these changes

@pallabez fixed lint error, and removed things that were added in #35


docs: complete core API's

related to #325
down to ~120 warnings, only for the task types

related to #325
down to ~120 warnings, only for the task types

Oh wow, a lot of progress!


Cleanup old branches

Minor, but thoughts on cleaning up old branches? Seems like they're from an old development strategy. (Just in case anyone is pointing at them with build tools, we could add tags as a minor convenience.)
And I see there is maybe some feature branches, which maybe we could turn into PRs if there is discussion to be had about salvaging anything?

Doubt that anyone uses them.  I'll clean them up.


System.IO.FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource Version=<IP_ADDRESS>

This is a conflict between Microsoft.ApplicationInsights and Microsoft.AspNet.TelemetryCorrelation. These packages have different versions of System.Diagnostics.DiagnosticSource:

Microsoft.ApplicationInsights v2.20.0

System.Diagnostics.DiagnosticSource v<IP_ADDRESS>

Microsoft.AspNet.TelemetryCorrelation v1.0.8

System.Diagnostics.DiagnosticSource (nuget: v4.6.0 / assembly: v<IP_ADDRESS>)

This causes the exception:
Microsoft.ApplicationInsights.Extensibility.TraceSource Error: 18 :
TelemetryInitializer Microsoft.ApplicationInsights.Web.UserTelemetryInitializer failed to initialize telemetry item System.IO.FileLoadException:
Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
   at Microsoft.ApplicationInsights.Web.Implementation.RequestTrackingExtensions.CreateRequestTelemetryPrivate(HttpContext platformContext)
   at Microsoft.ApplicationInsights.Web.Implementation.RequestTrackingExtensions.ReadOrCreateRequestTelemetryPrivate(HttpContext platformContext) in /_/WEB/Src/Web/Web/Implementation/RequestTrackingExtensions.cs:line 142
   at Microsoft.ApplicationInsights.Web.Implementation.WebTelemetryInitializerBase.Initialize(ITelemetry telemetry) in /_/WEB/Src/Web/Web/Implementation/WebTelemetryInitializerBase.cs:line 36

Workaround
The workaround is to use a binding redirect:
<runtime>
  <dependentAssembly>
    <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51"  culture="neutral"/>
    <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>"/>
  </dependentAssembly>
</runtime>

The redirect is not working.

I also have the same issue, working on a legacy .NET 4.X MVC Projectm the error suddenly just started to pop up. I've tried adding the Assembly manually as instructed, but the redirect doesn't seem to work. However when I upgrade the version of the Diagnostics to 7.0.2 it stops complaining about the versions but still says it can't load the assembly. Seems like a bug.... I've fixed other broken assemblies the same way but System.Diagnostics is rather stubborn.

The error is fixable, however this was due to adding Azure.Core library into this old legacy project, which is not entirely compatible. Thus we will have to move away from the library itself and the error is no longer an issue.
I understand this answer does not suffice for everyone, so what I did to force the redirect through was to actually install the NuGetPackage onto the MVC Project itself. So both manually adding the assembly to Web.Config as well as installing the correct versions from Nuget.
For my use case 5.0.0 and 6.0.0 seemed to be functional versions of the System.Diagnostics.DiagnosticSource library.

I'm encountering a similar problem, but with a more recent version. I receive an error stating "System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>," although Azure.Core utilizes version <IP_ADDRESS>. When I downgrade my NuGet package from <IP_ADDRESS> to <IP_ADDRESS>, I encounter a different error: "Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'." Attempting to switch from version <IP_ADDRESS> to <IP_ADDRESS> results in a compatibility issue with "Azure.Core" and "Azure.Storage.Blobs," which do not support System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>. Despite having consistent references to version <IP_ADDRESS> in both my web.config and the app.config of my new DLL, the error persists.
=== Pre-bind state information === LOG: DisplayName = System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (Fully-specified) LOG: Appbase = file:///D:/System/testsystem/ LOG: Initial PrivatePath = D:\System\testsystem\bin Calling assembly : Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8.
LOG: This bind starts in default load context. LOG: Using application configuration file: D:\System\testsystem\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Post-policy reference: System.Diagnostics.DiagnosticSource, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/4a4892e4/1a9eb44/System.Diagnostics.DiagnosticSource.DLL. WRN: Comparing the assembly name resulted in the mismatch: Revision Number ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated. DATE/TIME: 11/21/2023 10:53:57 PM

I discovered the solution: The issue was that the <dependentAssembly> tags in the web.config were not being recognized, preventing the new dll from functioning correctly. This was due to the <configuration> tag containing namespace attributes, which resulted in the <assemblyBinding> tag being overlooked.
Incorrect configuration: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Correct configuration: <configuration>
After correcting this, the assembly classes were read properly, allowing me to direct the system to the correct dlls.

I was faced with the same issue on a .net 4.8 project and updating the binding redirect manually to this
<dependentAssembly>
	<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
	<bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
</dependentAssembly>
Targeting <IP_ADDRESS> directly solved the issue for me


Snapshot generation is failing with 'ContentTooLongException'

This morning's snapshot report:

No snapshot found within the last day. See logs: https://logging.wellcomecollection.org/goto/ddc4dfc7308261cf17f956515ca1ce35

Looking in the logs, I see the following error:

com.sksamuel.elastic4s.http.JavaClientExceptionWrapper: org.apache.http.ContentTooLongException: entity content is too long [167209080] for the configured buffer limit [104857600]

The snapshot generator uses the Elasticsearch scroll API, which fetches works in batches. Looking at Google results for the same error, it sounds like we're fetching too many works in a single batch, and exceeding the Elasticsearch heap limits. (# of works × size of work)
There are two possible resolutions:

Increase the heap limits in Elasticsearch
Reduce the number of works we fetch in a single request

I don't know if (1) is even possible in Elastic Cloud, let alone advisable. Trying (2) seems like a better approach.

The number of works we fetch is currently hard-coded:
https://github.com/wellcomecollection/catalogue/blob/15cb5ac857b24cf21ac34d5479adddb7aebfb732/snapshots/snapshot_generator/src/main/scala/uk/ac/wellcome/platform/snapshot_generator/akkastreams/source/ElasticsearchWorksSource.scala#L35-L37
As part of this work, I'll make it an env var we can twiddle in Terraform, so it's easier to adjust/experiment with.

This will be deployed when the new API gets deployed.

We got a new snapshot last night! 🎉

We got a new snapshot last night! 🎉


html function receives item as parameter

Thanks!

FYI, I published this change with version 0.1.8 on npm just now.


Support "description" like "desc"

I would love to be able to use "description" instead of "desc".

@silveltman Thank you for raising this issue! I will add support for the description argument.

Fixed in https://github.com/tannerdolby/eleventy-plugin-metagen/commit/4149c795a90bc320172679fd860f5eb079fa0920. Support is added for description in v1.7.8!

This actually leads me to 2 other things.

Can you also support "image" on top of "img"

My setup is a data file (seo.yaml) with all tags:

title:
description:

My frontmatter per page is:
seo:
  title:
  description:

I want the frontmatter to overwrite the data file. However, if I leave the title or description in the frontmatter empty, the metagen get's these empty values instead of defaulting to the data file.
I know this could probably an 11ty thing, but maybe there is a fix within this plugin.
Thanks!

@silveltman I apologize for the delayed response, I'm quite busy and this thread got lost in my stack of "todo replies".

Can you also support "image" on top of "img"? - Yes I can add support for "image" which will by synonymous with the current img field. Expect this within the next week and then use the most up-to-date version.

My setup is a data file (seo.yaml) with all tags ..  I want the frontmatter to overwrite the data file. However, if I leave the title or description in the frontmatter empty, the metagen get's these empty values instead of defaulting to the data file.

So for your second question, global data files have the lowest priority in the data cascade where frontmatter in a template has the 2nd highest priority in the cascade.

However, if I leave the title or description in the frontmatter empty, the metagen get's these empty values instead of defaulting to the data file.

The above helped me to better understand your question. If you could share your metagen usage in the templates that would help me to better provide a solution, but in the meantime if I had the following global data file _data/seo.yaml then if I didn't supply title or description as a top-level field in frontmatter, we could tell the plugin to fallback to the global data file something like this:
---
seo:
  title: Foo bar
  description: some description
---

Metagen might not be getting called here in the same template (it might be inheriting a layout and thats where the frontmatter is consumed, but for the sake of this example I'm just showing the example metagen call here)

Example metagen call falling back to the global data file (which can be directly accessed in templates via {{ seo.someField }} or without the curly braces inside metagen paramters e.g. title=title or seo.someFIeld.

<head>
    {% metagen
        title=title or seo.title,
        desc=desc or seo.desc,
       ...
    %}
</head>

Hopefully the above examples can be helpful in some way. In the meantime, feel free to create a more reproducible example (include metagen calls) in a new issue and I'm happy to have a closer look.

Thanks for the response!
I changed it up a bit, but still can't get it to work.
_data/general_settings.yml:
seo:
  title: Cool title
  description: Cool description
  url: https://mywebsite.com
  img:
  img_alt:
  name:
  locale:
  generator: eleventy

Below my ideal setup in which the metagen gets values from general_settings.seo if not null or empty. So in the example below it would use the title and description from general_settings.seo. I have to leave the keys for title and desciption because of my CMS setup for my clients.
---
seo:
  title:
  description:
---

<head>
    {% metagen general_settings.seo or seo  %}
</head>

Something like the example you gave would also be fine, less clean I think. Also, I'm getting an error this way.
Below the setup I tried after reading your example:
---
seo:
  title:
  description:
---

<head>
    {% metagen
       title=seo.title or general_settings.seo.title
   %}
</head>

this gives me the following error:
Problem writing Eleventy templates: (more in DEBUG output)
[11ty] 1. Having trouble writing template: "_site/components/index.html" (via EleventyTemplateError)
[11ty] 2. invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title
[11ty]        ^, file:C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\src\_includes\head.liquid, line:37, col:1 (via RenderError)
[11ty] 3. invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title
[11ty]        ^ (via Error)
[11ty]
[11ty] Original error stack trace: Error: invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title
[11ty]        ^
[11ty]     at Lexer._token (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\moo\moo.js:533:13)
[11ty]     at Lexer.next (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\moo\moo.js:480:19)
[11ty]     at Function.parseArguments (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Engines\Liquid.js:121:21)
[11ty]     at async Object.render (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Engines\Liquid.js:145:26)
[11ty]     at async TemplateLayout.render (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\TemplateLayout.js:161:25)
[11ty]     at async Template.renderPageEntry (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Template.js:853:17)
[11ty]     at async C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Template.js:883:21
[11ty]     at async Promise.all (index 0)
[11ty]     at async Promise.all (index 1)
[11ty]     at async Eleventy.executeBuild (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Eleventy.js:1003:13)
[11ty] Wrote 0 files in 0.23 seconds (v1.0.1)

all examples are with the same _data/general_settings.yml file

Thanks for the response!
I changed it up a bit, but still can't get it to work.
_data/general_settings.yml:
seo:
  title: Cool title
  description: Cool description
  url: https://mywebsite.com
  img:
  img_alt:
  name:
  locale:
  generator: eleventy

Below my ideal setup in which the metagen gets values from general_settings.seo if not null or empty. So in the example below it would use the title and description from general_settings.seo. I have to leave the keys for title and desciption because of my CMS setup for my clients.
---
seo:
  title:
  description:
---

<head>
    {% metagen general_settings.seo or seo  %}
</head>

Something like the example you gave would also be fine, less clean I think. Also, I'm getting an error this way.
Below the setup I tried after reading your example:
---
seo:
  title:
  description:
---

<head>
    {% metagen
       title=seo.title or general_settings.seo.title
   %}
</head>

this gives me the following error:
Problem writing Eleventy templates: (more in DEBUG output)
[11ty] 1. Having trouble writing template: "_site/components/index.html" (via EleventyTemplateError)
[11ty] 2. invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title
[11ty]        ^, file:C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\src\_includes\head.liquid, line:37, col:1 (via RenderError)
[11ty] 3. invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title
[11ty]        ^ (via Error)
[11ty]
[11ty] Original error stack trace: Error: invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title
[11ty]        ^
[11ty]     at Lexer._token (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\moo\moo.js:533:13)
[11ty]     at Lexer.next (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\moo\moo.js:480:19)
[11ty]     at Function.parseArguments (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Engines\Liquid.js:121:21)
[11ty]     at async Object.render (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Engines\Liquid.js:145:26)
[11ty]     at async TemplateLayout.render (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\TemplateLayout.js:161:25)
[11ty]     at async Template.renderPageEntry (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Template.js:853:17)
[11ty]     at async C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Template.js:883:21
[11ty]     at async Promise.all (index 0)
[11ty]     at async Promise.all (index 1)
[11ty]     at async Eleventy.executeBuild (C:\Users\silve\websites\11ty\starters\11ty-cloudcannon-starter\node_modules\@11ty\eleventy\src\Eleventy.js:1003:13)
[11ty] Wrote 0 files in 0.23 seconds (v1.0.1)

all examples are with the same _data/general_settings.yml file

Something like the example you gave would also be fine, less clean I think. Also, I'm getting an error this way.
Below the setup I tried after reading your example:

Thank you for the detailed summary. I much better understand your situation which makes helping you easier 😄
The .liquid usage is different than for Nunjucks files.njk and this the cause for the:
11ty] Original error stack trace: Error: invalid syntax at line 1 col 6:
[11ty]
[11ty]   title=title or seo.title

The metagen plugin is primarily unit tested on .njk templates which the name=value syntax for shortcodes is expected. You could convert head.liquid to head.njk and re-run your trials which should work as expected. The name: value syntax is not allowed in shortcode arguments in either Nunjucks or Liquid so that is out of the picture.
If the above doesn't help get you on the right path, I see that you have the code in a GitHub repo. If its public feel free to share the repo URL and I'll have a closer look to propose a solution for your scenario.

Also, I just published v1.7.9 which supports data.image and anywhere img is used will be synonymous with image.

Thanks for all the help! Tho, I think sharing my github repo is a good idea hahah
https://github.com/silveltman/11ty-cloudcannon-starter
I got it to work in the page debug.liquid, but when using it in _includes/metagen.njk (which is then used in head.njk) I get the same 'invalid syntax' error as before.


allow prefix to be any AsOsStr type, matching up with the contents of Path

This was proposed some time back on the main repo, but I suggested against it as I didn't think that it was strongly motivated. Do you have a specific use case in mind where a strings do not suffice?

@alexcrichton it seems your suggestion against it in the PR was simply an issue with the API at the time (the switch for BytesContainer to OsStr was still in progress). Other than that, I can't find any statement of what would be problematic about this the PR you've linked.
As we now have AsOsStr, I'm not seeing how your previous concerns still apply.

These were my specific concerns:

Ideally this bound would be AsPath or AsOsStr, but the OsStr one is a bit odd and it's not necessarily a Path but rather a suffix to a path. In light of this I think we'll want to stick to &str for now (the common language of paths as unicode), and we can generalize later if necessary.

Ideally this bound would be AsPath or AsOsStr, but the OsStr one is a bit odd and it's not necessarily a Path but rather a suffix to a path.

By "AsPath or AsOsStr", did you mean AsPath + AsOsStr? If so, I don't think that makes sense.
If not, it is AsOsStr in this PR.

but the OsStr one is a bit odd and it's not necessarily a Path but rather a suffix to a path.

So OsStr is not necessarily a Path? I suppose this might be true, but we construct paths from OsStr. For the purposes of this PR, the use of OsStr is simply to use something that can construct a path that has fewer restrictions than str
That said, it seems like the above sentence is saying "OsStr is a suffix to a path". That doesn't make sense, so I'll assume you meant "the argument is a suffix to a path". This is true, but it isn't a problem. OsStr can also be a path suffix, as demonstrated by the existence of the push method.

By "AsPath or AsOsStr", did you mean AsPath + AsOsStr?

Ah sorry I meant either trait would be the bound, not both.

So OsStr is not necessarily a Path?

Strictly speaking all OsStr instances are also a valid Path, but I think it's gone pretty awry if you have something like:
TempDir::new(path, Path::new("suffix"))

This is true, but it isn't a problem. OsStr can also be a path suffix, as demonstrated by the existence of the push method.

Yes this PR is technically correct, but I believe it to be overengineered. The AsPath trait is relatively easy to understand and is used fairly commonly in the standard library whereas the AsOsStr is less common. In terms of a newcomer this makes the API a little more complex because you have to understand what OsStr is and how it interacts with Rust, both of which probably really aren't that necessary when you're just passing in a string literal.

I disagree, people who have managed to realize that AsPath exists (which they may as they are using the path API) are fairly likely to realize AsOsStr exists (as it is around for similar reasons).
That said: in all likely hood, those who don't know about the semantics there will still have no issue using an API that has AsOsStr as they will simply be passing a string literal and be none the wiser.
It is relatively simply not to over-restrict the type here. I don't see that as over engineering.

I realize that the point about being over-engineered is subjective, but my original question still stands:

Do you have a specific use case in mind where a strings do not suffice?

I'm presently using a filename as the prefix for tempdir.
It's simply to communicate more information about the use of the particular tempdir to a user that stumbles across it.
It isn't possible (or rather, it would be rather silly to) round trip through utf-8 because then I'd potentially lose having directory prefix that in any way corresponds to it's usage.

It's been a month since any comment was made here, please do one of the following:

provide new reasoning to convince me this is a bad idea
accept my reasoning and merge the change
disagree with my reasoning (or otherwise decide you don't want this in this particular tempdir crate) and decline the change

Ah sorry for letting this fall through the cracks, I think this must have gotten lost in my email. This sort of change should always backwards compatible to do so I think I'd like to get some more experience without being so generic and see where it takes us.


Content Slices returned out of order

When working with slices, the different slices seem to be grouped by slice type instead of the order in which they're specified in Prismic.
Using 1.0.0-alpha7, everything seems to be in order.

Post 1.0.0-alpha7

I wonder if it’s related to the async processing. I think using parallel or series instead of Promise.all and map or forEach could help here.

@angeloashmore Been trying this out the past couple days with various content, and v1.0.0-alpha.10 works beautifully. Thanks!


spider_days and nil paths fixes

it fixed our use cases
I think it's fine for any use

Awesome thanks!

Also fixed for me when using sitemap: public/sitemap.xml. Any progress on having this merged? The build seemed to have failed due to bundler, perhaps it's worth a rebuild to see if the problem still persists now?

Thanks for your PR. However, it should no longer be required since the release of Wraith v4.


Update deps

Requires database migrations?
NO
Includes new or updated dependencies?
YES

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.454%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
364

Relevant Lines:
366

💛  - Coveralls


authz: Clarity needed for few operations DURING Rotate() in progress

In the authz spec, it is mentioned that the pushed policy becomes active immediately as below:

Because the policy uploaded during the gNSI.authz.Rotate() call becomes active
immediately, the gNSI.authz.Probe() can be used to check if the uploaded
policy provides the expected response without attempting performing the
(potentially destructive) RPC in question while the gNSI.authz.Rotate() is
still active (the stream is opened and the Finalize message has not been sent
yet.

This is fine for Probe() RPC because it has to be tested before finalize.
When the Rotate() is in progress (After upload and before finalize) what is the expectation for the below two use case:

A real RPC such as /gnmi.gNMI/Get or /gnmi.gNMI/Subscribe. Should this be authorized based on the newly pushed sandbox policy (which has not yet received finalize maybe because the test phase is taking time) or the current active policy. Is the "Step 3 (optional): Test/Validation by the client." performed only using Probe() RPC or does the controller fires the actual RPC also to perform the test?
What should Get() RPC return in this intermediate state? Unlike pathz, the GetRequest does not take the PolicyInstance parameter.

IMO, the new policy becomes active, period.  Probe() is simply a way to test the policy without executing the RPC in the Probe; ie: /gnmi.gNMI/Subscribe would be tested against policy but not executed.

It sounds like the intention was:
"Rotate applies a new policy immediately, the rotator should test with probe() messages to see that their intended result is live, and finalize() when that's done"
Because 'live immediately', I expect that new rpcs between the start of Rotate() and Finalize() would be evaluated under the newly placed policy. If the policy failes Probe() tests (for instance) or there are signals to the rotator that: "Hey, half my RPCs are failing? wut?" the rotator may choose to not Finalize() and disconnect forcing the previous policy to take up the active role.
make sense?

Got it @morrowc. This answers my questions
In summary:
In the intermittent state, all of them(Probe(), real RPC and Get()) behave as per the new policy even though Finalize is not yet issued. This is in line with the spec which mentions "active immediately".


Cannot start Vite 6 due to .vite-temp directory creation in node_modules

Describe the bug
I am using NIX as a way to manage NodeJS packages, which makes the node_modules directory read only.
I tried to upgrade to the latest Vite 6.0.1 version, which results in an error being thrown when trying to start Vite:
error when starting dev server:
Error: EACCES: permission denied, mkdir '/home/adube/myproject/node_modules/.vite-temp'

There is a new .vite-temp directory that is trying to be created in the node_modules directory, which fails.  Introduced in #18509.
Reproduction
no url required
Steps to reproduce
The following reproduces the scenario of a "read only" node_modules directory.
Run:
npm create vite@latest
cd vite-project/
npm install
sudo chown -R root:root node_modules
echo 'export default {}' > vite.config.js
npm run dev

you'll get:
error when starting dev server:
Error: EACCES: permission denied, mkdir '/tmp/vite-project/node_modules/.vite-temp'

System Info
System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 20.52 GB / 31.08 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
  npmPackages:
    vite: ^6.0.1 => 6.0.1

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

Same here

Why this issue have the "has workaround" label ?

Working with a NIX environment currently means having the node_modules being read only.  I do not currently have any workaround this reality.
Suggestion of a workaround that would work for me: have option to determine where the .vite-temp directory could be written, pretty much an equivalent of the cacheDir configuration.
Would that be a good idea?
Thanks

I too use a readonly node_modules directory (Docker bind mount). Ran into this today myself after upgrading Vite to 6.0.3:
2.901 failed to load config from /app/src/client/vite.config.js
2.905 error during build:
2.905 Error: ENOENT: no such file or directory, mkdir '/app/node_modules/.vite-temp'

Is there no workaround?


refactor: tests/integration/210.command.deploy.test.cjs

🎉 Thanks for submitting a pull request! 🎉
Summary

refactor: move and rename file
refactor: convert file to esm
refactor: replace ava with vitest
refactor: replace got with node-fetch
style: apply lint rules

Related to: #5698

For us to review and ship your PR efficiently, please perform the following steps:

[ ] Open a bug/issue before writing your code 🧑💻. This ensures we can discuss the changes and get feedback from everyone that should be involved.
[x] Read the contribution guidelines 📖. This ensures your code follows our style guide and
passes our tests.
[x] Update or add tests (if any source code was changed or added) 🧪
[ ] Update or add documentation (if features were changed or added) 📝
[] Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

Lint error in test

Another weird diff


Version

It would be helpful if the Visual Studio version were included in the video -- if it was, I could not tell. I am using 2017 and some aspects of the video do not correlate. Even better would be to provide a link for Building Your First Android App with Xamarin for Visual Studio 2017

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

ID: b6f520a2-9747-abe6-5bfb-d327a86130d6
Version Independent ID: c8c064cb-4b2d-1270-c909-d6e8ae5cfbec
Content: Start Developing Android Apps with Xamarin.Android - Xamarin
Content Source: docs/android/get-started/index.md
Service: unspecified
Product: xamarin
GitHub Login: @mgmclemore
Microsoft Alias: mamcle

Hi @jprsatx, I've contacted the author of the video and passed on your comments. The video was made with an earlier version of Visual Studio 2017 that used different templates -- she is looking into refreshing the video using the latest templates. Thanks for the feedback!


refactor(CL): convert CalculatePriceToTickDec to operate on BigDec conversions in a state-compatible way

Closes: #6246
What is the purpose of the change
Refactors CalculatePriceToTick function to operate on BigDec and support prices in the newly added range [10^-30, 10^-12);
State-compatibility is guaranteed by the following:

The caller guarantees that the provided price is within the current mainnet bounds of `[10^-12, 10^38]
For the currently supported range, we truncate the price to 18 decimals before performing any price to tick conversions
There is a test added showing that for all supported prices given our exponent at price one, CalcPriceToTickV1 (18 decimal) and CalcPriceToTick (36 decimal) output the same values.

The test is currently skipped as it is only meant for display purposes

The CalcPriceToTickV1 and test showing compatibility are to be removed in #6247.
Testing and Verifying

Added test vectors for CalculatePriceToTick in the newly supported range
Added test showing compatibility with the current mainnet function

Documentation and Release Note

[ ] Does this pull request introduce a new feature or user-facing behavior changes?
[x] Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

[ ] Specification (x/{module}/README.md)
[ ] Osmosis documentation site
[x] Code comments?
[ ] N/A

e2e is flaky. If failure, it is unrelated


Integrate LLVM at llvm/llvm-project@ae032e271467

Update config and submodule for
ae032e271467

@chandlerc made this a PR against my other PR branch to make the diff right, but then GitHub won't let me make it a PR in the main repo.  Ah GitHub...

Converted to https://github.com/google/llvm-bazel/pull/88


OLS-31: Info about conversation cache configuration

Description
Info about conversation cache configuration
Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[x] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #OLS-31

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

/lgtm

/approve


Delegate Mission Request: Fraud Proof CTF Mission Request

Delegate Mission Request: Fraud Proof CTF Mission Request
Delegate Mission Request Summary:
To ensure the security of fraud proofs in advance of the full launch, this mission proposes creating a public CTF / short-term bug bounty to draw focus from top security talent.
S5 Intent: Intent 1: Progress towards technical decentralization
Proposing Delegate: Gonna.eth
Proposal Tier 1: Fledgling
Baseline grant amount: 50k OP for coordination, up to 200k OP in potential rewards
Should this Foundation Mission be fulfilled by one or multiple applicants: One
Start date: ASAP
Completion date: Before OP mainnet fraud proof launch
Apply Here
Specification
How will this Delegate Mission Request help accomplish the above Intent?
The most important step towards technical decentralization is getting fraud proofs live on OP Mainnet.
While they are currently live on Goerli, the bug bounty is low and not drawing much attention.
A ton of attention from top security researchers would help provide the security confidence needed to move towards a mainnet launch.
What is required to execute this Delegate Mission Request?

Analyze fraud proof systems to determine complete list of possible risks that could arise.
Determine payouts for each possible risk being identified.
Set up a fun “event” structure to make it more like a concentrated CTF than a typical bounty.
Market it to gain awareness and excitement in the security community.
Run the event.
Judge submissions and determine payouts.

How should the Token House measure progress towards this Mission?

Event coordinated with payouts and plan approved by OP security team.
Event runs successfully.

How should badgeholders measure impact upon completion of this Mission?

Did the event surface vulnerabilities that could have created problems if deployed to mainnet?
At the end of the event, does the OP team feel confident that fraud proofs are ready for mainnet?

This project was selected for this mission request
https://app.charmverse.io/op-grants/the-op-fault-proof-ctf-39249094150592323


Add SPFx WebPart to variation page fails

Category

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

Expected or Desired Behavior
I should be able to add a SPFx webpart on every page after installing it
Observed Behavior
i developed a spfx webpart and deployed it to the app catalog and added all CDN files.
The app can be installed on every site collection or subsite but i have massive problems by adding the webpart to a variation page.
Steps to Reproduce

Create a variaton site with variation labels. I have created en-us and de-de
Install the webpart on the source variation page. In my case en-us
Try to install the app on a second label site after all variation hierarchies are created. In my case de-de. The webpart cannot be installed, it says that the app is already installed.
If a change the app version in the webpart config, the app can be installed, but ....
the Problem:
The webpart is added to the page but is empty. Also in the settings panel the custom SPFx panel is empty.

Has anyone of you made experiences with the variation sites and SPFx.
Thanks a lot

Hi @corily1810 - I'm going to throw out a bunch of different things to look at.
If you use another webpart (say a listview webpart) does it work correctly?
Also, just to confirm, the behaviour you are seeing is that the webpart is added, but the configuration data is empty?
In trying to diagnose, if you create a simple "hello world" webpart where the property is just a string, does it work correctly?
If you override the
protected onAfterDeserialize(deserializedObject: any, dataVersion: Version): TProperties;
method (make it simply call the base class), what does your deserializedObject look like?  What does the return value look like?

Hi @patmill,
This should be related to https://github.com/SharePoint/sp-dev-docs/issues/596. There are double quotes in the loader module's German error text that are not escaped (I've heard of this being a problem in other languages too). So you don't necessarily need a German variation page to reproduce it - just create a (classic) German Site or activate the MUI and switch the browser language to German.
I'm actually waiting for a fix since May since we have customers that use German only. Would it be realistic to plan on a fix within this month?
Thanks!
Dirk

@BigEaseGueldi - now that #596 is resolved, could you please re-test your scenario and let us know if you still this issue.
Thanks,
Srikanth

@corily1810 - could you please re-test your scenario and let us know if you still see this issue?

Dear all, thanks a lot for your support.
The issue is solved and the webpart is working for all variation sites.

Based on confirmation from @corily1810, will close this one for now.


Script to convert RAFT models

Issue Type
Documentation Feature Request
OS
Other
OS architecture
Other
Programming Language
Other
Framework
PyTorch
Model name and Weights/Checkpoints URL
252_RAFT
Description
Hello again :)
I have been trying to reproduce your ONNX files myself, however, I do get different results:
When I export my model with torch.onnx.export I have to use opset version 16 and this adds GridSample operations in the ONNX graph. However, in your ONNX files there are no such operations included and I see that they have been replaced by GatherElements.
So my question is, how can I create models similar to yours?
Relevant Log Output
No response
URL or source code for simple inference testing code
No response

https://zenn.dev/pinto0309/scraps/2766a953754dea

I have observed that your models are much faster than my own converted ones. Did you do any model optimization?

All of my generated models committed to this zoo have been specially optimized. All five years. Thus, for RAFT, the special optimization work required to run on the old runtime environment, which is more than two years old, was necessary. Essentially, we believe that as of 2024, the system will run at high speed without special optimization work.
However, I am not really interested in optimizing an architecture that is several years old, since RAFT is designed to be quite operationally heavy in the architecture itself.


Battle Weather Effects

Description
There are various weather effects that are possible in battle that alter the battle flow, and they need to be implemented.
Details
Pokemon with the Overcoat (Ability) don't take damage from certain weather.
Weather effects need applied where applicable.
Weather Effects
Mid Turn

[x] Some weather buffs damage for specific move types
[x] Some weather ensures that moves have 100% base accuracy
[x] Some weather buffs some stats of the active Pokemon
[ ] Some weather buffs heal amount for specific moves
[ ] Some weather removes the charge step for some charge based moves

End Of Turn

[x] Decrement Weather Turn Count

Weather lasts for n turns; decrement the turn count until weather falls off

[x] Hail Tick Damage

Applies if the Pokemon doesn't have Overcoat (Ability), Magic Guard (Ability), Safety Goggles (Item) held, or is not Ice-type
Ticks for 1/16 of the Pokemon's Max HP

[x] Sandstorm Tick Damage

Applies if the Pokemon doesn't have Overcoat (Ability), Magic Guard (Ability), Safety Goggles (Item) held, or is not Rock-type, Ground-type, or Steel-type
Ticks for 1/16 of the Pokemon's Max HP

[x] Shadowy Aura Tick Damage

Applies if the Pokemon doesn't have Overcoat (Ability), Magic Guard (Ability), Safety Goggles (Item) held, or is not Shadow-type
Ticks for 1/16 of the Pokemon's Max HP

Closing as manual implementation isn't necessary with the move to Smogon's Showdown Sim (#18)


gatewayd and fedimint-cli serialize secrets differently

Not sure if this is an actual problem or not, but I was surprised to find this today.
fedimint-cli serializes secrets as <Vec<u8>>
gatewayd serializes as [u8; 64]
So even if they used the same root secret strategy (they don't), fedimint-cli still wouldn't be able to initialize itself from a gateway-created client database.

Fixed with https://github.com/fedimint/fedimint/pull/5852


nixpkgs.python35Packages.pgcli can not be installed

Issue description
nixpkgs.python35Packages.pgcli can not be installed
Steps to reproduce
  nox pgcli                                        127 ↵
Refreshing cache
1 python2.7-pgcli-0.20.1 (nixpkgs.python27Packages.pgcli)
    Command-line interface for PostgreSQL
2 python3.5-pgcli-0.20.1 (nixpkgs.python35Packages.pgcli)
    Command-line interface for PostgreSQL
Packages to install: 2
installing ‘python3.5-pgcli-0.20.1’
error: while evaluating the attribute ‘propagatedNativeBuildInputs’ of the derivation ‘python3.5-pgcli-0.20.1’ at /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/pkgs/development/python-modules/generic/default.nix:108:3:
while evaluating ‘makeOverridable’ at /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/lib/customisation.nix:54:24, called from /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/pkgs/top-level/python-packages.nix:16474:20:
while evaluating anonymous function at /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/pkgs/development/python-modules/generic/default.nix:9:1, called from /nix/store/7nygbmc03nxm24iz59s6gwwh9j1q5ham-nixpkgs/nixpkgs/lib/customisation.nix:56:12:
prompt_toolkit-1.0.0 not supported for interpreter python3.5m
Traceback (most recent call last):
  File "/nix/store/m01qr34jsbfp81hdm8720wyr9hh5rnra-nox-0.0.2/bin/.nox-wrapped", line 12, in <module>
    sys.exit(main())
  File "/nix/store/wxafxxg9m2igxm89jm6hrvcq732c9ylv-python3.4-click-6.6/lib/python3.4/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/nix/store/wxafxxg9m2igxm89jm6hrvcq732c9ylv-python3.4-click-6.6/lib/python3.4/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/nix/store/wxafxxg9m2igxm89jm6hrvcq732c9ylv-python3.4-click-6.6/lib/python3.4/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nix/store/wxafxxg9m2igxm89jm6hrvcq732c9ylv-python3.4-click-6.6/lib/python3.4/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/nix/store/m01qr34jsbfp81hdm8720wyr9hh5rnra-nox-0.0.2/lib/python3.4/site-packages/nox/search.py", line 83, in main
    subprocess.check_call(['nix-env', '-iA', '--show-trace'] + attributes)
  File "/nix/store/aqyvrkns2ykvb83pmmbb7ban3kwgf0n9-python3-3.4.4/lib/python3.4/subprocess.py", line 561, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['nix-env', '-iA', '--show-trace', 'nixpkgs.python35Packages.pgcli']' returned non-zero exit status 1

Technical details

System:

$ lsb_release -a                                                                                1 ↵
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04 LTS
Release:	16.04
Codename:	xenial

Nix version:

$ nix-env --version
nix-env (Nix) 1.11.2

Nixpkgs version:

$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"16.09pre83147.df89584"

It seems to give a fairly good reason as to why as well:
prompt_toolkit-1.0.0 not supported for interpreter python3.5m

This (in)direct dependency is not supported on Python 3.5. Note however that on master this has already been fixed.

Furthermore, pgcli has disabled = isPy35;. According to their setup.py 3.5 is not supported.

@FRidh Yes, the issue was to request disabling py3.5 package, I should have checked master, sorry.

@phanimahesh I am looking into it now. There are some dependencies that have issues as well.

fixed with d78a2b1ce9df168afd44f16ea07667d8e1e0732f and c632980a0231a2514e7acec3e8a15feb5a5373fa and f745e02510bb05aa199783155dc278949d65aa9b

I'm new to Nix, I don't understand the fix fully, will look at it again later to see how this fixes it.
Thanks!


Source has spaces

How to remove a source if it's name has spaces? I tried typing it with spaces but it didn't work.
I also tried removing the spaces, and replacing them with underscores

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

ID: 9cb4bcff-70ad-2655-f246-9e586940119a
Version Independent ID: 168ac3d5-8a09-5584-c4c6-78cabbe39818
Content: dotnet nuget remove source command - .NET Core CLI
Content Source: docs/core/tools/dotnet-nuget-remove-source.md
Product: dotnet-core
Technology: dotnet-cli
GitHub Login: @tdykstra
Microsoft Alias: tdykstra

Put the name in quotes, eg.:  dotnet nuget remove source "name with space"

thank you!


Laravel 5.1.1 Won't Install Sonus via Composer

Hi there!
I tried to install closca/sonus with composer to a laravel 5.1.1 app and received the following error during setup.
[Symfony\Component\Debug\Exception\FatalErrorException]     Class 'Closca\Sonus\SonusServiceProvider' not found
Detailed step by step:
I updated my composer file with:  "closca/sonus": "dev-l5"
I then ran composer update and followed with composer dump-autoload and php artisan optimize
I then added my provider and alias in the config file and attempted to run the following (all had the same error)
php artisan config:publish Closca/Sonus
php artisan config:publish Closca\Sonus
php artisan config:publish closca/sonus
php artisan config:publish closca\sonus
Which throws a:
[Symfony\Component\Debug\Exception\FatalErrorException]     Class 'Closca\Sonus\SonusServiceProvider' not found
:(
I verified that the namespaces are correct in all places they're referenced.
Finally, I tried removing the alias and provider and running composer clear-cache and restarting the process to no avail.

+1

I'm having the same issue on Laravel 5.1.1
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Closca\Sonus\SonusServiceProvider' not found
:(

Guys, I have a working copy over here: https://github.com/dunfy/sonus
I'm NOT maintaining it though, I had to fork it and fix it so I can use it in my own project.

+1, no idea why this is happening. Tried recreating @dunfy 's commits, that didn't work either.

+1, same issue

+1

+1

@dunfy would you create a pull request for this repo?

+1

+1

Anyone solve this issue? Trying to get it installed on L5.1 and getting the same thing :(


Remove testcases on deleting problem from bank

The testcases files of a problem should get removed once the corresponding problem has been deleted from the problem bank.
Use post_delete signal.

Fixed in PR #52


Allow options to be passed to socket.io

Socket.io has some useful options: https://github.com/socketio/engine.io#methods-1
It'd be nice if we could specify these options in the config to be passed through.
One example use-case is to swap out socket.io's websocket engine with uws: https://github.com/uWebSockets/uWebSockets, which claims to be 10-300x faster than socket.io's default engine (ws)

Thanks for sharing. uWebsockets looks pretty interesting, I'll have to check it out. Options for socket.io are on the list.

This has been added under the option databaseConfig . See https://github.com/tlaverdure/laravel-echo-server#redis-1

This might allow passing options to the database, but still can't pass options to socket.io which is my issue.
Options would need to be passed here: https://github.com/tlaverdure/laravel-echo-server/blob/master/src/server.ts#L93

Oh sorry! Misread this.

nice!


[keycloak oidc] nested groups

https://github.com/rancher/rancher/issues/33314
https://github.com/rancher/rancher/issues/33337

Closing in favor of claim info design


Support CFLAGS and LDFLAGS

CFLAGS, LDFLAGS and CPPFLAGS are processed by setup.py script especially distutils treats them. We need to support these environment variables when nvcc command is used. It cannot find cudnn without this patch.

LGTM except comments!

cupy.sort implementation on the master branch is reverted anymore. I will apply the change of this PR to PR #2539, which is for implementing cupy.sort again, by hand.

I have applied the change of this PR to #2539.


1831 - Define $factory For TeamSpeak Library

Resolved #1831

:tada: This PR is included in version 5.8.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[BUG]  When a user is logged in and if he is on light mode the color visibility  of texts are not good

Description of the bug
When a user is logged in and if he is on light mode the color visibility  of texts are not good
Please add screenshots (if applicable)

Add any other context about the problem here
i want to change the color to black When the user is in light mode.
I want to work on this issur under GSSOC 2023
FeedBack When a user is logged in its still showing the Button Get Started.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Mudassirkhan2 do you want to work on this issue?

@Mudassirkhan2 do you want to work on this issue?

Yes will try my best.

label of gssoc @Deepu178

@Deepu178  i havent got points for this issue

@Mudassirkhan2  labels were not added to that pr and I added the appropriate labels and you will get your points for the pr soon. it may take 1 or 2 week to  update the leaderboard.


update to v2.2 webhelp.  includes the extracted files, the PDF, and the zip file

@t1m0thyj
Please review

@t1m0thyj  -
Please recheck and verify...


[SMALLFIX] Allow extension on UfsManager.tryUfsFileSystem()

What changes are proposed in this pull request?
Change the method visibility to protected to allow overriding this method.
Why are the changes needed?
I can override this method to a noop so the UfsManager does not connect to the real UFS instance.

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-3-1.1.x please


Attached files on the forum

Could you clarify, is it possible to attach any files to forum topics and messages?

Hi,
This isn't a feature available out of the box, but you could integrate a package such as spatie/laravel-medialibrary or teamteatime/laravel-filer by extending the forum thread/post models and, if you're using laravel-forum-frontend, overriding the frontend controllers and views.


support crystal 1.2.0

my crystal version is 1.2.0
git clone to my local dir, and then i run the command like this.
$ env LLVM_CONFIG=/usr/local/opt/llvm/bin/llvm-config crystal build ./src/crystalline.cr  -o ./bin/crystalline --release --no-debug -Dpreview_mt
Showing last frame. Use --error-trace for full trace.

In /usr/local/Cellar/crystal/1.2.0/src/compiler/crystal/tools/doc/generator.cr:1:1

 1 | require "../../../../../lib/markd/src/markd"
     ^
Error: can't find file '../../../../../lib/markd/src/markd' relative to '/usr/local/Cellar/crystal/1.2.0/src/compiler/crystal/tools/doc/generator.cr'

maybe it's not support 1.2.0?

I managed to bypass the markd error by doing these steps:
`

Clone markd somewhere on disk
Added it to CRYSTAL_PATH using the following command: export CRYSTAL_PATH=/path/to/markd/src:$(crystal env CRYSTAL_PATH)
Changed the markd path to require "markd" in these two files: '/opt/homebrew/Cellar/crystal/1.2.1/src/compiler/crystal/tools/doc/generator.cr and /opt/homebrew/Cellar/crystal/1.2.1/src/compiler/crystal/tools/playground/server.cr

Tried to rebuild but now it seems to fail with a different error:
Dependencies are satisfied
Building: crystalline
Error target crystalline failed to compile:
Showing last frame. Use --error-trace for full trace.

There was a problem expanding macro 'string'

Code in src/crystalline/lsp/base/code_action_kind.cr:11:1

 11 | Enum.string CodeActionKind, mappings: {
      ^
Called macro defined in src/crystalline/lsp/ext/enum.cr:3:3

 3 | macro string(name, *, downcase = true, mappings = nil, &block)

Which expanded to:

 > 27 |       end
 > 28 |
 > 29 |       def to_json(builder : JSON::Builder) : IO
                                                     ^-
Error: method CodeActionKind#to_json must return IO but it is returning Nil

Hmmm, is anybody maintaining the repo? Seems to be zero activity, and also no replies for some time.

Hey @marghidanu,

Hmmm, is anybody maintaining the repo?

I am still reading issues and PRs, but sadly I do not have time these days to do much more than that, sorry 😕.

That's a real pity, but also the nature of most open source projects. Developers give up lots of spare time to deliver a product us users expect to get for free. Anyway, thanks for your work so far @elbywan! Perhaps in due time crystalline can be picked up again, or forked.
Crystal could really do with a good lsp implementation - I've been spoiled by Rust + rust-analyzer. Scry also seems stale at this point.

Per previous responses, I was able to get a mostly working build on a M1 Mac with two workarounds.
First by copying the 1.2.x lib/markd dir to the brew install dir.
git clone https://github.com/crystal-lang/crystal.git
cp crystal/lib /opt/homebrew/Cellar/crystal/1.2.2/lib
``

Then to avoid the enum macro error, I changed the return type of the `to_json` method. Not a permanent fix, but will complete the build.

/src/crystalline/lsp/ext/enum.cr:16

 def to_json(builder : JSON::Builder) : IO

 def to_json(builder : JSON::Builder) : Nil

First by copying the 1.2.x lib/markd dir to the brew install dir. (...)

This made compilation work for me as well (M1 Mac), thanks! But you probably need cp -r, right?
cp -r crystal/lib /opt/homebrew/Cellar/crystal/1.2.2/lib

With the latest commits building the lib should be straightforward now, and the markd shenanigans should not be needed anymore.

Thank you @elbywan. Just compiled it from scratch on my M1 machine and it works fine!

Thanks, compiles fine here as well!


Add [My Coinbase Stellar Lumens XLM Wallet] #wallet #malicious #personal #unsafe GDFRLI…7ZCE6A

Address: GDFRLIMZF7UEAINDIRQYOH7A436T6CMZWYBCOW5V663EP7GZ327ZCE6A
Tags: wallet malicious personal unsafe
Title: My Coinbase Stellar Lumens XLM Wallet
Requested by @jenonymous-dev

Trying to recover funds I sent from Keybase to this this wallet in my Coinbase account on Jan 30, 2023

Hello @jenonymous-dev
Stellar.expert is just a Stellar Blockcain explorer that helps people find information/activities on the Stellar blockchain.
You will need to contact coinbase ( https://help.coinbase.com/en ) and give them information about the transaction. Click on the operation number and the URL will look something like this https://stellar.expert/explorer/public/tx/194335536294166528#194335536294160000
Coinbase will need this transaction ID and the memo that was supposed to be used and probably proof as to who you are.
I hope this helps.
Looking Towards The Future With You,
Rob

Hello  @jenonymous-dev
Please feel free to reopen this issue with any new information you have to provide.
Looking forward to the future with you,
Rob


Feature Request: Be able to drag folder into canvas, including all notes from tag "folder"

Currently in Obsidian, you can drag a folder and create a "canvas" containing all notes in that folder, which is cool.
I would love to be able to do the same thing with your "Tag folders"
Please? :)

Thank you for your request, and I am really sorry for missing to reply!
I was previously going to say that I did not know how to do this and let me postpone it, but I recently discovered how to do it.
I will implement it at the same time as #79.

@tondeaf
This feature has been released on 0.16.10! (However, a prime location, the tag name, was used to paste the tag name in the notes. Please drag a number of notes).
Could you please try the latest version and check the behaviour?


(WIP) Use torch.multiprocessing to parallelize probe training across layers

Addresses #64

Haven't had time to read in depth but could you make sure to use type annotations? Thanks

Just cleaned this up & got it working as #86, thanks a lot!


Clair API returns 404 for every call

Description of Problem:
Started Clair as per your documentation and it appears to be running. I see the following entries in the logs:
clair_1     | {"Event":"starting grpc server","Level":"info","Location":"server.go:155","Time":"2017-10-11 17:53:35.438686","addr":"[::]:6060"} clair_1     | {"Event":"starting health API","Level":"info","Location":"api.go:62","Time":"2017-10-11 17:53:35.439587","addr":"<IP_ADDRESS>:6061"}
which assumes that the API is up and running however every call to http://localhost:6060/ returns 404 Not Found. Here are the calls tried:
GET http://localhost:6060/v1/versions
GET http://localhost:6060/v1/namespaces
POST http://localhost:6060/v1/layers
Expected Outcome:
I expected to at least get some response on the versions call. Also, not sure how the health API is working and how to use it.
Actual Outcome:
Environment:

Clair version/image:
Host OS:
Kernel (e.g. uname -a):
Kubernetes version (use kubectl version):
Helm version (use helm version):
Network/Firewall setup:

You're running the latest version of Clair that is unreleased and has a different gRPC-based API than what is currently documented for stable.
You should try using a stable release quay.io/coreos/clair:v2.0.1 or checking out the release-v2.0 branch before building a binary.

There is no v2.0.1 in Quay's repository. Here is the error I am getting:
Pulling clair (quay.io/coreos/clair-git:v2.0.1)... Pulling repository quay.io/coreos/clair-git ERROR: Tag v2.0.1 not found in repository quay.io/coreos/clair-git

Never mind - I should use the stable repository :)

There is no versions resource in the v1 API. You can find the API docs on the CoreOS website or the Documentation directory on the proper branch.

I'm experiencing the same problem as @toddysm ...
So...according to https://github.com/coreos/clair/blob/release-2.0/Documentation/api_v1.md#namespaces, this is a valid call:
$ curl http://localhost:6060/v1/namespaces
Not Found

So why do I get a 404 back? Is there any valid API documentation? How do I ensure my instance of Clair is actually working?

You're most likely using the wrong version of Clair. HEAD does not support the v1 API.
If you're interested in the v3 API that uses JSON/gRPC you can check its API out on SwaggerHub or read the OpenAPI Spec directly.


New Uber Logo

Will there be an update soon to incorporate the new Uber logo?

Yup! This will be updated in the next release.

We are hoping to submit to Apple within the next 24 hours, do you anticipate the next release will be within the next day or 2, or should we just update to the new release in a future update?
Thanks!

Unfortunately this won't be released in the next few days, it'll most likely be within the next few weeks.

Fixed in v0.4.0


DCD: Connection timed out

Steps to reproduce:
Load dev environment, wait about 10 secsonds and the error appears in the console window.
Been troubleshooting the issue for a few hours, but not really getting anywhere. The project doesn't seem to have any custom websocket code - websockets even appear to be disabled in 'webapp.bicep'. The error does not occur locally. It does not effect the usage of the app as far as i can tell.

After @ManveerPandher and @fredrikleknes took a look at the issue, it appears to happen "Occasionally".
Different behavior on Mac (@ManveerPandher ), and Windows (@fredrikleknes)
Since this doesn't produce any issues on development, testing and production, we're moving this back to "TODO" due to its low impact.


chore: add a bunch of checks to gh actions

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@49192a3). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff           @@
##             main      #2   +/-   ##
======================================
  Coverage        ?   0.00%
======================================
  Files           ?       2
  Lines           ?      16
  Branches        ?       0
======================================
  Hits            ?       0
  Misses          ?      16
  Partials        ?       0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49192a3...c6d98f5. Read the comment docs.


Fixed minor spelling mistake in Farmnotifier

What is your discord?

What is your discord?

J10a1n15#5925


Problems with functions without declarations

/mnt/c/Users/H A M/Metroid/mf# python3 ../decomp-permuter-agbcc/permuter.py nonmatchings/CoreXShell
Loading...
nonmatchings/CoreXShell/base.c (CoreXShell)
No perm macros found. Defaulting to randomization.
Will try 1 different base sources.

[CoreXShell] base score = 0
iteration 1, 0 errors, score = 410
[CoreXShell] internal permuter failure.
Traceback (most recent call last):
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/permuter.py", line 269, in try_eval_candidate
    return self._eval_candidate(seed)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/permuter.py", line 197, in _eval_candidate
    self._cur_cand.randomize_ast()
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/candidate.py", line 81, in randomize_ast
    self.randomizer.randomize(self.ast, self.fn_name)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/randomizer.py", line 2456, in randomize
    method(fn, ast, indices, region, self.random)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/randomizer.py", line 2346, in perm_inline
    if match_cut(cand2, cut_expr, cut_types, [], typemap):
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/randomizer.py", line 2307, in match_cut
    return ast_util.equal_ast(node, cut_node, cmp)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_util.py", line 205, in equal_ast
    return equal(a, b)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_util.py", line 201, in equal
    if not equal(getattr(a, name), getattr(b, name)):
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_util.py", line 181, in equal
    res = cmp(a, b)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/randomizer.py", line 2301, in cmp
    tp = decayed_expr_type(expr, typemap)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_types.py", line 196, in decayed_expr_type
    return pointer_decay(expr_type(expr, typemap), typemap)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_types.py", line 179, in expr_type
    fptr_type = resolve_typedefs(rec(expr), typemap)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_types.py", line 104, in rec
    return expr_type(sub_expr, typemap)
  File "/mnt/c/Users/H A M/Metroid/decomp-permuter-agbcc/src/ast_types.py", line 127, in expr_type
    return typemap.var_types[node.name]
KeyError: 'CountPrimarySprite'

To reproduce the failure, rerun with: --seed<PHONE_NUMBER>773704045

CoreXShell.zip
And here's what I'm permuting

now i realmatched it without permuter
https://decomp.me/scratch/2ioU9

I don't know why I didn't get an email about this, but regardless this is the wrong venue. decomp-permuter-agbcc's scope is changing the import script to be easier for agbcc compared to upstream. Any changes to the permuter itself are outside of this repository's scope, and should be handled by upstream.


The code dosen't execute when tour is used in local in firefox

OS:Windows 8.1 64 bit
Browser:Firefox Quantum 61.0b12 (64-bit)
Go lang version:1.10.3 windows/amd64
The page loads up but when you run the code it gets stuck at  Waiting for remote server...
Note: I thought maybe it was not working due to some add-on, so i ran Firefox in safe mode and still the same problem. But i tried to run it in opera neon which is a chromium based browser and there it worked perfectly

Can you give some details about the HTTP request is done when you press Run?
Open developer console - network tab - press Run and see what is the response on the server, what is the URL
Example:

I tested in Firefox 60 and it seems to work, maybe we can pinpoint what is wrong (your network, server, etc)

No requests are made when Run is pressed. The format button though seems to be working fine as i am getting a 200 response and code is properly formatted.
I am on beta channel of Firefox that is Firefox 61. I think that may be the issue as its working fine on opera neon.

If you use Beta versions of browsers do not report the websites, report to the browser vendor (that an website was working on their previous version but doesn't in the current beta), usually that is the case.


route_ports_to_side does not accept kwargs

Describe the bug
Documentation for route_ports_to_side suggests that it can take kwargs, however in practice it does not.
To Reproduce
c = gf.Component()
ref = c << gf.components.mmi2x2()

routes, ports = gf.routing.route_ports_to_side(
        component=c,
        cross_section="strip",
        ports=ref.ports.filter(orientation=180),
        side="west",
        x=(float(c.bbox_np()[0][0])-100),
        kwargs={"separation":30}
    )

c.plot()

TypeError: route_ports_to_side() got an unexpected keyword argument 'kwargs'
I tried passing kwargs another way but it also did not work.
c = gf.Component()
ref = c << gf.components.mmi2x2()

routes, ports = gf.routing.route_ports_to_side(
        component=c,
        cross_section="strip",
        ports=ref.ports.filter(orientation=180),
        side="west",
        x=(float(c.bbox_np()[0][0])-100),
        **{"separation":30}
    )

c.plot()

TypeError: route_ports_to_side() got an unexpected keyword argument 'separation'
Expected behavior
route_ports_to_side should not throw error when passing kwargs.
Suggested fix
Please modify route_ports_to_side so kwargs is a parameter it can take.
Environment (please complete the following information):

[x] I have reviewed the documentation, discussions and issues and found no relevant solution.
[x] I understand that this is an open-source project, and maintainers may not have the resources to address every issue. I am prepared to contribute by fixing the issue myself or hiring someone to do so, if needed, and accept that the issue may not be resolved otherwise.
[x] I am using the latest version of GDSFactory, with Python 3.10, 3.11, or 3.12.

Please provide the output for the following code:
import sys
print(sys.version)
print(sys.executable)

import gdsfactory as gf
gf.config.print_version_plugins()

                                                      Modules
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃        Package ┃ version                                        ┃                                          Path ┃
┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│         python │ 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024,     │ C:\Users\kuang\AppData\Local\Microsoft\Windo… │
│                │ 10:12:12) [MSC v.1938 64 bit (AMD64)]          │                                               │
│     gdsfactory │ 8.27.1                                         │ C:\Users\kuang\AppData\Local\Packages\Python… │
│         devsim │ not installed                                  │                                               │
│        femwell │ not installed                                  │                                               │
│ gdsfactoryplus │ not installed                                  │                                               │
│       gplugins │ not installed                                  │                                               │
│         lumapi │ not installed                                  │                                               │
│           meep │ not installed                                  │                                               │
│           meow │ not installed                                  │                                               │
│            ray │ not installed                                  │                                               │
│            sax │ not installed                                  │                                               │
│         tidy3d │ not installed                                  │                                               │
│          vlsir │ not installed                                  │                                               │
└────────────────┴────────────────────────────────────────────────┴───────────────────────────────────────────────┘

Thank you for reporting this!
See fix here
https://github.com/gdsfactory/gdsfactory/pull/3547
You can use route_ports_to_x or route_ports_to_y as well


Yolox JIT export & YoloXPredictor

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


 [Completed]
[上午10:38:07] Install JDK
[上午10:38:07] Installing AdoptOpenJDK-11-x64...
  Charset: Req=134, Ret=134, Font: Req=宋体, Ret=宋体
MSI (c) (64:A8) [10:38:07:537]: Font created.  Charset: Req=134, Ret=134, Font: Req=宋体, Ret=宋体
MSI (c) (64:E4) [10:38:07:560]: Resetting cached policy values
MSI (c) (64:E4) [10:38:07:560]: Machine policy value 'Debug' is 0
MSI (c) (64:E4) [10:38:07:560]: ******* RunEngine:
******* Product: C:\Users\chen\AppData\Local\Temp\vscode-java-installer\binaries\jdk\11\x64\AdoptOpenJDK-11.msi
******* Action:
******* CommandLine: **********
MSI (c) (64:E4) [10:38:07:561]: Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (64:E4) [10:38:07:561]: Grabbed execution mutex.
MSI (c) (64:E4) [10:38:07:607]: Cloaking enabled.
MSI (c) (64:E4) [10:38:07:607]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (64:E4) [10:38:07:610]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (30:28) [10:38:07:618]: Running installation inside multi-package transaction C:\Users\chen\AppData\Local\Temp\vscode-java-installer\binaries\jdk\11\x64\AdoptOpenJDK-11.msi
MSI (s) (30:28) [10:38:07:618]: Grabbed execution mutex.
MSI (s) (30:30) [10:38:07:621]: Resetting cached policy values
MSI (s) (30:30) [10:38:07:621]: Machine policy value 'Debug' is 0
MSI (s) (30:30) [10:38:07:621]: ******* RunEngine:
******* Product: C:\Users\chen\AppData\Local\Temp\vscode-java-installer\binaries\jdk\11\x64\AdoptOpenJDK-11.msi
******* Action:
******* CommandLine: **********
MSI (s) (30:30) [10:38:07:622]: Note: 1: 2203 2: C:\Users\chen\AppData\Local\Temp\vscode-java-installer\binaries\jdk\11\x64\AdoptOpenJDK-11.msi 3: -2147286960
MSI (s) (30:30) [10:38:07:623]: MainEngineThread is returning 1620
MSI (s) (30:28) [10:38:07:625]: User policy value 'DisableRollback' is 0
MSI (s) (30:28) [10:38:07:625]: Machine policy value 'DisableRollback' is 0
MSI (s) (30:28) [10:38:07:625]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (30:28) [10:38:07:626]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (30:28) [10:38:07:626]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (30:28) [10:38:07:626]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
MSI (c) (64:E4) [10:38:07:627]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.    Can you check the filehash?
Run below command in powershell and share the output here.
Get-FileHash C:\Users\chen\AppData\Local\Temp\vscode-java-installer\binaries\jdk\11\x64\AdoptOpenJDK-11.msi

It should match with https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_windows_hotspot_11.0.11_9.msi.sha256.txt
The workaround is to manually install a JDK 11+ (required by Java Extensions), and re-run our installer.


Rustup to rustc 1.61.0-nightly (d53246fed 2022-03-25)

Thanks!
There's an unexpected failure in the CI.

Is this ready to be merged?

Reverted #139.


Added History, History-i, Clear

Description
Sorry for the late PR, I was out of town.
Fixes #779
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

still waiting :/

Hi history seems to work but and clear clears the history ig in real win11 it clears the terminal if you could implement that.


Linux_android list_text_layout_impeller_perf__e2e_summary is failing

https://ci.chromium.org/p/flutter/builders/prod/Linux_android list_text_layout_impeller_perf__e2e_summary/1728
An engine commit seems to have caused this, it may need to be reverted

I think the failing test is a result of an engine commit that updates clang in the engine - https://github.com/flutter/engine/commit/3711bbaeabb75b69eedd87121b52c80af3ccd8d7
I'm going to contact the Fuchsia toolchain team and see if they know of any recent changes could have caused this, unless there is a better method of solving this issue?

https://github.com/flutter/engine/pull/36763 to ensure that the Clang commit is the issue. This won't fix it long term if an additional clang commit is merged

Waiting for an autoroll commit that is either this (commit)[https://github.com/flutter/engine/commit/c1f7336db76221488221928fa056015d163132bc] or later in order to fix the tree.

https://autoroll.skia.org/r/clang-flutter-engine has been stopped for now. Will be filing a bug

@drewroengoogle's manual engine roll is at https://github.com/flutter/flutter/pull/113463

Test are passing on the clang roll revert.
cc @bdero engine sheriff

Was this issue bisected to the clang roll specifically? Is it possible that this issue happened to be fixed by another commit that was roped in during the roll?
cc @dnfield who might have more context for the unique behavior of this benchmark.

Was this issue bisected to the clang roll specifically? Is it possible that this issue happened to be fixed by another commit that was roped in during the manual engine roll?
cc @dnfield who might have more context for the unique behavior of this benchmark.

In hindsight that's a good point, as the commit that the tree broke included a couple of rolls and a change from Dan, and any of them could be the culprit. Do you think we should try updating clang and see if the benchmark stays green?

It's peculiar that a Clang issue would bubble up into Dart runtime errors. And for just this benchmark.
I'm attempting to repro the benchmark failure locally at the moment to verify whether stopping the Clang roll actually fixes it.

Adding back P0 since this is blocking the autoroller.

@jason-simmons tried the latest clang sdk revision b0bf7ffffc3a2a65a22da4afb13feb855baf2042 and confirmed that the benchmark successfully completed. Unpausing the clang roller.

Had to pause the roller again because the integration label was still on the known broken version.
The integration label has since been updated to a93d03310e2c02fa5e24544df4706650f85788f7, which I successfully tested against the benchmark. So unpausing the clang roller again.

The new version rolled into the framework last night. Looks like we're in the clear now! https://github.com/flutter/flutter/pull/113586


Add flipper example to demonstrate property flickering

This demonstrates a phenomenon that is plaguing us a lot, and one of the things that the proposal in #367 would fix. @korijn @ivoflipse

One can copy-paste this code and run it; I tried to make it somewhat self-explanatory.

You seem to be missing an app.start() at the end

I just played around with it and it becomes very apparent once the Py busyness exceed 0.16 s. As long as we're below that threshold, I can barely click Add item fast enough to cause it to slow down, but once you exceed the threshold, things rapidly go out of sync.
Triggering 8 fast clicks in rapid succession also manages to create a sufficient amount of busyness that it becomes noticeable. Turning on the one-way mode however doesn't seem to solve or avoid this problem.
The batch one-way mode seems to finish processing all the events faster, but it also doesn't feel as responsive, for a few frames nothing happens and then things happen rapidly. In our application, I think users would think the application didn't register their clicks and simply click more often, which is not what we want either
But thanks for the clear example!

Thanks for this proof of concept. I think it's clear how this approach avoids the problematic situation.
Any thoughts on the consequences for objects that cannot easily be sent to JS?

@ivoflipse I think this needs a bit more explanation. The amount of flicker effect depends a lot on the timings. In real apps, like ours, the app will be busy because a change in "items" would spawn many events. I simplified this using a sleep, which may indeed cause large delays in this example, even with one-way mode.
The difference that you should observe in this example, is that without one-way, the number of items (seen from Python) sometimes shrinks before growing again. This causes a lot of extra updates. When this happens on a property that has a lot of downstream events (like in our case), this means the app becoming more busy, and thus again increasing the chance of flicker.

Any thoughts on the consequences for objects that cannot easily be sent to JS?

In the current situation you can also not set a synced property with data that cannot be send to JS (well, you could, but it would cause an error when Flexx tries to sync to JS).
As for serializing special objects (like binary data), which we now send separately, I'm working on that.

Yeah I can confirm that the flickering no longer happens with the one-way communication.
The example just highlighted the problem I've noticed that once you've build up sufficient state, that the flood of events start to overload the system and performance starts to degrade. I don't have a clear idea how we could prevent that problem right now

Closing. We've seen the effect disappear in real use-cases.


Launching server using command dotnet failed

Does this occur consistently? YES
Repro steps:

start wsl ubuntu
type "code ."

Action: bicep.activate
Error type: string
Error Message: Launching server using command dotnet failed.
Version: 0.1.226-alpha
OS: linux
OS Release: <IP_ADDRESS>-microsoft-standard-WSL2
Product: Visual Studio Code
Product Version: 1.61.0
Language: en
2021-10-07T21:29:42.248Z info: Current log level: debug.
2021-10-07T21:29:42.252Z info: Launching Bicep language service...
2021-10-07T21:29:46.249Z debug: Found dotnet command at '/home/chpinoto/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.19/dotnet'.
2021-10-07T21:29:46.251Z debug: Found language server at '/home/chpinoto/.vscode-server/extensions/azure.vscode-bicep-0.1.226-alpha/bicepLanguageServer/Bicep.LangServer.dll'.
2021-10-07T21:29:46.276Z info: Bicep language service started.
[Error - 11:29:46 PM] Starting client failed
Launching server using command dotnet failed.
Error: Launching server using command dotnet failed.

related to https://github.com/Azure/bicep/issues/4760
It looks like there are some updates that you could install in WSL ?
Are you able try try again after:
wsl --update
Checking for updates...
No updates are available.
Kernel version: <IP_ADDRESS>

I tried to repro, however I have a different and likely unrelated error.
wsl --status
Default Distribution: docker-desktop-data
Default Version: 2

Windows Subsystem for Linux was last updated on 10/4/2021
WSL automatic updates are on.

Kernel version: <IP_ADDRESS>

Downloading the .NET Runtime.
Downloading .NET version(s) 5.0.10 ... Error!
Failed to download .NET 5.0.10:
Command failed: "/home/brw/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/brw/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.10" -Version 5.0.10 -Runtime dotnet
/home/brw/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh: 7: Syntax error: newline unexpected

 Error!
.NET Acquisition Failed: Installation failed: Error: Command failed: "/home/brw/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/brw/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.10" -Version 5.0.10 -Runtime dotnet
/home/brw/.vscode-server/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh: 7: Syntax error: newline unexpected

However when I look at that script I am sure it's a PowerShell script not a bash script. which I believe is the root cause of that error.
looking into it, I see there are some download scripts that look something like below, so perhaps the ps1 is being saved to the sh file.
curl https://dot.net/v1/dotnet-install.ps1 --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.ps1"
curl https://dot.net/v1/dotnet-install.sh --retry 2 -o "./vscode-dotnet-runtime-library/install scripts/dotnet-install.sh"

Will have to do some follow up.