Error in rendering to language model [Bug]

Microsoft Windows [Version 10.0.22631.3447]
(c) Microsoft Corporation. כל הזכויות שמורות.
C:\zxcv\devika>.venv\Scripts\activate
(devika) C:\zxcv\devika>python devika.py
24.04.21 14:41:53: root: INFO   : Initializing Devika...
24.04.21 14:41:53: root: INFO   : Initializing Prerequisites Jobs...
24.04.21 14:41:59: root: INFO   : Loading sentence-transformer BERT models...
24.04.21 14:42:06: root: INFO   : BERT model loaded successfully.
24.04.21 14:42:10: root: INFO   : Ollama available
24.04.21 14:42:11: root: INFO   : Devika is up and running!
24.04.21 14:45:25: root: INFO   : /api/data GET
24.04.21 14:45:25: root: DEBUG  : /api/data GET - Response: {"models":{"CLAUDE":[["Claude 3 Opus","claude-3-opus-20240229"],["Claude 3 Sonnet","claude-3-sonnet-20240229"],["Claude 3 Haiku","claude-3-haiku-20240307"]],"GOOGLE":[["Gemini 1.0 Pro","gemini-pro"]],"GROQ":[["LLAMA3 8B","llama3-8b-8192"],["LLAMA3 70B","llama3-70b-8192"],["LLAMA2 70B","llama2-70b-4096"],["Mixtral","mixtral-8x7b-32768"],["GEMMA 7B","gemma-7b-it"]],"MISTRAL":[["Mistral 7b","open-mistral-7b"],["Mistral 8x7b","open-mixtral-8x7b"],["Mistral Medium","mistral-medium-latest"],["Mistral Small","mistral-small-latest"],["Mistral Large","mistral-large-latest"]],"OLLAMA":[["codellama","codellama:7b"],["llama3","llama3:latest"]],"OPENAI":[["GPT-4 Turbo","gpt-4-turbo"],["GPT-3.5 Turbo","gpt-3.5-turbo-0125"]]},"projects":["1234"],"search_engines":["Bing","Google","DuckDuckGo"]}
Socket connected ::  {'data': 'frontend connected!'}
24.04.21 14:45:25: root: INFO   : SOCKET socket_response MESSAGE: {'data': 'Server Connected'}
24.04.21 14:45:25: root: INFO   : /api/get-agent-state POST
24.04.21 14:45:25: root: DEBUG  : /api/get-agent-state POST - Response: {"state":null}
24.04.21 14:45:30: root: INFO   : /api/get-agent-state POST
24.04.21 14:45:30: root: DEBUG  : /api/get-agent-state POST - Response: {"state":{"agent_is_active":true,"browser_session":{"screenshot":null,"url":null},"completed":false,"internal_monologue":"I'm excited to dive into this project! I'll start by researching some existing libraries or frameworks that can help with creating a graphical interface, like Pygame or Tkinter. That should save me some time and effort implementing graphics from scratch.","message":null,"step":null,"terminal_session":{"command":null,"output":null,"title":null},"timestamp":"2024-04-21 14:30:22","token_usage":66425}}
24.04.21 14:45:59: root: INFO   : /api/create-project POST
24.04.21 14:45:59: root: DEBUG  : /api/create-project POST - Response: {"message":"Project created"}
24.04.21 14:45:59: root: INFO   : /api/get-agent-state POST
24.04.21 14:45:59: root: DEBUG  : /api/get-agent-state POST - Response: {"state":null}
24.04.21 14:46:10: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'Write me code for a Snake game with a graphical interface, control with the arrows on the keyboard, and indicate the score for the user, and optimize the code', 'timestamp': '2024-04-21 14:46:10'}}
24.04.21 14:46:10: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 788}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:46:32: root: INFO   : /api/get-agent-state POST
24.04.21 14:46:32: root: DEBUG  : /api/get-agent-state POST - Response: {"state":{"agent_is_active":true,"browser_session":{"screenshot":null,"url":null},"completed":false,"internal_monologue":null,"message":null,"step":null,"terminal_session":{"command":null,"output":null,"title":null},"timestamp":"2024-04-21 14:46:10","token_usage":394}}
24.04.21 14:46:40: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 1250}
plan ::  ```
Project Name: Snake Game with Graphical Interface
Your Reply to the Human Prompter: I'm creating a step-by-step plan to develop a Snake game with a graphical interface, controlled by keyboard arrows, and displaying a score for the user.
Current Focus: Developing a functional Snake game that meets the user's requirements.
Plan:

[ ] Step 1: Choose a programming language and framework to build the game. Research and select a suitable language and framework, such as Python with Pygame or Java with Swing, considering factors like ease of use, graphics capabilities, and compatibility.
[ ] Step 2: Set up the game's basic structure. Create a new project in the chosen framework, define the game loop, and initialize essential variables like screen dimensions, font styles, and colors.
[ ] Step 3: Design the graphical interface. Implement a game window with a grid background, display the score, and draw the snake body using graphics primitives (e.g., lines, rectangles).
[ ] Step 4: Implement keyboard control for the snake movement. Use event handling to detect arrow key presses and update the snake's position accordingly.
[ ] Step 5: Add game logic for the snake's behavior. Implement rules like collision detection with walls, self-collision, or eating food pellets, which will affect the score and game state.
[ ] Step 6: Develop the scoring system. Update the score when the snake eats a pellet, and display it on the screen.
[ ] Step 7: Test the game for functionality, performance, and usability. Verify that the game responds to keyboard input, scores are accurate, and the graphics are smooth.

Summary:
This plan outlines the development of a Snake game with a graphical interface, controlled by keyboard arrows, and displaying a score for the user. The key consideration is choosing an appropriate programming language and framework to ensure compatibility and ease of use. The main dependencies will be the chosen framework's documentation and any necessary libraries or modules. Potential challenges may arise from optimizing graphics performance, handling edge cases in game logic, and ensuring consistent scoring.
24.04.21 14:46:40: root: INFO   : SOCKET agent-state MESSAGE: [{'internal_monologue': None, 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': None, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 822, 'timestamp': '2024-04-21 14:46:10'}]
24.04.21 14:46:40: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': True, 'message': "I'm creating a step-by-step plan to develop a Snake game with a graphical interface, controlled by keyboard arrows, and displaying a score for the user.", 'timestamp': '2024-04-21 14:46:40'}}
24.04.21 14:46:40: root: INFO   : SOCKET server-message MESSAGE: {'messages': {'from_devika': True, 'message': '{\n    "1": "Choose a programming language and framework to build the game. Research and select a suitable language and framework, such as Python with Pygame or Java with Swing, considering factors like ease of use, graphics capabilities, and compatibility.",\n    "2": "Set up the game's basic structure. Create a new project in the chosen framework, define the game loop, and initialize essential variables like screen dimensions, font styles, and colors.",\n    "3": "Design the graphical interface. Implement a game window with a grid background, display the score, and draw the snake body using graphics primitives (e.g., lines, rectangles).",\n    "4": "Implement keyboard control for the snake movement. Use event handling to detect arrow key presses and update the snake's position accordingly.",\n    "5": "Add game logic for the snake's behavior. Implement rules like collision detection with walls, self-collision, or eating food pellets, which will affect the score and game state.",\n    "6": "Develop the scoring system. Update the score when the snake eats a pellet, and display it on the screen.",\n    "7": "Test the game for functionality, performance, and usability. Verify that the game responds to keyboard input, scores are accurate, and the graphics are smooth. "\n}', 'timestamp': '2024-04-21 14:46:40'}}
context_keywords ::  ['snake', 'game', 'functional', 'developing', 'requirements']
24.04.21 14:46:43: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 1926}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:46:47: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 1588}
Invalid response from the model, trying again...
24.04.21 14:46:47: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 2585}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:46:50: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 2173}
Invalid response from the model, trying again...
24.04.21 14:46:50: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 3207}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:46:52: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 2811}
Invalid response from the model, trying again...
24.04.21 14:46:52: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 3837}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:46:54: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 3373}
internal_monologue ::  Hmm, I'm thinking about choosing a programming language for this Snake game... Python with Pygame seems like a great option, it's easy to use and has good graphics capabilities.
24.04.21 14:46:54: root: INFO   : SOCKET agent-state MESSAGE: [{'internal_monologue': None, 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': None, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 3329, 'timestamp': '2024-04-21 14:46:10'}, {'internal_monologue': "Hmm, I'm thinking about choosing a programming language for this Snake game... Python with Pygame seems like a great option, it's easy to use and has good graphics capabilities.", 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': None, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 0, 'timestamp': '2024-04-21 14:46:54'}]
24.04.21 14:46:54: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 2016}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:03: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 1752}
Invalid response from the model, trying again...
24.04.21 14:47:03: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 3396}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:13: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 3076}
Invalid response from the model, trying again...
24.04.21 14:47:13: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 4748}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:21: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 4378}
Invalid response from the model, trying again...
24.04.21 14:47:21: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 6075}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:31: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 5819}
Invalid response from the model, trying again...
24.04.21 14:47:31: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 7459}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:41: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 7179}
Invalid response from the model, trying again...
24.04.21 14:47:41: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 8831}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:49: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 8383}
Invalid response from the model, trying again...
24.04.21 14:47:49: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 10119}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:47:59: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 9869}
Invalid response from the model, trying again...
24.04.21 14:47:59: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 11506}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:48:06: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 11144}
Invalid response from the model, trying again...
24.04.21 14:48:06: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 12837}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:48:15: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 12557}
Invalid response from the model, trying again...
24.04.21 14:48:15: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 14209}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:48:19: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 13453}
Invalid response from the model, trying again...
24.04.21 14:48:19: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 15343}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:48:28: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 15009}
Invalid response from the model, trying again...
24.04.21 14:48:28: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 16688}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:48:38: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 16488}
Invalid response from the model, trying again...
24.04.21 14:48:38: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 18100}
Model: llama3:latest, Enum: OLLAMA
24.04.21 14:48:51: root: INFO   : SOCKET tokens MESSAGE: {'token_usage': 18120}

me too

Same issue, running in Linux mint with groq (all available LLM), ollama (llama3, llama3:instruct, mixtral).
gpt4 turbo works well.


[Question] What does "FollowSpiral" do in tasks in the configuration file?

I read the wiki and it says
"Note the last two tasks, MoveToFort and FollowSpiral. When a task is still in progress, it won't run the next things in the list. So it will move towards the fort, on each step running through the list of tasks again. Only when it arrives at the fort and there are no other stops available for it to move towards will it continue to the next step and follow the spiral."
From seeing the difference in running the bot with and without this task it looks like the only difference is that it makes the bot walks to a specific coordinate point instead of a target (BOLD LINES):

[00:31:14] Walking from (38.9238585456713, -77.04388373724197) to [38.9238585456713, -77.04388373724197] 0.00km
[00:31:15]  Server seems to be busy or offline - try again - 1/5
[00:31:16] Moving towards fort Adams Morgan Heritage Trail, 0.07km left
[00:31:16] Arrived at pokestop.
[00:31:16] Walking from (38.923398, -77.043324) to [38.925658545671304, -77.04388373724197] 0.26km
[00:31:19] Moving towards fort Adams Morgan Heritage Trail, 0.05km left
[00:31:19] Arrived at pokestop.

Also from the wiki I think it means that it should only do this if there's nothing else to do but as you can see in the code it arrives at the pokestop but it hasn't spin it yet but it moves instead of spinning but it should've have move last after it spins right?
And this is my configuration for the tasks:
"tasks": [
        {
            "type": "HandleSoftBan"
        },
        {
            "type": "IncubateEggs",
            "config": {
                "longer_eggs_first": true
            }
        },
        {
            "type": "EvolveAll"
        },
        {
            "type": "CatchVisiblePokemon"
        },
        {
            "type": "CatchLuredPokemon"
        },
        {
            "type": "TransferPokemon"
        },
        {
            "type": "SpinFort"
        },
        {
            "type": "RecycleItems"
        },
        {
            "type": "MoveToFort"
        },
        {
            "type": "FollowSpiral"
        }
    ],

That line of code also seems to be the path that create this looping path that some users experience before. #1876
Is this a bug?
on commit https://github.com/PokemonGoF/PokemonGo-Bot/commit/dc2fa60b14cd7be1ed689de509e1d32ba63aa4fe

Pay attention to how you structured your task list. You spin forts, then recycle items, move to fort (YOU DON'T SPIN THIS), then u walk in spiral.


HelloWorld Feature Request: Add $vaultname to settings.json

We have a need to have multiple Azure Vaults to pass in different licenses.  Would it be possible to add the vaultname to the settings.json file?
Local-DevEnv.ps1
Thanks!

Sounds like a good idea - and use that form local-devenv and local-pipeline

"vaultNameforLocal" is the settings name.
I am not using this in DevOps-Pipeline, because the devops-pipeline needs to be able to run on agents, which doesn't have access to my vault. In DevOps, the vault should be accessed by the pipeline definition in Azure f.ex.


Config changes to reflect the default branch from master to main. Please merge to complete the default branch renaming job.

Auto branch renaming content.

Docs Build status updates of commit 6871723:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Rust needs wrappers for Array, Dictionary and String

In order to be usable in unboxed mode, which is now the default, the Rust API needs these abstraction in order to be useful. The Rust API is still fully usable if unboxed mode is disabled in project settings, which makes all function arguments Variant.

Am I able to configure unboxed mode per sandbox?

Yes, it's actually a run-time setting. I can expose it as a property

Merged?


Pandas 2.0.0 Contain Potential Breaking Changes

Pandas version 2.0.0 made numerous changes  to the Timedelta API, especially around type-casting. Need to investigate.

The TimeDelta API changes seem to have no impact.
Necessary changes implemented in https://github.com/Casper-Guo/F1-Data-Visualization/commit/a38d62e239b8f0d36e6735485c0859528a1014e1


debian: add debian 12 "bookworm" release

It's nearly identical to Debian 11 and has been working for me. Are there specific tests an image should be put through?
Fixes: https://github.com/toolbx-images/images/issues/86

Thanks!

It should be added to both now

Thanks!


Save live game data with archived game stats

This will allow the archived game to have data such as when players connected/disconnected and what the match settings were.

Fixed in 413b9a2ee580f0c76de1dba3405666db3dc3b494.


Signature help shows wrong thing in nested context

Affected Branch:
Affected Build: Blue v2.0.41-beta.gc3fb724edb
Affected Product Language:
Open Razor.sln
Paste the attached file to src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Syntax/FindTokenTests.cs
Invoke signature help inside the new RazorSourceDocument($$) call.
Expected: Nothing. This is an abstract type, it can't be newed
Actual: Signature help for the containing method call.

I've attached the file for referencing with the LSP Logs. This repros in VS and well as VSCode.
LSP Request logs:
Params: {
    "textDocument": {
        "uri": "file:///home/fred/git/razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Syntax/FindTokenTests.cs"
    },
    "position": {
        "line": 17,
        "character": 65
    },
    "context": {
        "isRetrigger": false,
        "triggerCharacter": "(",
        "triggerKind": 2
    }
}

[Trace - 5:07:44 PM] Received response 'textDocument/signatureHelp - (48)' in 154ms.
Result: {
    "signatures": [
        {
            "label": "RazorSyntaxTree RazorSyntaxTree.Parse(RazorSourceDocument source)",
            "documentation": {
                "kind": "plaintext",
                "value": ""
            },
            "parameters": [
                {
                    "label": "source",
                    "documentation": {
                        "kind": "plaintext",
                        "value": ""
                    }
                }
            ]
        },
        {
            "label": "RazorSyntaxTree RazorSyntaxTree.Parse(RazorSourceDocument source, RazorParserOptions options)",
            "documentation": {
                "kind": "plaintext",
                "value": ""
            },
            "parameters": [
                {
                    "label": "source",
                    "documentation": {
                        "kind": "plaintext",
                        "value": ""
                    }
                },
                {
                    "label": "options",
                    "documentation": {
                        "kind": "plaintext",
                        "value": ""
                    }
                }
            ]
        }
    ],
    "activeSignature": 0,
    "activeParameter": 0
}

Moving to dotnet/roslyn, as @sharwell indicated this wasn't an LSP bug, but a general roslyn bug.


Select/Dropdown elements don't work when using virtual slides

Swiper Version: 6.5.9
Platform/Target and Browser Versions: iOS, Firefox, Chrome, issue occurs in StackBlitz too

What You Did
I am attempting to use a (material) select HTML element in combination with virtual slides.
An example I quickly put together using the same packages my project has:
https://stackblitz.com/edit/swiper-angular-virtual-select-issue?file=src/app/app.component.html

Expected Behavior
The Select HTML element should behave the same as when virtual is disabled.
Actual Behavior
When scrolling to another slide and trying to select something in the dropdown causes the box to show very unexpected behaviour including lag to open, strange positioning, inability to assign the value.
When virtual is turned off, the element behaves as intended.

Still looking for a resolution for this issue, looking forward to an update

@Kraegon
looks like it works fine with the latest Swiper and Angular:
https://stackblitz.com/edit/swiper-angular-virtual-select-issue-vb9kjg?file=src%2Fapp%2Fapp.component.html

Verified it in my use case, the new version is indeed functional.
Thank you very much!


Fix redefined warnings from config.h

The issue was caused by config.h header being included from both
header files and implementation files.
Proposed solution is to have regular header guard in the generated
config.h. Benefit of this solution is that it's least intrusive.
Downside is that it only solves issue for CMake build system, and
autoconf one is not fixed since header template is automatically
generated by autoheader who does not add header guard.

The patch should now be updated with removed underscores.


load frame slow

I have solved the problem only displays the first frame, but if the video is not compressed, and a long time would be very slow to load frame, recommend using UITableView lazy load each frame

Hi, thanks for the suggestion. I'll take a look at this issue and see what I can do.

3 minutes..

In your case is there any image loaded to the trimmer view? I suppose they are fully loaded but the scrolling is slow?

Uncompressed and long video, it takes time to get all the images in addFrames method
原始邮件
发件人:Huong<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>发送时间:2015年3月4日(周三) 11:47
主题:Re: [ICGVideoTrimmer] load frame slow (#2)
In your case is there any image loaded to the trimmer view? I suppose they are fully loaded but the scrolling is slow?
—
Reply to this email directly or view it on GitHub.

Fixed in [commit 43].(https://github.com/itsmeichigo/ICGVideoTrimmer/commit/32d955784ac54367addb00653098550c30b6f1c8)


feat: support both new and legacy llama_index versions

This commit fixes issues introduced in 5e5bc88443ae80cc38a4aef3bf1e5744be355f9e by enhancing the dynamic loading mechanism for llama-index modules to ensure compatibility across both llama-index-core and llama-index-legacy. Modifications include updates across various instrumentor files to correctly reference modules based on the installed llama-index version. These changes address errors encountered during initialization and ensure seamless operation with both versions of llama-index.

Dynamically set _instruments in __init__.py based on package version.
Adjust MODULE_NAME in instrumentor files to support new and legacy structures.

I apologize for the oversight in the previous commit. It missed some critical aspects of handling the llama-index package versions. I've now made the necessary adjustments to ensure compatibility with both the core and legacy versions. Thank you for your patience and understanding as we improve our project together.

I apologize for the oversight in the previous commit. It missed some critical aspects of handling the llama-index package versions. I've now made the necessary adjustments to ensure compatibility with both the core and legacy versions. Thank you for your patience and understanding.

It looks like everything is ok now.

Thanks again @alex-feel! I wonder if it's too much to ask of you to write a small test for this, just to make sure it works on the latest version of llamaindex? You can copy-paste the test structure from other instrumentations like OpenAI.

Thank you for your feedback and the suggestion to add a test. I would be more than happy to take on this task under normal circumstances. However, I'm currently tied up with an urgent project that demands my full attention and cannot divert my focus at this moment.
Regarding the issue addressed in https://github.com/traceloop/openllmetry/pull/423, I want to add that the current fix specifically targets and resolves the problem mentioned. I have conducted manual testing on llama_index.core to ensure the fix is effective and have verified that the imports are correct for llama_index.legacy.

No worries @alex-feel, I'll add them. Tested it on llama-index v0.9.48 and it didn't work so I'll work on fixing that as well.

I've updated this branch with an additional commit that reinstates the original changes which my fix addresses. To recap, the original update was designed to enhance the import logic by dynamically supporting both the new (llama_index.core.llms) and legacy (llama_index.legacy.llms.custom) versions of the llama_index package. This approach utilizes conditional imports and adjusts MODULE_NAME dynamically, ensuring compatibility across different versions of the package. This improvement significantly enhances the flexibility and maintainability of our codebase in accommodating the evolving llama_index library.


Exception: "cannot add subsegment to a completed segment."

We are receiving an Amazon.XRay.Recorder.Core.Exceptions.EntityNotAvailableException with the message "Cannot add subsegment to a completed segment."
What we are using
.net core 2.0 MVC
installed

AWSSDK.Core - 3.3.23
AWSSDK.S3 - 3.3.18
AWSXRayRecorder - 2.2.0-beta
AWSXRayRecorder.Core - 2.2.0-beta
AWSXRayRecorder.Handlers.AwsSdk - 2.2.0-beta

We have a NuGet package with our business logic code. Within our API controller we call our business logic code within a Task. It appears that this error is related to our spinning up a new thread via Task.Run(...) The reason why we say this is when we remove the Task.Run(...) from the code, we no longer receive the AWSXRay exception "cannot add subsegment to a completed segment."
We really want to use AWSXRay because we see the value in it - we have a UI API that uses AWSXRay as well as some AWS Lambdas. We have to have spin up a thread to run our business logic because it requires time to crunch. (If it didn't take so long, we would be using Lambdas.)
So, what steps/code do we have to do to resolve this exception?
Code snippets:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
Amazon.XRay.Recorder.Handlers.AwsSdk.AWSSDKHandler.RegisterXRayForAllServices();
	...

	services.AddMvc();
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
	...
	app.UseXRay("Phoenix.Api.Analysis");
	app.UseMvc();
}

}
[Route("v1/api/analysis")]
public class AnalysisController : Controller
{
[HttpPost]
public IActionResult Create([FromBody] AnalysisModel analysisModel)
{
try
{
...
var analysisEngineContainer = new AnalysisEngineContainer(...);
Task.Run(() => analysisEngineContainer.StartAnalyze(...));
}
catch (Exception ex)
{
...
return StatusCode(500);
}
}
}
Caught exception:
"{"ClassName":"System.AggregateException","Message":"One or more errors occurred.","Data":{},"InnerException":{"ClassName":"Amazon.XRay.Recorder.Core.Exceptions.EntityNotAvailableException","Message":"Cannot add subsegment to a completed segment.","Data":{},"InnerException":null,"HelpURL":null,"StackTraceString":"   at Amazon.XRay.Recorder.Core.Internal.Entities.Entity.AddSubsegment(Subsegment subsegment)\r\n   at Amazon.XRay.Recorder.Core.AWSXRayRecorder.AddSubsegment(Subsegment subsegment)\r\n   at Amazon.XRay.Recorder.Core.AWSXRayRecorder.BeginSubsegment(String name)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at Amazon.XRay.Recorder.Core.AWSXRayRecorder.BeginSubsegment(String name)\r\n   at Amazon.XRay.Recorder.Handlers.AwsSdk.Internal.XRayPipelineHandler.ProcessBeginRequest(IExecutionContext executionContext)\r\n   at Amazon.XRay.Recorder.Handlers.Aws
Sdk.Internal.XRayPipelineHandler.d__271.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__91.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Amazon.Runtime.Internal.ErrorCallbackHandler.d__51.MoveNext() in E:\\\\JenkinsWorkspaces\\\\v3-trebuchet-release\\\\AWSDotNetPublic\\\\sdk\\\\src\\\\Core\\\\Amazon.Runtime\\\\Pipeline\\\\Handlers\\\\ErrorCallbackHandler.cs:line 58\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at Syste m.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Amazon.Runtime.Internal.MetricsHandler.<InvokeAsync>d__11.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"AWSXRayRecorder.Core","WatsonBuckets":null},"HelpURL":null,"StackTraceString":"   at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)\\r\\n   at Phoenix.Business.Analysis.Engine.AnalysisBuilder.AnalysisNotification.SnsAnalysisNotificationService.Notify(Int64 analysisId, Int32 modelId, String message) in C:\\\\TeamCity\\\\buildAgent\\\\work\\\\Phoenix.Business.Analysis.Engine.AnalysisBuilder\\\\1.0.106\\\\AnalysisBuilder\\\\AnalysisNotification\\\\SnsAnalysisNotificationService.cs:line 30\\r\\n   at Phoenix.Business.Analysis.Engine.AnalysisBuilder.SingleAnalysisEngineContainer.Analyze(Int64 analysisId, IEnumerable1
analysisEngineInputs, WarehouseInput resultsWarehouseInput, AnalysisRecordingType analysisRecordingType, Nullable1 parentAnalysisId) in C:\\\\TeamCity\\\\buildAgent\\\\work\\\\Phoenix.Business.Analysis.Engine.AnalysisBuilder\\\\1.0.106\\\\AnalysisBuilder\\\\SingleAnalysisEngineContainer.cs:line 59\\r\\n   at Phoenix.Business.Analysis.Engine.AnalysisBuilder.AnalysisEngineContainer.StartAnalyze(ImpactAnalysis impactAnalysis, ISingleAnalysisEngineContainer singleAnalysisEngineContainer, Int64 analysisId, List1 analysisEngineInputs, WarehouseInput warehouseInput, List1 mrioRegionModelIds, AnalysisRecordingType analysisRecordingType) in C:\\\\TeamCity\\\\buildAgent\\\\work\\\\Phoenix.Business.Analysis.Engine.AnalysisBuilder\\\\1.0.106\\\\AnalysisBuilder\\\\AnalysisEngineContainer.cs:line 125\\r\\n   at Phoenix.Api.Analysis.AnalysisApi.Controllers.v1.AnalysisController.<>c__DisplayClass7_1.<Create>b__0() in C:\\\\Projects\\\\Bitbucket\\\\Phoenix\\\\Api\\\\Analysis\\\\AnalysisApi\\\\Controllers\\\\v1\\\\AnalysisC ontroller.cs:line 230\\r\\n   at System.Threading.Tasks.Task1.InnerInvoke()\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"System.Private.CoreLib","WatsonBuckets":null,"InnerExceptions":[{"ClassName":"Amazon.XRay.Recorder.Core.Exceptions.EntityNotAvailableException","Message":"Cannot add subsegment to a completed segment.","Data":{},"InnerException":null,"HelpURL":null,"StackTraceString":"   at Amazon.XRay.Recorder.Core.Internal.Entities.Entity.AddSubsegment(Subsegment subsegment)\r\n   at Amazon.XRay.Recorder.Core.AWSXRayRecorder.AddSubsegment(Subsegment subsegment)\r\n   at Amazon.XRay.Recorder.Core.AWSXRayRecorder.BeginSubsegment(String name)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.
Throw()\r\n   at Amazon.XRay.Recorder.Core.AWSXRayRecorder.BeginSubsegment(String name)\r\n   at Amazon.XRay.Recorder.Handlers.AwsSdk.Internal.XRayPipelineHandler.ProcessBeginRequest(IExecutionContext executionContext)\r\n   at Amazon.XRay.Recorder.Handlers.AwsSdk.Internal.XRayPipelineHandler.d__271.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__91.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Amazon.Runtime.Internal.ErrorCallbackHandler.d__51.MoveNext()  in E:\\\\JenkinsWorkspaces\\\\v3-trebuchet-release\\\\AWSDotNetPublic\\\\sdk\\\\src\\\\Core\\\\Amazon.Runtime\\\\Pipeline\\\\Handlers\\\\ErrorCallbackHandler.cs:line 58\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Amazon.Runtime.Internal.MetricsHandler.<InvokeAsync>d__11.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"AWSXRayRecorder.Core","WatsonBuckets":null}]}"

Hi @geraldbauer ,
Thank you for reporting your use-case.
The reason for the above exception is the Segment started as a part of incoming request by the the X-Ray Middleware is closed before the Subsegment is started in the analysisEngineContainer.StartAnalyze(...).
If you want Subsegment (created inside the asynchronous job) to be part of existing Segment (created by the middleware), you have to await you asynchronous analysisEngineContainer.StartAnalyze(...) call, so the Subsegment gets registered on the Segment (present on the main thread) before it closes.
However, if you don't want to use await, you need to manually create Segment inside analysisEngineContainer.StartAnalyze(...), insert your logic, close the Segment. This will make sure  Segment is present in the TraceContext when a Subsegment is created in the asynchronous job. The result of this integration is, you would have 2 separate service graph, one for webapp and another for asynchronous job.
Please let me know if you have any question.
Best,
Yogi

Hi Yogi,
Wonderful news and thank you for responding. Kind-a thought that AWS X-Ray was thread specific based upon what I saw. I will follow what is documented in https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-dotnet-subsegments.html.
This conversion is making me ponder about 1) Parallel.ForEach and 2) recursive calls. Currently we are only doing foreach looping and planning on turning that into a Parallel.ForEach. Within our looping we are recursively calling back into the same looping logic. We anticipate at least one recursive call and hopefully (but not proven) less than 1000 total loops per API call. From this conversation, I am assuming we will need subsegments per Parallel.ForEach thread? (I know I need to test this but time is limited.)
Any concerns here with how AWS X-Ray will behave? I want to have some warm and fuzzies on what is going to happen with AWS X-Ray in 1) recursive looping and 2) recursive parallel looping. In a future sprint, we will make the Parallel.ForEach change and adding subsegements to our code base, but I want to document our steps and concerns first.
Thank you for your time and assistance.
Cheers,
Gerald

Hi @geraldbauer ,
We have a test on Parallel which would help to get context: https://github.com/aws/aws-xray-sdk-dotnet/blob/master/sdk/test/UnitTests/AWSXRayRecorderTests.cs#L163
When you use Parallel.ForEach, current underlying Segment/Subsegment gets copied to new logical thread spawned by Parallel. Subsegment created inside Parallel.ForEach would be processed independently in its entirety.
You would need to add Subsegment inside Parallel.ForEach.
Can you please explain more on recursive call?
Is it something like this:
Parallel.ForEach(x, (y) =>
                                {
                                   recursiveFunc(); // business logic
                                });

Also do you desire to have Subsegment inside recursive function ? Or is this you are looking for:
Parallel.ForEach(x, (y) =>
                                {
                                   AWSXRayRecorder.Instance.BeginSubsegment("test");
                                   recursiveFunc(); // business logic
                                   AWSXRayRecorder.Instance.EndSubsegment();
                                });

Please let me know if you have questions.
Best,
Yogi

The recursive call follows this flow:
BeginProcess(...)
{
var results = SingleWork(...);
If (moreWork) results = DoMoreWork(...);
return results;
}
DoMoreWork(...)
{
Parrellel.ForEach
{
results.AddRange(BeginProcess(...));
}
return results;
}

Hi @geraldbauer ,
As per above code, here are some initial thoughts for integration:
BeginProcess(...)
{

//If Segment already present in TraceContext, start a subsegment

var results = SingleWork(...);
If (moreWork) results = DoMoreWork(...);

// If segment was started close Segment else close Subsegment

return results;
}

DoMoreWork(...)
{
Parrellel.ForEach
{
results.AddRange(BeginProcess(...));
}

return results;
}

The result of this would be:

If there was no Segment in the TraceContext, a Segment would be created in the first iteration and Subsegment would be created for each recursive call.

If Segment was already present in the TraceContext, Subsegment would be created for all iterations.

You can use TraceContext.GetEntity() method for getting Segment/Subsegment . :  https://github.com/aws/aws-xray-sdk-dotnet/blob/master/sdk/src/Core/Internal/Utils/TraceContext.netstandard.cs#L40

Please let me know if you have question.
Best,
Yogi

The exception Cannot add subsegment to a completed segment. is quite problematic when you add AWS X-Ray .NET to an existing application with a lot of "background" jobs.
In my concrete scenario, the application has many background jobs, ensuring internal caches are updated. Since these background jobs are not based on an http request, they all fail with that exception. The code running the background jobs are in separate library packages, so it's not easy to go there and add AWSXRayRecorder.Instance.BeginSegment(...) calls.
First of all, it would be better if AWS X-Ray just provided a warning for this, and did not make the requests fail.
Second, it would be even better if it knew that this was part of a background job, and could send it to xray as trace data still.

Hi @mbp ,
Apologies for delay in response.
You can log error messages received by X-Ray SDK by setting environment variable AWS_XRAY_CONTEXT_MISSING to  LOG_ERROR for logging errors else the default behavior is to throw runtime exceptions for context missing. Reference (check Environment Variables sections): Link
Can you help us understand how the main thread that serves request connect to the background jobs. Also is it possible to  create a Subsegment before starting a background job and close the Subsegment after the job is completed. In this way, even if the Segment  in the main thread closes, the Subsegment created in the background job gets attached to the Subsegment created before starting the background job.
The above approach is implemented in Asynchronous wrapper. You can use this wrapper directly instead of manually creating Subsegment.
From X-Ray SDK perspective its difficult to distinguish between the in-app calls and background jobs since X-Ray SDK is agnostic to the value present in the CallContext.
We strive hard to make user experience as smooth as possible and appreciate your feedback.
Please let me know if you need more help.
Thanks,
Yogi

Thank you for the info on the environment variable, I somehow missed that.

Can you help us understand how the main thread that serves request connect to the background jobs

Basically a request will add to some kind of in-memory data structure, and the background job will be a timer which processes the in-memory data structure and as a side-effect send some requests to AWS.
Thanks for the guidance on the environment variable.

Hi @mbp ,
As a part of 2.3.0-beta release we also have added support for setting AWS_XRAY_CONTEXT_MISSING using configuration file for .NET and .NET Core. Please refer : https://github.com/aws/aws-xray-sdk-dotnet/blob/master/CHANGELOG.md
I am closing this issue. Please feel free to reopen if you have any questions.
Best,
Yogi


Implementation of buffer blit #2905

Addresses #2905
Cubes example has been modified to test copying buffers. When its ready for merging these changes will be reverted.
Only the OpenGL backend is supported for now.
Adds a new cap BGFX_CAPS_BUFFER_BLIT. Copies are encoded by calling bgfx::blit. The parameters for the copy are packed into the BlitInfo struct and unpacked by the backend. A buffer blit is detected when both the src and dest texture are BGFX_INVALID_HANDLE and the depth value is set to BGFX_BUFFER_BLIT_MAGIC.
Further work to be done:

Implement copies for different buffer types (Dynamic, Index, Indirect, etc)
Implement dx11 copy

This encoding buffer into texture is totally jenky... See RenderItem...
There are two ideas...

BlitItem should be renamed to BlitTextureItem, there should be new struct called BlitBufferItem, and then BlitItem becomes:

	union BlitItem
	{
		BlitTextureItem texture;
		BlitBufferItem  buffer;
	};

And the only thing left is to add some flag to know which one is encoded into BlitItem.

Another thing you can do is to use Handle instead of TextureHandle since bgfx internally can store handle type inside Handle. Could be useful if it's possible to blit between buffer and texture.

I've converted BlitItem into a union. You expressed interest in being able to blit buffer <-> texture so I changed the buffer blit api to work with bytes and not elements/vertices.
Eg:
bgfx::blit(0, m_vbh, m_tempVbh, 4*sizeof(PosColorVertex), 4*sizeof(PosColorVertex));

This feature needs to be well thought out... Currently it lacks multiple backend implementations. Also multiple different directions of blitting from buffer -> texture, texture -> buffer, etc.
Buffer -> Buffer
https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400767-copyfrombuffer
Buffer -> Texture
https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400771-copyfrombuffer
Texture -> Buffer
https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400756-copyfromtexture

I improved internal handle, so it can be used to detect if resource is buffer or texture:
https://github.com/bkaradzic/bgfx/commit/8a405a0c73f4f628056fafe6bd79504a01492d47


Run manual tests to identify any open bugs with the current account linking system

As a user, I need to add accounts from 3rd party services to pull my personal data.
As a user, I need to add multiple accounts simultaneously, from the same service or not.
As a user, I need to save my credentials for each service.
As a user, I want to disconnect my account.
We already have implemented multiple accounts but all the tests were made manually or with mocked accounts.
In order to move forward in rolling out this feature to the users, we need to make sure that:

The user can add multiple accounts for the same service.
The user can add multiple accounts for different services.
Each account triggers its own index and fetch commands.
When the account is disconnected the credentials are removed but all other data is kept.

Acceptance criteria:
1 - write test cases for each one of the points above.
2 - implement test cases.
3 - create issues for any bugs found or any tests that does not pass

adding one more test: the same account is not added twice

1, 2, 3 and 5 passed.

4 will be treated in #154


The security code is invalid or expired

Describe the bug
The security code is invalid or expired

After setting up I always get the same error.
When starting the container it will look for games to claim. I get a message at discord saying I need to resolve the captcha.
I resolve the captcha and I get the error described above.
After a minute or so the webpage will say: "Session complete! Browser has closed."

Screenshots or Logs

This is the log after starting the container but before resolving the captcha:

This is the log after resolving the captcha:

Configuration (please complete the following information):

Browser:  Firefox
Hosting solution [e.g. reverse proxy, HTTPS/HTTP, caching, localhost]:
Hosting the docker container on Unraid. I set up reverse proxy using NGINX (swag container). I get the same error using local network.

Additional context

If this issue already has been posted, sorry, then I looked over it :)

I can't reproduce this. I'd recommend re-setting up your MFA following these instructions: https://github.com/claabs/epicgames-freegames-node#two-factor-login

I can't reproduce this. I'd recommend re-setting up your MFA following these instructions: https://github.com/claabs/epicgames-freegames-node#two-factor-login

Already tried that multiple times using different auth apps. With totp updated everytime 🤔

Random thought: is the clock on the system running this set correctly? TOTP relies on time to generate its tokens.

Random thought: is the clock on the system running this set correctly? TOTP relies on time to generate its tokens.

Added Timezone to the docker container, but this didn't help :(

No longer relevant in latest version


How do I support package that build from diffrent files

How do I support package that build from different files ?
No compile is necessary to build packages , Just simple binaries.
Thanks

You would add a port which doesn't do any "install" calls, it would just download the binary and put it in the appropriate place in the installed dir.

Ok. Seems fine solution. Can you please give an example.
Thanks

How can we point to a ZIP file in a repo in my port.
Thanks

@Eldadc, see https://github.com/microsoft/vcpkg/blob/master/docs/examples/packaging-zipfiles.md for details. And please create a new issue if you have any questions for this.


ILipara Metadata

13 ILipara Files

No worries! Apologies I haven't had a chance to get onto some more!


Move Non PSR7 Methods to Decorator

I would like to suggest we make a pure PSR7 implementation and move any non-PSR7 methods to a decorator classes labelled something like SlimRequestDecorator.
Any of the immutable methods should of course clone properly down through the involved classes.
This would allow us to create pure PSR objects if needed, and add functionality like non-PSR methods and our static factory methods and media type parsers within the decorator.
Feedback on this suggestion would be appreciated.

Ok, I think an interface of the Slim methods would be beneficial at least; one that extends the Psr interface to aid in type declaration.

Done. #67


How to set up Aquilon C?

What happened?
I have a question about setup Aquilon C as a source. I try Anolog Way Livecore and TLS but nothing works.  When I tried Analog Way Livecore in Live Premiera Simulator I saw some attempts for connection but still reboot. Some tips for this?
Version
2.0.16
Distribution
Desktop
OS
Windows
What browsers are you seeing the problem on?
No response
If applicable, What Listener Clients are You Using?
No response
TallyArbiter configuration
No response
Relevant log output
No response
Error stacktrace (if applicable)
No response

Is this device supported?


An update is not triggered on reorder

Affected version:
4.x
Description
Currently when performing actions on blocks the preview will update after the action so that you get live preview of the changes you're making. When dragging around blocks to re-order there is no change being triggered
Steps to reproduce

Create/edit a blocks page
Make at least two blocks with content
Observe the preview and note the order of blocks
Re-order the blocks by dragging around blocks
Note there's no update to the preview
Trigger an update by publishing (or refreshing)
Note that the preview updates in this case and shows the correct order of blocks.

Is this another manifestation of "modifying blocks doesn't update the page status"?

The page status not being updated is probably expected (because of the existence of silverstripe/silverstripe-versioned#195). This is talking about the preview side-panel explicitly though - which we still have to trigger a change on - something we've done for the existing save mechanisms.

Closed in #553


Solving command line issue

The overall attempt is to fix #51

[x] updating optimist with nomnom (optimist is deprecated)
[ ] fix URI base #47
[x] fix file base #49
[x] merging ssl and webid parameters #48
[ ] notify the users that they are not running with ssl / webid keys, hence generate some #50

Goals / Work

[x] webid and ssl and live by default (one can disable them with --no-webid). This is more logical otherwise it would be very silly to have a command like --webid --webid-key --webid-cert.
[ ] update documentation
[x] setting 3456 to be the default port
[ ] test

I think we agreed yesterday that the web ID and ssl options are equivalent since enabling one does not make much sense without enabling the other one.

perfect, just discussed with @deiu , fixed in https://github.com/nicola/ldnode/commit/68431d95b701f37a9275c88999cc6e5395b396d7

Look OK to me. @martinmr needs to validate it before merging.


Maximum size of block when reading bits, float and integers

Hi,
I'm not sure what is the limit of the block size that can be used when calling batchread_wordunits or batchread_bitunits. It should be related to the protocol itself but it is not so clear to me. Inside the method  _encode_value  you are doing the check of the size. Can you explain what is the logic behind? Or do you know which is the max block size that we can use in a single call? Thank you!

Thank you very much for using pymcprotocol!
From MC Protocol specification, the limit of the block size depends on PLC type.

_encode_value  is just function to encode python value to protocol binary.
You can investigate MC Ptorocol reference from here.
https://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080008/sh080008ab.pdf

Thank you for the explanation. I will check it. From what i know the maximum payload can be 4096 bytes. When using the method randomread the behavior is the same? What i would like to understand is the behavior when trying to read sparse registers and if there is a maximum size of "sparsity" for the registers in order to read multiple registers in a single request.
I need to read multiple registers with a time constraint on the callback. With my plc one request requires 20ms and i'm trying to understand the reason behind this behavior and if there is some way to reduce it.

The maximunm payload in randomread command is 96 or 192 registers.

Pymcprotocol cannot promise worst time fot response because it uses TCP/IP which is not time sensitive.
From my opinion, if you want to get response as soon as possible, the number of registers you request should be small and only necessary.
In addition, if you want to keep  20ms strictly, you should not use pymcprotocol but use CC-Link IE or CC-LinkTSN modules.

Thank you for you help! The problem with CC-Link is that i need to communicate with the plc using python or something similar.


Upgrading to v6 from v4

Hello,
I'm trying to upgrade my code that was using v4 of the language client to v6. I'm trying to figure out how to replace the existing call MonacoServices.install() to the newer API.
I see that there's now an async initServices call and it seems to take a config object. If I just want a one-to-one upgrade, how should I configure the init so that I get the equivalent settings as the old MonacoServices.install()?

Hello,
Unfortunately, the lib changed so much it would be hard I think to provide a one-to-one upgrade

HI @duncanmak we don't have an example with the minimal configuration and as @CGNonofr there is no one-to-one upgrade path.
You require the model service to be able use createModelReference, otherwise nothing else is needed. It is worth mentioning that you can set the vscode api log level directly here as well.
await initServices({
    enableModelService: true,
    logLevel: LogLevel.Debug
});

Using this you get event more than old MoancoServices.install() as pointed out here monaco-vscode-api loads couple of services as default.
I added a point to #515

Thanks for the replies, @CGNonofr and @kaisalmen.
I got a little further along, but my rollup process is failing because it couldn't find these packages:
          "vscode-oniguruma",
          "vscode-textmate",
          "xterm",
          "xterm-addon-canvas",
          "xterm-addon-image",
          "xterm-addon-search",
          "xterm-addon-serialize",
          "xterm-addon-unicode11",
          "xterm-addon-webgl",
          "xterm-headless"

I noticed that some of these packages were also mentioned in https://github.com/CodinGame/monaco-vscode-api/pull/69
What is it that I can do to get past this? In particular, I don't have any need for the terminal services, so if I could disable that somehow (right now, I'm running initServices({}), but it still seems to be bringing in these dependencies), then I can at least get rid of all the xterm-related packages.

@duncanmak are you using yarn by any chance? These are peerDependencies of @codingame/monaco-vscode-api and npm installs them automatically, but yarn and pnpm don't
Regarding services: they are conditionally imported. Thus, if no specified your output bundle should not require/depend on them.

Thanks @kaisalmen for telling me about peerDependencies, I 'm using `yarn.
I finally got it to build, but now my editor doesn't seem to have any services enabled.
I see a few errors in my console:
Error: Lifecycle cannot go backwards
Uncaught (in promise) Error: Default api is not ready yet, do not forget to call initialize from 'vscode/extensions'
  ERR Unable to create workbench contribution StatusBarColorProvider2. TypeError: Cannot read properties of undefined (reading 'enableStatusBarColor')

Error: Lifecycle cannot go backwards

initServices can only called once. If you do it again, you see this error. And you have to await the execution.

Thank you for all your help, using the new example, I was able to get more of my code transitioned over.
But now during yarn build, I see:
[vite]: Rollup failed to resolve import "monaco-editor/esm/vs/base/common/performance.js" from "node_modules/vscode/dist/vscode/vs/workbench/common/contributions.js".

@duncanmak it seems like https://github.com/TypeFox/monaco-languageclient#treemending was not executed.
Try to run it manually again as shown here:
https://github.com/TypeFox/monaco-languageclient/blob/main/packages/verify/yarn/package.json#L13

Where is the monaco-treemending script? I added the test:treemending step to my package.json and I still see this:
[2/3] ⠂ monaco-languageclient
error /Users/duncan/git/ec/domain-adaptation-web/node_modules/monaco-languageclient: Command failed.
Exit code: 127
Command: monaco-treemending
Arguments:
Directory: /Users/duncan/git/ec/domain-adaptation-web/node_modules/monaco-languageclient
Output:

@duncanmak can you share your project or your configuration?

Using the latest examples, I'm now about to build, which is great. We did have to switch from yarn to npm, because using yarn, the treemending script doesn't get executed. This is not a problem when using npm.
Now I'm trying to get our tests running, We're using vitest and from my reading, it supports ESM.
Error: require() of ES Module node_modules/vscode/api.js from
node_modules/vscode-languageclient/lib/node/main.js not supported.
Instead change the require of api.js in node_modules/vscode-languageclient/lib/node/main.js
to a dynamic import() which is available in all CommonJS modules.

So reading both vscode/api.js and vscode-languageclient/lib/node/main.js, it looks like vscode is an ESM and vscode-languageclient is a CJS module. Am I right?
Is there a way to run the entire system without any CJS modules?

vite/vitest can handle mixed esm/cjs and usaually without configuration.
The problem we had with vitest in monaco-edditor-wrapper is that monaco-editor only works in the experimental browser mode, because of bowser/DOM related APIs. But this is working, for example: https://github.com/TypeFox/monaco-components/actions/runs/6423611659/job/17442490953

I successfully upgraded from v3.0.1 to v7.0.2, see jsona/editor#2
I only used monaco-languageclient, without monaco-edditor-wrapper.
highlight/diagrose/hover/complete/format all run perfectly like in vscode.
Try it on https://jsona.github.io/editor/schema

@sigoden thank you for reporting back. This is very good. Makes me wonder if we should start linking project in the README making use of the project.

@kaisalmen Yes. I would only be honored if you would link to my project.

Closing this due to lack of further input for the original problem. @duncanmak If there is another specific problem / you have another specific question, please open a new issue or discussion. Thanks.


Tiny compat fix: sklearn expects fit_transform to take a y as well

Hi Daniel! Apologies for not getting back to you on this sooner, but my understanding is that while the goal of passage is to extend an interface very similar to sklearn for the sake of usability, there are certain areas where we're okay with breaking the standard in order to make the interfaces more intuitive.
In this case I think we're going to leave out the extra dummy parameter despite the sklearn compliance to keep things more clear.

No worries about the late reply.
Currently, without the dummy y parameter, it's impossible to use the Tokenizer as part of a sklearn [Pipeline] (http://scikit-learn.org/stable/modules/pipeline.html).  I use Pipelines all the time and would like to see Tokenizer work with them.


Default timeout value in config is not set. Config.timeout is undefined.

This check seems to fail:
var config = arguments.length <= 0 || arguments[0] === undefined ? { timeout: 1000 } : arguments[0];
If arguments is an emtpy object or timeout ist not set in the arguments object.
Config.timeout stays undefined and each call triggers an error. Is this the intended behaviour?

Hmm, seems to be an issue with webpack's transpilation, check the original code here: https://github.com/lamp/superagent-jsonp/blob/master/src/superagent-jsonp.js#L44
And this does not support partial objects, I will fix this tonight.
Many thanks

Similar problem is there: https://github.com/lamp/superagent-jsonp/blob/b11b950a251337f532de8c3c4203867dcdc087a7/src/superagent-jsonp.js#L18
request.end = end.bind(request)(requestOrConfig)

If I'm using plugin like superagent.get('/some/url').use(jsonp), requestOrConfig is request, so both context and first argument are request, and timeout field is function, not default timeout.

HI @ascii-husky,
this issue has been fixed on 0.2.0


Fix iOS crash on startup due to wrong thread

Error:
Assertion failure in -[GIPReachability startWithCompletionHandler:]
'NSInternalInconsistencyException', reason: 'GIPReachability should be used from the main thread'

Fixes #233

thanks. can you explain the issue?

Thanks for merging @evollu! It's explained above and in #233, is there anything in particular you'd like me to clarify?


Pythonbrasil 2016

Add missing content.

Seems slow times for reviews.
For any review, please add a new issue.


[bug] logging always report 0 affected row when using Raw(..)

Explain your user case and expected results
When using Raw(..) function, gorm DB report wrong returned values for logging tracer

When you are querying with Rows, Row, GORM can't get the affected row ;(


fix(*): pascal casing fix to resolve fqn

Closes

Changes
When pascalCase is set to true, fully qualified name of a property removes the separators like .-_ is removed from fully qualified name of a property.
This is causing the problem when we try to use fqn for a property to avoid type conflicts as reported in this issue https://github.com/accordproject/concerto-codegen/issues/15
Author Checklist

[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[ ] Vital features and changes captured in unit and/or integration tests
[ ] Commits messages follow AP format
[ ] Extend the documentation, if necessary
[ ] Merging to main from fork:branchname

Coverage: 98.906% (+0.0003%) from 98.906% when pulling b2fcb1cd732dadcfbeee0caebadb0a944326a185 on ragi-dayananda:main into 8f94382b576011e07d0808f6a7a4066db23adf46 on accordproject:main.


Week 6 challenge

very liked this type of challenge

https://people.sap.com/b.mac

Hi,
I'm glad you like this challenge and thanks for your contribution ✌!
I noticed that your GitHub Page is current exposing the wrong directory. It should expose the built web app (aka the docs folder) but it currently exposes the main readme file.
Can you please change this? In case you need help, please refer to the instructions in this video or have a look at the other pull requests.

Hi, I'm glad you like this challenge and thanks for your contribution ✌!
I noticed that your GitHub Page is current exposing the wrong directory. It should expose the built web app (aka the docs folder) but it currently exposes the main readme file. Can you please change this? In case you need help, please refer to the instructions in this video or have a look at the other pull requests.

Changed it to docs

Thanks, I see it now. Can you please push a new commit to retrigger the GitHub Action that assess your PR? From looking at your code, it could be that the score is below 75 (but maybe you are lucky :) )

My chrome says 94% ;)
Did the new commit.

https://people.sap.com/b.mac

https://people.sap.com/b.mac

Thanks a lot for your contribution. The solution looks great and I'll close this PR now!
You should receive your badge soon.


the class name MaterialstoreFacade.Result is not good enough

v0.3.6, we have MaterialstoreFacade.Result
.
The name "Result" is too general. I would prefer more specific name.

DiffResult ?

v0.3.7


Update to latest Cake.Kudu

Assuming everything goes to plan, @devlead should be able to produce a new release of Cake.Kudu, which will run the .Net Global Tool version of Kudu, for usage under .Net Core.

This was handled here: https://github.com/cake-contrib/Cake.Recipe/issues/666


Missing all Details fo SharePoint API Documentation

🛑 IMPORTANT: You can get your feedback addressed faster if you use the comment section for the article in which you encountered a problem.
Link to article: for example: https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.spweb?view=sharepoint-server
There is no any details such as explanation, examples in the page but was existing in the original MSDN site. Actually all SharePoint related documentation is incomplete after migration, missing all details.
Problem:
The tech articles on docs.microsoft.com for SharePoint lost all detailed explanation and example. Another link (https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.spsite?view=sharepoint-server). Please compare the original MSDN site for SPSite class, SPWeb class, you will find lots of content is missing after migrating to docs.microsoft.com.

Here I listed 2 links from original MSDN site. Please compare the pages, and you would tell how much details are lost in Microsoft Docs. Thanks.
Original SPWeb Class on MSDN: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_members.aspx
vs. https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.spweb?view=sharepoint-server
Original SPSite Class on MSDN: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite_members.aspx
vs. https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.spsite?view=sharepoint-server.

The original docs (I'm assuming since I've never seen the original source code) probably came from triple-slash source code comments. Many of original comments though were pretty useless. "A Boolean value that specifies whether the current user is allowed to edit master pages." for a property called AllowMasterPageEditingForCurrentUser is redundant. I'm assuming the new pages are also being generated from assemblies or something. If you edit any of the new pages the markup isn't markup, it's XML that looks like it came from some tool and editing it manually is futile. I don't know what the answer is but I agree the original docs, as somewhat useless as they are, have more information than the current pages. Many times I came to these pages hoping to find out something without getting any more information than what my IDE would tell me. What we need, regardless of the generation of the pages, is a way to contribute content like examples and meaning behind the properties and values.

Re-assigning to @jmazzotta, who is currently working with the Office team on migrating the SharePoint APIs.


Unable to reproduce MRR for Code Search

I have attempted to finetune UniXcoder on Code Search using CSN dataset with Python code. I ran the commands as provided in the code-search folder; however, the MRR I got on the test set after 10 epochs is 68.9 instead of 74.4 as reported in the paper.

yes that seems to be the issue; thanks


running without docker?

Hi guys,
it is possible to use this repository without docker? I need it for my research at my university but they don't allow to use docker for permissions reasons etc.
thanks in advance :)
best regards,
whoisibooo

Yes.. you have to remove the nvidia specific packages, which are used for faster inference.

Hi @bharatsau, how can I do that? I have no clue about docker etc. Can you help me?

Using this repo without docker makes it difficult to use many dependencies, so it is not generally recommended.


docs: update README to use redirect instead of callback

Updated the README to use redirect instead of callback.
The code has been modified in https://github.com/opengovsg/sgid-client/pull/56.

pointed all the README to the docs following the Python Flask example. additionally added an installation step in the 'Local development' section.


Bonnie 460

Picking from where the work on Bonnie 335 ended.
Tests are now loading data from test fixtures instead of zip files (where appropriate).

measures_controller_measure_history_granular_test.rb is still a separate file for the ease of review.  It will be merged into the measures_controller_measure_history_test.rb when the reviews are done.

I should note that this pull request started life as PR #670.  Started a new branch to resolve some issues with test cases.


echoip test doesnt work

Running the suggested test from the readme doesnt work, because echoip.com doesnt exist
curl --proxy <IP_ADDRESS>:5566 http://echoip.com
I would suggest to run:
curl --proxy <IP_ADDRESS>:5566 http://ip.jsontest.com

Thanks, I updated the readme with https://api.my-ip.io/ip


Unable to get the correct performance with model zoo models

Hi ruotian,
I did a couple of experiments by evaluating your model zoo models.
For example, by running:
python tools/eval.py --dump_images 0 --num_images 5000 --model models/trans_self_crit/model-best.pth --infos_path models/trans_self_crit/infos_trans_nscl-best.pkl --language_eval 1 --beam_size 5
I'm only able to a CIDEr score of 124 (130 reported).
Similar things also happen for other model zoo models. Around 5-7 points difference.
(For both the transformer models and butd models)
BTW, beam size of 2-3 is better than beam size 5.
I have been debugging for a few days.
It's not the pytorch version problem. I tried both pytorch 1.7 and 1.4.
Am I using the right command?
What do you think could be the cause?

That is weird.
I have tested again, with freshly pulled repo, and got the same result.
Can you compare to your result with the result here https://drive.google.com/file/d/1Twl1nmacsmXtYGq_NZMWoh0hPT_cUtqh/view?usp=sharing.

That is weird.
I have tested again, with freshly pulled repo, and got the same result.
Can you compare to your result with the result here https://drive.google.com/file/d/1Twl1nmacsmXtYGq_NZMWoh0hPT_cUtqh/view?usp=sharing.

My result is different. For BLEU1 I got 0.79 something.
The predicted sentences are different also.
My version is also freshly pulled and almost all files are from your google drive.
I'm using pytorch 1.7 python 3.8 in docker.

My result is different. For BLEU1 I got 0.79 something.
The predicted sentences are different also.
My version is also freshly pulled and almost all files are from your google drive.
I'm using pytorch 1.7 python 3.8 in docker.

I am using 1.5 and py3.7. I doubt that would bring so much difference.

I am using 1.5 and py3.7. I doubt that would bring so much difference.

Alright, thank you. I'll try to downgrade my python version and test again.

Alright, thank you. I'll try to downgrade my python version and test again.

I finally find out why.
It's because I used 36 features instead of 10-100 features.
I guess the model zoo models are trained with 10-100 features
That's why if 36 features are used, I get lower performance.
ruotian, you might add one or two lines in the model zoo descriptions, such that other people won't have similar problem.
Thank you for your help again.

I finally find out why.
It's because I used 36 features instead of 10-100 features.
I guess the model zoo models are trained with 10-100 features
That's why if 36 features are used, I get lower performance.
ruotian, you might add one or two lines in the model zoo descriptions, such that other people won't have similar problem.
Thank you for your help again.

Good point.

Good point.


Adjust CORS headers for Cordova changes in Meteor 1.3

Because Meteor 1.3 serves Cordova apps from localhost:<port> instead of meteor.local, the CORS header set here will need to be changed.
See the changes made in CollectionFS for more details:
https://github.com/CollectionFS/Meteor-http-methods/commit/7ebfe12bda81d3335c1ea75a40af32fd8817f815

I think this was brought up in #37; I've been traveling lately and haven't had a chance to look at it yet. Will do so soon.


Live preview was canceled for an unknown reason ({0})

Hello,
the sass compiler is not working after the lastest update.
Making any changes in a scss file will return this error message:
"Live preview was canceled for an unknown reason ({0})"
Brackets Release 1.1 build 1.1.0-15558
Brackets SASS 1.0.2-77
Mac OS X Mavericks 10.9.5

If it helps anyone, I had the same issue but it was resolved after removing several long data URIs.

I had the same problem for weeks on brackets 1.1 and now on 1.2.
OS: Mavericks 10.9.5
Chrome: v.40
Messages:
Console: "You must connect to the WebSocket before sending messages" when I'm editing css.
Thunder: "Live preview was canceled for an unknown reason ({0})"
Server: Local with MAMP
I tested 2 things:
When I disabled this extension (brackets sass) and editing my file.scss there is no crash with livepreview. Ok it don't compile and I don't see css changes but this message don't appear "Live preview was canceled for an unknown reason ({0})" and when I create a basic projet without "scss" (index.html + style.css), it work fine...strange!

Same problem here for me! Working with a foundation libsass project and Brackets Release 1.3 Build 1.3.0-16022 on Win7 x64

Did a clean install of both Brackets and plugin. Same result...


Better support for zero-shot voice-cloning

Thansk for your great job. Seems you use the speaker id not the reference wav to separate the speakers. I wonder will this repo support zero-shot voice-cloning?

Hey, yes the model does support zero-shot voice cloning.
Right now you can do it by running the https://huggingface.co/speechbrain/spkrec-ecapa-voxceleb model on your sample and passing the resulting embedding vector to WhisperSpeech.
I think it would makes a lot of sense to let the user pass in a path to the reference voice waveform into the generate API but realistically it will probably take me a few weeks before I'll be able to get to it. PRs are welcome, of course. :)

Thanks for you reply, I will have a try!

I think the current pretrained model doesn't support zero-shot voice-cloning?  We need to train from the start with the speak embedding replaced with embedding vector extracted from spkrec-ecapa-voxceleb?
https://github.com/collabora/WhisperSpeech/blob/934a67c74c8d23d233f9702d51c5be149411a304/whisperspeech/s2a_delar_mup_wds.py#L567C1-L567C56

Hey, I implemented the API we talked about. You can now pass a file or URL to the voice sample and it will be used to condition the model:
pipe.generate_to_notebook("This is a demo of Whisper Speech.", lang='en', speaker='https://upload.wikimedia.org/wikipedia/commons/7/75/Winston_Churchill_-_Be_Ye_Men_of_Valour.ogg')

Here we are using a famous speech by Winston Churchill. Runnable examples are in the Colab notebook.