Python apm agent  doesn't captured spans in aws lambda functions

Hi, I added an elastic APM agent in my lambda function transaction are captured perfectly, I don't see any database calls in my dashboard
import sys
import json
import pymysql
import logging
from elasticapm import capture_serverless

rds_host = "******"
name = "admin"
password = "***"
db_name = "***"
port = 3306

logger = logging.getLogger()
logger.setLevel(logging.INFO)

try:
    conn = pymysql.connect(host=rds_host, user=name, passwd=password, db=db_name, connect_timeout=5)
except pymysql.MySQLError as e:
    logger.error("ERROR: Unexpected error: Could not connect to MySql instance.")
    logger.error(e)
    sys.exit()

logger.info("SUCCESS: Connection to RDS mysql instance succeeded")

@capture_serverless()
def lambda_handler(event, context):

    sql = "INSERT INTO `user` (`firstName`, `lastName`,  `gender`, `birthday`,`email`, `phone`, `shippingAddress`, `billingAddress`) VALUES(%s, %s, %s, %s, %s, %s, %s, %s)"
    val = (event["firstName"], event["lastName"], event["gender"], event["birthday"], event["email"], event["phone"], event["shipping_address_id"], event["billing_address_id"])

    with conn.cursor() as cur:
        cur.execute(sql, val)
        conn.commit()

    return {
        'statusCode': 200,
        'body': json.dumps('Data has been inserted successfully')
    }

The pymysql instrumentation creates a proxy object on pymysql.connect().
The problem is, that we don't instrument pymysql until the handler is invoked.
We may be able to improve this -- you'll note in the comment that we're trying not to create multiple client instances. But now that we have get_client() I don't think it should matter, we can check if a client has already been created.
For now, I think you would need to do something like this (untested):
import sys
import json
import pymysql
import logging
from elasticapm import capture_serverless

rds_host = "******"
name = "admin"
password = "***"
db_name = "***"
port = 3306

logger = logging.getLogger()
logger.setLevel(logging.INFO)

conn = None

@capture_serverless()
def lambda_handler(event, context):
    global conn
    if not conn:
        try:
            conn = pymysql.connect(host=rds_host, user=name, passwd=password, db=db_name, connect_timeout=5)
        except pymysql.MySQLError as e:
            logger.error("ERROR: Unexpected error: Could not connect to MySql instance.")
            logger.error(e)
            sys.exit()

        logger.info("SUCCESS: Connection to RDS mysql instance succeeded")

    sql = "INSERT INTO `user` (`firstName`, `lastName`,  `gender`, `birthday`,`email`, `phone`, `shippingAddress`, `billingAddress`) VALUES(%s, %s, %s, %s, %s, %s, %s, %s)"
    val = (event["firstName"], event["lastName"], event["gender"], event["birthday"], event["email"], event["phone"], event["shipping_address_id"], event["billing_address_id"])

    with conn.cursor() as cur:
        cur.execute(sql, val)
        conn.commit()

    return {
        'statusCode': 200,
        'body': json.dumps('Data has been inserted successfully')
    }

Actually I just remembered why we can't move it out of the decorator: We allow config via the **kwargs to the decorator. That may be something that's not super important to support, but that's the reason it's set up the way it is.
I will note, we're currently working on a no-code-changes instrumentation system, which will eventually include support for lambda. This will mean you will just add our lambda layer (which will include both the python agent and the extension) and environment variables and everything should just work. We don't have an ETA on that feature, but it should solve your use case much more cleanly.


Changed name of modify() function in Employee.js

This needs to be discussed as it is a naming convention issue, but for now the modify() function in a respective class  will have the name modify(parameterName1, parameterName2)

we really need to make a guideline on naming conventions to avoid these in the future since they're really minor


2.0.4 broken with PS 7.1.3 on Big Sur

Connect-ExchangeOnline throws the errors seen in the screen shot. Can no longer use ExchangeOnlineManagement.

@crshovrd41 - thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome, let me know if it can be called out in the docs.
Please follow this link to contact support for business products:  https://docs.microsoft.com/office365/admin/contact-support-for-business-products.
Please keep us posted here on the resolution to feed whatever information you discover into the content.

@dariomws  Thank you very much for the contribution and sharing this explanation. @crshovrd41 Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. We proceed here to close it.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

Hi, sorry, but I'm confused. How is this an issue with my tenant? You can blatantly see it's an issue with the module from the posted screen shot.
If I am really going to open a ticket, what should the ticket be about? What category? I need more information.

Hi @crshovrd41, thank you again for your comment.
I redirected you to support because it's the best place to report issues like this one. Here we are limited to documentation issues and improvements.

This makes a lot more sense. I thought you supported the powershell module.
Thanks!
On Tue, Apr 20, 2021 at 00:13 Dario Woitasen @.***>
wrote:

Hi @crshovrd41 https://github.com/crshovrd41, thank you again for your
comment.
I redirected you to support because it's the best place to report issues
like this one. Here we are limited to documentation issues and improvements.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/office-docs-powershell/issues/7569#issuecomment-823034058,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIQSX6TPTRDEKW2P5XD556LTJUSR3ANCNFSM42UH6CBA
.

--
~bFox


LICENSE is not recognized by Github as MIT

See also: PowerShell/PowerShell#12729

HI @xtqqczze do you mean the PowerShellGet license is not recognized by GitHub as an MIT license?

HI @xtqqczze do you mean the PowerShellGet license is not recognized by GitHub as an MIT license?

Yes, the license in the following file:
https://github.com/PowerShell/PowerShellGetv2/blob/master/LICENSE
Compare to the following file, which is recognized:
https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt

@xtqqczze thanks for pointing this out, this is resolved now.


WIP: Permit no spaces between attributes

The XML parser currently emits an error when it encounters attributes which are not separated by whitespace.
I am working on an application that uses xml-rs via the xmltree crate to parse HTML which is not always formatted very neatly. One such document has attributes formatted like this, which aborts parsing of the whole document.
The solution I propose here makes the parser just start reading a new attribute. The test suite does not pass yet, but it does serve as an example.
Please let me know what you think :)

I don't want to keep adding more and more options for dealing with garbage inputs. The whole point of XML was supposed to be the absolute unforgiving no-excuses strictness of the parsing to force document producers to fix their syntax, rather than to force document consumers to deal with an infinite amount of mistakes that can be made.
For parsing documents that are technically not XML, I suggest using https://lib.rs/crates/xml5ever


As a new user of GEOPM I would like to be less confused by the label "signal"

Is your feature request related to a problem? Please describe.
The use of "signal" to describe values that can be read through the PlatformIO interface is confusing.  One reason is the conflation with the POSIX signal concept.  Another reason is that many other open source projects use the term "metric" for this purpose, and we are not following what is growing to be a standard.
Describe the solution you'd like
I would suggest a broad replacement of "signal" with "metric", "Signal" with "Metric" and "SIGNAL" with "METRIC" throughout the repository except where "signal" is refering to a POSIX signal.  This will be a significant change to our APIs and ABIs, but we will be issuing a major release on our next update (2.0).
Describe alternatives you've considered
This change is not required, and keeping API and ABI compatibility is important.  For this reason we should consider not making this change.  Another consideration is that it will lead to many conflicts in un-merged branches, especially those that relate to IOGroups.
Additional context

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md
https://github.com/apache/kafka/blob/99b9b3e84f4e98c3f07714e1de6a139a004cbc5b/clients/src/main/java/org/apache/kafka/common/metrics/Metrics.java#L46-L68
https://github.com/grafana/grafana/blob/main/pkg/infra/metrics/metrics.go
https://github.com/prometheus/prometheus/blob/main/docs/getting_started.md

We should probably just close this issue for the 2.0 release without modifying the code.


crash with image that is larger than _maximumSizeBytes from image_cache.dart

Steps to Reproduce

clone https://github.com/SteveAlexander/flutter_issue
run in an iPhone simulator
see that there's a busy loop continually reloading the PNG asset until it crashes

I think what's going on is, in painting/image_cache.dart, a decoded image that is larger than _maximumSizeBytes gets evicted from the cache as soon as it is put in there, and this somehow causes the asset to be continually reloaded from the device.
Logs

See https://gist.github.com/SteveAlexander/44243bd32462249567f88ba346ecbbd3

$ flutter analyze
Analyzing flutter_issue...
No issues found! (ran in 2.3s)

$ flutter doctor -v
[✓] Flutter (Channel dev, v0.5.6, on Mac OS X 10.13.5 17F77, locale en-GB)
    • Flutter version 0.5.6 at /Users/steve/code/flutter
    • Framework revision 472bbccf75 (2 weeks ago), 2018-06-26 17:01:46 -0700
    • Engine revision 6fe748490d
    • Dart version 2.0.0-dev.63.0.flutter-4c9689c1d2

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
    • Android SDK at /Users/steve/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.25.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.15.0

[✓] Connected devices (1 available)
    • iPhone X • 9655AB90-1BE3-43D8-B65C-937C0D5F86E7 • ios • iOS 11.4 (simulator)

• No issues found!

Fixed by https://github.com/flutter/flutter/pull/19352


⚠ Jenkins Plugins Artifactory has degraded performance

In a2c4f0b, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1324 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 26984dd after 18 minutes.


Pick commits from main for 2.2.4 release

Issue #, if available:
Description of changes:
Cherry-pick commits from main for the 2.2.x release of Shadow manager
Why is this change necessary:
How was this change tested:
Any additional information or context required to review the change:
Checklist:

[ ] Updated the README if applicable
[ ] Updated or added new unit tests
[ ] Updated or added new integration tests
[ ] If your code makes a remote network call, it was tested with a proxy

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This is setup to merge into main.


Cursor moves to home row when editing definition in the Swagger editor

Cursor goes to home row while editing the definition in the Swagger editor. It is hard to edit long API definition with that issue.

Same issue reported in https://github.com/wso2/product-apim/issues/5071


truffle compile후 오류

$ truffle version
Truffle v4.1.11 (core: 4.1.11)
Solidity v0.4.24 (solc-js)

$ truffle compile
Compiling ./contracts/RankingBallGoldCrowdsale.sol...
Compiling ./contracts/RankingBallGoldToken.sol...
Compiling ./contracts/base/common/HolderBase.sol...
Compiling ./contracts/base/crowdsale/BaseCrowdsale.sol...
Compiling ./contracts/base/crowdsale/BlockIntervalCrowdsale.sol...
Compiling ./contracts/base/crowdsale/BonusCrowdsale.sol...
Compiling ./contracts/base/crowdsale/FinishMintingCrowdsale.sol...
Compiling ./contracts/base/crowdsale/KYCCrowdsale.sol...
Compiling ./contracts/base/crowdsale/MiniMeBaseCrowdsale.sol...
Compiling ./contracts/base/crowdsale/MinimumPaymentCrowdsale.sol...
Compiling ./contracts/base/crowdsale/MintableBaseCrowdsale.sol...
Compiling ./contracts/base/crowdsale/PurchaseLimitedCrowdsale.sol...
Compiling ./contracts/base/crowdsale/StagedCrowdsale.sol...
Compiling ./contracts/base/kyc/KYC.sol...
Compiling ./contracts/base/locker/Locker.sol...
Compiling ./contracts/base/misc/Migrations.sol...
Compiling ./contracts/base/mock/BurnableMiniMeTokenMock.sol...
Compiling ./contracts/base/mock/SampleProjectCrowdsale.sol...
Compiling ./contracts/base/mock/SampleProjectToken.sol...
Compiling ./contracts/base/token/BurnableMiniMeToken.sol...
Compiling ./contracts/base/token/ClaimableToken.sol...
Compiling ./contracts/base/token/NoMintMiniMeToken.sol...
Compiling ./contracts/base/vault/MultiHolderVault.sol...
Compiling ./contracts/base/wallet/MultiSigWallet.sol...
Compiling minimetoken/contracts/Controlled.sol...
Compiling minimetoken/contracts/MiniMeToken.sol...
Compiling minimetoken/contracts/TokenController.sol...
Compiling openzeppelin-solidity/contracts/crowdsale/distribution/utils/RefundVault.sol...
Compiling openzeppelin-solidity/contracts/lifecycle/Pausable.sol...
Compiling openzeppelin-solidity/contracts/math/SafeMath.sol...
Compiling openzeppelin-solidity/contracts/ownership/Ownable.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/BasicToken.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/ERC20.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol...

Compilation warnings encountered:

/Users/kevin/dev/rankingball/out/contracts/base/common/HolderBase.sol:29:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function HolderBase(uint256 _coeff) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/vault/MultiHolderVault.sol:14:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MultiHolderVault(address _wallet, uint256 _ratioCoeff)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/locker/Locker.sol:122:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Locker(address _token, uint _coeff, address[] _beneficiaries, uint[] _ratios) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BaseCrowdsale.sol:54:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function BaseCrowdsale(uint256 _coeff) HolderBase(_coeff) public {}
  ^-----------------------------------------------------------------^
,minimetoken/contracts/Controlled.sol:10:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function Controlled() public { controller = msg.sender;}
    ^------------------------------------------------------^
,minimetoken/contracts/MiniMeToken.sol:103:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function MiniMeToken(
    ^ (Relevant source part starts here and spans across multiple lines).
,minimetoken/contracts/MiniMeToken.sol:179:12: Warning: Use of the "var" keyword is deprecated.
           var previousBalanceFrom = balanceOfAt(_from, block.number);
           ^---------------------^
,minimetoken/contracts/MiniMeToken.sol:195:12: Warning: Use of the "var" keyword is deprecated.
           var previousBalanceTo = balanceOfAt(_to, block.number);
           ^-------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MiniMeBaseCrowdsale.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MiniMeBaseCrowdsale (address _token) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BlockIntervalCrowdsale.sol:13:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function BlockIntervalCrowdsale(uint256 _blockInterval) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/kyc/KYC.sol:30:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function KYC() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/KYCCrowdsale.sol:14:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function KYCCrowdsale (address _kyc) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/StagedCrowdsale.sol:27:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function StagedCrowdsale(uint _numPeriods) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/RankingBallGoldCrowdsale.sol:16:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function RankingBallGoldCrowdsale(bytes32[5] args)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/RankingBallGoldToken.sol:7:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function RankingBallGoldToken(address _tokenFactory)
    ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MinimumPaymentCrowdsale.sol:12:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MinimumPaymentCrowdsale(uint256 _minPayment) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MintableBaseCrowdsale.sol:10:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MintableBaseCrowdsale (address _token) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/PurchaseLimitedCrowdsale.sol:13:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function PurchaseLimitedCrowdsale(uint256 _purchaseLimit) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/misc/Migrations.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Migrations() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/mock/BurnableMiniMeTokenMock.sol:7:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function BurnableMiniMeTokenMock() MiniMeToken(
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/mock/SampleProjectCrowdsale.sol:19:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function SampleProjectCrowdsale(bytes32[7] args)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/mock/SampleProjectToken.sol:7:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function SampleProjectToken(address _tokenFactory)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:105:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function MultiSigWallet(address[] _owners, uint _required)
    ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:227:13: Warning: This declaration shadows a builtin symbol.
            Transaction tx = transactions[transactionId];
            ^------------^
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:227:13: Warning: Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
            Transaction tx = transactions[transactionId];
            ^------------^
,/Users/kevin/dev/rankingball/out/contracts/base/common/HolderBase.sol:68:23: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
    uint256 balance = this.balance;
                      ^----------^
,minimetoken/contracts/MiniMeToken.sol:200:12: Warning: Invoking events without "emit" prefix is deprecated.
           Transfer(_from, _to, _amount);
           ^---------------------------^
,minimetoken/contracts/MiniMeToken.sol:232:9: Warning: Invoking events without "emit" prefix is deprecated.
        Approval(msg.sender, _spender, _amount);
        ^-------------------------------------^
,minimetoken/contracts/MiniMeToken.sol:363:9: Warning: Invoking events without "emit" prefix is deprecated.
        NewCloneToken(address(cloneToken), _snapshotBlock);
        ^------------------------------------------------^
,minimetoken/contracts/MiniMeToken.sol:383:9: Warning: Invoking events without "emit" prefix is deprecated.
        Transfer(0, _owner, _amount);
        ^--------------------------^
,minimetoken/contracts/MiniMeToken.sol:400:9: Warning: Invoking events without "emit" prefix is deprecated.
        Transfer(_owner, 0, _amount);
        ^--------------------------^
,minimetoken/contracts/MiniMeToken.sol:498:33: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
            controller.transfer(this.balance);
                                ^----------^
,minimetoken/contracts/MiniMeToken.sol:505:9: Warning: Invoking events without "emit" prefix is deprecated.
        ClaimedTokens(_token, controller, balance);
        ^----------------------------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/BurnableMiniMeToken.sol:23:5: Warning: Invoking events without "emit" prefix is deprecated.
    Transfer(msg.sender, 0, _amount);
    ^------------------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/ClaimableToken.sol:11:22: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
      owner.transfer(this.balance);
                     ^----------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/ClaimableToken.sol:18:5: Warning: Invoking events without "emit" prefix is deprecated.
    ClaimedTokens(_token, owner, balance); // solium-disable-line emit
    ^-----------------------------------^

/Users/kevin/dev/rankingball/out/contracts/base/common/HolderBase.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/common/HolderBase.sol:29:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function HolderBase(uint256 _coeff) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/vault/MultiHolderVault.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/vault/MultiHolderVault.sol:14:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MultiHolderVault(address _wallet, uint256 _ratioCoeff)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/locker/Locker.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/locker/Locker.sol:122:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Locker(address _token, uint _coeff, address[] _beneficiaries, uint[] _ratios) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BaseCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BaseCrowdsale.sol:54:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function BaseCrowdsale(uint256 _coeff) HolderBase(_coeff) public {}
  ^-----------------------------------------------------------------^
,minimetoken/contracts/Controlled.sol:10:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function Controlled() public { controller = msg.sender;}
    ^------------------------------------------------------^
,minimetoken/contracts/MiniMeToken.sol:103:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function MiniMeToken(
    ^ (Relevant source part starts here and spans across multiple lines).
,minimetoken/contracts/MiniMeToken.sol:179:12: Warning: Use of the "var" keyword is deprecated.
           var previousBalanceFrom = balanceOfAt(_from, block.number);
           ^---------------------^
,minimetoken/contracts/MiniMeToken.sol:195:12: Warning: Use of the "var" keyword is deprecated.
           var previousBalanceTo = balanceOfAt(_to, block.number);
           ^-------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/NoMintMiniMeToken.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MiniMeBaseCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MiniMeBaseCrowdsale.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MiniMeBaseCrowdsale (address _token) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BonusCrowdsale.sol:3:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BlockIntervalCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/BlockIntervalCrowdsale.sol:13:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function BlockIntervalCrowdsale(uint256 _blockInterval) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/kyc/KYC.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/kyc/KYC.sol:30:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function KYC() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/KYCCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/KYCCrowdsale.sol:14:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function KYCCrowdsale (address _kyc) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/StagedCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/StagedCrowdsale.sol:27:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function StagedCrowdsale(uint _numPeriods) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/RankingBallGoldCrowdsale.sol:16:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function RankingBallGoldCrowdsale(bytes32[5] args)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/token/BurnableMiniMeToken.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/RankingBallGoldToken.sol:7:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function RankingBallGoldToken(address _tokenFactory)
    ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/FinishMintingCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MinimumPaymentCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MinimumPaymentCrowdsale.sol:12:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MinimumPaymentCrowdsale(uint256 _minPayment) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MintableBaseCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/MintableBaseCrowdsale.sol:10:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function MintableBaseCrowdsale (address _token) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/PurchaseLimitedCrowdsale.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/crowdsale/PurchaseLimitedCrowdsale.sol:13:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function PurchaseLimitedCrowdsale(uint256 _purchaseLimit) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/misc/Migrations.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Migrations() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/mock/BurnableMiniMeTokenMock.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/mock/BurnableMiniMeTokenMock.sol:7:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function BurnableMiniMeTokenMock() MiniMeToken(
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/mock/SampleProjectCrowdsale.sol:19:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function SampleProjectCrowdsale(bytes32[7] args)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/mock/SampleProjectToken.sol:7:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function SampleProjectToken(address _tokenFactory)
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/token/ClaimableToken.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.23+commit.124ca40d.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
^----------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:105:5: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
    function MultiSigWallet(address[] _owners, uint _required)
    ^ (Relevant source part starts here and spans across multiple lines).
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:227:13: Warning: This declaration shadows a builtin symbol.
            Transaction tx = transactions[transactionId];
            ^------------^
,/Users/kevin/dev/rankingball/out/contracts/base/wallet/MultiSigWallet.sol:227:13: Warning: Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
            Transaction tx = transactions[transactionId];
            ^------------^
,/Users/kevin/dev/rankingball/out/contracts/base/common/HolderBase.sol:68:23: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
    uint256 balance = this.balance;
                      ^----------^
,minimetoken/contracts/MiniMeToken.sol:200:12: Warning: Invoking events without "emit" prefix is deprecated.
           Transfer(_from, _to, _amount);
           ^---------------------------^
,minimetoken/contracts/MiniMeToken.sol:232:9: Warning: Invoking events without "emit" prefix is deprecated.
        Approval(msg.sender, _spender, _amount);
        ^-------------------------------------^
,minimetoken/contracts/MiniMeToken.sol:363:9: Warning: Invoking events without "emit" prefix is deprecated.
        NewCloneToken(address(cloneToken), _snapshotBlock);
        ^------------------------------------------------^
,minimetoken/contracts/MiniMeToken.sol:383:9: Warning: Invoking events without "emit" prefix is deprecated.
        Transfer(0, _owner, _amount);
        ^--------------------------^
,minimetoken/contracts/MiniMeToken.sol:400:9: Warning: Invoking events without "emit" prefix is deprecated.
        Transfer(_owner, 0, _amount);
        ^--------------------------^
,minimetoken/contracts/MiniMeToken.sol:498:33: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
            controller.transfer(this.balance);
                                ^----------^
,minimetoken/contracts/MiniMeToken.sol:505:9: Warning: Invoking events without "emit" prefix is deprecated.
        ClaimedTokens(_token, controller, balance);
        ^----------------------------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/BurnableMiniMeToken.sol:23:5: Warning: Invoking events without "emit" prefix is deprecated.
    Transfer(msg.sender, 0, _amount);
    ^------------------------------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/ClaimableToken.sol:11:22: Warning: Using contract member "balance" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).balance" instead.
      owner.transfer(this.balance);
                     ^----------^
,/Users/kevin/dev/rankingball/out/contracts/base/token/ClaimableToken.sol:18:5: Warning: Invoking events without "emit" prefix is deprecated.
    ClaimedTokens(_token, owner, balance); // solium-disable-line emit
    ^-----------------------------------^
Compilation failed. See above.

$vim  /usr/local/lib/node_modules/truffle/package.json

여기에 dev-dependencies에 "solc" : 0.4.23으로 되어있길래, 0.4.24로 바꿈

로컬에 설치된 solc버전 강제로 바꾸는법
This is way how to change your solc version, manually.


Add note about unpacking GroupedMetadata

Codecov Report

Merging #35 (025245c) into main (03b79a5) will decrease coverage by 3.71%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@             Coverage Diff             @@
##              main      #35      +/-   ##
===========================================
- Coverage   100.00%   96.29%   -3.71%
===========================================
  Files            1        2       +1
  Lines           59      162     +103
  Branches         5       45      +40
===========================================
+ Hits            59      156      +97
- Misses           0        6       +6

see 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Hmm, we don't actually specify that unknown metadata should be ignored - that's left upnto library authors.


Need help for webpack

What must i do to use this with webpack?
I got allways this:
 Cannot find namespace 'bootstrap'
My testcode
import {bootstrap as bootstrap} from 'bootstrap';
import 'bs5-lightbox';

If importing all modules from Bootstrap 5, do so like this:
import * as bootstrap from 'bootstrap'
import 'bs5-lightbox'

A better approach would be to only import the components you are using, which would utilize Tree Shaking
import { Dropdown, Toast } from 'bootstrap'
import 'bs5-lightbox'

import * as bootstrap from 'bootstrap'
import 'bs5-lightbox'

Results in
ERROR in [at-loader] ./node_modules/bs5-lightbox/dist/index.d.ts:14:19
    TS2503: Cannot find namespace 'bootstrap'.

ERROR in [at-loader] ./node_modules/bs5-lightbox/dist/index.d.ts:15:22
    TS2503: Cannot find namespace 'bootstrap'.

ERROR in [at-loader] ./node_modules/bs5-lightbox/dist/index.d.ts:18:12
    TS2503: Cannot find namespace 'bootstrap'.

ERROR in [at-loader] ./node_modules/bs5-lightbox/dist/index.d.ts:19:15
    TS2503: Cannot find namespace 'bootstrap'.

ERROR in [at-loader] ./node_modules/bs5-lightbox/dist/index.d.ts:39:31
    TS2503: Cannot find namespace 'bootstrap'.

ERROR in [at-loader] ./node_modules/bs5-lightbox/dist/index.d.ts:39:56
    TS2503: Cannot find namespace 'bootstrap'.

Same with
import { Modal, Carousel, Collapse, Dropdown, Offcanvas } from 'bootstrap';
import 'bs5-lightbox'

This is most likely an issue with your TypeScript config. Without knowing more, I would guess adding this to tsconfig.json might help:
{
    "compilerOptions": {
        "skipLibCheck": true,
    }
}

@Mordef is your issue resolved?

Sory for the late answer.
Yes, with "skipLibCheck": true, it works fine


[BACKLOG-18598] Avoid NP when LogEntry doesn't have the throwable

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/ael/websocket/TransWebSocketEngineAdapter.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change:  + .66%
Complexity Change:  + .93%
Instruction Change:  + .13%

org.pentaho.di.trans.ael.websocket.TransWebSocketEngineAdapter

Complexity Change: -.09%:small_red_triangle_down:
Instruction Change: -.16%:small_red_triangle_down:
Line Change: -.16%:small_red_triangle_down:

org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change: -.05%:small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -.11%:small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2.00%:small_red_triangle_down:
Complexity Change: -1.89%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -.06%:small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change:  + 2.25%
Complexity Change:  + 2.60%

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change: -.06%:small_red_triangle_down:

org.pentaho.di.trans.steps.setvalueconstant.SetValueConstantMeta

Instruction Change: -.14%:small_red_triangle_down:

org.pentaho.di.trans.steps.singlethreader.SingleThreaderMeta

Instruction Change: -.10%:small_red_triangle_down:

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change:  + .17%

org.pentaho.di.trans.steps.symmetriccrypto.symmetriccryptotrans.SymmetricCryptoTransMeta

Branch Change:  + 3.33%
Complexity Change:  + 1.85%
Instruction Change:  + .28%

org.pentaho.di.trans.steps.synchronizeaftermerge.SynchronizeAfterMergeMeta

Instruction Change:  + .04%

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change: -.18%:small_red_triangle_down:

org.pentaho.di.trans.steps.webservices.WebServiceMeta

Branch Change: -1.79%:small_red_triangle_down:
Complexity Change: -1.19%:small_red_triangle_down:
Instruction Change: -.07%:small_red_triangle_down:

org.pentaho.di.trans.steps.googleanalytics.GaInputStepMeta

Instruction Change: -.07%:small_red_triangle_down:

org.pentaho.di.trans.steps.gpload.GPLoadMeta

Branch Change: -.93%:small_red_triangle_down:
Complexity Change: -.80%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupdate.SalesforceUpdateMeta

Instruction Change:  + .17%

org.pentaho.di.trans.steps.salesforceupsert.SalesforceUpsertMeta

Instruction Change: -.14%:small_red_triangle_down:


Can't override global actions

Global actions setting not working.
Example:
AdminJS.ACTIONS.show.isVisible = false

What version of adminjs package are you using?

adminjs: 5.7.0


Update sbt-mdoc to 2.2.7

Updates org.scalameta:sbt-mdoc from 2.2.5 to 2.2.7.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "sbt-mdoc" } ]

labels: sbt-plugin-update, semver-patch

superseeded by #3689


Fix project group

Description
Just a draft.
Issues Resolved
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Hi @austintlee, is this causing an issue?

"publishToMavenLocal" fails without this change.  I needed to build and publish k-nn locally as my neural-search build was failing locally due to k-nn.  This is not an official pull request.  I created this draft to show @navneet1v how I got around the issue.  Have you had this issue?  Have you ever tried to build and publish k-nn locally?

@austintlee are you still working on this PR? if not please close this PR.


fix: misspell

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


UnsupportedOperationException opening Crafting Station

Today I upgraded to rftoolsctrl-1.1x-1.6.0.jar (along with the newly release 1.1x versions of the other rftools mods).  With the change (I presume!), the RFToolsControl crafting setup I was working with before now fails with an exception in the client log.
http://pastebin.com/VKaV4fwq
The client does not crash, so this is not a full crash-report.   But nothing is displayed in the GUI for the Crafting Station either.
rftoolsctrl-1.1x-1.6.0
mcjtylib-1.1x-2.3.0
compatlayer-1.10-0.1.0
forge 2139.
jre1.8.0_101
Edit: For giggles, I destroyed the crafting cards, and replaced them with a single "stone -> stone button" card.  No change.

I'll fix this in the upcoming release later today


ImportError when load 'asr-transformer-transformerlm-librispeech' pre-trained model

Code snippet

asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-transformer-transformerlm-librispeech", savedir="pretrained_models/asr-transformer-transformerlm-librispeech")

Error Message:
ImportError: There is no such class as speechbrain.lobes.models.transformer.TransformerASR.EncoderWrapper

Could you please update speechbrain to the latest version?
On Wed, May 5, 2021, 12:21 AM GatoY @.***> wrote:

Code snippet
asr_model = EncoderDecoderASR.from_hparams(source="speechbrain/asr-transformer-transformerlm-librispeech", savedir="pretrained_models/asr-transformer-transformerlm-librispeech")
Error Message:
ImportError: There is no such class as
speechbrain.lobes.models.transformer.TransformerASR.EncoderWrapper
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/speechbrain/speechbrain/issues/733, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEA2ZVRUL6LCO7RU6Y4X7DDTMDBVBANCNFSM44D5EZ5Q
.

Thank

Could you please update speechbrain to the latest version?
…

Thanks for the quick response. It fixed my issue.
Just want to point it out that currently I can't use pip install --upgrade  to get the newest version. I'm sure that'll come through!
Cheers!


Issue with fi_model_generator

Hello, I have a problem with tool fi_model_generator, when i regenerate example/fault_model.json ,Terminal print info below:
./fi_model_generator.py -j examples/circuit.json -m aes_cipher_control -s 2 -n rnd_ctr -c examples/fault_mapping_cfg.json -o examples/fault_model_test.json
Traceback (most recent call last):
File "/home/guozhiyang/work/synfi/./fi_model_generator.py", line 442, in
main()
File "/home/guozhiyang/work/synfi/./fi_model_generator.py", line 427, in main
otfi_registers = parse_otfi_registers(otfi_attr, module)
File "/home/guozhiyang/work/synfi/./fi_model_generator.py", line 263, in parse_otfi_registers
nets_q[netname]["stage"] = entry["otfi_stage"]
KeyError: 'otfi_stage'
The command used to regenerate .json is copied from fi_model_generator.So what should i do next?

Hi,
Could you please try with Python 3.9?
BR

I just reproduced this here, and it doesn't seem to be related to the Python version. The code that's dying in parse_otfi_registers seems to assume that (by the time it runs) any dict entry with otfi_type set to "register_q" will also have an field called otfi_stage. This isn't true in circuit.json: that file has several such entries, but doesn't contain the string "otfi_stage". Should that field have been set by the time parse_otfi_registers runs? Or does this script not work with this config file?

Hi all,
Sorry for the late reply, I was on vacation. The fi_model_generator is an old artifact and is no longer used & supported in SYNFI. As mentioned in the howto, you need to manually create the FI model. Commit #68 removes this file from the repository.


-symbols on pack

how can I add the attribute '-symbols' to the pack command. before I would have this in the post-build event: nuget.exe pack aaa.nuspec -includereferencedprojects -symbols

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 18071970-cf13-78af-ac1d-9adefefdb693
Version Independent ID: 3bf15a5c-8b3e-0e69-0bf6-03b44654970c
Content: Create and publish a .NET Standard package using Visual Studio on Windows
Content Source: docs/quickstart/create-and-publish-a-package-using-visual-studio.md
Product: nuget
GitHub Login: @karann-msft
Microsoft Alias: karann

That a look at this doc - https://docs.microsoft.com/en-us/nuget/create-packages/symbol-packages-snupkg
Let us know if it helped.


use html for label ?

Question
how can i can use html in label like this :
label: 'Input here',
thx

This has been requested before and we're still not convainced to support it by default, so either define a custom wrapper or override our form-field wrapper to control the label part.

Custom wrapper: check the following example https://formly.dev/examples/bootstrap-specific/bootstrap-horizontal
Override our form-field:
Similar to the above example, just use form-field as name:

    FormlyModule.forRoot({
      wrappers: [{
-        name: 'form-field-horizontal',
+        name: 'form-field',
         component: FormlyHorizontalWrapper
      }],
      validationMessages: [
        { name: 'required', message: 'This field is required' },
      ],
    }),

Another way is to use template:
{ template: 'Input here' }

Ok thank you

👋 Hi @mickael-poulachon and @aitboudad, can you please share a stackblitz project to know how it will be done. 🙏

hi, you can find a exemple here :
https://stackblitz.com/angular/brlpjkrnorvg?file=src%2Fapp%2Fapp.component.ts
Le lun. 8 févr. 2021 à 13:52, Anoop Chauhan<EMAIL_ADDRESS>a
écrit :

👋 Hi @mickael-poulachon https://github.com/mickael-poulachon and
@aitboudad https://github.com/aitboudad, can you please share a
stackblitz project to know how it will be done. 🙏
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ngx-formly/ngx-formly/issues/2215#issuecomment-775127956,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACZJNSH6CLIXII2SDSCU36LS57NAZANCNFSM4MUCKDAQ
.

@mickael-poulachon Thanks for your quick response, I will check this.


Virtual table column alignment issue

Reproduction link
https://stackblitz.com/edit/angular-fhlakd?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce

Use the nz-table component to create a table with virtual scrolling
Set the number of rows in the table data to less than the amount required for scrollbar to appear.

What is expected?
The table columns should be aligned to the column headings, even if there is no scrollbar present.
What is actually happening?
There is excess padding at the end of the table headers to accomodate for the scrollbar.
This padding is present even if there are not enough items for there to be scroll.

Environment
Info

ng-zorro-antd
16.2.2

Browser
any

Bumping this, @vthinkxie


toggleDataPointSelection not showing label value

Bug report
Codepen
https://codesandbox.io/s/apexchart-bug-toogledatapointselect-7whhq?file=/src/components/Chart.component.vue
Explanation

What is the behavior you expect?
What I expected is that the toggleDataPointSelection method can be useful to select a piece of chart externally and also exec all related side effects (such as show label name, value, etc..).

What is happening instead?
When I try to use that method I got just a piece selection and the related label not showing at all

In addition to this, if this is reopened in the future: Using toggleDataPointSelection also won't reset any previous data label state. The new item is selected, but the old text show.
Reproduce

Hover over / mark an item to show its data label
Trigger anything to select another data point via toggleDataPointSelection
Issue: The old data label is still visible


Empty form field for shortcut shows error

Leaving a Keyboard shortcut form field blank produces this error:
:plugin.logseq-plugin-insert-above/$shortcut$ Cannot read properties of undefined (reading 'forEach')

thanks for reporting – should be fixed in v1.1.3


Pressing ctrl before accepting the node (with enter) is putting the first entry from the drop-down instead of typed value

Discord username
No response
What type of issue is this?
Permanent – Occurring repeatably
Is this issue blocking you from using Enso?

[ ] Yes, I can't use Enso because of this issue.

Is this a regression?

[ ] Yes, previous version of Enso did not have this issue.

What issue are you facing?
https://github.com/enso-org/enso/assets/12892578/567e6056-ec0d-439c-b90c-b59f29278cf1
Expected behaviour
Value written by user should be accepted
How we can reproduce it?

add a set node
connect column you want to add to the table
ctrl+click on the node to enter edit mode
write new desired column name
press ctrl and release
press enter to accept the written text

Screenshots or screencasts
No response
Logs
No response
Enso Version
nightly 25.05
Browser or standalone distribution
Standalone distribution (cloud project)
Browser Version or standalone distribution
standalone
Operating System
MacOS
Operating System Version
No response
Hardware you are using
No response

Reproduced, but it has nothing to do with ctrl key. It happens when the ctrl+click (to start editing node) was done over the drop-down's triangle.

Updated description.

Can not reproduce it after recent changes


AKS Document Suggestions - Ingress document

AKS Ingress
https://stacksimplify.com/azure-aks/ingress-domain-baed-routing-using-externaldns-and-aks/

In general, official documents are the first choice for understanding how to use an application's details, but not for AKS Ingress related documents. The third-party document is more detailed than the official document, providing more demos that can run correctly.
I hope to improve the official documents. Don't let other people waste a lot of time to operate according to the official documents like me. The result is all kinds of errors. Finally, they have to rely on third-party documents to solve problems.https://github.com/Azure/AKS/issues/3382

@qingfengfenga
It would be great if you could add a link to the Microsoft documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

@NaveenOmmi
https://learn.microsoft.com/en-us/azure/aks/ingress-basic?tabs=azure-cli

@qingfengfenga
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly

@rayoef
Can you please check and add your comments on this doc update request as applicable.

Thank you @qingfengfenga for the feedback!
We've added an item to our backlog and will prioritize accordingly.
#please-close


add notes for how to cut a release

@maratoid can you take a look and make sure this is sane?

LGTM

Might want to add a note on the homebrew tap update at some point.


allow text blocks to handle undefined as empty strings

Yeah, that's what I assumed.
On Wed, May 16, 2018 at 4:24 PM, pmwthunkable<EMAIL_ADDRESS>wrote:

I'm using the google's online closure service (from build.py), so I assume
that its the newest closure as served from their site.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/thunkable/blockly/pull/5#issuecomment-389696670, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABqbSscpKnfOYzSNFrF5xuDS9M2NRNgwks5tzLVBgaJpZM4UCIMX
.


Why exhaustMap completes Observable?

I have this observable:
    const latestStatus$ = interval(5000).pipe(
      tap(() => this._workInProgress$.next(true)),
      exhaustMap(() => of(true).pipe(delay(50))),
      tap(status => {
        this._status$.next(status);
        this._workInProgress$.next(false);
        this.addToLog(`latestStatus: ${status}`);
      }),
      finalize(() => this.addToLog("the end."))
    );

and when I subscribe I only get the end.. Now, if I remove delay(50) everything works as expected. Is this a bug or what am I missing here?
RxJS 6.6.2

It's more appropriate to put these questions on stackoverflow.
However, looking at it, I would suspect there's an error thrown in one of those tap calls, and it has nothing to do with the exhaustMap.

Further to what Ben had said, this isn't an actionable bug report, as it does not include a minimal reproduction of the problem - snippets that include references to application code are not reproductions.
FWIW, this behaves as expected:
const source = interval(500).pipe(
  exhaustMap(() => of(true).pipe(delay(50))),
  finalize(() => console.log("done")),
  take(3)
);
source.subscribe((value) => console.log(value));

I was actually trying to simulate angular app working with back-end here - https://stackblitz.com/edit/exhaustmap-problem. If you run it you will see I get the end. in the log.
I made it work in another stackblitz though - https://stackblitz.com/edit/manage-device, which is different.
But anyway, I'd like to know why it completes so soon in my 1st example.
Thank you!


[Needs confirmation] GPS origin should be wrapped

This forum post found that setting the GPS origin in the Water Linked DVL interface with a -220 longitude didn't work.
@Williangalvani suspects that it may require a value between -180 to 180. If confirmed, this package should wrap the value before displaying to the user and/or before sending to the autopilot to ensure correct functionality.

Longitude wrapping added in #11


Corrected spelling

Corrected spelling

GitHub Issue: https://github.com/MicrosoftDocs/azure-docs/issues/90700
cc: @MarkusVi

@JamesTran-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@JamesTran-MSFT: I'm sorry - only the author of this article, @MarkusVi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

Looks good; thanks, @JamesTran-MSFT!


EmbeddedHttpServer X-B3 headers removed

When using EmbeddedHttpServer methods to make a request, any of theX-B3 headers required for Tracing are deleted by Finagle.
Expected behavior
Given the following code:
server.httpPost(
    path     = "/example",
    headers  = Map(
      "X-B3-TraceId"      -> "123",
      "X-B3-ParentSpanId" -> "456",
      "X-B3-SpanId"       -> "789",
      "X-B3-Sampled"      -> "1",
    ))

The headers should appear in the Request sent to the Finatra server.
Actual behavior
The headers are removed by the HttpClientTraceInitializer in Finagle.
val traceInitializer = Filter.mk[Req, Rep, Req, Rep] { (req, svc) =>
  Trace.letTracerAndNextId(tracer) {
    TraceInfo.setClientRequestHeaders(req)
    svc(req)
  }
}

def setClientRequestHeaders(request: Request): Unit = {
  removeAllHeaders(request.headerMap)
  val traceId = Trace.id
  ...

One way around this is to create a TraceId with the values that were previously in the headers and then execute the httpPost inside the Trace.letId function.
val traceId = TraceId(
    traceId  = Some(SpanId(123)),
    parentId = Some(SpanId(456),
    spanId   = SpanId(789),
    sampled  = Some(true))

Trace.letId(traceId) {
  server.httpPost(path = "/example")
 }

It would be nice if the EmbeddedHttpServer could extract the X-B3 headers from .headers and do this automatically for the user as there is no documentation that I can find that suggests headers would be removed if they're not in the current Contexts.

Is the documentation open source?

@ryanb93 yep, it's in /doc/src/sphinx in RST, specifically in the user guide folder.


training iteration N, current best R : 0.9

Hi, when current best R is good enough, such as 0.9782 after many training iterations, say 1330, is it possible to stop the code running?
As there is error, code running is stopped and the final result is not obtained.
Or how to correct the corresponding parameters in config.json when a good fitting is reached?

The threshold parameter under task config controls the NRMSE at which to stop training. Depending on your reward function (inverse NRMSE is default) you'll have to back calculate the NRMSE value that you want.


InformationPanel: Position toggle results in incorrect height/width

Describe the bug (current behavior)
An info panel which can toggle between right and bottom positions can be a useful feature. However, if a user changes the width (vertical) or height (horizontal) of the panel and then toggles, the info panel does not assume full height/width in the new position.

Expected Behavior
An info panel at the bottom of the table should always have full width. An info panel at the right of the table should always have full height. Toggling after resizing should not affect this.
Link to minimal repro
https://stackblitz.com/edit/github-girbn1
Steps To Reproduce

Create an info panel with a button to toggle between right/bottom
Change the width of the info panel
Toggle to the bottom
Notice the width is not stretched across the bottom
Change the height of the panel
Toggle to the side
Notice the height is not stretched across the side

Anything else?
@itwin/itwinui-react v3.5.0

You can use a key to reset panel state when changing orientation.
<InformationPanel
  orientation={orientation}
  key={orientation}
>

Now that's what I'm talking about! Could the iTwin library implement that behind the scenes, or does that go against some standard principle?

I'm unsure about it. At first glance it looks like a clear bug.
Maybe we could use key internally too? I would be worried about losing "too much state", although that could be worked around using better composition and children.
But for now, I hope it unblocks you.

Fixed in 3.8.1


Let the React Native packager provide the 'react' module as well

In recent React Native versions, consumers are encouraged to import pure React APIs straight from the 'react' module. React Native obviously already includes the 'react' module in its bundle, so there's no reason to have webpack package it again. So we just export it here.

Ah, here we go Travis...


Numpy: "nan" is not a known member of module

Environment data

Language Server version: v2020.9.7
OS and version: Windows 10 build 2004, WSL 2 with Ubuntu 20.04
Python version: 3.8.2

Expected behaviour
Pylance should recognise nan as part of the numpy module.
Pyright CLI already recognises it.
(venv) italo@Malacandra /m/c/U/i/G/C/P/email-lists (master)
> pyright --version
pyright 1.1.75
(venv) italo@Malacandra /m/c/U/i/G/C/P/email-lists (master)
> cat a.py
import numpy as np

print(np.nan)
(venv) italo@Malacandra /m/c/U/i/G/C/P/email-lists (master)
> pyright a.py
No configuration file found.
stubPath /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/typings is not a valid directory.
Assuming Python platform Linux
Searching for source files
Found 1 source file
0 errors, 0 warnings, 0 infos
Completed in 0.855sec

Actual behaviour

XXX
Logs

[Info  - 9:48:59 AM] No configuration file found.
[Info  - 9:48:59 AM] Setting pythonPath for service "email-lists": "/mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/bin/python"
Search paths found for configured python interpreter:
  /usr/lib/python3.8
  /usr/lib/python3.8/lib-dynload
  /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages
[Error - 9:48:59 AM] stubPath /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/typings is not a valid directory.
[Info  - 9:48:59 AM] Assuming Python version 3.8
[Info  - 9:48:59 AM] Assuming Python platform Linux
[Info  - 9:48:59 AM] Searching for source files
[Info  - 9:48:59 AM] Auto-excluding /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv
[Info  - 9:48:59 AM] Found 24 source files
Background analysis message: setConfigOptions
Background analysis message: setTrackedFiles
Background analysis message: markAllFilesDirty
Background analysis message: analyze
[BG(1)] analyzing: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/a.py ...
[BG(1)]   parsing: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/a.py (191ms)
[BG(1)]   parsing: /home/italo/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.7/dist/typeshed-fallback/stdlib/2and3/builtins.pyi (182ms)
[BG(1)]   binding: /home/italo/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.7/dist/typeshed-fallback/stdlib/2and3/builtins.pyi (22ms)
[BG(1)]   binding: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/a.py (0ms)
[BG(1)]   checking: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/a.py ...
[BG(1)]     parsing: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages/numpy/__init__.py (1699ms)
[FG] parsing: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/a.py (83ms)
[FG] parsing: /home/italo/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.7/dist/typeshed-fallback/stdlib/2and3/builtins.pyi (182ms)
[FG] binding: /home/italo/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.7/dist/typeshed-fallback/stdlib/2and3/builtins.pyi (26ms)
[FG] binding: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/a.py (2ms)
[BG(1)]     binding: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages/numpy/__init__.py ...
[BG(1)]       parsing: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages/numpy/core/__init__.py (764ms)
[BG(1)]       binding: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages/numpy/core/__init__.py ...
[BG(1)]         parsing: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages/numpy/core/numeric.py (568ms)
[BG(1)]         binding: /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages/numpy/core/numeric.py ...

Note that numpy is not a fully typed library in its latest released version, so enabling a type checking mode other than "off" is likely to cause trouble. Their next release should include stubs, though.

Pyright CLI already recognises it.

This I'm confused by; we should have no behavioral differences to pyright in this case. Did you write stubs for numpy and they aren't being read? Are you certain the CLI version is running with identical settings?

Pyright CLI already recognises it.

This I'm confused by; we should have no behavioral differences to pyright in this case. Did you write stubs for numpy and they aren't being read? Are you certain the CLI version is running with identical settings?

Nope. My setup was just installing WSL, installing node (from nodesource), then pyright, and opening VSCode on the folder. No type stubs or anything else. You can see on both outputs (pyright and pylance) that no typings folder was found.
I should mention that this was working correctly yesterday, I think, or maybe the day before that. Was there a recent update that might've caused this?
Wrt settings, I don't have any config files for pyright, and for pylance the only relevant configuration is python path pointing to the virtual environment (which was activated when I ran pyright).

Pyright's copy of Pylance is slightly ahead of the released version of pyright, so maybe there's a problem there.
Note that Pylance's defaults are not the same as pyright, but arguably pyright's defaults are stricter so it doesn't make sense for Pylance to complain about something and pyright not.
Yes, we release weekly, the latest being Wednesday. You can use the VS Code extension menu to roll back to any other version if you'd like to test an older release.

Pyright's copy of Pylance is slightly ahead of the released version of pyright, so maybe there's a problem there.

Do you mean Pylance's copy of Pyright?

if you'd like to test an older release

Pylance v2020.9.6 works fine. No issues.

I suspect this is due to a pyright change that was introduced after 1.1.75. I'll investigate further.

Do you mean Pylance's copy of Pyright?

Yes, my mistake.

1.1.75 is also the version I have installed. The changelog does list two unreleased bug fixes, so the regression must've been introduced between the released 1.1.75 and the build that Pylance uses.

Note that we make modifications to pyright internally and sync the changes back; potentially the issue could be there (I had fixed a few bugs I introduced in 2020.9.6 to do with paths). Feasibly you could build the pyright CLI and test it to see if it reproduces.

Feasibly you could build the pyright CLI and test it to see if it reproduces.

I tried doing that. I followed the instructions on this page but here's what I got:
italo@Malacandra ~/d/p/p/pyright (master)
> node ./dist/pyright.js ~/a.py
No configuration file found.
Search paths found for configured python interpreter:
  /usr/lib/python3.8
  /usr/lib/python3.8/lib-dynload
  /home/italo/.local/lib/python3.8/site-packages
  /mnt/c/Users/italo/Google Drive/Code/Library
  /usr/local/lib/python3.8/dist-packages
  /usr/lib/python3/dist-packages
stubPath /home/italo/dev/pyright/packages/pyright/typings is not a valid directory.
Assuming Python platform Linux
Searching for source files
Found 1 source file
/home/italo/a.py
  2:1 - error: "print" is not defined (reportUndefinedVariable)
1 error, 0 warnings, 0 infos
Completed in 0.409sec
italo@Malacandra ~/d/p/p/pyright (master)
> which python
/usr/bin/python

This is the same a.py as above.
Obviously I'm missing a step on the build process, but I'm not sure what.

That doc needs an update; run node index.js a.py instead (no dist).
Note that you're now running pyright outside the venv and in a different directory; you should go back to where you were running pyright previously and run the local build from there.

italo@Malacandra ~/d/p/p/pyright (master)
> git log -1
commit f0a231d7fcf4c8f3e659410afc1348b7a2eb15b2 (HEAD -> master, origin/master, origin/HEAD)
Author: Eric Traut<EMAIL_ADDRESS>Date:   Thu Oct 1 13:19:45 2020 -0700

    Fixed bug that caused symbols referenced by `__all__` not to be marked as accessed in some cases.
(venv) italo@Malacandra ~/d/p/p/pyright (master)
> node index.js --version
pyright 1.1.75
(venv) italo@Malacandra ~/d/p/p/pyright (master)
> which python
/mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/bin/python
(venv) italo@Malacandra ~/d/p/p/pyright (master)
> node index.js ~/a.py
No configuration file found.
Search paths found for configured python interpreter:
  /usr/lib/python3.8
  /usr/lib/python3.8/lib-dynload
  /mnt/c/Users/italo/Google Drive/Code/Projects/email-lists/venv/lib/python3.8/site-packages
stubPath /home/italo/dev/pyright/packages/pyright/typings is not a valid directory.
Assuming Python platform Linux
Searching for source files
Found 1 source file
0 errors, 0 warnings, 0 infos
Completed in 0.932sec

Are there any commits on pylance's pyright that aren't on the main repo?

I found the culprit. As I suspected, it's a change that was made to pyright post 1.1.75 that was included in this week's pylance release. The problem is that numpy is using a form of __all__ manipulation that we didn't include in the new logic for determining which exports are visible from the library. (They use multiple idioms, and we support all but one.) The good news is that the form they're using is easy to support:
__all__ += nanfunctions.__all__

I've added support for this form, and the problem is now fixed. Apologies for the regression. And thanks for reporting it.

Yes, we'll pull it in.
I'm still wondering how your CLI isn't reporting this, but the GUI is, though...

I presume that the CLI isn't reporting it because the last version of the CLI is 1.1.75 which doesn't have this change.

I just built the CLI from the main repo, though (see above).

I'm able to repro the problem with pyright 1.1.75. It doesn't occur with pyright 1.1.74. The regression was introduced between these two versions.
@oyarsa, I'm not sure why you are not seeing the problem with the CLI. Are you sure you're running the correct version?

italo@Malacandra ~
> node dev/pyright/packages/pyright/index.js --version
pyright 1.1.75

@erictraut This is what pyright is reporting. Again, this was built from the pyright repo (master branch).

The version there is always the same (comes out of the package.json and is only bumped at release). The git state would be what to check, but I can see in https://github.com/microsoft/pylance-release/issues/450#issuecomment-702873813 that you were running at the right revision.
The only difference I can think of is the wrong python version being run or the wrong working directory. The linked comment is still running it on a file in ~, but your original post was on a specific project. That'd be the thing to test.

We've just published a hotfix release (2020.9.8) for this rather than waiting until next week. Thanks for the report.


Translate Arrow Names in micro:bit target

Arrow names (North, NorthEast etc) cannot be translated.

Update from #2502

Some strings in "libs/core" are not in "core-strings.json" and also not on Crowdin.
game.ts: all strings
icons.ts: some strings; ex. "arrow image"
images.cpp: some strings; ex. "scroll image"

This is fixed


chore(deps): bump https://github.com/jenkins-x/jx-cli to 3.0.166

Update jenkins-x/jx-cli to 3.0.166
Command run was ./promote/main

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

Needs approval from an approver in each of these files:

OWNERS

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


[cxx-interop] Emit IR for virtual methods

Even if a virtual method is not used directly from Swift, it might get emitted into the vtable, and in that case the IR for it should be emitted to avoid linker errors.
Fixes https://github.com/apple/swift/issues/61730.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test macOS

Hooray! 🥳


Update README.md

Add EDTconf, Engineering of Digital Twins book, and a recent journal article.

Great; thanks. There's a linter failure. Can you fix that please?

Many thanks. Merging now.


Connecting to AWS IOT with SigV4 - "Unable to connect to the remote server" on Xamarin

I have no problems connecting to AWS IOT with SigV4 when using MQTTnet (2.7.1) and WPF (net framework 4.6.1)
but I still have an exception "Unable to connect to the remote server" with excactly the same code but on Xamarin platform.
Any idea?

Hi,
did you maybe forget the "INTERNET" permission?
Please provide some more information like traces or debug output.
Best regards
Christian

After obtaining the url SigV4, have appropriate permissions on AWS for the user to connect and attach the policy to the user.

Clone or download the repo https://github.com/cityzenith/paho.mqtt.m2mqtt. (I recommend that this together with the Xamarin Solution for easy location)

Delete the file M2Mqtt/Properties/AssemblyInfo.cs  (this file has incompatibility with Xamarin and apparently is damaged or obfuscated)

Edit the file M2Mqtt/M2Mqtt.Shared.projitems with a text editor and remove the line

< compile Include = "$(MSBuildThisFileDirectory) Properties\AssemblyInfo. cs" / >

(this will prevent to Shared Project, locate the deleted file)

In your Xamarin solution we add an existing project, look for Shared Project and add it to our Xamarin solution.

Open the M2Mqtt/Net/MqttNetworkChannel.cs file and add the following references

using System.Net.Security;
using System.Security.Authentication;

Open the M2Mqtt/MqttClient.cs file and add the reference

using System.Net.Security;

With this we will have in our solution compatible with Xamarin and WebSocket4Net M2Mqtt

Add the reference of Shared Proyect to Your Project in which we want to use MQTT (in my case is the PCL Xamarin Forms) Note: If you already have installed some Nugget of MQTT I recommend uninstalling it to avoid confusion of namespaces.

Install the nuget Kerry Jiang WebSocket4Net in Your project

Create a new file c# in Your Project called WebSocketMqttNetworkChannel.cs, look for the file of the same name in M2Mqtt repo M2Mqtt.Net.WebSockets/Net/WebSocketMqttNetworkChannel.cs and copy its content to our new file.

With this we have the desired compatibility, it is time to prove.
In The file where we will implement MQTT logic we code something like this:
var channel = new uPLibrary.Networking.M2Mqtt.WebSocketMqttNetworkChannel(signedUrl);//Url SigV4
var mqttClient = new uPLibrary.Networking.M2Mqtt.MqttClient(null, 443, false, uPLibrary.Networking.M2Mqtt.MqttSslProtocols.None, null, null, channel);

mqttClient.MqttMsgPublishReceived += MqttClient_MqttMsgPublishReceived; //register the desired events

mqttClient.Connect(Guid.NewGuid()).ToString());

mqttClient.Subscribe(new string[] {"MyTopic"}, new byte[] {1}); We subscribe to the topic

To be everything correctly received messages in the event MqttClient_MqttMsgPublishReceived

Thank you very much.
With your instructions it was piece of cake. I managed to compile my
solution, connect to ASW IOT, publish and subscribe.
I knew about some paho mgtt clones but MQTTnet has nice nuget packets ... :)
I'm gona test it more deeply now.
Regards
2018-04-05 18:28 GMT+02:00 chekodev<EMAIL_ADDRESS>
After obtaining the url SigV4, have appropriate permissions on AWS for the
user to connect and attach the policy to the user.

Clone or download the repo https://github.com/cityzenith/
paho.mqtt.m2mqtt. (I recommend that this together with the Xamarin
Solution for easy location)
2.
Delete the file M2Mqtt/Properties/AssemblyInfo.cs (this file has
incompatibility with Xamarin and apparently is damaged or obfuscated)
3.
Edit the file M2Mqtt/M2Mqtt.Shared.projitems with a text editor and
remove the line
< compile Include = "$(MSBuildThisFileDirectory) Properties\AssemblyInfo. cs" / >
(this will prevent to Shared Project, locate the deleted file)

In your Xamarin solution we add an existing project, look for Shared
Project and add it to our Xamarin solution.
2.
Open the M2Mqtt/Net/MqttNetworkChannel.cs file and add the following
references
using System.Net.Security;
using System.Security.Authentication;

Open the M2Mqtt/MqttClient.cs file and add the reference

using System.Net.Security;
With this we will have in our solution compatible with Xamarin and
WebSocket4Net M2Mqtt

Add the reference of Shared Proyect to Your Project in which we
want to use MQTT (in my case is the PCL Xamarin Forms) Note: If you already
have installed some Nugget of MQTT I recommend uninstalling it to avoid
confusion of namespaces.
2.
Install the nuget Kerry Jiang WebSocket4Net in Your project
3.
Create a new file c# in Your Project called
WebSocketMqttNetworkChannel.cs, look for the file of the same name in
M2Mqtt repo M2Mqtt.Net.WebSockets/Net/WebSocketMqttNetworkChannel.cs
and copy its content to our new file.
With this we have the desired compatibility, it is time to prove.
In The file where we will implement MQTT logic we code something like
this:
var channel = new uPLibrary.Networking.M2Mqtt.WebSocketMqttNetworkChannel(signedUrl);//Url SigV4
var mqttClient = new uPLibrary.Networking.M2Mqtt.MqttClient(null, 443, false, uPLibrary.Networking.M2Mqtt.MqttSslProtocols.None, null, null, channel);
mqttClient.MqttMsgPublishReceived += MqttClient_MqttMsgPublishReceived; //register the desired events
mqttClient.Connect(Guid.NewGuid()).ToString());
mqttClient.Subscribe(new string[] {"MyTopic"}, new byte[] {1}); We subscribe to the topic
To be everything correctly received messages in the event MqttClient_
MqttMsgPublishReceived
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chkr1011/MQTTnet/issues/211#issuecomment-378996035,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS8QkIOyeNNrgolVAZi8uyp9V-ycOiDIks5tlkY1gaJpZM4S8w6K
.

Is someone able to share the trace and Wireshark export when connecting with AWS? I am wondering why this is not working when using WebSockets from .NET framework.

Today I tested version 2.8.0 in my project again but the same problem still exists.
Regards

I build a test adapter factory supporting WebSocket4Net.
public class WebSocket4NetMqttClientAdapterFactory : IMqttClientAdapterFactory
{
    public IMqttChannelAdapter CreateClientAdapter(IMqttClientOptions options, IMqttNetChildLogger logger)
    {
        if (options == null) throw new ArgumentNullException(nameof(options));
        if (logger == null) throw new ArgumentNullException(nameof(logger));

        if (!(options.ChannelOptions is MqttClientWebSocketOptions))
        {
            throw new NotSupportedException("Only WebSocket connections are supported.");
        }

        return new MqttChannelAdapter(new WebSocket4NetMqttChannel(options), new MqttPacketSerializer(), logger);
    }

    private class WebSocket4NetMqttChannel : IMqttChannel
    {
        private readonly BlockingCollection<byte> _receiveBuffer = new BlockingCollection<byte>();

        private readonly IMqttClientOptions _clientOptions;
        private WebSocket4Net.WebSocket _webSocket;

        public WebSocket4NetMqttChannel(IMqttClientOptions clientOptions)
        {
            _clientOptions = clientOptions ?? throw new ArgumentNullException(nameof(clientOptions));
        }

        public string Endpoint { get; } = "";

        public Task ConnectAsync(CancellationToken cancellationToken)
        {
            var channelOptions = (MqttClientWebSocketOptions)_clientOptions.ChannelOptions;

            var uri = "ws://" + channelOptions.Uri;
            var sslProtocols = SslProtocols.None;

            if (channelOptions.TlsOptions.UseTls)
            {
                uri = "wss://" + channelOptions.Uri;
                sslProtocols = SslProtocols.Tls12;
            }

            var subProtocol = channelOptions.SubProtocols.FirstOrDefault() ?? string.Empty;

            _webSocket = new WebSocket4Net.WebSocket(uri, subProtocol, sslProtocols: sslProtocols);
            _webSocket.DataReceived += OnDataReceived;
            _webSocket.Open();
            SpinWait.SpinUntil(() => _webSocket.State == WebSocketState.Open, _clientOptions.CommunicationTimeout);
            return Task.FromResult(0);
        }

        public Task DisconnectAsync()
        {
            if (_webSocket != null)
            {
                _webSocket.DataReceived -= OnDataReceived;
                _webSocket.Close();
                SpinWait.SpinUntil(() => _webSocket.State == WebSocketState.Closed, _clientOptions.CommunicationTimeout);
            }

            _webSocket = null;

            return Task.FromResult(0);
        }

        public Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
        {
            var readBytes = 0;
            while (count > 0 && !cancellationToken.IsCancellationRequested)
            {
                if (!_receiveBuffer.TryTake(out var @byte))
                {
                    if (readBytes == 0)
                    {
                        // Block until at lease one byte was received.
                        @byte = _receiveBuffer.Take(cancellationToken);
                    }
                    else
                    {
                        return Task.FromResult(readBytes);
                    }
                }

                buffer[offset] = @byte;
                offset++;
                count--;
                readBytes++;
            }

            return Task.FromResult(readBytes);
        }

        public Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
        {
            _webSocket.Send(buffer, offset, count);
            return Task.FromResult(0);
        }

        public void Dispose()
        {
            if (_webSocket != null)
            {
                _webSocket.DataReceived -= OnDataReceived;
                _webSocket.Dispose();
            }
        }

        private void OnDataReceived(object sender, WebSocket4Net.DataReceivedEventArgs e)
        {
            foreach (var @byte in e.Data)
            {
                _receiveBuffer.Add(@byte);
            }
        }
    }
}

You can use this factory via generating the client like in the following example:
var options = new MqttClientOptionsBuilder().WithWebSocketServer("test.mosquitto.org:8081/mqtt").WithTls().Build();
var mqttClient = new MqttFactory().CreateMqttClient(new MqttNetLogger(), new WebSocket4NetMqttClientAdapterFactory());
await mqttClient.ConnectAsync(options);
await mqttClient.SubscribeAsync("Test");

Can I use this lib for web socket communication in Xamarin?
Beside AWS IOT with SigV4 I have to connect to a web socket server in local LAN.
Can you give a guidance, please.
Regards
Piotr

Hi @prokis65 ,
could you please share your code of connecting to AWS IOT? I have difficulty to make it work.
thanks

@12345929 please try with the WebSocket4net snipped I posted above.

@chkr1011 Thanks very much for your reply, could you please advise which library contains MqttPacketSerializer class?

Oh sorry I forgot that this is not compatible with 3.0.0 (yet). Please try the above code with 2.8.5. If it works I will port that to 3.0.0 and make a proper extension nuget from that.

Hi @chkr1011 after installed 2.8.5, previous issue was gone, however, there is one more complaint for below code line:
SpinWait.SpinUntil(() => _webSocket.State == WebSocketState.Open, _clientOptions.CommunicationTimeout);
"Operator cannot be applied to operands of type "WebSocketState" and "WebSocketState"

Hi @chkr1011 after installed 2.8.5, previous issue was gone, however, there is one more complaint for below code line:
SpinWait.SpinUntil(() => _webSocket.State == WebSocketState.Open, _clientOptions.CommunicationTimeout);
"Operator cannot be applied to operands of type "WebSocketState" and "WebSocketState"

You are most probably comparing System.Net.WebSockets.WebSocketState with WebSocket4Net.WebSocetState.

Hi! Is this working with Unity? I am trying the snippet websocket4Net but seems it does nothing. The project without webSocket4Net works flawlessly in visual studio as a windows form project but in Unity it always return websocket exception.


Add keybinding ctrl+k v to the extension

ctrl+k v is the default keybinding for "Open Markdown preview" in vscode and markdown preview enhanced extension.
I think typst preview should also bind this shortcut to typst files, which is more convenient and can prevent some users from still using pdf preview.

this is a good point. and it seems that cmd+k v is also the keybinding for markdown preview.

we may also use a different preview icon from typst-lsp

this will come in next release. maybe typst v0.10.0 or when #179 merged so we can have 0.9.2

ok, thanks :-)


Create sidecar for Xiaomi tokens

See python script here for grabbing tokens and replicate the login process in the UI: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
This sidecar applies to all Xiaomi plugins. Currently grabbing the token is a complicated process that involves extracting them manually from a phone backup.

This a plugin that needs the sidecar for extracting the token
https://plugins.hoobs.org/plugin/homebridge-miot


routing: moved routing package inside lnd

Moved routing tools inside lnd. Changed internal type of graph.ID
from string to [33]byte.

I've rebased and squashed commits. Is it bug in the tests or in the code?
On my local, machine it sometimes passes, sometimes fails.

There's some occasional negative interaction between the integration tests that I haven't yet quite pinned down which causes the occasional flakiness you're seeing. I have a few more items on my personal TODO list, but will hopefully eliminate the flakiness in the next few days.


Remove unnecessary swap texture clone.

I've rebased it against the main branch and fixed the linters. Thanks a lot of the optimisations!


rig_reconfigure: 1.4.0-1 in 'iron/distribution.yaml' [bloom]

Increasing version of package(s) in repository rig_reconfigure to 1.4.0-1:

upstream repository: https://github.com/teamspatzenhirn/rig_reconfigure.git
release repository: https://github.com/ros2-gbp/rig_reconfigure-release.git
distro file: iron/distribution.yaml
bloom version: 0.11.2
previous version for package: 1.3.2-1

rig_reconfigure
* Add dependency on ament_index_cpp to fix build on rolling (#29 <https://github.com/teamspatzenhirn/rig_reconfigure/issues/29>)
* Place imgui.ini within users home directory (#28 <https://github.com/teamspatzenhirn/rig_reconfigure/issues/28>)
* improved input handling of numeric values (#27 <https://github.com/teamspatzenhirn/rig_reconfigure/issues/27>)
* Contributors: Chris Lalancette, Dominik

Holding for Iron sync


Update grammar to latest available from atom-typescript.

Update the grammar file to the latest version available from the
atom-typescript package.
The typescript grammar file from atom-typescript has undergone a number of changes that make it work much better.  It fixes a lot of issues that the current grammar file has.  This pull request just replaces the outdated grammar file with the latest one available in atom-typescript v8.11.0

thx man! 👍