feat: allow to check if log messages are in a given order

re-adding the last non opensource commit.

Codecov Report

Merging #5 (245eb6c) into main (e74f4a3) will increase coverage by 0.06%.
The diff coverage is 44.44%.

@@             Coverage Diff              @@
##               main       #5      +/-   ##
============================================
+ Coverage     71.28%   71.34%   +0.06%
- Complexity      627      629       +2
============================================
  Files            30       30
  Lines          2462     2464       +2
  Branches        272      272
============================================
+ Hits           1755     1758       +3
  Misses          569      569
+ Partials        138      137       -1

Impacted Files
Coverage Δ

.../java/com/decathlon/tzatziki/utils/Comparison.java
0.00% <0.00%> (ø)

...java/com/decathlon/tzatziki/steps/LoggerSteps.java
85.71% <100.00%> (+0.52%)
:arrow_up:

...n/java/com/decathlon/tzatziki/steps/HttpSteps.java
87.02% <0.00%> (+0.38%)
: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 e74f4a3...245eb6c. Read the comment docs.


Run tests of flow with babylon

This was a try to run all tests from the flow repository with babylon.
Currently 100 of 590 fail, although there could be still false positives.
What are your opinions on that? We can probably never safely run them without allow_failures, but I thought it might be a nice hint on what are the differences between parsing in flow and babylon.

Sounds cool to me - more tests the better?


Replace {{field}} interpolate value with ng-bind directive

Removes the flashing of the full json field object.

LGTM :+1:


Add support for resource_template for rest sensor

Description:
Adds support for resource_template (a template based url) for the rest sensor.
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for configuration.yaml (if applicable):
sensor:
  rest:
  resource_template: 'http://validate.jsontest.com/?json={"key":"{{ states("input_text.text1") }}"}'

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
[ ] Untested files have been added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

I was not sure if the CONF_RESOURCE_TEMPLATE should be added to global consts.
Also, is the vol.exclusive() the right way to do it when we like to enforce one of  CONF_RESOURCE* ..


Add a notice when we save drafts (when compose is closed)

If you have compose open with some text in it, and then click somewhere to the side, we automatically hide compose (saving the text as a draft).  However, for many users, it can appear that their message was lost, because they might not know about Zulip's drafts feature.  We should probably add some sort of lightweight notice (in the compose area) to let the user know that the message was saved as a draft.
It could also make sense to have that trigger a hotspot on "Drafts" if the user hasn't been here before.
See https://github.com/zulip/zulip-electron/issues/343#issuecomment-347357992 for some context on why this is super valuable.
@sampritipanda FYI; this could significantly increase the value of "Drafts".
@rishig I'd appreciate your thoughts on this.

I think this is a great idea (both the notice and the hotspot).
Maybe we should open the hotspot issue separately, since it is more complicated than the notice.

I think we can just open a follow-up issue for the hotspot once we've completed this and know whether we actually want it.  I agree anyone working on this should just do the notice, and we can decide on the rest once that's done.
In terms of visual design, I think something that shows as a brief animation on the "closed compose" area would be a good thing to try as a start; we might find we need to do something fancier if that doesn't look great (but I'd start with doing something simple for the animation and focus on the plumbing, since that will require most of the code reading).

My opinion: Draft must save for channel and last draft autopast in "new_message_textarea", if click on "new message"

@zulipbot claim

The current version mostly works, but the preview case seems broken (albeit in a mostly harmless way).

actually, I'm having trouble repro'ing this now so closing again


Maximum Score

💥 Proposal
This is a problem of CP. I have checked this is not present in CP section of CPP and no issue is created regarding this.
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


_include=ExplanationOfBenefit:insurer not including the insurer reference in the bundle response

NOTE: Before filing a ticket, please see the following URL:
https://github.com/hapifhir/hapi-fhir/wiki/Getting-Help
Describe the bug
I am trying to add _include=ExplanationOfBenefit:insurer query parameter in my ExplanationOfBenefit search endpoint and even after setting the Organization resource to the insurer, it is not getting included in the bundle response.
When I checked the ExplanationOfBenefit.java, there is no search definition or include variable defined for insurer.
Please provide a fix for the same. Or am I missing something?
To Reproduce
Steps to reproduce the behavior:
Create a @Search endpoint for ExplanationOfBenefit with _include=ExplanationOfBenefit:insurer
On hitting the request, the bundle response don't have the insurer reference (Organization/1234) added as a complete resource.
Returning a response without including the referred resource.
Expected behavior
The bundle should have included the Organization resource in the entry array
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

HAPI FHIR Version - 5.2.1
OS: [e.g. iOS] - Windows

Additional context
Add any other context about the problem here.

Are you able to replicate this on our public server (hapi.fhir.org)? If so can you provide an example link that isn't working, as well as a link to the data it should be returning?

Hi James
_include=ExplanationOfBenefit:insurer is not available in the public server
under the include search parameters. But we need to implement that as we
are supporting CarinBB profile for ExplanationOfBenefit and it is mentioned
in the CapabilityStatement
https://build.fhir.org/ig/HL7/carin-bb/CapabilityStatement-c4bb.html.. Can
this be added as an additional feature?
On Wed, Apr 14, 2021 at 10:36 PM James Agnew @.***>
wrote:

Are you able to replicate this on our public server (hapi.fhir.org)? If
so can you provide an example link that isn't working, as well as a link to
the data it should be returning?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hapifhir/hapi-fhir/issues/2524#issuecomment-819676883,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASOPNYASAGYEHDX5OB4LGATTIXDSZANCNFSM42OMVUCQ
.

You are welcome to add any SearchParameter resources you need to add to the public server in order to demonstrate the issue

I cant find any search parameter or _include parameter with ExplanationOfBenefit:insurer.. Attaching the above screenshot for your reference

This is because there is no SearchParameter in the core FHIR specification on the EOB resource type called insurer. See the table at the bottom of the page here: http://hl7.org/fhir/explanationofbenefit.html#search
If you want to add one you need to upload a SearchParameter to the server. Typically if a specific IG requires a search parameter, they provide it for you to upload.


Go SDK - Part 2

Resolve TODO comments in code, add logging, and make a couple changes to the stream interface.

Added "For example" as needed
Added Go linting to pipeline
Made logging more like log4j and changed cases
Removed numbering/enthusiasm from comments
Changed/added a couple logging statements
Added copyright headers

Addressed Todd's comments.


feat: update active tab in class detail page

Ticket
https://agile-jira.pearson.com/browse/PADV-1816
Description
Update active tab in class detail page
Changes made
Set 'classes' as active tab no matter the previous page
Screenshots

How to test
Clone the Institution Portal MFE
Run npm install.
Run npm run start
Go to http://localhost:1980/institution-portal -> classes -> select a class

-the previous page value is sent to manage instructors page as a prop to other component, so until the client doesn't required to have the same value in the manage instructors page, I can't modify it to classes
-when you are coming from students, instructors and courses page


runtime(sql, mysql): fix E169: Command too recursive when let g:sql_type_default = "mysql"

Problem: When setting let g:sql_type_default = "mysql", editing .sql file reports E169: Command too recursive` error
Solution:

Add let b:did_ftplugin = 1 at the top of ftplugin/sql.vim
Add  if exists("b:did_ftplugin") | finish | endif in ftplugin/mysql.vim
Remove redundant code in ftplugin/sql.vim

fixes: #15474

Thanks. Did you try to contact the maintainer?

@ribru17 As the maintainer of ftplugin/mysql.vim, could you please review the PR?

I have sent an email to David Fishburn, the maintainer of ftplugin/sql.vim.

Thanks, LGTM

I was slightly confused, that ftplugin/mysql is missing the default header information with @ribru17 being maintainer. Can you please add this?

I was slightly confused, that ftplugin/mysql is missing the default header information with @ribru17 being maintainer. Can you please add this?

OK, I have added the header information, @ribru17 can you please check the header information in ftplugin/mysql.vim again?

Thank you, that looks good

thanks all


Update Windows docs to use the system drive to avoid compile failures

Fixes https://github.com/compnerd/swift-build-examples/issues/20. As pointed out by @compnerd, the build command may fail if a drive name is not provided for the compiler. %SystemDrive% was chosen to give new users the largest chance of success when compiling.

Seems reasonable to use %SystemDrive%.  I wish that there was a better way :-(

Thanks for the change!


Lint/Test errors

Hey Nicolo, I am trying to work on my branch but getting some errors after pulling master in.
boardgame.io/src/client/client.test.js
17:10  error  'RandomBot' is defined but never used  no-unused-vars
And also:
● Validation Error:
Module jest-transform-svelte in the transform option was not found.
When running Jest tests. I'm sure you would find these eventually but logging them just in case.

Thanks!
The RandomBot error should be fixed.
I'm not sure the jest-transform-svelte thing is an actual problem.  My suspicion is that you haven't done an npm install after the dependency was added.  Can you re-run npm install and check if it works?

Yup - that was it. Thanks!


add nalsize checking UT and fix nalsize control when cabac on

reviewed at: https://rbcommons.com/s/OpenH264/r/1636/

pls avoid the failed CI commits in history


Add @rollup/rollup-darwin-arm64 package

This is more due to package-lock getting out of date because we use different development platforms.

Also I think I saw a note somewhere that this should be in "peerDependencies" (but I'm not quite sure)

We might want to put both the x86 and darwin packages in the "optionalDependencies" field in the top-level package.json so that npm ci works on either architecture?
https://github.com/npm/cli/issues/4828#issuecomment-1848965606
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#optionaldependencies

I think this is fixed in https://github.com/breadboard-ai/breadboard/commit/85f695bf101d7ca4552471aa1797a401f49bd69c


gh repo clone not working with multiple accounts on plugin

Platform or tool
Github
Desired or expected behavior
Possibility of cloning, fetching and pushing with multiple accounts.
Current behavior
When cloning with one of the accounts it shows that repository not found:
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
failed to run git: exit status 128

Relevant log output
- `.gitconfig` already have the credentials:

[credential "https://github.com"]
        helper =
        helper = op plugin run -- gh auth git-credential
[credential "https://gist.github.com"]
        helper =
        helper = op plugin run -- gh auth git-credential

Plugin is correctly configured inside folder .op/plugins/gh.config
gh auth status return the correct account:

github.com
  ✓ Logged in to github.com account thomazbron (GITHUB_TOKEN)
  - Active account: true
  - Git operations protocol: ssh
  - Token: ghp_************************************
  - Token scopes: 'admin:enterprise', 'admin:gpg_key', 'admin:org', 'admin:org_hook', 'admin:public_key', 'admin:repo_hook', 'admin:ssh_signing_key', 'delete_repo', 'gist', 'notifications', 'project', 'repo', 'user', 'workflow', 'write:discussion'

op plugin inspect gh seems correct:

GitHub CLI

Configured Aliases

✔ Alias for "gh" configured
✔ Aliases sourced (/home/thomaz/.config/op/plugins.sh)

Configured Credentials

✔ Configured for directory "/home/thomaz/repos/born":
CREDENTIAL TYPE                 ITEM                 VAULT
GitHub Personal Access Token    Github Born Token    Born

~/.ssh/config is configured according to documentation:

Host *
        IdentityAgent ~/.1password/agent.sock

# Personal GitHub
Host tnex
        HostName github.com
        User git
        IdentityFile ~/.ssh/tnex.pub
        IdentitiesOnly yes

# Work GitHub
Host born
        HostName github.com
        User git
        IdentityFile ~/.ssh/born.pub
        IdentitiesOnly yes

Keys permissions seems fine:

.rw-------  80 thomaz  2 Sep 13:33 󰷖 born.pub
.rw------- 262 thomaz  2 Sep 13:34  config
.rw------- 828 thomaz 13 Oct 01:43 󰣀 known_hosts
.rw-------  80 thomaz  2 Sep 13:33 󰷖 tnex.pub

ssh-add -l correctly shows my keys:

256 SHA256:... Tnex (ED25519)
256 SHA256:... Github Born (ED25519)

Cloning on my personal account work fine as expected, the issue is with the Work account, also I have this same config in another computer and it work flawlessly! Any help will be appreciated as I already tried "everything".

### op CLI version

2.30.0

Just found out that changing the order in agent.toml work as expected (my work key is in another vault):
[[ssh-keys]]
vault = "Born"

[[ssh-keys]]
vault = "Personal"

But now my personal key does not work, seems that only the first entry is being used.


(Very) Minor issue: gron version in header

Hello!
The User-Agent-header set in getURL has an outdated version number of gron. Instead of updating it manually it might be better if it's set from a const from main or something?

That's a good idea.
It'd probably be best to set the value at build time via the ldflags -X option and make the release script set it to the tag. It'd be possible to add the version number to the help output / a --version option too then.

Fixed and in the latest release: https://github.com/tomnomnom/gron/releases/tag/v0.3.3
Thanks again!

Well done!


update type for obsaddon

https://github.com/open-cluster-management/backlog/issues/11990
Signed-off-by: Marco<EMAIL_ADDRESS>

@marcolan018 do we need to update the e2e case for this change?


Add vectorizer params as hyperparams

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: saschagrunert
To complete the pull request process, please assign
You can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

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

/help

/test ?

/lgtm

@saschagrunert: you cannot LGTM your own PR.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


[Event Request] codeunit 5988  "Serv-Documents Mgt." - OnPostDocumentLinesOnBeforeFilterServLine

Hello, would it be possible to add OnPostDocumentLinesOnBeforeFilterServLine,  event to codeunit 5988  "Serv-Documents Mgt.", like this:
    procedure PostDocumentLines(var Window: Dialog)
...
          LineCount := 0;

         // init cu for posting SLE type Usage
         ServPostingJnlsMgt.InitServiceRegister(NextServLedgerEntryNo, NextWarrantyLedgerEntryNo);
>         OnPostDocumentLinesOnBeforeFilterServLine(ServHeader, ServLine);//New Event
         if not ApplicationAreaMgmt.IsSalesTaxEnabled() then begin
             ServLine.CalcVATAmountLines(1, ServHeader, ServLine, TempVATAmountLine, Ship);
             ServLine.CalcVATAmountLines(2, ServHeader, ServLine, TempVATAmountLineForSLE, Ship);
         end;

     [IntegrationEvent(false, false)]
     local procedure OnPostDocumentLinesOnBeforeFilterServLine(var ServHeader: Record "Service Header"; var ServLine: Record "Service Line")
     begin
     end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10531.


JSONHTTPError when deploying Next.js app inside Nx workspace

Describe the bug
I'm trying to deploy a next.js app that's inside a Nx workspace using netlify-cli. I have configured the build settings as show below in the netlify.toml file and in the netlify UI. I have logged in using the cli and I'm setting the site ID as an environment variable in my terminal.
The app builds without problem including the @netlify/plugin-nextjs output, the issue begins at the upload stage. After 20 minutes (at least) it just errors out with this message:
{
  "name": "JSONHTTPError",
  "status": 500,
  "json": {
    "status": 500,
    "error": "Internal Server Error"
  }
}

I have tried running the deploy command as:
npx netlify deploy --prod --build
as well as:
npx netlify build
npx netlify deploy --prod

with no luck.
I have also tried doing the same with a clean nx workspace with a next app, here's the repo. The error is the same and it takes the same amount of time
Here's the full log with the DEBUG=* env variable in my original project:
error.txt
Steps to reproduce

git clone https://github.com/AlanAcDz/nx-next-test.git
npm install (it includes netlify-cli as a devDependency)
npx netlify login
set site ID as environment variable
npx netlify deploy --build --prod
*go get a coffee and a snack cause it takes a while
the cli errors out

Configuration
[build]
command = "nx build next-test"
publish = "dist/apps/next-test/.next"
[[plugins]]
package = "@netlify/plugin-nextjs"
Environment
System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 4.76 GB / 15.36 GB
  Binaries:
    Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.9.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
    netlify-cli: ^10.2.0

Forgot to mention, this issue is found only using the netlify-cli. If I activate github builds in the UI there is no problem whatsoever using the same configuration, the app builds and deploys just fine

Seeing the same thing, started happening this morning with a build triggered by content changes in the CMS.
2022-05-13T09:15:49.0557514Z Deploying to main site URL...
2022-05-13T09:15:49.6208989Z - Hashing files...
2022-05-13T09:15:49.6238898Z - Looking for a functions cache...
2022-05-13T09:15:49.6259193Z √ Deploying functions from cache (use --skip-functions-cache to override)
2022-05-13T09:15:50.5900168Z √ Finished hashing 1249 files and 3 functions
2022-05-13T09:15:50.5900729Z - CDN diffing files...
2022-05-13T09:15:52.2079659Z √ CDN requesting 497 files and 2 functions
2022-05-13T09:15:52.2087417Z - Uploading 501 files
2022-05-13T09:38:43.2252409Z  »   Warning: JSONHTTPError:  500
2022-05-13T09:38:43.2253876Z  »   Warning:
2022-05-13T09:38:43.2255033Z {
2022-05-13T09:38:43.2256173Z   "name": "JSONHTTPError",
2022-05-13T09:38:43.2256582Z   "status": 500,
2022-05-13T09:38:43.2259076Z   "json": {
2022-05-13T09:38:43.2259387Z     "status": 500,
2022-05-13T09:38:43.2260896Z     "error": "Internal Server Error"
2022-05-13T09:38:43.2261306Z   }
2022-05-13T09:38:43.2261547Z }
2022-05-13T09:38:43.2262133Z
2022-05-13T09:38:53.7609169Z  »   JSONHTTPError: Internal Server Error
2022-05-13T09:38:53.7990365Z error Command failed with exit code 1.

Update: so I installed latest version of netlify-cli (10.3.3), still does not work but now the error is completely different.
I'm attaching the new error, although it seems not to be the full error, my terminal did not keep the whole thing
new-error.txt

Update 2: with version 10.4.0 of netlify-cli, it outputs the same error as it was before:
{
  "name": "JSONHTTPError",
  "status": 500,
  "json": {
    "status": 500,
    "error": "Internal Server Error"
  }
}

It's been a whole month since I first opened this issue and yet there has been no acknowledgement of it.
@rshackleton are you still seeing this error too?

We ended up changing the site to not build as many pages statically to try and workaround the issue, so not we're not but we probably would be if we changed it back.

Update 3: I have tried upgrading to the latest version 10.5.0 and downgrading to version 9.16.7, neither works.
This makes me think that the issue might not be within netlify-cli itself and instead be the connection bewteen netlify-cli and netlify servers in this specific situation (nx workspace with nextjs app)
I may continue to post updates every now and then about this issue, at least until it's acknowleged.
If someone else encounters this I advice you to use netlify's UI to deploy your nx apps, that one works fine

This only happens if you have large dependencies and static pages generated. Try limiting it, if you can't, there's no really good option but only publish it using github or other pipeline.

Interesting, I am in fact generating static pages but I don't think 17 of them would cause the issue and none of them is more than 5kb. Either way it seems really strange that only netlify-cli has this issue

We've changed our handling of monorepos in v16+ . Is this issue still occurring?

Marking this as stale as it is several years old. Please feel free to reopen if you are still having issues.


cargo: update all dependencies to latest versions

This should be the last round of bulk dependencies updates. After this, we can enable dependabot to take care of bumping (compatible) updates for us.
@dm0- unfortunately due to transitive dependencies (in particular, mockito and encoding_rs), minimum toolchain version jumps to 1.30.0 (which for CL is on only in alpha, I think).

@dm0- thanks for double-checking, that's a good news! I somehow inferred beta was at 1.29.0.

Right, the Q4 release for RHEL7 was rust-toolset-1.29.

https://github.com/coreos/coreos-metadata/pull/127/commits/17bb8e60cf4d017e78c3b19536f72d090ebdba44 pins mockito and slog-scope to earlier versions. Everything else is fine with 1.29 as a minimum toolchain.

Looks sane to me!


BetterAnimations prevents pasting into the chat box

Whenever the plugin is enabled, the "Paste" button in the right click menu of the Discord chatbox does not work and does not paste your clipboard into the chatbox.
Pressing the Ctrl-V combination works however

Is this still an issue? Are you sure BetterAnimations is causing it?

sorry, havent used betterdiscord in a couple months so I couldn't tell you

Alright, I will close this as resolved, please create a new issue if you encounter this again.


Upgrade to ghc-lib-parser-<IP_ADDRESS>90723 (8.8.1-rc1)

Upgrade to the ghc-lib-parser 8.8.1-rc1 release.

Build failure expected until the release hits stackage:
Resolver 'nightly-2019-07-23' does not have all the packages to match your requirements.
    ghc-lib-parser version <IP_ADDRESS>90424 found
        - hlint requires ==<IP_ADDRESS>90723

Thanks!


Bug in hamburger menu in phone view

Screenshot have been uploaded of current and what is expected

Please assign me this issue

Hey @anjalisoni3655 , the issue works fine in our machines and we tried it in various browsers as well. Could you reload and check if its working for you?

Yah , it's working now .Sorry , some glitch may be 😅😅.


Make the travis passable

Currently, travis only succeeds when the nosetests and the flake8 are commented out.
The server setup itself passed. Previously it didn't pass because we have out-of-date pip installed, ensure the pip install pip --upgrade is run so the latest pip in installed.
TODO:

Flake8 is the tool that checks the styling and the syntax of our code, and we can choose to ignore certain warning if we feel like so.

nosetest is the unit-test package, and currently, all tests that call one of our endpoints will fail due to the new federation. It looks like we might need to rewrite these tests for them to work with federation.

For  nosetests tests.unit.test_data_interface:TestInterfacingLayer.testGetVariant
It looks like the Variant object that client requests has extra callsets objects embedded in the response, whereas the Variant object returned by the server does not. Need to look into how the client-requested object is generated.
Currently it fails because the Variant object isn't a defined class in the data model, it is currently unclear why the test was passing before, as there doesn't seem to be a way for it to pass.


Circular Queue Game

Problem: A group of n friends are playing a circular game where they are positioned in a circle and numbered sequentially from 1 to n in a clockwise direction. The game proceeds according to the following rules:

Starting at friend 1.
Count forward k friends in the clockwise direction, wrapping around the circle if necessary. The count includes the starting friend.
The friend at the end of the count exits the game.
The game continues, starting from the next friend in the clockwise direction of the friend who was eliminated.
Repeat the process until only one friend remains, and that friend is declared the winner.

The input consists of two integers:

n: The total number of friends sitting in a circle (1 <= n <= 500).
k: The number of friends to count clockwise, including the starting friend (1 <= k <= n).

The output should be the integer representing the friend who wins the game(the last friend remaining in the circle).

Follow and Read the Contributing Guidelines.

Only the assigned person is allowed to raise the PR on this Issue.

To get this issue assigned to you comment on this issue, along with your name, branch, year and college name.

Note: Make sure to put the question under the relevant folder structure, and then make another folder having the question name and inside that folder you can write your solution in any preferred language.

@Saket6198 Can you please assign it to me?

@PALLAVIKHEDLE mention your name, branch, year and college name.

Hey @Saket6198 @gdscpce please assign me this issue
Name: K.R.Roshan
Branch: CS
College: Sathyabama institute of science and technology
Year: 3rd

sure, go ahead :)

Hey @Saket6198 @gdscpce please assign me this issue
Name: Tushar Khandelwal
Branch: CS
College:Amity University
Year: 2nd

@Saket6198 i have my code ready but i cant find an folder to upload should i create one on queve or if it's already there can you let me know where

@roshankraveendrababu create one seperate folder for the question inside the deque folder

@roshankraveendrababu create one seperate folder for the question inside the deque folder

sure bro! thanks for the reply


Django 1.7

In django 1.7, app-loading was refactor and because django-authority uses get_user_model, an AppRegistryNotReady: Models aren't loaded yet. was thrown.
A common fix to this error is to use settings.AUTH_USER_MODEL, specified in docs

+1 for merge

1.10 compat 14b92a0dcd138f1bc9a6fac76040fb26b8bdbdf1


Data entry first letter is lowercase when caps lock is on

I am getting incorrect results when entering data into a table when caps lock is on.
Instead of the data entering as AMERICA it enters as aMERICA .
I have found this issue in DBEAVER when entering data into MS SQLSERVER or SQLITE tables.

Thanks for report


Test pre-release extensions as an end user

Ref #15756

[x] Mac @tanhakabir
[x] Win @jrieken
[ ] Linux @karthiknadig

Complexity: 5
Create Issue

As a user, you can choose to install pre-release version of an extension.
Please read following before starting testing
Note 1: Pre-release versions are shown only if they are newer than the newest released version.
Note 2: Use internal setting _extensions.preferPreReleases to disable VS Code insiders preferring pre-release versions  - Reload window required for the change to take affect
Note 3: Use sandy081.998-test-code or github.vscode-pull-request-github extensions for testing
Please test following:
Test browsing and installing extensions with pre-release versions

Test the representation of these extension in the extension view, hover and extension editor. Pre-release bookmark, badge & indicator are used to represent that extension has a pre-release or is pre-release.
Test that the primary action to install the extension is to install the pre-release and the secondary action is to install the release version. Test these actions are working as expected.
Disable _extensions.preferPreReleases setting (reload window) and test that primary action is to install the release version and secondary action is to install the pre-release version.
Test that you can switch between release and pre-release versions using the actions Switch to.... action that is available in the extension editor and extension context menu in extensions view.
Test uninstalling and installing the extension works as expected.
Test that you can browse and install previous versions of the extension using Install Another Version... action

Test Settings Sync:

Open two VS Code Insiders instances using two different user data directories and extensions directories. Use --user-data-dir and --extensions-dir from command line.
Enable settings sync on both instances
Make sure installing pre-release/released version on one instance, installs the same pre-release/released version on another instance

Test Auto Migration

Uninstall GitHub Pull Requests & Issues extension
Quit VS Code Insiders
Download the old GitHub Pull Requests & Issues nightly extension VSIX  from the Marketplace - Use the Download link in the resources section
Install the above downloaded VSIX from the command line - code-insiders --install-extension <vsix_path>
Open VS Code Insiders
Make sure that GitHub Pull Requests & Issues nightly extension is uninstalled and main GitHub Pull Requests & Issues is installed - Reloading the window will enable the main extension

I ran into #138130 as well. This seems to occur when several extension editor tabs get opened (like when you click show recommended). Manually re-opening it seems to fix it for me.
Other than that, it works well. Thanks for the feature.


Reduce empty region's replica count to 1

Before merge is stable enough, if we want to handle the situation that there are many empty regions, we can change their replica count to 1. So for empty regions, there will be no election, no heartbeat and no message append, the impact of them can be minimized. Pd may still suffer from too many regions though.

We can't do that. The region is empty for now does not mean it's always empty, someone may write to the empty region.

It's not a general approach. But for the cases that we know for sure that the region will not be written again, it's still a temporary way to ease the problem.

Now we have region merge. Don't need it.


Update .travis.yml to pull closure-linter from its new GitHub repo.

Google Code is shutting down soon.

Thanks!

:+1:


feat(ingestion): adds env property in ContainerProperties

As in the case of PR #10814, this is adding the environment to the ContainerProperties aspect so container entities can also be filtered by environment, which is a common feature for many other entity types.
Checklist

[ ] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
[ ] Links to related issues (if applicable)
[ ] Tests for the changes have been added/updated (if applicable)
[ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
[ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@sgomezvillamor Thanks for doing this. This is great. Will get this reviewed and merged soon


No code found in this project

Please add the code for this project and also the enhancements you would want the contributors to make to this project.

go to master Branch plz


soundtouch: CVE-2018-1000223 CVE-2018-14044 CVE-2018-14045

Motivation for this change
Fixes #64187.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

If you do manage the update be sure to switch to using the proper pname instead of pName.

Indeed, it makes sense to upgrade.


App icon

We need to design an icon for the app.

we need to updated the screenshot in readme

and we need to check the svg. it has different font and different paddings compared to the png.

Maybe you dont have the proper font installed

TODO

[ ] Export SVG not to Inkscape SVG but to compressed SVG and show in README
[ ] Change Screenshot in README of the start view


Suppressing deprecation warnings abuses element/source overrides

See original issue on GitLab
In GitLab by [Gitlab user @tristanvb] on Apr 24, 2020, 09:45
This is an API inconsistency I think is worth fixing.
Essentially, what is happening here is that we are hijacking the elements: / sources: dictionaries which exist to uniformly override plugin default configurations, and adding an additional key which is not even a part of element/source declaration YAML.
Negative side effects of this include:

Opening up a slippery slope of this continuing to happen, providing an overall inconsistent API story
Possibilities of keys snuck into the overrides namspace clashing with actual declaration YAML
Inconsistent API documentation story.

I think the last point here is the worst, for every single key in the BuildStream YAML format, we have a piece of documentation which specifically describes it, every key has it's own section and is fairly well categorized in the reference manual; this also allows for standard expressions like "This key was added since version 2.2" and such.
Instead in this case, we have a mere mention in the plugin.py documentation saying:

This deprecation warning may be suppressed on a plugin by plugin basis by setting suppress-deprecation-warnings: true in the relevant section of the project's plugin configuration overrides.

Proposed fix 1
The most sensible thing here is to have this configuration in the declarations of plugins a project uses.
Here is one normally declares which plugins the project is going to use, so it is a natural place to have the configuration of whether to care about deprecation or not. It is also tied directly to the plugin loading code which is a natural place to raise such errors.
Proposed fix 2
The suppress-deprecation-warnings needs to become a first class key on elements and sources, even if this means that the warnings can be suppressed on one plugin instance, this would not be a breaking change because we could continue overriding the valid key in the overrides.
I like this solution less but if we really want this to be set in the overrides, it really should be valid plugin declaration YAML.

In GitLab by [Gitlab user @abderrahimk] on Apr 25, 2020, 08:48
I like fix 1 better. Especially since this didn't leak into 1.x at all.

In GitLab by [Gitlab user @tristanvb] on Apr 29, 2020, 12:30
mentioned in commit ff7beb3168099cee246756fcfad7570987afa7fc

In GitLab by [Gitlab user @tristanvb] on Apr 29, 2020, 12:32
mentioned in merge request !1892

In GitLab by [Gitlab user @tristanvb] on Apr 29, 2020, 12:41
mentioned in commit 820782e8fe41779b53a553d28bc249759b76fbfe

In GitLab by [Gitlab user @tristanvb] on Apr 29, 2020, 12:44
!1892 addresses this with fix 1 above.
It's a bit wordy, but I expect that the ability to load the plugin origins as "string-or-dictionary" (like we do in other parts, like dependencies) can be useful (for aliasing plugin names for instance).

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 07:21
mentioned in commit a81628d7b32c2fdf18bdd6c8f680f6eba0e7d0dc

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 07:29
mentioned in commit 6e908f30b62b47bf4ef7b9bda7351af245614cf6

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 07:44
mentioned in commit 7f41627b54bd0c6cd0a4e326af51e697a146acaa

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 08:27
mentioned in commit b961acbb8f09bd84dafcc8ae873fb2333c890f59

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 08:59
mentioned in commit c094db6bb833670e5d41aac835a80e58913258b6

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 09:16
mentioned in commit 4516523be851060eabb55e72dd322c073d36ae40

In GitLab by [Gitlab user @tristanvb] on Apr 30, 2020, 09:25
mentioned in commit 87a00a37493cf95bc31605f795d1b7582121cd29

In GitLab by [Gitlab user @tristanvb] on May 3, 2020, 03:54
mentioned in commit b1b87f70208ced6bd482dda4cc447f0b39b2526a

In GitLab by [Gitlab user @tristanvb] on May 3, 2020, 05:30
mentioned in commit 2f31c8ae5fc3f7cbd0bf582f6637dca00d5e7842

In GitLab by [Gitlab user @tristanvb] on May 4, 2020, 09:55
mentioned in commit d1d002dec836579e0f708ad438a8265070963c51

In GitLab by [Gitlab user @tristanvb] on May 4, 2020, 11:01
closed via merge request !1892

In GitLab by [Gitlab user @tristanvb] on May 4, 2020, 11:01
mentioned in commit 22117146f9f1881ab88ae2161707e92b4dc217fd


Type inference issue when using generic function and generic constraint

TypeScript Version:  3.0.0-dev.20180607 and 2.9.1

Search Terms: type inference generic constraint function callback accessor
Code
type GenericFunc<TA, TB> = (x: TA) => TB;

class GenericFuncHolder<TA, TB> {
    constructor(readonly func: GenericFunc<TA, TB>) { }
}

function wrap<TA, TB>(func: GenericFunc<TA, TB>) { return new GenericFuncHolder(func); }

class X { readonly xProperty = "xProperty"; }

class Y<TX> { readonly x: TX | undefined; readonly yProperty = "yProperty"; }
class YDerived<TX> extends Y<TX> { readonly yDerivedProperty = "yDerivedProperty"; }

class GenericTarget<TX, TY> {

    constructor(readonly x: TX, readonly y: TY) { }

    holderParams<TX2, TY2 extends Y<TX2>>(
        holderX: GenericFuncHolder<TX, TX2>, holderY: GenericFuncHolder<TY, TY2>,
        use: (x: TX2, y: TY2) => void,
    ) {
        use(holderX.func(this.x), holderY.func(this.y));
    }

    funcParamsWithoutConstraint<TX2, TY2>(
        funcX: GenericFunc<TX, TX2>, funcY: GenericFunc<TY, TY2>,
        use: (x: TX2, y: TY2) => void,
    ) {
        use(wrap(funcX).func(this.x), wrap(funcY).func(this.y));
    }

    funcParamsWithConstraint_BAD<TX2, TY2 extends Y<TX2>>(
        funcX: GenericFunc<TX, TX2>, funcY: GenericFunc<TY, TY2>,
        use: (x: TX2, y: TY2) => void,
    ) {
        use(wrap(funcX).func(this.x), wrap(funcY).func(this.y));
    }
}

const genericClassTarget = new GenericTarget (new X(), new Y<X>());

// Type inference works when having the constraint but using `wrap()` on the call site:
genericClassTarget.holderParams(wrap(x => new X()), wrap(y => new YDerived<X>()),
    (x2, y2) => console.log(x2.xProperty, y2.yDerivedProperty));

// Type inference works without the `TY2` constraint:
genericClassTarget.funcParamsWithoutConstraint(x => new X(), y => new YDerived<X>(),
    (x2, y2) => console.log(x2.xProperty, y2.yDerivedProperty));

// Type inference doesn't work, TSC emits "TS2339: Property 'xProperty' does not exist on type '{}'"
genericClassTarget.funcParamsWithConstraint_BAD(x => new X(), y => new YDerived<X>(),
    (x2, y2) => console.log(x2.xProperty, y2.yDerivedProperty));

(Sorry for the long repro, it's the simplified version of a production issue and the inference issue seems to be a very special case.)
Expected behavior:
Type inference works for funcParamsWithConstraint_BAD as it works for holderParams and funcParamsWithoutConstraint. It seems that the generic constraint of TY2 narrows TX2 to {}, but this works when using wrap() on the call site. Which is the reason, why I would expect funcParamsWithConstraint_BAD to work just fine.
Actual behavior:
"TS2339: Property 'xProperty' does not exist on type '{}'" in the last line.
Playground Link: Playground Link
EDIT: Extended repro to make it more realistic.

TY2 in _BAD isn't doing anything. The signature should be written as:
funcParamsWithConstraint_BAD<TX2>(
    funcX: GenericFunc<TX, TX2>, funcY: GenericFunc<TY, Y<TX2>>,
    useX2: (x: TX2) => void,
) {
    wrap(funcX); wrap(funcY);
}

This works as expected.

@RyanCavanaugh Also added YDerived to better motivate the TY2.

@RyanCavanaugh Any news on this?
I have now a second but much easier sample using a conditional type instead of a generic constraint:
type GenericFunc<TA, TB> = (x: TA) => TB;

class GenericFuncHolder<TA, TB> {
    readonly func: GenericFunc<TA, TB>;

    constructor(func: GenericFunc<TA, TB>) {
        this.func = func;
    }
}

function wrap<TA, TB>(func: GenericFunc<TA, TB>) {
    return new GenericFuncHolder(func);
}

//

export type PropertyToTypeName<TProperty> =
    TProperty extends string | undefined ? "text" :
        TProperty extends number | undefined ? "number" :
            never;

function withFunc<TProperty>(
    func: GenericFunc<string, TProperty>, typeName: PropertyToTypeName<TProperty>) {
    console.log('func points to', typeName);
}

function withHolder<TProperty>(
    holder: GenericFuncHolder<string, TProperty>, typeName: PropertyToTypeName<TProperty>) {
    console.log('holder points to', typeName);
}

withHolder(wrap(x => x.length), "number"); // works fine

// emits TS2345: Argument of type '"number"' is not assignable to parameter of type 'never'
withFunc(x => x.length, "number");

... like in the sample above the problem is that in the withFunc-case TProperty infers to {} which you can see when adding TProperty extends {} ? "[is empty object]" to the conditional type.

I feel like I'm missing something, because this example really shouldn't error, but has since 2.8
type TypeName<T> = T extends number ? "number" : "something else";
function fn<T>(func: (x: string) => T, p: TypeName<T>): void { }
// Error
fn(x => x.length, "number");

The sample above now produces a crash in the LS in the Playground...


Theme watch only removes files

What happened
Setup themekit to watch your shopify site. Perform a save on any file. Most of the times, themekit doesn't perform and update and just removes the file: "Successfully performed Remove on file ...." without doing an update "Received update event on..."
Saving twice fixes the issue but it's a hassle to do it every time I save a file.
What I expected to happen
Any updates to a file should remove and then re upload the file back to shopify.
Steps to reproduce

Setup themekit to watch a specific Shopify site
Perform a save operation on any file
File is removed and not uploaded back

My Environment
OS (including version): Mac OS Sierra 10.12.6
Themekit version: 0.7.5
Ignore Files(if any):

Duplicate of #510. Also using Vim.


Trying to spawn visual effects

Is there any way to spawn and control visual effects in GTA 5. I am looking all over the place to see if there is a way but I am not sure where to look. I tried using the example code from here
                    var model = new Model(text);
                    model.Request(250);

                    // Check the model is valid
                    if (model.IsInCdImage && model.IsValid)
                    {
                        // Ensure the model is loaded before we try to create it in the world
                        while (!model.IsLoaded) Script.Wait(50);

                        // Create the prop in the world
                        World.CreateProp(model, Game.Player.Character.GetOffsetInWorldCoords(new                    Vector3(0, 5, 0)), true, true);
                    }

                    // Mark the model as no longer needed to remove it from memory.
                    model.MarkAsNoLongerNeeded();

but most of the Items I try to spawn do not appear. I am looking for electric sparks but nothing I put in from objects do not appear. I don't even have control of moving the spawned object.
Any help?

Duplicate of #332.


bug (build): Unable to build binaries on Mac OS X Sierra

I'm unable to build the latest binaries on OS X Sierra. I have tried building from master (e5359b) as well as the latest stable release (v0.26.3). Both have the same result.

Right make all builds for all platforms, and I think the linux build needs some libusb headers to work IIRC.
You should probably just do go build.


ConstLabels equivalent

This aims to provide similar functionality to the ConstLabels in the Go client by allowing one or more labels to be bound at metric initialisation time.

Thanks for the PR. This doesn't make sense for the Python client, as unlike the Go client we require that only one of a metric exist and don't try to patch that up under the covers in the Registry.

No problem. It was more for the "simple" behaviour of ConstLabels to avoid constructs like this:
https://gist.github.com/flaminscotsman/8b6ab867462b830a344b99f782330bef

That construct is actually strongly discouraged, you want to use a target label on the Prometheus end of things. An individual target doesn't know about things like "production" and Prometheus already has the instance label.


ruff patch for one-time linter/formatter catchup

Following the ruff format and ruff check contributor proposal in #50, this would be the one time big patch to cleanse the repo state, from which point a pre-commit hook or a server-side CI check can be introduced to enforce future deviations.
If accepted, we should allow a few more ongoing PRs to merge to main first, then come back to this branch to rebase and do another catch up format/check.

this PR is easy to re-generate after a rebase, waiting for main dust to settle first then will re-approach

Closing this preview PR for now, this big diff should be re-done following agreement in #58
@filipstrand maybe you ought to be the first user of the ruff configs, own this big change, and keep the git line ownership to you. It would be less confusing on line-level contributor stats =)

@anthonywu Yes, I can be the one who ultimately applies the formatting updates :) I may make some small tweaks to the ruff setup also, but from my initial testing the ones in #58 looks very reasonable.


Better directory switching

Currently, switching to a different directory takes a few seconds, and I believe it reloads the entire window. It'd be better in my opinion if we had a tree-like structure on the left panel and could simply click .. to go to the parent directory.
The current system therefore stays the same, only the addition of the .. link to go to parent directory, and the option to double click a child directory to navigate to it and make it working repository.
Edit: Feature is nonexistant in Atom

@bpasero @Tyriar related to the multi-root workspace discussion.

An extension could do this if switching the root folder becomes more light weight.

@farid-fari did you have a better experience using multi-root workspaces and multiple folders?

@bpasero Not really, it does make it faster to open a folder whether it be a subfolder or not, but I don't think it solves the issue of navigating to and from subfolders any easier.
To open a parent dir, you still have to go through a prompt where you navigate to it and click 'open', and the same for a child directory (unless you ctrl+R to them but that requires previous opening anyways)...


press enter in table cell will create new row。

1，clone prosemirror-tables
2，run demo
See the gif for details

It doesn't, for me. Which browser are you using?

Oh, hold on, I did manage to reproduce. Attached patch should address this.


in Skippy Branch Tool does not move when a skip forward is done while paused

@funnymanpatrick @UuqV @Sam-son
The tool will sometimes re-position itself but the conditions are not consistent or immediately obvious.

Solved. Now pauses after a step forward.


Only call mysql_server_end() on last deinit

This PR addresses the race condition that resulted from mysql_server_end() being called when there were other database connections available in other threads.
@davidungar and my solution involved using a semaphore and a counter to prevent deinit database if there are other databases in flight.
I am not sure, however if you want to add Dispatch as a dependency to your library, so I understand if you can't accept the PR.

Awesome work on this! We have a Lock class in vapor/core that might be able to do this without bringing Dispatch in:
https://github.com/vapor/core/blob/master/Sources/Core/Lock.swift
If it can, I'd rather rely on Core since that is already a dependency. Either way, this fix will definitely be included in the next update.

Great! Sounds good. We can close this since it uses Dispatch. But glad the update will surface on the next release.


HTTP 417 occurs when using R scripts

Description :
The R script creates a variant from a base study. It creates a new cluster for each area in the variant. Then, for each cluster, a TS matrix is added. It is this last operation that raises an HTTP 417 exception.
This behavior is random and therefore difficult to reproduce.
How to reproduce :
I couldn't reproduce it on my local server, but you can use the API to do the 3 operations described above and wait till the Exception occurs.
Stack Trace :
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3361,
  in _wrap_pool_connect return fn()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 327,
  in connect return _ConnectionFairy._checkout(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 894,
  in _checkout fairy = _ConnectionRecord.checkout(pool)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 493,
  in checkout rec = pool._do_get()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 146,
  in _do_get self._dec_overflow()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70,
  in __exit__ compat.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 143,
  in _do_get return self._create_connection()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 273,
  in _create_connection return _ConnectionRecord(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 388,
  in __init__ self.__connect()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 691,
  in __connect pool.logger.debug("Error on connect(): %s", e)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70,
  in __exit__ compat.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 686,
  in __connect self.dbapi_connection = connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 574,
  in connect return dialect.connect(*cargs, **cparams)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 598,
  in connect return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 122,
  in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  psycopg2.OperationalError: connection to server at "antares-prod-pg-db.rte-france.com" (<IP_ADDRESS>), port 65444 failed: FATAL: les emplacements de connexions restants sont réservés pour les connexions superutilisateur non relatif à la réplication

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/antarest/study/storage/variantstudy/variant_study_service.py", line 181,
  in _check_commands_validity self.command_factory.to_icommand(command)
File "/antarest/study/storage/variantstudy/command_factory.py", line 219,
  in to_icommand return [self._to_single_icommand(command_dto.action, args)]
File "/antarest/study/storage/variantstudy/command_factory.py", line 180,
  in _to_single_icommand return ReplaceMatrix(
File "/antarest/study/storage/variantstudy/model/command/replace_matrix.py", line 43,
  in __init__ super().__init__(
File "pydantic/main.py", line 339,
  in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1056,
  in pydantic.main.validate_model
File "pydantic/fields.py", line 857,
  in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1067,
  in pydantic.fields.ModelField._validate_singleton
File "pydantic/fields.py", line 871,
  in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1121,
  in pydantic.fields.ModelField._apply_validators
File "pydantic/class_validators.py", line 315,
  in pydantic.class_validators._generic_validator_basic.lambda13
File "/antarest/study/storage/variantstudy/business/utils.py", line 18,
  in validate_matrix matrix_id = MATRIX_PROTOCOL_PREFIX + values[
File "/antarest/matrixstore/service.py", line 158,
  in create if not self.repo.get(matrix_hash):
File "/antarest/matrixstore/repository.py", line 98,
  in get matrix: Matrix = db.session.query(Matrix).get(id)
File "<string>", line 2,
  in get
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 468,
  in warned return fn(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 947,
  in get return self._get_impl(ident, loading.load_on_pk_identity)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 951,
  in _get_impl return self.session._get_impl(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2972,
  in _get_impl return db_load_fn(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 530,
  in load_on_pk_identity session.execute(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1713,
  in execute conn = self._connection_for_bind(bind)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1552,
  in _connection_for_bind return self._transaction._connection_for_bind(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 747,
  in _connection_for_bind conn = bind.connect()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3315,
  in connect return self._connection_cls(self, close_with_result=close_with_result)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 96,
  in __init__ else engine.raw_connection()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3394,
  in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3364,
  in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 2198,
  in _handle_dbapi_exception_noconnection util.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3361,
  in _wrap_pool_connect return fn()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 327,
  in connect return _ConnectionFairy._checkout(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 894,
  in _checkout fairy = _ConnectionRecord.checkout(pool)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 493,
  in checkout rec = pool._do_get()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 146,
  in _do_get self._dec_overflow()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70,
  in __exit__ compat.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 143,
  in _do_get return self._create_connection()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 273,
  in _create_connection return _ConnectionRecord(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 388,
  in __init__ self.__connect()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 691,
  in __connect pool.logger.debug("Error on connect(): %s", e)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70,
  in __exit__ compat.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 686,
  in __connect self.dbapi_connection = connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 574,
  in connect return dialect.connect(*cargs, **cparams)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 598,
  in connect return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 122,
  in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "antares-prod-pg-db.rte-france.com" (<IP_ADDRESS>), port 65444 failed: FATAL: les emplacements de connexions restants sont réservés pour les connexions superutilisateur non relatif à la réplication (Background on this error at: https://sqlalche.me/e/14/e3q8) During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 71,
  in __call__ await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 656,
  in __call__ await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 259,
  in handle await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 61,
  in app response = await func(request)
File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 226,
  in app raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 161,
  in run_endpoint_function return await run_in_threadpool(dependant.call, **values)
File "/usr/local/lib/python3.8/site-packages/starlette/concurrency.py", line 39,
  in run_in_threadpool return await anyio.to_thread.run_sync(func, *args)
File "/usr/local/lib/python3.8/site-packages/anyio/to_thread.py", line 31,
  in run_sync return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 937,
  in run_sync_in_worker_thread return await future
File "/usr/local/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 867,
  in run result = context.run(func, *args)
File "/antarest/study/web/variant_blueprint.py", line 193,
  in append_commands return study_service.apply_commands(sanitized_uuid, commands, params)
File "/antarest/study/service.py", line 1566,
  in apply_commands return self.storage_service.variant_study_service.append_commands(
File "/antarest/study/storage/variantstudy/variant_study_service.py", line 238,
  in append_commands command_objs = self._check_commands_validity(study_id, commands)
File "/antarest/study/storage/variantstudy/variant_study_service.py", line 187,
  in _check_commands_validity raise CommandNotValid( antarest.core.exceptions.CommandNotValid: Command at index 0 for study c9cde749-96d5-4676-b99c-52a2d12eebbb

Le message d'erreur suivant est plutôt inquiétant :
File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 122,
  in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  psycopg2.OperationalError: connection to server at "antares-prod-pg-db.rte-france.com" (<IP_ADDRESS>), port 65444 failed: FATAL: les emplacements de connexions restants sont réservés pour les connexions superutilisateur non relatif à la réplication

Autre cas d'erreur : timeout de connexion à la base de données :
The above exception was the direct cause of the following exception: Traceback (most recent call last):
File "/antarest/study/storage/variantstudy/variant_study_service.py", line 180,
  in _check_commands_validity self.command_factory.to_icommand(command)
File "/antarest/study/storage/variantstudy/command_factory.py", line 219,
  in to_icommand return [self._to_single_icommand(command_dto.action, args)]
File "/antarest/study/storage/variantstudy/command_factory.py", line 180,
  in _to_single_icommand return ReplaceMatrix(
File "/antarest/study/storage/variantstudy/model/command/replace_matrix.py", line 43,
  in __init__ super().__init__(
File "pydantic/main.py", line 339,
  in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1056,
  in pydantic.main.validate_model
File "pydantic/fields.py", line 857,
  in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1067,
  in pydantic.fields.ModelField._validate_singleton
File "pydantic/fields.py", line 871,
  in pydantic.fields.ModelField.validate
File "pydantic/fields.py", line 1121,
  in pydantic.fields.ModelField._apply_validators
File "pydantic/class_validators.py", line 315,
  in pydantic.class_validators._generic_validator_basic.lambda13
File "/antarest/study/storage/variantstudy/business/utils.py", line 18,
  in validate_matrix matrix_id = MATRIX_PROTOCOL_PREFIX + values[
File "/antarest/matrixstore/service.py", line 158,
  in create if not self.repo.get(matrix_hash):
File "/antarest/matrixstore/repository.py", line 98,
  in get matrix: Matrix = db.session.query(Matrix).get(id)
File "<string>", line 2,
  in get
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 468,
  in warned return fn(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 947,
  in get return self._get_impl(ident, loading.load_on_pk_identity)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 951,
  in _get_impl return self.session._get_impl(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 2972,
  in _get_impl return db_load_fn(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/loading.py", line 530,
  in load_on_pk_identity session.execute(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1713,
  in execute conn = self._connection_for_bind(bind)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1552,
  in _connection_for_bind return self._transaction._connection_for_bind(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 747,
  in _connection_for_bind conn = bind.connect()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3315,
  in connect return self._connection_cls(self, close_with_result=close_with_result)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 96,
  in __init__ else engine.raw_connection()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3394,
  in raw_connection return self._wrap_pool_connect(self.pool.connect, _connection)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3364,
  in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 2198,
  in _handle_dbapi_exception_noconnection util.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 3361,
  in _wrap_pool_connect return fn()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 327,
  in connect return _ConnectionFairy._checkout(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 894,
  in _checkout fairy = _ConnectionRecord.checkout(pool)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 493,
  in checkout rec = pool._do_get()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 146,
  in _do_get self._dec_overflow()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70,
  in __exit__ compat.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/impl.py", line 143,
  in _do_get return self._create_connection()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 273,
  in _create_connection return _ConnectionRecord(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 388,
  in __init__ self.__connect()
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 691,
  in __connect pool.logger.debug("Error on connect(): %s", e)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 70,
  in __exit__ compat.raise_(
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 211,
  in raise_ raise exception
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/pool/base.py", line 686,
  in __connect self.dbapi_connection = connection = pool._invoke_creator(self)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 574,
  in connect return dialect.connect(*cargs, **cparams)
File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 598,
  in connect return self.dbapi.connect(*cargs, **cparams)
File "/usr/local/lib/python3.8/site-packages/psycopg2/__init__.py", line 122,
  in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "antares-opf-pg.applispfref.sipfref.local" (<IP_ADDRESS>), port 65443 failed: timeout expired (Background on this error at: https://sqlalche.me/e/14/e3q8)

During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/starlette/exceptions.py", line 71,
  in __call__ await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 656,
  in __call__ await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 259,
  in handle await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/site-packages/starlette/routing.py", line 61,
  in app response = await func(request)
File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 226,
  in app raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.8/site-packages/fastapi/routing.py", line 159,
  in run_endpoint_function return await dependant.call(**values)
File "/antarest/study/web/variant_blueprint.py", line 188,
  in append_commands return study_service.apply_commands(sanitized_uuid, commands, params)
File "/antarest/study/service.py", line 1659,
  in apply_commands return self.storage_service.variant_study_service.append_commands(
File "/antarest/study/storage/variantstudy/variant_study_service.py", line 237,
  in append_commands command_objs = self._check_commands_validity(study_id, commands)
File "/antarest/study/storage/variantstudy/variant_study_service.py", line 186,
  in _check_commands_validity raise CommandNotValid(
antarest.core.exceptions.CommandNotValid: Command at index 0 for study 2fafff49-8c6f-4efd-8e9c-1000b6506f8a

The use of a connections pool at SqlAlchemy level allows to solve most of the issues. We will open another ticket for the other problems, in particular the problem of long queries already identified.

The use of a connections pool at SqlAlchemy level allows to solve most of the issues. We will open another ticket for the other problems, in particular the problem of long queries already identified.


tedge reconnect should support aws

Is your feature improvement request related to a problem? Please describe.

Since AWS support has been added to the main branch, it should be supported in the tedge reconnect <mapper> command.
Currently when trying to use tedge reconnect, the following error is raised.
sudo tedge reconnect aws
error: Found argument 'aws' which wasn't expected, or isn't valid in this context

USAGE:
    tedge reconnect <SUBCOMMAND>

For more information try --help

Describe the solution you'd like

The following command should reconnect the aws mapper (similar to tedge reconnect c8y)
sudo tedge reconnect aws

Describe alternatives you've considered

Additional context

@reubenmiller this can probably get closed now?

@reubenmiller this can probably get closed now?

I’ll assign it to @gligorisaev foe verification, though we might need to work out some stuff on how to test aws cloud related stuff, but not a must for this ticket

Tested and confirmed


Adding separate-namespace libraries of different channel types

I wanted the code structure to have submodules containing the channel dynamics from different models. For instance,
using NeuronBuilder, NeuronBuilder.Liu, NeuronBuilder.Prinz

nav1 = Liu.NaV(60.)
nav2 = Prinz.Nav(60.)

where Liu and Prinz are submodules acting as libraries of channels.
This didn't work, so for now I have hackily added different names within the same namespace, i.e.
nav1  = Liu_NaV(60.)
nav2 = Prinz_NaV(60.)

Why didn't it work? I could instantiate the channels fine. But I couldn't pass function methods that dispatch on specific channels to the parent package, NeuronBuilder. For instance, each ion channel has a function method channel dynamics:
channel_dynamics(::NaV, ...)

This is necessarily defined in the submodule (e.g. Liu). However it is called in the parent module (e.g. in build_channel). I don't know how to add methods from the submodules into the parent module.
I think this probably has an easy solution? I'm just not yet that comfortable with how namespaces work with multiple interacting modules in Julia

yeah i couldn't get this to work, and ended up moving the prinz channels and including them directly so it worked

In the Modules branch this is fixed.
The functions that dispatch on specific Liu/Prinz channels, for example channel_dynamics which has various methods, are defined first in the parent module NeuronBuilder as empty functions and then extended in the submodules with using ..NeuronBuilder; import ..channel_dynamics and finally export channel_dynamics.
Calling these functions with the different channel structures in the parent module only requires the Liu/Prinz channels to be subtypes of the IonChannel type because the actual building of the channels is independent (meaning it's the same) of the chosen module.
The only time the user has to deal with the modules is when instantiating the channels by calling nav = Liu.NaV(60.)


Merge 6 -> 7

➡ Forward port
Port ign-gui6 to main
Branch comparison: https://github.com/ignitionrobotics/ign-gui/compare/main...ign-gui6
Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

needed by https://github.com/ignitionrobotics/ign-gazebo/pull/1183

some github actions test failures, but otherwise clean; I will merge now


@next URLs in multi-category search results are broken

At the moment I've written code in TroveProxy to fix these broken URLs, and it seems to me that the Trove API actually could incorporate this same fix, so I'd like to be able to move this fix "upstream" to Trove, so that other people who aren't using TroveProxy don't experience these broken links.
The XML response includes <records> elements with next attributes whose values are URLs which include a single category parameter whose value is a list of category names, separated by a (URL-encoded) comma. If I replace that category parameter with one whose value is taken from the code attribute of the parent (i.e. <category>) element of the <records> element, then the resulting URL does work.
e.g. take the following query URL:
https://api.trove.nla.gov.au/v3/result?category=book&category=newspaper&q=water dragon&s=*&n=1&bulkHarvest=true
The result looks like this:
<response>
  <query>water dragon</query>
  <category code="book" name="Books & Libraries">
    <records s="*" n="1" total="3700" next="https://api.trove.nla.gov.au/v3/result?category=book%2Cnewspaper&q=water+dragon&n=1&bulkHarvest=true&s=AoEqc3UxMDAwMTE4Ng%3D%3D" nextStart="AoEqc3UxMDAwMTE4Ng==">
      <!-- omitted for brevity -->
    </records>
  </category>
  <category code="newspaper" name="Newspapers & Gazettes">
    <records s="*" n="1" total="98345" next="https://api.trove.nla.gov.au/v3/result?category=book%2Cnewspaper&q=water+dragon&n=1&bulkHarvest=true&s=AoEpMTAwMDI0NDE5" nextStart="AoEpMTAwMDI0NDE5">
      <!-- omitted for brevity -->
    </records>
  </category>
</response>

Those "next" URLs are broken, but if I change them like so, they do appear to work correctly:
<response>
  <query>water dragon</query>
  <category code="book" name="Books & Libraries">
    <records s="*" n="1" total="3700" next="https://api.trove.nla.gov.au/v3/result?category=book&q=water+dragon&n=1&bulkHarvest=true&s=AoEqc3UxMDAwMTE4Ng%3D%3D" nextStart="AoEqc3UxMDAwMTE4Ng==">
      <!-- omitted for brevity -->
    </records>
  </category>
  <category code="newspaper" name="Newspapers & Gazettes">
    <records s="*" n="1" total="98345" next="https://api.trove.nla.gov.au/v3/result?category=newspaper&q=water+dragon&n=1&bulkHarvest=true&s=AoEpMTAwMDI0NDE5" nextStart="AoEpMTAwMDI0NDE5">
      <!-- omitted for brevity -->
    </records>
  </category>
</response>

The code I'm using to fix these broken URLs is here:
https://github.com/Conal-Tuohy/TroveProxy/blob/0778f71bd4bf7146023e0972d3c08b7d4c2d16cc/src/xslt/fix-trove-response.xsl#L4
https://github.com/Conal-Tuohy/TroveProxy/blob/0778f71bd4bf7146023e0972d3c08b7d4c2d16cc/src/xslt/fix-trove-response.xsl#L13-L23

Followed up on this with Trove Support this morning


Nonce is not used in Amber AS

https://github.com/confidential-containers/kbs/blob/main/src/api/src/attestation/amber/mod.rs#L51
The nonce parameter is a crytical parameter in KBS RCAR protocol. See https://github.com/confidential-containers/kbs/blob/main/docs/kbs_attestation_protocol.md#challenge
It helps to avoid reply attack from the attestation-agent side.
Currently Amber attestation service does not check the nonce field, thus having some secure problems.
cc @Lu-Biao

I'm looking into this.


Keyboard switching

I run all this commands in console, but i can switch keyboard language yet.
In i3 I use setxkbmap like this  setxkbmap -model logitechdinovoedge -layout us,ru -option grp:alt_shift_toggle
What I doing wrong? Which is difference with setxkbmap and  XKB.Please  help me. I have been registered in Github for this.

You have to set the xbk definitions before starting sway. The following settings work for me.
export XKB_DEFAULT_LAYOUT=de,us
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
sway

Thank you.

@VasilPupkin Sorry that this is off-topic, but are Rennaissance waifus a thing?

Sorry, I dont check my git acc yet. I dont understand what mean "Rennaissance", because  im from Russia and I learn english now in school. I just choose arch-tan picture for wallpaper. If you want to know my favorite anime girl is Azusa from K-ON, lol.

@cafehaine thanks for redirecting me here but it doesn't seem to help with my problem.
I cannot understand how to change the keyboard layout from inside a running sway (I usually change keyboard layouts to write in different languages to different people. Killing and restarting sway is not exactly the solution I was hoping for). If it isn't supported I'll open a feature request

export XKB_DEFAULT_LAYOUT=de,us
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
sway
then press alt and shift to switch layouts
There is now way to do it programmatically

My brain started working again, it's indeed a solution and I don't really need to do it programmatically. Thank you very much

Hi to all,
this option for switching layouts is not applicable to my use case. I use the following two layouts:
setxkbmap cz-prog,cz-moje -variant ,ucw -option grp:caps_switch
setxkbmap us,cz-moje -variant ,ucw -option grp:caps_switch
between which I toggle with a small bash script. I can't use Alt+Shift to toggle between them, because it uses capslock as a switch between the variants. The question is if there is any way to switch between these two without the need of restarting sway?

No, that's not presently possible.

Should I fill feature request?

No. It should be possible when wlroots is complete.


docs: A few cosmetic improvements in GKE guide

This change is

Coverage decreased (-0.03%) to 45.627% when pulling cb98c8240b615fcf71ae4c2d0716349c0e026935 on pr/errordeveloper/tweak-gke-guide into a0f6503a1603d0dcab9f01d085bd724f4e086a13 on master.

test-docs-please

00:01:42.908  Please fix the following documentation warnings:
00:01:42.908  /srv/Documentation/gettingstarted/k8s-install-gke.rst:58: WARNING: 'any' reference target not found: gcloud config get-value core/account
00:01:42.908  /srv/Documentation/gettingstarted/k8s-install-gke.rst:58: WARNING: 'any' reference target not found: GKE RBAC documentation
00:01:42.908  /srv/Documentation/gettingstarted/k8s-install-gke.rst:65: WARNING: 'any' reference target not found: GKE RBAC documentation

test-docs-please

test-docs-please

test-docs-please


More Santec functions should be available in the python interface.

See SLMFuncDLL_Programmer’s_Guide(v2.0).pdf

[x] More robust/complete error checking and display (ReadEDO, Table 3.4-1 SLM_STATUS).

[x] Esp. for wavelength setting, issue #11 .

[x] Useful info:

[x] IDs (ReadSDO)
[x] Temperature (ReadT)

[ ] Saving patterns to on-board memory (WriteMC, WriteMI, WriteMT, WriteMR, WriteMP, WriteMZ, WriteMW), trigger (WriteTI, WriteTM, WriteTC, WriteTS)

[x] Partially implemented, but untested.

The trigger and memory features are mostly implemented, but are untested and undocumented.

Closing until there's interest in these features.


Compilation problem: stuck on linking static library

Cloned the latest version. The same problem last time around as well.
Stuck on modules\libmodules.windows.tools.64.a
Earlier I thought that it's a big file so might be taking time but I see similar issues (#5182 & 5276) and that makes me think it might be a bug. Using cmder in Windows as terminal with Mingw. Installed everything using scoop.

I have a same issue with the latest master so I can confirm.

This has happened to me, I installed everything with scoop aswell.
it stops at progress_finish(["progress_finish"], [])
Specs: Ryzen 7 3700x, RX5700, 32GB DDR4.
Multi-thread compilation.

The same here.
[Initial build] Linking Static Library ==> modules\libmodules.windows.tools.64.a
b"C:/Users/xxxx/scoop/apps/gcc/current/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ar.exe: unable to rename 'modules\libmodules.windows.tools.64.a'; reason: File exists\r\n"
scons: *** [modules\libmodules.windows.tools.64.a] Error 1
scons: building terminated because of errors.

any update

I thought I was the only one who had that happen.
I have tried to compile the master version using multithreading, but it always gets stuck in the final part:
[Initial build] progress_finish(["progress_finish"], [])
[Initial build] ←[91mLinking Static Library ←[95m==> ←[93mmodules\freetype\libfr
eetype_builtin.windows.tools.64.a←[0m
[Initial build] ←[91mRanlib Library         ←[95m==> ←[93mmodules\freetype\libfr
eetype_builtin.windows.tools.64.a←[0m
[Initial build] ←[91mLinking Static Library ←[95m==> ←[93mcore\libcore.windows.t
ools.64.a←[0m
←[91mRanlib Library         ←[95m==> ←[93mcore\libcore.windows.tools.64.a←[0m
[Initial build] =====

I have tried switching branches and reverting to and older version (march 2019), using single thread compilation, but kept getting the same issue. I did succeed when switching from MinGW to Visual Studio. So I'd say it is more likely to be an issue with the latest version of MinGW (or one of the build tools used in it).
I'd suspect using an older version of MinGW might help, but have not had the chance to try that.

Some ideas:

Try to build with -j1 to rule out parallel build issues (which were a problem in #12516)
Try to install make if it's the same problem as #12516, though I'm not sure why it's needed
Check if installing Pywin32 fixes it. It used to be listed as a requirement for parallel builds, I'm not sure why it was removed: http://docs.godotengine.org/en/latest/development/compiling/compiling_for_windows.html#requirements

Check if installing Pywin32 fixes it. It used to be listed as a requirement for parallel builds, I'm not sure why it was removed: http://docs.godotengine.org/en/3.0/development/compiling/compiling_for_windows.html#requirements

I removed the Pywin32 requirement in the documentation, since I noticed Godot was able to build successfully when using multiple threads without Pywin32. This may be due to our buildsystem using subprocesses to bypass Windows-specific issues.
However, we can't remove the warning message as it's printed by SCons itself.

@akien-mga Unfortunately it doesn't work... The build is stuck in either case.

I have tried switching branches and reverting to and older version (march 2019), using single thread compilation, but kept getting the same issue. I did succeed when switching from MinGW to Visual Studio. So I'd say it is more likely to be an issue with the latest version of MinGW (or one of the build tools used in it).
I'd suspect using an older version of MinGW might help, but have not had the chance to try that.

I´m going to try it.

@akien-mga Unfortunately it doesn't work... The build is stuck in either case.

With MinGW and Visual Studio?

I mean with or without Akien's advice ^^ This issue is about MinGW

I just performed a clean build of master without issue (aside from linking taking forever but that's normal).
These components were not installed via scoop. I did install make via scoop for multithreaded use_lto issue per #12156, but the executable doesn't work with LTO.
Win10/64
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
Python 3.7.3
pywin32
scons: v3.0.5.a56bb

scons.py platform=windows use_mingw=yes target=release_debug -j12

In my case it didn't appear completely stuck. I left it at the linking stage for 3 hours. During which time libmodules slowly grew to be over 300 mb.

I might not be giving it enough time with my sixth gen i5 mobile processor.

In my case it didn't appear completely stuck. I left it at the linking stage for 3 hours. During which time libmodules slowly grew to be over 300 mb.

I waited for a long time and finally it succeeded. The libmodules.windows.tools.64.a only grows a few kb per second. XD.

I installed MinGW on Windows 10 via MSYS2, and I can reproduce the issue. As noticed by @clayjohn, linking does work but it simply takes a decade. I'm not sure what changed in Godot or in the toolchains as it used to build fine in the past. Might be worth trying other linkers if available for Windows.

I did install make via scoop for the multithreaded use_lto issue per #12156, but the executable doesn't work with LTO.

Check that you have mingw-binutils >= 2.33, otherwise you would be affected by #24641.


Why does cipm need a separate tool?

Why does cipm need to be a separate tool?
Couldn't it be a command line flag for the existing npm tool?

It's going to be integrated into npm as npm ci. The point of developing it separately is to have external tools that we can experiment with and investigate new ideas with. It was a very successful experiment when we tried it with npx, and so we're taking to doing that. It's also helped because it's forced us to refactor and extract and rewrite some other parts of npm itself into external libraries, which will then make it easier to do other such experiments.
npm is a very old codebase by Node standards: in fact, one of the oldest Node projects in existence, and as such, is a bit harder to work with than a green field project would otherwise be. This is just another way for us to continue modernizing npm itself.
Does that answer your question?

Yes, thanks for the detailed answer!
Sometimes the division of npm is scary because it's such a fundamental part of the Node ecosystem.
Every major version of npm I wonder what will break.
I cross my fingers when running npm install...so far so good.
And now we have yarn as an alternative so its hard to choose.
I was reading about the whole package-lock.json fiasco where the lock file wasn't really locking dependencies which is how I found a reference to cipm.
I look forward to trying it out, and hopefully never worrying about a bad install again 👍