Include path not recursively applied

I have this directory structure
include
    png.h
    pnglibconf.h
compile_commands.json
main.cc

png.h
#include "pnglibconf.h"

compile_commands.json
[
    {
        "directory": "...",
        "arguments": ["-std=c++17", "-Iinclude"],
        "file": "main.cc"
    }
]

main.cc
#include <png.h>

This gives me error in main.cc
#include <png.h>     ■ In included file: 'pnglibconf.h' file not found

Output of clangd --version: 16.0.2
Editor/LSP plugin: Neovim/LSP Zero
Operating system: Docker Ubuntu

For reproducibility of the environment.
On a clean ubuntu install, run
apt-get -y install build-essential
cd /tmp
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage --appimage-extract
sudo cp -r squashfs-root/usr /
mkdir -p ~/.config/nvim
touch ~/.config/nvim/init.lua

In ~/.config/nvim/init.lua, fill it with
(copied from https://github.com/VonHeikemen/lsp-zero.nvim/blob/v2.x/doc/md/tutorial.md)
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'

-- Auto-install lazy.nvim if not present
if not vim.loop.fs_stat(lazypath) then
  print('Installing lazy.nvim....')
  vim.fn.system({
    'git',
    'clone',
    '--filter=blob:none',
    'https://github.com/folke/lazy.nvim.git',
    '--branch=stable', -- latest stable release
    lazypath,
  })
  print('Done.')
end

vim.opt.rtp:prepend(lazypath)

require('lazy').setup({
  {'folke/tokyonight.nvim'},
  {
    'VonHeikemen/lsp-zero.nvim',
    branch = 'v2.x',
    dependencies = {
      -- LSP Support
      {'neovim/nvim-lspconfig'},             -- Required
      {                                      -- Optional
        'williamboman/mason.nvim',
        build = function()
          pcall(vim.cmd, 'MasonUpdate')
        end,
      },
      {'williamboman/mason-lspconfig.nvim'}, -- Optional

      -- Autocompletion
      {'hrsh7th/nvim-cmp'},     -- Required
      {'hrsh7th/cmp-nvim-lsp'}, -- Required
      {'L3MON4D3/LuaSnip'},     -- Required
    }
  }
})

-- Set colorscheme
vim.opt.termguicolors = true
vim.cmd.colorscheme('tokyonight')

-- LSP
local lsp = require('lsp-zero').preset({})

lsp.on_attach(function(client, bufnr)
  lsp.default_keymaps({buffer = bufnr})
end)

lsp.ensure_installed({
  'clangd'
})

lsp.setup()

After, simply open use-libpng/main.cc with nvim.

include/pnglibconf.h in your repository is a symbolic link to libpng/pnglibconf.h. Does the target of the symlink exist for you? When I follow your steps, it does not exist for me, hence the error.

Also, while this is likely not the cause of your include error, this line:
"arguments": ["-std=c++17", "-Iinclude"]

doesn't look right. As described at https://clang.llvm.org/docs/JSONCompilationDatabase.html, the first element of "arguments" should be the compiler command, e.g. clang++. In your case, "-std=c++17" will be interpreted as the compiler command (and consequently ignored as not existing), and will not actually be used as a flag to apply to your file.
In general, I would advise against writing compile_commands.json manually. Instead, consider using a tool like https://github.com/rizsotto/Bear to generate it automatically from your build. That way, you don't have to worry about whether the file follows the JSON Compilation Database spec, since the tool takes care of that.

With the above two adjustments, I'm not able to reproduce the error you're seeing (though I'm testing with vscode rather than neovim).
Can you share clangd logs for a session in which you open main.cc and get the error?


Use Oracles for sparse select and prepare

xref #546

Can you add a description to the original post in the PR. This gets added to the commit history


Simplify the setting template-string-converter.filesExcluded

This setting works currently be looping over all keys in the provided object and if the value is truthy, it will compare the filepath against the object key, and if that matches it will exclude the file.
In practice, the setting is just a list of patterns which are checked, and that can be implemented in a much simpler way, which will also allow for the settings to be configured in the settings editor, rather than requiring settings.json to be manually edited.
I have done a quick google, and there is nothing referencing this setting other than the issue #58 that requested it. I think it should be safe to make changes to that setting.

just conflicts to resolve, ow LGTM thanks


add Spanish keylayout

Inspired by: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/xrdp-devel/Yerqa1umvJk/hwy6l7eKAgAJ

Once merging as-is. If I got additional feedback from ES people, I'll make more modification.


[Slider] Range slider track is given wrong margin-block-start"

The roughly margin-top: -1px; rule in the following line:
https://github.com/adobe/spectrum-css/blob/842406ad3e9da3a652f2d76acddeba3b5d02ecc3/components/slider/index.css#L109
Is overridden as margin-top: 0; in the following line:
https://github.com/adobe/spectrum-css/blob/main/components/slider/index.css#L180

Dupe of #1205


Unexpected behavior with negative delays

const clock = require('lolex').createClock(0)
clock.setTimeout(() => console.log('tick'), -10)
clock.runAll()
console.log(clock.now)

This gives:
tick
-10

I think https://github.com/sinonjs/lolex/blob/4e1fdcf24f0adfca3b121dd51ff7505bb705a61b/src/lolex-src.js#L208 should use Math.max(0, parseInt(timer.delay)).
Currently these negatively delayed timers aren't triggered by clock.tick() either, though clock.next() works.

Thanks for the report!
I agree with your proposed solution. Care to make a PR for it?


AUTOGENERATED_home_THIS_SHOULDN'T_SHOW_UP_ANYWHERE shows up immediately

Installed eve<EMAIL_ADDRESS>master?) on Windows 10
Opened http://localhost:3000
Got http://localhost:3000/#/home/AUTOGENERATED_home_THIS_SHOULDN'T_SHOW_UP_ANYWHERE in the URL

Yup.

This behavior is fine. "This shouldn't show up anywhere" was appended to built-in entities to make them recognizable. It should be changed maybe, but they're not part of the system anymore.

To make them recognizable as a bug? Maybe you should change it to SOMETHING_WENT_WRONG_AAAAAAAAAAAAGH_NO_EVERYTHING_IS_FINE_DON'T_WORRY_ABOUT_IT

For some clarity on what's going on here -- the provided test datasets that we ship with use deterministically generated ids to make them easy to map for the testing suite. Originally, we showed ids as the names of entities as a time saver, but once actual UUID v4's entered the mix (for user generated content) that was obviously unacceptable. When that happened, I needed to move through the whole system and update everything that referenced entities to either use the id (for lookup) or the name (for display).
To make sure I didn't miss anything, I changed the deterministically assigned UUID pattern to be very ahem recognizable. That those ids then showed up in production urls is a known bug (those deterministic ids were supposed to be replaced with regular UUIDs) but the priority was low and we'd already determined taken our lessons from this demo into account as we started working on the next one. Changing this to fix the symptoms is a one liner (which changes the id generation function to map to actual UUIDs) but this breaks the smoke testing paths which would need to be updated to use a dynamic mapping to entities. We decided in the end that leaving a cosmetic bug in the prototype was a better state than leaving it untestable.

Okay, thanks for the explanation. :+1:


added scroll to top section

Related Issue

Closes #391

Description
Added the button which takes us to top of the page. Scroll to top button appear at the bottom of the page when we click, It will take us to top.
Type of PR

[X ] Feature enhancement

Screenshots / Videos (if applicable)
https://github.com/CodeHarborHub/codeharborhub/assets/130668745/d71ff034-7e92-40b3-915f-2265cc75e15c
Checklist

[X ] I have performed a self-review of my code.
[X ] I have read and followed the Contribution Guidelines.
[X ] I have tested the changes thoroughly before submitting this pull request.
[X ] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X ] I have commented my code, particularly in hard-to-understand areas.

please close issue also, completed this issue

@MuraliDharan7  The site is under maintenance today due to a high volume of test requests. As a result, our queue is currently full. Therefore, I won't be able to merge any contributor PRs today. Once the issue is resolved, I will review and merge all pending PRs. I apologize for the inconvenience and appreciate your patience.

Now, close this pr and use latest code may be use git pull and create new pr for this issues.


updated deploy.sh for substrate-node

Copied over the deploy script from substrate-node package itself and updated using current build context and dockerfile directory.

Better add some comments about how to run the script. what is the desired result of this script and what are the other files this script depends on.

I added some comments into Readme file, and also within script itself.


feat(CategoryTheory): whiskering a fully faithful functor is full

We already had that whiskering by a faithful functor is faithful. This PR also adds the relevant Full and Faithful instances for the sheaf version of whiskering, (sheafCompose).

Thanks!
bors merge


Happy Holidays

I just wanted to take some time to let you know how thankful I am for all of the work that everyone in the community has given to Semantic UI. Thank you to everyone who's helped submit bugs, add pull requests, ask questions, or answer questions from others.
You guys are the best, and help encourage me to work towards making Semantic UI better.
Here's to another wonderful year with Semantic UI.

Happy New Year :tada:

And thank you for making an amazing front-end framework :+1:

Thanks for your hard work! :smile:

Thank you!!!!

Thank you Jack !

Happy new year and thank you for the great SUI framework :tada:


[Website] Update lead space re: gradient

Slack conversation
When we update background media to make the gradient an optional addition that can be toggled on and off, we should update the website guidance for lead space which currently explains the gradient as a requirement.

Duplicate of #9916


exception when changing config which loads mesh

The default rviz config has a subscription to a marker publisher, which loads a mesh.
When changing the config to another which also has the same subscription, the exception below is thrown and Rviz2 terminates.
[ERROR] [rviz2]: ItemIdentityException: Resource with the name file:///Users/karsten/workspace/osrf/roscon2018_ws/src/roscon2018/confbot_description/meshes/Shark_t.stl already exists. in ResourceManager::add at /Users/karsten/workspace/osrf/ros2_visualization/build/rviz_ogre_vendor/ogre-master-ca665a6-prefix/src/ogre-master-ca665a6/OgreMain/src/OgreResourceManager.cpp (line 158)
libc++abi.dylib: terminating with uncaught exception of type Ogre::ItemIdentityException: ItemIdentityException: Resource with the name file:///Users/karsten/workspace/osrf/roscon2018_ws/src/roscon2018/confbot_description/meshes/Shark_t.stl already exists. in ResourceManager::add at /Users/karsten/workspace/osrf/ros2_visualization/build/rviz_ogre_vendor/ogre-master-ca665a6-prefix/src/ogre-master-ca665a6/OgreMain/src/OgreResourceManager.cpp (line 158)
Abort trap: 6

Probably needs to either detect when the resource already exists and reuse it, or remove it first, or give each a unique resource name.

@Karsten1987
I've got same error. Did you solve it?

I believe this is still an open bug. As a workaround, you can edit your configuration manually or remove it altogether.

I'm facing this using the dashing debs as well,
In my case I am not changing the config but simply disabling and reenabling the plugin using the resource.

@mikaelarguedas and @Karsten1987  I think I fixed the problem in #410 - if you have a source build, maybe you can validate?
We have a check whether a mesh already exists and in that case, it shouldn't be loaded twice, but there is a bug in the STL loader, loading the mesh into a different resource group so that the existence check doesn't apply.


[feature]: Make Fees optional for FundPsbt with Raw template

Is your feature request related to a problem? Please describe.
LND takes integer sat/vb fee rate as an input, but creates transactions paying slightly higher or slightly lower fee rate in the end. For example, if I want to completely spend 1000 sats p2wkh UTXO paying 1 sat/vb fee from the amount, FundPsbt with CoinSelect gives me these fee rates in the final tx, depending on destination address type:
p2sh: 0.99 sat/vb (tx size 111, fee 110)
p2wkh: 0.99 sat/vb (tx size 110, fee 109)
p2tr: 1.01 sat/vb (tx size 121, fee 122)
Lower than 1 cannot be posted, of course, but higher than what I request also creates a problem: if I want to RBF my transaction paying 1.01, I must choose 3 and not 2 sat/vb as a replacement fee. I want to be exact and not waste sats.
This example was supposed to pay 51 sat/vb from p2tr to p2tr with change. It paid 51.3.
Describe the solution you'd like
I can catch the discrepancy before the tx gets posted, but I cannot find a way to adjust the outputs in the PSBT. I wish Raw template could be just that: I provide exact inputs and outputs, and the fee is calculated as the difference. Fees field in walletrpc.FundPsbtRequest should be optional (indicated by Fees: &walletrpc.FundPsbtRequest_SatPerVbyte{SatPerVbyte: 0}, for example).
Describe alternatives you've considered
I guess fixing FundPsbt to give correct results in all scenarios is too much to ask.
Additional context
For some reason SignPsbt and FinalizePsbt refuses a PSBT produced by Bitcoin Core's createpsbt API. I get error "input (index=0) doesn't specify any UTXO info" when PSBT looks like this:
$ bcli decodepsbt cHNidP8BAFMCAAAAAX/t1h8ZB4oXpsN9PkH0PxNXx3WZm19935GPmZjThgq4AAAAAAD9////AXkDAAAAAAAAF6kUVJMUMexBAfpouB3rbaqlivs8XPGHAAAAAAAAAA==
{
  "tx": {
    "txid": "a1b6bd7e47877ff6e7a1bb08e7265cca2734d1fd1b7f3d426e39dc0f28c64a92",
    "hash": "a1b6bd7e47877ff6e7a1bb08e7265cca2734d1fd1b7f3d426e39dc0f28c64a92",
    "version": 2,
    "size": 83,
    "vsize": 83,
    "weight": 332,
    "locktime": 0,
    "vin": [
      {
        "txid": "b80a86d398998f91df7d5f9b9975c757133ff4413e7dc3a6178a07191fd6ed7f",
        "vout": 0,
        "scriptSig": {
          "asm": "",
          "hex": ""
        },
        "sequence":<PHONE_NUMBER>
      }
    ],
    "vout": [
      {
        "value": 0.00000889,
        "n": 0,
        "scriptPubKey": {
          "asm": "OP_HASH160 54931431ec4101fa68b81deb6daaa58afb3c5cf1 OP_EQUAL",
          "desc": "addr(2MzxQwcnvFLqAw6Xf9ZgmkmNUvcPuG2c7cb)#caacrhz8",
          "hex": "a91454931431ec4101fa68b81deb6daaa58afb3c5cf187",
          "address": "2MzxQwcnvFLqAw6Xf9ZgmkmNUvcPuG2c7cb",
          "type": "scripthash"
        }
      }
    ]
  },
  "global_xpubs": [
  ],
  "psbt_version": 0,
  "proprietary": [
  ],
  "unknown": {
  },
  "inputs": [
    {
    }
  ],
  "outputs": [
    {
    }
  ]
}

Thanks for the feature request.
The inaccuracy of the actual fee vs. the specified unfortunately cannot be fixed, unless you switch over to P2TR completely. The problem is that any ECDSA signature (so affecting p2wkh and p2sh/np2wkh inputs) is variable, so it cannot be estimated precisely.
This is the nice thing about P2TR inputs, they are constant in size and fee estimation is precise down to the virtual byte.
For the issue of not being able to specify the fee rate more precisely: I think here we could just add a third option, to allow you to specify in sat/kWU, which is way more precise (e.g. 1 sat/vByte = 250 sat/kWU, 1.5 sat/vByte = 375 sat/kWU.
But that would require a change and you'd need to wait for the next release.
Maybe you could also use the new third option, coin_select (https://lightning.engineering/api-docs/api/lnd/wallet-kit/fund-psbt#walletrpcpsbtcoinselect) for specifying the template (that was introduced with lnd v0.18.
It allows you to specify the exact inputs and outputs and specify if a new change output should be added or the change be given to an existing (specified) output. If you say "add a new change output" but the change amount is below dust, then the value is added to fees.
With that I think you could create very accurate RBF transactions.
Let's look at an example.
TX 1:
-------
Input:       p2tr, 1000 sats
Tx size:     100 vBytes
Fee rate:    1 sat/vByte
Output:      900 sats
Actual fee:  100 vBytes (1.00 sat/vByte)

TX 2:
-------
Input:       p2tr, 1000 sats
Tx size:     100 vBytes
Fee rate:    1 sat/vByte
Output:      880 sats
Actual fee:  120 vBytes (1.20 sat/vByte)

TX 3:
-------
Input:       p2tr, 1000 sats
Tx size:     100 vBytes
Fee rate:    1 sat/vByte
Output:      850 sats
Actual fee:  150 vBytes (1.50 sat/vByte)

@guggero Thanks. I do use CoinSelect template. FundPsbt still requires Fees object along with this template, but you're right, p2tr to p2tr seems to be spot on, while p2wkh inputs give random witness size:
https://mempool.space/testnet/tx/e9d76d2aa85500e030ec9f2a3d9d602256c6568113c7fd6e0c19fff301f49caf
https://mempool.space/testnet/tx/4fd1c284acc7ac8562215c176e6cd5d5987aa98fe61a740459166a55ba7753fe
Your suggestion to add sat/kWU fee option is good and welcome.
In the meantime, I learned to use btcd/btcutil/psbt to manipulate p.UnsignedTx.TxOut[outputIndex].Value and achieve the exact desired fee (finalize, look at vsize, release outputs, amend psbt, finalize again).


collisions on 3d model bugger mercilessly

Godot version
4.1.1
System information
windows 11
Issue description
Creating collisions for a fps, I wasted hours creating, recreating and creating collisions again for the character to then see everything blow up for ANY reason. collision shapes bug by losing their structure. The animation player seems to have some merit in the bug. It's really frustrating and makes it IMPOSSIBLE to use Godot 4.1.1. unless you want to waste hours working on practically nothing.
Steps to reproduce
Take a 3d model with at least 5/6 animations. create a physical skeleton and put 3d collision shapes on it. Now use the animation tree and animation player and in no time, totally random your collisions will be scattered to the four corners of the planet.

![3](https://github.com/godotengine/godot/assets/106838359/9be276c5-4f00-4402-85c7-7e6846

d5f885)
FINAL RESULT

Minimal reproduction project
same as above, take a model, make a physical 3d skeleton and attack the collisions. Now add an anim player with 4/5 animations and finally an anim tree with an animation node state machine

Please provide an MRP, these steps are not simple:

A small Godot project which reproduces the issue, with no unnecessary files included. Be sure to not include the .godot folder in the archive (but keep project.godot).
Drag and drop a ZIP archive to upload it. Do not select another field until the project is done uploading.
Note for C# users: If your issue is not Mono-specific, please upload a minimal reproduction project written in GDScript or VisualScript. This will make it easier for contributors to reproduce the issue locally as not everyone has a Mono setup available.


OpenPype Code Documentation with Sphinx

Code Documentation
(reboot)
This is fixing code documentation generation with Sphix. It is using Sphinx ApiDoc to crawl over our sources to generate rst -> html documentation.
How to generate documentation
From sources, run:
./.poetry/bin/poetry run python start.py make-api-docs

This will run the whole process, generating rst files from apidoc, then rst files for sphinx and then html files from rst files.
You will find generated rst files in /docs/sources and html files in /docs/build/html.
❗ /docs/build is purged every time you run this command ❗
rst files are not overwritten by default. If you need to start from clean slate, delete all rst files in /docs/sources except index.rst.

Current state:
Currently docs generation is set to fail on warning. This allows us to fix problems in code and docstrings. It can be turned off with warningiserror=False in make_api_docs():openpype/cli.py on line 455. There you can also control other things that might help with debugging, like verbosity, etc.
Sphinx is configured by /docs/source/conf.py. One of the important settings right now is ignore_paths in run_apidoc() - this allows you to ignore whole path (or single file). This is useful because right now we are generating stuff from things we don't need to be in documentation (some vendor directories, and so on).

What to do next
We need to iterate over and over, fix issues in code and docstrings until there are no important warning. We also need to edit and curate particular rst files with stuff that isn't necessarily in docstrings.

Task linked: OP-2318 API documentation

First warning is on @iLLiCiTiT:
Warning, treated as error:
Cannot resolve cyclic import: openpype.api, openpype.settings, openpype.settings.entities, openpype.settings.entities.base_entity, openpype.lib, openpype.lib.execute, openpype.lib.log, openpype.lib

Current traceback is unknown for me and didn't find out what is the issue.

I think this is caused by that while True... loop. It gets executed even when imported. Could this be better refactored with if __name__ == "__main__": guard? @jakubjezek001

@antirotor should we give this another go with the refactor of the client app? I highly doubt this will become mergable


Create gangs.js

But Shouldn't The sqlite3 be defined properly
I tried this code it made a crash

My Bad Dint check app.js

okay didn't mean to put these in the same PR but it is all ready so why not

im going to just make a new one


Remove version: CrystalDewWorld.CrystalDiskInfo.KureiKeiEdition version 9.2.2

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: Duplicate;


Segfault during testing

PkgEval is running into the following when testing this package:
[ Info: Testing computation
[ Info: Testing gradients
[ Info: Testing mutation
[ Info: Testing size mutation

signal (11): Segmentation fault
in expression starting at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/test/mutation/size.jl:30
_ZN11ClpPresolve20gutsOfPresolvedModelEP10ClpSimplexdbibbPKcS3_ at /home/pkgeval/.julia/artifacts/e4a36d92f6628275dd9546eabfde4e94b1ffb986/lib/libClp.so (unknown line)
_ZN21OsiClpSolverInterface7resolveEv at /home/pkgeval/.julia/artifacts/e4a36d92f6628275dd9546eabfde4e94b1ffb986/lib/libOsiClp.so (unknown line)
_Z8CbcMain1iPPKcR8CbcModelPFiPS2_iER19CbcSolverUsefulData at /home/pkgeval/.julia/artifacts/1263af5e59820ee3b62d2f59e030cdcc86380f82/lib/libCbcSolver.so (unknown line)
Cbc_solve at /home/pkgeval/.julia/artifacts/1263af5e59820ee3b62d2f59e030cdcc86380f82/lib/libCbcSolver.so (unknown line)
Cbc_solve at /home/pkgeval/.julia/packages/Cbc/dIPfi/src/gen/libcbc_api.jl:306 [inlined]
optimize! at /home/pkgeval/.julia/packages/Cbc/dIPfi/src/MOI_wrapper/MOI_wrapper.jl:521
optimize! at /home/pkgeval/.julia/packages/MathOptInterface/vwZYM/src/MathOptInterface.jl:85 [inlined]
optimize! at /home/pkgeval/.julia/packages/MathOptInterface/vwZYM/src/Utilities/cachingoptimizer.jl:316
unknown function (ip: 0x7fc30e5fc362)
unknown function (ip: 0x7fc30e5e29f9)
unknown function (ip: 0x7fc30e5e2905)
optimize! at /home/pkgeval/.julia/packages/MathOptInterface/vwZYM/src/Bridges/bridge_optimizer.jl:376 [inlined]
optimize! at /home/pkgeval/.julia/packages/MathOptInterface/vwZYM/src/MathOptInterface.jl:85 [inlined]
optimize! at /home/pkgeval/.julia/packages/MathOptInterface/vwZYM/src/Utilities/cachingoptimizer.jl:316
unknown function (ip: 0x7fc30e5e28d2)
_jl_invoke at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2559
#optimize!#107 at /home/pkgeval/.julia/packages/JuMP/pQApG/src/optimizer_interface.jl:440
optimize! at /home/pkgeval/.julia/packages/JuMP/pQApG/src/optimizer_interface.jl:410 [inlined]
newsizes at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/src/mutation/size.jl:184
Δsize! at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/src/mutation/size.jl:57
unknown function (ip: 0x7fc30e75f442)
_jl_invoke at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2559
Δsize! at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/src/api/size.jl:62
Δsize! at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/src/api/size.jl:76
unknown function (ip: 0x7fc30e73f24d)
_jl_invoke at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2377 [inlined]
ijl_apply_generic at /cache/build/default-amdci4-2/julialang/julia-release-1-dot-8/src/gf.c:2559
Δnin! at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/src/api/size.jl:168
Δnin! at /home/pkgeval/.julia/packages/NaiveNASlib/6yDVa/src/api/size.jl:170

Can be reproduced by checking out PkgEval and doing:
julia --project PkgEval/bin/test_package.jl --julia=stable --name=NaiveNASlib

I'm not sure whether this is a bug with this package or with MathOptInterface.jl, but since it's being flagged as a crash in PkgEval reports it would be good to fix 🙂

Looking through some more logs, SIIP2Marmot.jl and ConstrainedShortestPaths.jl (and maybe more) are failing with the same error, so I guess this is more likely to be a MathOptInterface.jl or Cbc.jl issue? cc @odow @blegat

Yes, it is this issue which is causing the segfault.
I will try to follow the recommendation to switch to HiGHS.jl, but there is a handful of tests which fail when I do so that I need to sort out.

I will try to follow the recommendation to switch to HiGHS.jl, but there is a handful of tests which fail when I do so that I need to sort out.

The benefit of using HiGHS is that if we can isolate a reproducible failure, then the expected time to get it fixed is measured in days, rather than years for Cbc.

Going to try and work-around this in Cbc.jl in the meantime: https://github.com/jump-dev/Cbc.jl/pull/216


bazel hangs on macos

I'm a bazel newb...apologies if I've missed something obvious.
I did a clean checkout on macos. bazel and other prerequisites are installed via homebrew. bazel version is 2.1.1.
any bazel command from the root of this checkout hangs indefinitely. bazel commands outside of this repo work just fine. I've also successfully built a few other repos (abseil e.g.) on this machine with no issues.
any idea how to diagnose further? I get no output from bazel at all, so it's tough to tell what's going on.

I don't have any good suggestions at the moment, but one thing you could try is to look at the logs after running bazel (and cancelling it after a bit). Logs should be at $(bazel info output_base)/java.log. Hopefully the bazel info command doesn't get stuck too.
What version of mac os do you have?

bazel info does hang...as well as bazel version, bazel help, etc. Outside of the directory, they run fine (well, bazel info fails outside of a workspace..). I don't think any files are being produced at all (no logs, etc.). I'm stumped, but I'll probably start commenting out sections of WORKSPACE to see if I can get it to unstick.

I tried to reproduce this, and noticed that following the instructions on https://kythe.io/getting-started-macos/ will only get you Bazel 2.1.0 not 2.1.1. It looks like maybe a stock brew install bazel will actually work now (it did not the last time I updated those instructions). Is that what you did to get your Bazel installation?
With 2.1.0 (and a locally patched .bazelversion file) I am not seeing this error FWIW.

I uninstalled Bazel 2.1.0 from bazelbuild/tap, and installed the "stock" 2.1.1. I had to do some extra shenanigans to update my JDK installation (I guess the dependencies are wired up differently). Now that I've done this, I can reproduce the symptoms described above: Specifically, it doesn't seem to hang, but spins in a loop calling a sequence of commands.
The processes come and go too quickly for me to see what's going on, but it looks like it sets JAVA_HOME by calling /usr/libexec/java_home --version 1.8 and then runs some hairy Bash script to figure out where the real binary is. If I just run that binary directly (which on my system is /usr/local/Cellar/bazel/2.1.1/libexec/bin/bazel-real) it seems to work: You can build and query and everything is fine.
So I am guessing something is borked with that script, but I didn't have the patience to decode it all.

Ok, so with the Homebrew install of Bazel, we have

which bazel is /usr/local/bin/bazel
which is a symlink to /usr/local/Cellar/bazel/2.1.1/bin/bazel
which is a shell script that sets JAVA_HOME and runs /usr/local/Cellar/bazel/2.1.1/libexec/bin/bazel
which is a shell script that (after some path shenanigans) runs exec -a /usr/local/Cellar/bazel/2.1.1/libexec/bin/bazel /usr/local/Cellar/bazel/2.1.1/libexec/bin/bazel-2.1.1 version

Which, as you may observe, is the same script.
I think this is probably a bug in the Bazel script, or maybe in the way that the Homebrew formula sets it up. I added set -x to the top of that script and watched it run for a while, and it does figure out that the "real" path is readonly bazel_real_path=/usr/local/Cellar/bazel/2.1.1/libexec/bin/bazel-real, but for whatever reason doesn't use that.

I found a workaround that seems to help:
ln -s /usr/local/Cellar/bazel/2.1.1/libexec/bin/bazel-real tools/bazel

The default script looks for tools/bazel in the current workspace, and if it finds that "assumes you know what you're doing" and runs it in place of whatever other nonsense it is promulgating.

Alternative workaround:
brew uninstall bazel
brew tap bazelbuild/tap
brew install bazelbuild/tap/bazel
echo "2.1.0" > .bazelversion  # in $KYTHE_DIR

The last line is needed because for some reason the bazelbuild/tap version is a release behind. But that version works without the extra Java package. At some point that will probably stop working and I'll need to update the setup instructions again.

Thanks for doing all that investigation! The ln workaround above is working for me, and I'm sure the tap install would work as well. I appreciate the insight.

FWIW - it seems like  bazelisk is another option (intalled via homebrew)...then I'm able to do something like USE_BAZEL_VERSION=2.1.1 bazelisk build //...

Bazelisk should work.  Seeing as we get new versions of bazel pushed to our workstations pretty eagerly, we tend to keep .bazelversion in the repository pretty up-to-date.


Running docker images locally (cont'd #60)

Opening a new issue to keep these clean and self contained. Continuing from #60 : how do you run a custom built docker image locally? Now that it uses go-cloud-debug and source-context.json, which is not created when I do docker run myapp, I can't run the image outside the app engine. Which was a pretty dandy feature to have.
( @shantuo )

I understand, I will disable the debugger when the source context and credentials are absent.
Both source context and credentials are generated during gcloud app deploy and stored in the image uploaded.

Thanks for that, man!


⚠ Minecraft has degraded performance

In 3588b8f, Minecraft (https://www.minecraft.net) experienced degraded performance:

HTTP code: 200
Response time: 1024 ms

Resolved: Minecraft performance has improved in 6c4b55f.


Error when connecting from Android to a server that does not support TLS 1.0

I am attempting to use ModernHttpClient to get around the mono limitation of not supporting HTTPS/TLS 1.1.  For PCI reasons this is necessary in my app.
ModernHttpClient works great to resolve the issue on iPhone, but on android, I get the following when attempting an HTTP GET to a server that only support TLS 1.1 and above.
07-16 22:04:25.797 I/mono-stdout(12467): Javax.Net.Ssl.SSLException: Exception of type 'Javax.Net.Ssl.SSLException' was thrown.
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.T07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[OkHttp.Response].GetResult () [0x00000] in <filename unknown>:0
07-16 22:04:25.797 I/mono-stdout(12467):   at ModernHttpClient.NativeMessageHandler+<SendAsync>d__8.MoveNext () [0x0000e] in d:\Downloads\ModernHttpClient-2.4.2\ModernHttpClient-2.4.2\src\ModernHttpClient\Android\OkHttpNetworkHandler.cs:191
07-16 22:04:25.797 I/mono-stdout(12467): --- End of stack trace from previous location where exception was thrown ---
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0
07-16 22:04:25.797 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext () [0x000f3] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467): --- End of stack trace from previous location where exception was thrown ---
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at System.Runtime.CompilerServices.TaskAwaiter`1[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0
07-16 22:04:25.801 I/mono-stdout(12467):   at Playground.Android.MainActivity+<>c__DisplayClassa+<<OnCreate>b__7>d__d.MoveNext () [0x00181] in d:\Downloads\ModernHttpClient-2.4.2\ModernHttpClient-2.4.2\src\Playground.Android\MainActivity.cs:108
07-16 22:04:25.801 I/mono-stdout(12467):   --- End of managed exception stack trace ---
07-16 22:04:25.801 I/mono-stdout(12467): javax.net.ssl.SSLException: SSL handshake aborted: ssl=0xb9c0c8f0: I/O error during system call, Connection reset by peer
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:242)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.Connection.connect(Connection.java:159)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:175)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:120)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:330)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:319)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:241)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.Call.getResponse(Call.java:271)
07-16 22:04:25.801 I/mono-stdout(12467): 	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:228)
07-16 22:04:25.805 I/mono-stdout(12467): 	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:199)
07-16 22:04:25.805 I/mono-stdout(12467): 	at com.squareup.okhttp.Call.access$100(Call.java:34)
07-16 22:04:25.805 I/mono-stdout(12467): 	at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:162)
07-16 22:04:25.805 I/mono-stdout(12467): 	at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
07-16 22:04:25.805 I/mono-stdout(12467): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-16 22:04:25.805 I/mono-stdout(12467): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-16 22:04:25.805 I/mono-stdout(12467): 	at java.lang.Thread.run(Thread.java:841)
Thread finished:  #3
The thread 'Unknown' (0x3) has exited with code 0 (0x0).

Hi, I also have issues with connecting to websites using TLS. The following code works when I call the google website but not my own website that is using a CA signed certificate.
		var handler = new NativeMessageHandler();
		handler.ClientCertificateOptions = ClientCertificateOption.Automatic;

		var client = new HttpClient(handler);
		var stuff = await client.GetStringAsync("https://www.google.com");

		System.Diagnostics.Debug.WriteLine (stuff);

It may be that it works with google because it is using SSLv3 instead of TLS 1.2
Google:
Supported versions: SSLv3 TLSv1.0 TLSv1.1 TLSv1.2
Deflate compression: no
Supported cipher suites (ORDER IS NOT SIGNIFICANT):
SSLv3
RSA_WITH_RC4_128_MD5
RSA_WITH_RC4_128_SHA
RSA_WITH_3DES_EDE_CBC_SHA
RSA_WITH_AES_128_CBC_SHA
RSA_WITH_AES_256_CBC_SHA
TLS_ECDHE_RSA_WITH_RC4_128_SHA
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
(TLSv1.0: idem)
(TLSv1.1: idem)
TLSv1.2
RSA_WITH_RC4_128_MD5
RSA_WITH_RC4_128_SHA
RSA_WITH_3DES_EDE_CBC_SHA
RSA_WITH_AES_128_CBC_SHA
RSA_WITH_AES_256_CBC_SHA
RSA_WITH_AES_128_CBC_SHA256
RSA_WITH_AES_256_CBC_SHA256
TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_RC4_128_SHA
TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
Server certificate(s):
5d1b140376f38d49f93f3f83385f890ea60bd5c6: CN=www.google.com, O=Google Inc, L=Mountain View, ST=California, C=US
Minimal encryption strength:     strong encryption (96-bit or more)
Achievable encryption strength:  strong encryption (96-bit or more)
BEAST status: protected
CRIME status: protected
Our website only supports TLS 1.2:
Supported versions: TLSv1.2
Deflate compression: no
Supported cipher suites (ORDER IS NOT SIGNIFICANT):
TLSv1.2
RSA_WITH_AES_128_CBC_SHA
RSA_WITH_AES_256_CBC_SHA
Server certificate(s):
3c66369603213fd186ede4d2b320a21e0d577f7a: CN=www.foo.bar, OU=Domain Control Validated
Minimal encryption strength:     strong encryption (96-bit or more)
Achievable encryption strength:  strong encryption (96-bit or more)
BEAST status: protected
CRIME status: protected
The exception we get is this:
[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] Javax.Net.Ssl.SSLHandshakeException: Exception of type 'Javax.Net.Ssl.SSLHandshakeException' was thrown.
[MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x0004b>
[MonoDroid] at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0 (object) <IL 0x00006, 0x0003b>
[MonoDroid] at Android.App.SyncContext/c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18
[MonoDroid] at Java.Lang.Thread/RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
[MonoDroid] at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00009] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Java.Lang.IRunnable.cs:71
[MonoDroid] at (wrapper dynamic-method) object.db6b7d7d-be63-41ee-8f1c-1c176a7678e5 (intptr,intptr) <IL 0x00011, 0x0001f>
[MonoDroid]   --- End of managed exception stack trace ---
[MonoDroid] javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb9430130: Failure in SSL library, usually a protocol error
[MonoDroid] error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version (external/openssl/ssl/s23_clnt.c:741 0x97235990:0x00000000)
[MonoDroid] 	at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:448)
[MonoDroid] 	at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:242)
[MonoDroid] 	at com.squareup.okhttp.Connection.connect(Connection.java:159)
[MonoDroid] 	at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:175)
[MonoDroid] 	at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:120)
[MonoDroid] 	at com.squareup.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:330)
[MonoDroid] 	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:319)
[MonoDroid] 	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:241)
[MonoDroid] 	at com.squareup.okhttp.Call.getResponse(Call.java:271)
[MonoDroid] 	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:228)
[MonoDroid] 	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:199)
[MonoDroid] 	at com.squareup.okhttp.Call.access$100(Call.java:34)
[MonoDroid] 	at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:162)
[MonoDroid] 	at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
[MonoDroid] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
[MonoDroid] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
[MonoDroid] 	at java.lang.Thread.run(Thread.java:841)
[MonoDroid] Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0xb9430130: Failure in SSL library, usually a protocol error
[MonoDroid] error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version (external/openssl/ssl/s23_clnt.c:741 0x97235990:0x00000000)
[MonoDroid] 	at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
[MonoDroid] 	at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
[MonoDroid] 	... 16 more

I know that in my own project, I encountered this same issue. What I discovered was that before Android Jelly Bean, they did not support TLS 1.1 and 1.2. This caused devices running before then not to be able to connect to my server that did not accept anything less.
In JB and KitKat, devices supported this, but it was not enabled by default. This leads to them not being able to connect either.
Lollipop changed to have support enabled by default, therefore those devices worked for me.
The fix employed by myself was to make a custom SSLSocketFactory that is used to supply the OkHttp client.
It then does
SSLSocket socket = (SSLSocket) _factory.CreateSocket(address, port, localAddress, localPort);
socket.SetEnabledProtocols(socket.GetSupportedProtocols());

For each CreateSocket method in there.
And in the NativeMessageHandler constructor, I added:
var factory = new ImprovedSSLSocketFactory();
client.SetSslSocketFactory(factory);

This allowed me to communicate with TLS 1.1 and 1.2.
I can post the code better if desired, but my git skills are not great for a pull request.

Thanks adammeaney , I will try that and see if it works. I can probably put together a pull request for this code.

Adammeaney...can you provide a sample of that? Banging my newbie Android developer head against the wall over here.

using Javax.Net.Ssl;

namespace ModernHttpClient
{
	internal class ImprovedSSLSocketFactory : SSLSocketFactory
	{
		SSLSocketFactory _factory = (SSLSocketFactory)Default;

		public override string[] GetDefaultCipherSuites()
		{
			return _factory.GetDefaultCipherSuites();
		}

		public override string[] GetSupportedCipherSuites()
		{
			return _factory.GetSupportedCipherSuites();
		}

		public override Java.Net.Socket CreateSocket(Java.Net.InetAddress address, int port, Java.Net.InetAddress localAddress, int localPort)
		{
			SSLSocket socket = (SSLSocket)_factory.CreateSocket(address, port, localAddress, localPort);
			socket.SetEnabledProtocols(socket.GetSupportedProtocols());

			return socket;
		}

		public override Java.Net.Socket CreateSocket(Java.Net.InetAddress host, int port)
		{
			SSLSocket socket = (SSLSocket)_factory.CreateSocket(host, port);
			socket.SetEnabledProtocols(socket.GetSupportedProtocols());

			return socket;
		}

		public override Java.Net.Socket CreateSocket(string host, int port, Java.Net.InetAddress localHost, int localPort)
		{
			SSLSocket socket = (SSLSocket)_factory.CreateSocket(host, port, localHost, localPort);
			socket.SetEnabledProtocols(socket.GetSupportedProtocols());

			return socket;
		}

		public override Java.Net.Socket CreateSocket(string host, int port)
		{
			SSLSocket socket = (SSLSocket)_factory.CreateSocket(host, port);
			socket.SetEnabledProtocols(socket.GetSupportedProtocols());

			return socket;
		}

		public override Java.Net.Socket CreateSocket(Java.Net.Socket s, string host, int port, bool autoClose)
		{
			SSLSocket socket = (SSLSocket)_factory.CreateSocket(s, host, port, autoClose);
			socket.SetEnabledProtocols(socket.GetSupportedProtocols());

			return socket;
		}

		protected override void Dispose(bool disposing)
		{
			_factory.Dispose();
			base.Dispose(disposing);
		}

		public override Java.Net.Socket CreateSocket()
		{
			SSLSocket socket = (SSLSocket)_factory.CreateSocket();
			socket.SetEnabledProtocols(socket.GetSupportedProtocols());

			return socket;
		}
	}
}

Thanks adammeaney I'll give it a spin

Is it possible to do this without changing the NativeMessageHandler code?

Not that I was able to discover.
The problem was that the sockets normally created did not know they supported TLS 1.1 or 1.2 further back.
There may be another way to tell the device they should be supported. I have seen code using something called ServicePointManager when I was looking for this, but none of that code seemed to resolve my issues. This was the first things I discovered.
If we get lucky, @paulcbetts will patch something similar into ModernHttpClient eventually, so we can go back to just using his released package.

I tried to use your code, but it does not work for me
here is the url that does not work:
"https://appgateway.contendo.no/tngwebinfo?params={"session_id"%3A"0913184FBDEB4ECBA6D9E0DF3BCF6A8E"%2C"version"%3A"2"}"
Have you a change to check if it works for you?

Is it someone that have a solution on this?

An official fix would be nice, but Adam's code appears to work for me with a fork of the repo as it stands today. Thank you, Adam, I'm developing an app using Xamarin and MVVMCross and it's been a real pain dealing with ATS on iOS9 wanting TLSv1.2 whilst Mono and Android 4.x don't properly support it.

Can the commit to kunni80's forked repo please be reintegrated?

I'm hoping this get merged soon.


[FEATURE] Use CardWithImage component for community map

Feature Description
I think it would be nice if we can use CardWithImage UNDP component for community map.
But Card component cannot have a operation button like deleting, so I suggest to create new endpoint for community map like

/maps/{id} - view property and operation
/map/{id} - edit map -> /maps/{id}/edit (this can be a breaking change of endpint)

Feature Implementation
No response
Feature Alternatives
No response
Feature Impact
No response
Feature Rationale
No response
Feature Considerations
No response
Feature Requirements
No response
┆Issue is synchronized with this Wrike task by Unito

or another endpoint idea is

/map/{id} - view property and map (readonly), and operation (delete, copy shared link)
/map/{id}/edit - edit map


[CLI] Host key verification failed. Could not read from remote repository.

I got an error when installing ignite for the first time. I then tried to fix it by running 'npm i'. I get the following message:
E:\REPORT\app2>npm i
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --ge
t remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:207:12)
npm WARN addRemoteGit     at emitTwo (events.js:106:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:852:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_pr
ocess.js:215:5)
npm WARN addRemoteGit<EMAIL_ADDRESS>ion.git resetting remote C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-
ssh-git-github-com-GantMan-react-native-push-notification-git-93738d0d because of e
rror: { Error: Command failed: git -c core.longpaths=true config --get remote.origi
n.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:207:12)
npm WARN addRemoteGit     at emitTwo (events.js:106:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:852:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_pr
ocess.js:215:5)
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.origin
.url' }
npm ERR! git clone --template=C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes
_templates --mirror<EMAIL_ADDRESS>t C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-Gant
Man-react-native-push-notification-git-93738d0d: Cloning into bare repository 'C:\U
sers\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-GantMan-re
act-native-push-notification-git-93738d0d'...
npm ERR! git clone --template=C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes
_templates --mirror<EMAIL_ADDRESS>t C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-Gant
Man-react-native-push-notification-git-93738d0d: Host key verification failed.
npm ERR! git clone --template=C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes
_templates --mirror<EMAIL_ADDRESS>t C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-Gant
Man-react-native-push-notification-git-93738d0d: fatal: Could not read from remote
repository.
npm ERR! git clone --template=C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes
_templates --mirror<EMAIL_ADDRESS>t C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-Gant
Man-react-native-push-notification-git-93738d0d:
npm ERR! git clone --template=C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes
_templates --mirror<EMAIL_ADDRESS>t C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-Gant
Man-react-native-push-notification-git-93738d0d: Please make sure you have the corr
ect access rights
npm ERR! git clone --template=C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes
_templates --mirror<EMAIL_ADDRESS>t C:\Users\sameh\AppData\Roaming\npm-cache_git-remotes\git-ssh-git-github-com-Gant
Man-react-native-push-notification-git-93738d0d: and the repository exists.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "E:\node\bin\node.exe" "E:\node\bin\node_modules\npm\bin\npm
-cli.js" "i"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\sameh
\AppData\Roaming\npm-cache_git-remotes_templates --mirror<EMAIL_ADDRESS>ntMan/react-native-push-notification.git C:\Users\sameh\AppData\Roaming\npm-cache_
git-remotes\git-ssh-git-github-com-GantMan-react-native-push-notification-git-93738
d0d
npm ERR! Cloning into bare repository 'C:\Users\sameh\AppData\Roaming\npm-cache_gi
t-remotes\git-ssh-git-github-com-GantMan-react-native-push-notification-git-93738d0
d'...
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     E:\REPORT\app2\npm-debug.log
Before posting the issue, I made sure everything is up to date: git, node, npm, react-native

thanks @ghsamm - It looks like it might be something with your config, but I think the lib that's giving you trouble has been updated, so I no-longer need to point at my branch.
So probably this line is your problem: https://github.com/infinitered/ignite/blob/master/ignite-base/package.json#L30
I'll fix this today.   Could you try switching your package.json to point at npm and let me know if that fixes your problem?

@GantMan Problem solved. I changed the version to 1.0.7 which the latest version and it worked. Thank you.

@GantMan Now that I think about it, I probably shouldn't have closed it until you fix it for others to find it. I'm still a noob when it comes to open source. Anyway, it's your choice now.

all good :)   handled via https://github.com/infinitered/ignite/pull/147


[deliver] add support to detecting and uploading 6.7" (iPhone 14 Pro Max) screenshots

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I see several green ci/circleci builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

Description
Added new screenshot sizes for 6.7inch iPhone 14 Pro Max

Testing Steps

Done, fixed one issue

@cherpake  I'm so sorry for your inconvenience 🙏  our CI avoided placing trailing commas.
So my suggestion is completely wrong 🙇
Could you revert them?
https://github.com/fastlane/fastlane/pull/20694/commits/673e1b908f804554d0f182a28bf07e7aa4bd856c
https://github.com/fastlane/fastlane/pull/20694/commits/a758f8aa2bf41699ad9d7f2dfe4dcaa011e11ce9

I want Fastlane t-shirt for this :)

Could you revert Gemfile.lock?
https://github.com/fastlane/fastlane/pull/20694/files#r984199848
You just execute bundle install.

Done...


fix sign error

Fix the problem that the following devices cannot be configured due to an error when sending MQTT messages.

Device : mss110 us mt7682 (hardware:2.0.0 firmware:2.1.19)
Error : "payload":{"error":{"code":5001,"detail":"sign error"}}

If this does not set the sign parameter correctly when sending an MQTT message, the device will not accept the request. The calculation method of the sign parameter is unknown, but it seems that it can be reused to some extent. See the following link.

https://github.com/donavanbecker/homebridge-meross/issues/20#issuecomment-615852271

Therefore, by saving and reusing the credentials obtained from the MQTT announcement, you will be able to configure and use your device.

Hello Naoki,
this is very useful.
If I understand correctly this should happen when your device is programmed with a protocol key differnet from "" (void)
Is this the case? Or
I used the @bytespider utility to reset and configure my devices and let the key empty so my implementation as built on that.
I want to take some time to review and integrate your code anyway because it could definitely be more robust but I want to be sure there are no unknown side-effects.
In my tests I tried to re-use messageId-timestamp-sign and I remember sometimes the protocol exchange was failing for some other reason. I don't remember the exact case though...documentation was never written :)  ...probably related to using some old timestamps too late in time and so the plug firmware rejects or discards the command.
Anyway, I'm thinking about adding your feature as an optional fallback when the plug rejects commands with a 'sign' error
Please be patient while I also sort out this repo to support a 'dev' branch since the pathes are building up!
Thank you very much! I'm happy seeing your contributions

Hello @krahabb ,
Yes, surely I'm configuring with --key and --user. The reason is that hass's Mosquit to broker addon couldn't configure anonymous access, so he creates and operates a local user for each of Meloss devices.
If this timestamp becomes obsolete and may expire, we may need to update it regularly, such as keep alive.
I have a device I'm actually using and a spare offline device, so I'd like to observe what happens when I keep offline.

@krahabb I found it!
"sign":  md5((messageid + "value of __key" + str(timestamp)).encode('utf-8')).hexdigest()

This seems to give the correct sign value. :+1:

I've hard-coded the value of __key and tried it, and it's working fine!

I've hard-coded the value of key and tried it, and it's working fine!
I would be happy if I could allow the user to set the value of key when adding a device.

Yeah, I was thinking about refining the code to support 'non void' keys and more.
I've experimented with the official meross web-api to login and download keys and stuff and I would like to build a decent configuration frontend in my component where you can use your meross credentials to download your plugs configuration and set them up without the need of the manual command-line reconfiguration..but that's a lot of work at the moment
I'll try an incremental implementation

I don't think meross credentials are required. It would be enough for me to be able to set the value of --key used when configuring the connection information of the local mqtt broker on the command line to the meross_lan component.
How about making it possible to set the key value in the user form when adding a device by using the messageId, timestamp, sign obtained from the device for the connection check at the time of device discovery?

By the way, I've added --key mss to the command line configuration. It can be used without problems with the following hard coding.
--- a/custom_components/meross_lan/meross_device.py
+++ b/custom_components/meross_lan/meross_device.py
@@ -16,7 +16,7 @@ from .const import *
 from .switch import MerossLanSwitch
 from .sensor import MerossLanSensor

-def build_payload(namespace: str, method: str, payload: Any):
+def build_payload(namespace: str, method: str, payload: Any, cKey: str = 'mss'):
     messageid = uuid4().hex
     timestamp = int(time())
     p = {
@@ -28,7 +28,7 @@ def build_payload(namespace: str, method: str, payload: Any):
                 #"from": "/appliance/9109182170548290882048e1e9522946/publish",
                 "timestamp": timestamp,
                 "timestampMs": 0,
-                "sign": md5((messageid + str(timestamp)).encode('utf-8')).hexdigest()
+                "sign": md5((messageid + cKey + str(timestamp)).encode('utf-8')).hexdigest()
             },
             "payload": payload
         }

I will close this PR once. I am looking forward.


[1]    4229 illegal hardware instruction  figma-export colors

Getting this when running figma-export colors with brew package.
Version: 0.32.2
MacOS: 12.2.1
Hardware: 15" MacBook Pro (2018) 2,9 GHz 6-Core Intel Core i9

Could you please show me your .figma-export.yaml file? Is it possible to give me an access to your Figma File so I can reproduce the issue?

`---
figma:
lightFileId: MRVOEjTRatddzaMN7iYlAe
[optional] Figma API request timeout. The default value of this property is 30 (seconds). If you have a lot of resources to export set this value to 60 or more to give Figma API more time to prepare resources for exporting.
timeout: 30
[optional] Common export parameters
common:
[optional]
colors:
# [optional] RegExp pattern for color name validation before exporting. If a name contains "/" symbol it will be replaced by "" before executing the RegExp
nameValidateRegexp: '^[a-zA-Z]+$' # RegExp pattern for: background, background_primary, widget_primary_background
# [optional] RegExp pattern for replacing. Supports only $n
nameReplaceRegexp: 'color_$1'
# [optional] Extract light and dark mode colors from the lightFileId specified in the figma params. Defaults to false
useSingleFile: false
# [optional] If useSingleFile is true, customize the suffix to denote a dark mode color. Defaults to '_dark'
darkModeSuffix: '_dark'
[optional]
icons:
# [optional] Name of the Figma's frame where icons components are located
figmaFrameName: Icons
# [optional] RegExp pattern for icon name validation before exporting. If a name contains "/" symbol it will be replaced by "" before executing the RegExp
nameValidateRegexp: '^(ic)(\d\d)([a-z0-9]+)$' # RegExp pattern for: ic_24_icon_name, ic_24_icon
# [optional] RegExp pattern for replacing. Supports only $n
nameReplaceRegexp: 'icon_$2_$1'
# [optional] Extract light and dark mode icons from the lightFileId specified in the figma params. Defaults to false
useSingleFile: false
# [optional] If useSingleFile is true, customize the suffix to denote a dark mode icons. Defaults to '_dark'
darkModeSuffix: '_dark'
[optional]
images:
# [optional]Name of the Figma's frame where image components are located
figmaFrameName: Illustrations
# [optional] RegExp pattern for image name validation before exporting. If a name contains "/" symbol it will be replaced by "" before executing the RegExp
nameValidateRegexp: '^(img)([a-z0-9_]+)$' # RegExp pattern for: img_image_name
# [optional] RegExp pattern for replacing. Supports only $n
nameReplaceRegexp: 'image_$2'
# [optional] Extract light and dark mode icons from the lightFileId specified in the figma params. Defaults to false
useSingleFile: false
# [optional] If useSingleFile is true, customize the suffix to denote a dark mode icons. Defaults to '_dark'
darkModeSuffix: '_dark'
[optional]
typography:
# [optional] RegExp pattern for text style name validation before exporting. If a name contains "/" symbol it will be replaced by "" before executing the RegExp
nameValidateRegexp: '^[a-zA-Z0-9]+$' # RegExp pattern for: h1_regular, h1_medium
# [optional] RegExp pattern for replacing. Supports only $n
nameReplaceRegexp: 'font_$1'
iOS export parameters
ios:
Path to xcodeproj
xcodeprojPath: "./App.xcodeproj"
Xcode Target containing resources and corresponding swift code
target: "UIComponents"
Absolute or relative path to the Assets.xcassets directory
xcassetsPath: "./Modules/Sources/DesignSystem/Resources/Assets.xcassets"
Is Assets.xcassets located in the main bundle?
xcassetsInMainBundle: false
[optional] Is Assets.xcassets located in a swift package? Default value is false.
xcassetsInSwiftPackage: true
[optional] Add @objc attribute to generated properties so that they are accessible in Objective-C. Defaults to false
addObjcAttribute: false
[optional] Parameters for exporting colors
colors:
# How to export colors? Use .xcassets and UIColor extension (useColorAssets = true) or extension only (useColorAssets = false)
useColorAssets: true
# [required if useColorAssets: True] Name of the folder inside Assets.xcassets where to place colors (.colorset directories)
assetsFolder: Colors
# Color name style: camelCase or snake_case
nameStyle: camelCase
# [optional] Absolute or relative path to swift file where to export SwiftUI colors (Color) for accessing from the code (e.g. Color.backgroundPrimary)
swiftuiColorSwift: "./Modules/Sources/DesignSystem/Color+extension.swift"
# [optional] If true and a color style name contains symbol "/" then "/" symbol indicates grouping by folders, and each folder will have the "Provides Namespace" property enabled. Defaults to false.
groupUsingNamespace: false
[optional] Parameters for exporting icons
icons:
# Image file format: pdf or svg
format: svg
# Name of the folder inside Assets.xcassets where to place icons (.imageset directories)
assetsFolder: Icons
# Icon name style: camelCase or snake_case
nameStyle: camelCase
# [optional] An array of icon names that will supports Preseve Vecotor Data
preservesVectorRepresentation:
- ic24TabBarMain
- ic24TabBarEvents
- ic24TabBarProfile
# [optional] Absolute or relative path to swift file where to export icons (SwiftUI’s Image) for accessing from the code (e.g. Image.illZeroNoInternet)
swiftUIImageSwift: "./Modules/Sources/DesignSystem/Image+extension_icons.swift"
[optional] Parameters for exporting images
images:
# Name of the folder inside Assets.xcassets where to place images (.imageset directories)
assetsFolder: Illustrations
# Image name style: camelCase or snake_case
nameStyle: camelCase
# [optional] An array of asset scales that should be downloaded. The valid values are 1, 2, 3. The deafault value is [1, 2, 3].
scales: [1, 2, 3]
# [optional] Absolute or relative path to swift file where to export images (SwiftUI’s Image) for accessing from the code (e.g. Image.illZeroNoInternet)
swiftUIImageSwift: "./Modules/Sources/DesignSystem/Image+extension_illustrations.swift"
[optional] Parameters for exporting typography
typography:
# [optional] Absolute or relative path to swift file where to export SwiftUI fonts (Font extension).
swiftUIFontSwift: "./Modules/Sources/DesignSystem/Views/Common/Font+extension.swift"
# Should FigmaExport generate UILabel for each text style (font)? E.g. HeaderLabel, BodyLabel, CaptionLabel
generateLabels: false
# Typography name style: camelCase or snake_case
nameStyle: camelCase`

FigmaExport crashes because you have incorrect nameValidateRegexp value. You forgot ( and ).
nameValidateRegexp: '^([a-zA-Z_]+)$' ← valid value

Ok, thanks!
I have not changed this from template so maybe you need to fix this there?

Ooops. Thanks for pointing out! Fixed.


protein_coding_variant

What is this request referring to?
protein-coding variant
What is the name you would like SO to give the term?
protein_coding_variant
What is the definition that you would like for this term?
A variant occurring within a protein-coding region of the genome.
Synonyms
Parent Term
Relevant Publications
PMID: 28482034
Capriotti, E., & Fariselli, P. (2017). PhD-SNPg: a webserver and lightweight tool for scoring single nucleotide variants. Nucleic acids research, 45(W1), W247–W252. https://doi.org/10.1093/nar/gkx369

Perhaps we could add this as a synonym of coding_sequence_variant (SO:0001580) instead?
Also, please see my comment in issue #630.


Feature/pdct 1564 update the mcf landing page hero

What's changed
Proposed version
Please select the option below that is most relevant from the list below. This
will be used to generate the next tag version name during auto-tagging.
Add Hero to MCF landing page

[ ] Skip auto-tagging
[x] Patch
[ ] Minor version
[ ] Major version

Visit the Semver website to understand the
difference between MAJOR, MINOR, and PATCH versions.
Notes:

If none of these options are selected, auto-tagging will fail
Where multiple options are selected, the most senior option ticked will be
used -- e.g. Major > Minor > Patch
If you are selecting the version in the list above using the textbox, make
sure your selected option is marked [x] with no spaces in between the
brackets and the x


GitHub URL as a package: "Ignoring because it is not a valid package"

Hi. Wanted to highlight that requiring a package that is a URL fails with
DEBUG (SyncWorker_0) [custom_components.pyscript] Ignoring 'git+https://github.com/ALERTua/aioedgeos.git@master' because it is not a valid package

My bad I wasn't using PEP 508 format.
aioedgeos@git+http://git@github.com/ALERTua/aioedgeos.git@master worked on the pyscript side, but failed on homeassistant side with:
2022-09-22 18:05:38.687 INFO (MainThread) [custom_components.pyscript] Installing the following packages: {'aioedgeos': {'version': '_unpinned_version', 'sources': ['/config/pyscript/requirements.txt'], 'installed_version': None}}
2022-09-22 18:05:42.385 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package aioedgeos: ERROR: Could not find a version that satisfies the requirement aioedgeos (from versions: none)
ERROR: No matching distribution found for aioedgeos
2022-09-22 18:05:45.598 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry pyscript for pyscript
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/pyscript/__init__.py", line 257, in async_setup_entry
    await install_requirements(hass, config_entry, pyscript_folder)
  File "/config/custom_components/pyscript/requirements.py", line 302, in install_requirements
    await async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 60, in async_process_requirements
    await _async_get_manager(hass).async_process_requirements(name, requirements)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 236, in async_process_requirements
    await self._async_process_requirements(name, missing)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 267, in _async_process_requirements
    raise RequirementsNotFound(name, list(failures))
homeassistant.requirements.RequirementsNotFound: Requirements for pyscript not found: ['aioedgeos'].


How to convert a model to safesensors format，Load directly into GPU memory？

use code：
model = load_model()
model.save_pretrained(
save_directory=model_save_dir,
max_shard_size="{}GB".format(2),
safe_serialization=True,
)
But loading does not go directly to GPU

Could you please explain your question in more detail? I didn't fully understand what you meant.


Correct firmware showing in Teslamate, but not in Grafana

Describe the bug
Last night I received and update for my car (2020.12.10 e0ccfda3d911), but that version does not show in Grafana. Instead it's showing the previous version that was installed (2020.12.5 e2179e0650f0). It does however show the correct version in Teslamate.
Expected behavior
Grafana firmware version should match what the car has.
Relevant entries from the logs
Logs from starting from around the time where I updated the car.
teslamate_1         | 00:42:58.563 [info] Stream.Timeout / 159
teslamate_1         | 00:43:55.828 [info] Stream.Timeout / 160
teslamate_1         | 00:44:26.928 [info] Stream.Timeout / 161
teslamate_1         | 00:44:48.353 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 00:44:48.353 car_id=1 [error] Error / :timeout
teslamate_1         | 00:44:57.995 [info] Stream.Timeout / 162
teslamate_1         | 00:45:19.309 car_id=1 [info] Start / :offline
teslamate_1         | 00:45:19.313 car_id=1 [info] Disconnecting ...
teslamate_1         | 00:46:30.807 car_id=1 [info] Start / :online
teslamate_1         | 00:46:30.818 car_id=1 [info] Connecting ...
teslamate_1         | 00:49:38.040 car_id=1 [info] Suspending logging
teslamate_1         | 01:19:49.997 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 01:19:49.997 car_id=1 [error] Error / :timeout
teslamate_1         | 01:50:34.243 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 01:50:34.243 car_id=1 [error] Error / :timeout
teslamate_1         | 01:51:15.367 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 01:51:15.367 car_id=1 [error] Error / :timeout
teslamate_1         | 05:52:32.956 [warn] WebSocket disconnected. Reconnecting …
teslamate_1         | 06:34:35.959 [info] tzdata release in place is from a file last modified Wed, 11 Sep 2019 19:35:17 GMT. Release file on server was last modified Fri, 24 Apr 2020 04:15:20 GMT.
teslamate_1         | 06:34:37.683 [info] Tzdata has updated the release from 2019c to 2020a
teslamate_1         | 07:22:50.919 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 07:22:50.919 car_id=1 [error] Error / :timeout
teslamate_1         | 07:53:33.868 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 07:53:33.868 car_id=1 [error] Error / :timeout
teslamate_1         | 08:54:28.174 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 08:54:28.174 car_id=1 [error] Error / :timeout
teslamate_1         | 10:06:48.943 car_id=1 [info] Fetching vehicle state ...
teslamate_1         | 10:07:20.022 [info] Stream.Timeout / 5
teslamate_1         | 10:25:28.840 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 10:25:28.840 car_id=1 [error] Error / :timeout
teslamate_1         | 10:56:12.747 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 10:56:12.747 car_id=1 [error] Error / :timeout
teslamate_1         | 11:57:07.857 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 11:57:07.857 car_id=1 [error] Error / :timeout
teslamate_1         | 12:27:56.709 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 12:27:56.709 car_id=1 [error] Error / :timeout
teslamate_1         | 13:58:51.973 [error] TeslaApi.Error / 504 – %{"error" => "upstream_timeout", "error_description" => "", "response" => nil}
teslamate_1         | 13:58:51.973 car_id=1 [error] Error / :timeout
teslamate_1         | 14:29:28.170 car_id=1 [warn] Preconditioning ...

Data
last lines from database updates table:
12,2019-12-29 09:48:21.752336,2019-12-29 10:05:43.318123,2<IP_ADDRESS> 6c8e76e3e807,1
13,2020-01-28 05:07:22.836928,2020-01-28 05:39:50.592594,2020.4.1 4a4ad401858f,1
14,2020-03-23 20:46:07.478,2020-03-23 20:58:15.564,2020.8.2 dc9bc402da23,1
15,2020-04-09 22:00:34.631,2020-04-09 22:25:59.259,2020.12.5 e2179e0650f0,1

**Operating environment**

- TeslaMate Version: 1.19.1
- Type of installation: Teslamate & Grafana in Docker, but database installed manualy on another machine.
- OS: Ubuntu 18.04

Hi @espenu,
The Grafana view is running following query:
select version from updates where car_id = $car order by start_date desc limit 1
Based on your lines of the database table of updates, your last version of update seems to be missing. Which would lead to why Grafana is missing those details.
Question here would be, why the newest version is missing actually...
Or has that maybe been corrected maybe now?
Have you tried to restart TeslaMate software?

The Grafana view is running following query:
select version from updates where car_id = $car order by start_date desc limit 1
Based on your lines of the database table of updates, your last version of update seems to be missing. Which would lead to why Grafana is missing those details.
Question here would be, why the newest version is missing actually...
Or has that maybe been corrected maybe now?
Have you tried to restart TeslaMate software?

Yeah, I noticed it was missing. I updated to 1.19.2 yesterday evening and It's still wrong in Grafana now.
I did however notice that when starting up yesterday after the update I got the following errors from Teslamate:
teslamate_1           | 20:16:27.949 [info] tzdata release in place is from a file last modified Wed, 11 Sep 2019 19:35:17 GMT. Release file on server was last modified Fri, 24 Apr 2020 04:15:20 GMT. teslamate_1           | 20:16:29.727 [info] Tzdata has updated the release from 2019c to 2020a teslamate_1           | 20:16:34.895 [info] Application teslamate exited: TeslaMate.Application.start(:normal, []) returned an error: shutdown: failed to start child: TeslaMate.Vehicles teslamate_1           |     ** (EXIT) an exception was raised: teslamate_1           |         ** (CaseClauseError) no case clause matching: {:error, :checkout_timeout} teslamate_1           |             (teslamate 1.19.2) lib/teslamate/vehicles.ex:78: TeslaMate.Vehicles.list_vehicles!/0 teslamate_1           |             (teslamate 1.19.2) lib/teslamate/vehicles.ex:52: TeslaMate.Vehicles.init/1 teslamate_1           |             (stdlib 3.12.1) supervisor.erl:295: :supervisor.init/1 teslamate_1           |             (stdlib 3.12.1) gen_server.erl:374: :gen_server.init_it/2 teslamate_1           |             (stdlib 3.12.1) gen_server.erl:342: :gen_server.init_it/6 teslamate_1           |             (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 teslamate_1           | {"Kernel pid terminated",application_controller,"{application_start_failure,teslamate,{{shutdown,{failed_to_start_child,'Elixir.TeslaMate.Vehicles',{{case_clause,{error,checkout_timeout}},[{'Elixir.TeslaMate.Vehicles','list_vehicles!',0,[{file,\"lib/teslamate/vehicles.ex\"},{line,78}]},{'Elixir.TeslaMate.Vehicles',init,1,[{file,\"lib/teslamate/vehicles.ex\"},{line,52}]},{supervisor,init,1,[{file,\"supervisor.erl\"},{line,295}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,374}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,342}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,249}]}]}}},{'Elixir.TeslaMate.Application',start,[normal,[]]}}}"} teslamate_1           | Kernel pid terminated (application_controller) ({application_start_failure,teslamate,{{shutdown,{failed_to_start_child,'Elixir.TeslaMate.Vehicles',{{case_clause,{error,checkout_timeout}},[{'Elixir.Tes teslamate_1           |  teslamate_1           | Crash dump is being written to: erl_crash.dump...done
I don't know if that could have any causal link with the version issue.
To get it working I could just add another line to the database with the correct version right? But I would of course like to find the root cause of why it's missing in the first place.

Normally TeslaMate notices when a firmware update is installed. When you installed the update, there seems to have been problems with the Tesla API (hence the timeouts). For these cases there is a fallback mechanism that detects retrospectively if an update was installed while the car was unavailable. This mechanism had a bug which should be fixed on master.

I experienced the same problem last night/this morning.  Car woke naturally to start charging at 00:30, and I logged into the app at the same time and noticed there was a software update available (2<IP_ADDRESS>).  Set the update off and went to bed.
The Tesla app and TeslaMate show the new firmware version, but Grafana shows the old firmware (2020.8.5) everywhere.  There is no entry for the new firmware on the "Updates" dashboard either.
I'm on version 1.19.3 of TeslaMate, which I believe is current.
Do you have to go into the car to "finish" the install so that TeslaMate/Grafana will see it properly?

Consider changing normalize_version(last_vsn) < normalize_version(vsn) to != instead. My car_version was downgraded and Grafana doesn't see it.


No package.json, deprecated library usage

sup.
None of these have npm package.jsons, what are we supposed to do, make them manually???
Also discord.js-client has been deprecated
Is this maintained @iUseYahoo

Is this maintained

No, from my understand this repository is not maintained. @I2rys please confirm this.

that just seems incredibly inconvenient
If it turns out that this repo is maintained, I'll make sure to pull request package.json files

Is this maintained

No, from my understanding this repository is not maintained. @I2rys please confirm this. You should be installing the required packages yourself.
Example (https://github.com/hanaui-git/ZeroDiscord/tree/main/purifier) If you wanted to use the purifier you would have to run the following:
npm i recursive-readdir-async
npm i parallel-park
npm i chalk

This repository is maintained.

But why not just include a package.json file?

But why not just include a package.json file?

It's just gonna have hard time adding the tools dependencies one by one also It's basically the same but It's all in one in installing.

Sorry I don't understand. With q package.json file with dependencies specified, you can just run npm i and everything will automatically install??

Yes It will automatically install the given dependencies using the npm i command.

Considering it is this simple, why don't you just add a package.json file already

Oh flip yeah I just realized that... I think an unconciouse habit. 💀

@stretch07 I'll add the package.json in the next update mate. :D


Feat/fcil: Try to remove the print code in rank.py.

Remove the print code in rank.py and testcase.py and metrics.py. So Sorry about that.
Uploading the full code of  PR https://github.com/kubeedge/ianvs/pull/143

Marked: This is a new version of https://github.com/kubeedge/ianvs/pull/143 after https://github.com/kubeedge/ianvs/pull/160

/lgtm


[Broker] Support disable shared subscription type.

Motivation
Support disable shared subscription. in broker/namespace/topic
Verifying this change
and the test
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

@congbobo184 would you please help add some  description  for the reason of this change?

@congbobo184 Please rebase to the master branch and resolve the conflicts.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

@sijie Please help review this PR again.

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

Confirmed w/ @congbobo184, need to add the following docs:

Add the following contents (serveral methods and descriptions) to Admin API docs:

namespaces

set-subscription-types-enabled
get-subscription-types-enabled

topics

set-subscription-types-enabled
get-subscription-types-enabled

Add the configuration description to broker section.

@congbobo184 since many contents in Admin API docs lag behind pulsar-admin, REST API, and Java admin API. To get the latest info, we point users to navigate to those 3 websites instead of Admin API docs and do not update Admin API docs temporarily.
Hence for doc side, we will add the configuration description to broker section.


Remove Spinner

A total minor issue, but if we have a status indicator, we don't need a spinner because the snake acts as the spinner. See below. I also don't think we need the spinner below the download progress bar (unless you are concerned of there being a lockup there).

We could do something like this for the download progress bar so there is some movement during the download process: https://codepen.io/gustitammam/pen/RRXGdj

@tylerdcooper I agree with removing the activity spinner in the reconnection screen. Seems a bit redundant.
Activity spinner removed in this view for TestFlight 1.1(8)
I think it might be a good idea to keep the activity spinner underneath the download progress bar until I'm able to put together a Dynamic Progress Bar. In situations where large files are being transferred, the app doesn't illustrate to the user that something is happening, the progress bar remains static until the large file has been transferred.


Add rf_local_is_in function

To dos:

tests currently failing. Some kind of type error in encoding or something
add function to docs
add Python bindings
update masking docs to use it.

I am building the docs locally just to make sure the fix of #310 doesn't break anything.
@metasim let me know if docs look good and resolve your questions. We can embed a very short example.

Local docs build was successful.

See #400 which triggers circle CI docs build so we can see the final docs.


[Dubbo]: Fix the bug that isDefault configuration is not useful  #12961

What is the purpose of the change?
Fix #12961
The tag with attribute=false for the isDefault property has been removed.

In the isIgnoredAttribute method, due to isDefault having attribute=false, the entire method returns a Boolean value of true.

In the assignProperties method of the AbstractConfig class, at the breakpoint, the final condition evaluates to false, preventing the default property assignment process from being executed, resulting in the default value remaining unprocessed as null.
Checklist

[x] Make sure there is a GitHub_issue field for the change.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[x] Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?

It looks like this change also impacts the hashCode equals logic, possibly already existing configurations change from being equal to now not equal.
If it's really necessary, may need to add a new annotation property


[Feature request] Support separate accounts for smtp and imap

Some mail clients allow doing that, like the excellent Mailpile for instance (which I hope will continue to grow and spread to more users), and probably others. It can be useful when one is using an automatic redirection to another account (usually on a server with unlimited storage, or just for combining all emails into fewer accounts), but still wants to use the origin account for smtp. It can be important for work or business emails to be sent from the origin smtp server for instance, while still useful to collect and sort emails in a different account.
It may be out of nmail's scope, but it is worth asking.
Another approach would be multi-account support, with selection of sending account when composing an email, but this would be a lot of work and contradicts the minimalistic nmail approach.

This has been implemented now. In order to use different SMTP account one specifies smtp_user field in ~/.nmail/main.conf and nmail will prompt for the SMTP password at next startup. Please let me know if any issues are encountered. Thanks!


Add/Replace prefix-set test scenarios

Pull Request Functional Test Report for #3308 / d50b443e49cabbb15e56063da8475c07f15f3487
Virtual Devices

Device
Test
Test Documentation
Job
Raw Log

Arista cEOS

RT-1.53: prefix-list test
b055fbd5
Log

Cisco 8000E

RT-1.53: prefix-list test
5901ce0b
Log

Cisco XRd

RT-1.53: prefix-list test
0908d029
Log

Juniper ncPTX

RT-1.53: prefix-list test
5ecd1a38
Log

Nokia SR Linux

RT-1.53: prefix-list test
4744c42b
Log

Openconfig Lemming

RT-1.53: prefix-list test
bc071627
Log

Hardware Devices

Device
Test
Test Documentation
Raw Log

Arista 7808

RT-1.53: prefix-list test

Cisco 8808

RT-1.53: prefix-list test

Juniper PTX10008

RT-1.53: prefix-list test

Nokia 7250 IXR-10e

RT-1.53: prefix-list test

Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.5%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1983

Relevant Lines:
3573

💛  - Coveralls


Rescue trapped COMP in old Compound strategy

We have comp left uncollected from our old Compound strategy.
Collecting this will need to be done in two parts:

From the old governor, we will need to setRewardTokenAddress(COMP) on 0xD5433168Ed0B1F7714819646606DB509D9d8EC1f
We'l need to run this governance proposal, which will collect the comp, using the new governor.

I've added a second deploy that creates a proposal from the old governor, to reactivate collecting COMP on the old strategy.
These two must be executed in order:

First Prop 26 on the old governor
Then Prop 27 on the current governor

As of 11/3/2021, running this two commands results in a 20K increase in the vaults holdings.
These should be good to go.

I'd love to go ahead and get these live. I'll go ahead and give submitting them a shot today.

Note that these proposals are on DIFFERENT governors.
Check method names and addresses
Running 026_comp_rescue_a deployment...
INFO: Sending proposal to governor...
INFO: Using governor contract at 0x830622BDd79CC677eE6594E20bBda5B26568b781
INFO: Submitting proposal for Re-enable rewards collection on old Compound strategy to governor 0x830622BDd79CC677eE6594E20bBda5B26568b781
INFO: Args: [
  [
    "0xD5433168Ed0B1F7714819646606DB509D9d8EC1f"
  ],
  [
    "setRewardTokenAddress(address)"
  ],
  [
    "0x000000000000000000000000c00e94cb662c3520282e6f5717214004a7f26888"
  ]
]
Gas price (gwei): Regular=119.742609525 Premium=136.506574858
INFO: Submitted proposal 6
INFO: Next step: call the following methods on the governor at 0x830622BDd79CC677eE6594E20bBda5B26568b781 via multi-sig
INFO:    queue(6)
INFO:    execute(6)
INFO: Done
INFO: Proposal sent.
026_comp_rescue_a deploy done.
...
Running 027_comp_rescue_b deployment...
INFO: Sending proposal to governor...
INFO: Submitting proposal for Collects COMP from old Contract to governor 0x72426BA137DEC62657306b12B1E869d43FeC6eC7
INFO: Args: [
  [
    "0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70",
    "0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70",
    "0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70"
  ],
  [
    "approveStrategy(address)",
    "harvestAndSwap(address)",
    "removeStrategy(address)"
  ],
  [
    "0x000000000000000000000000d5433168ed0b1f7714819646606db509d9d8ec1f",
    "0x000000000000000000000000d5433168ed0b1f7714819646606db509d9d8ec1f",
    "0x000000000000000000000000d5433168ed0b1f7714819646606db509d9d8ec1f"
  ]
]
Gas price (gwei): Regular=152.551334788 Premium=173.908521658
INFO: Submitted proposal 8
INFO: Next step: call the following methods on the governor at 0x72426BA137DEC62657306b12B1E869d43FeC6eC7 via multi-sig
INFO:    queue(8)
INFO:    execute(8)
INFO: Done
INFO: Proposal sent.
027_comp_rescue_b deploy done.

Old Governor

New Governor


Use epoch nano seconds instead of sha

Change-type: patch
Signed-off-by: Stathis Moraitidis<EMAIL_ADDRESS>

@balena-ci I self-certify!


Does Jest repo need .gitattributes file?

Possible chore
The first solution for #8783 with multiline string copyright and license criterion failed for:

packages/expect/src/__tests__/__arbitraries__/sharedSettings.ts
packages/expect/src/__tests__/matchers-toContain.property.test.ts
packages/expect/src/__tests__/matchers-toContainEqual.property.test.ts
packages/expect/src/__tests__/matchers-toEqual.property.test.ts
packages/expect/src/__tests__/matchers-toStrictEqual.property.test.ts

because they have CRLF instead of LF for line ending
Nicolas probably assumed that Jest has per-repository settings, but it does not
The only other files that I found in the repo are images or in node_modules subdirectories
For comparison, the React repo has .gitattributes which consists of:
* text=auto

If there is a need in the future for e2e or examples to test behavior on Windows (for examples, snapshot files) then it is possible to add specific exceptions, true?

Opened #8809 to resolve the endings issue (not with gitattributes, but with proper config for existing tooling)


The name of the 'Create Snapshot' icon in the toolbar against one resource group shows incompletely and end with '...'

Storage Explorer Version: 1.17.0
Build Number: 20201222.4
Branch: main
Language: German/ Dutch/ Swedish/ Turkish/ Spanish
Platform/OS: ia32/x64
Architecture: Windows 10/ Linux Ubuntu 16.04/ MacOS Catalina
Regression From: Not a regression
Steps to Reproduce

Launch Storage Explorer.
Open 'Settings' -> Application (Regional Settings) -> Select 'Svencka' -> Restart Storage Explorer.
Expand 'Disks' -> Open one resource group.
Observe the toolbar -> Check whether the name of the 'Create Snapshot' icon shows completely.

Expected Experience
The name of the 'Create Snapshot' icon shows completely.

Actual Experience
The name of the 'Create Snapshot' icon shows incompletely and end with '...'.

Additional Context

In Spanish, this issue doesn't reproduce on Mac.
The screenshot in ENU.

Duplicate of #3932, just with a different toolbar button.

Duplicate of #3932, just with a different toolbar button.


Update HexDisplay.xaml.cs

No need to fire OnColorChanged if that's a result of internal change. There is a side effect of firing that event for changing txtHex value. TextChanged event goes through ColorConverter.ConvertFromString logic which in some cases comes back with a colour close enough but different from what user entered in txtHex. If that fires OnColorChanged event, txtHex value will change at some circumstances when user is typing hex colour values.

Fixed a bug in colour change when typing in txtHex. Try for example eeeeee and it’s converted to EDEDED

Looks good again, thanks!


Ensure all elements in JSON array of double/floats are double/floats before parsing

Fixes parsing the 3D Tiles with no texture from here.

Good catch @joseph-kaile! I think anywhere that section of code sets any of the isX flags to anything other than false, it should be &= rather than =. So I see at least two more places it should be changed. Also, please update CHANGES.md.


Added German language

Keep in mind, that the buttons and labels are sometimes to small to display the content correctly

Hello, Jan D.
Thank you for sending me that the pull request.
Actually, this project already development end, but I will check this request and add German language to release new version.
Right now, I'm working on another project, so it may be delayed, but I'll do it as soon as possible. (1~2 days)

Hello.
I just checked your pull request.
I'm going to apply your German resource file to my project. 👌 👍
Well done, but when I applying your commit, there are some bugs and improvements, so I'll fix it further. New version will be released later.
Thank you for your interest in my project!  (●'◡'●)

Hello.
Some of the translations into German are missing. so I contacted you for a more complete translation.
I don't know any German at all, so could you translate the words below please?

Binary Nature
Firmware Info
Download Info
Region
Version
"The destination file already exists.
Would you like to append it? (resume download)"
Append
Overwrite
Cancel
Tnanks.


Testing code that runs on other threads

How do I run tests on code that runs on other threads?

Currently there is no specific support for testing multi threaded code.
Do you have any ideas, how oleaster should help you with this?

I don't see how this is Oleaster specific or how it can help.
Here is an example of an Oleaster integration test that starts a test server in a separate thread.
You can use other useful frameworks such as awaitility to help. Oleaster doesn't exclude these options.


[BUG] Failed parsing result['IaltLinje']['FraDatoStr']

Please help me help you:

[x] Describe what you experience and what the expectation was
[x] Describe reproduction steps (if something special was done)
[ ] Did you try to add the debug lines to configuration.yaml? Post the output please.
[ ] If relevant, please post screenshots

Describe the bug
I've updated Èforsyning to version v1.2.3 and noticed that errors has started occuring in the HS logs.
It looks like, this line maybe is parsing something incorrect or the response was null (maybe?).
To Reproduce
This happens automatically.
Expected behavior
Ehhhmmm, not to throw an error? 😁
Log file output
This error originated from a custom integration.

Logger: custom_components.eforsyning.coordinator
Source: custom_components/eforsyning/coordinator.py:55
Integration: EForsyning (documentation, issues)
First occurred: 21:47:12 (1 occurrences)
Last logged: 21:47:12

Unexpected error fetching eForsyning data: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/config/custom_components/eforsyning/coordinator.py", line 53, in _async_update_data
    data = await self.hass.async_add_executor_job(self.api.get_latest)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/eforsyning/pyeforsyning/eforsyning.py", line 415, in get_latest
    result = self._parse_result_totals_line(year_data)
  File "/config/custom_components/eforsyning/pyeforsyning/eforsyning.py", line 541, in _parse_result_totals_line
    'from-date': result['IaltLinje']['FraDatoStr'],
TypeError: 'NoneType' object is not subscriptable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/eforsyning/coordinator.py", line 55, in _async_update_data
    raise ConfigEntryNotReady from error
homeassistant.exceptions.ConfigEntryNotReady: 'NoneType' object is not subscriptable

Thanks. Revert to 1.2.2 for now. I will check it out.

With Home Assistant 2023.2.3 and then latest version installed I cannot reproduce this error.  Looking at the place in the code it would seem data retrieved was not as expected.  This could be a temporary API error.

I haven't seen this error since. So i'll close this issue.


Test Issue created at Tue, 08 Jun 2021 08:05:01 GMT

Test issue body  Tue, 08 Jun 2021 08:05:01 GMT

Comment on issue at Tue, 08 Jun 2021 08:05:03 GMT