Self-referenced cascade delete

Hello!
Is there also a support on self-referenced cascading delete?
@DataClassName("Category")
class Categories extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get name => text()();
  IntColumn get parentId => integer().nullable().references(Categories, #id)();
  DateTimeColumn get dateCreated =>
      dateTime().withDefault(currentDateAndTime)();
}

I already browsed tru the documentation and overriden methods as follows:
@override
MigrationStrategy get migration => MigrationStrategy(
  beforeOpen: (details) async {
    await customStatement('PRAGMA foreign_keys = ON');
  },
);

@override
StreamQueryUpdateRules get streamUpdateRules => StreamQueryUpdateRules([
  WritePropagation(
    on: TableUpdateQuery.onTable(categories, limitUpdateKind: UpdateKind.delete),
    result: [
      TableUpdate.onTable(categories, kind: UpdateKind.delete),
    ],
  ),
]);

Is there a way of writing simple code like this where we only pass the Companion class?
Any insights of yours will be highly appreciated. Thanks!
delete(categories).delete(category);

I only took a short look, but I've added a test in 56f048b42f42caf3e15db68a95da822fa77b060e and at least the generator appears to support self-references. What's going wrong with the first snippet you posted?

Is there a way of writing simple code like this where we only pass the Companion class?

So that you avoid the categories table reference? You could have a generic insert<D> method taking an Insertable<D> and looping over allTables in the database, picking the first one where table is TableInfo<dynamic, D>.

Hi!
Actually I'm just using a simple kind of delete implementation on my code that goes like this
Sample DB Rows:

Category(id:1, name:'MainCategory', parentId:null)
Category(id:2 name:'SubCategory', parentId:1)

Code implementation:
@override
Future<int> omit(CategoriesCompanion category) async {
  // TODO: implement cascade delete
  return await delete(categories).delete(category);
}

Delete the Category with the id of 1
Provider.of<MyDatabase>.categoriesDao.omit(CategoriesCompanion(id: Value(1)))

Throws an error:
Exception has occurred.
SqliteException (SqliteException(787): FOREIGN KEY constraint failed, constraint failed (code 787)
  Causing statement: DELETE FROM categories WHERE id = ?;)

I really don't know what I'm missing here.
Wishing u could provide a simple snippet. Thank you very much

Hi the snippet you provided doesn't work as intended still throwing the same error :(
I somehow managed to write a simple code solving this quick and dirty way.
@override
Future<int> omit(CategoriesCompanion category) async {
  // Standard cascade delete don't work
  // as intended on self referenced tables

  // Get, loop & delete all foreign-keyed first
  final _categories = await (select(categories)
        ..where((_cat) => _cat.parentId.equals(category.id.value)))
      .get();
  if (_categories.isNotEmpty) {
    for (var _category in _categories) {
      await delete(categories).delete(_category);
    }
  }

  // Delete parent
  return await delete(categories).delete(category);
}

Migrating from yii2 activerecord to drift still scratches my head.
Still thanks for this wonderful package really loving this! :)

When you change anything in your database's schema (which includes column definitions), you need to write a migration to apply those changes to the database. Otherwise, your existing users will continue to use the old version of your database that doesn't have the onDelete: KeyAction.cascade clause.
During development, the easiest approach may be to just clear your app's data when you make changes to a database or to follow this approach to add an in-app screen to clear it.
For reference, this works for me:
import 'package:drift/drift.dart';
import 'package:drift/native.dart';

part 'repro.g.dart';

@DataClassName('Category')
class Categories extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get name => text()();
  IntColumn get parentId => integer()
      .nullable()
      .references(Categories, #id, onDelete: KeyAction.cascade)();
  DateTimeColumn get dateCreated =>
      dateTime().withDefault(currentDateAndTime)();
}

@DriftDatabase(tables: [Categories])
class _Db extends _$_Db {
  _Db(QueryExecutor e) : super(e);

  @override
  int get schemaVersion => 1;
}

void main() async {
  final db = _Db(NativeDatabase.memory());
  await db.customStatement('PRAGMA foreign_keys = ON');

  await db
      .into(db.categories)
      .insert(CategoriesCompanion.insert(name: 'First name'));
  await db.into(db.categories).insert(CategoriesCompanion.insert(
      name: 'Second name', parentId: const Value(1)));
  await db.categories.deleteWhere((tbl) => tbl.id.equals(1));

  print(await db.select(db.categories).get());
}


[webapi][Crosswalk 14] Update text baseline data for Crosswalk-14

Impacted TCs num(approved): New 0, Update 15, Delete 0
Unit test Platform: Crosswalk Project for Android 14.43.342
Unit test result summary: Pass 15, Fail 0, Blocked 0
BUG=https://crosswalk-project.org/jira/browse/XWALK-4136

LGTM


Operation with multiple response are sharing the same model

I am using springfox 3.0.0 with OpenApi 3.0
I want to have for a given endpoint different model for the same response type.
Here is my example:
public class MyRestController {

    @GetMapping(produces = TEXT_PLAIN_VALUE)
    public String get() {
        return "some text";
    }

    @GetMapping(produces = APPLICATION_JSON_VALUE)
    public JsonResponse getJson() {
        return new JsonResponse();
    }

    @GetMapping(produces = HAL_JSON_VALUE)
    public EntityModel<JsonResponse> getHal() {
        return EntityModel.of(new JsonResponse(),
            linkTo(MyRestController.class).slash("somelink").withSelfRel()
        );
    }
}

The generated swagger take the randomly one response type:

I push a repo that show the problem here : https://github.com/roll57/swagger-demo
I have the feeling that the class CombinedRequestHandler is the cause of the behaviour.
Thank you.

@roll57 thank you for reporting and creating a reproducible repo its super useful to solve the problem when that happens!


[Playground] Add Security Out-of-box PoCs to Playground CD Pipeline

@Flyingliuhub @BionIT  The team wants to add security OOB PoCs to Playground CD Pipeline to make it available for test/demo. Would you please help with this?
Cc: @aoguan1990 @seraphjiang

could we create new instance for dev purpose
https://security-oob.dev.playground.opensearch.org/

@cliu123 I submit the PR with configuration refactor enabled. Do you think we should merge the code into one security plugin, which can be deployed to the same playground env? Please let me know if you have any questions on that and we can work together on the migration.

@cliu123 setup domain already, please let us know if still need help from us, otherwise we will close this issue. Thanks

Thanks @Flyingliuhub ! Closing the issue.


Karpenter never creates nodes, no errors in logs

For some unknown reason Karpenter never creates new nodes, no matter how big I scale my deployments. There are no errors in logs, only looping nodeclaim creation and destruction:
{"level":"INFO","time":"2023-11-26T11:09:15.704Z","logger":"controller.provisioner","message":"found provisionable pod(s)","commit":"1072d3b","pods":"sdfadsa/sdfadsa-deployment-758b677c6c-qrsrc, sdfadsa/sdfadsa-deployment-758b677c6c-pmcq8, sdfadsa/sdfadsa-deployment-758b677c6c-4cqjh, werws/werws-deployment-85d75b75cd-rzq2m, werws/werws-deployment-85d75b75cd-z698s and 5 other(s)","duration":"26.498365ms"}
{"level":"INFO","time":"2023-11-26T11:09:15.704Z","logger":"controller.provisioner","message":"computed new nodeclaim(s) to fit pod(s)","commit":"1072d3b","nodeclaims":1,"pods":10}
{"level":"INFO","time":"2023-11-26T11:09:15.735Z","logger":"controller.provisioner","message":"created nodeclaim","commit":"1072d3b","nodepool":"default","nodeclaim":"default-pmmb4","requests":{"cpu":"4350m","memory":"11626Mi","pods":"14"},"instance-types":"c5.2xlarge, c5.4xlarge, c5.9xlarge, c5a.2xlarge, c5a.4xlarge and 95 other(s)"}
{"level":"DEBUG","time":"2023-11-26T11:09:15.960Z","logger":"controller.nodeclaim.lifecycle","message":"created launch template","commit":"1072d3b","nodeclaim":"default-pmmb4","nodepool":"default","launch-template-name":"karpenter.k8s.aws/11179330346297813","id":"lt-0e5a6196ade459879"}
{"level":"DEBUG","time":"2023-11-26T11:09:16.147Z","logger":"controller.nodeclaim.lifecycle","message":"created launch template","commit":"1072d3b","nodeclaim":"default-pmmb4","nodepool":"default","launch-template-name":"karpenter.k8s.aws/14482476379175885742","id":"lt-013bf64ad50be125a"}
{"level":"DEBUG","time":"2023-11-26T11:09:16.342Z","logger":"controller.nodeclaim.lifecycle","message":"created launch template","commit":"1072d3b","nodeclaim":"default-pmmb4","nodepool":"default","launch-template-name":"karpenter.k8s.aws/5115586301854157719","id":"lt-0644ea33e46147e3c"}
{"level":"DEBUG","time":"2023-11-26T11:09:16.509Z","logger":"controller.nodeclaim.lifecycle","message":"created launch template","commit":"1072d3b","nodeclaim":"default-pmmb4","nodepool":"default","launch-template-name":"karpenter.k8s.aws/12462910484757937866","id":"lt-0822fc21eedcc9f84"}
{"level":"INFO","time":"2023-11-26T11:09:18.940Z","logger":"controller.nodeclaim.lifecycle","message":"launched nodeclaim","commit":"1072d3b","nodeclaim":"default-pmmb4","nodepool":"default","provider-id":"aws:///eu-north-1c/a-1233315555","instance-type":"t4g.2xlarge","zone":"eu-north-1c","capacity-type":"on-demand","allocatable":{"cpu":"7910m","ephemeral-storage":"17Gi","memory":"29258Mi","pods":"58"}}
{"level":"DEBUG","time":"2023-11-26T11:09:24.888Z","logger":"controller.disruption","message":"discovered subnets","commit":"1072d3b","subnets":["subnet-3209af4299cda (eu-north-1a)","subnet-9823989898abb (eu-north-1c)","subnet-9872344accaa223 (eu-north-1b)"]}
{"level":"DEBUG","time":"2023-11-26T11:10:25.044Z","logger":"controller.disruption","message":"discovered subnets","commit":"1072d3b","subnets":["subnet-3209af4299cda (eu-north-1a)","subnet-9823989898abb (eu-north-1c)","subnet-9872344accaa223 (eu-north-1b)"]}
{"level":"DEBUG","time":"2023-11-26T11:11:08.262Z","logger":"controller.nodeclaim.garbagecollection","message":"garbage collecting nodeclaim with no cloudprovider representation","commit":"1072d3b","nodeclaim":"default-pmmb4","provider-id":"aws:///eu-north-1c/a-1233315555","nodepool":"default"}
{"level":"INFO","time":"2023-11-26T11:11:08.620Z","logger":"controller.nodeclaim.termination","message":"deleted nodeclaim","commit":"1072d3b","nodeclaim":"default-pmmb4","nodepool":"default","node":"","provider-id":"aws:///eu-north-1c/a-1233315555"}

I agree. I think we can close this, though, as a duplicate of https://github.com/aws/karpenter/issues/5145. I'd ideally like to see us do both: Handle a better log message from Karpenter's side and also update our docs to be more clear.


feature/null_safety

Bumps Dart SDK version as well as package version, making this package publishable to Dart Pub as a null safe package.
Dart migrate suggests no changes to the code.
Tests pass.
Signed CLA.

Thanks -- we closed this out in https://github.com/QuiverDart/quiver_hashcode/pull/12 just now, and v3.0.0 is published. I've also updated the readme to note that this package is end-of-life, as are all the other packages under QuiverDart. All our development is on the main Quiver package instead.


Silent setup /ADDLOCAL values (#52)

Silent setup /ADDLOCAL values

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

File
Status
Preview URL
Details

biztalk/install-and-config-guides/appendix-a-silent-installation.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Create a schema in Flask framework for RESTful API calls

As a Developer
I need starter code for RESTful APIs (CRUD and List)
So that I can add actions for each route
Details and Assumptions
We will be using Python with Flask
We need the RESTful API templates for holding each CRUD calls
Acceptance Criteria
Given the project is created in GitHub
When I issue a `git clone` on the project
Then I should get a Flask application with RESTful API starter code
When I run `python server.py` and go to `localhost:5000/something`
Then I should see a template as it renders a template in GET HTTP method

Per feedback, not needed as a user story


Disable lock file with environment variable

Just some comment to: https://github.com/mruby/mruby/pull/4656
As long as we do too much things in build_config.rb loading phase(rel: https://github.com/mruby/mruby/issues/4657 ) MRuby::Lockfile.disable isn't a good choice since it may cause many timing issue.
Those should be done with environment variable.

If the use of gem lock file can be disabled, I have no strong opinion on the way for now. However, I don't understand well the difference between writing MRuby::Lockfile.disable at the beginning of build_config.rb and using environment variables.
"timing issue" is shown an example, but I feel like it is better that start build processes after all configurations are constructed.
For example, currently git clone, etc. are performed as descriptions of gem github: ..., etc., so disable_lock must be described before them. It is difficult to understand because  enable_test, etc. can be described after gem ....

Configuration MUST NOT have a timing issue. That's all to me. If there is a timing issue in the current build system, that's all a mistake.
It should be disabled totally or you need to manage it. And enable_test can be applied per MRuby::Build but lock file is applied per build_config.rb . As long as there is timing issue that's totally a useless configuration to me.


Rebuild for latest airflow

More relaxed constraints on sqlalchemy in airflow 2.1.3 should
allow us to relax the upper bound on snowflake-sqlalchemy.

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender


Rancher loadbalancer not accessible remotely after changing docker bridge from docker0 to docker1

Rancher Version:
1.1.2
Docker Version:
1.10.3
OS and where are the hosts located? (cloud, bare metal, etc):
RHEL7 VM
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Rancher with external Mysql, one master 3 agents. Setup is running for several weeks fine on custom docker bridge named docker0
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:
Setup rancher with docker running on bridge interface docker0 and network <IP_ADDRESS>/24:
1)
brctl addbr docker0
ip addr add <IP_ADDRESS>/24 dev docker0
ip link set dev docker0 up

/usr/bin/docker daemon --selinux-enabled -H tcp://<IP_ADDRESS>:4243 -H unix:///var/run/docker.sock -G dockerroot --bridge=docker0 --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/VG02-docker--pool --storage-opt dm.use_deferred_removal=true

start rancher-agent, deploy some container with loadbalancers

so far so good. Now change custom bridge interface to docker1 (needed because docker configures it's default 172.17.x.x additionally on docker0 for some reason).

remove all running/stopped rancher agents. Stop docker as well.

optionally reboot server to get rid of all iptables entries and get a clean state

add custom bridge, this time docker1
brctl addbr docker1
ip addr add <IP_ADDRESS>/24 dev docker1
ip link set dev docker1 up

start docker
/usr/bin/docker daemon --selinux-enabled -H tcp://<IP_ADDRESS>:4243 -H unix:///var/run/docker.sock -G dockerroot --bridge=docker1 --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/VG02-docker--pool --storage-opt dm.use_deferred_removal=true

Results:
1)
docker logs on rancher-agent shows:
[apply.sh:5] OUTPUT=content-home/etc/cattle/subnet-bridge-gateway
[apply.sh:125] gateway
[apply.sh:44] subnet_bridge_gateway
[apply.sh:9] '[' '!' -e content-home/etc/cattle/subnet-bridge-gateway ']'
[apply.sh:44] read SUBNET BRIDGE GATEWAY
[apply.sh:32] cat content-home/etc/cattle/subnet-bridge-gateway
[apply.sh:45] '[' -z <IP_ADDRESS> ']'
[apply.sh:49] RUN_ARPTABLES=true
[apply.sh:51] ip addr show dev docker0
[apply.sh:51] grep -q <IP_ADDRESS>
Device "docker0" does not exist.
[apply.sh:52] ip addr add <IP_ADDRESS>/16 dev docker0
Cannot find device "docker0"
Rancher agent keeps complaining about missing docker0.

curl does not work remotely:
run curl against loadbalancer locally on vm works
run curl against loadbalancer remotely does not work

Expected:
rancher should honor docker running on custom network bridge
rancher loadbalancer should be available from both local and remote.

Additional info: Purging rancher agent host and re-registering doesn't help as well.

Thanks to solving https://github.com/rancher/rancher/issues/5115 I dont need this alternate bridge workaround any more. I'd like to add my latest findings though:
It seems that docker0 is hardcoded into source as freshly setup system doesnt work as well. Whilst iptables seem to be configured correctly, it is just the route that is missing as you can see in apply.sh above. Instead of routing packets to 10.42.x.x to the docker bridge they get routed to the default gateway which gets surprised by those packages and drops them.


Change chess engine api and integrate with the chess application

Chess Engine API
The contract of the chess engine service (alias ChessPort) has been updated according to the new design. In addition:

a getState functionality has been added to retrieve the state of the game on demand
each functionality now returns a Future, making all functionalities asynchronous, as it should be in a distributed system The implementation of such contract has been updated and moved to io.github.chess.model.ChessGame.

The ChessBoard now acts as a simple container for the chess pieces, exposing functionalities for updating its internal data structure.
In addition:

a ChessBoardBuilder has been added to preconfigure the creation of a chess board
a ChessBoardBuilder.DSL has been designed to speed up the creation of a chess board and making it easier to understand (see io.github.chess.model.{ChessBoardBuilderDSLSpec, ChessBoardBuilderSpec, ChessBoardSpec} as examples on how to use it) A standard configuration of a chess board has been provided with placeholder pieces.

Minor refactoring has been applied to some of the dependencies of the service.
Chess Application
The chess game interface has been renamed to ChessApplication. Now, the chess application does not depend directly on the chess board, but is uses a LocalChessProxy for interacting with the chess engine service. Such proxy is provided together with the main stage of the application in the ChessApplicationContext, which is unique for the entire application and it is provided as a given to any ChessApplicationComponent.
Other components of the application has been updated according to the new chess engine api.
Other
An OptionExtension has been added in the utilities. This extension provides the following functionalities:

a given conversion that maps any object to an option containing that object
a getOrThrow method, which returns the content of an option or throws an exception

A Require object has been added in the utilities. This object provides many methods for throwing exceptions in a more declarative way.
Fix
ScalaFormatter now runs before each build, run or test.
The compiler options of the scala compiler has been changes:

added -feature: this shows feature warnings when a scala feature that requires to be activated explicitly has been used without doing so
added -language:implicitConversions: this allows to use given conversions without throwing feature warnings

:tada: This PR is included in version 0.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Line numbers not showing

Hi! Thanks for the great plugin. I am unable to enable line numbers. I added the following to init.lua, as per the docs:
require("relative-motions"):setup({ show_numbers = "absolute", show_motion = true })
Does it need my nvim settings to include line numbers? Not sure why it does not show.
Also, show_motion just shows 99%, 1 left when a start a motion.
Any pointers appreciated.

Hi, can you add the output of yazi --debug ? Depending of the version of Yazi that you are using you may need to have the 0.3.3 branch of this plugin, or the main branch.
Also the 99%, 1 left is normal when you are in the middle of a motion, the plugin is still running in the background waiting for the end of the motion, that's why it shows that message (it's from Yazi and the original purpose is to check if there's any plugin stuck on the background).

I added require("relative-motions"):setup({show_numbers = "relative",}) to my init.lua and faced the same problem
here is my output of yazi --debug
Yazi
    Version: 0.3.3 (7c445ce 2024-09-04)
    Debug  : false
    OS     : windows-x86_64 (windows)

Ya
    Version: 0.3.3 (7c445ce 2024-09-04)

Emulator
    Emulator.via_env: ("xterm-256color", "WezTerm")
    Emulator.via_csi: Ok(Unknown([]))
    Emulator.detect : WezTerm

Adapter
    Adapter.matches: Iterm2

Desktop
    XDG_SESSION_TYPE           : None
    WAYLAND_DISPLAY            : None
    DISPLAY                    : None
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : None
    EDITOR             : None
    VISUAL             : None
    YAZI_FILE_ONE      : Some("D:\\Sofeware\\Git\\usr\\bin\\file.exe")
    YAZI_CONFIG_HOME   : None

Text Opener
    default: Some(Opener { run: "nvim %*", block: true, orphan: false, desc: "nvim ", for_: None, spread: true })
    block  : Some(Opener { run: "nvim %*", block: true, orphan: false, desc: "nvim ", for_: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : program not found
    ZELLIJ_SESSION_NAME: None
    Zellij version     : program not found

Dependencies
    file             : 5.45
    ueberzugpp       : program not found
    ffmpegthumbnailer: program not found
    magick           : 7.1.1-40
    fzf              : 0.56.3
    fd               : 10.2.0
    rg               : 14.1.1
    chafa            : program not found
    zoxide           : 0.9.6
    7z               : 24.08
    7zz              : program not found
    jq               : 1.6

--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "C:\\Users\\czc\\AppData\\Roaming\\yazi\\state" directory.

same here

Yes, I am using the 0.3.3 branch. But I reinstalled the 0.3.3 branch and it workes now. Anyway, thanks for the great plugins and your help. @dedukun

Hi, I'm having the same problem. How do I check which branch have I installed? I installed it using the "ya pack -a ..." from the 0.3.3 page, but I'm still not getting the relative line numbers

If you are using ya pack, then you are probably in one the the lastest commits of the plugin, and at the moment ya pack doesn't allow specifying a branch, so you can either install the plugin manually, like the following:
# Linux/macOS
git clone --branch 0.3.3 https://github.com/dedukun/relative-motions.yazi.git ~/.config/yazi/plugins/relative-motions.yazi

# Windows
git clone --branch 0.3.3 https://github.com/dedukun/relative-motions.yazi.git %AppData%\yazi\config\plugins\relative-motions.yazi

or alternatively, you can manually force the plugin's commit that ya pack installs , to do so you must go to the package.toml in your Yazi config folder (it should be ~/.config/yazi/package.toml in Linux or %AppData%\yazi\config\package.toml in Windows) and do the following change:
 [plugin]
 deps = [
-  { use = "dedukun/relative-motions", rev = "1d6d686" },
+  { use = "dedukun/relative-motions", rev = "=89d0cb9" },
 ]

then run ya pack -i, this force installs commit 89d0cb9 (which is the commit from branch 0.3.3)

I've also update the install instruction in the 0.3.3 branch README, thanks for bringing the issue up @User3548

I haven't tried it yet, but I am sure it works well!
Thanks for the work on this, and for the quick response @dedukun
M


Add Chinese language to menu

Codecov Report

Merging #523 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #523   +/-   ##
=======================================
  Coverage   98.48%   98.48%
=======================================
  Files         231      231
  Lines        3428     3428
=======================================
  Hits         3376     3376
  Misses         52       52

Impacted Files
Coverage Δ

...bar/_languageChooser/languageChooser.controller.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


[openldap] update to 2.5.17

[x] Changes comply with the maintainer guide.
[x] SHA512s are updated for each updated download.
[x] The "supports" clause reflects platforms that may be fixed by this new version.
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

All features are tested succesffully by x64-osx triplet.


sandbox: remove network before stopping vm

We might need to call hypervisor hotunplug to really remove
a network device. We cannot do it after stopping the VM.
Fixes: #1956
Signed-off-by: Peng Tao<EMAIL_ADDRESS>

/test


Add container simple signing type

Signed-off-by: Asra Ali<EMAIL_ADDRESS>Adds a container type which understands simple signing payloads. This allows upload where the container signed can be indexed in the rekor entry.
Adds search by reference for container types.
LogID: d54a19f9cf7ae9f46ca60224ec1dd0236c3ed0f70f2b6eb20469f1ef836fa735
Index: 23
IntegratedTime: 2022-02-04T01:00:30Z
UUID: d566e10b2ab155ebf92b8478d783c40495f509b296e258f1e8d0b992795ae797
Body: {
  "ContainerObj": {
    "data": {
      "content": {
        "critical": {
          "identity": {
            "docker-reference": "gcr.io/asra-ali/busybox/demo"
          },
          "image": {
            "docker-manifest-digest": "sha256:37e5287945774f27b418ce567cd77f4bbc9ef44a1bcd1a2312369f31f9cce567"
          },
          "type": "cosign container image signature"
        },
        "optional": null
      },
      "hash": {
        "algorithm": "sha256",
        "value": "05b434de7cebc2f8ca6245aaba3789d83a9c62f21f1e99b03b0362bb43f28dae"
      }
    },
    "signature": {
      "content": "MEYCIQDfqRSIaIWks7sGYsli7rmzckd1RbHeHIWbKRr4JW83fQIhAJRVWXA9nYgWl2hQK0i4ViC+hQ3ngAQxevuREDAcDCy2",
      "publicKey": {
        "content": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNJVENDQWFlZ0F3SUJBZ0lVQUs1cm9HMEF4azhPYmI3MnRkSkV0cG90K0ZNd0NnWUlLb1pJemowRUF3TXcKS2pFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNUkV3RHdZRFZRUURFd2h6YVdkemRHOXlaVEFlRncweQpNakF5TURNeE5qRTRNREJhRncweU1qQXlNRE14TmpJM05UbGFNQk14RVRBUEJnTlZCQW9UQ0hOcFozTjBiM0psCk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRUdURkN4RUg0MEUzdnpJbWw5ZTA3ZDJZVktOZW8KMjh4Y1h5Q0Q3c3p4VzVFL211THA0N0U1d1IzU1NhR0pMdTJnb2thOVRiTnVqUDhQN3dIZXpKVzV4Nk9Cd1RDQgp2akFPQmdOVkhROEJBZjhFQkFNQ0I0QXdFd1lEVlIwbEJBd3dDZ1lJS3dZQkJRVUhBd013REFZRFZSMFRBUUgvCkJBSXdBREFkQmdOVkhRNEVGZ1FVaEppclc1eVVHaGlVenpXL3p5aGp5blJRelVzd0h3WURWUjBqQkJnd0ZvQVUKV01BZVg1RkZwV2FwZXN5UW9aTWkwQ3JGeGZvd0d3WURWUjBSQkJRd0VvRVFZWE55WVdGQVoyOXZaMnhsTG1OdgpiVEFzQmdvckJnRUVBWU8vTUFFQkJCNW9kSFJ3Y3pvdkwyZHBkR2gxWWk1amIyMHZiRzluYVc0dmIyRjFkR2d3CkNnWUlLb1pJemowRUF3TURhQUF3WlFJd0FZR3hwVnhRcW03SWhpVXRrR2o1NkFtTExhM0ZiTWJpdlZxQU4rWEMKblc2dDNzVzhTR3dKK2lCdWtndWhtNHFFQWpFQTFlTkxCQjZ5R0ZKdUY3S1ZzRlJ1cTZJemxselJCdjFXT01KSQpzOW5NdVNvYlMxazQrUXFFSVRKTzZjT09LM1J3Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"
      }
    }
  }
}

Summary

Ticket Link

Fixes https://github.com/sigstore/rekor/issues/610
Release Note

* Adds a new container type that supports Simple Signing

This looks great to me overall! Ping me when it's ready for a full review!

comments addressed!

specifically decided not to add URL references for the container data
i take the sha of the bytes passed in, which will be easy for cosign to do, and match the payload of cosign generate
JSON remains in the entry stored (and the hash, to allow verification)
Added search by reference (and both the sha of the signed payload and the containers sha)

Note that when we roll this out, we'll want to do it in a few phases:

add support to the server
make cosign and rekor-cli and any other clients understand the return type
start using this type in writes

right now clients would typically explode if they receive an entry they don't understand, so it probably makes sense to cut a rekor-cli v0.6.0 after this goes in, but before cosign starts using it.

still intending to work on this @asraa ?

closing due to inactivity


REX feedback / suggestions

After quickly playing around with REX (Repository Explorer) UI, a few usability comments / suggestions (most hopefully minor):

[ ] Currently the "search" input takes any input: the help suggests that it can (but not must) be a regular expression.  For repositories with limited support for regular expressions, it must be a regular expression or it will likely result in a FunctionNotSupportedException that is thrown back to the UI (and which currently is not reported anywhere in the UI: only that no results were found).  I think we therefore need to take one of two approaches: 1) actually report back as part of the "no results found" dialogue that a FNS exception was hit (and include its details, which would suggest to a user that a regular expression is needed), or 2) add a tickbox (ticked by default?) that auto-translates any input into the search into a "contains" query (wraps it using the helper method before passing it on to repositories), or 3) use a drop-down that shows all the helpers as options (contains, exact, starts with, ends with) and allow a user to select one of these rather than needing to know how to type the equivalent regular expression (and based on a selection of one of these, again maybe defaulting to "contains", have the UI call the appropriate wrapper method before passing the query on to the underlying repository).
[ ] Currently the help dialogue does not show the \ on the quoting: it gives an example of Qany.characters.you.like!E.* rather than \Qany.characters.you.like!\E.*
[ ] Is the "Repository Server" config necessary via the UI? I was assuming this (or at least a default) could be picked up from a properties or somewhere similar, presumably that's what the asset search is doing (?) Fine to have an override, but would be nice to have one load-up-able by default -- in either case, the override would ideally be a panel that can be hidden to save screen real estate (+ what's there being vertically narrowed: lots of empty space around it at the moment).  (Note that this becomes particularly frustrating as tokens expire and you're forced to login again, you have to continually re-enter this configuration again in the UI).
[ ] Probably more of a question for the overall UI framework, but the multiple scrollbars that are embedded in various parts of the page quickly become a minor nuisance to navigation when everything doesn't fit without needing to scroll

@cmgrote - Thanks for the feedback and the good suggestions. I'm assuming you were using the view-service/presentation-server version of Rex, so please correct me if that is wrong.
The "Repository Server" config step will be replaced by a simpler operation where the view service provides the browser with the names of repository servers that the user can select, and the endpoint information (which is configured at the view service) will resolve the actual endpoint and make the necessary connections. That's how the new (not yet pushed) adminUI works and I intend to roll it out over the Tex and Rex view services. That does not include the 'ui-chassis' implementations (of Rex and Tex) but I will talk to @bogdan about whether/how to make a similar change there.
Your search input points very helpful and I agree that the interface needs some combination of a) better documentation, b) better validation of user input and possibly c) helpers. You mentioned some nice ideas and I will take a good look and investigate.
On your point about the scrollbars, it would be interesting if you could try the view-server/presentation-server version of Tex and see what you think. That component uses a different means of controlling layout and scrolling and I think it should be a lot simpler. I inane to retrofit that into Rex as well, but have not done that yet.
I will take a look at he escaping issue in the help dialogue - sounds like I needed double escapes!
Thanks again for the helpful feedback.

I think all of the above suggestions are now included in Rex, apart from the search wrapper - instead of which I have currently taken the documentation route by adding to the user help text.


ExchangeContext is really big

ExchangeContext is 120 bytes on 64-bit, 88 bytes on 32-bit.  We have 8 of them in a pool, so this is ~1KB of RAM.
@andy31415 did a a clang AST dump for this class on 64-bit, which looks like this:

Click to expand dump
         0 | class chip::Messaging::ExchangeContext
         0 |   class chip::ReferenceCounted<class chip::Messaging::ExchangeContext, class chip::Messaging::ExchangeContextDeletor, 0> (base)
         0 |     chip::ReferenceCounted::count_type mRefCount
         4 |   chip::Messaging::ExchangeContext::Timeout mResponseTimeout
         8 |   class chip::Messaging::ReliableMessageContext mReliableMessageContext
         8 |     class chip::BitFlags<enum chip::Messaging::ReliableMessageContext::Flags, unsigned short> mFlags
         8 |       unsigned short mValue
        16 |     class chip::Messaging::ReliableMessageMgr * mManager
        24 |     class chip::Messaging::ExchangeContext * mExchange
        32 |     class chip::Messaging::ReliableMessageDelegate * mDelegate
        40 |     struct chip::Messaging::ReliableMessageProtocolConfig mConfig
        40 |       uint32_t mInitialRetransTimeoutTick
        44 |       uint32_t mActiveRetransTimeoutTick
        48 |       uint16_t mAckPiggybackTimeoutTick
        50 |       uint8_t mMaxRetrans
        52 |     uint16_t mNextAckTimeTick
        56 |     uint32_t mPendingPeerAckId
        64 |   class chip::Messaging::ExchangeDelegate * mDelegate
        72 |   class chip::Messaging::ExchangeManager * mExchangeMgr
        80 |   class chip::Messaging::ExchangeACL * mExchangeACL
        88 |   class chip::SecureSessionHandle mSecureSession
        88 |     chip::NodeId mPeerNodeId
        96 |     uint16_t mPeerKeyId
        98 |     Transport::AdminId mAdmin
       100 |     _Bool mPeerGroupMsgIdNotSynchronized
       104 |   uint16_t mExchangeId
       106 |   uint8_t [8] mChallenge
       114 |   class chip::BitFlags<enum chip::Messaging::ExchangeContext::ExFlagValues, unsigned short> mFlags
       114 |     unsigned short mValue
           | [sizeof=120, dsize=116, align=8,
           |  nvsize=116, nvalign=8]

Looks like:

4 bytes refcount
4 bytes mResponseTimeout
52 bytes ReliableMessageContext (36 bytes on 32-bit)
4 bytes padding (64-bit only)
24 bytes pointers to delegate, exchange mgr, exchange acl (12 bytes on 32-bit)
16 bytes SecureSessionHandle
2 bytes exchange id
8 bytes challenge
2 bytes mFlags
4 bytes padding to get to 8-byte alignment (even on 32-bit!)

Things to look into:

[ ] Why the 8-byte alignment requirement on 32-bit?
[ ] Can we come up with a more compact representation for SecureSessionHandle?  Is the handle we have here one of the ones from the pool?  If so, could we store an index, not the whole handle?
[ ] Is this really the right place to store mExchangeACL?  We don't have one of those per-exchange; we have a per-node singleton, really.
[ ] Do we need to store the challenge in here?  Looks like #4711 is already tracking this?
[ ] We could probably reduce the ExchangeManager pointer to a single-byte offset into the exchange context pool.  That could then pack with mFlags (which we can make 1-byte; we only have two flags) to save 4-8 bytes of memory, depending on where we get with the alignment thing.  It would be a little ugly, but doable.
[ ] ReliableMessageContext can be much smaller.  Filed https://github.com/project-chip/connectedhomeip/issues/5875

@yufengwangca

Closed with #5942


Add dataset details

@simran-arora, can you please take a look at this PR and let me know if this is what you had in mind and if there are other things to add?


Move even more from certification to internal

This starts to move some of the "public" things in certification intor internal, as some of these never really needed to be part of the public API, but were only made so because of how internal is handled.

Moves certification/engine
Moves certification/formatters
Moves certification/pyxis
Moves certification/runtime
Moves certification/policy

Signed-off-by: Brad P. Crochet<EMAIL_ADDRESS>

How does a user leverage our formatters to take results from library calls and write them wherever they want?

If you want to keep formatters out of the exported surface, you'll need to update the LIBRARY doc https://github.com/redhat-openshift-ecosystem/openshift-preflight/blob/lib/docs/LIBRARY.md.

From what I can tell, library callers cannot write logic around runtime.Results now because the type is defined in the internal package.

How does a user leverage our formatters to take results from library calls and write them wherever they want?

Assume you mean a user of the library. As it stands, the formatters, to me, are a preflight implementation detail. If someone requests that we expose the formatters, then we cross that bridge.

From what I can tell, library callers cannot write logic around runtime.Results now because the type is defined in the internal package.

They would still get a struct back. They just could not create a runtime.Results directly.

They also cannot create functions with runtime.Results as a parameter.

They also cannot create functions with runtime.Results as a parameter.

That one I don't have an answer for. Is that necessary?

Sure. Having a struct of data that I want to manipulate becomes a lot harder when the struct's type isn't exported.

Ok. Since it's in the signature of *Check.Run, I can see exposing that.

Now in #840


Am I doing something wrong?

Describe your problem here.
Why isn't this working
function onCreate()
noteTweenX('defaultOpponentStrumX0', '0', -365, 0.1, 'linear')
noteTweenX('defaultOpponentStrumX1', '1', -365, 0.1, 'linear')
noteTweenX('defaultOpponentStrumX2', '2', -365, 0.1, 'linear')
noteTweenX('defaultOpponentStrumX3', '3', -365, 0.1, 'linear')
noteTweenX('defaultPlayerStrumX4', '4', 635, 0.1, 'linear')
noteTweenX('defaultPlayerStrumX5', '5', 635, 0.1, 'linear')
noteTweenX('defaultPlayerStrumX6', '6', 635, 0.1, 'linear')
noteTweenX('defaultPlayerStrumX7', '7', 635, 0.1, 'linear')

end
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Second value should be an int
Also use setProperty instead

is this how you use setProperty for moving notes?
setProperty('defaultPlayerStrumX0', -365)

No
setPropertyFromGroup('strumLineNotes', StrumID, 'x', Xvalue)


Suggestion: Add admonitions for buggy/deprecated features

Add admonitions at the top of pages to clearly highlight buggy/deprecated features.
For example, the page about Dials could show at the top:
:::warning

This feature contains bugs and should be replaced with [Turnables](PATH TO PAGE) whenever possible.

:::

is the dial in such a bad state? 😄
I support this idea, @vprpic if you find this kind of info, add it on top.


[5.1][IDE] Fix ModelASTWalker passing syntax nodes before the corresponding AST nodes have been visited

This was causing the tokens comprising image literals to be output separately, rather than as a single object literal.
Resolves rdar://problem/55045797
Cherry-pick of https://github.com/apple/swift/pull/27329

@swift-ci please test


ZB changed base API url

Don't know what's the reason but they specify api.zb.today as their base API url now. api.zb.cn(current URL) throw TLS certificate error.

Cool, I see the updated documentation for new URL (https://www.zb.com/en/api). Thanks for the PR, merging now!


Re-implement the "scroll fix"

When new replies arrive, they will shift the scroll of the page. This is disorienting and annoying.
In the ng1 chatty, I implemented a (hacky) fix that adjusted the page scroll as necessary to prevent any shifting. Something similar will have to be implemented in the ng2 version. It should be easier than it was in ng1 though. Use an attribute directive.

Attempted a quick easy fix on this, but might be harder than it was in ng1.


Correct way to add custom methods

Hi there, I am trying to add a method that changes the data to my model.
Scenario:
I have a set of branches and want to be able to activate a branch. Only one branch at a time should be active.
So I created a branch model:
import { Model } from '@vuex-orm/core';

export default class Branch extends Model {
  static entity = 'branch'

  static fields () {
    return {
      ...super.fields(),
      id: this.number(0),
      active: this.boolean(false),
    };
  }
}

and added a method to it:
activate () {
    const otherBranches = Branch.query().where(b => b.id !== this.id).get();

    otherBranches.forEach((b) => {
      Branch.update({
        data: {
          id: b.id,
          active: false,
        },
      });
    });

    this.active = true;

    Branch.update({
      data: {
        id: this.id,
        active: true,
      },
    });

    return this;
  }

Now using this with branch.activate() on my app throws a vuex error: [vuex] do not mutate vuex store state outside mutation handlers.. I tried to remove this.active = true and only use the update function but that doesn't work either. Any ideas?

Nevermind, it works if I use a static method
static activate(id) {
    const otherBranches = this.query().where(b => b.id !== id).get();

    otherBranches.forEach((b) => {
      this.update({
        data: {
          id: b.id,
          active: false,
        },
      });
    });

    this.update({
      data: {
        id,
        active: true,
      },
    });

    if (typeof this.onActivate === 'function') {
      this.onActivate(this);
    }

    return this;
  }


Issue #55 make it compatible with bower dependencies without any .js …

…or .css main file

Thanks!


WIP: Add missing ddosx patch endpoints

After speaking with @jbirchevans, we migrated this work to someone else's fork so they could finish it, so I'm closing this as we no longer need this


fix: Fix missing thumbnail method

Add thumbnail method to documentation reference.
Related to #362

Nice one thanks @silvalexandre - I don't even remember writing that thumbnail method, but someone must've :)


Rising and High Korean tones are not supported

You forgot to include the Rising and High Korean tones?〮 and 〯.
I however, have solved this little problem of yours.

I'm aware that archaic Hangul tone marks are currently unsupported for the time being. Nevertheless, feel free to create a pull request that implements them and I'll merge the improvements into this project.

I'm new to Github, so I'm new to pull requests, but I've done what I can here by learning the tutorial.

Thanks for the pull request - this is admittedly my first time reviewing a pull request too. I've left some comments, feel free to review them and address the issues mentioned.


Check for F1394 - (This fault occurs when a port is down and is in use for fabric)

Hello,
Suggested enhancement.
Had a Customer that ran the Pre-Upgrade and it didn't flag any of the F1394 Faults that they apparently had.
Now, for some reason F1394 is a minor Severity. Not sure I agree with this in this case the Customer didn't give it the attention that it deserved and subsequently resulted in a postponement of the upgrade Maintenance Window when it was found.
F1394: fltEthpmIfPortDownFabric
Severity: minor
Explanation: This fault occurs when a port is down and is in use for fabric

Please upvote (:thumbsup:) for prioritization.
Hi, we haven't decided whether this should be included in the pre-upgrade validations for everyone.
But here is a summary of the fault and its condition to give it a further thought.
New Validation Request:
Validation Type (Fault or Config):
Fault Code: F1394
Fault Description: Port is down, reason:notconnect(connected), used by:Fabric
F1394 is raised when a fabric link (a link between ACI spine and leaf, or tier-1 leaf and tier-2 leaf) that used to be up is down.
Description/Motivation:
In one of the worst cases, the fault may indicate we have an unintended non-full mesh topology where a leaf has connectivity to only one spine even when there are multiple spines because links towards other spines are down for some reason. If an upgrade is performed for the spine with the connectivity, the leaf will lose the reachability to the entire fabric, which causes an outage for all endpoints on that leaf.
But the fault may be raised when the link down is expected, for instance, the node is removed for good.

The obvious situation I think this would avoid would be a leaf with uplinks to 2 spines, if link(s) to one spine are down the leaf could be come isolated during spine upgrades.


chore(main): release 1.1.1

:robot: I have created a release beep boop
1.1.1 (2023-09-18)
Bug Fixes

doc gif, goreleaser brew (#18) (63b7857)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aidanaden/canvas-sync/releases/tag/v1.1.1 :sunflower:


GetUserTimeline Stopped on 5/24

I have some legacy code that stopped pulling new tweets older than 5/24. I'm using tweetinvi 1.0. do I need to upgrade? What's the issue?
Thanks,
Carey

Hello,
I am not sure what is the problem but I am no longer supporting 1.0.
There are too many changes happening with the Twitter API that I cannot support versions that are that old.
I would suggest that you upgrade to the latest. This will involve a lot of changes but Twitter will again make breaking changes in August 2018. Tweetinvi 4.0 and 5.0 will support these breaking changes so you will have to upgrade in the future.
Cheers,
Linvi

Actually, the problem was different than  I thought. The Tweet about Id was
coming through as text on some items. I'll upgrade, but any Idea what that
is?
On Jun 7, 2018 11:37 AM, "linvi"<EMAIL_ADDRESS>wrote:

Hello,
I am not sure what is the problem but I am no longer supporting 1.0.
There are too many changes happening with the Twitter API that I cannot
support versions that are that old.
I would suggest that you upgrade to the latest. This will involve a lot of
changes but Twitter will again make breaking changes in August 2018.
Tweetinvi 4.0 and 5.0 will support these breaking changes so you will have
to upgrade in the future.
Cheers,
Linvi
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/linvi/tweetinvi/issues/716#issuecomment-395466372,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE8unIDHxoQgGLxN2PoTelZ_t6A0yXpkks5t6UivgaJpZM4UX5nh
.

Could you be more precise. Could you share the json that you are receiving?


Convert system commands in logfile from python list to single string

Description of feature
Converting the python list format into a single string will increase readability and allow for advanced users to run that cmd in isolation if need be with a simple copy/paste.
Example Commands:
module purge && ml nextflow
nextflow run $HOME/mashwrapper/main.nf -profile testUse,singularity --custom_config_base $HOME/mashwrapper/conf
grep -B 1 "'mash'" results/resultsByIsolate/subERR125190_run.log

Current Log Output:
06/14/2022 04:15:20 PM - This is the command...
 ['mash', 'dist', 'myMashDatabase.msh', '-r', 'myCatFile', '-p', '2', '-S', '42']
--
06/14/2022 04:15:24 PM - This is the command...
 ['mash', 'dist', '-r', '-m', '2', 'myMashDatabase.msh', 'myCatFile', '-p', '2', '-S', '123456']

Proposed Log Output:
06/14/2022 04:15:20 PM - This is the command...
% mash dist myMashDatabase.msh -r myCatFile -p 2 -S 42
--
06/14/2022 04:15:24 PM - This is the command...
% mash dist -r -m 2 myMashDatabase.msh myCatFile -p 2 -S 123456

Changed the output from list to just printed commands.
See https://github.com/jennahamlin/mashwrapper/commit/0deadcb62c82a744a722d5b2feb9535197236e34


Remove -h flag from completion and daemon reference

All docker subcommands support -h as an alias for --help unless they have -h aliased to something else like docker run, which uses -h for --hostname.
-h is not included in the help messages of the commands, though.
The only place where it is visible is the docker daemon reference, see output of grep -Rs -e --help=false .
For consistency reasons, this PR removes -h as an alias for --help from the reference page and the bash completion.

LGTM

@tiborvass found another occrurrance, will update soon.

@tiborvass pushed update.

Should we actually remove the -h shorthand, if it's referenced nowhere? If we do, we should add it to the deprecation list

LGTM but we should add to change log in release cause people might complain

LGTM

Cherry picked into #15809


Add CLAW runtime dependency on Fortran compiler

Adds external packages for compilers used on daint & tsa
Patches CLAW to use direct path to Fortran compiler instead of spack wrapper

can we run the test on cosmo

launch jenkins cosmo%pgi +claw

launch jenkins cosmo%pgi +claw


squash.spec.in: More specific requires

Require the exact same version and release of the main package for all
sub packages.
zpaq plugin should require zpaq-libs not zpaq-devel.

Thanks!


Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with the
documentation (for small docs fixes please send a PR instead).
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go
here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script
provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue
happens on a mobile device:
TensorFlow installed from (source or binary):
TensorFlow version (use command below):
Python version:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

I'm getting this error while building tensorflow for windows,
(base) c:\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
c:\tensorflow/.bazelrc
Starting local Bazel server and connecting to it...
WARNING: Option 'experimental_shortened_obj_file_path' is deprecated
INFO: Invocation ID: 27545a6e-c366-4264-9cb3-eea8d0762600
ERROR: C:/tensorflow/tensorflow/tools/pip_package/BUILD:149:1: no such package '@icu//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz, https://github.com/unicode-org/icu/archive/release-62-1.tar.gz] to C:/users/dsavaliya/_bazel_dsavaliya/xv6zejqw/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761 and referenced by '//tensorflow/tools/pip_package:licenses'
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@icu//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz, https://github.com/unicode-org/icu/archive/release-62-1.tar.gz] to C:/users/dsavaliya/_bazel_dsavaliya/xv6zejqw/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761
INFO: Elapsed time: 22.941s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (316 packages loaded, 11908 targets configured)
Fetching @icu; fetching 14s
Configure did go as expected see below.
(base) c:>python tensorflow\configure.py
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
nul
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: d6710a42-59b5-4bbb-9174-8bc67a08a8c7
You have bazel 0.21.0 installed.
Please specify the location of python. [Default is C:\ProgramData\Anaconda3\python.exe]:
Found possible Python library paths:
\Users\dsavaliya\Repos\Pytools
C:\ProgramData\Anaconda3\lib\site-packages
Please input the desired Python library path to use.  Default is [\Users\dsavaliya\Repos\Pytools]
Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]:
No CUDA support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]:
Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]:
Eigen strong inline overridden.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl            # Build with MKL support.
--config=monolithic     # Config for mostly static monolithic build.
--config=gdr            # Build with GDR support.
--config=verbs          # Build with libverbs support.
--config=ngraph         # Build with Intel nGraph support.
--config=dynamic_kernels        # (Experimental) Build kernels into separate shared objects.
Preconfigured Bazel build configs to DISABLE default on features:
--config=noaws          # Disable AWS S3 filesystem support.
--config=nogcp          # Disable GCP support.
--config=nohdfs         # Disable HDFS support.
--config=noignite       # Disable Apacha Ignite support.
--config=nokafka        # Disable Apache Kafka support.
--config=nonccl         # Disable NVIDIA NCCL support.

I am a bit confused about why this is closed.
I see a very similar problem when I do a yocto build.
| Analyzing: target //tensorflow/tools/pip_package:build_pip_package (339 packages loaded, 15635 targets configured)
| ERROR: /workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/git/tensorflow/tools/pip_package/BUILD:149:1: no such package '@icu//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz, https://github.com/unicode-org/icu/archive/release-62-1.tar.gz] to /workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/bazel/output_base/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761 and referenced by '//tensorflow/tools/pip_package:licenses'
| ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted: no such package '@icu//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz, https://github.com/unicode-org/icu/archive/release-62-1.tar.gz] to /workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/bazel/output_base/external/icu/release-62-1.tar.gz: Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761
| INFO: Elapsed time: 22.622s
| INFO: 0 processes.
| FAILED: Build did NOT complete successfully (339 packages loaded, 15635 targets configured)
| FAILED: Build did NOT complete successfully (339 packages loaded, 15635 targets configured)
| WARNING: /workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/temp/run.do_compile.142027:157 exit 1 from '/workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/bazel/bazel build -c opt --subcommands --explain=/workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/temp/explain.log --verbose_explanations --verbose_failures --verbose_failures //tensorflow/tools/pip_package:build_pip_package'
| WARNING: Backtrace (BB generated script):
|       #1: do_compile, /workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/temp/run.do_compile.142027, line 157
|       #2: main, /workdir/build/container-x86-64-tensorflow-master/tmp/work/x86_64-linux/tensorflow-native/1.13.0-r0/temp/run.do_compile.142027, line 166
|
| Backtrace (metadata-relative locations):
|       #1: do_compile, /workdir/sources/poky-master/../meta-tensorflow-master/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb, line 15
ERROR: Task (/workdir/sources/poky-master/../meta-tensorflow-master/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 965 tasks of which 964 didn't need to be rerun and 1 failed.
NOTE: The errors for this build are stored in /workdir/build/container-x86-64-tensorflow-master/tmp/log/error-report/error_report_20201026090200.txt
You can send the errors to a reports server by running:
  send-error-report /workdir/build/container-x86-64-tensorflow-master/tmp/log/error-report/error_report_20201026090200.txt [-s server]
NOTE: The contents of these logs will be posted in public if you use the above command with the default server. Please ensure you remove any identifying or proprietary information when prompted before sending.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds

Summary: 1 task failed:
  /workdir/sources/poky-master/../meta-tensorflow-master/recipes-framework/tensorflow/tensorflow-native_1.13.0.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
pokyuser@f3b909198114:/workdir/build/container-x86-64-tensorflow-master/conf$

We do have multiple issues here:

https://mirror.bazel.build/github.com/unicode-org/icu/archive/release-62-1.tar.gz <-- disappeared
Checksum was 86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181 but wanted e15ffd84606323cbad5515bf9ecdf8061cc3bf80fb883b9e6aa162e485aa9761 <-- checksum changed

wget https://github.com/unicode-org/icu/archive/release-62-1.tar.gz
sha256sum release-62-1.tar.gz
86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181  release-62-1.tar.gz
So I thought I could fix it like this:
ef repo():
    third_party_http_archive(
        name = "icu",
        strip_prefix = "icu-release-62-1",
        sha256 = "86b85fbf1b251d7a658de86ce5a0c8f34151027cc60b01e1b76f167379acf181",
        urls = [
            "https://github.com/unicode-org/icu/archive/release-62-1.tar.gz",
        ],
        build_file = "//third_party/icu:BUILD.bazel",
        system_build_file = "//third_party/icu:BUILD.system",
        patch_file = clean_dep("//third_party/icu:udata.patch"),
    )

But I guess I need more changes somewhere else as well.
Please help!


pylsp-mypy v0.5.4 crashes the entire pylsp diagnostics

Description
I am getting an error in v0.5.4 of "pylsp-mypy". Due to this error, it seems that no diagnostic messages are sent for pylsp as a whole.
This does not seem to be a problem with v0.5.2.
Repro
Create a venv dedicated to pylsp and install pylsp-mypy in it.
mkdir -p /tmp/pylsp
cd /tmp/pylsp
python3 -m venv venv
source venv/bin/activate
pip install python-lsp-server[all] pylsp-mypy

pip list:
(venv) pylsp$ pip list
Package            Version
------------------ -------
astroid            2.9.0
autopep8           1.6.0
flake8             4.0.1
isort              5.10.1
jedi               0.18.1
lazy-object-proxy  1.6.0
mccabe             0.6.1
mypy               0.910
mypy-extensions    0.4.3
parso              0.8.3
pip                21.2.4
platformdirs       2.4.0
pluggy             1.0.0
pycodestyle        2.8.0
pydocstyle         6.1.1
pyflakes           2.4.0
pylint             2.12.2
pylsp-mypy         0.5.4
python-lsp-jsonrpc 1.0.0
python-lsp-server  1.3.3
rope               0.22.0
setuptools         58.1.0
snowballstemmer    2.2.0
toml               0.10.2
typing_extensions  4.0.1
ujson              4.3.0
wrapt              1.13.3
yapf               0.31.0

Open the python file in an appropriate directory. I use vim.
mkdir -p /tmp/pylsp-mypy-check
cd pylsp-mypy-check
vim check.py

Error
The pylsp log shows that pylsp-mypy is causing the error. This error causes pylsp itself to not return any diagnostics messages such as flake8 to the LSP client.
It looks like it's trying to detect mypy, but it can't and is giving an error.
2021-12-14 14:42:26,565 JST - INFO - pylsp_mypy.plugin - lint settings = {} document.path = /private/tmp/pylsp-mypy-check/check.py is_saved = True
2021-12-14 14:42:26,565 JST - INFO - pylsp_mypy.plugin - executing mypy args = ['--show-column-numbers', '/private/tmp/pylsp-mypy-check/check.py', '--incremental', '--follow-imports', 'silent']
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1371, in run
    self.function(*self.args, **self.kwargs)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp/_utils.py", line 33, in run
    return func(*args, **kwargs)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp/python_lsp.py", line 299, in lint
    flatten(self._hook('pylsp_lint', doc_uri, is_saved=is_saved))
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp/python_lsp.py", line 156, in _hook
    return hook_handlers(config=self.config, workspace=workspace, document=doc, **kwargs)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 327, in traced_hookexec
    return outcome.get_result()
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_result.py", line 33, in from_call
    result = func()
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 324, in <lambda>
    lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp_mypy/plugin.py", line 193, in pylsp_lint
    completed_process = subprocess.run(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mypy'

Misc
As a side note, if you install pylsp or pylsp-mypy in the venv of the project you are trying to edit, and then run that pylsp, you will not have the problem.
I'm sure there are a lot of people who have installed pylsp outside of the project folder, and in that case, I'm sure they are experiencing the same problem.

For now revert to stable version.I will investigate asap.I have a likely cause in mind. (We had a change to better support venvs, this might have broken something.)Will probably take two to three evenings to fix.If I cannot reproduce I'll contact you again, otherwise assume that I'm working on it.Am 14.12.2021 07:03 schrieb yaegassy @.***>:
Description
I am getting an error in v0.5.4 of "pylsp-mypy". Due to this error, it seems that no diagnostic messages are sent for pylsp as a whole.
This does not seem to be a problem with v0.5.2.
Repro
Create a venv dedicated to pylsp and install pylsp-mypy in it.
mkdir -p /tmp/pylsp
cd /tmp/pylsp
python3 -m venv venv
source venv/bin/activate
pip install python-lsp-server[all] pylsp-mypy
pip list:
(venv) pylsp$ pip list
Package            Version

astroid            2.9.0
autopep8           1.6.0
flake8             4.0.1
isort              5.10.1
jedi               0.18.1
lazy-object-proxy  1.6.0
mccabe             0.6.1
mypy               0.910
mypy-extensions    0.4.3
parso              0.8.3
pip                21.2.4
platformdirs       2.4.0
pluggy             1.0.0
pycodestyle        2.8.0
pydocstyle         6.1.1
pyflakes           2.4.0
pylint             2.12.2
pylsp-mypy         0.5.4
python-lsp-jsonrpc 1.0.0
python-lsp-server  1.3.3
rope               0.22.0
setuptools         58.1.0
snowballstemmer    2.2.0
toml               0.10.2
typing_extensions  4.0.1
ujson              4.3.0
wrapt              1.13.3
yapf               0.31.0
Open the python file in an appropriate directory. I use vim.
mkdir -p /tmp/pylsp-mypy-check
cd pylsp-mypy-check
vim check.py
Error
The pylsp log shows that pylsp-mypy is causing the error. This error causes pylsp itself to not return any diagnostics messages such as flake8 to the LSP client.
It looks like it's trying to detect mypy, but it can't and is giving an error.
2021-12-14 14:42:26,565 JST - INFO - pylsp_mypy.plugin - lint settings = {} document.path = /private/tmp/pylsp-mypy-check/check.py is_saved = True
2021-12-14 14:42:26,565 JST - INFO - pylsp_mypy.plugin - executing mypy args = ['--show-column-numbers', '/private/tmp/pylsp-mypy-check/check.py', '--incremental', '--follow-imports', 'silent']
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1371, in run
self.function(*self.args, **self.kwargs)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp/_utils.py", line 33, in run
return func(*args, **kwargs)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp/python_lsp.py", line 299, in lint
flatten(self._hook('pylsp_lint', doc_uri, is_saved=is_saved))
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp/python_lsp.py", line 156, in _hook
return hook_handlers(config=self.config, workspace=workspace, document=doc, **kwargs)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in call
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 327, in traced_hookexec
return outcome.get_result()
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_result.py", line 33, in from_call
result = func()
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_manager.py", line 324, in
lambda: oldcall(hook_name, hook_impls, kwargs, firstresult)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/private/tmp/pylsp/venv/lib/python3.10/site-packages/pylsp_mypy/plugin.py", line 193, in pylsp_lint
completed_process = subprocess.run(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 966, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mypy'
Misc
As a side note, if you install pylsp or pylsp-mypy in the venv of the project you are trying to edit, and then run that pylsp, you will not have the problem.
I'm sure there are a lot of people who have installed pylsp outside of the project folder, and in that case, I'm sure they are experiencing the same problem.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

I am not able to reproduce this with my editor of choice (spyder with python 3.9.9 though as my OS has not yet updated) and don't really know how to work with vim.
Can you tell me if "mypy check.py" works after activating the venv?
Also "which mypy" would be interesting.
What OS are you on?
The steps to reproduce you posted above are not entirely accurate, are you sure this is what you did?
Also, if you could point me at an easy way to configure vim to use pylsp output, I will test that as well.

I use a Vim plugin called "coc.nvim". I developed a plugin called coc-pylsp for coc.nvim by myself and use coc-pylsp.
This problem of the whole pylsp diagnostics crashing occurs when mypy is not installed in the project.

Created a PR. https://github.com/Richardk2n/pylsp-mypy/pull/28

Ok, I am very sorry, I had misunderstood, which venv is active, because I have little experience using venvs.
If I understood you right, pylsp-mypy gets executed with a python executable that does not belong to the currently active venv?
(Is this considered save given, that things could break, if this python code relies on the variables being set correctly or subprocesses being executed in the same environment?)
So from what I gather, as it currently stands using a project venv to allow mypy to follow imports correctly only works if mypy is installed in said venv and uses the mypy installed in the venv.
If mypy is not installed in the project venv but it is active while pylsp-mypy gets called with another executable, the plugin will (understandably) crash.
The best fix would be to fall back to the api call that existed before.
And I should probably recommend to the pylsp devs, that one plugin crashing should not crash the others.

If I understood you right, pylsp-mypy gets executed with a python executable that does not belong to the currently active venv?

@Richardk2n Yes, you are correct in that understanding.
Prepare a venv environment dedicated to pylsp, and use the pylsp installed there for all projects in common.
Since we are not installing in a global python environment, the mypy command that pylsp-mypy depends on does not exist on our PATH.
Some projects (different venvs for pylsp) may not use mypy. In that case, the mypy command does not exist, and you are getting a crash situation.
Probably "issue 26" is the same problem, since it is a pipx installation.  https://github.com/Richardk2n/pylsp-mypy/issues/26

The best fix would be to fall back to the api call that existed before.

You can of course use whatever adjustment method you think is best for you. My PR is closed. 🙇

Can you test if it is fixed in the newest release?
It is likely fixed.

I have confirmed that the problem has been adjusted. This issue is closed.


DISPLAY not detected. For headless systems, compile with --headless for EGL support

Habitat-Lab and Habitat-Sim versions
Habitat-Lab: v0.1.7
Habitat-Sim: v0.1.7
after I install Habitat-Sim: v0.1.7 with headless and run the test code I meet the error:
DISPLAY not detected. For headless systems, compile with --headless for EGL support.
Here is what I did while installing:
conda install -c aihabitat -c conda-forge habitat-sim=0.1.7 headless
git clone --branch v0.1.7 git@github.com:facebookresearch/habitat-lab.git
cd habitat-lab
python setup.py develop --all # install habitat and habitat_baselines
### test code:
python examples/example.py
###then the running stop at:
DISPLAY not detected. For headless systems, compile with --headless for EGL support.

How can I solve this problem?
Thank you in advanced!

Can you point to where you found these install instructions? You may want to follow the order of arguments as shown in the install section:
conda install habitat-sim=0.1.7 headless -c conda-forge -c aihabitat

Can you point to where you found these install instructions? You may want to follow the order of arguments as shown in the install section:
conda install habitat-sim=0.1.7 headless -c conda-forge -c aihabitat

I found the install instructions from another project:https://github.com/MarSaKi/ETPNav
However, after trying this code, I still get the same error
conda install habitat-sim=0.1.7 headless -c conda-forge -c aihabitat

Could you try installing a newer version of Habitat? It may be that older versions require older nvidia drivers as well.

Could you try installing a newer version of Habitat? It may be that older versions require older nvidia drivers as well.

Thank you. It seem it can run correctly using docker instead of using conda env

@Columba0376 Hi, which docker image do you use to solve this problem?


grub2: backport upstream changes to fix build error

@yuwata Could you add problem description or references to the upstream changes in the commit message?


Suggestion: RegExp prefix's

A way to be able to have custom Prefix with regex's aka this.client.config.prefix could be new RegExp(/!/g) for example

Uh, this was a thing... If it's broken, that's a bug.

Confirmed bug

this.client.config.prefix has never been RegExp but string/string[]. This suggestion breaks several pieces including SettingGateway. Althought SGv2 will just throw a TypeError.

I'm sure it was a thing in August I remember using it but I could be tripping this might break SGv2 but maybe there could be a RegexPrefix option in KlasaClientConfig so that RegexPrefix is the main prefix that couldn't be overridden aka Hey Skyra, ping would work always even if you used conf to change the prefix so it is not overridable.

Just like Komada 0.19.7's usage were so bugged the repeator tag was useless and it was capturing from the argument's position to the end (infinite catching), it got fixed in 0.20.0 with Ao's rewrite and that behaviour dissapeared. There has not been an infinite catching feature in Komada, nor in Klasa, although a bug allowed it to exist.
Same happens here with the prefixes, this.client.config.prefix being a RegExp (but guild prefixes defaulted to string|string[]). That was an unintended behaviour that worked due to a bug, but since the bug is now fixed, that does not longer work.

I see

@kyranet What is your opinion on the regexPrefix option in KlasaClientConfig? I think it would become handy

as PrefixMention shouldn't be overidden and is only meant for mentioni prefix for the bot...

My opinion is that regexPrefix is a nice-to-have feature, but most developers will not find it handy. (Keep in mind that RegExp is a feature that many newbie developers find hard to use.

I can agree with it being a nice feature to have and very true that noobie developers dont know the power of Regular expresions


How to run docker daemon?

Installed docker by

nix-env -iA nixpkgs.docker

When I type e.g. docker pull pihole/pihole, it shows

Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

How do I start the docker daemon?

On March 30, 2024 3:17:00 AM GMT+01:00, "§" @.***> wrote:

Installed docker by

nix-env -iA nixpkgs.docker

When I type e.g. docker pull pihole/pihole, it shows

Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

How to start the docker daemon?

You cannot. Nix-on-droid is running as unprivileged user as every other Android app, plus does that inside proot. Docker requires root and features like user namespaces.
Podman could be simpler, but still requires user namespaces. In general, I just don't believe it's possible.


fix(loader): Fix the loader which was not displayed

Description
What are changes related to ?
Make the loader visible when we try to connect to the app
Tests
How has it been tested ?

[X] Manually
[ ] Automated tests
[ ] QA
[ ] Other

## Preview
https://github.com/XPEHO/XpeApp/assets/83142634/88f88500-4829-4fbb-95fe-38ff50c16111


ZombieLab CreateIAMUsers Custom Resource Lambda leaves things a bad state on failure

Experienced a failure trying to create the Stack on the CreateIAMUsers custom resource due to the Lambda failing to createLoginProfile due to a password policy whose conditions weren't matched. This exposed a second problem as the Lambda will not clean up the resources it already created if it fails. When that happens, CloudFormation is left in a state where it thinks the Create CreateIAMUsers failed, so it doesn't cleanup when it is torn down. Therefore, any subsequent attempt to create the Stack fails because the IAMUser resources already exist.
Three points...

the Lambda needs to handle failure on create so that any resources it has already created are removed
there should be better logging for any such failure to make debugging easier
Ahh! The password is hardcoded in the Lambda. Maybe pass it in as a NoEcho Parameter? Do we even need to create a login profile for these IAM Users?

CloudTrail Event log for the actual failure that initiated the described problems.
event.json


add support for dstPort 0 dynamic port selection

modify config to allow dstPort to be 0 but not nully
modify index.js to emit forward-in event with dynamic port
update to ssh-0.5.2 which works around an OpenSSH 5.x bug related to this feature
document in README
fix debug() usage bug

This is awesome!
I think 'forward-in' event can fix my issue.

sorry guys i am on vacation right now. I expect the merge to be done by end of the week.

Maybe faster ;)


Optional power-law drift during training

Related issues
#155
Description
Enables (optional) power-law drift during analog training, which can be conductance dependent and have device-to-device variability. If present, the drift will be applied once per minibatch only, just like the optional device-to-device variable diffusion or decay.
Details
The drift model is based on Oh et al (2019), see https://ieeexplore.ieee.org/document/8753712

Merging as the pylint failure will be solved in an upcoming PR.


[WIP] Stream Latency Info

Adds information on stream display latencies.
Need to verify metaout:

Latency test results from Taras are below. RPi compute will add 5-10% more time.

measured
requested
avg latency, ms

left
left
100

left
left, right
270

left
left, right, depth_sipp
380

left
left, right, depth_sipp, metaout, previewout
420

previewout
previewout
65

previewout
metaout, previewout
100

previewout
left, right, depth_sipp, metaout, previewout
950

metaout
metaout
300

metaout
metaout, previewout
300

metaout
left, right, depth_sipp, metaout, previewout
1900


Add sensu monitoring for shibd

Add sensu monitoring for the shibboleth daemon which
is used with apache for keystone to keystone federation.

Can one of the admins verify this patch?

"ok to test" to accept this pull request for testing
"test this please" for a one time test run
"add to whitelist" to add the author to the whitelist

Please rebase on master for Ansible 2.1 fixes.

rebased.

ok to test


Format logging output for increased legibility

Adds [quire] prefix, log types, and column spacing. See https://jira.getty.edu/browse/DEV-13749.

@mphstudios You asked about what this looks like when the line breaks and you're right it is wonky:

Though it's pretty wonky even without the columns. Down the road we may want to look at something like https://www.npmjs.com/package/indent-log for better indenting with line breaks:

Down the road we may want to look at something like npmjs.com/package/indent-log for better indenting with line breaks

Absolutely, something like indent-log and/or cliui to better format the output. I also think that we will be able to bring back the fancy colours.
@geealbers @Erin-Cecele @thegetty/int-dev what are your thoughts on including the changes in this pull-request in the pre-release and refactoring later?

@mphstudios, it makes sense to me to merge this in for the pre-release as is, and then refactor it later

@mphstudios @geealbers @thegetty/int-dev Despite it being hard to read with the line breaks, I think overall, the messaging is clearer and more helpful. I'd love to see this merged for the pre-release and refactored later.


Fusion Gyro data Firmware v1.609

I'm unable to get the Gyro/Accl/GPS data from a GoPro fusion capture. I'm able to see ISOG and SHUT data, but not Gyro. Has anything changed in the firmware for this to happen?

Internally Fusion has two SoCs (System on Chip) for capture and compressing data, very like two Hero5s in one package.  However it only has one GPS receiver and IMU, both hooked to the front camera (GPFRxxxx.MP4.)  You will see ISOG and SHUT on both cameras as that data is independent, we need to know exposure differences between front and back cameras.  So for IMU/GPS data use the front camera media.


Something wrong about the training process

Hi, when I used droid_100 datasets train the model, at the beginning, everything went well, until this error came out:

“Traceback (most recent call last):
File "/home/wrs/miniconda3/envs/droid_policy_learning/lib/python3.10/tkinter/init.py", line 4046, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.del at 0x7f062dea7a30>
Traceback (most recent call last):
File "/home/wrs/miniconda3/envs/droid_policy_learning/lib/python3.10/tkinter/init.py", line 388, in del
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.del at 0x7f062dea7a30>

and stuck here:

And the whole process was killed, so I went to search for the problem, and got this answer:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

However, I found this code in the file visualization.lib, and still met this error during training.
Looking forward to the reply, thanks. @kpertsch

@kpertsch  Thank you for your reply!
I tried to run the three lines in my Python shell, it went well.

When I rerun the training code, it stuck here this time:

It seems like randomly stuck, no matter whether doing the plot or not. (Confused)

Mmh that's odd -- could you try killing your program that's stuck with Ctrl+C to see where in the program it got stuck? Very hard to debug such silent freezing issues.

@kpertsch Okay, I tried to Ctrl+C to see what happened, and got this:

The program is waiting for the unlock of the thread and is stuck here.
This is my OS(WSL2) configuration:

GPUs configuration:

I change the parameters of training to those:
 "traj_transform_threads": 48, "traj_read_threads": 48, "shuffle_buffer_size": 100000,;
so I think the RAM is enough to run this code.

@ashwin-balakrishna96 have you seen such behavior before?
It seems that the data parallel wrapper around the visual encoder locks up. Can you try running with only a single GPU visible via export CUDA_VISIBLE_DEVICES=0?

@kpertsch okay, I will try it and let you know the result.
Thank you so much.

Hello, I try to train policy with droid_100, but I always get the following error:
——————
Did you mean: droid_100 -> coil100 ?
The builder directory D:\droid-main\dataset\droid_100\droid_100 doesn't contain any versions.
No builder could be found in the directory: D:\droid-main\dataset\droid_100 for the builder: droid_100.
——————————
My droid_runs_language_conditioned_rlds is set like this:
DATA_PATH = r"D:\droid-main\dataset\droid_100"    # UPDATE WITH PATH TO RLDS DATASETS
EXP_LOG_PATH = r"D:\droid-main\temp_log" # UPDATE WITH PATH TO DESIRED LOGGING DIRECTORY
EXP_NAMES = OrderedDict(
[
# Note: you can add co-training dataset here appending
# a new dataset to "datasets" and adjusting "sample_weights"
# accordingly
("droid_100", {"datasets": ["droid_100"],
"sample_weights": [1]})
])
——————
Is there a problem with that? If you can, please share the following how you set it up?

That should work, perhaps something went wrong with preserving the correct directory structure when downloading the dataset? Can you confirm that the directory structure is as follows:
Within DATA_PATH there should be a folder called droid_100, and within that there should be a folder called 1.0.0. Inside the 1.0.0 folder you'll find a number of json and tfrecord files.

That should work, perhaps something went wrong with preserving the correct directory structure when downloading the dataset? Can you confirm that the directory structure is as follows:
Within DATA_PATH there should be a folder called droid_100, and within that there should be a folder called 1.0.0. Inside the 1.0.0 folder you'll find a number of json and tfrecord files.

Yes, it is work now, but it still comes up sometimes. it's so weird.


Support _in where predicate for columns with array of ids

Is there support for the _in where-predicate for columns with array of ids.
This is useful for many-to-many relationship. The equivalent in SQL is column && anyarray → boolean.
See:
https://github.com/graphprotocol/graph-node/blob/0bd1329f127763e61ec9dda5f8b3c711e2a77a0a/store/postgres/src/relational_queries.rs#L876-L886

Related:
https://github.com/graphprotocol/graph-node/blob/410e2af9f296a987db3fe47fa1ffe1ab01add7d7/graphql/src/schema/api.rs#L266-L284

@fordN @Jannis "_contains" is available for List fields.
Isn't it weird why "_in" is not available for List fields?


SDN-4024: Add TechPreview feature gate for OVNK-ANP

Related enhancement for the feature: https://github.com/openshift/enhancements/pull/1414
This feature is TechPreview in OCP 4.14 but we want some users to be able to switch this on if they want to, hence adding a feature gate where the feature is to be enabled only on TechPreview Clusters and not in standard cluster.
PS: I hope I am supposed to use with and not without right? (Goal is to disable the feature by default in 4.14 but enable it only in TechPreviewNoUpgrade clusters)
Once this PR merges, this will be revendered into CNO and used there.

This looks correct to me, you'll next need a PR to the openshift/cluster-config-operator repository to update the openshift/api dependency in that repository.
Please review https://docs.google.com/document/d/1zOL38_KDKwAvsx-LMHfyDdX4-jq3HQU1YWBjfuHaM0Q/edit to understand how feature gates work in openshift and how they should be used. You'll need to set up a feature gate accessor and then in the code you're writing, check if your new feature gate is enabled. Feel free to ping me for a review when you start working on that integration
/lgtm


Install a better shell, zsh

The zsh shell has autocomplete

You can change the shell theme, just adding -- -t 'theme'
The list of available themes is here: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
For example, using the 'avit' theme:
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.1/zsh-in-docker.sh)" -- -t avit


Terminating app due to uncaught exception 'NSGenericException'

Hi @rushisangani, Thanks for providing a great library for values selection.
When I am trying to run ActionSheet example of library on iPAD, I am getting below error:
RSSelectionMenuExample[31899:304616] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x7faaac03a400>) of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'
Post searching the same on Google, I found below post for the solution:
Stack Overflow: Reference
Post integrating fix it is working on both iPhone & iPAD.
Can you please merge the raised PR. Please let me know incase any additional information is required too.
Thanks
</ Pranav >

Thanks @rushisangani for merging and sharing your thoughts on the approach and problem.
Thanks
</ Pranav >


How to only make the specific screen support orientation?

Problem
I want to make only the video player screen of my app support orientation. But when I turned on landscape in Xcode, everything works great except that I can't disable other screens from being orientation.
Code
The video player screen
...

  componentDidMount() {
    Orientation.unlockAllOrientations();
    ...
  }

  componentWillUnmount() {
    Orientation.lockToPortrait();
  }

...

Other screens
...

  componentDidMount() {
    Orientation.lockToPortrait();
    ...
  }

...

ENV
react-native: 0.39
react-native-orientation: 1.17.0
iOS: 10.2 on iPhone 5s
Android: not test

i have the same problem, did you have solution?

@williamlk you can try this.
  componentDidMount() {
    Orientation.addSpecificOrientationListener(this.orientationListener.bind(this));
    Orientation.unlockAllOrientations();
  }

  componentWillUnmount() {
    Orientation.removeOrientationListener(this.orientationListener);
    Orientation.lockToPortrait();
  }

In the listener you should save the current orientation, and render ui along with the current orientation.

addSpecificOrientationListener() method did not invoke? Is code have any problems?


hoodie console

closes hoodiehq/camp#7
Hello, this is my first contribution to open source, so I wanted some in progress comments before I continued with my implementation of my feature.
As a short recap, I am trying to implement a custom node REPL exposing Account-Client/Admin methods to the developer.
As you can see I've started two scripts: loader.js is just a factory function that creates a loader instance while repl.js starts a application specific REPL instance.
My main obstacle at this point is figuring out where to put these files.  Currently I have them in the cli/ directory, which I don't think is right.
Additionally, I am trying to wrap my head around how the options object passed into the Account Admin constructor gets populated?  I need a path for the hoodie project, but am not sure where to get that from.
Once I get a better understanding of these two issues, I should be able to move pretty quickly and write unit tests as well.
Thanks for all the patience and guidance!  I'm new to this, and while I feel capable of implementing this feature, I've been a bit slow trying to learn the structure of the hoodie project.  Thanks for this awesome opportunity to learn and help.

hey @dengjonathan, are you still working on this? Anything we can help with?

@gr2m embarrassingly, I got caught up in other things and totally missed your feedback.  I'm really really sorry about that.
I'll take a look at your comments and make another PR in the next couple days.

no worries :) And no need to make another PR, you can continue working on this one, just keep adding changes and push them, this PR will get updated

Just added some commits making the changed requested previously and started a unit test file.
Need some time to understand the PouchDB options issue on my own, so no feedback required just yet.  I'm going to try to work a little each day, instead of having gaps so I can keep the momentum going.
Thanks for all the comments @gr2m !

@dengjonathan would you mind me closing this PR? I realised it was not thought through well enough from our side. The APIs that we want expose is not ready yet. And we are looking into moving the CLI logic an own @hoodie/cli package, which would be installed globally. So starting a console for a Hoodie app would then work like this
npm install -g @hoodie/cli # installs `hoodie` CLI tool
cd /path/to/hoodie-app
hoodie console

Once we thought this all through, we’ll create another issue and I’ll reach out to you in case you are still interested to work on it.
I’m very sorry that it didn’t work out, especially as it was your first Open Source contribution. I hope you found something else to work on in the meanwhile and if not, let me know, I’d be happy to ping you once we have something at Hoodie


DateSpan .fromNow and server-side rendering

The DateSpan component is likely to trash the whole server-rendered DOM when React mounts. Consider the following scenario:

A page includes a DateSpan (fromNow) of a few seconds ago
The DOM is rendered on the server-side, the DateSpan renders 2 seconds ago
The client receive the served HTML, React mounts, and sees that DateSpan now renders 3 seconds ago.
-> The whole DOM is trashed because it doesn't match.

@Soreine Yep, that happened to me a few times. The obvious fix would be to include the "now" timestamp in the JSON payload rather than calling Date.now() in the rendering code.
Thus the client starts off with the same timestamp as the server but can then update it with a setTimeout / setInterval loop.


Markdown TOC: how to set depthFrom?

If I use https://github.com/AlanWalk/markdown-toc, I can do <!-- TOC depthFrom:2 --> to prevent h1 titles ending up in TOC.
However this plugin README says "no annoying tags like <!--TOC-->". Then, how should users be configuring Markdown TOC settings?

See settings.

@neilsustc that's a weird link.

The toc.levels setting can be set per workspace. And we have another solution, the <!-- omit in toc --> comment. I guess they can cover the most use cases?

Thanks.