AmazonBedrockAgentRuntimeClient.RetrieveAndGenerateAsync throws an exception

Describe the bug
The code sample below which calls AmazonBedrockAgentRuntimeClient.AmazonBedrockAgentRuntimeClient.RetrieveAndGenerateAsync returns an Internal Server Error
Expected Behavior
Returns RetrieveAndGenerateResponse
Current Behavior
Returns error
Amazon.BedrockAgentRuntime.AmazonBedrockAgentRuntimeException: The service returned an error with Error Code InternalFailure and HTTP Body: {} ---> Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (500) Internal Server Error. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.HttpRequest.d__19.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\HttpHandler_bcl\HttpWebRequestFactory.cs:line 338
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.HttpRequest.d__19.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\HttpHandler_bcl\HttpWebRequestFactory.cs:line 359
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.HttpHandler1.<InvokeAsync>d__91.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\HttpHandler\HttpHandler.cs:line 185
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.Unmarshaller.d__31.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.ErrorHandler.<InvokeAsync>d__51.MoveNext()
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionStream(IRequestContext requestContext, IWebResponseData httpErrorResponse, HttpErrorResponseException exception, Stream responseStream) in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\HttpErrorResponseExceptionHandler.cs:line 163
at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.d__2.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\HttpErrorResponseExceptionHandler.cs:line 92
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.ExceptionHandler1.<HandleAsync>d__6.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\ExceptionHandler.cs:line 46 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.ErrorHandler.<ProcessExceptionAsync>d__8.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:line 243 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.ErrorHandler.<InvokeAsync>d__51.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:line 104
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CallbackHandler.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.Signer.<InvokeAsync>d__11.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\Signer.cs:line 56
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.EndpointDiscoveryHandler.d__21.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at Amazon.Runtime.Internal.EndpointDiscoveryHandler.<InvokeAsync>d__21.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\EndpointDiscoveryHandler.cs:line 79
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CredentialsRetriever.d__71.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\CredentialsRetriever.cs:line 98 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.RetryHandler.<InvokeAsync>d__101.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Amazon.Runtime.Internal.RetryHandler.d__101.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\RetryHandler\RetryHandler.cs:line 146 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__91.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CallbackHandler.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Amazon.Runtime.Internal.ErrorCallbackHandler.<InvokeAsync>d__51.MoveNext() in C:\codebuild\tmp\output\src3252655653\src\aws-sdk-net\sdk\src\Core\Amazon.Runtime\Pipeline\Handlers\ErrorCallbackHandler.cs:line 58
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.MetricsHandler.d__11.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at ConsoleApp1.Program.d__3.MoveNext()
Reproduction Steps
public static async Task<string> InvokeBedrockKnowledgeBaseAsync(string knowledgeBaseId, string sessionId, string prompt)
{
    var result = "";
    try
    {
        var client = new AmazonBedrockAgentRuntimeClient(RegionEndpoint.USEast1);

        Console.WriteLine($"Calling bedrock with Knowledge Base Id: {knowledgeBaseId} and Session Id: {sessionId} with prompt: {prompt}.");

        RetrieveAndGenerateResponse response = await client.RetrieveAndGenerateAsync(new RetrieveAndGenerateRequest
        {
            Input = new RetrieveAndGenerateInput
            {
                Text = prompt
            },
            RetrieveAndGenerateConfiguration = new RetrieveAndGenerateConfiguration
            {
                KnowledgeBaseConfiguration = new KnowledgeBaseRetrieveAndGenerateConfiguration
                {
                    KnowledgeBaseId = knowledgeBaseId,
                    ModelArn = "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2"
                }
            },
            SessionId = sessionId

        });

        if (response.HttpStatusCode == System.Net.HttpStatusCode.OK)
        {
            result = response.Output.Text;
        }
        else
        {
            Console.WriteLine("InvokeModelAsync failed with status code " + response.HttpStatusCode);
        }
    }
    catch (Exception ex)
    {
        result = ex.ToString(); ;
    }

    return result;
}

Possible Solution
No response
Additional Information/Context
I am able to invoke an Agent attached to the same Knowledge Base with the following code;
public static async Task<string> InvokeBedrockAgentAsync(string agentId, string agentAliasId, string sessionId, string prompt)
 {
      var result = "";
      try
      {
          AmazonBedrockAgentRuntimeClient client = new AmazonBedrockAgentRuntimeClient(RegionEndpoint.USEast1);

          Console.WriteLine($"Calling bedrock with Agent Id: {agentId}, Agent Alias Id {agentAliasId} and Session Id: {sessionId} with prompt: {prompt}.");

          // list agents
          InvokeAgentResponse response = await client.InvokeAgentAsync(new InvokeAgentRequest()
          {
              AgentId = agentId,
              AgentAliasId = agentAliasId,
              SessionId = sessionId,
              InputText = prompt
          });

          if (response.HttpStatusCode == System.Net.HttpStatusCode.OK)
          {
              MemoryStream output = new MemoryStream();
              foreach (PayloadPart item in response.Completion)
              {
                  item.Bytes.CopyTo(output);
              }
              result = Encoding.UTF8.GetString(output.ToArray());
          }
          else
          {
              Console.WriteLine("InvokeModelAsync failed with status code " + response.HttpStatusCode);
          }
      }
      catch (Exception ex)
      {
          result = ex.ToString(); ;
      }

      return result;
}

AWS .NET SDK and/or Package version used
AWSSDK.BedrockAgentRuntime 3.7.303.8
AWSSDK.BedrockRuntime 3.7.301.60
AWSSDK.Core 3.7.303.11
Targeted .NET Platform
.Net Framework 4.8.1 .Net 6 & .Net 8
Operating System and version
Windows 10

@JulesMBooth Good morning. Thanks for opening the issue. Could you please enable verbose logging using code below and share the detailed logs:
Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.Console;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener());

Thanks,
Ashish

Hi,
I noticed when attempting the request by CLI that I had missed a parameter in the RetrieveAndGenerateConfiguration object: "Type" I set that to "KNOWLEDGE_BASE". Having examined the error response to that I realised I could only pass in a Session Id once I had got a response. So my code now looks like:
....
    Console.WriteLine("Please enter the Knowledge Base Id");

    string? kbId = Console.ReadLine();

    Console.WriteLine("Please enter your first prompt, after this type exit to stop prompting bedrock.");

    var input = Console.ReadLine();

    var sessionId = "";
    while (input?.ToUpperInvariant() != "EXIT")
    {
        var response = await InvokeBedrockRetrieveAndGenerateKnowledgeBaseAsync(kbId, input, sessionId);

        if (response != null)
        {
            Console.WriteLine(response.Output.Text);

            sessionId = response.SessionId;
        }
        else
        {
            Console.WriteLine("Error Occurred");
        }

        Console.WriteLine("Please write your next prompt or type exit to leave.");
        input = Console.ReadLine();
    }
.....
  public static async Task<RetrieveAndGenerateResponse> InvokeBedrockRetrieveAndGenerateKnowledgeBaseAsync(string knowledgeBaseId, string prompt, string sessionId = "")
  {
      RetrieveAndGenerateResponse? result = null;
      try
      {
          AmazonBedrockAgentRuntimeClient client = new(RegionEndpoint.USEast1);

          Console.WriteLine($"Calling bedrock with Knowledge Base Id: {knowledgeBaseId}, prompt: {prompt} and {(String.IsNullOrWhiteSpace(sessionId) ? "No session Id" : $"Session Id: {sessionId}")}.");

          var request = new RetrieveAndGenerateRequest
          {
              Input = new RetrieveAndGenerateInput
              {
                  Text = prompt
              },
              RetrieveAndGenerateConfiguration = new RetrieveAndGenerateConfiguration
              {
                  Type = "KNOWLEDGE_BASE",
                  KnowledgeBaseConfiguration = new KnowledgeBaseRetrieveAndGenerateConfiguration
                  {
                      KnowledgeBaseId = knowledgeBaseId,
                      ModelArn = "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-v2",
                  }
              },
          };

          if (!String.IsNullOrWhiteSpace(sessionId))
              request.SessionId = sessionId;

          RetrieveAndGenerateResponse response = await client.RetrieveAndGenerateAsync(request);

          if (response.HttpStatusCode == System.Net.HttpStatusCode.OK)
          {
              result = response;
          }
          else
          {
              Console.WriteLine("InvokeModelAsync failed with status code " + response.HttpStatusCode);
          }
      }
      catch (Exception ex)
      {
          Console.WriteLine(ex.ToString());
      }

      return result;
  }

And this works as expected. Not clear from the .Net docs how RetrieveAndGenerateConfiguration should be set however so that could be improved.
I also found that I coudn't get requests to work on the CLI I have attached output.
BedrockCLI.txt

@JulesMBooth Thanks for the update and glad that it works for you now. AWS CLI appears to be failing with error Could not connect to the endpoint URL.. Unsure about the root cause of the error.
Regarding documentation:

Agents for Amazon Bedrock Runtime RetrieveAndGenerateConfiguration API reference does specify valid values (currently only KNOWLEDGE_BASE) for type property.
The AWS .NET SDK API reference for RetrieveAndGenerateConfiguration does not appear to specify list of valid values. This would be the case with any property, not just this property.

This is also the case with Java SDK API reference here.
The API reference for SDK(s) are generated from the models shared by service team, for AWS .NET SDK it's here. These are same across all SDK(s).
I would advise you to submit the feedback request by clicking link. It would be routed through appropriate channels.

Thanks,
Ashish


Cannot run react-native start OR react-native init project

when I run 'react-native start' in the project directory I receive this error (This project runs on other machines)
module.js:339
throw err;
^
Error: Cannot find module './packager/babelRegisterOnly'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (C:\Users\andrew.gay\Projects\prologic_ofs3mobile\node
_modules\react-native\cli.js:11:1)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)

When I type 'react-native init projectname' the project init hangs and never loads.

@gay-carson-andrew , it's because you're using windows. kidding!! :)
My first step in this situation would be to verify that all dependencies are installed.     :(

@facebook-github-bot no-reply


Most used hot keys

Could you please add most used hotkey combination, so instead of navigating nmap each time, we can benefit from the cheatsheet?

Done.


What is the difference between the msvc and gnu binaries?

The question is in the title ⤴

msvc means git-cliff is compiled for Windows. GNU means git-cliff is compiled using GNU C compiler as x86_64-linux-gnu-gcc target.

@orhun That makes more sense, thank you for taking the time to explain it to me. Have a great rest of your day.


Error in hangout.md files (wrong link to StackExchange)

Fix link to hiding tcp miner trafic incorectly set to the crypto primitives & concepts in the stackexchange questions and answers

I messed up so much time to make a clean pull-request on that... i should have learned more about gitHub first. But now, it's ok.
So i found this error while translating to french, and fixed it for all languages and the template.


Flickering screen

My current code
def main(screen):
    while True:
       screen.clear()
       #do drawing
       screen.refresh()
Screen.wrapper(main)

It keeps flickering because when it clears the screen it also updates the command line so for a frame you see a blank screen and on the next one you see the thing you have drawn, but I need the clearing to remove stuff I don't want from the previous frame. Is there any advice for how to fix this?

Yes -  I would expect something like that.  Screen.clear() is intended to be used at the start of day when you genuinely want to clear everything and reset back to a blank screen.
What you actually want to do is clear the double buffer that asccimatics is maintaing for you.  Then when you call refresh it willl clear out the bits that you haven't subsequently redrawn.  Try using something like this instead of calling clear():
for y in range(screen.height):
    screen.print_at(" " * screen.width, 0, y, colour, attr, bg)

Where colour, attr and bg are the various colours and attributes you want to use to clear the screen.

I'm assuming this answered the question.  Let me know if not...


mvnd modifies original output when using quiet flag

I am not sure whether this is intentional or not, but the output is augmented when using the quiet tag.
plain maven:
PS D:\tmp> mvn help:evaluate '-Dexpression=settings.localRepository' -DforceStdout -q
C:\Users\uhnak\.m2\repository

mvnd adds prefix [INFO] [stdout]
PS D:\tmp> C:\Applications\mvnd\bin\mvnd.exe help:evaluate '-Dexpression=settings.localRepository' '-DforceStdout' -q
[INFO] [stdout] C:\Users\uhnak\.m2\repository

Also when the command is invoked from a non-terminal (e.g. launched via Java's Process), then this additional warning is printed to stderr
Nov 03, 2021 4:33:53 PM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

Though I am not sure whether running mvnd through terminal is a supported use, or whether I should only ever use mvn for that, in which case this issue is moot and can be closed.
As a side-note, if I don't run it in quiet mode (no -q), then the output is the same for maven and mvnd (both without [INFO] [stdout])
plain maven:
PS D:\tmp> mvn help:evaluate '-Dexpression=settings.localRepository' -DforceStdout
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.2.0:evaluate (default-cli) @ standalone-pom ---
[INFO] No artifact parameter specified, using 'org.apache.maven:standalone-pom:pom:1' as project.
[INFO]
C:\Users\uhnak\.m2\repository
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.069 s
[INFO] Finished at: 2021-11-03T16:29:34+01:00
[INFO] ------------------------------------------------------------------------

mvnd:
> C:\Applications\mvnd\bin\mvnd.exe help:evaluate '-Dexpression=settings.localRepository' '-DforceStdout'
[INFO] Processing build on daemon 7f40520a
[INFO] Scanning for projects...
[INFO] BuildTimeEventSpy is registered.
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 3
[INFO] Task segments : [help:evaluate]
[INFO] Build maximum degree of concurrency is 3
[INFO] Total number of projects is 1
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.2.0:evaluate (default-cli) @ standalone-pom ---
[INFO] No artifact parameter specified, using 'org.apache.maven:standalone-pom:pom:1' as project.
[INFO]
C:\Users\uhnak\.m2\repository
[INFO] Segment walltime 0 s, segment projects service time 0 s, effective/maximum degree of concurrency 0.93/3
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.021 s (Wall Clock)
[INFO] Finished at: 2021-11-03T16:29:48+01:00
[INFO] ------------------------------------------------------------------------

You can add --raw-streams to the command line to avoid the decorated output.

You should be able to get rid of the warning by using -Dorg.jline.terminal.dumb=true

This solves my issue. Thanks for the quick response!


Fix the HHVM travis build

Fixed the HHVM build by explicitely adding HHVM + trusty + PIMPLE_EXT=no to the matrix.

Thank you @skalpa.


SPMUtility: limit private method to macOS

This private method is only used on macOS targets, but was globally
defined.  This depends on confstr which is part of the C library on
Unix systems.  However, it is not available on Windows.  Limit the
function to the platform where it is used.

@swift-ci please smoke test


Powerline not usable in Hyper

[x ] I am on the latest Hyper.app version

[x ] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: Windows 10 with Linux Subsystem (Ubuntu)

Hyper.app version: 1.4.8

Link of a Gist with the contents of your .hyper.js: https://gist.github.com/b0rski/3630e9705fb547df0f8fbc9fbf960a8a#file-hyper-js

Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): No idea what that is. I'm on Windows.

The issue is reproducible in vanilla Hyper.app: Yes, even with all plugins removed, including hyperterm-base16-tomorrow-night.

Issue
When I try to use powerline in bash or zsh and tmux or the powerlevel9k theme for oh my zsh, the characters and colors are not displayed correctly. I have powerline patched fonts installed under Windows and in the Ubuntu subsystem.

I tried different patched (Inconsolata, DejaVu Sans Mono and so on) fonts and setting UTF8 for locale but nothing works.
How do I get Hyper to display everything correctly like in the gnome terminal on Fedora or Ubuntu?

Just fixed this by using
updateChannel: 'canary',
In the .hyper.js file

Woah... I so wanted it to work. Downloaded newest pre-release version, which is 2.1.1, but this did not fix it for me. I even disabled all plug-ins.

I had a similar issue with prepackaged agnoster inside oh-my-zsh earlier ,  #1791 was right
Could you override the included theme with a fresh powerlevel9k please
Additionally, Nerd Fonts did help to fix several symbol issues I had

OK, so I re-installed powerlevel9k from the git repo and re-launched Hyper but that did not change the output. I tried several Nerd Fonts from the link you provided but this leads to much worse command prompt like in the screen shot below.

Hmm you have some kind of issue with your font, it's not loading the symbol properly.
Could you link your lastest .hyper.js and the exact font you loaded

I use the powerline with ZSH fine with Hyper. In Tmux it doesn't work, but outside tmux it works fine.
I use the font PragmataPro, with a theme I created myself.

Can you try with our canary v2.1.1?

I already tried 2.1.1, as you can see above. I am once again posting my configuration and screen shots.
This configuration.
https://gist.github.com/b0rski/356e74f4af3469535380a23351512320
Produces this with powerline (not powerlevel9k theme).

And this is how powerlevel9k theme looks like.

tmux does not work at all. I never had problems on gnome-terminal in Ubuntu or Fedora.

I'm using powerlevel9k and it works a bit better than yours. This is what I have for my fontFamily:
fontFamily: '"Roboto Mono for Powerline"',

As you can see, it works fine for me.
I'm using the font `FuraCode Nerd Font`

Are you guys even testing on Windows and with the Ubuntu subsystem?

same here, using cobalt2 by wes bos, and the icons do not work

was able to fix it (i am on windows btw):
install fonts manually.
Navigate to the font you

want to install.
Right-click and select “Install”.

kudos to https://davidtranscend.com/blog/windows-terminal-workflow-guide/

Thank you for your feedback @phifa 🙏

Currently, at least for me, it's not about the font. It's about the colors.
My configuration looks awesome in wsl-terminal (mintty) or under Linux (with gnome terminal) and looks rather strange in Hyper. It seems a component of Hyper does not implement/interpret colors (https://misc.flogisoft.com/bash/tip_colors_and_formatting) correctly.
HYPER

WSL Terminal

it's not about the font
Then I think this is not the right place for your feedback 😉

@b0rski Can you open a new issue with all informations asked in template to help us to reproduce/fix?

@chabou: I am the author of this issue and I still have the same problem. I already delivered all my settings twice.

Oh sorry, I didn't noticed this.
Please try our canary (upcoming v2): https://zeit.co/blog/canary
Everything should be alright!
Let me know if anything goes wrong

The screen shots from above are from 2.0.0-canary.14, I think it's super easy to reproduce on Windows 10 with the Linux Subsystem (Ubuntu) because I get same result on 2 different Windows boxes.

@b0rski For previous screenshot on canary, I think you used 'hyperterm-base16-tomorrow-night'.
Referring to this screenshot, this theme is using something like #8CBEB7 for blue color. And this is exactly the color I see in your prompt.

@chabou: Well even if that's the case and the colors are not the same because of the used theme then why is the ">" sign printed in other color (inside first and last part of the prompt)? Even if I roll back to default theme, it's still the case (see this screen).

I'm little bit confused.
In this comment, you said that problem is color, but I don't see bottom bar in your hyper screenshot, only in regular WSL. Is it attended? 🤔

It does not matter whether the bottom bar (generated for powerline for tmux) is present or not :) It's just that background colors of the powerline bar chunks are not same color in Hyper (see my picture below).

Can you add screenshots made with a fresh install of 2.0.0-canary.14 (remove your config file, colorscheme has changed in our last release. Removing it with regenerate a default config)?
Please add all your config file (powerline, zsh, oh-my-zsh etc..) to let me reproduce your issue.
Thank you 🙏

OK, let's start over with the simplest configuration I can come up with.
Windows 10 + Linux Subsystem (Ubuntu) + Bash + Powerline + Hyper. No zsh, no oh-my-zsh, no tmux involved).
Screen Shot

.hyper.js
https://gist.github.com/b0rski/967afc110a1efa0dd52283372506782b
.bashrc
https://gist.github.com/b0rski/598879cb7783e3dbe480cf8fd315dd21
The whole powerline directory from /usr/local/lib/python2.7/dist-packages/powerline.
https://ufile.io/xppnq
Meanwhile in WSL Terminal (mintty).

On macOS (10.13.3), in Canary.14, this is now working perfectly for me using my preferred powerline font (Iosevka Terminal Medium). Colors are also correct.

I'm having similar issue on Windows 10 WSL with fresh install of hyper few minutes ago. Here's side by side comparisons
Home user with zsh + oh-my-zsh

nvim + vim-airline plugin

Home user on tmux

I'm not using powerline btw
Also Cursor navigation not working naither inside nvim nor tmux. eg. scrolling, navigating between panes, tabs, etc.

I had this problem on MacOS, and was able to resolve it. (Note: using latest non-canary Hyper)
TLDR: I was using the font filename in my .hyper.js instead of the font family name as understood by MacOS.
Here is the relevant snipper from the original, non-working .hyper.js. Note that the family includes the "Regular" (not actually part of the font family name).
fontFamily: '"Meslo LG M DZ Regular for Powerline"',

Here is my font directory.
$ ls -l ~/Library/Fonts
-rw-r--r--@ 1 b-gran  staff  475692 Jul 16  2017 Meslo LG M DZ Regular for Powerline.ttf

I was using the filename of the font in the .hyper.js, and not the actual font family.
Here are the Font Book.app details for this font:

Notice that the Font Family name is different to the filename.
I updated my .hyper.js to use the Font Family from Font Book.app:
fontFamily: '"Meslo LG M DZ for Powerline"',

and now, the font is rendered correctly.

@b-gran Thank you for your valuable feedback 🙏

@b-gran: This is a whole different story on Windows. One can clearly see in my screen shots that the font is loading correctly. There is however something broken with the background color of the Powerline segments (the arrow characters).

I don't know why everyone always said on MacOS while this issue is on WIndows also It's not about font, it's all about colors. I know my english is bad but I can see that @b0rski already clearly told everything from the begining of this issue.
Re-post the color differences between Hyper & WSL Terminal on Vim + Vim_airline.

Note:

I'm not using powerline
Just doing fresh install Latest Hyper v1.4.8 (stable)
Using my own dotfiles

Now, on 2.0.0-canary.15 frest install not much different.

In the gif

Mouse is unusable inside vim neither tmux

@LukasPolak We have replaced hterm by xtermjs (used by VSCode too) in our canary (upcoming v2). Your issue has been fixed.
Please try it: https://zeit.co/blog/canary#hyper

Tried canary.16. Still same color issue.

For me it is fixed with canary.16

Why ist this closed? Still not working under Windows with bash.exe.

Hahaha, this is so funny to see the mainteners only want to hear the good things & don't even want to listen the bad things.

@b0rski Which Hyper version are you testing this with?

See https://github.com/zeit/hyper/issues/2470#issuecomment-379279886.

@b0rski can you try with 2.0.0 release then please?

@Stanzilla: Tried with the 2.0.0 release. I get exactly same result.

@b0rski please try what I posted above.

Same issue on Mac. Hyper 2.1.0-canary.1 (canary)

Please open a new issue and fill in the issue template so we can reproduce if you still got this error 👍

I get the squares and colour issue. @Stanzilla I believe it to be an issue upstream at xterm.js. Let me demonstate:
Expected behaviour working in powershell:

VSCode:

Hyper v2.0.0

Same issue on Hyper 2.1.0-canary.2

Hey there, if this is indeed a issue upstream at https://github.com/xtermjs/xterm.js/ could you please open a ticket over there? Thanks!

In case anyone else has this issue, I didn't specify in my hyper.js config file to use the Powerline font.
fontFamily: '"Ubuntu Mono derivative Powerline", DejaVu Sans Mono for Powerline, Consolas, Lucida Console, monospace',
For VSCode, change the terminal.integrated.fontFamily setting for the same above

@jdheyburn Yeah, I had the same issue and that helped. Also, if you're using a theme in hyper (like verminal) check if it doesn't  override font setting. I has this issue while using verminal. Adding verminal settings to config fixed the issue:
module.exports = {
  config: {
    updateChannel: 'canary',

	verminal: {
		fontFamily: '"Ubuntu Mono derivative Powerline"',
		fontSize: 14
	},
...

Ok so i had a LOT of trouble here with this but the BIG thing i needed to get it to work was to use Oh My ZSH & nerd fonts (I used the hack nerd font) and the big deal is to add:
POWERLEVEL9K_MODE='nerdfont-complete'

into my ~/.zshrc file before the line
ZSH_THEME="powerlevel9k/powerlevel9k"

It says that in the install instructions but I thought it meant temporally before, as in save it and reload before you activate the theme but it means that the line has to precede the other.  So here are all the lines in my files to do this
~/.hyper.js
module.exports = {
  config: {
    fontFamily: '"Hack Nerd Font", monospace',
  }
};

~/.zshrc
POWERLEVEL9K_MODE='nerdfont-complete'
ZSH_THEME="powerlevel9k/powerlevel9k"

What's the status of this issue? Is there a fix? Has an issue been open upstream in xterm?

The issue is closed, nobody is assigned and they basically don't care.

For anybody stuck with this issue, I was able to find a quickfix: Simply reinstall the font.
In my case I was using powerline, so I went to they’re repo, followed the install instructions and everything seems to be working now. I’m not sure if this advice will work for everybody, but it’s certainly worth a try.
As for the root cause of this “issue” (for any contributors trying to fix it), I think this might not be an issue with Hyper at all... at least in my case and several others from what I’ve read. If you try to use the fonts on Chrome/Chromium (which as far as I understand is an upstream of Hyper) it doesn’t work either indicating that the problem might be on the OS/Browser level.
So to anybody experiencing an issue with Hyper and setting custom fonts, please first check if you can use the font anywhere else (try Chrome!) as this might be an issue elsewhere. Then try reinstalling the font.

How many times do I have to write this? IT IS NOT ABOUT THE FONTS. THE COLORS ARE WRONG. IF YOU "MANAGED" TO INSTALL CORRECT FONTS. WOW, GOOD JOB SPORT.
(sorry about the caps lock, it seems to be broken)

ok @b0rski let's take it down a notch.  This is free software and these people are not paid to help.   I get that this is frustrating for you, I spent a solid day myself trying to get al this to work as well, but it's not going to get better treating others that way.
After reviewing all of this my guess is that you're mixing up configs somehow.  Here is how I came to that conclusion.  in this comment:
https://github.com/zeit/hyper/issues/2470#issuecomment-345999296
you link to this config file:
https://gist.github.com/b0rski/356e74f4af3469535380a23351512320
which lists your shell as C:\\Windows\\System32\\bash.exe and then you say:

"this is how powerlevel9k theme looks like."

but powerlevel9k is not a bash theme.  it's a zsh theme.  so something is likely amiss here.  no matter how it shakes out you're using free software, with free support doing something it's not built to do out of the box.  That configuration requires a little patience.
Let me know if I can help you out.  I posted my issues and solution on a mac cause that's all i got and i hoped it could be helpful.  I'm gonna take a VM copy of Windows 10 with Linux Subsystem and see if i can get powerlevel9k working with nerd fonts on hyper but that will take me a bit. until then, please refrain from aggressive caps lock or verbal condescension with the volunteers who are being as helpful as they are able to be

@infn8:
I think you (and maybe others) misunderstand what I wanted to say. I don't think someone owes me something, where do I expose this attitude? I'm just tired of random people (not the devs of hyper) writing random messages in my ticket instead of opening their own. My comment above was directed at @davidnagli (sorry for not mentioning him in my comment).
Your guess is wrong. You can start bash.exe and still use zsh. And even if not, the problem still remains unsolved with bash and tmux.
Thank you for offering the help but I gave up on this issue and just use wsl-terminal instead. I don't think this is a configuration issue.

@b0rski Sorry about your broken caps lock key, glad you got that fixed :)
I don't wanna spam everyone by going back and forth, but the simple explanation for why everybody is writing "on your ticket" is because it's not a "ticket", it's a Github issue on an open source project, and common practice is to post your solution, issue reproduction instructions and any other details in an existing issue if possible to make the lives of maintainers easier. Many bright people work very hard (often for no pay) to help make these open source projects possible, so the least we can do is to keep everything organized and provide them with a clear and concise issue thread with everything in one place, so that if somebody wants to put together a PR fixing the issue they could do so without scrambling across 20 different issues.
Feel free to unwatch this thread if this continues to bother you.

@davidnagli Keeping issues on topic helps people solve problems because issues are way less chaotic this way. It does not help to post the same for the Nth time in the same thread. It only makes clear that the poster didn't even bother to read the history of the issue.
I have no idea what the argument of bright hard working people has to do with anything. Almost everyone is hard working today and many are bright. So what?
Feel free to stop discussing off topic stuff in this ticket.

For Mac user, I added the following and it worked.
fontFamily: '"Hack Nerd Font", monospace'

I think it should be reopened. I still can't use powerline since July.

There'll be extra spaces before cursor after characters.

Conhost works well (even if it doesn't have Roboto Mono for Powerline font).

@jdheyburn Yeah, I had the same issue and that helped. Also, if you're using a theme in hyper (like verminal) check if it doesn't override font setting. I has this issue while using verminal. Adding verminal settings to config fixed the issue:
module.exports = {
  config: {
    updateChannel: 'canary',

	verminal: {
		fontFamily: '"Ubuntu Mono derivative Powerline"',
		fontSize: 14
	},
...

Thank you, finally found where this happend


Suppress warning in caffe test

This PR suppresses a DeprecationWarning raised by the Caffe function tests in Python 3.7 with protobuf==3.7.0.

Jenkins, test this please

Jenkins CI test (for commit e608fc1cab1249469218fb4fa58199a81efd38e1, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

LGTM


sidebar inside articles

Hi! is it possible to add a sidebar inside the articles so we can add widgets like email list popular posts etc...

Hello @SamHamou, not via the theme directly. You can override the single or toc partials to achieve that. Check Hugo's documentation to learn about hot to do so.


Adjust syntax to python type hints

This PR provides required adjustments for pyright's syntax to work with https://github.com/sublimehq/Packages/pull/3736.
Unfortunately some of mensioned PRs changes break current syntax and I found no sane way around it.

https://github.com/sublimehq/Packages/pull/3736 has been merged and might be released with one of then next ST dev builds.

What will happen for stable build users if we merge and release this?

This being merged requires another 415x- version prefix to be defined to restrict them to  those ST builds shipping new python syntax including PR 3736. The resulting changes to pyright's syntax are not forward or backward compatible. This PR won't work with ST4150 but without this PR pyright's syntax will fail with any upcomming ST415x build.
I haven't investigated impact of implementing https://github.com/sublimehq/Packages/issues/3793 so far.

In that case, I would like to vendor PR #3736 until there is a new stable release. Because we already ST 3 release and ST 4 release, I wouldn't like to create yet another one.

Sounds like a plan to make transition smoother.

Let's change
extends: Packages/Python/Python.sublime-syntax

to
extends: Packages/LSP-pyright/syntaxes/Python.sublime-syntax


Add openshift samples - move aws samples

I pinged the doc team - it makes sense to wait until they ok the change.


Support relative file names both of "filename" and "./filename" while writeToFileWithoutExtension

Support relative file names both of "filename" and "./filename" while writeToFileWithoutExtension

Coverage increased (+0.01%) to 91.547% when pulling bec46431ac86ca395f8b29f3b341489e6cbe2d4f on baijifeilong:patch-1 into 6afe41b7a9d9e6aa7e60d22446527dddff55328f on Swagger2Markup:master.


HCS Native API

Hello John,
I am working on Windows container-related technology for my employer and would love to obtain additional information about accessing HCS capability through the C API.  Meanwhile, I'll watch the DockerCon video referenced above.
Thanks in advance, Jeff

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

ID: 73bf92dc-c558-5e2c-b81d-49321afecae3
Version Independent ID: 217b1692-298c-698e-a92e-00e986c79244
Content: Introducing the Host Compute Service (HCS)
Content Source: virtualization/community/team-blog/2017/20170127-introducing-the-host-compute-service-hcs.md
GitHub Login: @scooley

I would also like to have more documentation on C/C++ APIs.

I also ended up here because I searched for the reference docs for the HCS API but couldn't find it. In my case as a Docker user looking into some custom diagnostics for troubleshooting. Any feedback would be much appreciated. Thank you!

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Unable to assign servicePort or hostPort

The below configuration works properly with hostPort and servicePort getting assigned a random port. But If I set a value to hostPort and servicePort, it is not binding to that port and value is not getting shown in the UI itself.
For example
{ "containerPort": 6379, "hostPort": 0, "servicePort": 10000, "protocol": "tcp"}
with the above config, the service port is not getting bind to 10000. What am i doing wrong?
{
"id": "redis-master",
"instances": "1",
"cpus": "0.2",
"mem": "128",
"container": {
"type": "DOCKER",
"docker": {
"image": "dockerfile/redis",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 6379, "hostPort": 0, "servicePort": 0, "protocol": "tcp"}
]
}
}
}

Is that problem still there? Please reopen, if yes.


Hi,please help me,

When I load the checkpoint "cityscapes_efficientnet_b1_hyperseg-s.pth",there will be KeyError: 'optimizer'.
Traceback (most recent call last):
File "D:/PyCharm Community Edition 2022.2.2/plugins/python-ce/helpers/pydev/pydevd.py", line 1496, in _exec
pydev_imports.execfile(file, globals, locals)  # execute the script
File "D:\PyCharm Community Edition 2022.2.2\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:\Pythonfiles\hyperseg-main\configs\train\cityscapes_efficientnet_b1_hyperseg-s.py", line 47, in
scheduler=scheduler, pretrained=pretrained, model=model, criterion=criterion, batch_scheduler=batch_scheduler)
File "E:\Pythonfiles\hyperseg-main\hyperseg\train.py", line 227, in main
optimizer.load_state_dict(checkpoint["optimizer"])
KeyError: 'optimizer'
thank you

The provided checkpoints are only for evaluation, they can't be used to resume training (optimizer state was removed from checkpoint).

@YuvalNirkin Thanks you !!!


Blank Screen on Watch Dogs Legion using dxvk

Im trying to use dxvk on this game but always get blank screen, in the log says that dxgi: createswapchainforhwnd: unsupported device type, but im applying on another game and its run flawlessly, whats wrong?
Software information
Watch Dogs Legion
System information

GPU: Radeon Vega 3
Driver: 23.3.5
Wine version:
DXVK version: 2.2.0 and 1.0.3

Apitrace file(s)

https://drive.google.com/file/d/1J5lTc-9goOM6DQhDWnrkHB62pquUa5Jl/view?usp=sharing

Log files

https://drive.google.com/file/d/1-bH7V6YIZgxgC9_RfxLlItOmd8qwWMzA/view?usp=sharing

in windows platform

This game uses D3D12 which dxvk doesn't support. There is vkd3d-proton that you can use for D3D12 -> vulkan in addition to the dxvk.dll from dxvk, but it's pretty much guaranteed to be slower and more broken on amd windows drivers.

D3D12 games don't work with a D3D11 implementation, big surprise.

Watch Dogs: Legion has both D3D11 and D3D12 renderers. You can launch it with dx11 using -DX11 launch option
https://www.pcgamingwiki.com/wiki/Watch_Dogs:_Legion#Issues_fixed


macOS window launch behaviour

Bevy version
0.8.0
[Optional] Relevant system information

affects all versions of macos

What you did
Running any bevy proccess that launches a window
What went wrong
The window ignores macOS application rules (i.e. floating above fullscreen apps).
It should follow macOS application rules.
Additional information
This is quite an easy fix please make sure that
//the proccess is registered as an sharedApplication
[NSApplication sharedApplication];
//with regular activation policy
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
//make key window
[theNSWindowRef makeKeyAndOrderFront:nil];
//and importantly actually activating the process as an app
[NSApp activateIgnoringOtherApps:YES];

We don't directly interact with the respective api's. Instead we use winit. I think https://github.com/rust-windowing/winit/issues/2051 describes the same issue as you are having.

We don't directly interact with the respective api's. Instead we use winit. I think rust-windowing/winit#2051 describes the same issue as you are having.

Well actually winit already made there stance on it so really what you can do and what I would like to see is delay the logic triggered by app.run() until the ApplicationDidFinishLauncing event fires on mac or by registering the activation policy on the current porcess before making the window. This is really Something that has to be fixed because this invites unexpected app behaviour on macos

There are two ways to fix this:

by adding:

#[cfg(target_os = "macos")]
unsafe {
    use cocoa::{appkit::*,base::{NO,nil}};
    let nsapp = NSApp();
    NSApplication::setActivationPolicy_(nsapp, NSApplicationActivationPolicyRegular);
}

to bevy_winit's plugin build functions, or

by delaying window creation until the Event::NewEvents(StartCause::Init) has been fired

To someone not used to cocoa or apple APIs, the code snippet you posted looks a little like dark magic.
I think waiting for the event could be preferred

This PR (https://github.com/bevyengine/bevy/pull/5883) seems to be fixing the issue and is live on current main branch. Depending on when the next bevy version is meant to be released, it may be worth to bacport it to a bug fix 0.8.2 release, as current 0.8.1 is quite broken for on macOS.

0.9 should be in roughly one month.
I'm running on macOS and wouldn't call it quite broken

For what it's worth, @Kees-van-Beilen's suggested code seems quite reasonable. Calling Cocoa from Rust does indeed look like scary unsafe {} black magic, but this call is pretty straight forward. It is simply getting the running process' NSApplication instance and sending it the setActivationPolicy:NSApplicationActivationPolicyRegular message, both of which are technically unsafe operations but should never fail on macOS.


Fix error when drag with empty value

Fix error which https://github.com/jsonform/jsonform/pull/239

Add field:
JSONForm.fieldTypes['img_view'] = {
  template: '<%= node.value %>'
};

Test which schema:
{
  "schema": {
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "Hình ảnh",
        "properties": {
          "url": {
            "type": "string",
            "title": "Link to file",
            "description": "",
            "required": true
          },
          "caption": {
            "type": "string",
            "title": "Title",
            "description": "",
            "required": true
          }
        }
      }
    }
  },
  "form": [
    {
      "type": "array",
      "htmlClass": "split-md-4",
      "title": "",
      "items": {
        "type": "section",
        "items": [
          {
            "key": "images[].url",
            "fieldHtmlClass": "popupUrl"
          },
          {
            "type": "img_view",
            "value": ""
          },
          {
            "key": "images[].caption"
          }
        ]
      }
    }
  ],
  "value": {
    "images": [{ "url": "/111", "caption": "" }, { "url": "", "caption": "" }]
  }
}

@tchapi Please check it. This is a bug

Hello
Issue #239 was already fixed by your previous PR, that was merged. Here, it seems that you want to add a new type of tab array with images into the tab. I think this is more a specific feature than a bug, but maybe I haven't understood exactly what is it you're trying to achieve ?
Thanks

Hi,
When I drag and drop tab array which empty value, its value is disappear. It has error because values is empty.

I check this value is empty. If it empty return a empty string.


Add docker args to standardReleasePipeline

Signed-off-by: Sayali Gaikawad<EMAIL_ADDRESS>Description
Add option to specify docker arguments to the containers such as JAVA_HOME. Defaults to java 11
Context: The recent run for spring data opensearch failed because of missing java_home
The JAVA_HOME environment variable is not defined correctly,
this environment variable is needed to run this program.

https://build.ci.opensearch.org/job/spring-data-opensearch-release/7/console
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

I have no concerns on this one, just curious why do you use both 11 and 17 JDK versions back and forth?
Can we fix this to a specific version?
Thanks.

The java 17 is just a test to see if the override functionality works as expected. The default is set to 17

I have no concerns on this one, just curious why do you use both 11 and 17 JDK versions back and forth?
Can we fix this to a specific version?
Thanks.

The java 17 is just a test to see if the override functionality works as expected. The default is set to 11

Got it, thanks.

Codecov Report

Merging #105 (68442f4) into main (d8e305a) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 68442f4 differs from pull request most recent head 0093037. Consider uploading reports for the commit 0093037 to get more accurate results

@@            Coverage Diff            @@
##               main     #105   +/-   ##
=========================================
  Coverage     84.29%   84.29%
  Complexity       24       24
=========================================
  Files            68       68
  Lines           191      191
  Branches         10       10
=========================================
  Hits            161      161
  Misses           24       24
  Partials          6        6

Impacted Files
Coverage Δ

...dardReleasePipelineWithGenericTriggers_Jenkinsfile
100.00% <ø> (ø)

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


DependencyInjection\Extension deprecation warning

The "Symfony\Component\HttpKernel\DependencyInjection\Extension" class is considered internal since Symfony 7.1, to be deprecated in 8.1; use Symfony\Component\DependencyInjection\Extension\Extension instead. It may change without further notice. You should not use it from "Nelmio\CorsBundle\DependencyInjection\NelmioCorsExtension".

Fixed by #200


MM-12211 Add setting to let everyone create user access tokens

Summary
Enabling this lets all users create user access tokens, without requiring an admin to enable tokens for them first.
Ticket Link
https://pre-release.mattermost.com/core/pl/jkerpgtu63ywxej84aqhhmw6ie
Checklist

[x] Ran make check-style to check for style errors
[x] Ran make test to ensure unit and component tests passed
[x] Added or updated unit tests - fixed existing tests, didn't add new ones since there are no in-depth ones for the areas I touched
[x] Has server changes: mattermost/mattermost-server#9310
[x] Includes text changes and localization file (.../i18n/en.json) updates

As noted in https://github.com/mattermost/mattermost-server/pull/9310, we're ready to proceed with the PR. Sorry about the delay.
The only change that is needed for the PR before it's ready for review is add the new setting also to the permissions system for Enterprise Edition.
@jespino would you be able to guide @ThiefMaster on what changes are required to add a new setting similar to EnableOnlyAdminIntegrations, which is configurable in System Console, and

writes to config.json in TE [already implemented]
maps to role-permissions in EE [not yet implemented]

If you need any clarification, let me know. Ticket is here and server-side PR is here.

To map EnableOnlyAdminIntegrations to the role-permissions in EE was done through these two PRs, but I believe they had other changes included that aren't relevant here.

https://github.com/mattermost/mattermost-webapp/pull/704
https://github.com/mattermost/mattermost-webapp/pull/1661

@ThiefMaster, I really sorry the delay reviewing it. I was very busy and lately I've been in my parental leave, so, I'll review it ASAP.

@ThiefMaster I realized that the server part is under discussion yet, so, when that part is solved I'll review it.


Issue - Clicking "processing" link does not take you directly to a title in Overseerr like it should.

Once movie has been requested it shows as processing on Imdb or Tvdb etc. However clicking the button only takes you to the root of Overseerr and not to the movie directly as it should. I see a login screen briefly for a split second before it takes me to the main dashboard.
I verified that the url for "processing" is correct (ex: http://sub.mydomain.com:111/movie/414906) when I hover over the button. Copying that url to clipboard and manually pasting it works properly.
Thank youuzzzz :)

Hi @skynet01, thank you for the bug report !
I've been experiencing this issue for a few weeks now, it seems to be caused by the authentication method used in Overseerr. I don't know why it doesn't work when you click on the link in the button and it's fine when you copy/paste the link in the browser though. I will investigate further as this needs to be addressed.

Hmm.. is there maybe an API call to Overseerr with a movie id and then the redirect is done by Overseerr itself and not by direct link from extension? .. or maybe some other way to do a redirect .. just throwing some ideas ..

@binitGajera thank you for taking the time to investigate this, you are indeed correct. When I change the SameSite policy of my connect.sid cookie to Lax it does work as expected.
I will create an issue on their side to either change the SameSite policy or at least add an option in the settings to change it.

The PR I submitted this morning has been merged on the develop branch of the Overseerr project already. The feature will probably be released with the upcoming version but if you want to give it a shot you can upgrade your Overseerr instance to the develop version.
I just tried it works well, you just have to make sure that the CSRF Protection is disabled in the settings (it's disabled by default). Closing this issue for now, but feel free to reopen it if the problem persists.


Ability to go to a point (app_goto_target)?

Hi,
Is there support, or an alternative/option for sending the vaccum to a specific location, such as app_goto_target?
Thanks

I see now that it's in the 2.0 beta! If so please close, sorry!


Best way to set headers?

There is a best way to set headers on pass params?
Example:
Client.Photo.save({
  category: 'family',
  body: {year: 2015, tags: ['party', 'family']},
  headers: {
      'Authorization': 'token MYTOKEN'
  }
})

Thanks!

Hi @CezarLuiz0, you need the authorization header only in this call or for all of them? For either option you can use the url matching to configure the headers. Take a look at https://github.com/tulios/mappersmith#global-configurations-and-url-matching

Hi @tulios, thanks for the quick answer.
I saw the url matching, but I think the docs needs more examples.
Not all my calls need the header, but the vast majority need to set other headers in addition to these.
Thanks!

The documentation is covering all the features but I agree with you that it lacks examples, thank you for the feedback. With the URL matching, you can have different headers per group of calls and you don't need to change your main code later, you can just include or remove headers from the manifest. However, I understand the wish of having a more direct way to define the headers.
I will create an issue to implement this and link here.

hey @CezarLuiz0, I will release a new version with the changes this week at most, I'm just checking for other needs of headers like the response headers.

Ok, thanks!

@CezarLuiz0 I've published version 0.12.0 with the new header support.


[BUG] Dragging Input field for Tags gives Error.

Has this bug been raised before?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Where did you find this bug?
Production
Version of BioDrop (for example "v1.2.3")
v2.94.1
Description
Now that the tags are draggable on events and profile page, the input field is also draggable, but when we try to drag the input field, we get a client side exception. Checkout below video for reference.
https://github.com/EddieHubCommunity/BioDrop/assets/43419831/5bd8191f-9b2c-4d16-9ae2-cd978d229d2a
Steps to Reproduce
If you know the steps, follow the below format and provide steps to reproduce

Go to https://www.biodrop.io/account/manage/profile or https://www.biodrop.io/account/manage/event page .
On bottom left side, you can see tags field. If you have a few tags skip to step 3, else add a few tags here.
Try to drag the tags it works fine. Now try to drag the input field and you will get the exception.

Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
The most optimal solution would be to take the input field out the tags box. I will take the input field out and place it above the box. This way, the input field will be of constant size and not draggable as well.

Hello @eddiejaoude are you okay with the proposed solution or do you have any other approach in mind?

Looks great! 👍 Merged 🎉


8.1 - no NPM - GeoTIFF is not defined

Describe the bug
Version
Version : v8.1.0
Load : from release dist/ol.js inside index.html (old school import style)
Description
Hi,
I try to use OL 8.1.0 to view a simple TIFF file.
If i use openlayers as Vite dependancy (start serve with NPM), it works.
But if i load OpenLayers from ol.js file without NPM, i get an error :
ReferenceError: GeoTIFF is not defined
    <script
        type="text/javascript"
        src="lib/openlayers/8.1.0/ol.js"
    ></script>

When i debug ol lib, i can find ol.source.GeoTIFF function :

Do you reproduce this behavior ? Need i to import GeoTIFF lib before ol in v8.x ?
Thanks.
GB
To Reproduce

import OL with ol.js file without npm (in index.html so)

    <script
        type="text/javascript"
        src="lib/openlayers/ol.js"
    ></script>

2 Create a layer with this code
Here is the code inspired by OL examples  :
const layer = new ol.layer.WebGLTile({
    source: new ol.source.GeoTIFF({
		sources: [
			{
                               // from example
                              url: 'https://openlayers.org/data/raster/no-overviews.tif',
                              overviews: ['https://openlayers.org/data/raster/no-overviews.tif.ovr'],
			},
		],
	}),
});

Try.
Expected behavior
Expected to work as OL example.

If i add lib GeoTIFF it seems work better :
<script src="https://cdn.jsdelivr.net/npm/geotiff"></script>

Yes, https://openlayers.org/download/

The full build of the library does not include all dependencies: the geotiff and ol-mapbox-style packages are omitted. If you use these, you'll need to add additional script tags.

Oh thanks !


Hot-reloading corrupts shaders

Sometimes when hot-reloading the webpage, artifacts can get introduced into the scene such as where the red arrow is pointing

Hot-reloading sometimes also causes entities to not render.
In terms of frequency, the former seems to rarely happen (I delayed posting this issue because I couldn't reproduce it for a couple days) and the latter happens maybe 1 in 5 hot-reloads.
The mesh corruption artifacts don't seem to go away until I do a page refresh while the entities disappearing usually is fixed by doing one or two more hot-reloads.
This is occurring on Chrome both on my Mac and Windows computers. It might have also occurred on Firefox though I might be misremembering as I haven't tested that in a while.
Edit: Now I'm getting the mesh corruption repeatedly. I'm not sure what conditions cause it to happen more frequently.

@MartinSStewart this could have been solved by https://github.com/elm-explorations/webgl/pull/20
Are you still getting this issue?

I haven't seen this issue in almost a month. #20 maybe have fixed it.


Support Angular/rxjs 6

Simple reference fixes for the latest Angular and RxJS

So after this PR we can use it in angular 6 , right ?


executive_smach_visualization: 2.0.2-0 in 'jade/distribution.yaml' [bloom]

Increasing version of package(s) in repository executive_smach_visualization to 2.0.2-0:

upstream repository: https://github.com/ros-visualization/executive_smach_visualization.git
release repository: https://github.com/jbohren/executive_smach_visualization-release.git
distro file: jade/distribution.yaml
bloom version: 0.6.1
previous version for package: 2.0.1-0

executive_smach_visualization

No changes

smach_viewer
* Allow launching from a launch file, use rospy.myargv() to remove ROS  remapping arguments (#16 <https://github.com/ros-visualization/executive_smach_visualization/issues/16>)
  * Use rospy.myargv() to remove ROS remapping arguments  Required to allow launching from a launch file, otherwise get errors of the type:
  ```usage: smach_viewer.py [-h] [-f]
  smach_viewer.py: error: unrecognized arguments: __name:=smach_viewer```

  <string>:13: (WARNING/2) Inline literal start-string without end-string.

  <string>:13: (WARNING/2) Inline interpreted text or phrase reference start-string without end-string.

  Solved 'Cannot start smach_viewer.py in launch file' problem #17
* Contributors: Kartik Mohta

The targeted ROS distro has been EOLed a while ago. We don't run a buildfarm for it anymore.


cannot import name 'BlobServiceClient', 'ContainerClient', and 'BlobClient' from azure storage blob library

I've installed azure-blob-storage through a pip install. I am using Python 3.6
The installation works, but then I am not able to import any of the packages 'BlobServiceClient', 'ContainerClient', and 'BlobClient'
Please advise or let me know if you need more information.
Thanks!

@macambo Thank you for your question. Can you please share with us the URL of the document that you are having issues with?
Please note that we scope issues on this repo to feedback related to the Azure documentation. If you have a product question, please post it on MSDN or Stack Overflow. Thank you for your understanding.

@macambo Since we have not heard back from you we will now proceed to close this thread. However if you can share additional information regarding the documentation you are referring to and circle back on this thread , we will gladly reopen the issue and continue the discussion.

Please reopen the issue.
Here is the URL. Please let me know if you need any additional information.
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python

@macambo Thank you for sharing the documentation link, reopened the thread and assigned to respective area SME to further look into it. Thanks

@macambo Just for clarification: Are you geting any error message while importing? If, so can you share me the screenshot of the error message?
Refer to the suggestion mentioned in the SO thread and let me know the status

I cannot recreate the issue because everything appears to be working now. Thank you for looking into it. You can close the issue.

Just FYI, I was able to fix this by adding "azure-storage-blob" to my requirements.txt, whereas I had only "azure-storage" in there before.

Use this instead:
from azure.storage.blob import BlockBlobService
This will allow you to create containers by setting account name and account key as well as creating container and setting container to public.
More can be found in this doc:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python-legacy


The virtual path '/' maps to another application, which is not allowed

Just starting to use this library I get this exception when trying to send a basic email using Asp.Net MVC 5:
Nothing fancy, Just followed the instructions on the website.
I am running my application as http://localhost/sitename.  If I change my url to be http://localhost/ the email works without an issue  This is the same issue as https://github.com/andrewdavey/postal/issues/65
[ArgumentException: The virtual path '/' maps to another application, which is not allowed.]    System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +12796283    System.Web.HttpContext.GetFilePathData() +60    System.Web.HttpContext.GetRuntimeConfig() +38    System.Web.HttpRequest.get_Browser() +191    System.Web.HttpRequestWrapper.get_Browser() +18    System.Web.WebPages.BrowserHelpers.GetOverriddenBrowser(HttpContextBase httpContext, Func2 createBrowser) +360
System.Web.WebPages.DisplayModeProvider.<.ctor>b__2(HttpContextBase context) +11
System.Web.WebPages.d__4.MoveNext() +192
System.Web.Mvc.VirtualPathProviderViewEngine.GetPath(ControllerContext controllerContext, String[] locations, String[] areaLocations, String locationsPropertyName, String name, String controllerName, String cacheKeyPrefix, Boolean useCache, String[]& searchedLocations) +856
System.Web.Mvc.VirtualPathProviderViewEngine.FindView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) +206
System.Web.Mvc.<>c__DisplayClass6.b__4(IViewEngine e) +43
System.Web.Mvc.ViewEngineCollection.Find(Func2 lookup, Boolean trackSearchedPaths) +174    System.Web.Mvc.ViewEngineCollection.Find(Func2 cacheLocator, Func2 locator) +23    Postal.EmailViewRenderer.Render(Email email, String viewName) +63    Postal.EmailService.Send(Email email) +58    UHearth.Web.Controllers.<>c__DisplayClass16.<SendEmailConfirmation>b__15() in c:\Users\Remco\Documents\Visual Studio 2013\Projects\HearthstoneTracker.com\UHearth.Web\Controllers\AccountController.cs:186

I want to clarify my issue.  I am utilizing Hangfire to send emails in the background.  I have followed the tutorial located http://docs.hangfire.io/en/latest/tutorials/send-email.html.  When I have IISExpress configured to debug the site on http://localhost:7706 everything works correctly.  When I have IISExpress configured to debug the site on http://localhost:7706/SubSite I receive the error
The virtual path '/' maps to another application, which is not allowed

I have tracked the error down to the following line in the EmailViewRenderer.cs file
            var result = viewEngines.FindView(controllerContext, viewName, null);

of
        IView CreateView(string viewName, ControllerContext controllerContext)
    {
        var result = viewEngines.FindView(controllerContext, viewName, null);
        if (result.View != null)
            return result.View;

        throw new Exception(
            "Email view not found for " + viewName +
            ". Locations searched:" + Environment.NewLine +
            string.Join(Environment.NewLine, result.SearchedLocations)
        );
    }

I found that the issue was that the controllerContext httpContext was not getting set correctly.  In the method
    string UrlRoot()
    {
        var httpContext = HttpContext.Current;
        if (httpContext == null)
        {
            return "http://localhost";
        }

        return httpContext.Request.Url.GetLeftPart(UriPartial.Authority) +
               httpContext.Request.ApplicationPath;
    }

if the httpContext is null which is the case when using hangfire the default value is "http://localhost"
If I changed the default value to be "http://localhost/SubSite" then everything will work without an issue.  Is there a configuration that I can set to get this to work without modifying the source code?

I'm having the same issue. Is there any solution that does not involve modifying the source code??

I was able to resolve my issue, I had previously posted on stackoverflow.  Here is the link to my issue and resolution.  http://stackoverflow.com/questions/35389505/using-postal-and-hangfire-in-subsite

@utchetfield Thanks!

@mauricioulloa FYI I updated my answer on stackoverflow with a more elegant solution that also resolved some other issues that appeared once my application was a heavy stress.


[AutoDiff] NFC: use triple slashes for doc comments.

Consistently use /// in doc comments on functions.

@swift-ci Please smoke test

@swift-ci Please smoke test macOS


Please, make Effekseer for Blitz 3D

Could you, please, make Effekseer  for Blitz3D

Please ask Blitz3D developers. We don't have an enough developer


Failed responses don't raise an error?

In a test we have visit "...", however due to a bug (we weren't passing a subdomain), the URL was wrong. Looking at the debug log for PhantomJS, it shows that the response failed:
{"name"=>"set_debug", "args"=>[true]}
{"response"=>true}
{"name"=>"visit", "args"=>["http://.lvh.me:65498/admin/blahblahblah"]}
poltergeist [1374840386949] state default -> loading
poltergeist [1374840386954] state loading -> default
{"response"=>{"status"=>"fail"}}
{"name"=>"find", "args"=>[:xpath, "/html"]}
{"response"=>{"page_id"=>1, "ids"=>[0]}}
{"name"=>"all_text", "args"=>[1, 0]}
{"response"=>""}
{"name"=>"find", "args"=>[:xpath, "/html"]}
{"response"=>{"page_id"=>1, "ids"=>[1]}}
{"name"=>"all_text", "args"=>[1, 1]}
{"response"=>""}
{"name"=>"find", "args"=>[:xpath, "/html"]}
{"response"=>{"page_id"=>1, "ids"=>[2]}}
{"name"=>"all_text", "args"=>[1, 2]}
{"response"=>""}
{"name"=>"find", "args"=>[:xpath, "/html"]}
{"response"=>{"page_id"=>1, "ids"=>[3]}}
{"name"=>"all_text", "args"=>[1, 3]}
{"response"=>""}
....

Is there any way to check that a response has been successful (or failed?) other than checking the page contents?

Closing since this isn't a bug


[Feature request] Auto upload for professional accounts

Firstly thanks for the great tool, works awesome, and I have a feature requirement if that's possible
What would you like to be added:

Auto upload for professional accounts - There can be a CSV or excel file in the following format
File path (can be image or video, but local path only), Upload type ( Reel | Post | Story),Caption, Publish time (Immediately | A time in specific format such as DD-MM-YY hh:mm (24 hours))

Path
Type
Caption
Time

Android/data/gramAddict.podcast1.mp4
Reel
Source: Lovers & Friends Podcast #podcast
24-03-24 19:00

GramAddit will read this file, and upload podcast1.mp4 as reel with caption Source: Lovers & Friends Podcast #podcast and set publish time to schedule at 24-03-24 19:00
Why is this needed:
The meta business suite is still a lot of work manually, specially in case of Instagram, there's no bulk upload, and reel scheduling is a 3 step process (which still is not scheduling reels somehow)

vote for this one


Feature/cu fv8099 deleted user can not be added anymore because of username conflict

Task linked: CU-fv8099 Deleted user can not be added anymore because of username conflict


Parachute Tooltips Too Long & Incorrect

The item tooltips for the cold and golden parachutes go off the side of the screen (With or without advanced tooltips).
The blue text (trinkets.slot.chest.parachute) is probably supposed to say Parachute.
See attached:
https://user-images.githubusercontent.com/64770632/112709369-2bf9ac00-8e76-11eb-964a-aea55023f070.mp4
My monitor is the default resolution 1920x1080, and my GUI scale is 4 (auto).

I've been told this is fixed. (by Sweepswap)


debt - do not inline default settings

This PR fixes #

Hm, nevermind looks like our tests rely on this. I don't have strong feelings to change this...


Add CustomOp tutorial doc

Description
Add a brief tutorial doc on CustomOp tutorial and examples.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[ ] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[ ] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[ ] To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[ ] Feature1, tests, (and when applicable, API doc)
[ ] Feature2, tests, (and when applicable, API doc)

Comments

If this change is a backward incompatible change, why must this change be made.
Interesting edge cases to note here

@samskalicky @mseth10 @wkcn please take a look at the doc

@samskalicky @wkcn resolved all the comments!

@eric-haibin-lin @aaronmarkham can you also take a quick look at the doc, thanks!

There are multiple docs on writing operators. Shall we consolidate them?

python op: https://github.com/apache/incubator-mxnet/tree/3ece00b1acf3e5ca2bbf46d6eaf36ae900cd7666/example/numpy-ops
cpp op guide: https://mxnet.apache.org/api/faq/add_op_in_backend
old cpp op & python op guide: https://mxnet.apache.org/api/faq/new_op (it mentions mshadow, which is supposed to be deprecated...?)
this tutorial

@eric-haibin-lin Thanks for the review! I will add it to a TODO list with upcoming features and consolidating all docs about writing operators (to give new users a smooth experience)


How to extract IMAGE Notes and Attribution from the API?

I couldn't find in the API documentation how I get Notes and Attribution for use with the images.
A little help would be lovely.

Hello @adrik29
For notes the route is: /api/v1/notes
You can use note_object_id and note_object_type parameters to filter by id and type
For attributions I think we don't have a public route, but you could get them from images using /api/v1/images?extend[]=attribution

José Luis, that's lovely. Will try it right away. Thanks for the attention!

@adrik29 np :D
Have you been able to get the data?

@jlpereira -- Oh yeah. Thanks to you!


Added support for external service bindings

What this PR does / why we need it?:

Updates to CRD:spec:
  bindings:
    autoDetect: true|false
    externals:
      - sb-1
      - sb-2

Added a new field to .status for keeping track of resolved ServiceBinding CRs as []string. For each of the bindings, it adds a envFrom. This means all keys from external binding secrets are injected into the container as environment variables.

Does this PR introduce a user-facing change?

[ ] User guide
[ ] CHANGELOG.md

Which issue(s) this PR fixes:

Fixes #

Fixes https://github.com/application-stacks/runtime-component-operator/issues/69


Unexpected Recursion when use Modal in Confirm Component

Version
3.0.0
Reproduction link
https://codesandbox.io/s/modest-curran-qmdxg
Steps to reproduce
Create Component ModalDialog, with slots, then Create Component ModalConfirm with Yes No buttons and emit confirmation true if YES has been pushed, false if NO has been pushed
What is expected?
Confirm Modal appear
What is actually happening?
Maximum call stack size exceeded

your ModalConfirm is named ModalDialog and it's rendering itself in a loop.

Remember to use the forum or the Discord chat to ask questions!


CDAAC data access

This affects COSMIC data:

Dear CDAAC Users,
Please note our Webpage now uses Secure Socket Layer (SSL) and thus it starts with https:// instead of http://
https://cdaac-www.cosmic.ucar.edu/cdaac/index.html
We have added a redirect from http:// to https://, so your bookmarks should just redirect.
However if you have any scripts that fetch data with http, please change your scripts to use https://

Closed with merge of #168.


fix: rewards issue

Proposed changes
This update addresses an edge case in transaction fee history calculations. The issue arises when there are only two rewards in the fee history. In such cases, calculating percentage increases would produce a single-element list, causing an error during unpacking.
Additionally, we’ve identified a potential edge case: if only one reward is present, calculating percentage increases would yield an empty list, leading to a failure.
Fixes

Resolved unpacking issue by removing the unpack operator.
To handle the single-reward scenario, we’ve introduced a fallback mechanism:

Incrementally adjust the fee history percentile up to a maximum of 3 retries to obtain at least two rewards.

The doc link fix is on #769


Tests/test for confirmation task planner

Closes #407

@schmir-at-bb Any idea why pre-commit betrayed me there again?

@schmir-at-bb Any idea why pre-commit betrayed me there again?

we don't run mypy via pre-commit in this repository. we can add it, and should copy the configuration from the contracts repository.


hi i literally have no idea about coding and i just wanna connect my ps4 controller to my pc. first time im doing code and im utterly confused. is there any way you could help me

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/edit
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Okay so i think i opened the program.cs file and tried to enter everything needed and saved it. im not sure if what i named the file was important or not to the process so i named it 'Program kp lan cs'. i hope this isnt what caused the issue. the error message is in german so ill try to roughly translate:
C:\Users\akmal\MyApp\Program.cs(2,1): error CS8802: only a compilation unit can command on the highest level. [C:\Users\akmal\MyApp\MyApp.csproj].
Error in the build process.
i dont even know how to upload the file. im super bad at this so extremely detailed help would be amazing

@Ineedhelp18
Could you please add more details of what you're trying to accomplish with connecting the ps4 controller to pc.
For the Program.cs, I assume that file doesn't have too much lines of code. If so, could you please copy it and paste it as a comment?

im not sure if what i named the file was important or not to the process so i named it 'Program kp lan cs'.

The file name could not have space, you could separate words with underscore ('Program_kp_lan.cs') or use CamelCase ('PrograKpLan.cs')


LSC: Extract Method

Can we do this as a Code Action? If so, does this mean we do not require client side UI work? If not, we may revive our existing code.
Depends on language server work to implement the refactor logic.
https://github.com/microsoft/python-language-server/issues/965

We are now tracking this task in our internal Pylance Azure DevOps.


filtering - inline_edit - submit

Hi, I upgraded to version 3.0.2, and filtering didn't work now. I have a data source from Doctrine with two string columns: name and code with active sorting and filtering. I checked the configuration first, but it seemed okay.
I found an exception in the method filterSucceeded on line in 1180 (DataGrid class), which followed by: Nette\InvalidArgumentException: Component with name 'submit' does not exist.
(AJAX) URL was: /www/presenter/?filter%5Bname%5D=&filter%5Bcode%5D=&do=overviewGrid-filter-submit.
Can you help me? :)

Can you please show me the code of the factory that returns your datagrid?

public function createComponentOverviewGrid() {
$grid = new DataGrid($this, "overviewGrid");
// data source
$dataSource = $this->initializeGridSource($this->manager->getQueryBuilder()); // note: it is with alias
$grid->setDataSource($dataSource);

// columns
$grid->addColumnLink("name", "Name", "show")->setSortable();
$grid->addColumnText("code", "Code")->setSortable();

// filtering
$grid->addFilterText("name", "Name:");
$grid->addFilterText("code", "Code:");

// translations
$grid->setTranslator(new SimpleTranslator([
    ...
]));

// actions
$grid->addAction("show", "")
        ->setIcon("eye")
        ->setClass("btn btn-xs btn-default");
$grid->addAction("edit", "")
        ->setIcon("edit")
        ->setClass("btn btn-xs btn-info");
$grid->addAction("delete", "", "deleteOne!")
        ->setIcon("trash")
        ->setTitle("Delete")
        ->setClass("btn btn-xs btn-danger ajax")
        ->setConfirm("Do you really want to delete the record (nr.%s)?", "id");
// (group)
$grid->addGroupAction("Delete selected")
        ->onSelect[] = [$this, "handleDeleteMany"];

// hideable
$grid->setColumnsHideable();

// export
$exportFileName = strtolower($this->getPresenterTitle());
$grid->addExportCsv("Export to CSV (all)", "$exportFileName.csv");
$grid->addExportCsvFiltered("Export to CSV (filtered)", "$exportFileName.csv");

}
PS: I use Kdyby/Autowired...

My fault, v3.0.4 fixes that.
Thanks

Thanks man, you're doing a really good job (not only with this project :)


Crypto

Originally reported on Google Code with ID 170
Hi Arsen,

are there any plans to design features involving encryption (essential for deploying
UniMRCP as software-as-a-service) and implement them in medium-term future? I do not
suppose so, but tried to create a ticket at least. :-)

- Vali

Reported by<EMAIL_ADDRESS>on 2014-05-12 14:43:55

Is this enhancement still under active development?

Short answer: no.
We discussed this issue with Vali in great details back in 2015, and made a few steps towards the implementation. However, later on, I was told that Vali passed away, such a great sadness....
Substantial changes are still required in order to completely address this issue. I hope sooner or later the time will come ...

Hey there, is there anyway I could look into this? If possible, we can discuss things, and I can pick up from the last thing that was done.

With PCI 4, I'm feeling pressure from my organization for MRCP to be fully encrypted. Is there any work being done on this? Are there recommended workarounds people are using successfully?

Has any progress been made with regards to adding support for SIP TLS/SRTP into UniMRCP?


tests and functionality

@miltontony @justinvdm ready for review

@saeedmb8 ready for review also

:+1:


NFG link modifications

I added another 6guts blog link that I found particularly useful about the topic - probably more useful than its prequel. Also "deseriousalized" the chat discussion: it's clearly cute and funny if you already kind of grasp the topic but perhaps a newcomer shouldn't take it too seriously, that wouldn't seem good PR. :v

Thanks.


User Testing

Ask selected users to test the web application to ensure it is compatible with different devices and accessible. Testing must be checked against the requirements outlined earlier in the plan.
At this stage, tweaks can be made according to feedback on the code.

This was completed in the requirement testing section


Cache configuration for API 3.x

Hi Team,
Here it's mentioned that external cache needs to be configured.
https://learn.microsoft.com/en-us/azure/cognitive-services/computer-vision/deploy-computer-vision-on-premises#configure-helm-chart-values-for-deployment

But in the below doc section which is linked from above document, "Cache:Redis" option seems valid only for API v2.x. how should it be configured for API v3.x? This point is not mentioned so feel confusing. should it be mentioned in those docs?
https://learn.microsoft.com/en-us/azure/cognitive-services/computer-vision/computer-vision-resource-container-config?tabs=version-3-2#configuration-settings
Kindly confirm.
Regards,
Yutaro

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

ID: 3dd60bd8-18bf-e3a7-1983-63f9624747b3
Version Independent ID: be016a8f-f0b9-f708-53d5-a2151a230b9b
Content: Configure Read OCR containers - Computer Vision - Azure Cognitive Services
Content Source: articles/cognitive-services/Computer-vision/computer-vision-resource-container-config.md
Service: cognitive-services
Sub-service: computer-vision
GitHub Login: @aahill
Microsoft Alias: aahi

@yutaro113
Thanks for your feedback! We will investigate and update as appropriate.

@yutaro113
Thank you for bringing this to our attention.
I've delegated this to content author @aahill, who will review it and offer his insightful opinions.

Reassigning to @PatrickFarley who works on Computer vision
#reassign:PatrickFarley

@yutaro113  From what I can tell, you need to use an Azure Storage Account (Blob and Queue) for this in version 3.x.
The docs don't mention what format the values for these parameters should be, so I figured I'd share how I got it working. The bit that tripped me up for a while was not including 'QueueEndpoint=' in the value.
I only got it working with using SAS tokens when testing this out. I'm unsure if you can do it using one of the other storage account authentication methods. If you get that working, feel free to share.
The below worked for me. It creates a whole bunch of queues in the storage account and also a container called 'read', where it stores all the results under. I was able to do an async request on one container and retrieve it on another container running on a different port.
docker run -p 5000:5000
mcr.microsoft.com/azure-cognitive-services/vision/read:3.2-model-2022-04-30
Eula=accept
Billing={ENDPOINT_URI}
ApiKey={API_KEY}
Queue:Azure:ConnectionString="QueueEndpoint=https://.queue.core.windows.net/?<SAS_token>"
Storage:ObjectStore:AzureBlob:ConnectionString="BlobEndpoint=https://.blob.core.windows.net/?<SAS_token>"

@yutaro113 Did that answer your question? I'm a bit out of my depth here

#please-close


Operation level authentication and scopes

Hi! 🖖🏻
This PR resolves #2624 by implementing the design doc, but in its initial form:

@useAuth can now be applied not only to service namespace, but to interfaces and operations as well. Its arguments override all authentication, which was set for enclosing scopes.
OAuth2 scopes can now be set at operation level (though, the code doing this in OpenAPI emitter is a bit clunky).
New NoAuth authentication option allows to declare optional authentication (NoAuth | AnyOtherAuth) or override authentication to none in nested scopes.

This implementation does not introduce new @authScopes decorator as design doc comments suggest, and here's why:

It does not compose well with @useAuth at operation level. For example

...
@useAuth(BasicAuth)
@authScopes(MyOauth2, ["read"])
op gogo(): void

Should that be BasicAuth | MyOauth2, or [BasicAuth, MyOauth2]?

Introducing new decorator would increase complexity, but (imho) it would not reduce the amount of boilerplate:

alias MyOAuth2 = OAuth2Auth<{ ... }>;

@useAuth(MyOAuth2)
@authAcopes(MyOauth2, ["read"])
@service
namepsace Foo;

vs
model MyOAuth2Flow<T extends string[]>  {  ...  };
alias MyOauth2<T extends string[]> = Oauth2Auth<[MyOauth2Flow[T]]>

@useAuth(MyOAuth2<["read"]>)
@service
namepsace Foo

I would be happy to hear any feedback and apply suggested changes.
And thanks for a convenient development setup and thorough test coverage!

@microsoft-github-policy-service agree

/azp run

:x: There is undocummented changes. Run chronus add to add a changeset or click here.
The following packages have changes but are not documented.

:x:@typespec/http
:x:@typespec/openapi3

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/2901/
Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/2901/


save back in raw?

is there a way to process in raw and save back to raw format (e.g. ARW). It would be something like raw.save?

I guess I'll just re-write it into bytearray

What do you mean by process in raw exactly? A raw file doesn't store any postprocessed image, except for a preview potentially. Do you mean that you want to modify the original RAW Bayer matrix pixels and save them to a copy of the RAW file? If so, then this is not possible as the underlying library (libraw) does not support that, it is read-only.

Yes that was my question, I hoped to save to another RAW file. Thanks for clarifying.

Hello @letmaik Is it possible to save as a DNG file? I am trying to convert CR3 to DNG. Thank you!

process_raw could save raw back to dng file.


Testset generation prompt customization

The current SimpleEvolution seed question prompt uses a hardcoded Prompt. I have a usecase where I want to use a customized prompt to generate certain types of questions. The only way I see to accomplish this is at the moment is to derive a class based on SimpleEvolution and copy/paste _aevolve using a custom Prompt instead of the seed_question_prompt.
It would be nice to have the ability to inject or otherwise customize a prompt.

actually you can do it another way. just call SimpleEvolution with a different prompt like so
from ragas.testset.evolutions import SimpleEvolution

simple = SimpleEvolution(seed_question_prompt=# your prompt)

note you will have init the rest of the attributes for Evolution and the Prompt object should be of the format https://docs.ragas.io/en/latest/concepts/prompts.html

Ahh, did not see this was added with this PR https://github.com/explodinggradients/ragas/pull/530
I'll pull latest. Thanks!


Option to have preview as default view

You could have the toggle as a mode switcher, instead of taking you to a new "screen".

This feature can be enabled in settings


Object rotation broken in Chrome

Rotating an object in Chrome (tested with Version: 99.0.4844.83) always snaps object to weird angles.
When I create a rectangle and rotate it without holding shift, it snaps to these angles:
27 deg, 45 deg, 63 deg, 90 deg, 135 deg, 153 deg, 180 deg, 207 deg, 225 deg, 243 deg, 270 deg, 315 deg, 0 deg
When I do the same in Safari (Version 15.4 (176<IP_ADDRESS>.6)), I can freely rotate the object to any desired angle (which is what I would expect when not holding shift).
When holding shift in Chrome the angles are also not as fine-granular as in Safari; there I can rotate an object in increments of 15 deg, in Chrome some of these angles are skipped.

Cannot reproduce on Chrome 99.0.4844.83/99.0.4844.84, both on Windows 10 and MacOS. Smooth as butter 🤔

Oh I figured it out, it relates to whether or not the grid is active.
Without "show grid" it works smooth as butter, but when I show the grid it has this snappy behavior that I describe.

I see. Checking other tools, they don't snap to grid when rotating. Wonder whether we shouldn't either.

(Knew it's a unique behavior. It was intentional, but feel free to revert it..)

I think the idea of snapping to the grid is ok, but I would have expected that the angles are those that one gets while holding shift. I intuitively tried using shift to not get this behavior, so maybe use shift as the toggle to turn it of when grid is shown and on when no grid is shown?


#892 Update license HEADER.txt for 2023

Do not merge before Q1 2023
Description

Updates the license header to use placeholder for year property
Disables overwriting existing license headers to prevent existing 2019-2022 headers from being updated (conflicts with placeholder, Licenser plugin issue)

Fixes #892
Type of change

[x] Chore (changes to the build process or auxiliary tools)

Checklist:

[x] Related issue number is linked in pull request title

Happy 2023, anonymous reader ✨🎉


Update readme to include avoiding CORS issues

Updates the readme w/ the necessary headers to avoid CORS issues on running npm run web
Tests

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)


Merge ErrorFlyout abilities into Flyout

Since ErrorFlyout is just a type of Flyout it makes sense to merge these as @chrislloyd pointed out.
Migration plan:

This PR - merge ErrorFlyout abilities into Flyout. The main differences are the background, the shouldFocus prop, and the children. I chose to handle this by implementing a role prop with options similar to Modal (alertdialog and dialog). @chrislloyd is this ok or should we just switch to type = 'error' | 'dialog'?
Cut a release with this change and convert all <ErrorFlyout /> uses to <Flyout role="alertdialog">. At this stage we should convert the message prop from ErrorFlyout to a child that looks like

      <Box padding={3}>
        <Text bold color="white">
          {message}
        </Text>
      </Box>

Does this look good, or should we update the Flow typing such that role = 'alertdialog' automatically adds this snippet for children and expects a message prop as well @chrislloyd ?
3. Cut another release where we remove the exported ErrorFlyout once and for all

Deploy preview for gestalt ready!
Built with commit 94eb58a1b982ebbb1ca8a5b3a4a90df2943e59f4
https://deploy-preview-242--gestalt.netlify.com

Deploy preview for gestalt ready!

The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #242      +/-   ##
==========================================
+ Coverage   66.66%   66.74%   +0.08%
==========================================
  Files          46       46
  Lines         822      824       +2
  Branches      189      190       +1
==========================================
+ Hits          548      550       +2
  Misses        192      192
  Partials       82       82

Impacted Files
Coverage Δ

packages/gestalt/src/Flyout/Flyout.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Help with installing dependancies?

Hello
I'm trying to simply compile an empty project .net 6 classlib referencing this nuget package on windows, and getting the following error:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
	<EnableDynamicLoading>true</EnableDynamicLoading>
	<Platforms>x86</Platforms>
    <RuntimeIdentifier>win-x86</RuntimeIdentifier>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="DNNE" Version="1.0.30" />
  </ItemGroup>

</Project>

Using VS2022, I installed Windows 10 SDK & Desktop development with C++ assuming this would install whatever compilers I need, but I'm a bit lost tbh

If looks as if nothing was exported. Can you try exporting something simple and try again? DNNE has some UX issues for the no-op case. Exporting even the simplest method should be sufficient.
public class Export
{
    [UnmanagedCallersOnly]
    public static void Func() { }
}

Thanks! Indeed now it works