TypeError: string indices must be integers

Which Model do you use from loxone? Miniserver? Gen1 or Gen2?
Miniserver Gen1
Which software version does your loxone use?
How did you install HomeAssistant? Over Hassio oder manual install?
HassOS
Which Version do you use of HomeAssistant?
2023.1.4
Describe the bug
Errors happen after setting up the integration. Credentials are correct. Tried with local IP & duckdns.org as hostname.
Second error log seems to indicate that the API returns a string, where the code assumes an object (e.g. value['key']).
Not sure why "Config entry has already been setup" appears, since this error is shown after setting up the integration for the first time (and consecutive edits of the config as well).
❗Note that the integration does seem to create devices & entities. But they are not functional.

ValueError: Config entry has already been setup!

Error log2:
Logger: homeassistant.config_entries
Source: custom_components/loxone/api.py:1022
Integration: PyLoxone ([documentation](https://github.com/JoDehli/PyLoxone), [issues](https://github.com/JoDehli/PyLoxone/issues))
First occurred: 19:54:42 (1 occurrences)
Last logged: 19:54:42

Error setting up entry PyLoxone for loxone
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/loxone/__init__.py", line 361, in async_setup_entry
    res = await miniserver.start_ws()
  File "/config/custom_components/loxone/miniserver.py", line 126, in start_ws
    res = await self.api.async_init()
  File "/config/custom_components/loxone/api.py", line 452, in async_init
    res = await self.acquire_token()
  File "/config/custom_components/loxone/api.py", line 708, in acquire_token
    key_and_salt.read_user_salt_responce(message)
  File "/config/custom_components/loxone/api.py", line 1022, in read_user_salt_responce
    self.key = value["key"]
TypeError: string indices must be integers

Have you tried restarting home assistant?

After rebooting this error still remains:
Logger: homeassistant.config_entries
Source: custom_components/loxone/api.py:1022
Integration: PyLoxone ([documentation](https://github.com/JoDehli/PyLoxone), [issues](https://github.com/JoDehli/PyLoxone/issues))
First occurred: 21:33:00 (2 occurrences)
Last logged: 21:34:23

Error setting up entry PyLoxone for loxone
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/loxone/__init__.py", line 361, in async_setup_entry
    res = await miniserver.start_ws()
  File "/config/custom_components/loxone/miniserver.py", line 126, in start_ws
    res = await self.api.async_init()
  File "/config/custom_components/loxone/api.py", line 452, in async_init
    res = await self.acquire_token()
  File "/config/custom_components/loxone/api.py", line 708, in acquire_token
    key_and_salt.read_user_salt_responce(message)
  File "/config/custom_components/loxone/api.py", line 1022, in read_user_salt_responce
    self.key = value["key"]
TypeError: string indices must be integers

Have you tried to remove the pyloxone and install and setup again?

Yes, multiple times. The error keeps returning. Which seems logical, since it is an error while parsing the API response. And I set it up using the same config each time.
As I said:

credentials are correct (since I use the same for login in to the web portal)
host is correct (tried both the local IP as well as the public xxx.duckdns.org hostname)
port is correct (80)

I see that somebody else reported the same error, but its unclear to me from the discussion if there was a solution?
See: https://github.com/JoDehli/PyLoxone/issues/54

I can not remember. Sorry. What port do you use. Please use not 80.

I can not remember. Sorry. What port do you use. Please use not 80.

I see... I did indeed configure with port 80.
This has to be the port of the web interface right or is this some other port?

Strange I use the same code on my miniserver.
Can you try to delete the toke file in the main config folder. It is the folder where your configuration yaml is normally. I do not exactly know how it is called it something with token in the naming.
It this does not work you can try (if you familiar with git) you can download the new branch I have created a view weeks ago and override the sources it the pyloxone install folder. Do you know what I mean?
This is the newest implementation which is completely different in the way how it is communicating with the Miniserver

I'll see what I can do, it's actually not my own setup, but the one from my brother. So I don't have unlimited access.
What I can also do: run my local Home Assistant development setup (I'm working on an integration myself) & debug from there by copying the custom_components/loxone folder over. This way I might even be able to provide you with example API response.
I'll keep you posted.

Of course this would be great. It is always very difficult to help if I do not have access to the system.
The port is used also from the app. The integration uses the same API which the app uses. And by default it is 80. The actual integration was written for my system years ago and has some major limitations which I want to eliminate with the newest implementation. But is is not ready to release by now. So I would try the new branch when you debug it.

Thanks for the info, I'll see what I can do. I might find some time this evening.
Appreciate you replying this fast 🙏🏻

Strange I use the same code on my miniserver.
Can you try to delete the toke file in the main config folder. It is the folder where your configuration yaml is normally. I do not exactly know how it is called it something with token in the naming.
It this does not work you can try (if you familiar with git) you can download the new branch I have created a view weeks ago and override the sources it the pyloxone install folder. Do you know what I mean?
This is the newest implementation which is completely different in the way how it is communicating with the Miniserver

Hi there!
this is the brother -_-
Didn't find the token file you were talking about. Tried deleting and installing again, same problem. Only 7 devices and 7 entities...

@jevanhove you can try the new beta release. You can install it from HACS.
I close the issue and if you still have a problem you can reopen it.


Add site to online judges list

Hi, could you add the URI Online Judge to the list of Sites to Practice?
A little bit about URI: The URI Online Judge is a project that is being developed by the Computer Science Department of URI University. The main goal of the project is to provide programming practice and knowledge sharing.
url: https://www.urionlinejudge.com.br
All the best,

Thanks for the PR.
Someone actually suggested URI online judge right when this list was initially created.
I was unsure about its problem archive which seems to have many taken from UVa online judge.
On a closer look I didn't think it should be added. It's just a little below the caliber of other ones on the list.
On a side note, you made changes to the wrong branch.
The cf branch is for adding CF-specific markdown syntax for usernames.

Umm and, you didn't seem to have made any changes.
Make sure you understand what a Pull Request is.

Humm... I agree with your opinion, but I think URI has a better user interface than the other ones. Yes I know, beautiful interface is not a good argument to decide which is better than another.
thank u.

@ThiagoInocencio
Yes, I agree.
It does have a better interface than those old-school online judges.
It really kept me thinking a lot before I decided not to include it.
Anyways,
Thanks for contributing :)


Addon Architecture Review

@cibernox - I'd like to get your feedback on this new ember-power-select addon I created. The README contains some details about the purpose of this addon and the architecture details. Checkout the example ember app in the tests/dummy directory to see this addon in action.
I know this addon is an edge case for ember-power-select. But the composition design pattern used with ember-power-select made it pretty easy to create.
The following two things felt hacky to me when overriding the selectOptions component:

Triggering the onchange event - I did this by triggering the select event and passing through the transformed parameters. I wasn't sure how to pass the dropdown param so I just left it blank. https://github.com/gregjopa/ember-power-select-complex/blob/master/tests/dummy/app/components/select-options.js#L62

Closing the dropdown - I did this using the opened api option. I used this.get('targetObject') to get access to the main component from inside the selectOptions component. Is there a better way to refer to the parent component?

Any feedback you have would be greatly appreciated.

This is quite and edge case, indeed.
I'm genuinely astonished (but delighted) that you were able to stretch ember-power-select to this length :astonished:
About your doubts:

Using the select action to trigger the onchange event is exactly the proper way to do it. Alternatively you could use choose, which is more or less equivalente to select + close. And precisely, you don't need to pass the dropdown to the action, because the action is a closure action that already has the dropdown bound as first argument, for convenience.
However, closure actions should be invoked directly instead of with sendAction to work as expected.
Just replace this.sendAction('submit', {}, params) with this.get('select').select(params).

As I mentioned, you can either use this.get('select').choose instead of this.get('select').select to both select & close, or you can also use this.get('select').close() to manually do it.

Another suggestions:

Add ember-power-select-addon to the list of keywords, so I can track meta-addons. Example: https://github.com/cibernox/ember-power-select-with-fallback/blob/master/package.json#L47
ember-power-select-complex is not very descriptive of what the addon does, although I can't really suggest a better name. ember-power-select-form?

Again, I'm mind blown for this :+1:

@cibernox Thanks for your feedback. It's been very helpful. :+1:  I agree that this is a fun example of what can be done with extending ember-power-select.
I updated this addon to use this.get('select') for calling actions. I had to use this.get('select').actions.choose(params) vs. this.get('select').choose(params) to get it to work. The actions key had to be included.
I agree that the addon name was vague. I renamed it to ember-power-select-form (thanks for the suggestion!). I added some keywords and published it to npm.
My plan is to integrate this addon into my ember-reporting-dashboard app to better showcase the benefits of this component.

@cibernox I successfully updated this addon to use the latest and greatest version of ember-power-select in PR #2. I ran into one small problem. Previously I was using the following code to make items optionally dismissible:
{{#if opt.isDismissible}}

    ×

{{/if}}

This approach no longer works. I updated this code to following but I'm not sure how to trigger the dismiss action:
{{#if opt.isDismissible}}

    ×

{{/if}}

Is there a new action I need to call for this dismiss behavior?

@cibernox I got the dismiss behavior working. The dummy app now demos this functionality.
I just released<EMAIL_ADDRESS>Thanks again for the awesome ember-power-select library!

I'm going to add it to the list of addons.

Awesome!


Publish a GitHub action

Were you thinking about a GitHub action?
https://github.com/marketplace?type=actions

Hey,
that should be really easy doable as there is already a way 🤔

Created a action see https://github.com/shyim/danger-php/blob/main/docs/ci.md

Thank you.


Debug symbols not available despite following manual

Issue description
I'd like to debug an application on NixOS. The application crashes in libQt5Script.so.5 from the package qtscript.  I've looked at the manual for adding debug symbols.
Simply adding environment.enableDebugInfo = true does not give me the debug symbols.
A second attempt is to use packageOverrides. I've explicitly put separateDebugInfo = true; in the qtscript package. But it still does not let nixos-rebuild install any debug info.
This is the relevant fragment from /etc/nixos/configuration.nix:
  environment.enableDebugInfo = true;
  nixpkgs.config.packageOverrides = pkgs: {
    qt5 = pkgs.qt5 // {
      qtscript = pkgs.qt5.qtscript.overrideAttrs (attrs: {
        separateDebugInfo = true;
      });
    };
    qt511 = pkgs.qt511 // {
      qtscript = pkgs.qt511.qtscript.overrideAttrs (attrs: {
        separateDebugInfo = true;
      });
    };
  };

Technical details
 - system: `"x86_64-linux"`
 - host os: `Linux 4.18.20, NixOS, 18.09.1636.b144dfa3b27 (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - channels(root): `"nixos-18.09.1636.b144dfa3b27"`
 - channels(oever): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

The separate debug files provided for qtscript are empty shells containing no actual debug symbols.
$  tree -as /nix/store/ix8vc9krrsajbfn2rcn118hgr2g0f9vw-qtscript-5.11.1-debug/lib/debug
/nix/store/ix8vc9krrsajbfn2rcn118hgr2g0f9vw-qtscript-5.11.1-debug/lib/debug
├── [       4096]  .build-id
│   ├── [       4096]  8c
│   │   └── [       2680]  f0d4a5c60e629b4c9b241539710e5e9e9bd1de.debug
│   └── [       4096]  f0
│       └── [       2680]  b975465eef50ed3be72bf9d6a697f44e8fc1d9.debug
├── [         57]  libQt5Script.so.5.11.1 -> .build-id/8c/f0d4a5c60e629b4c9b241539710e5e9e9bd1de.debug
└── [         57]  libQt5ScriptTools.so.5.11.1 -> .build-id/f0/b975465eef50ed3be72bf9d6a697f44e8fc1d9.debug

Probably qtScrip's build system already strips the libs aggressively before the fixupPhase saves the debug info in the separate output ?

Also maybe you will find this article of interest: https://nixos.wiki/wiki/Debug_Symbols

The Debug_Symbols article has educated me some.
I've tried to read the derivation for the QtScript on my system, but it's missing:
$ realpath "$(type -P "kmail")"
/nix/store/37angcmf0npkfxa3m7rr988na52pcln1-kmail-18.08.0/bin/kmail
$ ldd /nix/store/37angcmf0npkfxa3m7rr988na52pcln1-kmail-18.08.0/bin/kmail | grep qtscript
        libQt5Script.so.5 => /nix/store/vk1ifz8540zrzchs93y6z07wfxmwh62k-qtscript-5.11.1/lib/libQt5Script.so.5 (0x00007f41e994f000)
$ nix-store --query --deriver /nix/store/vk1ifz8540zrzchs93y6z07wfxmwh62k-qtscript-5.11.1/
/nix/store/92jkrjd1hx2df3l4c2mvdwgirj95cn8v-qtscript-5.11.1.drv
$ ls /nix/store/92jkrjd1hx2df3l4c2mvdwgirj95cn8v-qtscript-5.11.1.drv
ls: cannot access '/nix/store/92jkrjd1hx2df3l4c2mvdwgirj95cn8v-qtscript-5.11.1.drv': No such file or directory

afaik derivations don't always live on disk, sometimes they are only in the nix database. Does nix show-derivation still work ?
In any case, you can probably download the .drv from the cache with nix copy.

I think the problem is that environment.enableDebugInfo pulls in debug info only for packages that are directly listed in environment.systemPackages, not their dependencies.
So having separateDebugInfo = true on a lib causes the debug output to be built, but because nobody lists a lib in systemPackages, the enableDebugInfo flag does not cause that output to be pulled in. Listing a lib in systemPackages causes the debug info to be available. I just verified this for another lib because I did not want to wait for qt to compile.
Following the code through debug-info.nix, system-path.nix and finally buildenv/default.nix shows that this is what happens.
The documentation for environment.enableDebugInfo is not explicit if this is the intended behavior, but it sure came as a surprise for me just like @vandenoever .


Creating a slot, creates 2 slots.

When creating a slot, using slot builder, this creates a folder and places 2 slot files in it.
Environment (please complete the following information):

Unity: 2021.3.20f1
UMA Version: 2.12
Rendering Pipeline: URP

To Reproduce
Steps to reproduce the behavior:

Create a clean unity project, install UMA 2.12
, create a new slot.

Expected behavior
I would expect UMA to not create 2 duplicate files.
Screenshots

This isn't a bug. This will happen if you have multiple materials on your mesh. You will end up with 2 slots, one with each material. You will need to create an overlay for each material, add both slots to the recipe, and assign the appropriate overlay. Unity does not support more than one material per submesh.

Thanks for reporting though. You may find it easier to get responses on the discord.

r

Thanks! Where can I find this discord? Google doesn't seem to be giving me a result?

You're welcome - here it is: https://discord.gg/XJ9u3wGaQ5


bump openshift version to 4.12.0 in Makefile

this bumps CRC version to 2.13.1 and adds the missing version bump of OpenShift which was missed in 2242f7fa

/retest

/retest

Merging as the certificate rotation test failure is inconsistent


Unable to install behind proxy

Having set the http_proxy and https_proxy environment variables and even the proxy and https-proxy npm config settings, I am unable to install elm behind a proxy.
npm install --global elm prints this error message:
:heavy_multiplication_x: Request to https://github.com/kevva/elm-bin/raw/2.0.0/vendor/linux/x64/elm-platform-linux-x64.tar.gz failed
:heavy_multiplication_x: elm pre-build test failed
:heavy_multiplication_x: Request to https://github.com/kevva/elm-bin/raw/2.0.0/vendor/linux/x64/elm-platform-linux-x64.tar.gz failed
:heavy_multiplication_x: elm-make pre-build test failed
:heavy_multiplication_x: Request to https://github.com/kevva/elm-bin/raw/2.0.0/vendor/linux/x64/elm-platform-linux-x64.tar.gz failed
:heavy_multiplication_x: elm-package pre-build test failed
:heavy_multiplication_x: Request to https://github.com/kevva/elm-bin/raw/2.0.0/vendor/linux/x64/elm-platform-linux-x64.tar.gz failed
:heavy_multiplication_x: elm-reactor pre-build test failed
:heavy_multiplication_x: Request to https://github.com/kevva/elm-bin/raw/2.0.0/vendor/linux/x64/elm-platform-linux-x64.tar.gz failed
:heavy_multiplication_x: elm-repl pre-build test failed

https://github.com/kevva/download/issues/64


Spawn error when lauching UnicornTranscoder.

Command: SERVER_PORT=3001 npm start
{ Error: spawn /root/UnicornTranscoder/codecs/EasyAudioEncoder-eae-69c1de6-25-amd64/EasyAudioEncoder/EasyAudioEncoder ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:695:11)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn /root/UnicornTranscoder/codecs/EasyAudioEncoder-eae-69c1de6-25-amd64/EasyAudioEncoder/EasyAudioEncoder',
  path: '/root/UnicornTranscoder/codecs/EasyAudioEncoder-eae-69c1de6-25-amd64/EasyAudioEncoder/EasyAudioEncoder',
  spawnargs: [] }

npm run install ?

Yes i forget it,
Now is running but the plex web says
Conversion failed. The transcoder exited due to an error.

Using the port 3001 web interface.
Everything in local (Same machine) so i don't run cluster or paralel servers. I'm Just tried to install and put it working.
All is under <IP_ADDRESS> (Default configs)

Can you share configurations?

How i redirect the plex web app to the transcoder ?
what configuragations you need ?

Normaly when you start the stream you will see a 302 in the devtools


EXPO Web Build source map Warnings

🐛 Bug Report
When running UI-Kitten as an expo project, are getting 125 warning when doing web build.  All are similar to the the following:
WARNING in<EMAIL_ADDRESS>Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/workspaces/expo-kitten-issue/BlankTS/node_modules/packages/processor/js/src/service/style/index.ts' file: Error: ENOENT: no such file or directory, open '/workspaces/expo-kitten-issue/BlankTS/node_modules/packages/processor/js/src/service/style/index.ts'
Note, these are warning and the application does build and run.
To Reproduce
Reproduce Steps
From referenced repo README.md

Setup Expo TS project

npx create-expo-app -t expo-template-blank-typescript BlankTS
cd BlankTS/
npx expo install<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Verify working for web

npx expo start --web

Install UI-Kitten Manual Steps\

npm i @ui-kitten/components @eva-design/eva
expo install<EMAIL_ADDRESS>

Update app.json
If you use Expo for Web, you need to add the following underneath the "web" key in app.json "build": { "babel": { "include": [ "@ui-kitten/components" ] } }

Start project and see error

npx expo start --web

Expected behavior
No warnings related to source map.
Link to runnable example or repository (highly encouraged)
https://github.com/wderezin/expo-kitten-issue.git
UI Kitten and Eva version
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>Environment information

Maybe try to clear cache: npx expo start --web -c

Just tried that, but no luck.

Did some more digging, and the root of the problem is the source files are not included in the @ui-kitten/components module.
Since they are warnings, I did find a way to suppress them.  In webpack.config.js  add the following:  This is also in the demo repo https://github.com/wderezin/expo-kitten-issue/blob/main/BlankTS/webpack.config.js
const createExpoWebpackConfigAsync = require('@expo/webpack-config');

module.exports = async function (env, argv) {
    const config = await createExpoWebpackConfigAsync(env, argv);
    console.log(config.rules);
    // Customize the config before returning it.

    // Ignore source maps in node_modules
    // Idea from: https://stackoverflow.com/questions/63195843/webpack-module-warning-failed-to-parse-source-map-from-data-url
    // Issue: https://github.com/akveo/react-native-ui-kitten/issues/1745
    if (!config.ignoreWarnings) {
        config.ignoreWarnings = []
    }
    if (!config.module.rules) {
        config.module.rules = [];
    }

    config.ignoreWarnings.push(/Failed to parse source map/)
    config.module.rules.push(
        {
            test: /\.js$/,
            enforce: "pre",
            use: ["source-map-loader"],
        },
    );

    return config;
};


Convert wildfly-operator to bundle format

Signed-off-by: Jeff Mesnil<EMAIL_ADDRESS>I've converted all existing wildfly-operator to support the bundle format.
There are be no changes outside of adapting to this format.
Updates to existing Operators

[x] Did you create a ci.yaml file according to the update instructions?
[x] Is your submission signed?

@jmesnil since you are going to rewrite existing operator versions, i added coresponding lablel. Please confirm this action by pressing Ready for review. I till restart tests. If you are going to be ok i i will merge it

@mvalarh Tests look ok, I think we can merge this PR to finish the bundle migration :) thanks


Please release version 0.22.0 and 0.23.0 of mleap-spring-boot on dockerhub

Hi,
Only up to version 0.21.0 is released on dockerhub, could you please release the latest version?
Alternatively could you add a dockerfile for building mleap, or better instructions?
I have
sbt : 1.4.9
java: 11
scala: 2.12.13
Yet still get an error when trying to build mleap.
Thanks,
Ronan

I'll look into the dockerhub at some point (we changed who does the releases and I was not aware we even had a dockerhub artifact).
For your specific error I think you need to initialize the submodules of the mleap repo which contain the bundle logic.

Thanks that's great,
Could you please add the steps for initializing the submodules of the repo to the readme

This seems to the release process for updating dockerhub
https://github.com/combust/mleap/blob/master/travis/release.sh

Bumping this again. ☝
I ran into the need for the latest (v0.23.1 as of this writing) docker image.  Assuming the necessary versions of Scala, sbt, Java, Docker, etc. are installed already, I used the following commands from the root of the MLeap repo:
git clone https://github.com/combust/mleap.git; cd mleap
git checkout v0.23.1
sbt mleap-serving/docker:stage
cd mleap-serving/target/docker/stage
docker build -t mleap-image:v0.23.1 .

In order for us to build this directly from DockerHub, @jsleight, can you please work on getting the latest (and ideally all missing tagged versions) into there?
Thank you in advance!!

@ronandoolan2 For the build issue, I believe it's because you forget to git submodule update --init --recursive. The protobuf is submodule here. After that you should build without problem.

@cappaberra I just push
combustml/mleap-serving:0.23.1
combustml/mleap-serving:0.23.3
combustml/mleap-spring-boot:0.23.1
combustml/mleap-spring-boot:0.23.3
version lower than 0.23.0 can not be build now. So I can not build it back.
The release script in travis break for a while now. We are trying to fix it.


Streaming API Broken after Model 3 updated to 2018.18.3 04dfd3c

Expected behavior
The streaming API works as intended, and returns updates every ~250 msec.
Actual behavior
The streaming API connects successfully, but does not return anything regardless of the state of the Model 3 (awake, driving, etc - nothing is returned).
Steps to reproduce the behavior
This started as soon as my Model 3 updated to version 2018.18.3 04dfd3c. Streaming was working before that, then immediately after the update, it began returning nothing. I've restarted the car, restarted the server, tried across several different days, and the streaming API continues to return nothing.

Does the app work? If so, there may be a subtle API change we need to match. If not, then it's on Tesla's end. This repo isn't official support for the API in any way.

The official Tesla app does work. All other REST API calls work too - just the streaming API does not. So I'm guessing it may be a subtle API change that we need to match, but I also haven't heard of anyone else encountering issues (but this Model 3 version is rather new, so perhaps it just has not reached enough people yet for anyone to notice).

FWIW I'm having the same issue with my Model 3.
Joe

On May 20, 2018, at 5:37 PM, Colin Armstrong<EMAIL_ADDRESS>wrote:
The official Tesla app does work. All other REST API calls work too - just the streaming API does not. So I'm guessing it may be a subtle API change that we need to match, but I also haven't heard of anyone else encountering issues (but this Model 3 version is rather new, so perhaps it just has not reached enough people yet for anyone to notice).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/timdorr/model-s-api/issues/68#issuecomment-390525565, or mute the thread https://github.com/notifications/unsubscribe-auth/ACA4khj8uukzATNalCUjJpWAuBwg4VKhks5t0gw8gaJpZM4UGSjW.

Curious if anyone has seen this besides @seeARMS and me? Not sure where to go to troubleshoot or fix this... Open to any ideas.

I've also noticed this. I wrote an app to collect car metrics into InfluxDB, and I've had to stop collecting stream-based metrics for the Model 3. The Model S still works fine.

Even after the latest Model 3 update (2018.18.13 6a8a06e, which I received today), streaming still does not work.
@timdorr, how did you originally find the streaming API URL and params? I'm happy to start investigating if I know where to start.

Out of frustration on this, I threw Charles Proxy on the iPhone today and then fired up the official Tesla app on the iPhone. I then let it stream the telemetry and noticed back in Charles that it never actually hits streaming.vn.teslamotors.com (and yet it streams). It does, however, hit https://owner-api.teslamotors.com. I'm no proxy expert but if these results are correct, maybe they're pulling the telemetry through owner-api now? I'd love for someone else to confirm my findings if you feel like trying....

Try going to the Location view (the one with the map) and seeing what it connects to. It might be all on the same endpoint now, given that doing WebSockets is more easy to do in modern versions of Rails and that is what this weekend's maintenance was for.

I did indeed switch over to the Location view, and the endpoint never changed. Though when I tried to have Charles capture the data between teslamotors.com and my phone, it never worked. But at least I could see the endpoint before I tried capturing.

It's over HTTPS and is certificate pinned, so I don't know if you can get it working. Possibly with a jailbroken phone? I'm not sure how that works in iOS-land.
I'll try it with my car some time soon and decompile the app to see if they reference a new endpoint somewhere.

From the APK:
"STREAMING_SERVER_BASE_URL": "wss://streaming.vn.teslamotors.com/",
I'm assuming it was over http(s) before?

wss: is "WebSocket Secure", which is just HTTPS.

Right, but was the constant prefixed with http(s) before?

Looked through the APK and it seems there's a new endpoint for location streaming:
StreamingServerEndpoints={LOCATION_STREAMING:"streaming/",AUTOPARK_SUMMON:"connect/"}
I have been trying to connect and subscribe to the data feed, but the server replied with vehicle disconnected even when the car was driving.
{"msg_type":"data:error","tag":"${vehicle_id}","value":"disconnected","error_type":"vehicle_disconnected"}

Per this
post
this member says it's working for his 3, albeit at a low frequency. For my part I haven't been able to confirm that.
@jonasman did you have a chance to test it on your S?

I have confirmed that the curl command works, but doesn't continue streaming for long (in fact only returns one line)
$ curl --user '<MY_EMAIL>:<TOKEN>' -i -N  --header "Sec-WebSocket-Key: SGVsbG8sIHevcmxkIQ==" -H "Sec-WebSocket-Version: 13" -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: streaming.vn.teslamotors.com" -H "Origin: https://streaming.vn.teslamotors.com" https://streaming.vn.teslamotors.com/connect/<MY_VEHICLE_ID>
returns
`HTTP/1.1 101 Switching Protocols
Server: nginx
Date: Sat, 30 Jun 2018 06:52:04 GMT
Connection: upgrade
Upgrade: websocket
Sec-WebSocket-Accept: 2iz1EJF5jgwwj5BWHJtNB3HEdhw=
�~�{"autopark":{"autopark_pause_timeout":2000,"autopark_stop_timeout":10000,"heartbeat_frequency":500},"connection_timeout":20000,"msg_type":"control:hello"}�9{"autopark_style":"dead_man","msg_type":"autopark:style"}�={"autopark_state":"unavailable","msg_type":"autopark:status"}�6{"homelink_nearby":false,"msg_type":"homelink:status"}�Q{"latitude":43.42311535,"longitude":-101.262218,"msg_type":"vehicle_data:location"}���������������������`

@flexgames i tried to open the http streaming (not websocket) to owner-api.teslamotors.com and i get error 404.
streaming.vn.teslamotors.com works fine and i get car events.

I haven't been able to get anything interesting from the /streaming endpoint yet on my Model 3.
The /connect/<ID> endpoint, if the car is awake, has some interesting properties. First, only one session can be connected at a time - otherwise you get {'msg_type': 'control:goodbye', 'reason': 'vehicle_already_connected'}.
Sending a autopark:heartbeat_app message at heartbeat_frequency yields a heartbeat_car message like: {'msg_type': 'autopark:heartbeat_car', 'timestamp':<PHONE_NUMBER>.817666} and keeps the socket alive.
I get the following when connecting a session to my Model 3 LR (EAP, homelink not yet configured):
{'autopark': {'autopark_pause_timeout': 2000, 'autopark_stop_timeout': 10000, 'heartbeat_frequency': 500}, 'connection_timeout': 20000, 'msg_type': 'control:hello'}
{'autopark_style': 'standard', 'msg_type': 'autopark:style'}
{'autopark_state': 'ready', 'msg_type': 'autopark:status'}
{'homelink_nearby': False, 'msg_type': 'homelink:status'}
{'latitude': 47.60620, 'longitude': -122.332100, 'msg_type': 'vehicle_data:location'}

(Latitude and longitude anonymized.)
Trying to connect when my car is asleep:
{'autopark': {'autopark_pause_timeout': 2000, 'autopark_stop_timeout': 10000, 'heartbeat_frequency': 500}, 'connection_timeout': 20000, 'msg_type': 'control:hello'}
{'msg_type': 'control:goodbye', 'reason': 'vehicle_offline'}

Based on this and some other digging I'm pretty sure the /connect/<ID> endpoint will only be interesting to folks doing Summon calls.

I've been playing with the new streaming/ endpoint.
My 8 month old Model S works fine with both the old streaming endpoint and this new streaming endpoint. I can get updates 4x per second just like with the old streaming endpoint.
The strange thing with the new endpoint is i've had it confirmed with my same code that it doesn't work on Model 3, but also doesn't work on some newer Model S (Neither new or old endpoint works)!
It just returns vehicle_disconnected
I've looked through the app code and don't see anywhere it would do anything different for some cars over others so I really don't understand this response.

Another strange thing. The vehicle_disconnected error is an error code for AutoparkSummonErrorTypes which is for the summon /connect/ endpoint. So no idea what the app will do when getting that back from the /streaming/ endpoint.

After not getting data for a while, I'm now getting 401s at the old endpoint.

Is anyone getting any further? I'm only able to pull the lat/long, but not orientation, speed, etc. The lat/long I'm getting by constantly polling, but I'm missing the other features. What is frustrating is that the iPhone/Android apps obviously can pull that information, and are likely having the data streamed to them...

Are you driving the car when streaming? If it's stationary, it doesn't give the other fields.

You're right about when it's stationary.
When driving I can only get the lat/long information (besides some other useless information):
�9{"autopark_style":"dead_man","msg_type":"autopark:style"}�:{"autopark_state":"disabled","msg_type":"autopark:status"}�6{"homelink_nearby":false,"msg_type":"homelink:status"}Received 82 byte �P{"latitude":44.17315,"longitude":-126.235282,"msg_type":"vehicle_data:location"}Received 2 byte �Received 2 byte
I'm doing a fair amount of parsing and clean up just to pull that data out and use in a map..

That's the AutoPark/Summon endpoint. The streaming API is separate and provides a CSV-like stream of data. https://streaming.vn.teslamotors.com/stream/VEHICLE_ID, not the /connect/VEHICLE_ID endpoint.

The Model 3 location streaming API has been 'broken' for a while. It seems that the location part of the iOS app, at least for the Model 3, is polling every ~5 seconds using the API

The Model 3 location streaming API has been 'broken' for a while. It seems that the location part of the iOS app, at least for the Model 3, is polling every ~5 seconds using the API

What I can't figure out is how they're getting the orientation and speed if they're hitting the summon endpoint...  Unless they're using another endpoint.

I suppose they are getting it from https://owner-api.teslamotors.com/api/1/vehicles/${vehicleId}/data there is the drive_state key in the obj that includes heading and speed.

I noticed this issue and it sounds like some raw logs might be helpful.  I have sanitized most of the longer strings with 1234 but should provide the session info:
There are some native WS ping/pongs go throughout the session as well
GET https://streaming.vn.teslamotors.com/connect/12341234 HTTP/1.1
Cookie: _ga=GA1.2.12341234.12341234
origin: https://streaming.vn.teslamotors.com/
X-Tesla-User-Agent: TeslaApp/3.6.0-352/6e736b5a1/android/9
User-Agent: Mozilla/5.0 (Linux; Android 8; 12341234; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/12341234 Mobile Safari/537.36
Authorization: Basic 12341234==
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: 12341234==
Sec-WebSocket-Version: 13
Host: streaming.vn.teslamotors.com
Accept-Encoding: gzip

{"autopark":{"autopark_pause_timeout":2000,"autopark_stop_timeout":10000,"heartbeat_frequency":500},"connection_timeout":20000,"msg_type":"control:hello"}
{"timestamp":12341234,"msg_type":"control:ping"}
{"autopark_style":"dead_man","msg_type":"autopark:style"}
{"autopark_state":"ready","msg_type":"autopark:status"}
{"homelink_nearby":true,"msg_type":"homelink:status"}
{"latitude":12341234,"longitude":12341234,"msg_type":"vehicle_data:location"}
{"latitude":12341234,"longitude":12341234,"msg_type":"autopark:cmd_forward"}
{"cmd_type":"autopark:cmd_forward","msg_type":"autopark:cmd_result","reason":"","result":true}
{"timestamp":12341234,"msg_type":"autopark:heartbeat_app"}
{"autopark_state":"preparing","msg_type":"autopark:status"}
{"msg_type":"autopark:heartbeat_car","timestamp":12341234}
{"timestamp":12341234,"msg_type":"autopark:heartbeat_app"}
{"msg_type":"autopark:heartbeat_car","timestamp":12341234}
{"timestamp":12341234,"msg_type":"autopark:heartbeat_app"}
{"timestamp":12341234,"msg_type":"control:ping"}
{"autopark_state":"active_forward","msg_type":"autopark:status"}
{"msg_type":"control:pong","timestamp":12341234}
{"msg_type":"autopark:heartbeat_car","timestamp":12341234}
{"msg_type":"autopark:cmd_abort"}
{"cmd_type":"autopark:cmd_abort","msg_type":"autopark:cmd_result","reason":"","result":true}

The Model 3 location streaming API has been 'broken' for a while. It seems that the location part of the iOS app, at least for the Model 3, is polling every ~5 seconds using the API

For Tesla 3, The poll works for me only when the car is in PARKING.
When the car is moved, the /data_request/drive_state returns
{"response":null,"error":"upstream internal error","error_description":""}

Any help on how can i read the drive_state while the car is moving?

So, the bigger issue here is that the streaming API is still undocumented. I'm going to close this issue out and open a new one to track that.

This is very odd, but I’ve just had it confirmed from a user of my app that it’s started working on Model 3. I’ve made no changes to my code yet data is now streaming. I don’t know what software version this started on. Can anyone else confirm the streaming API now works as it used to on newer vehicles?

Even if it does work, I wouldn't rely on it. They are clearly focused on WebSockets for anything bidi or streaming.

Hey guys. Is the streaming API working?
I've been trying
curl --user 'email:access_token' -i -N \
   --header "Sec-WebSocket-Key: SGVsbG8sIHevcmxkIQ==" \
   -H "Sec-WebSocket-Version: 13" \
   -H "Connection: Upgrade" \
   -H "Upgrade: websocket" \
   -H "Host: streaming.vn.teslamotors.com" \
   -H "Origin: https://streaming.vn.teslamotors.com" https://streaming.vn.teslamotors.com/connect/vehicle_id

and I keep getting
Server: nginx
Date: Wed, 26 Feb 2020 21:25:23 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 83
Connection: keep-alive
X-Content-Type-Options: nosniff

Got HTTP status: 404 Not Found for . Response: {"error":"vehicle not found (404)"}```

We got it working fluently guys 👍
have a look here: https://github.com/TeslaToolkit/tesla.dart/blob/master/bin/summon.dart

I'm having identical symptoms to @dacastro4 . If anyone has managed to get it working I'd like to see what their curl call looks like.

The original streaming.vn server has been removed. I'm not sure if it still responds, but it no longer works. You need to use the WebSocket server now.

You need to use the WebSocket server now.

I thought streaming.vn was the WS server, is there another WS server or mechanism via the owners-api.teslamotors.com endpoint?

Sorry, I meant specifically that the streaming.vn.teslamotors.com/stream/ endpoint has been removed. The server is still there, just that endpoint is defunct.


[bug] Saving a Script file "with name" does not rename title bar

Ubuntu Mate 18.04
DBEaver <IP_ADDRESS>906091949
Please refere to images.
Open a file, type something, save it with File -> Save As
Window title should change. It changes if i switch to another window, but not instantaneously.
Starting situation:

After "save as":

Is issue still actual for you in the recent(6,2,3) version?

Yes

Fixed

still reproducible

Also fixed for "Save As" action.

verified


Please keep in mind that we would like to make this calculator reusable so please try to code-split necessary elements only.
As we will need two different views for our operations

Hi @CleverOscar , I am willing to work on this issue. Can you assign it to me?

Hello there @Nizarahammed, I'll go ahead and assign this issue to you, thank you in advance.

Hey @Nizarahammed checking in if this has already been worked on.

https://github.com/CleverOscar/React_Calculator/pull/4 Updated UI


CI: test dtoolkit compat with pypy

It's still CPython not Pypy
https://github.com/Zeroto521/my-data-toolkit/runs/4800082677?check_suite_focus=true

pyproj doesn't support pypy.


Cannot uninstall or enable package?

I cannot uninstall or enable this package.

What happens when you try, nothing?
Can you run try again in safe mode (atom --safe)?
Also open the Dev Tools (Ctrl-Alt-i) while you try and see if any errors are shown.

I think this is a duplicate of https://github.com/atom/atom/issues/7371 and https://github.com/atom/settings-view/issues/507 (which is the issue used to track this problem). See the advice in those issues to work around this.


drop cirrus-ci minimal tests

🚀 Pull Request
Description
This PR consolidates the minimal and full testing for cirrus-ci into one task that runs the full tests. The full tests are fully inclusive of the minimal tests.
Running both minimal and full test tasks (for all Python distributions) is a waste of time, resource and compute credits.

Consult Iris pull request check list

@tkknight Awesome, thanks :man_singer:


When 3 of 4 peers are stopped, deploy fails if subsequently start 3 peers together

Description
Deploy after stopping 3 of 4 peers. Then start the 3 peers again together. All queries fail.
Note: Instead, if start just two of the peers, with ample delays, then the network works (although there are problems in that scenario too, such as #2309 ).
fail_CAT_37.tar.gz
Describe How to Reproduce
Test case CAT_37_S0S1S2_D_I_R0R1R2_IQ.go, using v0.5 IMAGE=3e0e80a

Start a new pbft batch network.
Stop VP0 VP1 VP2
Send request for new deployment to VP3, and receive a transaction ID (70dfc8e6...)
Send Invokes.
Restart the 3 peers all at once.
Send Invokes.
Query. All queries fail. The deploy never worked. Here is my testcase error message:

Error extracted from json: res.Error.Message Query failure
POST /chaincode returned code =-32003 message=Query failure
data=Error when querying chaincode: Error:Failed to launch chaincode spec(Could not get deployment transaction for 70dfc8e6... - LedgerError - ResourceNotFound: ledger: resource not found)

it seems that your test case performs a different sequence.  I can see:

start network
deploy chaincode

Also peer3 doesn't have automatic null requests enabled, but peer0 does.

Yes, this and pretty much all other testcases start the network and deploy and send invoke(s) to each peer, before proceeding with step 2.
Thanks: I set NULLREQUEST=1 and batchsize=1 for all the peers and reran, with same results.
Also: The deploy IS processed if I restart only 2 nodes (instead of all 3, with all other things being equal), as in CAT_36_S0S1S2_D_I_R0R1_IQ.go.

@scottz64 we've migrated to using Jira for issue tracking, please open an issue there and close this one. You'll need a Linux Foundation ID to login.
Thanks


Id field for vk me.js

id field for me.js of vk provider was added.

Thanks, this has been merged with #165


[Question]: How to make yt command work?

What is your question?
I installed fabric by downloading the binary from the release page. It seems it didn't bring "yt" along. What can I do to get it?
command not found: yt

I got the same error message:
zsh: command not found: yt

So I got it installed and ran fabric -h
here I found that -- transcript is an application option of fabric ... so no need for yt?
I then ran ...
`fabric --transcript https://www.youtube.com/watch?v=ajneRM-ET1Q'
Which gave me this ...
`zsh: no matches found: https://www.youtube.com/watch?v=ajneRM-ET1Q'
Does this mean it is looking for the youtube video and didn't find it?  I tried to wrap the url in '' and ran this ...
`fabric --transcript 'https://www.youtube.com/watch?v=ajneRM-ET1Q''
Which works ... but spits out the description of a random youtube video every time ... not the description of the video url I put in.

`fabric --transcript 'https://www.youtube.com/watch?v=ajneRM-ET1Q''

My LLM just replies:
I can't access or watch YouTube videos. However, I can try to help you discuss the video if you'd like to share more about it! What's the video about?

Do you have your youtube api setup in you .config/fabric/.env?
Also what LLM are you using?  I only have gemini configed.

That exact command for me is doing a random video every time.
`fabric --transcript 'https://www.youtube.com/watch?v=ajneRM-ET1Q''
Output ...
Title: Why Are We So Bad at Predicting the Future?
Description:
In this TED-Ed video, Dr. Gerd Gigerenzer, a renowned psychologist, explores the complexities of predicting the future and why humans are often not very good at it. He discusses various cognitive biases and limitations that can hinder our ability to make accurate predictions.
Key Points:

The Illusion of Knowledge: We often overestimate our knowledge and ability to predict the future, leading to overconfidence.
Confirmation Bias: We tend to seek out information that confirms our existing beliefs, which can lead us astray.
Hindsight Bias: Once an event has occurred, we tend to believe we could have predicted it, even though we couldn't have.
The Curse of Expertise: Experts in a field may become too focused on details and miss broader patterns.
The Power of Simple Rules: Sometimes, simple rules or heuristics can be more effective for predicting than complex models.

Conclusion:
Dr. Gigerenzer emphasizes that predicting the future is inherently difficult due to the uncertainties and complexities involved. However, he encourages us to be mindful of our cognitive biases and to use a variety of tools and strategies to improve our predictions.
(base) juliusshipton@Juliuss-MacBook-Pro fabric % fabric --transcript 'https://www.youtube.com/watch?v=ajneRM-ET1Q'
Title: How To Make A Perfect Poached Egg | Chef Jean-Pierre
Description:
In this video, Chef Jean-Pierre demonstrates his technique for poaching a perfect egg. He uses a simple method that involves creating a whirlpool in a pot of simmering water and then gently sliding the egg into the center. The result is a poached egg with a tender, velvety interior and a delicate, slightly runny yolk.
Steps:

Fill a pot with about 2 inches of water and bring it to a simmer.
Add 1 tablespoon of white vinegar to the water. This will help the egg white to set more quickly.
Use a spoon to create a whirlpool in the center of the water.
Carefully crack an egg into a small bowl.
Gently slide the egg into the center of the whirlpool.
Cook the egg for 2-3 minutes, or until the white is set and the yolk is still slightly runny.
Remove the egg from the water with a slotted spoon and drain it on paper towels.
Serve the poached egg immediately.

Tips:

Use fresh eggs for best results.
Don't overcook the egg, or the yolk will become hard and dry.
If you don't have a slotted spoon, you can use a regular spoon to remove the egg from the water. Just be careful not to break the egg.
You can add other ingredients to the water to flavor the poached egg, such as salt, pepper, or herbs.

`fabric --transcript 'https://www.youtube.com/watch?v=ajneRM-ET1Q''
This command is giving me a description like this for a random video every time ...
Title: How To Make A Perfect Poached Egg | Chef Jean-Pierre
Description:
In this video, Chef Jean-Pierre demonstrates his technique for poaching a perfect egg. He uses a simple method that involves creating a whirlpool in a pot of simmering water and then gently sliding the egg into the center. The result is a poached egg with a tender, velvety interior and a delicate, slightly runny yolk.
Steps:

Fill a pot with about 2 inches of water and bring it to a simmer.
Add 1 tablespoon of white vinegar to the water. This will help the egg white to set more quickly.
Use a spoon to create a whirlpool in the center of the water.
Carefully crack an egg into a small bowl.
Gently slide the egg into the center of the whirlpool.
Cook the egg for 2-3 minutes, or until the white is set and the yolk is still slightly runny.
Remove the egg from the water with a slotted spoon and drain it on paper towels.
Serve the poached egg immediately.

Tips:

Use fresh eggs for best results.
Don't overcook the egg, or the yolk will become hard and dry.
If you don't have a slotted spoon, you can use a regular spoon to remove the egg from the water. Just be careful not to break the egg.
You can add other ingredients to the water to flavor the poached egg, such as salt, pepper, or herbs.

Which is also weird because shouldn't this just be the video transcript that is then piped into the extract_wisdom pattern ?

  -y, --youtube=                   YouTube video "URL" to grab transcript, comments from it and send to chat       --transcript                      Grab transcript from YouTube video and send to chat (it used per default).       --comments                    Grab comments from YouTube video and send to chat
I updated the example description, you can use:
fabric -y "https://www.youtube.com/watch?v=ajneRM-ET1Q" ...
--transcript is a boolean flag, to express that transcript shall be retrieved (is active per default if no YouTube flags are active)
--comments is a boolean flag, to express that comments shall be retrieved

Dude no way ...
fabric -y "https://www.youtube.com/watch?v=ajneRM-ET1Q"
This worked perfectly!
Appreciate you!

googleapi: Error 400: Developer instruction is not enabled for models/gemini-pro
Now getting this when trying to pipe transcript into extract wisdom with the command below.
fabric -y "https://youtube.com/watch?v=uXs-zPc63kM" | fabric -p extract_wisdom
If I just run 'fabric -p extract_wisdom' I get another summary of a random thing

Ok even weirder ... I changed the model I'm using (no longer gemini pro)
This command works perfectly fine ...
'fabric -y "https://youtube.com/watch?v=ajneRM-ET1Q" | fabric --stream -p extract_wisdom'
The correct video is identified and it starts to extract wisdom and starts to stream the output .. however the output is stopped and I get this message!?!
blocked: candidate: FinishReasonSafety
I asked Gemini what this is about and it said this ...

You're receiving the "blocked: candidate: FinishReasonSafety" error when accessing me (or a similar language model) through an API because the system has identified a potential safety risk in your request. This is a common safety measure implemented to prevent harmful or inappropriate content from being generated.
Here's why this might be happening:
Your prompt contains potentially unsafe or harmful content: The language model detects elements in your request that could be interpreted as:
Hate speech: This includes

Is this something builtin to Gemini preventing the put based on my request?   Seems like everything fabric side is Ok.

I just used yt-dlp (with pip) like this:
yt-dlp --skip-download --write-auto-sub --sub-lang "en" https://www.youtube.com/watch?v= ...


[CP] Remove context assertion from Android platform views using Virtual Display

issue_link
https://github.com/flutter/flutter/issues/110146
Commit Hash
dfe5c9e
Target
stable
pr_link
https://github.com/flutter/engine/pull/36046
Impacted Users
Android developers using affected plugins
Impact Description
Some Android plugins that worked in Flutter 2.x completely fail to work (due to a regression in Flutter 3.0).
Workaround
Plugin developers would have to make a significant change to their plugin, which would likely have other side effects. There is no workaround for clients of the plugins if the developers don't do that.
Risk
low
Test Coverage
yes
Validation Steps
Run the example in https://github.com/flutter/flutter/issues/110146. The video should render.

From the issue context this seems to be a high priority fix, but the cherry pick is fairly large.  Are we assessing this as low risk @stuartmorgan?

Ugh, it re-targetted the branch to main and I didn't notice. Let me fix that.

Okay, now it should look more reasonable :)
Note SingleViewPresentation.java is the only production change; the rest is test code.

@stuartmorgan thank you, this one scared me a bit!
@ditman would you be the right person to take a second look?

Merged in Flutter 3.3.2.


Add this info on command line completion to  docs/readme

You can get tab completion for vim commands in the window like this:  vim.keymap.set('i', '<tab>', '<c-x><c-v>', {buffer=true})
For details see :h i_CTRL-X_CTRL-V
Sadly this doesn't merge filetype completion like other commands.
This is how I map it. I set filetype to be cmdpalette in opts.
      local function bufmap()
        vim.keymap.set('i', '<tab>', '<c-x><c-v>', {buffer=true})
      end
      vim.api.nvim_create_autocmd("filetype", {
        pattern="cmdpalette",   callback=bufmap
      })

Thank you for the info. I have added it to the docs.


fix(VTK): output vtk files on Windows

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


Update of "compose video link button"

Rebase/squash etc of #6083.

Merged, after a few tweaks:

Changed it to use the new compose_static.insert_syntax_and_focus method.
Added a title attribute to the markup.

Thanks @rishig and @jackrzhang!
@rishig I think there's some important follow-up things we'll want to do in terms of documenting that this exists (both in user docs and landing pages), and we should also think about how to help organizations that don't want their users using Jitsi for whatever reason (I can see either making the format string a setting, allowing realm admins to disable this, or various other options).  Can you track this bundle of things?

Opened #7449 for the user documentation, and #7450 for adding to landing pages.
For the setting to disable Jitsi .. is this something we'd want to do soonish, or would it make sense to wait until we've also added integrations for hangouts, skype, etc? I think once we have a few more set up, it will inform what we want the setting to look like.


HTML

HTML
User Story
As a bootcamp student
I want the pre-work notes to be structured on a webpage
So that I can easily find and read information
Acceptance Criteria
GIVEN a pre-work study guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and Javascript with associated notes listed

Successfully merged code with the main branch.


add yeet syntax support

Implementation of https://github.com/rust-lang/rust/issues/96373
Not sure on how syn approaches experimental syntax, so feel free to close if this is out of scope for now

Given that this is still explicitly experimental, not adding it to syn makes sense to me 👍
(It might make sense once there's an accepted RFC with a real keyword, even if it's not yet stable at that point, but when it's just an exploration I wouldn't want to force this on the library forever.)


wsl: Able to erase prompt characters one-by-one on Swedish QWERTY keyboard

Environment
Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0
wsl 1, Ubuntu 18.04
bash

Steps to reproduce

Using a Swedish QWERTY keyboard (not sure if it matters)
Open wsl 1 (Ubuntu 18.04) using bash
Pressing AltGr + ~ lets me later press backspace to erase one character from my prompt.

Expected behavior
To only erase the last character
Actual behavior
mycomputer ~/code/$
<pressing AltGr + ~ + s>
<pressing three backspaces>
mycomputer ~/code/
<pressing AltGr + ~ + s>
<pressing three backspaces>
mycomputer ~/code
<pressing AltGr + ~ + s>
<pressing three backspaces>
mycomputer ~/cod
<pressing AltGr + ~ + s>
<pressing three backspaces>
mycomputer ~/co
etc.

Swedish QWERTY reference: https://upload.wikimedia.org/wikipedia/commons/e/e0/KB_Sweden.svg

This is also #521


"Nădrag" and "Crivina" are listed in the drop-down menu

Description:
"Nădrag" and "Crivina" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Nădrag" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Nădrag, TIMIȘ (Nădrag)" and "Comuna Nădrag, TIMIȘ".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Crivina" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Crivina, TIMIȘ (Nădrag)".


Low performance on browser webpage elements access

When I'm trying to access Web Browser window content (Chrome for example), I'm able to retrieve AutomationElements structure and access webpage elements from framework tree.
But the problem is that accessing webpage elements is too slow for UI Automation due to tree size.
Currently I'm using this approach:
...
Automation.AddAutomationFocusChangedEventHandler(OnFocusChangedHandler);
...
this._application = FlaUI.Core.Application.Attach(this.ProcessId);
this._automation = new UIA3Automation();
...
private void OnFocusChangedHandler(AutomationElement elementFocused)
{
   ...
   var mainWindow =  this._application.GetMainWindow(this._automation, TimeSpan.FromSeconds(5));
   var document = this._mainWindow?.FindFirstChild(p =>
        p.ByControlType(FlaUI.Core.Definitions.ControlType.Document));
   var someElementOnPage = document.FindAllDescendants(cf =>
       cf.ByControlType(FlaUI.Core.Definitions.ControlType.ListItem).And(cf.ByName("SomeName")));
   // here I have about 40-50 seconds running query

}

Is there any proper way to interacting with web page content in way as if it will be simple css or xpath selector?

The problem with large trees if that if you use FindChild or FindDescendant methods, it will in the worst case go thru the entire tree. Try to narrow down the search and maybe do muliple searches (for example first find a grid, then inside find a table, then inside, finde a row, then inside finde a cell, ...). There are Find...Nested methods which make multiple searches easier or you could also try Find...ByXPath and see if that improves performance.

The problem is that to do first limiting I need to find element (a grid, for example). The only one fast way to do this is direct path accessing without any querying.
... and yes, seems to be it's only one way to improve performance to limit search step by step.


💡 Integrate Eternl mobile dApp browser support

Area
Wrapper
Is there new design needed?
No
What?

Eternl mobile uses cardano-dapp-connector-bridge to be able to connect to dApps
Integrating this support would allow for Eternl mobile users to use GovTool

Why?

Supporting more wallets (and especially mobile wallets) is always good

How?

Work with eternl team to integrate https://github.com/Tastenkunst/cardano-dapp-connector-bridge/tree/main
Test cardano-dapp-connector-bridge with CIP95 and GovTool

(Optional) User Story with acceptance criteria
As a eternl mobile user
I want to be able to use GovTool
so I can take part in governance

We started looking into publishing the bridge on npm for easier usage:
https://www.npmjs.com/package/@eternl/cardano-dapp-connector-bridge
Readme needs a revision to reflect that, but you can now install the dependency and just import the function.
If also includes the changes by @Ryun1 added here: https://github.com/Tastenkunst/cardano-dapp-connector-bridge/pull/2


Extra space when disabling git commit time

Recently been using this theme and loving it, this is extremely nit picky, but for such an aesthetic theme it stands out!
If you disable the git time, there's a gap between the spacing where it used to be:

Is it possible to make the spacing consistent? Thanks

It's annoying, yeah. It's even there even when displaying git time, I think. Or maybe my local version has a similar issue. Can you confirm if it happens with git time enabled?
Thanks.

Ah, you are right, same spacing enabled and disabled.

I'll push a fix in a bit.

Done! Seems ok on my end. I'd appreciate if you double checked and feel free to open an issue or submit a PR if you find any other issues.


fix details element in IE so it opens on enter

We use the details polyfill from GOV.UK elements to make the <details> elements work in all browsers. However the DAC found a problem, in that a keyboard user cannot expand a <details> element using the enter/return key, and has to use the space bar. Pressing enter/return submits the form.
To work around this I created a local copy of the polyfill and patched it to work as expected in all browsers (IE9 and up – IE8 works as before, i.e. the <details> element functions with mouse and with space bar). Tested and working with both space bar and enter/return key.

👍


Communication between cli and daemon

Close #21

Please handle the deletion of polydrive.sock file in order to have gracefull shutdown.  SIGKILL + SIGINT
Make cargo test run onto ubuntu 18/21 and macOs 11, see github-env for more infos
Add a test in main.rs to test whether the socket is working properly

Hi @JeremyLARDENOIS, @thomasgouveia finished your PR for the cli & communication with sockets. Your help was precious for his work. However, can you now focus yourself on testing if sockets are working properly in tests ? Even though we talked that we might not need it, it should be a good exercie for you to do that.
There are macros to test for each platform you run tests on. Use them in order to have tests on this feature.

Ubuntu 21 doesn't exists in github actions https://github.com/actions/virtual-environments

@AlexandreBrg which part do you want that i remove so ?


Fix HDF5 usage (make optional/configurable)

It makes sense to keep HDF5 configurable for users because they do not necessarily want to use the library just for obtaining a corresponding simplicial complex reader.
Ideally, we should do the following:

Check for HDF5
Set a provisional HDF5_FOUND variable
Make it configurable by users

Alternatively, we could try to detect proper installations by attempting to compile a snippet. It might be possible to use CHECK_CXX_SOURCE_COMPILES for this purpose.

Fixed!


Create a button to change the dark and light mode issue #2

Hey @Sanskriti1102  I would like to work on issue #2 as no one has not solved this issue till now.
please assign me this issue under the label "GSSoC-Extd'24" and "Hacktoberfest'24" to make contribution count.

@coder-writes make a completly working dark light mode functionality on all the pages

how many points I will get for @level3 ?

looking for some web related projects to work on i love to work on this issue under gssoc 24 extnd. can you assign that to me ?

Hey @Sanskriti1102, I tried to implement the dark and light mode in the website but noticed one thing that most of the components of the website will be designed for the dark mode only, and if they made to be implemented in the light mode then they will provide the bad result.

how many points I will get for @level3 ?

45 points

Hey @Sanskriti1102, I tried to implement the dark and light mode in the website but noticed one thing that most of the components of the website will be designed for the dark mode only, and if they made to be implemented in the light mode then they will provide the bad result.

can you change the text colors and try

what about thee

Hey @Sanskriti1102, I tried to implement the dark and light mode in the website but noticed one thing that most of the components of the website will be designed for the dark mode only, and if they made to be implemented in the light mode then they will provide the bad result.

can you change the text colors and try

what about the logo, images and all

what about thee

Hey @Sanskriti1102, I tried to implement the dark and light mode in the website but noticed one thing that most of the components of the website will be designed for the dark mode only, and if they made to be implemented in the light mode then they will provide the bad result.

can you change the text colors and try

what about the logo, images and all

Just mention which all images and logos will be required we will look into it

@Krishi1211 I would like to work on this issue

@coder-writes if you are working on this issue do let us know what all you need or else i would have to assign it to @akshatjaiin ?

I will submit my work by the evening. @Sanskriti1102


ResellerClub WHOIS bugfix

Previously, when you submitted a whois change request, the ResellerClub module would find the customer for the domain, get the default contacts for the customer and get the registrant contact ID for that. However, if the domain did not use the customer's default contact, the contact changes would not be reflected in the actual domain order, effectively rendering the edit whois function useless.
In this version, it forgoes the customer and gets the registrant ID directly from the domain name. This ensures the domain is always updated.

I leave fixing the unit tests up to you, I have no idea how that mocking thingy works.

I have fixed that already, should be included in the next version.


tests: can: Fix name of CAN msg and filter structs

The name of the CAN message and filter was changed so this
needs to be changed too here.
Fixes #13716
Signed-off-by: Jukka Rissanen<EMAIL_ADDRESS>

Codecov Report

Merging #13719 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #13719      +/-   ##
==========================================
- Coverage   52.28%   52.24%   -0.04%
==========================================
  Files         307      307
  Lines       45413    45413
  Branches    10508    10508
==========================================
- Hits        23742    23726      -16
- Misses      16886    16898      +12
- Partials     4785     4789       +4

Impacted Files
Coverage Δ

subsys/testsuite/ztest/include/ztest_assert.h
35% <0%> (-35%)
:arrow_down:

subsys/testsuite/ztest/src/ztest.c
65.28% <0%> (-7.44%)
:arrow_down:

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 69b6cc8...b2609af. Read the comment docs.


in-prog

(maintenance release, do not use)
needed a version to anchor some build stuff with because we had some packages change names glub

bypassing branch protection as current builds will fail


Name order specification as scope for serials

ref: https://github.com/bm-sms/daimon-news/pull/551#discussion_r68185730

🙆


Ancient Cloudfoundry Operations version

We intended to use Spring Cloud Cloudfoundry Discovery (which depends on Spring Cloud Cloudfoundry Commons) in our webflux-based project using Spring Boot 2.3.0.RELEASE and Spring Cloud Hoxton.SR5. Unfortunately, colleagues ran into issues and the only solution that worked for them was to update (explicitly override) the following dependencies:
   <dependency>
      <groupId>org.cloudfoundry</groupId>
      <artifactId>cloudfoundry-client-reactor</artifactId>
      <version>${cloudfoundry.operations.version}</version>
    </dependency>

    <dependency>
      <groupId>org.cloudfoundry</groupId>
      <artifactId>cloudfoundry-operations</artifactId>
      <version>${cloudfoundry.operations.version}</version>
    </dependency>

... where cloudfoundry.operations.version now points to 4.8.0.RELEASE.
I investigated a bit and saw that Spring Cloud Cloudfoundry Commons still uses 3.9.0.RELEASE of these dependencies and I was wondering why? Is there a chance this can be bumped to a more recent version? E.g. Spring Cloud Deployer Cloudfoundry already uses 4.1.x.
The version is defined in Spring Cloud Cloudfoundry's root pom.xml as:
<cf-java-client.version>3.9.0.RELEASE</cf-java-client.version>

For now, we have removed Spring Cloud Cloudfoundry Discovery altogether and just reference the dependencies given above directly.
Thanks!

This change can certainly be made on master since it's a major library version upgrade.

Closed via #73


"Too many requests, please try again later." through job submission API

Organization Name: Advantech

Short summary about the issue/question:
Get "Too many requests, please try again later." in different job submission API usage cases.
Brief what process you are following:
Get "Too many requests, please try again later." in the following 2 job submission cases:

Using API in bash script to submit 120 1 GPU jobs in an 8 GPU resource (Two 4 GPU VMs) environment. 60 of them will be places into waiting status and 60 of them will be rejected with "Too many requests, please try again later." response.
After the completion all the running job in case 1, I still get "Too many requests, please try again later." response even if I submit 1 job through API within certain time.

How to reproduce it:
Just follow step 1 and step 2 in the above description

OpenPAI Environment:

OpenPAI version: v1.0.1
Cloud provider or hardware configuration: OpenStack VMs
OS (e.g. from /etc/os-release): ubuntu 16.04 LTS
Hardware (e.g. core number, memory size, storage size, GPU type etc.): 8 GPUs

Hope to know how to change  the above limitation if the above issues are raised by some configurable limitation.

https://github.com/microsoft/pai/blob/fbba438da73a4c9c9050b9d747fc9dfc6fbda51e/src/rest-server/config/rest-server.yaml#L21-L23

@abuccts
The capacity of concurrent job submission can be changed with the above variables.
Thanks to sharing.


COMP-325 Add support for Python 3.10

The line python_requires = ~= 3.9 in setup.cfg should be updated too.

The line python_requires = ~= 3.9 in setup.cfg should be updated too.

@hay-k, according to this https://peps.python.org/pep-0440/#compatible-release,
~= 3.9
equals to

= 3.9, == 3.*

which should cover versions 3.9 and 3.10. Or did I get this wrong?

@hay-k, according to this https://peps.python.org/pep-0440/#compatible-release,
~= 3.9
equals to

= 3.9, == 3.*

which should cover versions 3.9 and 3.10. Or did I get this wrong?

Yes, you are correct, no need to change that one


confirm container CRUD and documentation

Source
https://github.com/ArctosDB/arctos/issues/6783
Summary
Make sure docs and roles align and function as specified in https://github.com/ArctosDB/arctos/issues/4084#issuecomment-1045453357
User Interface Changes
none
Data Structure Changes
none

I am closing this issue as inactionable, possible revisit needed after resolution of https://github.com/ArctosDB/arctos/issues/7127


How do we disable some warnings?

v.1.0.0
How do we disable some warnings with this new extension?
For example Missing @param tag for xxxxx(hints(8) or Can be replaced with multicatch or several catch clauses catching specific exceptions hints(11)?

Merged https://github.com/oracle/javavscode/pull/128


Using --policy should imply --user-permissions-boundary=none

I ran into this problem here:

https://github.com/simonw/simonwillisonblog/issues/273#issuecomment-1180797868

If you use --policy but forget to set --user-permissions-boundary=none you are likely to generate credentials that can't be used, because they only work with S3.

I also added --statement in:

#72

Used like this:
s3-credentials create simonw-ocr-demo-bucket --statement '{
  "Effect": "Allow",
  "Action": "textract:*",
  "Resource": "*"
}' -c > ocr.json

Passing that option should assume --user-permissions-boundary=none too.


Wallet is limited to 20000 transfer

Are you sure the problem "it is limited to 20 000 coins in 1 tx" and not some "data size" limit on a tx?
I suspect you have tried to make tx with ALOT of small inputs  - spending each input meaning placing a specific "sigscript" into the tx AND it has a size, when you have lots of inputs being spent in single tx the size of that tx could became large. Most of cryptos have the limitations. Have you heard about the war between 1 MB block size and 2 MB block size on BTC?
Yep thats the thing - it is related. I have transferred, if i remember, more than 20 000 coins at once - just with larger input tx.

Are you sure the problem "it is limited to 20 000 coins in 1 tx" and not some "data size" limit on a tx?
I suspect you have tried to make tx with ALOT of small inputs - spending each input meaning placing a specific "sigscript" into the tx AND it has a size, when you have lots of inputs being spent in single tx the size of that tx could became large. Most of cryptos have the limitations. Have you heard about the war between 1 MB block size and 2 MB block size on BTC?
Yep thats the thing - it is related. I have transferred, if i remember, more than 20 000 coins at once - just with larger input tx.

Hmm yea I haven't heard about that before.  To be honest I haven't had the time to dig in and troubleshoot the issue :)
I know the daemon doesn't have an issue sending more than 20k so I thought it was a limitation on the wallet/GUI.

well.... maybe there is some else factor
Any other faced that problem?

well.... maybe there is some else factor
Any other faced that problem?

So far I've only experienced it, haven't heard of anyone else having this issue but I can check around to confirm.

After careful consideration, we've determined that this is not an issue and we will keep the max send at 20k coins for the wallet GUI.  Since users can still send through the RPC we will create a guide for that.
Ticket: https://cmusicai.atlassian.net/browse/CMS-5

so, this ticket closed?

Correct


SharedCell isn't documented but linked from the docs

https://fluidframework.com/apis/cell/sharedcell/ is linked from the DDS page and doesn't have a TSDoc.

Triage: We'd like to have a class description and some basic usage information in the TSDocs. Some of this info may already be in the package readme.

@ChumpChief are you working on this?


Fixed package.json and bower.json extra name object and correctly setting project name

:+1:  its better now.

Awesome 😀


[Bug]: Error when creates a new order of DLM without configuring the Sys tenant user

ODC version
4.2.1
OB version
ALL
What happened?
The error message is unclear when creating a new order of DLM without configuring the Sys tenant user.
What did you expect to happen?
Display detailed error information when creating a work order fails
How can we reproduce it (as minimally and precisely as possible)?
Create a new order with a datasource without configuring the Sys tenant user.
Anything else we need to know?
No response
Cloud
No response

SYS tenant Checker has been removed.


suggestion: expandable labels should be clickable

me again :-)
a small thing that I noticed is that expanding nodes can be done by clicking the arrow, or the collapsed { ... } block, but it's not possible to expand a node by clicking the key name. see video below.

I made a small change locally to this line so that instead of
{field && {field}:}
it reads
{field && {field}:}
and that does exactly what I'm looking for:

there are some small styling issues with this though:

the  doesn't have cursor: pointer, which would be useful to make it clear that the node can be clicked
a much smaller issue is that when clicking fast-ish on the node to expand/collapse it, you may end up selecting some of the text by mistake. that can be fixed by setting user-select: none -- this is probably optional (and would also introduce a weird inconsistency in that some nodes' text would not be selectable, while others would be)

I'd be happy to contribute a fix -- would you prefer a new style to be created, something like expandableLabel, and that (based on label) would have the cursor:pointer declaration..?
thank you!

Hi! Thank you for the fix and suggestion!
I think some users may stil want to just select the field name with double click (for instance to copy it).
So it would be good to support both use cases with expandableLabel style and fallback to the label when first is not set. And make expanding by click on the field name optional as well.

hey, I just took a stab at implementing this in #27 -- feel free to leave comments here or in the PR. I took liberty with the naming (clickToExpandNode for the optional prop and clickableLabel for the style class) -- but obviously let me know what makes sense
I also added tests and was glad to keep the test coverage at 100% :-) cheers!

Thanks! just merged and released version 1.4.0 👍

thank you!!


Have the possibility of full workspace scanning instead of per-file

As the mypy documentation mentions in the third paragraph (see below quote), it's expected behavior to still have type checking when pointing to a file or module.

Note that this flag only affects recursive directory tree discovery, that is, when mypy is discovering files within a directory tree or submodules of a package to check. If you pass a file or module explicitly it will still be checked. For instance, mypy --exclude '/setup.py$' but_still_check/setup.py.

It would be a nice feature to have a mypy-type-checker.workspaceScanning option, to scan the targeted workspace.

@basvandriel This feature is already in pre-release. Please try it out. The setting is mypy-type-checker.reportingScope set it to workspace.


Problems running a site in Production mode

We get some odd errors after installing Honeypot on a site running in production mode. All of a sudden the site can't find views associated with ViewComponents originated from Razor class libraries. Any thoughts about this? Works great in Development mode.

Forgot to mention that these errors only appears on sites that has Razor class libraries and only in Production mode. Other sites works fine in production mode


Metadata comes None on on_chat_resume method

When updating chainlit I have found that the metadata when restoring a conversation comes always as None

@PabloCaceresRamos @hayescode Would one of you perhaps help out by providing the specific steps to replicate this problem + a minimal demo app? Or better yet, a PR with a unittest failing on this problem?

This is probably a code problem, not a problem with the data layer. I successfully return metadata and use it to select/instantiate the chat_profile and even chat settings associated with the thread.
@PabloCaceresRamos can you share the code?

@PabloCaceresRamos Poke.


sampling: use array instead of r_1, r_2, r_3

(cherry picked from commit 4e7d2b4ed8c3254ba2be812b489e07e2a16d00d9)

Yeah, this generates much worse code due to all of the array index modification.
Remember, the existing implementation only costs two additional instructions to do the "shift history over by one" since we already have those values loaded in registers.

Not to mention that it adds a branch (if (idx == 3)) which costs something too.

Current implementation: https://godbolt.org/z/c7Y6aeMor
Proposed implementation: https://godbolt.org/z/K3j3hYb54

@mck1117 one reason - easier to read.
Second reason - attempt to make 4-phace AC calculation. Failed. https://github.com/rusefi/wideband/pull/6/commits/4caf09019755f4cba8f47b6bf5fc066e1183c61c

I'm going to disagree that this is easier to read.

Closing for now unless we can find a benefit to doing it this way.


Variant field, desc field not ignored to group parts

I run KiCost 1.42 like this on the attached file:
kicost -d 10 -i Manettes.xml -e digikey newark mouser farnell rs tme -o BOM_3370dummy.xlsx -var '^(.*)$' --overwrite -np 4 --ignore_fields variant -f comment S1MN S1PN S2MN S2PN
Notice that it is requested that the 'variants' field.
Yet the generated BOM file does not group the 1uF capacitors.
Also, the 1.41 documentation says:

KiCost groups similar parts together and places their information on a single line of the generated spreadsheet. For parts to be grouped, they must:

come from the same library (e.g., “device”),
be the same part (e.g., “R”),
have the same value (e.g., “10K” but note that this would not match “10000” or “10K0”), and
have the same footprint (e.g., “Resistors_SMD:R_0805_HandSoldering”).

It is not indicated that they should have the same description, the same variant, etc.
As you can see, the description field is empty.
When I request KiCost to ignore the "Desc" field to allow grouping on it, it fails:
kicost -d 10 -i Manettes.xml -e digikey newark mouser farnell rs tme -o BOM_3734dummy.xlsx -var '^(.*)$' --overwrite -np 4 --ignore_fields desc variant -f comment S1MN S1PN S2MN S2PN

Traceback (most recent call last):
File "/usr/local/bin/kicost", line 9, in
load_entry_point('kicost==0.1.42', 'console_scripts', 'kicost')()
File "/usr/local/lib/python2.7/dist-packages/kicost-0.1.42-py2.7.egg/kicost/main.py", line 260, in main
scrape_retries=args.retries, throttling_delay=args.throttling_delay)
File "/usr/local/lib/python2.7/dist-packages/kicost-0.1.42-py2.7.egg/kicost/kicost.py", line 262, in kicost
user_fields, '-'.join(variant) if len(variant)>1 else variant[0])
File "/usr/local/lib/python2.7/dist-packages/kicost-0.1.42-py2.7.egg/kicost/spreadsheet.py", line 174, in create_spreadsheet
parts, user_fields, collapse_refs)
File "/usr/local/lib/python2.7/dist-packages/kicost-0.1.42-py2.7.egg/kicost/spreadsheet.py", line 413, in add_globals_to_worksheet
desc_col = columns['desc']['col']
KeyError: 'desc'

I would like to join all 1uF capacitors (in this example) on the same line.
Manettes.zip
Manettes_dummy.xlsx
Manettes_expected.xlsx
Edit:
I tried the new option  --group_fields  mentioned in #102:
kicost -d 10 -i Manettes.xml -e digikey newark mouser farnell rs tme -o BOM_4636dummy.xlsx -var '^(.*)$' --overwrite -np 4  --group_fields desc variant -f comment S1MN S1PN S2MN S2PN
(with group_fields, without ignore_fields) does not provide the expected result (grouping 1uF capacitors).
And
kicost -d 10 -i Manettes.xml -e digikey newark mouser farnell rs tme -o BOM_4636dummy.xlsx -var '^(.*)$' --overwrite -np 4 --ignore_fields desc variant --group_fields desc variant -f comment S1MN S1PN S2MN S2PN
(with ignore_fields and group_fields) generates an empty BOM.

@mdeweerd try the last modification in my personal branch (using the --group_fields and not the --ignore_fields). I am waiting @xesscorp do the v0.1.43, this fix will be in the v0.1.44 next month, when I want to, by default, merging the description, as your understanding of the user documentation (that I think is the correct).

I used:
 kicost -i ./Manettes.xml -q -w --no_scrape -grp var desc libpart -var '^(.*)$' -grp variant desc

@mdeweerd, I change more the code (for the next version, probably, but available on my Git). This version deal automatically with this situation, not need -grp of --ignore_field.

Hi @hildogjr
Thank you for the update - I may wait for the update to test this.
Kind regards
Mario

Hi @hildogjr
I tried the version from you hildogr/master today.
The command
kicost -d 10 -i Manettes.xml -e digikey newark mouser farnell rs tme -o BOM_3501dummy.xlsx -var '^(.
*)$' --overwrite -np 4 -f comment S1MN S1PN S2MN S2PN
Generated this:

There are two lines with 470nF values (one starting with C10, the other starting with C7).
C19 has the desc field filled in, the others have no desc field - so the other should "inherit" the desc field from C19, not be shown as an empty "desc".

Other lines have similar behaviors.
[Other "issue": when opening the excel file, the multiline fields appear as 1 line.  I have to enter the field and fake editing it to have two lines shown
Here is the XML file:
ManettesXML.zip].

Missing just the desc multiline issue.

All fixed, was just a missing [...].
Other tip: use --no_scrape instead of -e digikey newark mouser farnell rs tme


Fixes for #6, #7 and #11

#6 : Changed the fields with *_total to *_expected.
#7 : Created a global variable that is used to filter out FASTA columns for the output.
#11 : Updated the Enteritidis Scheme to 0.7.0.

I added two tests for the Enteritidis subtyping schemes. One is for a consistent result, and one is for inconsistency. I tested these values with the new Enteritidis scheme.


Add a project setting to make the root viewport transparent (3.x)

3.x version of https://github.com/godotengine/godot/pull/67104.
This allows creating a project with a transparent window without having to write any script.
Testing project: test_viewport_transparent_background_3.x.zip
Preview

Thanks!


Langchain breaks with OpenAI>=1.0: AttributeError: 'NoneType' object has no attribute 'create'

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
    chain = (
            {
                "question": get_question,
            }
            | prompt
            | model
            | StrOutputParser()
    )

    result = await chain.ainvoke(input_text)

Error Message and Stack Trace (if applicable)
test_prompt_results.py:56:

../services/chain.py:147: in dispatch2
result = await chain.ainvoke(input_text)
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_core/runnables/base.py:2436: in ainvoke
input = await step.ainvoke(
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_core/language_models/llms.py:299: in ainvoke
llm_result = await self.agenerate_prompt(
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_core/language_models/llms.py:643: in agenerate_prompt
return await self.agenerate(
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_core/language_models/llms.py:1018: in agenerate
output = await self._agenerate_helper(
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_core/language_models/llms.py:882: in _agenerate_helper
raise e
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_core/language_models/llms.py:866: in _agenerate_helper
await self._agenerate(
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_community/llms/openai.py:1196: in _agenerate
full_response = await acompletion_with_retry(

llm = OpenAIChat(client=APIRemovedInV1Proxy, model_name='gpt-4o')
run_manager = <langchain_core.callbacks.manager.AsyncCallbackManagerForLLMRun object at 0x11d9225d0>
kwargs = {'messages': [{'content': 'Human: Role: You are an advanced tender developer focused on generating winning tender resp...ertise, demonstrate the ability to cope with volume of works?\nHelpful Answer:  ', 'role': 'user'}], 'model': 'gpt-4o'}
async def acompletion_with_retry(
    llm: Union[BaseOpenAI, OpenAIChat],
    run_manager: Optional[AsyncCallbackManagerForLLMRun] = None,
    **kwargs: Any,
) -> Any:
    """Use tenacity to retry the async completion call."""
    if is_openai_v1():

      return await llm.async_client.create(**kwargs)

E           AttributeError: 'NoneType' object has no attribute 'create'
../../../opt/anaconda3/envs/mytender/lib/python3.11/site-packages/langchain_community/llms/openai.py:133: AttributeError
Process finished with exit code 1
Description
Doing async calls to langchain seem to break when I update OpenAI package to version >=1.0
System Info
latest version from github or any other version is affected

Try asking question using chain.invoke('question' : 'input_text')

but I need it to handle async


20 tune json parsing performance

Current coverage is 97.79% (diff: 97.79%)

Merging #21 into master will increase coverage by 0.62%

@@             master        #21   diff @@
==========================================
  Files             1          5     +4
  Lines           106        272   +166
  Methods          33         56    +23
  Messages          0          0
  Branches          5         30    +25
==========================================
+ Hits            103        266   +163
- Misses            1          3     +2
- Partials          2          3     +1

Powered by Codecov. Last update dead310...a9379cc


[Bug] Library is not working in go 1.21

Is there an existing issue for this?

[X] I have searched the existing issues

Does this issue reproduce with the latest release?

[X] I have upgrade to the latest version

Steps To Reproduce
Library is not working as expected on 1.21.
Tests from this library are failing:
go test ./...
*** GOOS: darwin ***
*** GOARCH: arm64 ***
#numField: 50
#offsetGoid: 152
#offsetPaniconfault: 181
#offsetGopc: 280
#offsetLabels: 344
--- FAIL: TestObject (0.00s)
thread_local_map_test.go:13:
Error Trace:	./thread_local_map_test.go:13
Error:      	Expected and actual point to the same object: 0x10503ef00 &routine.object{}
Test:       	TestObject
FAIL
FAIL	github.com/timandy/routine	3.298s
ok  	github.com/timandy/routine/g	(cached)
FAIL

Also output of tests on Linux, AMD64:
go test ./...

--- FAIL: TestFutureTask_Routine_Complete (0.87s)
panic: RuntimeError: Task execution timeout after 100ms.
   at github.com/timandy/routine.(*futureTask).timeout() in /home/dovechkin/workspace/routine/future_task.go:116
   at github.com/timandy/routine.(*futureTask).GetWithTimeout() in /home/dovechkin/workspace/routine/future_task.go:92
   at github.com/timandy/routine.TestFutureTask_Routine_Complete() in /home/dovechkin/workspace/routine/future_task_test.go:497
   at testing.tRunner() in /usr/local/go/src/testing/testing.go:1595
   --- End of error stack trace ---
   created by testing.(*T).Run() in /usr/local/go/src/testing/testing.go:1648 [recovered]
        panic: RuntimeError: Task execution timeout after 100ms.
   at github.com/timandy/routine.(*futureTask).timeout() in /home/dovechkin/workspace/routine/future_task.go:116
   at github.com/timandy/routine.(*futureTask).GetWithTimeout() in /home/dovechkin/workspace/routine/future_task.go:92
   at github.com/timandy/routine.TestFutureTask_Routine_Complete() in /home/dovechkin/workspace/routine/future_task_test.go:497
   at testing.tRunner() in /usr/local/go/src/testing/testing.go:1595
   --- End of error stack trace ---
   created by testing.(*T).Run() in /usr/local/go/src/testing/testing.go:1648

goroutine 4349 [running]:
testing.tRunner.func1.2({0x5e8b40, 0xc000100190})
        /usr/local/go/src/testing/testing.go:1545 +0x238
testing.tRunner.func1()
        /usr/local/go/src/testing/testing.go:1548 +0x397
panic({0x5e8b40?, 0xc000100190?})
        /usr/local/go/src/runtime/panic.go:914 +0x21f
github.com/timandy/routine.(*futureTask).GetWithTimeout(0xc000a26200, 0x4d5000?)
        /home/dovechkin/workspace/routine/future_task.go:97 +0x1f5
github.com/timandy/routine.TestFutureTask_Routine_Complete(0xc000a0eb60?)
        /home/dovechkin/workspace/routine/future_task_test.go:497 +0x84
testing.tRunner(0xc000a0ed00, 0x635ab8)
        /usr/local/go/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 1
        /usr/local/go/src/testing/testing.go:1648 +0x3ad
FAIL    github.com/timandy/routine      25.452s
ok      github.com/timandy/routine/g    1.737s
FAIL

Expected Behavior
Library tests should pass
Current Behavior
Library tests are failing
Environment
go 1.21
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@ovechkin-dm Thanks for your report, I am looking at this problem.

Hello @ovechkin-dm
Could you re-run the test with the commit-version b70d1ad48cc7da813acee30f5b093f091be83b75

@ovechkin-dm  ping

Long time no response, I will clos it.
If have any questions. Please reopen this issue.


Use current page protocol for embed links, fixes #326

Fixes issues with embedding youtube videos in HTTPS pages (for instance). Fixes #326

@aino
Any traction on merging this fix? OR is this repo not being maintained anymore?


Deployment is broken due access token

I will use @guidesmithsbot to generate a deployment token that can be used to deploy js-pills and similar projects.
Ref: Waiting for https://github.com/onebeyond/admin/issues/22 to be completed

This has been solved, https://github.com/onebeyond/js-pills/actions/runs/3938773185!


Demo page has "Webpack App" title

Do you want to request a feature or report a bug?
bug
What's the current behavior?
As you can see on the screenshot below, page title is "Webpack App", which I suppose is not the desired one.

What's the expected behavior?
An informative title for the demo page.

This will be fixed once #997 is merged.


add "pumpkin" alias

Coverage increased (+0.3%) to 93.498% when pulling 19b57969e7cd1028040a54c3d01f6ecb6ff88a3e on sullis:jack_o_lantern-pumpkin into 8cf5fbe0d7c1020b926791f2b342a263ed07bb0f on vdurmont:master.


ExtUvLoop: Fix reporting connection refused errors

This PR fixes reporting "connection refused" on affected installation of ExtUvLoop. I have started with adding relevant tests to the test matrix, fixing the underlying issue and included additional tests to run run this on Windows as well.
Resolves #188
Builds on top of #205 (see last commit to omit unrelated changes)
Refs #206 to skip a similar problem for the StreamSelectLoop on Windows only.

It works! :tada:
The underlying epoll_wait() reports EPOLLOUT|EPOLLERR|EPOLLHUP on
the affected file descriptor, which ext-uv emits as an error code
EBADF with no events attached. We explicitly re-enable all active
events on this error event to invoke the writable listener for this
condition to match other event loop implementations and successfully
detect this as a refused connection attempt. All tests are now green.
For future reference, here's how to install this extension in a sample Docker container and all the commands I've used to debug this issue:
docker run -it -v /home/me/workspace:/workspace --workdir=workspace ubuntu:latest bash

apt update
apt-get install -y software-properties-common
add-apt-repository ppa:ondrej/php -y
apt-get install -y libuv1-dev php-pear php-dev strace
pecl install uv-beta
echo "extension=uv" >> "$(php -r 'echo php_ini_loaded_file();')"
php -m

cd /workspace
strace php examples/14-http-client-async.php
php -r 'var_dump((new ReflectionClass("UV"))->getConstants());'
vendor/bin/phpunit

http://man7.org/linux/man-pages/man2/epoll_ctl.2.html

Now let's get this shipped! :shipit:


Update VS Tools for Docker to 2.0

https://docs.microsoft.com/aspnet/core/publishing/visual-studio-tools-for-docker
Per Shayne:

need to update the docker file to show the multistage build format etc
and the compose formats
other than that it's still good

@JRAlexander Let me know if you'll have time to make the updates. If not, I'll handle it.


Not work in android 13

Hi, thanks for creating this awesome package, but there was a problem running it.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-background-actions:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
node_modules/react-native-background-actions/android/src/main/java/com/asterinet/react/bgactions/RNBackgroundActionsTask.java:44: error: cannot find symbol         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {                                                         ^   symbol:   variable S   location: class VERSION_CODES
error: cannot find symbol   contentIntent = PendingIntent.getActivity(context, 0, notificationIntent, PendingIntent.FLAG_MUTABLE);
^
symbol:   variable FLAG_MUTABLE
location: class PendingIntent
2 errors
   in my android/build.gradle :

   buildToolsVersion = "30.0.2"
    minSdkVersion = 21
    compileSdkVersion = 33
    targetSdkVersion = 33

Even i'm not sure what went wrong in your case, Even i'm also using Android 13, I'm not facing any issues. Can you uninstall and install the lib and make sure you implemented every step mention in the installation guide. Still, if you're facing the error, try to create an example project and run the lib again.

Should be fixed by #208


Rules not working properly

The rule on the very first input box on the front page fails horribly when you provide it with a string, as it can't evaluate it.
Perhaps it needs conversion to the correct type first?

Fixed in #104