Error when typing @ in TextFormField on Desktop Flutter

Steps to Reproduce
In TextFormField when I type @ on Desktop Flutter, I get the error message:
Another exception was thrown: A KeyUpEvent is dispatched, but the state shows that the physical key is pressed on a
different logical key. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests,
please ensure that simulated events follow Flutter's event model as documented in `HardwareKeyboard`. This was the event:
KeyUpEvent#03a62(physicalKey: PhysicalKeyboardKey#7001f(usbHidUsage: "0x0007001f", debugName: "Digit 2"), logicalKey:
LogicalKeyboardKey#00032(keyId: "0x00000032", keyLabel: "2", debugName: "Digit 2"), character: null, timeStamp:
8:59:57.059000) and the recorded logical key LogicalKeyboardKey#00040(keyId: "0x00000040", keyLabel: "@", debugName: "At")

pubscpec.yaml dependencies
  cupertino_icons: ^1.0.2
  get: ^4.3.4
  get_storage: ^2.0.3
  splashscreen:
    git:
      url: https://github.com/DPLYR-dev/SplashScreenFlutterPackage.git
      ref: master
  cloud_firestore: ^2.4.0
  google_sign_in: ^5.0.7
  firebase_storage: ^10.0.1
  firebase_auth: ^3.0.1

System informations
$ uname -r
5.13.5-100.fc33.x86_64

$ cat /etc/os-release
PRETTY_NAME="Fedora 33 (Workstation Edition)"

Flutter informations
flutter --version
Flutter 2.5.0-2.0.pre.124 • channel master • https://github.com/flutter/flutter.git
Framework • revision b375059ee7 (29 hours ago) • 2021-08-02 19:55:03 -0700
Engine • revision 29f9df723f
Tools • Dart 2.14.0 (build 2.14.0-368.0.dev)

Hi @cindRoberta
Just tried on a new project, no such error is thrown on linux (popos 21.04)

logs
s/packages
[        ] -- Installing:
/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_asset
s/packages/cupertino_icons
[        ] -- Installing:
/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_asset
s/packages/cupertino_icons/assets
[        ] -- Installing:
/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_asset
s/packages/cupertino_icons/assets/CupertinoIcons.ttf
[        ] -- Installing:
/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_asset
s/kernel_blob.bin
[  +35 ms] -- Installing:
/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_asset
s/fonts
[        ] -- Installing:
/home/taha/StudioProjects/triage/build/linux/x64/debug/bundle/data/flutter_asset
s/fonts/MaterialIcons-Regular.otf
[  +14 ms] Building Linux application... (completed in 21.3s)
[ +349 ms] Observatory URL on device: http://<IP_ADDRESS>:33247/EkyhK04H88A=/
[  +11 ms] Caching compiled dill
[  +98 ms] Connecting to service protocol: http://<IP_ADDRESS>:33247/EkyhK04H88A=/
[ +180 ms] Launching a Dart Developer Service (DDS) instance at
http://<IP_ADDRESS>:0, connecting to VM service at
http://<IP_ADDRESS>:33247/EkyhK04H88A=/.
[  +90 ms] DDS is listening at http://<IP_ADDRESS>:38043/tC_zaGSuWBk=/.
[  +82 ms] Successfully connected to service protocol:
http://<IP_ADDRESS>:33247/EkyhK04H88A=/
[  +25 ms] DevFS: Creating new filesystem on the device (null)
[  +15 ms] DevFS: Created new filesystem on the device
(file:///tmp/triageUCRXDY/triage/)
[   +2 ms] Updating assets
[ +103 ms] Syncing files to device Linux...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:triage/main.dart
f094ce62-76dd-4d13-aeee-a059f75bc7d7
[        ] <- f094ce62-76dd-4d13-aeee-a059f75bc7d7
[ +155 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Linux... (completed in 160ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +5 ms] Connected to _flutterView/0xee47f0.
[   +2 ms] Flutter run key commands.
[   +2 ms] r Hot reload. 🔥🔥🔥
[   +2 ms] R Hot restart.
[        ] h Repeat this help message.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on Linux is available at:
           http://<IP_ADDRESS>:38043/tC_zaGSuWBk=/
[ +998 ms] The Flutter DevTools debugger and profiler on Linux is available at:

http://<IP_ADDRESS>:9102?uri=http%3A%2F%2F<IP_ADDRESS>%3A38043%2FtC_zaGSuWBk%3D%2F

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.3 at /home/taha/Code/flutter_stable
    • Framework revision f4abaa0735 (5 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/taha/Code/android-sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = /home/taha/Code/android-sdk
    • Java binary at: /home/taha/Code/android-studio-preview/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/taha/Code/android-studio
    • Flutter plugin version 58.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/taha/Code/android-studio-preview
    • Flutter plugin version 58.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.58.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 92.0.4515.107

• No issues found!

Can you please provide a complete reproducible minimal code sample, and complete flutter run -d linux --verbose logs running the minimal code sample?
Thank you


Interpret backslash escapes for RCON_CMDS

Uses echo -e to interpret any included backslash escapes within RCON_CMDS_. Such as the literal \n newlines.
Fixes #3007

printf might be more portable, it seems echo has varying implementations across shells and OS's. But this being a container and we have the /bin/bash shebang, I guess we can rely -e on being there.

printf might be more portable. It seems echo has varying implementations across shells and OS's. But this being a container and we have the /bin/bash shebang, I guess we can rely -e on being there.

Yeah, I had seen similar comments about portability, but yes, as you said, the container gives us a guaranteed bash implementation.


While rendering, mjml always generating empty data apart from html default code.

<mj-body>
  <mj-section>
    <mj-column>
      <mj-text>Hello World</mj-text>
    </mj-column>
  </mj-section>
</mj-body>

The following code is generated after rendering the above code.
<!doctype html>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>

```

What version of MJML are you using? In the online editor, your code is working fine for me: https://mjml.io/try-it-live/14c176b040ecbb1c30ad960d67059a3f

The problem is not with code. The problem is with rendering. In Mac os, when I render mjml it displays the above code only. But in windows it is fine. I am using node v5.10.1 and npm v3.8.3 with brew.

@sankar11 in which email client do you experience rendering issue? We need more details in order to be able to help you here. Thanks!

Hi @sankar11, can you please tell us more how you render this MJML document? What version of the engine? What is the code running the rendering? The more details you can share, the easier for us to help you here. Best!

Hi,
It has been rectified. There was some problem with node and npm. Thanks for your support.

Awesome, glad to hear. Closing the issue.


Add a trend line showing long-term evolution of Cardano DB restorations

Why
The insights graphs are awesome, but given the granularity of DB restorations, it's unclear how it's globally faring:

What
Add a line averaging the downloads over a week sliding window to smooth the curve, showing the trend of DB restorations.

Hi @abailly-iohk, there is a new line for the moving average of the downloads (done over 30 days) which should give a better idea of the trend of restorations:

@jpraynaud that looks great! But it wasn't that urgent :)

@jpraynaud that looks great! But it wasn't that urgent :)

Thanks, that was easy to do :+1:


rename EXPERIMENTAL_ON to NETWORKX

What do these changes do?
rename EXPERIMENTAL_ON to NETWORKX

cc/ @sighingnow

LGTM.


Task/update models

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

27 of 27 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+3.3%) to 83.648%

Totals

Change from base Build<PHONE_NUMBER>:
3.3%

Covered Lines:
133

Relevant Lines:
159

💛  - Coveralls


pass all TensorListMetadata as pointer to pinned host memory

This works around a known performance issue.  When a real fix becomes available, we can revert this.

Tested out locally for functional verification.
@sunway513  Do you want to review it once.

@lcskrishna , can you setup a CI run for the PR? Just for the interest to test our CI :-)

Sure, i'll keep a CI run now.

Passed all the tests :
http://ml-ci.amd.com:21096/job/apex-rocm/18/console


Debezium 1.5 Alpha1 announcement

You caught my only issue with the original push so now it LGTM.

Ha, excellent :) Thx!


Add Podfile version

I believe the Podfile update won't have an effect, but the podspec will.

Can somebody merge it please?

Only maintainers are allowed to do this @atomassoni @StewanSilva

Going to review this weekend, sorry guys. I will try to improve docs on how to build plugin locally so y'all don't need to necessarily depende on an official release.


VLS doesn't handle zombie process (v)

vls version <IP_ADDRESS>af4c9e
Problem Description
VLS spawn v processes but doesn't wait() on them. The result is, in top a lot of zombie processes are under vls.
It doesn't affect usage. It just clutters process view.
Steps to Reproduce

Use VLS in a project
Run htop and enable tree view with t

Start one VLS instance by v ls, then run v ls again in another terminal session. One should see the second command gets stuck at startup phase.
New text editor window would failed to spawn VLS if another VLS instance is running. And after this editor quite, VLS would be left in process tree, because it couldn't response to shutdown request at this point.

Try https://blog.vosca.dev/meet-v-analyzer/ instead, now that it is released.


TestStream.GetAllSubscriptionHandles returns an empty list.

Thanks, @jonas-johansson!
Why does GetAllSubscriptionHandles always return an empty list? Shouldn't it return a list of the current subscriptions?

Hi @seniorquico!
I'm not familiar enough with OrleansTestKit to implement that behavior. In our team it was a good enough implementation to return an empty list to satisfy our tests. I understand if this pull request is not a good fit, and in that case we can close it.
Cheers,
Jonas

Got it. I think it would be best if we accepted a change that returned the list of current subscription handles (which may or may not be empty). I opened #62 to track this request.
With this PR, I'm just concerned that someone calling GetAllSubscriptionHandles could get misleading or undesirable behavior. For example, when the actual list of subscriptions is not empty but the GetAllSubscriptionHandles call returns an empty list, one's grain might create a new subscription. In that scenario, when calling TestStream<T>.OnNextAsync, it would fire the callback on an additional observer.


Unfolding class methods?

I'm unable to unfold or inline class methods in the latest HERMIT. Did something change? Is there a way to get methods inlined? An example:
...
hermit<0> application-of 'negate
negate Int $fNumInt
hermit<2> unfold
Error in expression: unfold
Rewrite failed:unfold failed: Inline failed: not a variable.
hermit<2> occurrence-of 'negate
negate
hermit<3> inline
Error in expression: inline
Rewrite failed:Inline failed: cannot find unfolding in Env or IdInfo.
hermit<3> info
Node:        Expression
Constructor: Var
Type:        forall a. Num a => a -> a

OccName:                  negate
Global: GHC.Num
Unique:                   02J
Identifier arity:         1
Identifier binding depth: binding not found in HERMIT context.
Unfolding:                No unfolding
Occurrence Info:
Inline Pragmas:           [ALWAYS]

Path:     [prog, prog-tail, prog-tail, prog-tail, prog-tail, prog-tail, prog-head, nonrec-rhs, app-fun, app-fun]
Children: []

Free local identifiers:
Free global identifiers: negate
Free type variables:
Free coercion variables:
Local bindings in scope:
  trip2 : 4$NONREC
  trip1 : 1$NONREC
  repr1 : 5$NONREC
  ar1 : 3$NONREC
  abst1 : 2$NONREC

I'm using GHC 7.10.3.

Am I crazy here? I don't remember having difficulty with inlining methods (into dictionary accessors) before.

I'll have to investigate, but I likely won't have time until the weekend after next. :-(
It is possible the inlining annotations on negate changed with the new base package included in 7.10 (vs 7.8), or that 7.10 makes different decisions on what to export in interface files. The lack of unfolding info is the next big thing I'd like to tackle with HERMIT, but it will require a GHC patch, so may take a while to solve (especially with my now-reduced bandwidth).

I don't know if it's even possible to declare anything about inlining of the general methods (dictionary accessors), as opposed to methods for particular instances. That's a weird thing here --- I'm just trying to expose the dictionary accessor. I can inline the dictionary, but not the accessor:
hermit<0> application-of 'negate
negate Int $fNumInt
hermit<1> [app-fun,app-fun]
negate
hermit<2> inline
Error in expression: inline
Rewrite failed:Inline failed: cannot find unfolding in Env or IdInfo.
hermit<2> back
back, unstepping : [app-fun,app-fun]
negate Int $fNumInt
hermit<1> app-arg
$fNumInt
hermit<3> inline
D:Num Int $fNumInt_$c+ $fNumInt_$c- $fNumInt_$c* $fNumInt_$cnegate
      $fNumInt_$cabs $fNumInt_$csignum $fNumInt_$cfromInteger
hermit<4>

Thanks for letting me know about your limited availability. I wonder if anyone else could help. I'm totally blocked at this point.

Are there any other active HERMIT users working with the new version?

I ran into this exact issue with my dissertation work.  My short-term workaround was to redefine the class methods I needed locally.  For example, given the module:
negate' :: Num a => a -> a
negate' x = 0 - x

f :: Int -> Int
f x = negate' x

main = print (f 1)

I can get inlining to work as desired:
hermit<0> rhs-of 'f
λ x → negate' ▲ $fNumInt x
hermit<1> any-call (unfold 'negate')
λ x → (-) ▲ $fNumInt (fromInteger ▲ $fNumInt (__integer 0)) x

I know it's not an ideal solution, but maybe this is enough to make progress until Drew has time to investigate more?

Thanks, @ecaustin. I really do need to get to the methods themselves. For instance, in your code, I then would need to inline the '-' accessor for Num dictionaries, but I run into the same roadblock.
What versions of GHC and HERMIT were you using when you encountered the problem with method/accessor inlining? It worked fine for me under GHC 7.8 and HERMIT 0.5.

I also tried simplify and bash to no avail:
hermit<0> application-of 'negate
negate Int $fNumInt
hermit<1> app-arg
$fNumInt
hermit<2> inline
D:Num Int $fNumInt_$c+ $fNumInt_$c- $fNumInt_$c* $fNumInt_$cnegate
      $fNumInt_$cabs $fNumInt_$csignum $fNumInt_$cfromInteger
hermit<3> up
negate Int
       (D:Num Int $fNumInt_$c+ $fNumInt_$c- $fNumInt_$c* $fNumInt_$cnegate
              $fNumInt_$cabs $fNumInt_$csignum $fNumInt_$cfromInteger)
hermit<4> simplify
Error in expression: simplify
Rewrite failed:Simplify failed: nothing to simplify.
hermit<4> bash
Error in expression: bash
Rewrite failed:bash failed: nothing to do.
hermit<4>

I just asked on the ghc-devs mailing list whether something about method accessor inlining changed between GHC 7.8.2 and 7.10.3.

Right, in this specific example you'd have to follow the turtles all the way down.  You would need to monomorphise negate and provide a corresponding local redefinition of (-) which would pollute your code with magic hashes and primitive operations.
Again, not an ideal solution, but you should get to the same end point since you are essentially doing manually what HERMIT would have done for you automatically.

I see. What I'm working on is (automatic) monomorphization. I'm rebuilding my Haskell-to-hardware compiler to make it simpler, more robust, and much faster, and monomorphization is the first phase.

Yikes.  So doing the transformations manually would prevent any meaningful development or testing of at least the first phase of your compiler.  Makes sense now why this is a major stopping point for you.
Looking at the .cabal files from my dissertation work, I was using GHC 7.8.x and HERMIT <IP_ADDRESS>.
That's the only version of HERMIT I've ever worked with, so I've just taken it at face value that the bindings from class instances weren't carried in the HERMIT context.  I wasn't aware that functionality was available in earlier versions of HERMIT.

module Main where

main = print $ negate (1::Int)

If I run hermit Test.hs, I can't inline negate. If I start HERMIT after the first phase, then negate has already been inlined: hermit Test.hs +Main -p1
negate has an INLINE pragma on it, so this makes sense. Evidently GHC is finding the unfolding for negate somewhere. (ghc Test.hs -O2 -ddump-simpl-iterations supports this) Must figure out how it is doing so and why HERMIT can't see it. It could be the case that the IdInfo is just underspecified (or conservatively specified) when it comes out of the desugarer, and it gets filled in later.

It is also possible that HERMIT is zapping the IdInfo somewhere. I remember Neil adding some zapping stuff. Investigating that now.

Looking at the .cabal files from my dissertation work, I was using GHC 7.8.x and HERMIT <IP_ADDRESS>.

Thanks. Interesting. This info suggests to me that the problem is in HERMIT, introduced between HERMIT 0.5 and 1.0, rather than in GHC between 7.8 and 7.10.

Okay, I think what is happening is that GHC doesn't generate an unfolding for negate... it generates a magic BuiltInRule:
$ ghc -O2 Test.hs -ddump-rule-rewrites
[1 of 1] Compiling Main             ( Test.hs, Test.o )
Rule fired
    Rule: Class op negate
    Before: GHC.Num.negate
              TyArg GHC.Types.Int ValArg GHC.Num.$fNumInt ValArg GHC.Types.I# 1
    After:  GHC.Num.$fNumInt_$cnegate
    Cont:   Stop[BoringCtxt] GHC.Types.Int

So we at minimum need to add support for applying built-in rules... and potentially use them as an unfolding fallback.

For what it's worth, it doesn't seem to matter if the class instance is local vs. imported.
A dummy, local redefinition:
class Num a => Num' a where
  negate' :: a -> a
  negate' x = 0 - x

instance Num' Int

Still doesn't populate the HERMIT context with its binding information: Identifier binding depth: binding not found in HERMIT context.
I can see the binding at the top level, though, and I can unfold that:
module Main where
  $dmnegate' ∷ ∀ a . Num' a → a → a
  $fNum'Int ∷ Num' Int
  $cnegate' ∷ Int → Int
  f ∷ Int → Int
  main ∷ IO ()
  main ∷ IO ()
hermit<0> occurrence-of '$cnegate'
$cnegate'
hermit<1> unfold
$dmnegate' ▲ $fNum'Int

My HERMIT skills are a bit rusty.  Is there anyway to substitute $cnegate for negate' in the rhs of 'f in this example, such that you could use local class redefinitions as a workaround?
hermit<2> top
hermit<3> rhs-of 'f
λ x → negate' ▲ $fNum'Int x

At least until Drew or whoever has time to hack in using built-in rules as an alternative unfolding mechanism?

Note to self:
https://github.com/ghc/ghc/blob/f3cc34568b13abb29de7b54a5f657681e9e116ca/compiler/basicTypes/MkId.hs#L291

On a related note, @conal, I'm going to send you an introductory email when I get back to my office tomorrow.
I've been doing some initial research into (possibly) using HERMIT as part of a Haskell-to-hardware workflow, though my focus is much less general than what you're trying to do with circat.

@conal I created a separate issue (#159) outlining my plan to fix this. I should have this done tomorrow.

@xich That's wonderful. Thanks very much for the help, and sorry to keep you up late.

I just pushed a commit which should fix this for you. Please let me know if you run into problems!

@xich eee34d4c8c04505e9081bdb615cddf35d40446e9 works great! I'm unstuck now. I sure appreciate your help.
hermit<0> rhs-of 'addI
\ x -> (+) Int $fNumInt x (I# 3)
hermit<1> bash
Error in expression: bash
Rewrite failed:bash failed: nothing to do.
hermit<1> lam-body
(+) Int $fNumInt x (I# 3)
hermit<2> unfold
(case $fNumInt of tpl (Int -> Int -> Int)
   D:Num tpl tpl tpl tpl tpl tpl tpl -> tpl) x (I# 3)

W00t!


Fixed typo in updater (german snippets)

1. Why is this change necessary?
Because in Germany we do not tolerate spelling mistakes.
2. What does this change do, exactly?
It fixes a spelling mistake in the updater.
3. Describe each step to reproduce the issue or behaviour.
None.
4. Please link to the relevant issues (if any).
None.
5. Which documentation changes (if any) need to be made because of this PR?
None.
6. Checklist

[ ] I have written tests and verified that they fail without my change
[x] I have squashed any insignificant commits
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[x] I have read the contribution requirements and fulfil them.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-22647
Please use this issue to track the state of your pull request.

Thank you @jkrzefski for not tolerating spelling mistakes! 💙


Allow empty recipe property in builders/tester in engine v2.

In https://flutter-review.googlesource.com/c/recipes/+/40881 there is a suggestion about not using defaults for recipes. This suggestion requires more discussion and it will force to explicitly provide recipe properties for all the configurations using engine v2.
Some discussion points:

Cost/benefit of adding that change.
How much would that change deviate from the engine v2 design of a single tester, builder recipe?
What are the changes required both in Dart and Flutter.

\cc @whesse @keyonghan

The inspiration for the discussion in the linked review is that all of the monorepo engine_v2 builders and testers get their recipe from the builder configuration in LUCI, and do not need it to be set or overridden by the builder configuration in the engine_v2 json builder configuration.
But it does not break anything to set it in the engine_v2 json configuration files, and the recipe set for the builder in the LUCI configuration of the builder will then always be overridden.
So I don't think it is worth a lot of discussion on the issue - I am fine with always needing to specify a recipe for each builder in the config, or else it will be the default chosen by engine_v2.  Then the default specified in LUCI config will never be used.
So since I was the only one bringing up this request, I think we can close the issue and not implement the feature.


Extra argument 'method' in call

This line doesn't work on 4.0.0:
Alamofire.request("https://httpbin.org/post", method: .post, parameters: [], encoding: JSONEncoding.default)
I get "Extra argument 'method' in call" error.
I'm using XCode8 GM and your latest version.

First of all : don't post this here, post it on Stack Overflow and tag it with Alamofire (I'm also monitoring those so you'd get the same answer but others could see it). As stated in the README, Github is for bugs and this isn't one.
Anyhow : parameters is of type Parameters? aka [String : Any]? and therefore giving it [] aka an empty Array is wrong (I'll admit that the error message is very misleading). You can write parameters: [:] (empty Dictionary), write nil or leave the whole parameters part out.

I'm getting the same issue, with the same error message ("Extra argument 'method' in call"), with correct parameters: syntax. The exact same argument structure worked before the latest project update. Are you sure this shouldn't be noted as a bug?
Alamofire.request("https://servername.org/post", method: .post, parameters: [:], encoding: JSONEncoding.default)

I'm quite sure, because I'm able to reproduce the issue and fix it with all three options I presented. Nevertheless, I'm happy to help you out if you could post the surrounding code to reproduce the issue with parameters: [:]. And truthfully, I believe leaving out the parameters: part is the most elegant way IMO.

@thebluepotato  Thanks for clarifying when to use Stackoverflow and when to use GitHub.
Turns out my original error was that I was trying to pass a URLRequest and not a URLConvertible. While reproducing I ended up with the string i presented when creating this topic which only led to more confusion. But now it works for me. Thank you.

If you can give a hand even though the issue belongs on Stackoverflow, I truly appreciate it - here's the code I'm running (using Alamofire 4.0.0):
Alamofire.request("http://\(ipAddr)/YamahaRemoteControl/ctrl", method: .post, parameters: [:], encoding: .custom({         (convertible, params) in         var mutableRequest = convertible.urlRequest as URLRequest         mutableRequest.httpBody = "<YAMAHA_AV cmd=\"PUT\"><Main_Zone><Input><Input_Sel>\(input)</Input_Sel></Input></Main_Zone></YAMAHA_AV>".data(using: String.Encoding.utf8, allowLossyConversion: false)         return (mutableRequest, nil)         }         ))
The request sends a UTF8 string to an AV receiver to control the input, volume etc, depending on the content of the string. The code above results in the "Extra argument 'method' in call" error whether I include the parameters: [:] argument or not.
I used the exact same code successfully yesterday, using the swift3 branch via Cocoapods.

@otherbuns Take a look at our migration guide you'll see that our parameter encoding methods have radically changed for Alamofire 4.  Instead you can wrap your encoding logic in a type conforming to ParameterEncoding.

@otherbuns Any time one argument is of the wrong type, the Swift interpreter here believes that you're wrongly using request(urlRequest:URLRequestConvertible) and therefore believes there's an extra method: argument.
What you should have done is read the release notes. Because one of the very last-minute and very nice additions to 4.0.0 is the ParameterEncoding protocol. More info here #1465 and here https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire 4.0 Migration Guide.md#parameter-encoding-protocol and mostly here https://github.com/Alamofire/Alamofire/#custom-encoding. Basically, you have to write your own struct conforming to ParameterEncoding with a function returning the encoded parameters.

Now that you point it out, I really wonder how I managed to miss it. Thanks a lot for your help, even if the answer was right before my nose!

@thebluepotato Thank you for clarifying about Swift's non helpful response.
My issue was that Alamofire will not accept parameters which are arrays of the form [1,2,3], they have to be dictionaries like ["list": [1,2,3]].

Hi, guys. I should must use [Int] for parameter. How to solve my problem?
Please help me.

Hi Guys:
I also meet Extra argument 'method' in call, still cannot find one solution.

Hey @kevinlee85, the easiest way to fix your issue is to comment the code out and rebuild it with auto-complete. The error is usually pretty obvious when you do it that way.

This one worked for me.
No need to remove encoding parameter
Swift 3.0
Alamofire.request("https://yourServiceURL.com", method: .post, parameters: parameters, encoding: JSONEncoding.default, headers: nil).responseJSON { (response:DataResponse) in
    switch(response.result) {
    case .success(_):
        if let data = response.result.value{
            print(response.result.value)
        }
        break

    case .failure(_):
        print(response.result.error)
        break

    }
}

and make sure that the parameters are of type
[String:Any]?
In case of Get
Alamofire.request("https://yourGetURL.com", method: .get, parameters: ["":""], encoding: URLEncoding.default, headers: nil).responseJSON { (response:DataResponse) in
    switch(response.result) {
    case .success(_):
        if let data = response.result.value{
            print(response.result.value)
        }
        break

    case .failure(_):
        print(response.result.error)
        break

    }
}

Even works with
JSONEncoding.default
For Headers
If you are passing headers, make sure their type should be [String:String]
Go through the Parameter Encoding Link https://github.com/Alamofire/Alamofire/blob/master/Documentation/Alamofire 4.0 Migration Guide.md#parameter-encoding-protocol

@cnoon I'm having the same problem. I read the doc and added extra struct as suggested in the readingMe.
//Add below two struct for data upload efficiency test
struct JSONDocumentArrayEncoding: ParameterEncoding {
private let array: [Document]
init(array:[Document]) {
self.array = array
}
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
var urlRequest = urlRequest.urlRequest
    let data = try JSONSerialization.data(withJSONObject: array, options: [])

    if urlRequest!.value(forHTTPHeaderField: "Content-Type") == nil {
        urlRequest!.setValue("application/json", forHTTPHeaderField: "Content-Type")
    }

    urlRequest!.httpBody = data

    return urlRequest!
}

}
Then use this method for request using Alamofire.SessionManager as custom manager, parameter is an array of document object. The purpose of this custom encoding is to encode the array of objects.
request = customAlamofireManager.request(
ServerURL,
method: .post,
parameters: [documents],
encoding: JSONDocumentArrayEncoding,
headers: headers
)
request!.validate{ request, response, data in
return .success
}
.responseJSON {
Same error, because param is not a dictionary. However there need a way to pass in this array param. I'm also having another Struct to make Gzip array of objects. I get the same error as this one. There must be a way to pass in body data for encode.
Thanks

@thebluepotato Did as same as the instruction suggested, but how to pass in the array parameter? Thanks

Answer my own question here, find a way to pass in custom encoded request to Alamofire.DataRequest to escape the above mentioned method with parameters, which is not used anyway.
func uploadBatchDocumentsWithDocs(_ documents: [Any]) {
let headers = NetworkManager.sharedInstance.headers
var urlRequest = URLRequest(url: URL(string: (ServerURL + Api))!)
urlRequest.httpMethod = "post"
urlRequest.allHTTPHeaderFields = headers
let jsonArrayencoding = JSONDocumentArrayEncoding(array: documents)
let jsonAryEncodedRequest = try? jsonArrayencoding.encode(urlRequest, with: nil)
    var request: Alamofire.DataRequest? = customAlamofireManager.request(jsonAryEncodedRequest!)
    request?.validate{request, response, data in
        return .success
        }
        .responseJSON {

...
}

Just commenting--If you're sure that your request(params) are correct, then try building anyway. XCode was giving me errors in inspector, but then everything built without a problem.

Same issue, I fixed it by:
Alamofire.request("", method: HTTPMethod.post, parameters: Parameters, encoding: JSONEncoding.default, headers: httpHeaders)

FTR, this happened to me when i was using an optional variable in the parameters attribute
variable?.toJSON()

@popsware You can use the method I mentioned above to avoid that. It works.

if you use headers you must define let headers : [String : String] = not just  let headers =

As @Innolabdev mentioned, HTTPHeaders is not of type [String: Any]? but public typealias HTTPHeaders = [String: String] ...that's why it wasn't working for me

Okay, I find a interesting problem: ( I use swift4 and Alamofire4.7)
Alamofire.request(Constraint.PIC_STAR_URL, method: .post, parameters: params, encoding:.httpBody, headers:nil) will touch the error
Alamofire.request(Constraint.PIC_STAR_URL, method: .post, parameters: params, encoding: URLEncoding.httpBody, headers:nil) will touch no error
So, don't use the abbreviation of swift.

@ExplosiveBattery


Set SSL_CTX_set_verify even if pem_client_root_certs is null

In current implementation, if pem_client_root_certs is null, then client_certificate_request option is ignored. In such case, server side will always not requiring any certificates from client.
With this fix, server can set GRPC_SSL_REQUEST_CLIENT_CERTIFICATE_BUT_DONT_VERIFY and obtain client certificate even server does not config any root pem.

#12146

more context: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/grpc-io/KukId711HTE/VXTkLsGeBgAJ

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++

 -------------- SHRINK --------------
  [ = ]       0 [None]     -88  -0.0%

  [ = ]       0 TOTAL      -88  -0.0%

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,026,842      Total (=)      2,026,842

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,311,964      Total (<)     11,311,972

 No significant differences in binary sizes

[microbenchmarks] No significant performance differences

Tested with both openssl and boringssl. If server does not set any root but require and verify client certificate. Handshake will fail as expected.


[docs] Add further improvements to the product identifier

Following up on the release of the docs separation, there are a couple of things we left out on the product identifier that would make it even better. This is an issue to keep track of those improvements.
Highlight the current product I'm seeing
Currently, if you're at the Material UI docs, for example, and you open the product identifier, there isn't a visual affordance highlighting which product you're currently at. It's a small refinement/detail to improve it slightly.

Add it to the "docs" button on the marketing pages nav bar
This is something @mbrookes suggested to me a couple weeks ago and I think it makes sense. It skips additional clicks as that button today leaves you straight to the Material UI doc, which could not be the one you're looking for. The "Product" button then takes you to each product marketing page, and then the "Docs" button takes you to their docs.

Do you have more you're thinking about? Let's group them in this issue!

I've been actually considering removing them altogether! The initial intention to have them was for two main reasons: consistency with the "Product" menu from the marketing pages navbar and to not lose an opportunity to reinforce what each product is about. Given this menu could be used somewhat often, I'm starting to think that the descriptions showing and disappearing could become annoying. @oliviertassinari was also pointing to an interaction issue regarding it in https://github.com/mui/material-ui/pull/31914
Any objections to removing it or alternative ideas?

I do like the at-a-glance explanations of the products—it's nice not to have to click through to try to find out what each one is. I don't find them annoying from the perspective of someone who already knows what they are.

Another update I've been thinking about—still a work in progress, but once we have Overview pages for each product, I think the links on this menu should lead to those pages instead of Installation. This could help to address the lack of taglines if we decided to remove them, because then at least when you do click through you'll have a clear and concise introduction to the product.

This is an alternative design we could consider too if we're to go for the removing-taglines path. It occupies less vertical space and it looks simpler?! Loved the idea of linking them to the Overview page, we should definitely do that!

If that's the preferred design, perhaps we could partly address https://github.com/mui/material-ui/issues/32591#issuecomment-1117521929 by showing the description of the chip being hovered below the chips?

edit: on second thought, it is probably too busy if they are always visible in the current design. This would probably require a lot of extra space to make it work.

⬆  Just so we have a visualization of it — which I'm not entirely against, it has the con of possibly being too much text but it is clearer and simpler. I'm afraid that showing things on hover will still demand dealing with the container's overall height. We'd have to whether make it static so it doesn't jump around (current implementation) or just leave it to resize as you interact with it (probably not the best idea).
I must confess that it bothers me a bit the extra space we had to create there in order to not have the container resizing, I don't appreciate it 😅

I must confess that it bothers me a bit the extra space we had to create there in order to not have the container resizing, I don't appreciate it

I think with the buttons it might be okay. At the moment thy are quite close to the horizontal divider. The white space reserved for the description would solve that.

You mean this?
No interaction

Hovered

Much better 👍

One tweak might be to show the description of the currently selected page (if any), so Material UI in your "No interaction" example. Not 100% on this, to be tested in development.


Fluent builders to configure  object graph equation function

A fluent builder would be nice to configure your object graph equation function.

Thanks for the suggestion. Can you give an example of what you mean, and what the advantages of using a builder is?

I need to ignore some fields in some test cases not globally. "With" extension and your example is enough for me .
var cfg = Reassure.DefaultConfiguration.DeepClone();
cfg.Harvesting.FieldValueSelectors.Add((o, pi) => pi.Name.StartsWith("S"));
someObject.With(cfg).Is("{ StartTime = ... StopTime = ... }");


Comparisons against cuSparse and Magma

❓ Questions and Help
Hi, great work!
I was wondering, how does this library perform against older CUDA sparse solvers like cuSparse (https://docs.nvidia.com/cuda/cusparse/index.html) and Magma (https://icl.utk.edu/projectsfiles/magma/doxygen/_m_a_g_m_a-sparse.html)? Is this included in the benchmarks?
Thanks

No, not really. The benchmarks only have as an alternative CHOLMOD. It would actually be great having those two for comparison. I think comparison with cuSparse would not be really apples-to-apples anyway, because it doesn't use a supernodal algorithm and just offers incomplete Cholesky on a pre-built sparsity pattern.
For Theseus (I wrote BaSpaCho for) we implemented cuSolver's refactor as an alternative (see: https://docs.nvidia.com/cuda/cusolver/index.html#cusolverrf-refactorization) which does LU decomposition, but creates a context for parallel decomposition of similar matrices, and could indeed use dense operations internally (I don't know what it does exactly as it's closed source). However, in Theseus BaSpaCho is doing much better than cuSolverRF (like 10x or so, check out the paper linked by https://github.com/facebookresearch/theseus).
Feel free to open an issue about extending benchmarking against more libraries, it would indeed be great having more comparisons.

Mh checking out https://icl.utk.edu/projectsfiles/magma/doxygen/group__magmasparse__dhepr.html it looks like what MAGMA does when creating a preconditioner for a symmetric matrix is using cuSparse's incomplete Cholesky "ic". On the solvers (https://icl.utk.edu/projectsfiles/magma/doxygen/group__magmasparse__dposv.html) it says that the linear system is solved with (peconditioned) Conjugate Gradient, so it doesn't look like it offers any direct solver for sparse matrices apart from what is already in cuSparse. Or am I missing something?


Initial tag job for  ipfs and GH release

when pushing a tag this will run a job that installs IPFS and gets a hash of the build dir then outputs it to a file. we then zip the build dir and get ready to uploads those 2 assets to github as part of a release.

this job wont trigger on a PR, but you can see it in action here:
https://dev.azure.com/augurproject/augur/_build/results?buildId=9227


Composite builds confuse projects with same name/path with outer the project

Current Behavior
When using includeBuild on a build which contains a project of same name/path as the outer build, java fails to compile due to circular dependencies.
Expected Behavior
expected java to compile and run with no issues, as the projects and deoendencies all hooked up to correct locations in my ide (Intelij IDEA)
Context (optional)
I was attempting to substituate a included dependency to make development less of a hassle.
Edit ProjectA -> publish to local maven -> reimport ProjectB
Self-contained Reproducer Project
https://github.com/ApexModder/CicularDependencyTest
Both projects should function perfectly fine on their own but :Mod does require :Library so publishing will be necessary without using includeBuild.
Expected :Mod to be able to access :Librarys sub-projects, any edits made to them and be able to compile against them, but java fails due to circular dependencies.
FAILURE: Build failed with an exception.

* What went wrong:
Circular dependency between the following tasks:
:Vanilla:compileJava
\--- :Vanilla:compileJava (*)

(*) - details omitted (listed previously)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 874ms

Nowhere am i telling :Vanilla to depend on itself, other than if gradle is confusing :Library:Vanilla for :Mod:Vanilla even though they are apart of 2 completely separate builds.
Gradle version
8.8
Build scan URL (optional)
No response
Your Environment (optional)
I am running under the following

Windows 11 (23H2)
Java eclipse-temurin-21
Gradle Wrapper: 8.8
Intellij IDEA Ultimate 2024.2.3

This issue will be closed as a duplicate of

https://github.com/gradle/gradle/issues/847

Please add your use case and 👍 to that issue.
If you think our analysis is wrong, please provide us with more detailed information explaining why.


Set time_nanos in wasmTypes.BlockInfo

This field will be added with 0.11 (https://github.com/CosmWasm/go-cosmwasm/issues/137)

Replaces #244


Update environment.yml

Updating metview to latest version.  Current yml file installs a metview that doesn't work in a fresh install on my Mac and gcloud instances

Just added moisture_dataset.py to demonstrate how to merge/process the AR ML datasets into a unified CO ML dataset.


Bug 1961320: feat(metrics): Emit metrics for CatalogSource state

Upstream-commits:
193496c3ba10ca9ceb6118b5ca6354c9d9f781f7
691a373dbbb53ed00f773f892e5e83b9ca15bb2a
d83b00cf9d9da24c0a68317d8afbea66110a49d8
Upstream-repo: https://github.com/operator-framework/operator-lifecycle-manager
Signed-off-by: Anik Bhattacharjee<EMAIL_ADDRESS>

/lgtm


BUG: Donations say they cost 0

Actually, that's how much the 20 tokens you acquire are worth, according to your network valuations.
The cost of the donation is up top:

if I change it to 20 PUB (worth ⱡ0.00), is that enough?


Session timeouts with LDAP users

I am happy with internal users, session works well with kibana settings:
opendistro_security.session.keepalive: true
opendistro_security.cookie.ttl: 0
opendistro_security.session.ttl: 259200000

But I have session timeout, in few minutes, with LDAP users logged in. Even if I am logged in as an LDAP user, I sometimes see no index exists message in visualization. (Could not locate that index-pattern (id: AWKUrBJZGsWMYrgk6_P1), click here to re-create it).
Is there any way to configure timeout/keepalive for LDAP users too?

We are doing some "spring cleaning in the fall", and to make sure we focus our energies on the right issues and we get a better picture of the state of the repo, we are closing all issues that we are carrying over from the ODFE era (ODFE is no longer supported/maintained, see post here).
If you believe this issue should still be considered for current versions of OpenSearch, apologies! Please let us know by re-opening it.
Thanks!


Feature Request: MIUI lock screen support

QuoteLockX is a great plugin to display some extra info in lockscreen, but just support Only near-AOSP Android ROMs, it'a pity.
so, could this plugin support any other ROM, like MIUI?

Thanks for your feedback.
Indeed, some people have asked me to adapt for MIUI before, and I hope to do this too. However, since there is no MIUI device around me and I have less free time too, the adaptation task can only be scheduled after I get a MIUI device.


Failed to download macOS installation image

Title describes issue and following is terminal error.
Could not replicate https://swscan.apple.com/content/catalogs/others/index-10.15seed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog: Command '['/usr/bin/wget', '-c', '--quiet', '-x', '-nH', 'https://swscan.apple.com/content/catalogs/others/index-10.15seed-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog']' returned non-zero exit status 4

Same problem

I'm having the same problem. Has anyone managed to fix it?


Backport KNewStuff/Discover cache expiration patches

Description of changes
Upstream requests that we backport these patches for KNewStuff and Discover to mitigate the effect of a cache expiration bug on the KDE servers.
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

The number of rebuilt packages is smaller than it appears: approximately 732 packages that would be rebuilt are marked broken.


Go_router how to acces the current location ?

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Update package from go_router version ^7.0.0 to ^10.0.0
In code using this method : GoRouter.of(context).location to get the current path location.

Expected results
Add migrating steps ...
Add documentation ...
Actual results
Got this message :
The getter 'location' isn't defined for the type 'GoRouter'.
Try importing the library that defines 'location', correcting the name to the name of an existing getter, or defining a getter or field named 'location'.

Code sample
Code sample
var currentPath = 'https://myhostname.com${GoRouter.of(context).location}'

Screenshots or Video

Screenshots / Video demonstration

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-arm64, locale fr-FR)
    • Flutter version 3.10.6 on channel stable at /Users/arthurregnard/development/tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (3 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/arthurregnard/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode-14.2.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.80.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.70.0

[✓] Connected device (3 available)
    • iPhone 14 Pro (mobile) • E046712A-5191-4723-9A5B-C801286978FA • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 13.4.1 22F770820d
      darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome
      115.0.5790.114

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Hi @ArthurREGNARD, there are migration docs for go_router. See https://pub.dev/packages/go_router#migration-guides
Closing from here as the docs specify how to achieve what you want to achieve.


Markdown and HTML not working

Hello folks,
Perhaps I'm just being dumb, but I'm not able to use either HTML or Markdown formatting.
I'm sending like that:
b.Send(USER, fmt.Sprintf("Query Finished in %.2f seconds\n**No results**", duration.Seconds()), &tb.SendOptions{ParseMode: tb.ModeMarkdown})

I also tried just specifying tb.ModeMarkdown directly instead of putting it inside tb.SendOptions.
I'm receiving **No results** in plaintext instead of the expected bold. Changing to <b> and using HTML also doesn't work.
What am I doing wrong?

Make sure you follow formatting options syntax

Found the problem(s):

You must use MarkdownV2
You must escape dots \.
You must escape dashes \-


Filter Icon is not working : after click on filter whole grid and webpart is getting closed

Hi Stefan,
Thanks for this webpart. I am stuck at one point in my webpart i am getting the json data through search api, and i am able to load everthing properly. kendo grid is loading, search is also working but whenever i am clicking on filter icon whole grid is getting closed and in console i am getting below error:
Cannot set property 'getCurrentStack' undefined. Please provide the guidance.

One more thing i found like whenever i am testing this in local workbench its working fine, but in Sharepoint workbench its showing above behaviour.


Renaming in 0.13 breaks slacker-cli

As I've reported at https://github.com/juanpabloaj/slacker-cli/issues/33, The renaming of utils to utilities in release 0.13 has broken slacker-cli.

Please see https://github.com/juanpabloaj/slacker-cli/pull/35 for a fix.

Thanks for this, @billygout. Even though we try our best not to we might release some breaking changes in time to time, so it's better to specify the version in your requirements instead. We're not going to address this so I'm closing this issue.


test: Maybe fix TestPendingRetryWorkflowWithRetryStrategy. Fixes #2446

Checklist:

[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[x] I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
[x] Optional. I've added My organization is added to the USERS.md.
[ ] I've signed the CLA and required builds are green.

PLEASE DON'T WAIT FOR ME TO MERGE THIS ONE!


Release sha256 file is wrong for jib-cli

Environment:

Jib version: v0.9.0

Description of the issue:
The file name in the sha256 file is wrong
https://github.com/GoogleContainerTools/jib/releases/download/v0.9.0-cli/jib-jre-0.9.0.zip.sha256
Expected behavior:
File name must be jib-jre-0.9.0.zip instead of  jib-0.9.0.zip
Steps to reproduce:
$ sha256sum -c jib-jre-0.9.0.zip.sha256
sha256sum: jib-0.9.0.zip: No such file or directory

I see the two files "jib-jre-0.9.0.zip" and "jib-jre-0.9.0.zip.sha256" in GitHub's release page.

Are you referring somewhere different?

Now I understand the problem.
suztomo@suztomo:/tmp$ sha256sum -c jib-jre-0.9.0.zip.sha256
sha256sum: jib-0.9.0.zip: No such file or directory
jib-0.9.0.zip: FAILED open or read
sha256sum: WARNING: 1 listed file could not be read
suztomo@suztomo:/tmp$ cat jib-jre-0.9.0.zip.sha256
c0f47017f1218a223f51228cc69fe9d7793e600d8a05b11e4dbdba0dee6bfc11  jib-0.9.0.zip

suztomo@suztomo:/tmp$ sha256sum --help
...
  -c, --check          read SHA256 sums from the FILEs and check them

@vlagorce thanks for reporting this issue! Jib CLI 0.10.0 with this fix has been released.


Design an interface for diffrent AI (SPIKE)

AC:

we want to be able to switch between AI (OpenAI, Google, MS, ...)
document how this can be implemented

lets check the implementation of https://github.com/MarketSquare/Robotframework-Database-Library to see how they are working with different databases, but utilizing same keyword names for each.

Wrong issue


aintnumbers.com

aintnumbers.com
Add AintNumbers to the tool's URL search list
Brief
The site contains articles for martyred children, each article is named after a martyred child. The site allows searching article by text.
A search query can be constructed using the following pattern: A search query can be constructed https://www.aintnumbers.com/?s={search_query}
Search results are paginated, It's possible to iterate the results pages using the pattern https://www.aintnumbers.com/page/{pagination}/?s={search_query}.
Startegy

Construct a search query by substituting the name for the search_query in the search query pattern.
Grab the results page.
Check the page source for the name.
Iterate the search pages til a 404 Error is returned.

@smashah has already done this, but I added it to complete the URL search list.


Create a contact info block

Add links to social networks (LinkedIn, Facebook, Instagram), phone number, email, Telegram username, etc.

Check out my social media pages:
LinkedIn
Email<EMAIL_ADDRESS>


Support for net standard 1.1 (match profile111).

Deleted one zombie file.
Added build_package_netstandard.ps1 to build netstandard with msbuild 15.
Added netstandard test library.
Update version to 1.0.3.

Build is failing on travis cause it doesnt reference msbuild 15 but xbuild.
Since the release of VS for Mac, there is a msbuild 15 implementation for mac os / linux.

Hi Roubachof,
Thank you for the PR.
I'm having a few more days off work, and mostly away from laptops, but I will look into this next week.
Do you think you could get it to build on travis?

@markmeeus I will try to play with the travis.yml file see if it can use msbuild instead of xbuild.

Hi,
I took a closer look at your PR (thanks again btw).
A few remarks:
1: I'm not sure why we need a separate build_package script, can't we build the standard1.1 in the existing build_package script?
2: Obviously, the travis build is broken :-) The travis build does not actually build the package, it is just running the tests. (Most of MarcelloDB is plaform independent, so we can run in on mono).
I'm not sure how to get msbuild working in Travis, but we don't really need to because the complete build has to be done on a Windows Machine any way. (for the 8.1/10 platform stuff). This is the reasoning behind the MarcelloDB.win.sln.
(I build the package manually inside a vm)
So if you add the standard1.1 to that solution and remove it from the main solution, it will get build with the regular build script. (Just need to add the correct files in the package).
3: I haven't been following the .net world as much lately.
I thought it would be as simple as packaging MarcelloDB.dll as the standard1.1 version because profile 111 can be used as standard 1.1. (https://docs.microsoft.com/en-us/dotnet/standard/net-standard) (Check the PCL compatibility part)
If this is the case, we don't even need a separate project, just copy the marcellodb.dll to the appropriate package folder and we're done.

hey mark !

we don't need it. It's just that my configuration is not really compatible with your tools pathes. So I created my own (msbuild 15 and nuget).
I don't understand why it's failing on Travis. It use latest mono so it should have msbuild 15, and it's "working on my machine" with the command line :/.
It's not really that easy cause I also converter the ols csproj to the new one. Also many folks out there haven't the correct Visual Studio version supporting .net standard. So I think it's better to have 2 csproj for now. And later just you can just delete the PCL csproj.


Bind TabContainer::get_tab_idx_at_point() to ClassDB

As it currently stands, there's no reliable way from the GDScript to determine which tab the mouse is over, which is pretty important for being able to generate a relevant tooltip. This binds the already-used internal method to determine this to ClassDB.
This update is for the master branch.  The 3.x version is located here.

Looks good. Should the same be done for Tabs?

I checked the method and you should also mention in the doc that it returns -1 if there is no tab at the queried position. Other than that it's fine.

Hopefully that covers all the bases.  My inbox is getting flooded with messages about cancelled build jobs 😵

Thanks!


Fix the atomicity of the language definition cache

Describe the bug
The language definition cache (introduced in #583) is designed to cache the necessary components for the Topiary API for a given input file type. This has been implemented to be thread-safe, as it is used concurrently, with a RwLock: First the read lock is acquired, to retrieve the cache contents if it exists; otherwise, the read lock is released and a write lock is acquired to update the cache and return the appropriate value.
This works and is thread-safe, but it doesn't exhibit the desired behaviour. When multiple consumers of the cache (in our case, async futures) query the cache more-or-less simultaneously, they (almost) all bypass the read branch of the code -- because the cache is empty -- and hit the write branch. This flaunts the point of the cache to reduce writes (which involves disk IO to produce the value).
To Reproduce

Create a directory named, for example, test. In that directory, create a simple JSON file and reproduce it 200 times:
$ mkdir test
$ jq -n "{test:123}" > test/test0.json
$ for i in $(seq 200); do cp test/test0.json test/test${i}.json; done

Format the contents of this directory, with the logging level turned up, and search for Cache in the output:
$ RUST_LOG=debug topiary fmt test 2>&1 | grep Cache

You will see 201 lines that almost all look like this:
[2023-08-24T09:58:20Z DEBUG topiary::language] Cache 0x7fffffff6af0: Insert at 0xb503fcb641e7c545 (json, json.scm)

You may get lucky and some of the lines will look like this:
[2023-08-24T09:58:20Z DEBUG topiary::language] Cache 0x7fffffff6af0: Hit at 0xb503fcb641e7c545 (json, json.scm)

Expected behavior
In the logging output, we should see the first line look something like this:
[2023-08-24T09:58:20Z DEBUG topiary::language] Cache 0x7fffffff6af0: Insert at 0xb503fcb641e7c545 (json, json.scm)

Then we should see 200 lines that look like this:
[2023-08-24T09:58:20Z DEBUG topiary::language] Cache 0x7fffffff6af0: Hit at 0xb503fcb641e7c545 (json, json.scm)

Environment

OS name + version: NixOS 23.05
Version of the code: 004c4c3099eca

Additional context
The obvious solution would be to wrap the cache (a HashMap) in a Mutex, rather than a RwLock; i.e., lock the whole thing on access. Unfortunately, this isn't as straightforward as it seems, because we have to use an async scope to placate the borrow checker. That imposes a Send constraint, which is not satisfied by this simple change.
:bulb: This issue may conflict with the lazy loading effort (see XXX).

@ErinvanderVeen Is there a branch/PR/issue for the lazy loading, so we can cross-reference it here?

Tokio's Mutex may be the fix to the problem...


Disable DuckDB result check for Spark max_by and min_by functions

Fixes https://github.com/facebookincubator/velox/issues/7677.

@rui-mo Rui, wondering if we are making some progress on replacing DuckDB with Spark in the fuzzers.

@rui-mo Rui, wondering if we are making some progress on replacing DuckDB with Spark in the fuzzers.

@mbasmanova Masha, thank you for reminding. @zhztheplayer will take a look with me to find a feasible way, including how to submit job to Spark, and how to fetch result from Spark. cc @zhouyuan


[nrf fromlist] boards: nordic: nrf54l15pdk: Added arduino i2c

Added arduino_i2c for nRF54L15PDK.  Needed for shields.
Signed-off-by: Andy Sinclair<EMAIL_ADDRESS>(cherry picked from commit b392d31fa992d5d082905b2b2f272311e658d8a1)

Abandoned, will be handled downstream with extensions instead.


Exception when listing profiles via CLI/Python SDK and list is empty

The following exception occurs when trying to list profiles from a user with no profile.
$> triage list-profiles
Traceback (most recent call last):
  File "/home/user/venvs/hatching/bin/triage", line 8, in <module>
    sys.exit(cli())
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/cli/triage.py", line 366, in list_profiles
    for i in c.profiles():
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/triage/pagination.py", line 49, in __next__
    if not self._fetch_next_page():
  File "/home/user/venvs/hatching/lib/python3.9/site-packages/triage/pagination.py", line 40, in _fetch_next_page
    return len(resp['data']) > 0
TypeError: object of type 'NoneType' has no len()

Creating a profile removes the error, deleting it makes it reappear
(create a profile)
$> triage list-profiles
test
  timeout: 120
  network: internet
  tags: ['test']
  id: xxxxxxxxxx-xxxxx-xxxxx
triage delete-profile -p test
{}
$> triage list-profiles
Traceback (most recent call last):
(...)
TypeError: object of type 'NoneType' has no len()

Thanks for reporting this @goulou.
I've made some changes that should solve this.


show contact sales card when not on a limited plan.

Summary
Show contact sales card for enterprise plan and legacy plan. Show subscription card for legacy plan. Having reviewed the legacy plan page, it looks ok to me with the exception of the planned work for paid legacy customers to be prompted to change to professional (instead of the current prompt to change to starter)
To minimize review churn and because it was a fairly simple change, I also implemented https://mattermost.atlassian.net/browse/MM-44771 as part of this PR.
Ticket Link
https://mattermost.atlassian.net/browse/MM-44760
https://mattermost.atlassian.net/browse/MM-44771
Related Pull Requests
Screenshots
Using a higher quality cloud mock made it a lot easier to see what all these screens look like:
Cloud Starter Free

Cloud Starter Paid (legacy)

Cloud Professional

Cloud Enterprise

Cloud Legacy

Release Note
NONE

/e2e-test

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/202047

@neallred

Can we change "View all benefits" to "View all features"?
Justine has pointed out that we don't use "benefits" elsewhere.

Updated. Assuming spinwick build is successful, you should see the change in about 30 minutes if you refresh the page.

And likewise Explore Enterprise features?

Yes good catch, that too

For Professional:

Given that they are a paying customer, we need to show them the billing summary like Enterprise on the RHS

I can do that, but it conflicts with designs showing an upgrade card: https://www.figma.com/file/Aob5ffHtfjKzQoebR93ycA/Cloud-Freemium?node-id=3183%3A216991

@marianunez that works

/cherry-pick cloud

Cherry pick is scheduled.


Stackblitz REPLs not working on Firefox

Introduced with https://github.com/Rich-Harris/svelte-cubed/commit/b002447dbf4e59cf10467aa60df703c88e1fa7f8
Firefox still has no support for WebContainers, it might make sense to keep the Svelte REPL links as fallback for non-Chrome browsers at the moment.

Unfortunately this library stopped working in the REPL (#14) — something to do with unpkg resolving to the non-ESM build, or something — and so that's not an option, unfortunately. The best alternative for people who can't use Chromium for whatever reason is probably to create a project locally with npm init svelte@next.

Ok, thanks for the feedback.
From what I can tell (Firefox on Linux right now), the Svelte REPL examples seem to be working correctly, there seems to be a lengthy bundling step happening whenever I make a change in the code, but otherwise it renders well. Let me know if I can help with debugging in any way.


Fix spam-flagging of noisebridge emails

Sometimes our emails to the noisebridge list are marked as spam. We need a rake task that flags them as-not spam every night.

Start here I think - https://sendgrid.com/docs/API_Reference/Web_API/spam_reports.html

Fixed with. Using a webhook instead of a worker
https://github.com/rails-school/school/pull/147

Unfortunately this isn't working :(

We need to clear out this record from sendgrid when we receive the webhook, but it is evidently not being cleared out.

@gkop  I tested this from the command line and was able to clear the one spam report occurrence on sendgrid. Everything appears to be working so can we close this ticket?

Sure! Was probably an issue with sendgrid.


Fix warning for resolve mismatch in workspace.

Using the new resolve field would cause a warning in a workspace that the member's resolve setting will be ignored, even if it is not set.
warning: resolver for the non root package will be ignored, specify resolver at the workspace root:
The code should only check the package member if the member's value is set.

r? @alexcrichton
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit 5907db65995084acc5d84ce81630336ad96afcda has been approved by alexcrichton

:hourglass: Testing commit 5907db65995084acc5d84ce81630336ad96afcda with merge 2ba9df503a1f133020654824b85ed23e825d1c07...

:sunny: Test successful - checks-azure
Approved by: alexcrichton
Pushing 2ba9df503a1f133020654824b85ed23e825d1c07 to master...


Error creating from environment.yml

It seems the environment file is broken when following the code at the top of the environment.yml file:
$ conda create --name fold2seq --file environment.yml
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - rdflib==5.0.0=pypi_0
  - decorator==4.4.2=pypi_0
  - pandas==1.2.3=pypi_0
  - libidn2==2.3.0=h516909a_0
  - mmseqs2==13.45111=h95f258a_1
  - jinja2==2.11.3=pypi_0
  - libgcc-ng==9.3.0=h2828fa1_18
  - pytorch==1.7.1=py3.8_cuda10.2.89_cudnn7.6.5_0
  - torchaudio==0.7.2=py38
  - llvmlite==0.35.0=pypi_0
  - torch-sparse==0.6.9=pypi_0
  - idna==2.10=pypi_0
  - esm==0.2.0=pypi_0
  - tokenizers==0.8.0rc4=pypi_0
  - scipy==1.5.4=pypi_0
  - networkx==2.5=pypi_0
  - sacremoses==0.0.43=pypi_0
  - markupsafe==1.1.1=pypi_0
  - packaging==20.9=pypi_0
  - torch-geometric==1.6.3=pypi_0
  - biopython==1.77=pypi_0
  - h5py==3.2.0=pypi_0
  - matplotlib==3.3.1=pypi_0
  - cycler==0.10.0=pypi_0
  - isodate==0.6.0=pypi_0
  - regex==2020.11.13=pypi_0
  - pyparsing==2.4.7=pypi_0
  - torchvision==0.8.2=py38_cu102
  - kiwisolver==1.2.0=pypi_0
  - bzip2==1.0.8=h7f98852_4
  - tqdm==4.58.0=pypi_0
  - pytz==2021.1=pypi_0
  - libstdcxx-ng==9.3.0=h6de172a_18
  - googledrivedownloader==0.4=pypi_0
  - transformers==3.0.0=pypi_0
  - torch-scatter==2.0.6=pypi_0
  - python-dateutil==2.8.1=pypi_0
  - sentencepiece==0.1.95=pypi_0
  - gawk==5.1.0=h7f98852_0
  - requests==2.25.1=pypi_0
  - torch-cluster==1.5.9=pypi_0
  - filelock==3.0.12=pypi_0
  - torch-spline-conv==1.2.1=pypi_0
  - libunistring==0.9.10=h14c3975_0
  - scikit-learn==0.24.0=pypi_0
  - sklearn==0.0=pypi_0
  - numba==0.52.0=pypi_0
  - gettext==<IP_ADDRESS>=hf34092f_1004
  - python-louvain==0.15=pypi_0
  - chardet==4.0.0=pypi_0
  - libgomp==9.3.0=h2828fa1_18
  - openssl==1.1.1k=h7f98852_0
  - ase==3.21.1=pypi_0
  - joblib==1.0.0=pypi_0
  - threadpoolctl==2.1.0=pypi_0
  - certifi==2020.6.20=pypi_0
  - ca-certificates==2020.12.5=ha878542_0
  - urllib3==1.26.3=pypi_0
  - _libgcc_mutex==0.1=conda_forge
  - python_abi==3.8=1_cp38
  - click==7.1.2=pypi_0
  - wget==1.20.1=h22169c7_0

Current channels:

  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

The =pypi_0 looks suspicious and the channel information was not included. So I tried removing the =pypi_0 and adding the channel information:
$ conda create --name fold2seq --file new-environment.yml -c pytorch -c huggingface -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - mmseqs2==13.45111=h95f258a_1
  - torch-sparse==0.6.9
  - sklearn==0.0
  - esm==0.2.0
  - torch-geometric==1.6.3
  - scipy==1.5.4
  - torch-cluster==1.5.9
  - torch-spline-conv==1.2.1
  - transformers==3.0.0
  - torch-scatter==2.0.6
  - tokenizers==0.8.0rc4
  - h5py==3.2.0

Current channels:

  - https://conda.anaconda.org/pytorch/linux-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://conda.anaconda.org/anaconda/linux-64
  - https://conda.anaconda.org/anaconda/noarch
  - https://conda.anaconda.org/huggingface/linux-64
  - https://conda.anaconda.org/huggingface/noarch
  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

Help would be appreciated

We really thank you for your question! We have updated the README. The code is actually only dependent on a major package, which is pytorch1.7.

I encountered the same error message.

At least, install pytorch only (e.g. pip install torch==1.7) at least works until other error (fold_feat_gen.py).


Update security-center-disk-encryption.md

replace Connect-AzureRmAccount with Login-AzureRmAccount

@ejarvi : Thanks for your contribution! The author, @TomShinder, has been notified to review your proposed change.

ok to merge.

OK to merge.

#Sign-off


pyinstaller executable can't find package info

The pyinstaller complains the error with the following line:
from gcloud.pubsub.client import Client

The module is installed correctly in /usr/local/lib/python2.7/dist-packages. I run setup.py (build/ install) in addition pip install --upgrade cloud too.
Traceback (most recent call last):
  File "<string>", line 267, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-2.1.1dev_-py2.7.egg/PyInstaller/loader/pyi_importers.py", line 271, in load_module
    exec(bytecode, module.__dict__)
  File "/home/mtwu/gce/cloudn/cloudx-local/gce/gce_pubsub.py", line 6, in <module>
  File "/usr/local/lib/python2.7/dist-packages/PyInstaller-2.1.1dev_-py2.7.egg/PyInstaller/loader/pyi_importers.py", line 271, in load_module
    exec(bytecode, module.__dict__)
  File "/home/mtwu/gce/cloudn/install/build/cloudx_cli/out00-PYZ.pyz/gcloud", line 19, in <module>
  File "/home/mtwu/gce/cloudn/install/build/cloudx_cli/out00-PYZ.pyz/pkg_resources", line 551, in get_distribution
The following import will cause the following pyinstaller error.
from gcloud.pubsub.client import Client
  File "/home/mtwu/gce/cloudn/install/build/cloudx_cli/out00-PYZ.pyz/pkg_resources", line 431, in get_provider
  File "/home/mtwu/gce/cloudn/install/build/cloudx_cli/out00-PYZ.pyz/pkg_resources", line 952, in require
  File "/home/mtwu/gce/cloudn/install/build/cloudx_cli/out00-PYZ.pyz/pkg_resources", line 839, in resolve
pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found and is required by the application

mtwu@ubuntu:/usr/local/lib/python2.7/dist-packages$ ls -l gcloud
total 360
drwxr-sr-x 2 root staff  4096 Oct 16 09:13 bigquery
drwxr-sr-x 3 root staff  4096 Oct 16 09:13 bigtable
-rw-r--r-- 1 root staff  7564 Oct 16 09:13 client.py
-rw-r--r-- 1 root staff  8038 Oct 16 09:13 client.pyc
-rw-r--r-- 1 root staff 12949 Oct 16 09:13 connection.py
-rw-r--r-- 1 root staff 12304 Oct 16 09:13 connection.pyc
-rw-r--r-- 1 root staff 14075 Oct 16 09:13 credentials.py
-rw-r--r-- 1 root staff 13661 Oct 16 09:13 credentials.pyc
drwxr-sr-x 3 root staff  4096 Oct 16 09:13 datastore
-rw-r--r-- 1 root staff  4036 Oct 16 09:13 demo.py
-rw-r--r-- 1 root staff  4010 Oct 16 09:13 demo.pyc
drwxr-sr-x 2 root staff  4096 Oct 16 09:13 dns
-rw-r--r-- 1 root staff  1418 Oct 16 09:13 environment_vars.py
-rw-r--r-- 1 root staff   647 Oct 16 09:13 environment_vars.pyc
-rw-r--r-- 1 root staff  5819 Oct 16 09:13 exceptions.py
-rw-r--r-- 1 root staff  9026 Oct 16 09:13 exceptions.pyc
-rw-r--r-- 1 root staff  8048 Oct 16 09:13 _helpers.py
-rw-r--r-- 1 root staff 10032 Oct 16 09:13 _helpers.pyc
-rw-r--r-- 1 root staff   736 Oct 16 09:13 __init__.py
-rw-r--r-- 1 root staff   333 Oct 16 09:13 __init__.pyc
-rw-r--r-- 1 root staff  4957 Oct 16 09:13 iterator.py
-rw-r--r-- 1 root staff  5210 Oct 16 09:13 iterator.pyc
drwxr-sr-x 2 root staff  4096 Oct 16 09:13 pubsub
drwxr-sr-x 2 root staff  4096 Oct 16 09:13 resource_manager
drwxr-sr-x 2 root staff  4096 Oct 16 09:13 search
drwxr-sr-x 3 root staff  4096 Oct 16 09:13 storage
-rw-r--r-- 1 root staff  7021 Oct 16 09:13 test_client.py
-rw-r--r-- 1 root staff  9101 Oct 16 09:13 test_client.pyc
-rw-r--r-- 1 root staff 13090 Oct 16 09:13 test_connection.py
-rw-r--r-- 1 root staff 15451 Oct 16 09:13 test_connection.pyc
-rw-r--r-- 1 root staff 22622 Oct 16 09:13 test_credentials.py
-rw-r--r-- 1 root staff 28116 Oct 16 09:13 test_credentials.pyc
-rw-r--r-- 1 root staff  2844 Oct 16 09:13 test_exceptions.py
-rw-r--r-- 1 root staff  3664 Oct 16 09:13 test_exceptions.pyc
-rw-r--r-- 1 root staff 12177 Oct 16 09:13 test__helpers.py
-rw-r--r-- 1 root staff 19874 Oct 16 09:13 test__helpers.pyc
-rw-r--r-- 1 root staff  1143 Oct 16 09:13 _testing.py
-rw-r--r-- 1 root staff  1212 Oct 16 09:13 _testing.pyc
-rw-r--r-- 1 root staff  6781 Oct 16 09:13 test_iterator.py
-rw-r--r-- 1 root staff  8076 Oct 16 09:13 test_iterator.pyc

I'm not familiar with PyInstaller (I presume it is http://www.pyinstaller.org/).
Can you elaborate and maybe explain how you expect this to work?
The problem you describe seems to be a bug in part of PyInstaller. It is a chicken-and-egg problem. The get_distribution() check occurs only after the library is installed. It is used to set the __version__.

We have installed quite a few new modules from github lately. This is the first time we bump into the executable build issue.  We do expect the module can work with pyinstaller after it is built and installed. I can run the client in the python native mode. We have reinstalled the module and pyinstaller few times without any luck.

This issue should be related to the version compatibility between pyinstaller and setuptools. Please advise the correct versions used in your environment which the executable can be built from pyinstaller.

We don't have any version requirements on setuptools. The latest version should work just fine.

Your code has to consider the run-time environment when it is bundled to an executable. In this case, pkg_resources can't work in the bundled executable though it works in native python mode. The following workaround diffs make the executable work.
diff --git a/gcloud/init.py b/gcloud/init.py
index 8c1c7b4..e70010a 100644
--- a/gcloud/init.py
+++ b/gcloud/init.py
@@ -16,4 +16,5 @@
from pkg_resources import get_distribution
-version = get_distribution('gcloud').version
+#version = get_distribution('gcloud').version
+version = '0.8.0'
diff --git a/gcloud/connection.py b/gcloud/connection.py
index b732113..7650625 100644
--- a/gcloud/connection.py
+++ b/gcloud/connection.py
@@ -63,7 +63,8 @@ class Connection(object):
:param http: An optional HTTP object to make requests.
"""

USER_AGENT = "gcloud-python/{0}".format(get_distribution('gcloud').version)
+#    USER_AGENT = "gcloud-python/{0}".format(get_distribution('gcloud').version)

USER_AGENT = "gcloud-python/{0}".format('0.8.0')
"""The user agent for gcloud-python requests."""
SCOPE = None

If we were to hardcode it we'd replace get_distribution('gcloud').version with __version__ in gcloud/__init__.py.
However, we intentionally haven't hardcoded it so we can rely on setuptools (a great part of the Python ecosystem) to get the version from the package info.
It seems strange to me that a bundler would ignore setuptools, a core part of Python packaging. When was the bundler last updated? setuptools has been the de facto way to distribute packages for years now (@tseaver probably has a better sense of this than I do).

I am not sure if the setuptools can help much in this case.  An executable has no visibility of the package info. At the setup time, it is a different story. I have used pyinstaller 2.x and 3.0 and they all ended up the same run-time error.
From: Danny Hermes<EMAIL_ADDRESS>Sent: Tuesday, October 27, 2015 9:44 AM
To: GoogleCloudPlatform/gcloud-python<EMAIL_ADDRESS>Cc: Michael Wu<EMAIL_ADDRESS>Subject: Re: [gcloud-python] pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found (#1187)
If we were to hardcode it we'd replace get_distribution('gcloud').version with version in gcloud/init.py.
However, we intentionally haven't hardcoded it so we can rely on setuptools (a great part of the Python ecosystem) to get the version from the package info.
It seems strange to me that a bundler would ignore setuptools, a core part of Python packaging. When was the bundler last updated? setuptools has been the de facto way to distribute packages for years now (@tseaverhttps://github.com/tseaver probably has a better sense of this than I do).
—
Reply to this email directly or view it on GitHubhttps://github.com/GoogleCloudPlatform/gcloud-python/issues/1187#issuecomment-151563850.

Yes, I'm saying a binary installer worth it's salt should work seemlessly with setuptools, even while running the packaged executable.
We may just do a try ... except. It seems pkg_resources imports just fine in your packaged environment but none of the package info. ISTM that pkg_resources just searches sys.path / PYTHONPATH until it finds the distribution
>>> import pprint
>>> from pkg_resources import get_distribution
>>> distro = get_distribution('gcloud')
>>> pprint.pprint(distro.__dict__)
{'_key': 'gcloud',
 '_provider': <pkg_resources.PathMetadata instance at 0x7f8961021200>,
 '_version': '0.7.1',
 'location': '/usr/local/lib/python2.7/dist-packages',
 'platform': None,
 'precedence': -1,
 'project_name': 'gcloud',
 'py_version': None}
>>> pprint.pprint(distro._provider.__dict__)
{'egg_info': '/usr/local/lib/python2.7/dist-packages/gcloud-0.7.1.dist-info',
 'module_path': '/usr/local/lib/python2.7/dist-packages'}

Have you tried to bundle gcloud to an executable file and run the file?
In the native python interpreter, it always works. Once it is in an executable, can the external path search work?
From: Danny Hermes <notifications<EMAIL_ADDRESS>Reply-To: GoogleCloudPlatform/gcloud-python <reply<EMAIL_ADDRESS>Date: Wednesday, October 28, 2015 at 7:36 PM
To: GoogleCloudPlatform/gcloud-python <gcloud-python<EMAIL_ADDRESS>Cc: Michael Wu <michael<EMAIL_ADDRESS>Subject: Re: [gcloud-python] pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found (#1187)
/usr/local/lib/python2.7/dist-packages

No I haven't tried it. I've not had a use for one of these installers and am trying to understand how they work, who uses them and where they use them.

We build an executable file to support our solution.
From: Danny Hermes<EMAIL_ADDRESS>Sent: Thursday, October 29, 2015 11:11 AM
To: GoogleCloudPlatform/gcloud-python<EMAIL_ADDRESS>Cc: Michael Wu<EMAIL_ADDRESS>Subject: Re: [gcloud-python] pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found (#1187)
No I haven't tried it. I've not had a use for one of these installers and am trying to understand how they work, who uses them and where they use them.
—
Reply to this email directly or view it on GitHubhttps://github.com/GoogleCloudPlatform/gcloud-python/issues/1187#issuecomment-152269943.

@mtwu-aviatrix Closing this out since I can't reproduce. Feel free to reopen if it's still an issue.

@dhermes Did you run the packaged executable? pyinstaller bogus.py went without problem. But at run time it spits error:
File "/tmp/pip-build-JhwLSY/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
File "gcloud/init.py", line 19, in
File "pkg_resources/init.py", line 559, in get_distribution
File "pkg_resources/init.py", line 433, in get_provider
File "pkg_resources/init.py", line 970, in require
File "pkg_resources/init.py", line 856, in resolve
pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found and is required by the application
I too have this problem in my project.

@hu7241

Can you give me explicit instructions on what to run so I can reproduce?
We no longer distribute the gcloud package, it is no google.cloud. Please update

In the root folder of bogus.py two directories (build, dist) are created after executing
$ pyinstaller bogus.py

execute the binary by
$ cd /dist/bogus && ./bogus

and the said error should pop up.
I updated to google-cloud as instructed, the problem persists:
  Traceback (most recent call last):
  File "bogus.py", line 1, in <module>
  File "/tmp/pip-build-JhwLSY/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "google/cloud/datastore/__init__.py", line 55, in <module>
  File "/tmp/pip-build-JhwLSY/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "google/cloud/datastore/connection.py", line 23, in <module>
  File "/tmp/pip-build-JhwLSY/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module
  File "google/cloud/connection.py", line 31, in <module>
  File "pkg_resources/__init__.py", line 559, in get_distribution
  File "pkg_resources/__init__.py", line 433, in get_provider
  File "pkg_resources/__init__.py", line 970, in require
  File "pkg_resources/__init__.py", line 856, in resolve
pkg_resources.DistributionNotFound: The 'google-cloud-core' distribution was not found and is required by the application
Failed to execute script bogus

As @mtwu-aviatrix commented on Oct 29, 2015, the native interpreter has no problem with this import. The problem arises when it has been bundled by Pyinstaller (ver. 3.2).

You will need to create a pyinstaller hook for packages that depend on setuptools' get_distribution() to obtain metadata information about the package.
Create a hook file in some hooks directory. The file name should be hook-<modulename>.py for pyinstaller to find it properly (i.e. hook-gcloud.py).
The content will be:
from PyInstaller.utils.hooks import copy_metadata
datas = copy_metadata('google-cloud-core')

The hooks directory should be set in the Analysis phase of your pyinstaller .spec file:
a = Analysis(['bogus.py'],
             pathex=[],
             binaries=[],
             hiddenimports=[],
             hookspath="/path/to/your/hooks/dir",
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)

I haven't tested the above, but this is what worked for me for another python package which is doing something similar (APScheduler).
If and when you get this working, consider contributing the hook back to pyinstaller project.

Thanks @jessesuen!

Hi I have create hook file but can't work
C:\Users\titan\source\repos\syn_hotkey\syn_hotkey\dist\syn_start>syn_start.exe
Traceback (most recent call last):
File "syn_start.py", line 1, in
File "c:\users\titan\appdata\local\temp\pip-build-qocd5q\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "syn_firebase\firebase.py", line 9, in
File "c:\users\titan\appdata\local\temp\pip-build-qocd5q\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "site-packages\pyrebase_init_.py", line 1, in
File "c:\users\titan\appdata\local\temp\pip-build-qocd5q\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "site-packages\pyrebase\pyrebase.py", line 18, in
File "c:\users\titan\appdata\local\temp\pip-build-qocd5q\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "site-packages\gcloud_init_.py", line 19, in
File "site-packages\pkg_resources_init_.py", line 557, in get_distribution
File "site-packages\pkg_resources_init_.py", line 431, in get_provider
File "site-packages\pkg_resources_init_.py", line 973, in require
File "site-packages\pkg_resources_init_.py", line 859, in resolve
pkg_resources.DistributionNotFound: The 'gcloud' distribution was not found and is required by the application
Failed to execute script syn_start

my hook-file
`#-----------------------------------------------------------------------------
Copyright (c) 2015-2017, PyInstaller Development Team.

Distributed under the terms of the GNU General Public License with exception
for distributing bootloader.

The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
from PyInstaller.utils.hooks import copy_metadata
datas = copy_metadata('google-cloud-storage')
datas += copy_metadata('google-cloud-core')
datas += copy_metadata('cloud')
datas += copy_metadata('gcloud-python')
`

Hi,
I'm still facing this issue while trying to create an executable out of my current python programme that uses cloud vision but am unable to do so as i get this very same error. Any workarounds?

@Shoshin23 I solved this problem by editing pyinstaller original hook-google.cloud.py file. I simply added this line, you can change it according your needs
datas += copy_metadata('google-api-core')

@Shoshin23 , I create the file hook-google.cloud.py and add this :
datas += copy_metadata('google-api-core')
but I get the following error
PyInstaller.compat.FileNotFoundError: Hook directory "C:\hook-google.cloud.py" not found.

@Vonisoa I believe you mentioned me, you need to change original hook file, no need to create a new hook file. You can find original hook file in site-packages/PyInstaller/hooks  or dist-packages/PyInstaller/hooks folder according to your OS.

@srkn , thanks for your answer, it solve my problem. Now I have another trouble when running the .exe
Exception  in 'grpc._cython.cygrpc.ssl_roots_override_callback' ignored E0731 16:52:01.684000000 13212 src/core/lib/security/security_connector/security _connector.cc:1173] assertion failed: pem_root_certs != nullptr
I don't know what can produce this error!!!

You need to set "GRPC_DEFAULT_SSL_ROOTS_FILE_PATH" environ in your code. Check this out https://github.com/grpc/grpc/blob/master/doc/environment_variables.md . I cant find right now but @dhermes coded a gist that helps you to find ssl root file in your OS.

Hi doing datas += copy_metadata('google-api-core') doesnt solve my error about gcloud...what particular steps you do to make it work?

@srkn , thanks for your advice, I will try this and give feedback!

You will need to create a pyinstaller hook for packages that depend on setuptools' get_distribution() to obtain metadata information about the package.
Create a hook file in some hooks directory. The file name should be hook-<modulename>.py for pyinstaller to find it properly (i.e. hook-gcloud.py).
The content will be:
from PyInstaller.utils.hooks import copy_metadata
datas = copy_metadata('gcloud')

The hooks directory should be set in the Analysis phase of your pyinstaller .spec file:
a = Analysis(['bogus.py'],
             pathex=[],
             binaries=[],
             hiddenimports=[],
             hookspath="/path/to/your/hooks/dir",
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)

I haven't tested the above, but this is what worked for me for another python package which is doing something similar (APScheduler).
If and when you get this working, consider contributing the hook back to pyinstaller project.

@Shoshin23 I solved this problem by editing pyinstaller original hook-google.cloud.py file. I simply added this line, you can change it according your needs
datas += copy_metadata('google-api-core')

Thanks alot this worked for me :)

@srkn , thanks for your answer, it solve my problem. Now I have another trouble when running the .exe
Exception in 'grpc._cython.cygrpc.ssl_roots_override_callback' ignored E0731 16:52:01.684000000 13212 src/core/lib/security/security_connector/security _connector.cc:1173] assertion failed: pem_root_certs != nullptr
I don't know what can produce this error!!!

I'm getting the same error and cannot find any solution. Please help asap.


Merge release from develop to master

This is the initial release source code. Development will continue on develop and we release from master.

Hi @heaths, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Heath Stewart). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

:white_check_mark: Build vsixbootstrapper 1.0.20-rc+g20f40e766b completed (commit https://github.com/Microsoft/vsixbootstrapper/commit/20f40e766b by @heaths)


metadata not available[ERROR] [1627575249.042885701]: metadata not available

Required Info

Camera Model
D455

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu 20.04

Kernel Version (Linux Only)
5.4.0-77-generic

Platform
Intel NUC

SDK Version
2.48

Language
C++

Segment
Robot

Issue Description
After updating the camera to <IP_ADDRESS>, accessing the metadata of a frame through the C++ SDK results in an error. This seems to only happen on my Intel NUC10i7FNK.
// config realsense
rs2::pipeline rs_pipe;
rs2::config cfg;
cfg.enable_stream(RS2_STREAM_DEPTH, 0, RS2_FORMAT_Z16);
cfg.enable_stream(RS2_STREAM_INFRARED, 1, 1280, 720, RS2_FORMAT_Y8, 30);
cfg.enable_stream(RS2_STREAM_INFRARED, 2, 1280, 720, RS2_FORMAT_Y8, 30);
rs2::pipeline_profile rs_profile = rs_pipe.start(cfg);

// sensor options
auto sensor = rs_profile.get_device().query_sensors()[0];
sensor.set_option(RS2_OPTION_VISUAL_PRESET, RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY);
sensor.set_option(RS2_OPTION_LASER_POWER, 360);
sensor.set_option(RS2_OPTION_EMITTER_ENABLED, 1);
sensor.set_option(RS2_OPTION_EMITTER_ON_OFF, 1);
sensor.set_option(RS2_OPTION_FRAMES_QUEUE_SIZE, 1);

rs2::frameset fs = rs_pipe.wait_for_frames();
rs2::depth_frame df = fs.get_depth_frame();
std::cout << df.get_frame_metadata(RS2_FRAME_METADATA_FRAME_LASER_POWER_MODE) << std::endl;

Hi @rolandgvc  The SDK's frame metadata documentation suggests checking that metadata is supported using the rs2_supports_frame_metadata instruction in an If condition before retrieving the metadata with get_frame_metadata in order to help to avoid generating an exception.
https://github.com/IntelRealSense/librealsense/blob/master/doc/frame_metadata.md#librealsense2-api-for-metadata

Looks like none of the depth frames support the metadata. Thoughts?

It is possible that metadata support is not enabled on the librealsense SDK build on your NUC.  If you built the SDK with Debian packages in Ubuntu then metadata support is built into the packages.  Metadata support is also included if you build from source code with the RSUSB backend method.  If you build the SDK from source code without using RSUSB then metadata support is added by patching the Linux kernel.
The SDK documentation states that RS2_FRAME_METADATA_FRAME_LASER_POWER_MODE has been deprecated and replaced by RS2_FRAME_METADATA_FRAME_EMITTER_MODE
https://intelrealsense.github.io/librealsense/doxygen/rs__frame_8h.html#a91f19a01f5bf2abadc30959a8d3109c9a79ae181e2bbabecbab365e36575c89bc

I installed the binaries from apt. Again, everything was working fine before updating the camera software. Would there be a way of downgrading the camera back to its previous version?

Once you have uninstalled all previous librealsense packages with a purge instruction:
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
You can install specific package versions instead of the latest version by providing details of the package name, like in the example guidance in the link below.
https://github.com/IntelRealSense/realsense-ros/issues/1925#issuecomment-858716097

What about camera firmware only?  I think you can do that from realsense-viewer directly, no? Where could I find a list of the versions?

You can install a specific firmware version by downloading it as a .bin file from the list on the firmware releases page.
https://dev.intelrealsense.com/docs/firmware-releases#section-d400-series-firmware-downloads
Then go to the More option near the top of the Viewer's options side-panel and select the Update Firmware option from its drop-down menu.  This will cause a file selector window to pop up.  Select the firmware .bin folder from the location on your computer that you downloaded it to and then the firmware update will commence.

Reverted camera / sdk back to the 2.45 binaries. For the same code and sdk version, the metadata is accessible on my Lenovo T480s and not on NUC. Are there any issues with realsense on NUC specifically that are causing this?

I note from the specification at the top of this case that you are using Ubuntu 20.04 with kernel 5.4 on your NUC.  My understanding is that among RealSense users, 5.8 is a preferred kernel for 20.04.

If you left-click on the frame metadata option on a stream panel in the RealSense Viewer on your NUC to overlay the metadata display, does it indicate that per-frame metadata is not supported?

If you left-click on the frame metadata option on a stream panel in the RealSense Viewer on your NUC to overlay the metadata display, does it indicate that per-frame metadata is not supported?

It doesn't indicate that, so it should work...

The next test that you could run with your script is to substitute in RS2_FRAME_METADATA_TIME_OF_ARRIVAL in place of RS2_FRAME_METADATA_FRAME_LASER_POWER_MODE, since if TIME_OF_ARRIVAL can be displayed in the Viewer's metadata overlay then you should be able to access it with your script too.

Hi @rolandgvc  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Did you REALLY just implement "print" and "+"?

As told - I see not any other function implemented. I see neither lambda, nor even minus ("-").
Perchance I err, but if not - how come you call that a Lisp?

@KedalionDaimon did you add any more functions or find a similar project