Remove Kivy-Garden dependency

On https://github.com/kivy/kivy/issues/5367 I said the following:

The package kivy-garden is pulled in by the kivy package, even though there is no actual dependency of the former on the latter (AFAIU). Kivy-garden then goes and worsens the situation by pulling in requests, which pulls in further packages (urllib3, certifi, idna & chardet). I would suggest to remove the dependency, and let those that want to install kivy-garden just install it themselves. TBH I don't understand the need for kivy-garden in the first place, it would seem to be a half-baked "not invented here" implementation of pip/PyPI but perhaps I'm missing something.

I still stand by those remarks; to make place for a single location for discussion and possible implementation I've now split this out into an issue of itself.

We could also install directly from GitHub with pip, but all garden flowers would have to be converted to proper packages.

@dessant nothing to do here regarding the conversion until https://github.com/pypa/pip/issues/4230 is resolved. :-/
@vanschelven feel free to rewrite it, so that it doesn't depend on so many packages (I also dislike too many deps :) ), otherwise garden is a tool/repo for sharing widgets/behaviors/code-pieces related to Kivy that can make things easier for many users (i.e. DRY). Simply said it's a place for non-core stuff that people felt it'd be nice to give to the community. RecycleView was in there quite recently.
Personally I feel like removing garden would be a kick to the back of the users who contributed to the garden, therefore the only way I see it now is improving the garden (even if it means cutting off the deps and rewriting stuff manually) or converting. Since converting has a hard block, I'm closing this issue. Reopen if the conversion can be brought up.


Deployment Situation

The deployment situation is unacceptable and we need to fix it. @sergeant-savage @Glacier150 @ItsCbass
IDK what this means but I was told by the project lead to open this issue.

 We could set up a CI/CD pipeline which if we go this route, GitHub actions or Jenkins would prob be the best bet. Another idea would just constructing an automated build script that'll run all of the necessary commands without having to do all the goofy stuff.

@ItsCbass Shuttle does provide a customized GitHub action, so I think we can set that to target the main branch and we should be good. I'll try to see if I can set that up tomorrow morning.

Now that I think about it, we can simultaneously use this issue to take care of #22 simultaneously.


Non-null state accepted as final state

The following session specification must not be accepted, as the final state is not a null state. A final state is never executed, so it doesn't make sense to define actions or transitions for it.
package Test is

   type T is mod 2 ** 16;

   type Message is
      message
         F : T;
      end message;

   generic
      Input : Channel with Readable;
      Output : Channel with Writable;
   session Validator with
      Initial => Validate,
      Final => Forward
   is
      Message : Test::Message;
   begin
      state Validate
      is
      begin
         Input'Read (Message);
      transition
         goto Forward
            if Message'Valid
         goto Validate
      end Validate;

      state Forward
      is
      begin
         Output'Write (Message);
      transition
         goto Validate
      end Forward;
   end Validator;

end Test;

This raises the question what we do with sessions that don't end (e.g. a proxy)?

I think we should implement #700 where we decided to remove the need for an explicit definition of a final state.

I forgot about #700 - I agree.


Empty List/ null object always cached

https://github.com/bliblidotcom/command-plugin/blob/4301f5bc6454c55393ca095ad883b4f4134900d9/src/main/java/com/blibli/oss/command/cache/impl/CommandCacheImpl.java#L29

yes, we need to return Command Response class in command, not primitive type, or collection type


https://github.com/snyk/snyk-visual-studio-plugin/issues

we have .net core web api project with project.assets.json file and visual studio 2019, and we have followed all the steps to of adding snyk extension, but whenever we run scan the project files are not detected. can you please help us in this regard.

If Snyk Code shows  no supported code available you could try to check .gitignore and .dcignore file rules. Check if there are any rules that exclude your project's source files. For example, you could try to delete all rules from .dcignore file (just remove content, not file) and try to run a scan again

Thank you as you mentioned I have sent the mail with logs and with more details.

Hello Aleksandr
Thanks for insight, and I have tried removing both  .gitignore and .dcignore file, but still its not processing project files, do i need to set any specific project path ?
Thanks
Rakesh

From: Aleksandr Danchenko @.>
Sent: Thursday, May 26, 2022 1:37 PM
To: snyk/snyk-visual-studio-plugin @.>
Cc: Rakesh Achar @.>; Mention @.>
Subject: Re: [snyk/snyk-visual-studio-plugin] https://github.com/snyk/snyk-visual-studio-plugin/issues (Issue #163)
If Snyk Code shows no supported code available you could try to check .gitignore and .dcignore file rules. Check if there are any rules that exclude your project's source files. For example, you could try to delete all rules from .dcignore file (just remove content, not file) and try to run a scan again
—
Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsnyk%2Fsnyk-visual-studio-plugin%2Fissues%2F163%23issuecomment-1138277790&data=05|01|rakesh.achar%40cision.com|4c12a988ef624263495b08da3eeed250|887bf9ee3c824b88bcb280d5e169b99b|1|0|637891492713427199|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=eZbmWf0AXwGbwc6QJsT0gwg5MVqkGGYabaUpMbglPk0%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXIFMA2AZZU3ERZQKKUJBLTVL4WNHANCNFSM5W72VU2Q&data=05|01|rakesh.achar%40cision.com|4c12a988ef624263495b08da3eeed250|887bf9ee3c824b88bcb280d5e169b99b|1|0|637891492713427199|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=eQvxXt%2B62vfm0wMp84l2iB%2FElvJSYwdgnHt9XAzgCsA%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>

I have reproduced this issue by simply checking out https://github.com/srini0x00/dvta and trying to scan it. This is also reproduced by forking importing it via the Snyk SaaS.

Please let me know if any other resolution i can try

Hi @Rakeshachar 👋
We created fix for this issue #173. I'll let you know when it will be in Marketplace.
Thank you for patience!

Hi @Rakeshachar 👋
We released new version (1.1.20) which should fix this problem. Could you try it, please?
Best regards,
Alex

@aldanchenko , I know I am not the reporter of the bug, but I can confirm that the change worked for me.  I updated, and I can now get results and use the results window on the xcaciv/dtva project. (SaaS is still not working)

Hi @Xcaciv,
Could you share more details about "Code scans do not work despite it being C#"? You have .NET project and Snyk Code scans not working?

@aldanchenko , correct. It can be reproduced with  https://github.com/Xcaciv/dvta . It seemed related to this issue. However, should I open another? Previously it was not finding anything to scan. Now it does SCA, but nothing else across VS, CLI and SaaS.

Thank you @Xcaciv! Yes, lets open another issue for it.


Log ElasticSearch calls

Is your feature request related to a problem? Please describe.
If there are issues during ElasticSearch calls, we currently do not see any logs.
Describe the solution you'd like
Let's add logging in the backoff https://github.com/open-metadata/OpenMetadata/blob/main/catalog-rest-service/src/main/java/org/openmetadata/catalog/events/AbstractEventPublisher.java#L56 for any exceptions that we may encounter
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi! I'd like to tackle this issue.

Hi, @deweybat 🚀  Amazing, assigned it to you! Thanks a lot, let us know if you need any help

Fixed by https://github.com/open-metadata/OpenMetadata/pull/2737


200102-PLNN has errors in its surface boundary

and cannot create a model. Moved to problem surfaces.

solved


example ruby on rails backend

Thanks for the help! Unfortunately, I don't have much time on my hands at the moment to test it. Hopefully I'll get around to it soon.

@robj Could you maybe explain the steps to get the rails backend to work here? And, if possible, the order of steps or the workflow?
@gabipurcaru Is this still on the cards for merging?


Error in Zep Chat Memory "ImportError: Could not import zep-python package. Please install it with pip install zep-python."

Bug Description
I encountered an issue while trying to use the Zep Chat Memory component. I'm receiving the error message: "ImportError: Could not import zep-python package. Please install it with pip install zep-python." However, this error stems from an exception in the code, and the underlying issue is a ModuleNotFoundError: No module named 'zep_python.zep_client' at the line import zep_python.zep_client.
I've attempted to resolve the problem but haven't been successful. There is an ongoing discussion about this issue on Discord, which you can find at https://discord.com/channels/1116803230643527710/1296801843032363129. Additionally, providing clearer information (info parameter) about the inputs would be helpful, as Zep uses a specific key format.
Reproduction

Add the Zep Chat Memory component to your Flow
Get your credentials at https://app.getzep.com/
Try to run the Component

Expected behavior
It is expected the component builds sucessfully.
Who can help?
No response
Operating System
MacOS Sonoma 14.4
Langflow Version
1.0.19 and 1.0.18
Python Version
3.12
Screenshot

Flow File
No response

I've had the same issue, installing both the newer package zep-cloud and the older zep-python didn't work. I'm using langflow 1.1.
An additional question to @joaoguilhermeS: It seems the Discord link is broken, could you fix it for me? I'd like to follow the discussion in the community's Discord as well.

@gruberdev
Discord:
http://discord.gg/EqksyE2EX9

I've just faced the same issue, I've tried to pip install the package manually but still the same result. Anyone knows how to fix it ?


Improve editing experience for flatpages and blog posts

These tasks are all for improving the admin experience of writing and reviewing pages/posts. This all assumes that #248 is accepted and merged, though that's not the case yet as I write this.

[ ] Use the markdownx widget for writing blog posts in the admin. Currently we only use this widget for flatpages. markdownx gives a live preview and simpler image uploading. With markdownx, image drag and drop into the Markdown editor takes care of everything. With andablog (which blog posts currently use), you use an image upload widget, get an image-embed code back, and then copy the embed code into the editor yourself. These should be the steps to switch to markdownx:

Edit blog/admin.py to use the markdownx widget, similar to flatpages_custom/admin.py.

Remove the andablog image upload widget, since it's redundant.

Update our how-to-use-the-blog docs (currently here).

Clean up existing images on the production server:

Move existing blog post images from <MEDIA_ROOT>/andablog to MEDIA_ROOT>/article_images. Update the posts' image links accordingly.

Delete the andablog image model instances since they're not needed.

[ ] Make a version-diff viewer for flatpages, similar to Wikipedia. There might be a Django app for this, so look around before rolling our own.

History tracking and diff viewing could also be useful for blog posts, and maybe won't be hard to implement once we know how to do it for flatpages.

[ ] On the admin site, fix 'view on site' links for flatpages and blog posts. The blog post ones, for example, get NoReverseMatch errors.

This should be done by defining get_absolute_url() appropriately for each model: https://docs.djangoproject.com/en/dev/ref/models/instances/#get-absolute-url

[ ] Convert the About page to a flatpage? It seems like if the Help pages are flatpages, then About should be one too.

About would have a named URL like pages:about, similar to Help which has pages:help.

A bit of extra work may be needed to get the animated-anchor Javascript working.

Maybe the markdown_to_html template tag could detect any links which are anchors to the current page, and add the appropriate classes or attributes to those links.

Meanwhile, we could move the animated-anchor Javascript to util.js, which is already included in every page. This could allow us to reuse the animated-anchor code in other flatpages (or blog posts) as well.

Brought up for the 1.0 rollout blog posts: support for multiple authors on a blog post. Probably the most flexible way is a new string field on Blog Entries which, if provided for a particular post, can override the regular author field (which takes first/last name from a user profile).
I'll add another checkbox to this issue's top post for this.


optimize slow tests

- What I did
Optimize 2 slow tests.
Before:
PASS: docker_cli_run_test.go:2751: DockerSuite.TestRunContainerWithReadonlyRootfs 16.561s
PASS: docker_cli_run_unix_test.go:910: DockerSuite.TestRunApparmorProcDirectory 19.075s

After:
PASS: docker_cli_run_test.go:2751: DockerSuite.TestRunContainerWithReadonlyRootfs	2.261s
PASS: docker_cli_run_unix_test.go:910: DockerSuite.TestRunApparmorProcDirectory	2.250s

- How I did it

Merge multiple docker run command into one for TestRunContainerWithReadonlyRootfs
Change the image from debian:jessie to busybox for TestRunApparmorProcDirectory

- How to verify it
make test-integration-cli
- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Shijiang Wei<EMAIL_ADDRESS>

I'm wondering whether this invalidates the test (since the old code was trying to make sure that all of them fail, but the current code only makes sure that at least one of them fails). For example, what happens if we have a regression with /sys becoming rw even with --read-only?
Maybe if you made it a for loop in the shell script then you could check the output for each file -- that should increase the speed without removing the validity of the test. Something like:
docker run --read-only sh -c 'for i in <list of files> { touch $i; echo "$? $i"; }'

Or similar (you could even use the error output from touch.
:+1: on switching from debian:jessie to busybox. Maybe we should look through the tests for more occurrences of that.

I'm wondering whether this invalidates the test (since the old code was trying to make sure that all of them fail, but the current code only makes sure that at least one of them fails). For example, what happens if we have a regression with /sys becoming rw even with --read-only?

Oh it's really a problem.
Thanks for pointing out this @cyphar :+1:
I'll update the code accordingly.

LGTM

LGTM


Touch of Fatigue issues

Reported by a user on the RPGCodex:
Touch of fatigue doesn't allow a saving throw as it should, only an attack roll. It also allows the caster to move, attack, and move again without feats.
I have this vague recollection I already reported this, but I can't find it. Maybe it was something else.

Should have time to look into this one sometime this week.

Where is that spell from? The writeups I can find online don't have a saving throw, but they're all pathfinder.

https://www.d20srd.org/srd/spells/touchOfFatigue.htm

Oh, duh, okay. :)


Request/Help classList regex

For some reason this regex doesn't work on classList property.
{
  "tailwindCSS.experimental.classRegex": [
    "classList={{([^}]+)}}"
  ]
}

<button
  class="p-2 border border-gray-200 rounded-md"
  classList={{ 'p-4': isDark() }}
>
  Lesson
</button>

Then I had a thought that you can't intellisense object string keys, but you can using the class comment hack. So it is possible to intellisense object string keys.
```js
<button
  class="p-2 border border-gray-200 rounded-md"
  // class="
  classList={{ 'p-4': isDark() }}
  //"
>
  Lesson
</button>

But on paper the regex should work as it does here https://regex101.com/r/5I3Fsb/1

Hello, I may found a solution, you can try this regex, it works for me :)
{
  "tailwindCSS.experimental.classRegex": [
    ["classList={{([^;]*)}}", "\\s*?[\"'`]([^\"'`]*).*?:"]
  ]
}

Hope it helps ;)
@paolotiu You may add it to the list of the readme :)

Thanks for this @carere! I'll verify then add it to the README.

@paolotiu  Hello, i was wrong in my previous regex, the good one is this one:
{
  "tailwindCSS.experimental.classRegex": [
    ["classList={{([^;]*)}}", "\\s*?[\"'`]([^\"'`]*).:"]
  ],
}

You can test it here

Added it! Thank you so much @carere  and @aquaductape <3


[Controller Dashboard] BDC section stuck in Loading... state without escape

I downloaded latest Insiders on 10/23.
I previously had an entry to a controller endpoint displayed in BDC section that had the cluster taken down. When I updated to latest insiders, the BDC section was stuck in a Loading... state.
There doesn't appear to be a way for me to escape loading. If I find more info, will include.

@yualan - Does this persist after a restart of ADS? Are there any errors in the dev debug console?

Closing until we can find repro


Run all integrations tests internally with “go test". Fixes #158

This change is

Reviewed 8 of 10 files at r1.
Review status: 8 of 10 files reviewed at latest revision, 2 unresolved discussions, some commit checks broke.

main_test.go, line 126 at r1 (raw file):

				"--", "some", "args",
			)
			cmd.Stdin = strings.NewReader(strings.Repeat("7", 1000))

This does not need to be repeated.

program/program.go, line 73 at r1 (raw file):

	GlobalVariables map[string]string

	OutputAsTest bool

Add docs

Comments from Reviewable

Reviewed 2 of 10 files at r1, 2 of 2 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

Comments from Reviewable

Reviewed 3 of 3 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable


Tooltips cut off on bottom of view

When clicking a tooltip for something near the bottom of the timeline, it currently cuts off at the bottom of the entire view

There used to be 100px of padding after the last row but I removed it because it looked pretty bad when you had other elements around the timeline. My plan was to make the tooltip fit within the view dynamically or provide the option to use an external object (re: ExtJS popup).


Autophagy and cellular components

This is a placeholder ticket to check relationships between autophagy cellular components and autophagy processes. The Atg1/Ulk1 complex already has a 'capable of part of' autophagosome assembly, but it would be nice to create participant relations for the others.
autophagosome capable_of_part_of macroautophagy exists
autolysosome
amphisome
pre-autophagosomal strucutre
omegasome
Atg12-Atg5-Atg16 complex
and respective parts where appropriate.
@paolaroncaglia @RLovering @Pauldenny @marcfeuermann

autolysosome capable_of_part_of macroautophagy existed
amphisome capable_of_part_of macroautophagy existed
pre-autophagosomal structure capable_of_part_of autophagosome assembly existed
omegasome capable_of_part_of autophagosome assembly added
Atg12-Atg5-Atg16 complex capable_of_part_of autophagosome assembly added
Atg12-Atg5-Atg16 complex capable_of ATG8 ligase activity added
def: "A protein complex required for the expansion of the autophagosomal membrane. In budding yeast, this complex consists of Atg12p, Atg5p and Atg16p." [GOC:rb, PMID:17986448]
is_a: GO:0043234 ! protein complex
is_a: GO:0044444 ! cytoplasmic part
+relationship: capable_of GO:0019776 ! Atg8 ligase activity
+relationship: capable_of_part_of GO:0000045 ! autophagosome assembly
[Term]
id: GO:0034275
@@ -580785,6 +580787,7 @@
namespace: cellular_component
def: "Omega-shaped (as in the Greek capital letter) intracellular membrane-bounded organelle enriched in phosphatidylinositol 3-phosphate and dynamically connected to the endoplasmic reticulum. Omegasomes are the first step of the formation of autophagosomes via the pre-autophagosomal structures." [GOC:autophagy, GOC:mf, PMID:18725538, PMID:24591649]
is_a: GO:0043231 ! intracellular membrane-bounded organelle
+relationship: capable_of_part_of GO:0000045 ! autophagosome assembly
relationship: part_of GO:0012505 ! endomembrane system
created_by: pr
creation_date: 2014-08-19T12:26:40Z


ARROW-627: [C++] Add compatibility macros for exported extern templates

This should also reduce compiler warnings on MSVC

This is really weird, Chromium did something similar: https://chromium.googlesource.com/chromium/blink/+/e36bf31fde4c61a79019894eeaa2cfce9ce4014d^!/

I know way more about symbol visibility across platforms than I ever expected

See also: https://chromium.googlesource.com/experimental/chromium/blink/+/master/Source/core/CoreExport.h

@MaxRis does this look OK to you?

+1, merging this


[Suggestion] Realtime Bomb Status

To check if the bomb "Can Defuse" or "Cannot Defuse" you need to go to the bomb first. So instead of that maybe change the bomb status to realtime ?
So you don't need to go to the bomb when it cannot defuse

LMAO

LMAO

wdym

5 secs with defuse kit,
10 without
i dont think you need anything else really....

Lol nice info)))

You know there is a bomb timer feature right? Which shows exactly the thing you are suggesting for.


Hockey upload fails to find dSYM.zip file if there is a space in the filename

I have a generated dSYM zip file called
./MyAppName Beta.app.dSYM.zip

(note the space in the name)
However, during Hockey upload I get this error:
Symbols not found on path /Users/eric/my-apps-directory/MyAppNameBeta.app.dSYM.zip. Crashes won't be symbolicated properly

(note the lack of a space in the error's description of the filename)
The .dSYM.zip gets generated just fine. I checked the datestamp, unzipped the archive, etc. It just has a space in the name, so the Hockey upload of the dSYM fails.

Looking into the code, it might be that it's inferring the .dSYM.zip filename based on the IPA name passed in, but not using the same IPA name to infer the .dSYM.zip filename. I am specifying an IPA name with no spaces by passing --ipa "MyAppNameSansSpaces.ipa" but the generated dSYM.zip is called "My App Name With Spaces.dSYM.zip"

This might actually be a fastlane issue. If fastlane sends the correct options[:dsym_filename] it ought to work. Tracking the issue in https://github.com/KrauseFx/fastlane/issues/41

Looks like KrauseFx/fastlane#41 has been resolved. Please reopen if you are still experiencing issues.


Proposal: Add an asynchronous overload of the DispatcherQueue.TryEnqueue method

The threading functionality migration docs says that the CoreDispatcher.RunAsync method migrates to DispatcherQueue.TryEnqueue.
However, the latter simply returns a bool and cannot be awaited asynchronously:
bool isQueued = this.DispatcherQueue.TryEnqueue(
    Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal,
    () => StatusBlock.Text = strMessage);
// the text has NOT necessarily been updated here...

Compare this to the UWP API that indeeds returns a Task in .NET:
await this.Dispatcher.RunAsync(
      Windows.UI.Core.CoreDispatcherPriority.Normal,
      () => StatusBlock.Text = strMessage);
// the text should has been updated here...

It would be desirable to be able to asynchronously wait for the delegate to be executed on the dispatcher thread in WinUI, i.e. something like this:
await this.DispatcherQueue.TryEnqueue(
         Microsoft.UI.Dispatching.DispatcherQueuePriority.Normal,
         () => StatusBlock.Text = strMessage);

Note: In UWP, the method returns control to the caller immediately despite returning a Task: https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.coredispatcher.runasync?view=winrt-22000

Ok, it seems like you can already do this using the DispatcherQueueExtensions in the CommunityToolkit.WinUI NuGet package:
int someValue = await dispatcherQueue.EnqueueAsync(async () =>
{
    //do something...
    return 1;
});


UI does not communicate errors to user from REST API

@aphelionz @Maurier @dtarb There is a systematic problem in the file drag-and-drop interface, that errors that are sent back from the REST API are not ever shown to the user. This is problematic, because these messages contain details on how to solve the problem.
As well, there is a need to display messages that are informational and not errors. The most prevalent example of this is when the back-end makes a resource private as a result of deleting the last file. I would appreciate a standardized approach to this to which we could conform in the REST API.

closing per backlog review meeting on 6/9/22. can address wording in specific error messages individually.


⚠ Bofrost.at has degraded performance

In a4b6f0e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1808 ms

Resolved: Bofrost.at performance has improved in 064c719.


fixes nginx conf for access to d8 update.php

The Problem/Issue/Bug:
@tannerjfco 's PR from https://github.com/drud/docker.nginx-php-fpm-local/pull/72, referenced in https://github.com/drud/ddev/issues/830 and https://github.com/drud/ddev/issues/851
Pushed in drud/nginx-php-fpm-local:20180514_fix_d8_updatephp
How this PR Solves The Problem:
Manual Testing Instructions:
Automated Testing Overview:

Related Issue Link(s):
Release/Deployment notes:

Closed in favor of combined PR #838


added config files

just to have the initial files for the first tests.

It is okay, but as I said, there is also a test folder, which should be deleted then


⬆<EMAIL_ADDRESS>

Updates language-java to bring the following community contributions:

Provide additional stop conditions for 'anonymous-classes-and-new' pattern (#214) atom/language-java@f8b9d681eb6a86be15082d68dccbcd218c7a5c46
Relax the too restrictive begin expression for catch block (#217) atom/language-java@b8ace407a8a65b61fe9f3a3ac7fe5ef4d67cac25
More robust enum field's pattern logic (#212) atom/language-java@47ddbb650f00b80dbf54205a2d27ad2dd7ec9678
Comments should not end 'keyword.control.new.java' (#210) atom/language-java@ad1456d9aeb4f96ec2c32fb60b323231faa145a1
Parse class identifier containing a dollar char (#208) atom/language-java@6924e64a6959f596904a8021c05deb2592958eab
Fix Javadoc @link tag highlighting broken issue (#206) atom/language-java@123beb50115b0bfb0db8f2325df6d05fb8a016a8
Fixes order of storage modifiers, so @interface is scoped properly inside a class (#204) atom/language-java@ed8ad7451b4d0454374885a102dbe63befdea509
Update regex for anonymous-classes-and-new end (#201) atom/language-java@759a0ac02dc091018a112b25a5a6d894918a0aa8
Fix underscore in class names (#200) atom/language-java@17b28d273dcaa9af7ea1facef7ea399d3641f668

@Ben3eeE @50Wliu can you review this pull request? Thanks!


Too many requests?

I am trying to save documents from Spark in a monthly index using:
.saveToEs("{index:yyyy-MM}/myDoc")

But unfortunately I always get the following error:
Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1.0 failed 1 times, most recent failure: Lost task 0.0 in stage 1.0 (TID 1, localhost): org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: Found unrecoverable error [Too Many Requests(429)
- [rejected execution of org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase$1@15d274d6
    on EsThreadPoolExecutor[bulk, queue capacity = 50, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@3acacba8[
    Running, pool size = 8, active threads = 8, queued tasks = 50, completed tasks = 3955]]]];
Bailing out..

If I use the same index all the time then it works fine.
What would be the correct way of doing this?

Can you provide some info regarding your environment - what version of ES and ES-Hadoop are you using?
Also how many indices are created? Does the exception appear right away or after some time?

After some time.
I figured it out that if I increase the queue capacity (say, to 1000) the exception disappears, so I'll close this issue.
But it is really strange that it only happened when using partitioned indices.


Introduce a rich traceback helper

This PR introduces a new context manager for the Accelerator, with_clean_traceback() that utilizes the rich project to report a clean traceback if the user desires. It takes the very messy traceback and cleans up parts* of them
*more details below
TODO: Documentation/tutorial
How to use:
The api is straightforward enough, after making your accelerator run under the context manager:
def main():
    with Accelerator().with_clean_traceback():
      do_my_thing()

if __name__ == "__main__":
    main()

Example Tracebacks
Here are a few example tracebacks and what happened when.
An exception from inside the script
In this example an exception was raised inside the nlp_example.py script:

This is the entire trace, before only has what was reported to the logs. It's much cleaner and since it was an error inside here, the user does not need to know all the cuda bits
A CUDA-specific exception
This example is the typical assert error that we get when using a label that doesn't line up with the right values (such as a label of 2 when doing binary classification)
This is where the * comes in, as the code traceback successfully shows what went wrong, but the CUDA report is still shown as well for debugging purposes. (Long traceback below with an image of the rich traceback smacked inbetween for sanity sake)
../aten/src/ATen/native/cuda/Loss.cu:271: nll_loss_forward_reduce_cuda_kernel_2d: block: [0,0,0], thread: [0,0,0] Assertion `t >= 0 && t < n_classes` failed.
../aten/src/ATen/native/cuda/Loss.cu:271: nll_loss_forward_reduce_cuda_kernel_2d: block: [0,0,0], thread: [0,0,0] Assertion `t >= 0 && t < n_classes` failed.
[W CUDAGuardImpl.h:113] Warning: CUDA warning: device-side assert triggered (function destroyEvent)
terminate called after throwing an instance of 'c10::CUDAError'
  what():  CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Exception raised from create_event_internal at ../c10/cuda/CUDACachingAllocator.cpp:1387 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x3e (0x7f21ccfe61ee in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0x23a21 (0x7f21f5686a21 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #2: c10::cuda::CUDACachingAllocator::raw_delete(void*) + 0x257 (0x7f21f568b977 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #3: <unknown function> + 0x478dd8 (0x7f221ebf5dd8 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #4: c10::TensorImpl::release_resources() + 0x175 (0x7f21ccfcd7a5 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #5: <unknown function> + 0x1735185 (0x7f21f6e86185 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #6: c10d::Reducer::~Reducer() + 0x1ef (0x7f21f9ea7aef in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #7: std::_Sp_counted_ptr<c10d::Reducer*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() + 0x12 (0x7f221f1b24d2 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #8: <unknown function> + 0xa374b0 (0x7f221f1b44b0 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #9: <unknown function> + 0x37a13f (0x7f221eaf713f in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #10: <unknown function> + 0x37b05f (0x7f221eaf805f in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #11: <unknown function> + 0xdc31b (0x557671b6f31b in /opt/conda/bin/python3.7)
frame #12: <unknown function> + 0xf47e7 (0x557671b877e7 in /opt/conda/bin/python3.7)
frame #13: <unknown function> + 0x1d290e (0x557671c6590e in /opt/conda/bin/python3.7)
frame #14: PyGC_Collect + 0x49 (0x557671c65999 in /opt/conda/bin/python3.7)
frame #15: Py_FinalizeEx + 0x62 (0x557671cb81a2 in /opt/conda/bin/python3.7)
frame #16: <unknown function> + 0x24880b (0x557671cdb80b in /opt/conda/bin/python3.7)
frame #17: _Py_UnixMain + 0x3c (0x557671cdbb8c in /opt/conda/bin/python3.7)
frame #18: __libc_start_main + 0xea (0x7f223a1cbd0a in /lib/x86_64-linux-gnu/libc.so.6)
frame #19: <unknown function> + 0x1be51d (0x557671c5151d in /opt/conda/bin/python3.7)

CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
[W CUDAGuardImpl.h:113] Warning: CUDA warning: device-side assert triggered (function destroyEvent)
terminate called after throwing an instance of 'c10::CUDAError'
  what():  CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Exception raised from create_event_internal at ../c10/cuda/CUDACachingAllocator.cpp:1387 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x3e (0x7f4e94d151ee in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0x23a21 (0x7f4ebd3b5a21 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #2: c10::cuda::CUDACachingAllocator::raw_delete(void*) + 0x257 (0x7f4ebd3ba977 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #3: <unknown function> + 0x478dd8 (0x7f4ee6924dd8 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #4: c10::TensorImpl::release_resources() + 0x175 (0x7f4e94cfc7a5 in /opt/conda/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #5: <unknown function> + 0x1735185 (0x7f4ebebb5185 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #6: c10d::Reducer::~Reducer() + 0x1ef (0x7f4ec1bd6aef in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_cpu.so)
frame #7: std::_Sp_counted_ptr<c10d::Reducer*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() + 0x12 (0x7f4ee6ee14d2 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #8: <unknown function> + 0xa374b0 (0x7f4ee6ee34b0 in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #9: <unknown function> + 0x37a13f (0x7f4ee682613f in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #10: <unknown function> + 0x37b05f (0x7f4ee682705f in /opt/conda/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #11: <unknown function> + 0xdbe7c (0x5642f4b1ae7c in /opt/conda/bin/python3.7)
frame #12: <unknown function> + 0x179951 (0x5642f4bb8951 in /opt/conda/bin/python3.7)
frame #13: <unknown function> + 0xdbbff (0x5642f4b1abff in /opt/conda/bin/python3.7)
frame #14: <unknown function> + 0xda350 (0x5642f4b19350 in /opt/conda/bin/python3.7)
frame #15: <unknown function> + 0xdabb8 (0x5642f4b19bb8 in /opt/conda/bin/python3.7)
frame #16: <unknown function> + 0xdabce (0x5642f4b19bce in /opt/conda/bin/python3.7)
frame #17: _PyEval_EvalFrameDefault + 0x661a (0x5642f4bf23ca in /opt/conda/bin/python3.7)
frame #18: _PyFunction_FastCallKeywords + 0x184 (0x5642f4b771d4 in /opt/conda/bin/python3.7)
frame #19: <unknown function> + 0x13b0d8 (0x5642f4b7a0d8 in /opt/conda/bin/python3.7)
frame #20: _PyEval_EvalFrameDefault + 0xaab (0x5642f4bec85b in /opt/conda/bin/python3.7)
frame #21: _PyEval_EvalCodeWithName + 0x242 (0x5642f4b30ea2 in /opt/conda/bin/python3.7)
frame #22: PyEval_EvalCodeEx + 0x39 (0x5642f4b320b9 in /opt/conda/bin/python3.7)
frame #23: PyEval_EvalCode + 0x1b (0x5642f4c1115b in /opt/conda/bin/python3.7)
frame #24: <unknown function> + 0x23dd53 (0x5642f4c7cd53 in /opt/conda/bin/python3.7)
frame #25: PyRun_FileExFlags + 0x97 (0x5642f4c87307 in /opt/conda/bin/python3.7)
frame #26: PyRun_SimpleFileExFlags + 0x19c (0x5642f4c874dc in /opt/conda/bin/python3.7)
frame #27: <unknown function> + 0x248a39 (0x5642f4c87a39 in /opt/conda/bin/python3.7)
frame #28: _Py_UnixMain + 0x3c (0x5642f4c87b8c in /opt/conda/bin/python3.7)
frame #29: __libc_start_main + 0xea (0x7f4f01efad0a in /lib/x86_64-linux-gnu/libc.so.6)
frame #30: <unknown function> + 0x1be51d (0x5642f4bfd51d in /opt/conda/bin/python3.7)

ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -6) local_rank: 0 (pid: 40380) of binary: /opt/conda/bin/python3.7
Traceback (most recent call last):
  File "/opt/conda/bin/torchrun", line 8, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 345, in wrapper
    return f(*args, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/run.py", line 761, in main
    run(args)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/run.py", line 755, in run
    )(*cmd_args)
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 131, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launcher/api.py", line 247, in launch_agent
    failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
======================================================
examples/nlp_example.py FAILED
------------------------------------------------------
Failures:
[1]:
  time      : 2022-08-08_19:58:40
  host      : zach-multi-gpu.c.huggingface-ml.internal
  rank      : 1 (local_rank: 1)
  exitcode  : -6 (pid: 40381)
  error_file: <N/A>
  traceback : Signal 6 (SIGABRT) received by PID 40381
------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2022-08-08_19:58:40
  host      : zach-multi-gpu.c.huggingface-ml.internal
  rank      : 0 (local_rank: 0)
  exitcode  : -6 (pid: 40380)
  error_file: <N/A>
  traceback : Signal 6 (SIGABRT) received by PID 40380
======================================================
Traceback (most recent call last):
  File "/opt/conda/bin/accelerate", line 33, in <module>
    sys.exit(load_entry_point('accelerate', 'console_scripts', 'accelerate')())
  File "/home/zach_mueller_huggingface_co/accelerate/src/accelerate/commands/accelerate_cli.py", line 43, in main
    args.func(args)
  File "/home/zach_mueller_huggingface_co/accelerate/src/accelerate/commands/launch.py", line 831, in launch_command
    multi_gpu_launcher(args)
  File "/home/zach_mueller_huggingface_co/accelerate/src/accelerate/commands/launch.py", line 450, in multi_gpu_launcher
    raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['torchrun', '--nproc_per_node', '2', 'examples/nlp_example.py']' returned non-zero exit status 1.

CUDA-specific errors like this I don't think we can clean up past this point, since that boils down into how torch.distributed.launch does things, but it helps clean up some bits!

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

Nice utility! LGTM 🤗, I think Sylvain's suggestion would be a really good way to use this feature. Also, I think this won't result in rich traceback if the issue was in creating Accelerate object itself, right? if so, should that be mentioned as part of documentation?

In Multi GPU launcher, if one isn't using --debug then they won't see any error stack trace at all (might be hard to read but important for root cause and resolution). This makes --debug sort of mandatory instead of optional. Can the user have normal error traceback in --debug isn't given? Please let me know if I am missing something or way off.


Trigger event source from UI

I'd like to be able to click on an event source and trigger it manually.

@alexec This feature will applicable only webhook and Calendar event sources.  Do we need this feature?

I think we should get evidence for the need for this feature. Maybe ask in #argo-events?

We use webhooks only. I'm not sure how we would benefit from it. Hitting Eventsource API externally with JSON payload or trigger from UI does not give us any added value. Speaking for ourselves :-)

We use webhooks only. I'm not sure how we would benefit from it. Hitting Eventsource API externally with JSON payload or trigger from UI does not give us any added value. Speaking for ourselves :-)


notification button topics get reset on menu change

notification button topics get reset on menu change. Update for loop or add ignore flag

solved in #3


npm run pr-checks should be run when I push a commit

make some sort of git hook

@MandyMeindersma can you assign this to me, I'd like to explore setting this up at a github action

Actually no need to github actions, I realised we were already checking the linting and tests on netlify as part of the build process, so I can add the formatter there as well easily. #266 does that

Sorry for hijacking 😅 just noticed the simple fix so wend ahead.

oh but I was thinking it's probably helpful to do it as a pre push git hook. I still might do that? keeps the pr's cleaner?

oh but I was thinking it's probably helpful to do it as a pre push git hook. I still might do that? keeps the pr's cleaner?

Yeah that's an option. I'd be a little concerned about first time contributors not knowing how the git hooks / formatter works and not being able to get support. With an open PR it would be easier for someone to coach them through that
I would probably also only run the format check on pre push, I think it's a valid workflow to push up some code with lint / test errors with the intention of collaborating or coming back to fix.

Maybe add a note in the readme or contributing guidelines about --no-verify?
Would that be a happy compromise? hahah

Yup for sure. 😀

ah okay based on the last pr I helped with, you're right. Having them done in the pr is better


backtest issues

algo.py:158 uses self.output instead of self.record_output
algo.py:175.  blotter.drip() does not support quote_handler as parameter.

Thanks for letting me know! Fixed in version 1.4.93a


Windows error: qrscan: Could not get device property Devices: Not Found

I am using the prebuilt binaries in the releases page in Windows, and I get this error when I try to run the qrscan command:
error: qrscan: Could not get device property Devices: Not Found

Hi, I have only tested it on Linux. Thanks for reporting. I'll probably need to redirect the issue to https://github.com/l1npengtul/nokhwa. Could you please provide more info such as your hardware (about info) and windows version?

What info do you exactly need? I am running Windows 11:

Can you test it yourself on Windows and see what doesn't work?

Currently, I only have a Linux machine, I left my Mac back at home. So, can't test on Windows and Mac. VM is probably not the way to test hardware stuff. Created issue here: https://github.com/l1npengtul/nokhwa/issues/53

Could you please provide the model of the webcam?

I have 3 DirectShow webcams: GoPro Webcam, OBS Virtual Camera, and NVIDIA Broadcast. And I have the ManyCam Virtual Webcam for use in UWP applications.
In a similar case, I have tried zbar from MSYS2, and the ManyCam Virtual Webcam worked.


Simplyfier\Http: Use Response::set instead of setting the $_SESSION variable directly

See: https://github.com/simplyfier/http/blob/master/Response.php#L89

Hey guy, are you working in this yet?

Hey guy, are you working in this yet?


how to compile

HI dear author,
It's truly a honor to write a letter to you,  I'm building your project nowadays and found the error when building as following, I wonder if there is a chance that you know the reason? :)

thank you
best regards to you
William

Hi @WilliamWangPeng, thanks for your interest. Unfortunately, shecc is not a general C compiler, that implies being unable to compile arbitrary C programs. Only a few C programs are known to work with shecc.


[API] Short names

Description
This ps uniforms how the APIs are defined and adds short names

/merge


Add ns-viewer command to run viewer only with model in eval mode

This PR adds a command to start the viewer with the model in eval mode.
It is intended as an easier alternative to "ns-train --viewer.start-train=False"

(ns-viewer -- or should it be ns-view ?)

(ns-viewer -- or should it be ns-view ?)

Or ns-start-viewer?

I also updated the docs.


ChatMessage

Hi!
First of all i'm using below as dependencies
dependencies {
compile 'com.github.timigod:android-chat-ui:v0.1.3'
}
but I can't see
public ChatMessage(String message, long timestamp, Type type, String sender) {
this(message, timestamp, type);
this.sender = sender;
}
why?

Hi,
The changes that include this constructor have unfortunately not been tagged as a release.
That'll be happening soon.
So sorry for the wait.


chore: bdd-spring-1590488887 to 0.0.1

chore: Promote bdd-spring-1590488887 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


License scan failure due to timeout of .il files

There have been several instances of the license scan pipeline failing due to a timeout while scanning .il files in the runtime repo.
From the log:
"errors": [
  "Path: runtime/src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTest/GenericContextTest.il",
  "Path: runtime/src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTestDefaultImp/GenericContextTestDefaultImp.il",
  "Path: runtime/src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTestDICallDI/GenericContextTestDICallDI.il"
]

    {
      "path": "src/tests/Loader/classloader/StaticVirtualMethods/GenericContext/GenericContextTest/GenericContextTest.il",
      "type": "file",
      "detected_license_expression": null,
      "detected_license_expression_spdx": null,
      "license_detections": [],
      "license_clues": [],
      "percentage_of_license_text": 0,
      "scan_errors": [
        "ERROR: for scanner: licenses:\nERROR: Processing interrupted: timeout after 240 seconds."
      ]
    }

The file content hasn't changed to cause this increased occurrence. It could just be due to increased load on the machine.

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."


App crashes after FirebaseAuth auth = FirebaseAuth.DefaultInstance

I use FireBase authentication with a simple function that signs up a new user, it works great on the Unity Editor, but when I build it on my Android, it crashes the second it starts FirebaseAuth auth = FirebaseAuth.DefaultInstance
This is the error I get before it crashes-

Java class com/google/firebase/auth/FirebaseAuthWebException not found. Please verify the AAR which contains the com/google/firebase/auth/FirebaseAuthWebException class is included in your app.

Why do I even get the Firebase-AuthWeb-Exception ?
Why can't it find that exception? (I tried to resolve jar files, and to re-import auth SDK but it didn't solve the issue
My app is simple- there's a SignUp button that calls this function-
`public void SignUp()
{
FirebaseAuth auth = FirebaseAuth.DefaultInstance;  //The error is after this line
}`

The FirebaseAuthWebException error message is non-fatal and unfortunately expected behavior see  https://github.com/firebase/quickstart-unity/issues/224#issuecomment-432287386 .
Could you post the stack trace from the crash?
Are you sure you've run the Android Resolver to install the Android libraries required?

Not sure how to get the stack trace, I'll check it up.
Yes- I tried Android resolver- Force resolve

Since you're targeting Android we'll need adb logcat output to see what's going on.
https://developer.android.com/studio/command-line/logcat
https://developer.android.com/studio/debug/am-logcat

I copied my error from the adb logcat output, it doesn't tell much-
10-23 14:03:17.169  9554  9606 I Unity   :
10-23 14:03:17.169  9554  9606 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-23 14:03:17.169  9554  9606 I Unity   :
10-23 14:03:17.429  9554  9606 I Unity   : Firebase App initializing app com.game.gamey (default 1).
10-23 14:03:17.429  9554  9606 I Unity   :
10-23 14:03:17.429  9554  9606 I Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-23 14:03:17.429  9554  9606 I Unity   :
10-23 14:03:17.479  9554  9606 E Unity   : Java class com/google/firebase/auth/FirebaseAuthWebException not found.  Please verify the AAR which contains the com/google/firebase/auth/FirebaseAuthWebException class is included in your app.
10-23 14:03:17.479  9554  9606 E Unity   :
10-23 14:03:17.479  9554  9606 E Unity   : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
10-23 14:03:17.479  9554  9606 E Unity   :
10-23 14:06:42.029 12955 13007 E Unity   : [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
10-23 14:06:42.029 12955 13007 E Unity   :
10-23 14:06:42.029 12955 13007 E Unity   : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 149)
10-23 14:06:42.029 12955 13007 E Unity   :
10-23 14:06:42.029 12955 13007 I Unity   : Skipped rendering frame because GfxDevice is in invalid state (device lost)
10-23 14:06:42.029 12955 13007 I Unity   :
10-23 14:06:42.029 12955 13007 I Unity   : (Filename:  Line: 810)
10-23 14:06:42.029 12955 13007 I Unity   :
10-23 14:06:42.059 12955 13007 E Unity   : [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
10-23 14:06:42.059 12955 13007 E Unity   :
10-23 14:06:42.059 12955 13007 E Unity   : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 149)
10-23 14:06:42.059 12955 13007 E Unity   :
10-23 14:06:42.059 12955 13007 I Unity   : Skipped rendering frame because GfxDevice is in invalid state (device lost)
10-23 14:06:42.059 12955 13007 I Unity   :
10-23 14:06:42.059 12955 13007 I Unity   : (Filename:  Line: 810)
10-23 14:06:42.059 12955 13007 I Unity   :
10-23 14:06:42.089 12955 13007 E Unity   : [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
10-23 14:06:42.089 12955 13007 E Unity   :
10-23 14:06:42.089 12955 13007 E Unity   : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 149)
10-23 14:06:42.089 12955 13007 E Unity   :
10-23 14:06:42.089 12955 13007 I Unity   : Skipped rendering frame because GfxDevice is in invalid state (device lost)
10-23 14:06:42.089 12955 13007 I Unity   :
10-23 14:06:42.089 12955 13007 I Unity   : (Filename:  Line: 810)

OK I'll do it. I have another update- just added some dubug.log to my function- to catch the exact problematic line:
public void SignUp()
{
Debug.Log("a");
FirebaseAuth auth = FirebaseAuth.DefaultInstance;
Debug.Log("b");
auth.CreateUserWithEmailAndPasswordAsync(email.text, password.text).ContinueWith(task =>
{
Debug.Log("c");
if (task.IsCanceled)
{
Debug.LogError("CreateUserWithEmailAndPasswordAsync was canceled.");
return;
}
if (task.IsFaulted)
{
Debug.LogError("CreateUserWithEmailAndPasswordAsync encountered an error: " + task.Exception);
return;
}
// Firebase user has been created.
Firebase.Auth.FirebaseUser newUser = task.Result;
Debug.LogFormat("Firebase user created successfully: {0} ({1})",
newUser.DisplayName, newUser.UserId);
});
Debug.Log("d");
}
The final output is "a" "b" "d" and then crush. Which means the error happens during the task:
 auth.CreateUserWithEmailAndPasswordAsync(email.text, password.text).ContinueWith(task =>
So my title of this issue isn't correct

Ok so this is missing the Android authentication library, see....
10-23 15:17:48.979  2516  2516 D AndroidRuntime: Shutting down VM
10-23 15:17:48.979  2516  2516 E AndroidRuntime: FATAL EXCEPTION: main
10-23 15:17:48.979  2516  2516 E AndroidRuntime: Process: com.game.gamey, PID: 2516
10-23 15:17:48.979  2516  2516 E AndroidRuntime: java.lang.Error: FATAL EXCEPTION [main]
10-23 15:17:48.979  2516  2516 E AndroidRuntime: Unity version     : 2018.2.12f1
10-23 15:17:48.979  2516  2516 E AndroidRuntime: Device model      : samsung SM-G920P
10-23 15:17:48.979  2516  2516 E AndroidRuntime: Device fingerprint: samsung/zerofltespr/zerofltespr:6.0.1/MMB29K/G920PVPS4CPI3:user/release-keys
10-23 15:17:48.979  2516  2516 E AndroidRuntime:
10-23 15:17:48.979  2516  2516 E AndroidRuntime: Caused by: java.lang.AbstractMethodError: abstract method "void com.google.firebase.auth.FirebaseAuth$AuthStateListener.a(com.google.firebase.auth.FirebaseAuth)"
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at com.google.firebase.auth.p.run(Unknown Source)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:739)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at com.google.android.gms.internal.firebase_auth.ce.dispatchMessage(Unknown Source)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:158)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7237)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
10-23 15:17:48.979  2516  2516 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
10-23 15:17:48.979  3525  5270 W ActivityManager:   Force finishing activity com.game.gamey/com.unity3d.player.UnityPlayerActivity
10-23 15:17:48.989  3525  5270 D FocusedStackFrame: Set to : 0

Since void com.google.firebase.auth.FirebaseAuth$AuthStateListener.a(com.google.firebase.auth.FirebaseAuth) that suggests the Android Resolver failed to add the firebase-auth libraries to your project.
Have you tried to reproduce the failure with our auth quickstart sample in this repo?

Unfourntly I couldn't reproduce the failure- it's something that has to do with my project, I already removed all plugins in it and I get the same error. How can I make Android Resolver to add it to my project, Why Isn't force resolve enough?

You should probably enable verbose logging in the Android Resolver settings then resolve with your project save Unity's log file https://docs.unity3d.com/Manual/LogFiles.html , open the working project and Android force resolve with that then save that log file.  If you compare the two, perhaps the problem with pop out at you.  If you're still having issues I recommend opening up a support ticket with firebase.google.com/support and they can help debug this with you.

Yeah I already opened, it takes time...  What's the difference between the log files? resolve and force resolve? What should I look for?

It seems like this guy got the same error that you mentioned but his game works fine with it-  https://github.com/googlesamples/unity-jar-resolver/issues/95#issue-282201960

I finally fixed it! It was a problem with the dependencies but was impossible to solve, even though I tried Androd-resolve so many times.
-I removed all Firebase files (didn't help before)
-I removed Library folder (under project folder)
-I removed AndroidResolverDependencies (under projectsettings folder)
-I removed unity folder in C:\Users*\AppData\Local and C:\Users***\AppData\Roaming
-Installed the Firebase package again
-Android resolve
That's it.

@shlighter I'm glad you got this figured out.  It does make me wonder how you got into this state though.  I'm guessing that the resolver should possibly provide a way to (re)label assets it manages since the warning you reported points at missing labels in the asset metadata for Android libraries.

Yeah, but it has nothing to do with the warnings, I still get them, same as the guy from issue #95, but we both can build the game without issues. The crash was something else...

I am using firebase 5.4.2 in unity 2018.3 and still got this error
11-20 18:28:43.827 19901 19901 E AndroidRuntime: java.lang.AbstractMethodError: abstract method "void com.google.firebase.auth.FirebaseAuth$AuthStateListener.a(com.google.firebase.auth.FirebaseAuth)"
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at com.google.firebase.auth.p.run(Unknown Source:4)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:898)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at com.google.android.gms.internal.firebase_auth.ce.dispatchMessage(Unknown Source:0)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:198)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6716)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
11-20 18:28:43.827 19901 19901 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
11-20 18:28:43.834  1734  2951 W ActivityManager:   Force finishing activity com.MyCompany.MyGame/com.unity3d.player.UnityPlayerActivity

Is this related that because I was upgrading this project from old to new version? I try to delete many things and it did not work. Stuck here for days

@Thaina are you able to reproduce the failure with our auth sample?  As I mentioned in https://github.com/firebase/quickstart-unity/issues/229#issuecomment-432448375 it sounds like you're missing the Firebase Android SDK Auth library.

@stewartmiles My point is, how can I miss Firebase Android SDK Auth library when I import FirebaseAuth.unitypackage into my project
What is the problem that it not come into my project after force resolve shouldn't it be a bug in play service resolver or should we have firebase android resolver function for this problem?

If you're running Force Resolve in the Android Resolver and it completes successfully without adding the Firebase Auth AAR to your project then yeah it sounds like something is going wrong.  To help diagnose I recommend starting out with the auth sample project, seeing whether that works, if it does work it's a problem in your game project. In which case you should contact https://firebase.google.com/support so that you can share the project and have folks debug it.
If the auth sample doesn't work, enable verbose logging in the Android Resolver settings and post the results here so we can take a look at what is going wrong.

@stewartmiles If by the library you mean .aar then it's here and always there after force resolve

Got also the same issue once connected app to firebase whe i check using auth if current user exists, it crushes

@bensalcie I recommend opening a new bug that describes in more detail how your failure is occurring and how it can be reproduced with our sample application.

@stewartmiles Thanks it worked, I had to add firebase to my  Android studio the manual way and it worked, i think it was an issue with adding the firebase functionality using firebase tool kit, it didnt work with firebase 16.1.0, its working now...thanks


Support for Angular 14

Hi,
I would like to know if the library with the latest update that has been released has included support for Angular 14, if not is support for higher versions of angular being planned?
Thank you.

yes


Strawberry Slime

New Slime Suggestion

What will this slime look like?
This slime looks like strawberry
What kind of slime is it?

[x] Pet Slime - A slime that can follow you around and do some tasks

Diet & Favorite Food
Their diet is fruit and their favorite food is cuberry
Plort
If you feed some slime with this plort in an instant its hunger will pass and it will not become largo.Their plort ranges from 60-90
Favorite Toy
Big cuberry
Slime Technical Sheet
Type

[x] Normal – Just your ordinay slime.you can get them when the cuberries have been on the trees too long

Behavior

[x] Passive – Does not damage the rancher in any way. The aggitation will not cause difference in behaviours.

Risk for the rancher? (If you choose something other than Passive above)

Activity Pattern

[x] Metatunal – Survives in the Dark and Light

Can become a largo?

[x] Specific .

Largo Specification (If you choose specific above)
Only with honey slime
Location?
you can get them when the cuberries have been on the trees too long
Condition to find?
Cuberry must have at least 2 days to turn into strawberry slime
Environment?

[x] Other - Make a suggestion of a new environment

Environment Specification (If you choose other above)
Cuberry tree
Temperature

[x] Moderated – Requires moderated temperatures (between 10°C/50°F and 35°C/95°F)

Vaccable?

[x] Yes - Can be vacced normally

Vac Upgrade or Condition (If you choose Upgrade or Conditional above)

Synergies
Only with honey slime and it become Strawhoney Largo
Possible names for the slime? (Optional)
Strawberry slime
Additional context

Just gonna link to #60 and #64 and close them.


Don't revalidate the response content if it is of the same type as response_model

There's no need to use secure_cloned_response_field to revalidate the response_content if the response object type is exactly the same as response_model
related issues:

https://github.com/tiangolo/fastapi/issues/2359
https://github.com/tiangolo/fastapi/issues/2689
https://github.com/tiangolo/fastapi/issues/3021
https://github.com/tiangolo/fastapi/issues/3454
https://github.com/tiangolo/fastapi/issues/3503

@tiangolo any chance this PR will be reviewed?

Rebuilding a response model is a real problem and cannot actually be done correctly because of aliases and other setting (I guess I've already left a comment about this). In normal code your create it by your own from other sources that could not be matched directly so it is actually not needed.
Can we expect this to be review and fixed?

@tiangolo hi! Can you answer on this comment?
https://github.com/tiangolo/fastapi/pull/4416#issuecomment-1455178994

Hi!
I have this problem too (
This can greatly degrade performance for the complex models with validators or endpoints that return a large number of items.
In example below get_items endpoint already returns a list of items so it is no need to rebuild response again.
And finally we have response in ~2 second instead of ~1 second.
from typing import List
from uuid import UUID, uuid4

from fastapi import FastAPI
from pydantic import BaseModel, validator

app = FastAPI()

class Data(BaseModel):
    i: int

    @validator("i")
    def validate_i(cls, v):
        sleep(0.1)
        return v

class Item(BaseModel):
    id: UUID
    data: Data

@app.get(
    "/items",
    response_model=List[Item],
)
def get_items():
    return [Item(id=uuid4(), data=Data(i=i)) for i in range(10)]

Thank you!

@tiangolo are there any plans on merging or reimplementing this?

@tiangolo is there any way this PR could be merged?


Fix incorrect values in recorded_allocation on BE machines

This PR addresses incorrect count and requested_bytes values in recorded_allocation when testing model allocations.
Test case //tensorflow/lite/micro:recording_micro_allocator_test fails on Big-Endian systems because RecordingSimpleMemoryAllocator::AllocateFromTail() would be called one more time and the alloc_count_ and requested_tail_bytes_ fields would be added repeatedly.
FlatBufferVectorToTfLiteTypeArray() function in micro_allocated.cc has been modified to fix this by invoking the base class version of AllocateFromTail() function (allocator->SimpleMemoryAllocator::AllocateFromTail()) on BE machines, rather than the derived class version (allocator->AllocateFromTail()) which might update the value of alloc_count_ and requested_tail_bytes_ fields besides allocating the space.
This PR will fix #297.
BUG=#297

@advaitjain Thanks for letting me move code changes in tensorflow/tensorflow#50283 to here.

@kun-lu20 please be sure to check the box that allows maintainers to make edits to the PR. The PR needs to be up to date with the main branch prior to being merged and I currently do not have the ability to do that.

@kun-lu20 please be sure to check the box that allows maintainers to make edits to the PR. The PR needs to be up to date with the main branch prior to being merged and I currently do not have the ability to do that.

I think you are encountering the same issue as https://github.com/tensorflow/tflite-micro/pull/227#issuecomment-880757254
If at all possible, we would recommend sending PRs from a user github account (instead of an organization account). Giving the TFLM maintainers the ability to update PRs and make small fixes will make the process easier for everyone.

@advaitjain Yes, it's the same issue. I've clicked "update branch" button and I think you could merge it now. Thanks!

Thanks @advaitjain !


Is this bundle still mantained?

Hi,
Is this bundle still mantained? Are there any future plans?
What does @Abhoryo think about?

@matteomoretti  good question. @Abhoryo what about version 3.0 of this bundle ?

@Abhoryo any news about? Are you ok?

@Abhoryo ping

@Abhoryo @golovanov @touchdesign @Spea @nurikabe @print @Gregory @McLean @centove @lstrojny @Benedikt Wolters @Martin Parsiegla @evan someone knows what's happened to Abhoryo?

I don't, sorry

This bundle is probably death. I recomment to use https://github.com/kitpages/KitpagesDataGridBundle

Hi, sorry for the late response.
I am glad to see that there are still people using this api.
I'm not in the symfony sphere anymore so it's hard for me to maintain correctly this project.
Someone ask me if he can maintained this bundle so you should see some updates in a few days or a new fork.
The 3.0 version is still unfinished. I don't plan to publish it.
If other persons want to maintain it too. Send me a mail.
(KitpagesDataBundle seems a little too low-level for a symfony bundle. You need to write every thing every times.)

Yes, we will maintain the project as a main collaborator.
Please, do not hesitate to contact to us and pull requests are always welcome here :heart:

Yes, I would like to maintain this project if possible ? I work on a 2.3 version.

@qferr That's great. You're welcome.
I've seen your PR https://github.com/APY/APYDataGridBundle/pull/782
let's discuss from there?


dart2js: remove support for old function literals

This issue was originally filed by @mhausner

Function literals can no longer have a name or a return type. Our tests and samples still use the old form (with name and optional return type).
Once all our code is updated to use the new form, remove support for old style function literals.

Verified that this is a compile-time error in 79a8654e5fb30dfce902636961d6a5ffb69e6f85


Delete aliedit

Download link and cask homepage do not work for me. Can others confirm this, please?

Actually, this appears to be an issue with my VPN – closing pull request.


Better server start coordination

Change
Improve this named event creation by having both sides try to create or open it.  The current version will almost always have to sleep at least once while the server sets up and can completely fail if it takes too long.  With this change, we should be able to properly wait for startup on the first attempt.
Validation
Manual verification of functionality with a sleep introduced to ensure failure of previous code.
Microsoft Reviewers: Open in CodeFlow

/azp run


change Binder::included_relations() to return reference instead of a clone

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

#19399  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


JSONOf.Value changes format of date string

Expected behavior

The strings returned by JSONOf.Values() and JSONOf.Value() match the strings in the json.
Actual behavior

Date strings may be changed to a different format. Presumably Newtonsoft recognizes dates and parses them into a System.DateTime, which is then turned back into a string in JSONOf.Values(), but using some default format that may not match the original format.
Steps to reproduce the behavior

The log given by the failure.

Mention any other details that might be useful

I just noticed the format doesn't get changed to "MM/dd/yyyy HH:mm:ss" if the initial format is "yyyy-MM-dd HH:mm:ss". Maybe Newtonsoft.Json doesn't recognize it as a date with that format. This can be used as a potential workaround for anyone encountering this problem. There are probably other formats that don't get recognized as a date and therefore don't get changed to a different format.


It does't work

Fatal error: Uncaught Error: Interface 'Endroid\QrCode\QrCodeInterface' not found in C:\xampp\htdocs\qrgen\vendor\endroid\qr-code\src\QrCode.php:19 Stack trace: #0 C:\xampp\htdocs\qrgen\index.php(3): require() #1 {main} thrown in C:\xampp\htdocs\qrgen\vendor\endroid\qr-code\src\QrCode.php on line 19

Hi @dimkiriakos looks like your autoloader is not set up correctly. Did you install the package using composer and include / require the autoloader? If not, please try that and see if it helps.


random name and random skin

add this at feedme.js  at top

var slithernames = {};
slithernames.nameList = [
"nikos","AnonymousBots","xxx2"
];
slithernames.getRandomName = function() {
return slithernames.nameList[Math.floor((Math.random() * slithernames.nameList.length))];
};
function rskin(){
return Math.floor((Math.random() * 39)+1)};

and change line 50 and 52 to
name: slithernames.getRandomName()
skin: rskin()

i did this long back 😀 but im only trying to find only this how are bots coming in mobile version

if you make bots run in mobile will you tell me pleasee ??? :)

okie in skype

you like mobile one right me 2😀

found a new thing we cant run bots on mobile and about the bots we see in mobile is because web version and mobile is connected

@kurama129 sorry bro i dont use skype : (


TLAPS regression from 1.4.3 to 1.4.5

The following proof is from HyperBook, which does not pass the check by TLAPS 1.4.5 but do pass the check by TLAPS 1.4.3.
-------------------------------- MODULE GCD --------------------------------
EXTENDS Integers, FiniteSets, TLAPS, NaturalsInduction

Divides(p, n) == \E q \in Int : n = p * q

DivisorsOf(n) == {p \in Int : Divides(p, n)}

SetMax(S) ==  CHOOSE i \in S : \A j \in S : i >= j

GCD(m, n) == SetMax(DivisorsOf(m) \cap DivisorsOf(n))

THEOREM GCD3 == \A m, n \in Nat \ {0}:
                     (n > m) => (GCD(m, n) = GCD(m, n-m))
  <1> SUFFICES ASSUME NEW m \in Nat \ {0}, NEW n \in Nat \ {0},
                      n > m
               PROVE  GCD(m, n) = GCD(m, n-m)
    OBVIOUS
  <1> \A i \in Int: Divides(i, m) /\ Divides(i, n)
                        <=> Divides(i, m) /\ Divides(i, n - m)
      BY DEF Divides   \* Failed
  <1> QED
    BY DEF GCD, SetMax , DivisorsOf

Please read:  "[tlaplus] "Broken" proofs after tlaps upgrade".
TLAPS 1.4.3
---------------- New Prover Launch --------------

\* TLAPM version 1.4.3 (commit 34695)
\* launched at 2020-03-27 16:47:53 with command line:
\* /usr/local/bin/tlapm --toolbox 18 20 --safefp --cleanfp --safefp -I /usr/local/lib/tlaps/ /home/markus/src/TLA/_specs/models/tlcbugs/TLAPM06/GCD.tla

(* fingerprints file "GCD.tlaps/fingerprints" removed *)
@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:to be proved
@!!END

@!!BEGIN
@!!type:obligationsnumber
@!!count:1
@!!END

>>> Type assignments:
  m : Int
  n : Int
  skc_i : Int
>>> Unexpanded operators: ---

@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:proved
@!!prover:smt
@!!meth:time-limit: 5; time-used: 0.0 (0%)
@!!already:false
@!!END

(* created new "GCD.tlaps/GCD.thy" *)
(* fingerprints written in "GCD.tlaps/fingerprints" *)

TLAPS 1.4.5
---------------- New Prover Launch --------------

\* TLAPM version 1.4.5 (commit 33809)
\* launched at 2020-03-27 16:48:59 with command line:
\* /usr/local/bin/tlapm --toolbox 18 20 --safefp --cleanfp --safefp -I /usr/local/lib/tlaps/ /home/markus/src/TLA/_specs/models/tlcbugs/TLAPM06/GCD.tla

(* fingerprints file "GCD.tlaps/fingerprints" removed *)
@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:to be proved
@!!END

@!!BEGIN
@!!type:obligationsnumber
@!!count:1
@!!END

** Unexpanded symbols: ---

@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:being proved
@!!prover:smt
@!!meth:time-limit: 5
@!!obl:
ASSUME NEW CONSTANT m \in Nat \ {0},
       NEW CONSTANT n \in Nat \ {0},
       n > m
PROVE  \A i \in Int :
          (\E q \in Int : m = i * q) /\ (\E q \in Int : n = i * q)
          <=> (\E q \in Int : m = i * q) /\ (\E q \in Int : n - m = i * q)

@!!END

@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:failed
@!!prover:smt
@!!meth:time-limit: 5; time-used: 5.0 (100%)
@!!reason:timeout
@!!already:false
@!!obl:
ASSUME NEW CONSTANT m \in Nat \ {0},
       NEW CONSTANT n \in Nat \ {0},
       n > m
PROVE  \A i \in Int :
          (\E q \in Int : m = i * q) /\ (\E q \in Int : n = i * q)
          <=> (\E q \in Int : m = i * q) /\ (\E q \in Int : n - m = i * q)

@!!END

Zenon error: exhausted search space without finding a proof
@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:failed
@!!prover:zenon
@!!meth:time-limit: 10; time-used: 0.0 (0%)
@!!reason:false
@!!already:false
@!!obl:
ASSUME NEW CONSTANT m \in Nat \ {0},
       NEW CONSTANT n \in Nat \ {0},
       n > m
PROVE  \A i \in Int :
          (\E q \in Int : m = i * q) /\ (\E q \in Int : n = i * q)
          <=> (\E q \in Int : m = i * q) /\ (\E q \in Int : n - m = i * q)

@!!END

@!!BEGIN
@!!type:obligation
@!!id:1
@!!loc:20:7:20:9
@!!status:failed
@!!prover:isabelle
@!!meth:auto; time-limit: 30; time-used: 0.0 (0%)
@!!reason:false
@!!already:false
@!!obl:
ASSUME NEW CONSTANT m \in Nat \ {0},
       NEW CONSTANT n \in Nat \ {0},
       n > m
PROVE  \A i \in Int :
          (\E q \in Int : m = i * q) /\ (\E q \in Int : n = i * q)
          <=> (\E q \in Int : m = i * q) /\ (\E q \in Int : n - m = i * q)

@!!END

(* created new "GCD.tlaps/GCD.thy" *)
(* fingerprints written in "GCD.tlaps/fingerprints" *)

Thank you. But I am not able to find a way to resolve this problem in the mail list. It's a bug or an intended change?

I looked at the SMT input file produced by 1.4.5, and it is as expected. This particular proof obligation is about non-linear arithmetic, which is an undecidable theory and for which current SMT solvers use brittle heuristics. This becomes even more unstable when the obligations involve quantification as in this case. Neither Z3 nor CVC4 currently seem to be able to prove the obligation, but it is conceivable that CVC3 (the default SMT solver used in 1.4.3) could. We have to decompose the proof one level further:
THEOREM GCD3 == \A m, n \in Nat \ {0}:
(n > m) => (GCD(m, n) = GCD(m, n-m))
<1> SUFFICES ASSUME NEW m \in Nat \ {0}, NEW n \in Nat \ {0},
n > m
PROVE  GCD(m, n) = GCD(m, n-m)
OBVIOUS
<1>1. ASSUME NEW i \in Int, NEW q \in Int, m = iq, NEW r \in Int, n = ir
PROVE  \E z \in Int : n-m = iz
<2>1. r-q \in Int /\ n-m = i(r-q)
BY <1>1
<2>. QED  BY <2>1
<1>2. ASSUME NEW i \in Int, NEW q \in Int, m = iq, NEW r \in Int, n-m = ir
PROVE  \E z \in Int : n = iz
<2>1. r+q \in Int /\ n = i(r+q)
BY <1>2
<2>. QED  BY <2>1
<1> QED
BY <1>1, <1>2 DEF GCD, SetMax , DivisorsOf, Divides
Sigh – but I'll chalk this up to backend solvers, not the PM itself.
Stephan

On 28 Mar 2020, at 07:28, Andy Lok<EMAIL_ADDRESS>wrote:
Thank you. But I am not able to find a way to resolve this problem in the mail list. It's a bug or an intended change?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/tlaplus/tlapm/issues/6#issuecomment-605403716, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZCW5PTEKYXSZF3ULB6B5DRJWKIXANCNFSM4LVLHKOA.

@muenchnerkindl Oh, you're my hero. I was even wondering how I can prove it like anyone else would do in coq rather than just stucking in here. Well, all that is missing is a lemma. 😄


Ninja for one app is working, but for another app not

Hi,
we are using Ninja in several apps without problem. But in some apps it seems that Ninja is not enabled at all.
App1, Ninja is working:

app.json

App2, Ninja it seems that Ninja is not enabled at all:

AL Object ID extension is installed:

diff to App1 is runtime and version:

It is strange that in App3 v15 is working:

Another strange thing in App4, we can't authorize app and we can't deauthorize app neither:

app.json

@vjekob - is there any venue where we can request for a deauthorization of an app in case where the authkey got lost?

We have a similar issue at work,
we refactored our branches in DevOps (changed only the path of the apps)
and after that the NinjaID extension started throwing errors.


sendTransaction api can not work normal

it is not deploy contract, but also  must have param "data": "0x00".

Have been repaired


[2.6] Cluster members page fails to render

Setup

Rancher version: v2.6-head in Docker
Browser type & version: Firefox 111

Describe the bug
There is an issue that happens when a user deletion gets stuck - the cluster members screen does not render anything, and there is an error in the console:
TypeError: this.principalId is undefined
    get management.cattle.io.clusterroletemplatebinding.js:31
    L object.js:87
    h sort.js:191
    h sort.js:187
    arrangedRows sorting.js:43
    VueJS 42
    n NuxtJS
    d runtime.js:45
    _invoke runtime.js:274
    e runtime.js:97
    Babel 6
    A db5ad5c7fcf2db331c62.js:2
    NuxtJS 2
    VueJS 22

To Reproduce
It's hard to reproduce this consistently. I see it when user deletion gets stuck.
Result
Expected Result

Screenshots

Additional context

Closing this since 2.6.x doesn't anticipate any immediate releases in the near future. Let us know if this happening in a newer version with reproducibility steps and file a new ticket.


chore: bdd-gh-1578649663 to 0.0.1

chore: Promote bdd-gh-1578649663 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Search results count varies on different pages

Description of bug
Search results count varies on different pages
Steps to reproduce

As a Registered User, do a search that will return multi-paged results. (i.e. Total: 50 results)
Then navigate to page 2 of the search results.
Pick anyone of the results in page 2 (for step 5)
Logout.
Log in as an Admin/Content Owner and make the item in #3 inaccessible to registered users.
Logout.
Log back in as a Registered User. Try to search again for the same keyword.

Current result
At page 1, Total Results will be 50. On page 2, Total results will instead be 49. On page 3, Total Results will be 50 again.
Expected result
Search results count should not vary.
Additional context
Related to: https://dnntracker.atlassian.net/browse/DNN-9442
Search results count should be calculated at the beginning of the search, considering the security restrictions for the user in order to avoid changes in the total result count.
Affected version

[x] 9.2.2
[x] 9.2.1
[x] 9.2
[x] 9.1.1
[ ] 9.1
[ ] 9.0

Closing since PR got merged


Revert "Update docs to use tec docs gems v1.8.0"

Reverts alphagov/paas-tech-docs#197
Reverting because the build is failing.

Please don't forget to include some context.
Run middleman...
bundle exec middleman build
bundler: failed to load command: middleman (/usr/local/bundle/bin/middleman)
LoadError: Error relocating /usr/local/bundle/gems/therubyracer-0.12.3/lib/v8/init.so: __vfprintf_chk: symbol not found - /usr/local/bundle/gems/therubyracer-0.12.3/lib/v8/init.so
  /usr/local/bundle/gems/therubyracer-0.12.3/lib/v8.rb:4:in `require'
  /usr/local/bundle/gems/therubyracer-0.12.3/lib/v8.rb:4:in `<top (required)>'
  /usr/local/bundle/gems/therubyracer-0.12.3/lib/therubyracer.rb:1:in `require'
  /usr/local/bundle/gems/therubyracer-0.12.3/lib/therubyracer.rb:1:in `<top (required)>'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:81:in `require'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:81:in `block (2 levels) in require'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `each'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:76:in `block in require'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `each'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:65:in `require'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler.rb:114:in `require'
  /usr/local/bundle/gems/middleman-core-4.3.2/lib/middleman-core/load_paths.rb:35:in `setup_bundler'
  /usr/local/bundle/gems/middleman-core-4.3.2/lib/middleman-core/load_paths.rb:15:in `setup_load_paths'
  /usr/local/bundle/gems/middleman-cli-4.3.2/bin/middleman:10:in `<top (required)>'
  /usr/local/bundle/bin/middleman:23:in `load'
  /usr/local/bundle/bin/middleman:23:in `<top (required)>'
make: *** [Makefile:22: build] Error 1

Some details about this error can be found here: https://github.com/cowboyd/therubyracer/issues/378
It seems the therubyracer doesn't work well with alpine.


Is it ok to hold on to a pointer returned by wrenGetSlotForeign?

Hey everyone!
I'm new to Wren and so far it has been a blast to work with.
However, I was wondering if it is ok to store a pointer to C data from obtained from Wren.
Consider this example. I previously stored a struct PGLGeometryBuffer in Wren C Data. I want to store a pointer to this struct for later use:
PGLAttribute* attribute = calloc(1, sizeof(PGLAttribute));
attribute->buffer = (PGLGeometryBuffer*)wrenGetSlotForeign(vm, 1);

My question: Will this pointer stay valid until finalize is called or is it possible that the wren garbage collector will move my C Data around?

Objects are never moved in current implementation, since it would require
updating all the objects. So pointers should always be valid till the
object is gc.
Thought I'm not sure it might not be wiser to let C manage the memory, and
make wren objects do the proxing to the data. But it depends what you are
doing.

The memory for the foreign classes is entirely at the whim of the garbage collector, so if you absolutely have to hold onto it, either hold a reference to it in a cache or create a handle to free later.

Thanks a lot for the swift replies. I guess it is safer to assume that the data might be moved even if the current implementation doesn't.
What I'm gonna do is storing a pointer to a pointer and do the actual struct allocation myself.
attribute->buffer = *(PGLGeometryBuffer**)wrenGetSlotForeign(vm, 1);

Do you control PGL* symbols? If so also do:
attribute->handle = wrenGetSlotHandle(vm, 1);
And release it at destruction of the attribute.

Just to add my thoughts I agree the safest is not to hold pointers to memory you don't own without a guarantee. In this case there is no guarantee :)

So in the intended API, you are supposed to get a WrenHandle from the VM
for any objects you want to keep, but there isn't a good timing hook for
releasing that handle during class finalize, because you don't get full
access to the VM. Something to consider for future versions.
On Wed, 11 Mar 2020, 21:59 .ruby<EMAIL_ADDRESS>wrote:

Just to add my thoughts I agree the safest is not to hold pointers to
memory you don't own without a guarantee. In this case there is no
guarantee :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/wren-lang/wren/issues/734#issuecomment-597898722, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALBBL7URGPHLOENSB2XWCLRHACTJANCNFSM4LF4ADVA
.

@mhermier And I could use that handle to get a pointer to the actual data right? Still this would leak Wren implementation details to my non-scripting aware classes. Additionally @avivbeeri's issue remains.
What while I'm doing this this: attribute->buffer = *(PGLGeometryBuffer**)wrenGetSlotForeign(vm, 1);
PGLAttribute and PGLGeometryBuffer are both C Data representations of Wren foreign classes Attribute and GeometryBuffer accordingly.
So now PGLAttribute is referencing PGLGeometryBuffer. If I replicate this dependency on the Wren side, like this:
foreign class Attribute {
  construct new(geometryBuffer, attributeType, componentType, componentCount, offset, normalized){
    // keep reference for garbage collector
    _geometryBuffer = geometryBuffer
  }
}

Wren will reference count my PGLGeometryBuffer for me - No need to get a handle.
Does this sound like a sound strategy?
@underscorediscovery Jep, sounds like a good general rule to follow
@avivbeeri Yeah, it's strange that you don't get a pointer to WrenVM in the finalize hook. You can store a pointer in the actual C data but it feels wrong.
PS: I didn't expect to get so much response for a relatively small project like Wren. You guys are great!!

You don't get VM access for a good reason: Finalize is called mid-garbage-collection, so the VM isn't in stable state. But the downside is that you can't do some memory/garbage collection related activities.
You could just keep a list of WrenHandles in your application and mark them for releasing, and periodically check? Depending on your application type.

@avivbeeri Thanks for pointing it out. I just learned the hard way that foreign classes can't have members. That combined with the inability to release handles during finalizing makes it really hard to build up graphs of foreign classes.
Well, it's back to the drawing board for me....

I guess you have lifetime issue. Designing a binding API is not an easy
task, if you try to do it too much wise. Usually the more dumb it is, the
less problem it can trigger.

The more I learn the more I see this is true. I was always puzzled why OpenGL has such a verbose and contracted API. Now I can understand some of choices.
Well in my case I solved the dependencies between struct with manual reference counting implemented on the C side.
typedef struct {
  GLsizei stride;
  GLuint handle;
  int refCount;
} PGLGeometryBuffer;

Each time a Wren allocation references the buffer refCount is incremented.  In the finalize call the count is decreased - once it reaches 0 the (OpenGL) handle and struct memory is freed.

In the case of opengl it is more an implementation language decision. If
you compare it to DirectX, it is also pretty dumb, but because of the
object oriented nature of the implementation each time you augment the
feature, you have to recompile the client. OpenGL uses the proven API ideas
from unix/POSIX which demonstrated how easy extensible it is contrary to
object orientation.
If you look at the development of c++ since c++11 it is more and more
apparent maintainers go back functionnal, because pure object has some
fundamental maintenance issues and hidden costs.


Remove Pass3D

... to prevent a bug where removeTile(Translucent|Pass3d) doesn't remove drawables added with just Translucent.
Resolves #3039

How do we feel about merging this before Tim goes on vacation?

Yeah, I never figured out why it doesn't fail in that test.


Support ESM

Are you using OpenAPI 2, 3.0.X, or 3.1.0?
All of them
Would this solve a problem or make something easier?
Solve a problem
What would you like to happen?
I'd be able to import jest-openpi in ESM module like this:
import jestOpenApi from 'jest-openapi';
jestOpenApi(..);

Describe alternatives you've considered
use it like this:
import jestOpenAPI from 'jest-openapi';

// @ts-expect-error - jest-openapi types doesn't properly support esm
jestOpenAPI.default(join(process.cwd(), './docs/oas3.json'));

// @ts-expect-error - jest-openapi types doesn't properly support esm
expect(res).toSatisfyApiSpec();

Additional context or screenshots
Are you going to resolve the issue?
I'd love to, but I need some guidance on how we want to do this.

hey @mikicho thanks for suggesting this 🙂 I'm not sure what we need to do to import jest-openapi in an ESM module. Happy for you to suggest how it should be done, if you have time and know how to.
Otherwise I will look at it later (but can't right now as I'm quite busy at work)

I'll try to figure it out

Hello @mikicho do you have news about this issue? I'm not able to use latest jest-openapi version with ESM. Maybe you know a workaround while waiting for permanent solution?

Unfortunately, no proper solution


Follow psr-4

Instead of WP rules for naming clases in order to allow autoloading and similar convention with other libraries.

Done!