Node.js intellisence is not working

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: September 2024 (version 1.94)
OS Version: x64

It is not working in the latest version of Vs code
On Wed, 9 Oct, 2024, 10:57 vs-code-engineering[bot], <
@.***> wrote:

Thanks for creating this issue! It looks like you may be using an old
version of VS Code, the latest stable release is 1.94.1. Please try
upgrading to the latest version and checking whether this issue remains.
Happy Coding!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/230869#issuecomment-2401345682,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCRKL3JOH4GAMWHRFYI6T7LZ2S5C3AVCNFSM6AAAAABPTWAKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGM2DKNRYGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

You haven't really answered any of the opening questions to enable anyone to help.
Does this issue occur when all extensions are disabled?
What is your OS Version? Are you running Windows? Mac? Linux? x64 is simply the architecture.
Can you provide repro steps? A script you're using and a package.json with the deps?

I am using Windows x64. Nodejs intellisence worked previous version of vs
code now it is not working. Yes it is not working with and without
extension.
On Wed, 9 Oct, 2024, 13:39 huzi8t9, @.***> wrote:

You haven't really answered any of the opening questions to enable anyone
to help.
Does this issue occur when all extensions are disabled?
What is your OS Version? Are you running Windows? Mac? Linux? x64 is
simply the architecture.
Can you provide repro steps? A script you're using and a package.json with
the deps?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/230869#issuecomment-2401636004,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCRKL3NUYC6X7NSH4VADPTLZ2TQCVAVCNFSM6AAAAABPTWAKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGYZTMMBQGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

I have created a new folder, ran npm init -y then npm i express and created an index.js file and intellisence appears to work for me.
OS: Windows 11 24H2, 11th Gen Intel(R) Core(TM) i7, 32gb RAM - x64

... then I realised I as running 1.90! After upgrading to 1.94.1, intellisence did not work correctly. It was "app" as a function.

Yes same problem
On Wed, 9 Oct, 2024, 14:37 huzi8t9, @.***> wrote:

I have created a new folder, ran npm init -y then npm i express and
created an index.js file and intellisence appears to work for me.
OS: Windows 11 24H2, 11th Gen Intel(R) Core(TM) i7, 32gb RAM - x64
image.png (view on web)
https://github.com/user-attachments/assets/03d2e9cb-6a2f-42ea-9fae-373931cd912b
... then I realised I as running 1.90! After upgrading to 1.94.1,
intellisence did not work correctly. It was "app" as a function.
image.png (view on web)
https://github.com/user-attachments/assets/981067f9-2677-46fa-bc1a-b2cab2a0398a
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/230869#issuecomment-2401763422,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCRKL3N56KV6CHI53MMYQT3Z2TW4PAVCNFSM6AAAAABPTWAKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRG43DGNBSGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

How to solve it
On Wed, 9 Oct, 2024, 14:40 BIBEK DAS, @.***> wrote:

Yes same problem
On Wed, 9 Oct, 2024, 14:37 huzi8t9, @.***> wrote:

I have created a new folder, ran npm init -y then npm i express and
created an index.js file and intellisence appears to work for me.
OS: Windows 11 24H2, 11th Gen Intel(R) Core(TM) i7, 32gb RAM - x64
image.png (view on web)
https://github.com/user-attachments/assets/03d2e9cb-6a2f-42ea-9fae-373931cd912b
... then I realised I as running 1.90! After upgrading to 1.94.1,
intellisence did not work correctly. It was "app" as a function.
image.png (view on web)
https://github.com/user-attachments/assets/981067f9-2677-46fa-bc1a-b2cab2a0398a
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/230869#issuecomment-2401763422,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCRKL3N56KV6CHI53MMYQT3Z2TW4PAVCNFSM6AAAAABPTWAKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRG43DGNBSGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

A dev will pick-up

Ok, thanks. I am facing problems for that. Please do it as soon as possible
On Wed, 9 Oct, 2024, 14:43 huzi8t9, @.***> wrote:

A dev will pick-up
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/230869#issuecomment-2401776814,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCRKL3NVVOE5Q7FPSAMCIM3Z2TXSXAVCNFSM6AAAAABPTWAKYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRG43TMOBRGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Intellisence worked on Mac in 1.92.2 -- issue is also present on Mac M1 Max running Sonoma 14.5

/duplicate of #230596


error "Dashboard title cannot be empty" when using Grafana 7.5.4

Some users must use older versions of grafana due to licensing changes. For these users, the newer dashboard logic doesn't always work. We need to provide a verified usage pattern that works with grafana 7.5.4 out of the box.

no longer valid with grafana externalized


UX: Linkify addresses in transaction details

The link should go to the account page so that a user can see an account's balance and other details

Fixed


try to fix bug in EN_getdemandname

#430

Codecov Report

Merging #431 into dev will decrease coverage by 0.01%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##              dev     #431      +/-   ##
==========================================
- Coverage   69.85%   69.83%   -0.02%
==========================================
  Files          22       22
  Lines        9888     9889       +1
==========================================
- Hits         6907     6906       -1
- Misses       2981     2983       +2

Impacted Files
Coverage Δ

src/epanet.c
59.06% <50%> (-0.03%)
:arrow_down:

src/smatrix.c
98.51% <0%> (-0.3%)
:arrow_down:

Continue to review full report at Codecov.

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

I have replaced MAXMSG  with MAXID and I have added a check if demandName is too long in EN_setdemandname.

@Mariosmsk  a test would be a great addition to this PR.

@Mariosmsk Nice!

Can someone please merge this PR?

@Mariosmsk Looks like there are some merge conflicts. Could you fetch pull OWA/epanet:dev and resolve them?

@Mariosmsk I resolved these conflicts in your branch. You need to merge them there then I can merge here.


How to install?

Hello, I'm just looking to install this on my OpenWRT router, is there any doc. available on how to install this? It looks awesome! Thanks!

https://zhaojh329.github.io/oui/


fix(datadog) fix sample_rate accepted range

Fixes a number of small issues that compounded into #4136:

fix(api) catch handler failures and return 500 - We were getting a Lapis handler because of a failure inside the PDK. This fixes that.
fix(core) reset log namespace on init_worker - Once that was fixed, we were getting a logged error with the wrong namespace.
fix(api) encode non-JSON-representable numbers as strings - Once that was fixed, the error reported that it was an issue when JSON-encoding the schema. This fixed the encoding.
fix(datadog) correct valid sample_rate range - Finally, that value in the datadog schema shouldn't be there in the first place; this fixes the sample_rate to the correct range (between 0 and 1).

For datadog sample_rate, see:

https://docs.datadoghq.com/developers/faq/dog-statsd-sample-rate-parameter-explained/
https://thenewstack.io/collecting-metrics-using-statsd-a-standard-for-real-time-monitoring/

Fixes #4136.

@hishamhm
This change fixes the issue but I think we should add a test for regression as more and more external components now rely on the /plugins/schema/{plugin} endpoint .
Can we add an integration tests to ensure that the :8001/plugins/schema/{plugin} endpoint actually works for all bundled plugins?
Something like GET that endpoint for each plugin and then ensure that it returns a JSON with fields property of type array.

@hbagdi there you go :)


Fix GitHub InstallationToken renewal.

Fixes not properly renewing the InstallationToken when using the GitHub App backend. Observed on my private instance.

@mergify queue

@mergify queue

Whats it waiting on now? Im a bit confused as to how this bot works

Whats it waiting on now? Im a bit confused as to how this bot works

It's waiting for the CI, which doesn't seem to run on this branch.


cargo contract does not inherit fields from workspace

[workspace]
members = ["crates/", "contracts/"]
resolver = "2"

[workspace.package]
version = "1.2.3"

[package]
name = "proxy"
version.workspace = true

package:   /home/geopro/bench/captcha2/protocol/contracts/proxy/Cargo.toml
workspace: /home/geopro/bench/captcha2/protocol/Cargo.toml
 [1/*] Building cargo project
error: failed to parse manifest at `/tmp/cargo-contract_zqSYnB/contracts/captcha/Cargo.toml`

Caused by:
  error inheriting `version` from workspace root manifest's `workspace.package.version`

Caused by:
  `workspace.package.version` was ERROR: command ["/home/geopro/.rustup/toolchains/1.72-x86_64-unknown-linux-gnu/bin/cargo", "build", "--color=always", "--target=wasm32-unknown-unknown", "-Zbuild-std=core,alloc", "--no-default-features", "--release", "--target-dir=/home/geopro/bench/captcha2/protocol/target/ink/captcha", "--features", "ink/ink-debug"] exited with code 101

Sorted.


Flask-Restful integration with pymongo

Hi,
how can I integrate marshmallow-monoengine in my flask-restful REST Api using pymongo (MongoClient) with auth-db as database connection ? How do I load data in this scenario ? Could you provide me with an example, please ?
I followed your tutorial, but when it comes to actual mondoDB connections there seems to be no documentation on it.

你可以试试用MonggoEngine, 它提供ORM的操作语句，使数据库查询更加方便。
工厂模式下这样连接
init.py
from flask_mongoengine import MongoEngine
db = MongoEngine()

app.py
def create_app(config_name):
    app = Flask(config_name)
    app.config.from_object(config[config_name])
    db.register_connection(
        db='your db',
        alias="name",
        port=PORT,
        username=NAME,
        password=PWD
    )

@ZHAISHENKING : Would this also be possible with a custom class element ? For every request to my endpoint I create a db-connection object, which I delete afterwards when the request is finished, thus no connections (even if something breaks communication) stay open, no memory leaks... :)
This is my class:
class DBConnection():
   def __init__(self):
       self.mongo_url = 'mongodb://localhost:27017/admin'
       self.client = MongoClient(self.mongo_url,
                                 username= 'admin',
                                 password= 'secretpw')
       self.client.db = self.client.get_database("testdb")
       self.collection = self.client.db["test"]

In my GET routine I do a
db_connection = DBConnection()
for item in db_connection.collection.find(filter).sort("name"):
                ...
db_connection.clean()
del db_connection
return data

抱歉，没有这么使用过。 这个连接方法与MongoEngine没有关系，更像是pymongo的连接方法


There is no Css scoping for the project

Css-loaders with module true fails.

I didn't tested the library for this case but actually it already have scoping. Might be something to add support for css modules tho


rename to ulisp-esp8266.ino to match the directory name?

The Arduino software still does not like sketches to be named differently than the surrounding folder (or am I overlooking an option?) and renaming this sketch's folder to ulisp would conflict with the one I have for playing with uLisp on a 1284er.
Can you please think some milliseconds about renaming this sketch to ulisp-esp8266.ino?
...or is having git repositories in the sketches directory a completely bad idea?

Good suggestion - I'll do it.

Thanks! That makes life easier...


How to archive a url twice with different timestamp ?

I found that once a url has been archived, when I tried to add it to archivebox again it will fail. How can I archive one website twice but with different timestamp?

Duplicate of: https://github.com/ArchiveBox/ArchiveBox/issues/179


Invalid barcode when generated through qrcode.js using google authenticator

You've got the string base64 encoded - Google Authenticator expects the raw otpauth://etc.... format


💡 [FEAT] Clear due date when selected

Is your feature request related to a problem? 😢 Please describe.
While editing the due date, it is by default set to none. I have to manually remove it to add in a new due date.
Having to clear the due date for every task takes little time, but over a period it adds up.
Describe the solution you'd like   🤔
It would be better if it was cleared when entering to ease the process of adding a due date.
Describe alternatives you've considered  🧐
I would love to implement this feature but I'm currently strapped for time. So it's just an issue for now.

Hi again @shashidharybhat !

It would be better if it was cleared when entering to ease the process of adding a due date.

Hmm...I was already thinking of adding keybindings for editing ( which is current behaviour ) vs changing ( which means the typing area will be cleared before you write anything)

I would love to implement this feature but I'm currently strapped for time. So it's just an issue for now.

haha... I'm also really busy but I'll be back within a week! :muscle:
@kyeboard Would you like to work on this issue?

Sure :)


Add Hubspot for stats

Fixes #2471 (and piggyback for #2572 since so small)
Only load and track Hubspot stats if set in app config.

retest this please

retest this please

Frontend tests were OK :+1: (details)

@xavijam small change, but please review just in case

Update NEWS and ready to go :+1:

Pending config changes for staging/production to be able to merge, so not ready quite yet.

Frontend tests were OK :+1: (details)

Frontend tests were OK :+1: (details)

Frontend tests were OK :+1: (details)

Frontend tests were OK :+1: (details)

Config updates done and verified working on staging, will release as soon as CI pass.

Frontend tests were OK :+1: (details)


Modify: Remove voice functions from main.go

Create a new file voice.go that contains the following functions:

playSound
loadSound

These functions need to be removed from main.go. The bot should still run normally when the bot is run with the command go run main.go voice.go. Also create a new function loadPresetDCAFiles that takes no parameters. This function should perform the same task that this snippet of code does:
err = loadSound("airhorn.dca")
	if err != nil {
		fmt.Println("Error loading sound: ", err)
		return
	}

This snippet of code is present in the main function of main.go and should be removed.
Future functions in voice.go would include streaming a YouTube video's audio to the voice channel etc.

Hey! I'd like to work on this.

Sure! Thanks for showing interest! Assigned :D


Re-Added section on setting up the scheduler service

I removed the full paragraph when I should have only adjusted the grammar.

Rebased, resolved the conflicts and merged as 0a1b433


Update utils.py

The vanilla version want to broadcast the L dim, but actually broadcast the N dim

Thank you for your kindly fix. Its truly a problem, but I will update this into this repo in the future.


Video playback starts at an accelerated rate

freshplayerplugin v 0.2.0
pepper flash v <IP_ADDRESS>
firefox 33.0.2
When video playback is engaged, videos initially play back at ~10x rate, and sound is severely mangled.  Video playback appears to self-correct in a probabilistic manner (seldomly, it happens right at the very beginning, sometimes it happens quickly, sometimes it takes quite a while)
I believe this happens with all flash video playback.  I've verified that this is happening consistently playing youtube videos, and the couple dailymotion videos I've tested also exhibit this behaviour.

Direct PulseAudio support was implemented, so the root of the issue — interacting with ALSA compatibility plugin — was eliminated. Thus I believe issue is solved now.
If you still experience unexpected accelerated playback, feel free open a new issue, or reopen this one.


hugo: add search shortcode

Add search shortcode
Move search to a partial to be able to reuse it
Add styling for search--widget
Add logic for hidden field is contentTypes dropdown is hidden
If content type is filled in: use this as placeholder in the searchbar
Remove check on empty query because we also want to search when no query is
filled in but facets are set
Fix scoping issue for search ts (checking within element instead of
document)
Change handle submit to use current page when type is results
Add example page
Fix issue with blog having been renamed to 'Blog overview' and because it's
a list page this was also renamed in the search results and filters

To test: examples/shortcodes/search
For https://linear.app/usmedia/issue/CUE-283

Closed via e71ca6a79d62c044aaf8767ac0ac7770816026a3


Retain Friendly Name

When we restore a backup to a sandbox instance we need to retain the friendly name so we can identify the name quick from the instance picker especially when we have multiple instances.
But there is no mentioned in the article that the restore will replace the friendly name. It would be helpful if we add a note in the article.

@shsasi
The sandbox environment name will be retained when restoring a backup from another environment. We added a note to the following topic about editing the environment name when restoring:
https://docs.microsoft.com/power-platform/admin/backup-restore-environments


remove chair from mod (sorry fellas but it had to be done)

yes

please merge i fixed every issue with mod

+rep This is 100% fix to the mod, it basically fixes all the issues

ok boys made new pr


Client not found error

Hello!
I'm getting issue with any client action:

Generated key
Paired with server
Trying to get_rates() or gen_Invoice(), but getting this error:

Traceback (most recent call last):
File "main.py", line 31, in
client.get_rates()
File "/usr/local/lib/python3.6/site-packages/btcpay/client.py", line 74, in get_rates
return self._signed_get_request('/rates/', params=params)
File "/usr/local/lib/python3.6/site-packages/btcpay/client.py", line 45, in _signed_get_request
r.raise_for_status()
File "/usr/lib/python3.6/site-packages/requests/models.py", line 935, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: %mybtcpayurl%

Now it works
Many thanks, Nicolas!


chore: checkout last 5 commits

Coverage remained the same at 70.796% when pulling 280bd5ea1b6c88f72fcd737ea32668894efc1dec on DanielRuf:chore/checkout-last-5-commits into 5e15619fc6599ce0639865bd51f78bb8d760e9dd on dvajs:master.

👍


[go_router] exceptions thrown during build does not trigger the errorPageBuilder

Using Flutter 3.10.0 and go_router 7.0.1
Steps to reproduce

In a goRoute build, throw a custom exception MyCustomRoutingException
In  the errorPageBuilder, try to check if exception is of type MyCustomRoutingException

Expected results
Expected to call ErrorBuilder when an error occurs.
This was working with go_router v3.1.1
The change was made here in this commit.
Actual results
Error gets passed up in main.dart
Code sample
Code sample
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  MyApp({super.key});

  final GoRouter router = GoRouter(
    routes: [
      GoRoute(
        path: '/',
        pageBuilder: (context, state) {
          throw const CustomRoutingError();
        },
      ),
    ],
    errorPageBuilder: (context, state) {
      if (state.error is CustomRoutingError) {
        return const MaterialPage<void>(
          key: ValueKey('error_page'),
          child: Center(
            child: Text('Custom Routing Error'),
          ),
        );
      }
      return const MaterialPage<void>(
        key: ValueKey('error_page'),
        child: Center(
          child: Text('Unknown Error'),
        ),
      );
    },
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      routeInformationProvider: router.routeInformationProvider,
      routeInformationParser: router.routeInformationParser,
      routerDelegate: router.routerDelegate,
      backButtonDispatcher: router.backButtonDispatcher,
    );
  }
}

class CustomRoutingError implements Exception {
  const CustomRoutingError();
}

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.22621.1702], locale en-CH)
    • Flutter version 3.10.0 on channel stable at C:\src\flutter_2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (4 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\Users\morat\AppData\Local\Android\sdk
    • Platform android-33, build-tools 32.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio Build Tools 2017 15.9.38)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
    • Visual Studio Build Tools 2017 version 15.9.28307.1622
    • Windows 10 SDK version 10.0.17763.0
    X Visual Studio 2019 or later is required.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code, 64-bit edition (version 1.78.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.64.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.1702]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 113.0.5672.93
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 112.0.1722.68

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Windows Version (the doctor check crashed)
X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know
about this issue at https://github.com/flutter/flutter/issues.
X ProcessException: Failed to find "systeminfo" in the search path.
Command: systeminfo

Windows Version (the doctor check crashed) X Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues. X ProcessException: Failed to find "systeminfo" in the search path. Command: systeminfo

The doctor issue is not relevant in this case. I'm using flutter web.

same issue here, any updates ?

@danielmessi13 Looks like this isn't happening anytime soon since instrumenting the testing framework go_router using can't test the RouteBuilderException, some part of either the framework or flutter catches the error before the router I think.
Anyway the workaround mentioned by chuntai is

•••

I'm throwing custom exceptions depending on specific events that can occur during the build of the route

I think the best bet is to do a context.go when the condition is met. probably in a postframecallback. or just build a different widget base on that.


Resolve merge conflicts in AM live publish sync PR

Note: The file articles/cosmos-db/nosql/query/udfs.md was deleted in this PR because it doesn't exist in main, and a redirect exists for that file in main.

Resolved warnings, though commit has yet to show up in PR.

It took 45+ minutes for the fixes in this PR to resolve the merge conflicts in the AM live publish sync PR.

@bwren @jcodella @seesharprun @spelluru
There was a delay in the morning publish process for the private repo this morning, because of several merge conflicts involving this content in the public and private repos. The updates in this PR resolved the merge conflicts, and enabled the routine daily public/private repo sync for the afternoon publish of the private repo. Because the updates substantially changed the content, you might want to review and update the changed content further as you wish. To minimize merge conflicts between the public and private repos, it's best make your updates in the private repo as much as possible. Thanks.


[OpenMP][OMPT] Add test veccopy-ompt-target-data-emi + tracing variant

This will check for different issues w.r.t. target data:

Uninitialized devices
Ordering of Target callback
Endpoint creation
Non-null destination addr (TargetDataOp)

The tracing variant will additionally check for tracing events. But will omit checks for device numbers and destination addresses. Reason: Since we use 'DAG' checks, we omitted 'NOT' checks,
as they would be without a clear correlation.

Rebased (#718)


feat: :sparkles: leitura da ancora na url

Ao ler uma URL com ancora ele deixa a ancora ao final da URL parametrizada

Codecov Report

Merging #146 (b690a41) into develop (7ddfe3a) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #146      +/-   ##
===========================================
+ Coverage    95.49%   95.54%   +0.05%
===========================================
  Files           44       44
  Lines         1264     1280      +16
  Branches        72       74       +2
===========================================
+ Hits          1207     1223      +16
  Misses          44       44
  Partials        13       13

Flag
Coverage Δ

integrationtest
95.54% <100.00%> (+0.05%)
:arrow_up:

unittests
95.54% <100.00%> (+0.05%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/ts/models/Adobe.ts
98.03% <100.00%> (+0.08%)
:arrow_up:

src/ts/models/GA.ts
100.00% <100.00%> (ø)

test/models/Adobe.spec.ts
100.00% <100.00%> (ø)

test/models/GA.spec.ts
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Issue in instally Tensorflow-gpu

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
latest
Custom code
Yes
OS platform and distribution
No response
Mobile device
windows
Python version
3.11.5
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
12.3 cuda
GPU model and memory
nvidia gtx 1650
Current behavior?
Actually sir , i want to train my tensorflow model on my gpu
but when i setup my gpu
so every setup is done
but in last when i run this command " pip install tensorflow-gpu"
it give me error
why?
Standalone code to reproduce the issue
see above

Relevant log output
Collecting tensorflow-gpu
  Using cached tensorflow-gpu-2.12.0.tar.gz (2.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      Traceback (most recent call last):
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\requirements.py", line 35, in __init__
          parsed = _parse_requirement(requirement_string)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 64, in parse_requirement
          return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 82, in _parse_requirement
          url, specifier, marker = _parse_requirement_details(tokenizer)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 126, in _parse_requirement_details
          marker = _parse_requirement_marker(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\_parser.py", line 147, in _parse_requirement_marker
          tokenizer.raise_syntax_error(
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\_tokenizer.py", line 165, in raise_syntax_error
          raise ParserSyntaxError(
      setuptools.extern.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier)
          python_version>"3.7"
                        ^

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

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Jatindar Kumar\AppData\Local\Temp\pip-install-6mm7r8qr\tensorflow-gpu_1cfe51ebc0264a7b8bb3ba70f4f234d8\setup.py", line 40, in <module>
          setuptools.setup()
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\__init__.py", line 106, in setup
          _install_setup_requires(attrs)
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\__init__.py", line 77, in _install_setup_requires
          dist.parse_config_files(ignore_option_errors=True)
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\dist.py", line 900, in parse_config_files
          self._finalize_requires()
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\dist.py", line 597, in _finalize_requires
          self._move_install_requirements_markers()
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\dist.py", line 637, in _move_install_requirements_markers
          inst_reqs = list(_reqs.parse(spec_inst_reqs))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\ProgramData\anaconda3\Lib\site-packages\setuptools\_vendor\packaging\requirements.py", line 37, in __init__
          raise InvalidRequirement(str(e)) from e
      setuptools.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier)
          python_version>"3.7"
                        ^
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@jatindarkumar12  Make sure you are using the latest version of pip. You can update pip by running the following command:
python -m pip install --upgrade pip

You can install TensorFlow with the following command:
python -m pip install tensorflow

You may need to install additional build dependencies for TensorFlow. The specific dependencies will vary depending on your operating system and environment. You can find instructions for installing build dependencies on the TensorFlow website: https://www.tensorflow.org/install
Thank you!

Following up on the above.  We do not publish to the tensorflow-gpu pypi repository since 2.12.   The base tensorflow package has had NVIDIA GPU support since 2.1.0. so you likely should be pip installing using tensorflow and not tensorflow-gpu.  See https://pypi.org/project/tensorflow-gpu/ for more info on this modification.


[Exalted 3] more various sheet updates

More updates/changes to the exalted 3rd edition sheet.
-updated the formula for all roll buttons to allow for the calculation of double successes for 7s-10s.
-also changed rolls to be chat emotes that indicate what the character was rolling.
-the hard-coded intimacies from the top of the intimacy list have been removed from the intimacy section, leaving only the repeating section, which will auto generate 4 slots upon a new character sheet being opened. The old hard-coded intimacies have been temporarily placed in the misc. section for users to copy data over from. This should make organizing intimacies smoother for all users going forward.
-included the JavaScript from the old version of the sheet that was used to calculate wound-penalties. Wound penalties will now automatically calculate based on marked health boxes in the health section, and the penalty will apply to all rolls. A section has also been added in the misc tab to customize how many points of wound penalties characters can ignore, which is factored in to the wound penalty calculations.
-auto calculation of base defense values. A few users commented on missing the old auto-calculated defense values, so I've used some of the text-boxes in the combat tab to give auto-calculated values of the the base defenses.
-removed redundant text in the specialties and merits sections to allow more room for text boxes in those sections
Changes / Comments
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[ ] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[ ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


Feed does not seem to be getting new data all the time

I would assume that the feed would be getting data from the website. but it does not seem to get data from friends that I can see if I just missed them, the website says they were on an hour ago but the app logged them a day ago.
Version 2023.05.01

How many friends do you have?
and any log on Dev Tools?

Might be fixed now.


[bug] some panels not displyaing correctly on white background

Describe the bug
Hi,
I'm using those dashboards with Grafana using the light theme (easier on my eyes), and some panels are not displaying properly. e.g.:

this can be fixed by setting the color mode of the panel to None instead of Value

How to reproduce?

turn on light mode for Grafana.
check the Kubernetes / Views / Global panel

Expected behavior
the text/values should be readable even with the light theme
Additional context
No response

Hi @clementnuss,
Thank you for the bug report.
I will test with and get back to you during the day.

wait a few minutes, I'm writing a PR for that :) going through the dashboards and changing the colorMode to None where it needs to be changed

Fixed by https://github.com/dotdc/grafana-dashboards-kubernetes/pull/28


Replace chrono with the time crate

Replaces the chrono crate with time 0.3
Depends on  #207

Thanks, nice! #207 is merged, mind removing the commit from here?
BTW if this PR would be based on top of the #207 branch, GitHub would automatically replant it on top of master, after merging.

Thanks, nice! #207 is merged, mind removing the commit from here?

Done

BTW if this PR would be based on top of the #207 branch, GitHub would automatically replant it on top of master, after merging.

Oh cool, I never looked into how that worked. Thanks!


[Feature] Improve Loading Performance

Loading a photo is slow (2sec on iphone 11).
Is it possible to pre-load elements with some good strategy or maybe use native to load them from the file system? Otherwise it feels like cross-platform.
Best

@delfme Could you explain which API you're using to load the photo, and what your use case is?

@vishnukvmd  I am teammate of @delfme
Here i am providing code
Using photo_manager: ^1.2.4 with null-safety and latest flutter version

/// Get all folder list
final assetPathEntities = await PhotoManager.getAssetPathList(type: RequestType.common);

/// To get all entities in perticular folder
final assetEntities = await assetPathEntities[0].getAssetListPaged(_pageIndex, 30);

After that we used GridView.builder to display all images with Image.memory widget
Loading full size image
assetEntity.file it will give Future So we used Image.file widget that will display full size image
Instagram case
https://user-images.githubusercontent.com/63590009/124175981-e8918800-dacb-11eb-9e64-fc918d4270cd.mp4
Our app case
https://user-images.githubusercontent.com/63590009/124176045-02cb6600-dacc-11eb-94ba-bab9abed8453.mp4

Recommendations:

Load and render thumbData first, and load the file next. Replace the former imageProvider with the latter post load.
Use precacheImage to prevent jarring transitions while loading heavy images.
Add a hero animation between the grid view and the detailed image view.

You could check how a "local image" is rendered here: https://github.com/ente-io/frame/blob/master/lib/ui/zoomable_image.dart
Not saying this is the best solution, but it works.

@vishnukvmd Thanks for the suggestion. I will try this solution

@vishnukvmd Can you help me where to use precacheImage?
Because i have Image grid view and grid view loads Image.memory widget by calling asset.thumbDataWithSize(500, 500)
in FutureBuilder<Uint8List?>
If i want full image in my Image details screen then i have to do in onTap of Grid view item:
final file = await snapshot.data![i].file;
await precacheImage(FileImage(file!), context);

So it will take same time to load before screen transition. and i know that Image widget has memory caching functionality by default. but for that we have to load image first in Image widget
I have crop screen after Image detail screen. so when i move in crop screen with taking image file. there is no delay in loading image preview

Navigate to your details page immediately, passing it the Uint8List of thumbnail.
Make your details page return this thumbnail within the build method.
In initState of your details page, make a request to fetch the actual file, and once the fetch is complete, update the existing image widget displaying the thumbnail with this fetched data. This can be achieved by creating an Image widget with an ImageProvider at first, and updating this _imageProvider post fetch.
This reload could cause a flicker in the UI, if it does, call precacheImage before updating your _imageProvider and calling setState, so that when the widget loads, it loads from cache.

@vishnukvmd  could you please provide code sample ?

@nayanbabariya95  could you please provide code example ?


Crashes when pinging a large corporate network

I wonder if this is due to two GUI update events happening simultaneously

Could probably induce this better by setting it up so we can read from a capture file, which would run all at once


feat: get amplitude Id json and summary report

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@5f448a7). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff           @@
##             main      #1   +/-   ##
======================================
  Coverage        ?   2.00%
======================================
  Files           ?       2
  Lines           ?     200
  Branches        ?       0
======================================
  Hits            ?       4
  Misses          ?     196
  Partials        ?       0

Flag
Coverage Δ

go
2.00% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


open app after just closing it, get wrong orientation

after closing ios system message

after hitting back button

trying to repo...

It appears that the dev view is allowed to rotate, which shouldn’t be allowed, but it’s also not a larger user facing problem.
Steps to reproduce:

Open an artwork.
Rotate to landscape to enter VIR mode
Shake device to open dev menu


Upgrade to Swift 4.2 and Xcode 10

Hi,
Can you just update the project for Swift 4.2 and Xcode 10.0.

@nikhilpandey4 if you are using the lib as a CocoaPod for your project, there should be nothing to update.
If you are referring to updating Swift and Xcode for this library project itself, checkout my latest commit on master branch 👍

Dear Pham,
Thanks for your efforts.
Regards,
Nikhil


Can't create Dictionary constant with LUA syntax

Godot version:

8158d17
Issue description:

const test = {
	some_value = 1
}

Initializer for a constant must be a constant expression.
This works fine in 3.2. Also arrays work fine.
Also also doesn't happen when you use the : syntax.
const test = {
	"some_value": 1 #no error
}

Fixed in 97e041e


Bad decoding of html entities on screenshots

What is your Scenario?
My company has made several websites for one of our clients.
We have various types of tests which work fine, but in this case, we want to run a "visual-only" daily test on these websites, which should mostly navigate on a url, resize window, scroll and take screenshots at each scrolling move.
The script works well, but we can see on screenshots some "bad encoded characters".
I precise that I work in a french company with french clients, and that most of the displayed text is written by employees of my client in a back-office, on an interface including the text editor CKEditor (which is likely to add html entities and weird encoded characters).
That is to say that website texts contain latin characters like accents, and some characters like quotes or tabs are sometimes rendered by html entities.
The problem is that it works well when a human visits the website (on any device and most navigators), because we handle text encoding/decoding on server side before display, but here the screenshots display a wrong behaviour.
I did not find any workaround in the documentation.
What is the Current behavior?

What is the Expected behavior?

What is your public website URL? (or attach your complete example)
https://www.ecole-blot.com/
https://www.concours-pompier.com/
What is your TestCafe test code?
import { Selector } from "testcafe"
import { ClientFunction } from 'testcafe';
fixture ecole-blot.com
.page ("https://www.ecole-blot.com/")
;
const resolutions = [
[375,667],            [768,960],            [1680,1050]    ]
const getBodyHeight = ClientFunction(() => {
return document.body.clientHeight;
});
const getScrollTop = ClientFunction(() => {
return document.scrollingElement.scrollTop;
});
const scrollBy = ClientFunction((height) => {
window.scrollBy(0,height);
});
test('Login', async t => {
await t
.resizeWindow(1680,1050)
.wait(2000)
const cookieButton = await Selector('button').withText("Accepter").filterVisible();
if (cookieButton.exists)
{
    await t
    .click(cookieButton)
}

for(let res of resolutions) {

	await t
	.resizeWindow(res[0],res[1])
	.wait(1000)
	.takeScreenshot({})
	let startpoint = 0;
	let pageHeight = await getBodyHeight();
	let realScrollTop = 0;
	while(!(startpoint >= pageHeight-res[1]))
	{
		await scrollBy(res[1]);
		startpoint += parseInt(res[1]);
		if(await getScrollTop() != realScrollTop)
		{
			realScrollTop = await getScrollTop();
			await t
			.wait(500)
			.takeScreenshot({});
		}
	}
	await scrollBy(-pageHeight);
}

});
Your complete configuration file
No config file
Your complete test report
{
"startTime": "2023-02-21T14:52:53.429Z",
"endTime": "2023-02-21T14:54:09.765Z",
"userAgents": [
"Chrome 110.0.5481.104 / Windows 10"
],
"passed": 1,
"total": 1,
"skipped": 0,
"fixtures": [
{
"name": "ecole-blot.com",
"path": "C:\Users\vm-be\Tests\659\ecole-blot\chrome\testcafe_659_chrome63f4da9ddb0a0.js",
"meta": {},
"tests": [
{
"name": "Login",
"meta": {},
"errs": [],
"durationMs": 75801,
"unstable": false,
"screenshotPath": "C:\Users\vm-be\Tests\659\ecole-blot\chrome\result\screenshots",
"skipped": false
}
]
}
],
"warnings": []
}
Screenshots

The part of the DOM displayed on the screenshot of the website "ecole-blot.com"
Steps to Reproduce
Copy/Paste the same script code I shared and you should reproduce the issue
TestCafe version
2.3.1
Node.js version
9.5.0
Command-line arguments
testcafe chrome, firefox test.js
Browser name(s) and version(s)
No response
Platform(s) and version(s)
Windows 10
Other
No response

Chrome Version : 110.0.5481.104
Firefox Version : 110.0

Hi @Tolexia,
I managed to reproduce the issue. The problem isn't trivial, and I can't get you a fast solution. We will update this thread once we have any news.

Hi @Aleksey28 ,
It's been a while since last update, have you got any news about this issue ?

Hi @Tolexia,
We don't have any updates yet. We are working on the Nativae Automation Mode that should help you in the future. Currently, it doesn't work correctly in your example.


FlushHandler usage

@dyu,
I cannot find any usages, tests or documentation for io.protostuff.WriteSession.FlushHandler - can I drop it?

I used it to override the default flush behavior without having to extend
the class.
On Thursday, October 15, 2015, Kostiantyn Shchepanovskyi <
<EMAIL_ADDRESS>wrote:

@dyu https://github.com/dyu,
I cannot find any usages/documentation for
io.protostuff.WriteSession.FlushHandler
https://github.com/protostuff/protostuff/blob/67b83cb40a27f40e425273ef2348becbdab8310c/protostuff-api/src/main/java/io/protostuff/WriteSession.java#L30

can I drop it?

—
Reply to this email directly or view it on GitHub
https://github.com/protostuff/protostuff/issues/146.

--
When the cat is away, the mouse is alone.

David Yu


jax Resnet50 pretrain model  for  perceptual loss

Dear author:
Where can I get the jax Resnet50 pretrain model for perceptual loss? cause the resnet50 here is a little bit different from torch

Hi, did you solve that?


[feature] Add prettify xml layout file popup action.

Describe your idea
I found a github repo called android-xml-formatter that implements prettify for android layout files, and the current effect looks very good. I have also added this feature to jadx in my jadx fork:

However, the problem is that the open source license of this repo is GPL v3.0, so I can’t seem to make a PR. The possible solutions seem to be as follows:

Re-implement an xml prettier yourself, but this seems to be reinventing the wheel.
Avoid risks through jadx scripts. This need to allow users to add popup actions to the view of xml files in jadx script (BTW, is there a way to introduce local jar files into the script)

All in all, the prettified xml file greatly improves the look and feel, so I hope there is a proper way to add this function. 🥰

@cesaryuan yeah, taking someone else code like this is not good :cry:
But I think general XML formatters will also work well, something like here : https://stackoverflow.com/questions/31651710/formatting-xml-file-in-java (uses apache xerces)

Re-implement an xml prettier yourself, but this seems to be reinventing the wheel

Actually, as soon as jadx generate/decode most of XML files in APK, it is not hard to adjust output ... and option to put attributes on new line already exists in code but was disabled. I commit a change to enable it, so output is closer to what you archive with formatter lib. Please check :slightly_smiling_face:

allow users to add popup actions to the view of xml files in jadx script

Sure, I will add this, and I also need to add methods to change shown text but this slightly harder.

is there a way to introduce local jar files into the script?

Use this @file:DependsOn("/path/to/local.jar") (ref to https://github.com/skylot/jadx/issues/1912#issuecomment-1591503677)


Change model problem

Why do I use the Apose character model to replace the Vrm model in the project, and there are ghosts in the activity?

I don’t think I understand the problem?


Proposal: Go 2: Add Posit data type

Posits are gaining traction as a replacement and clean improvement over IEEE 754. They offer reasonable dynamic ranges with better accuracy / energy efficiency / speed on many applications. They will probably replace IEEE floats in 5 to 10 years in cpus / gpus / tpus. They have an official standard.
Adding (experimental) support for posits will position Go 2 in a better place for developers' consideration who want to get better results out of their mathematical calculations in AI, ML, HPC, weather forecasting, astrophysics etc. areas in addition to typical backend programming that Go is already good at. This will possibly enable Go's penetration into scientific computing.
At the moment there is no hw architecture that supports posits, but there are many sw and fpga implementations. Initially it could start like soft-floats. As hw support becomes available, people will reap the benefits. Most floating-point code is readily convertable to posits: just rename data types.
Adding posits is non-trivial and a BIG step. It has to be done incrementally. Also there will possibly be a transition period where hw platforms will have IEEE floats and / or posits.
These are the (incomplete) steps of this proposal:

add posit8, posit16, posit32, posit64 data types as per the standard
add conversions from/to other data types
add "printing/scanning posits" functionality to fmt library
add math/posit standard library with standard Sine/Tan etc. (posit32)
add cxposit32, cxposit64, cxposit128 complex number data types
add math/cmplx/cxposit standard library (cxposit64)

There is a lot to do, so when hw support arrives, Go 2 will be ready to deliver ;)

This is interesting but it's not obvious to me that this is an area where Go needs to lead.  It would be painful if we added posits to the language and they didn't catch on.
I think the right first step is a third party package that implements them in a Go callable form, even though the normal operators would have to be implemented as methods.

Even apart from the risk of adding it to the language, as it stands, I'm not sure that the posit standard is a drop-in replacement for floating-point as the paper claims. The fact that there are no signed infinities will break calculations that depend on that property.
More importantly, the fact that the standard doesn't specify a NaN value means that errors like 0.0 / 0.0 have to be signaled separately. Errors cannot quietly propagate through calculations like with qNaNs, so in Go that means either panicking or returning an error.
I would definitely want to try a library implementation like Ian mentioned, since there is no rush to preemptively support a datatype even before the hardware catches up.

Posit does have a NaR (not a real number) value that represents IEEE NaN, 0/0, ±inf, etc.
There is a comprehensive analysis here, also comparing the two.

Another piece, for balance (not by the author of posit, but by a leading numerics group).
https://hal.inria.fr/hal-01959581v3/document
from the conclusion:
"When posits are better than floats of the same size, they provide one or two extra digits of accuracy [19]. When they are worse than floats, the degradation of accuracy can be arbitrarily large. This simple observation should prevent us from rushing to replace all the floats with posits."

True, that is a fundamental feature of posits. They provide better accuracy for typical numbers, and worse accuracy for very large/small magnitude numbers.

Posit does have a NaR (not a real number) value that represents IEEE NaN, 0/0, ±inf, etc.

Interesting. It seems Gustafson justifies the NaR by arguing that

As with nonstandard rounding modes, a need to distinguish underflow, overflow, and NaN is generally an indication that an application is still in development and not yet ready for production use.

I'm not sure how often this principle is respected in practice, but this and the lack of subnormals greatly simplifies arithmetic. However, this proposal should either be put on hold or declined, since we should first experiment outside of library before moving forward. Further discussion should probably be on a mailing list.

Why posits rather than, say, intervals or the more interval-like valids?

From IEEE floats to interval arithmetic is probably too much to swallow for general community, so posits are the intended replacement by its designers, I think.

Hrm. I'm not sure why they would expect two breaking ABI (and semantic) changes to be more acceptable than one change to the more desirable end state.

I didn't get what you mean, was it for another issue?

No, I mean that I don't see the point in adding posits and getting folks to migrate if there is something better — perhaps interval-based — just over the horizon.

Here authors describe the unum evolution, posits are the 3rd generation and their proposed replacement for IEEE 754.

http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf
Pretty comprehensive read on the ins-and-outs of posits along with comparisons to IEEE-754.

I have a semi-performant posit library over at https://gitlab.com/amfiremage/gosit. This, of course, performs nowhere as close as hardware floating points from the standard library, but most operations are reasonably fast compared to rusts implementation of soft-posit. Only the basic bath operations (*,/,+,-,sqrt), floor, and round (but no ceil) are implemented. No 64 bit posits are supported, since some operations would require 128 bit ints.
Since people asked for a third-party library first, I thought I would link mine. It is fuzzed against softposit-rs, and even found some bugs in their implementation. As long as the application can do with these basic operators, anyone can test this out in their application. Just dont expect a performance improvement. Maybe when you are heavily band-width limited and you can use 32 bits instead of 64, but that's probably rare.

No, I mean that I don't see the point in adding posits and getting folks to migrate if there is something better — perhaps interval-based — just over the horizon.

Interval algorithmic is not fundamentally better, it is more expensive and takes more time. It can also often give you one single answer, so things like ordering, cant really be defined. And besides, if you have interval algorithmic, you need a format for the min/max. With valids this would be posits, you need posits to have valids. Not exposing them to the users is something I would be against.

From the framing of this issue it sounds to me that the question is not whether this change would be 'breaking' as some suggest. The issue suggests adding new types and not replacing floats (my understanding). I'd imagine any package with posit64 as an identifier would benefit greatly from a built-in. 🙂
Now that we have 'gosits' it is a good time to start playing around with them and test how they fare in action and keep a lookout for posit movements in the hw world.

Here is the new posit standard, one important simplification is es=2 always.


KNOX-1828 Fix Websocket Message Size

Resolves issue with Zeppelin and websocket messages being capped at 65,536 bytes.
(It is very important that you created an Apache Knox JIRA for this change and that the PR title/commit message includes the Apache Knox JIRA ID!)
What changes were proposed in this pull request?
Set websocket container max text and binary message sizes to Integer.MAX_VALUE.
How was this patch tested?
(Please explain how this patch was tested. For instance: running automated unit/integration tests, manual tests. Please write down your test steps as detailed as possible)
Create workbook in zeppelin that returns more than 65,536 bytes of data. I used a sql query from Phoenix but anything that makes a big message should work.
After proxying through Knox page never completes loading and Knox spams error logs with message too large.
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Knox Contributing Process before opening a pull request.

@moresandeep would appreciate your thoughts on this.

@moresandeep Changing that won't set it for the container as far as I can tell because it's not being created by ProxyWebSocketAdapter(). That would fix the backend though.

@moresandeep That will fix the backendsession but to fix the container I'll have to explicity cast it ClientContainer and modify the policy because ContainerProvider.getWebSocketContainer() and the Jetty code behind it sets the defaults.

@moresandeep That will fix the backendsession but to fix the container I'll have to explicity cast it ClientContainer and modify the policy because ContainerProvider.getWebSocketContainer() and the Jetty code behind it sets the defaults.

Sorry, I did not get it, what I mean is this, in the ProxyWebSocketAdapter class, pass a map of gateway config variables, something like

public ProxyWebSocketAdapter(final URI backend, final ExecutorService pool, final ClientEndpointConfig clientConfig, final Map config) {
    super();
    this.backend = backend;
    this.pool = pool;
    this.clientConfig = clientConfig;
    this.gatewayConfig = config;
  }

then in public void onWebSocketConnect(final Session frontEndSession)
you can have
container.setAsyncSendTimeout(gatewayConfig.get(DEFAULT_WEBSOCKET_MAX_TEXT_MESSAGE_BUFFER_SIZE));
.....

@moresandeep updated ProxyWebSocketAdapter to copy configuration from front end session. There a couple of ways to do this and this seemed like the least amount of change.

Not completely sure how to do a unit test for this since we'd have to have a websocket endpoint to talk to. I'll look at the other unit tests for the websocket stuff for ideas.

Squashed and pushed, modified existing test case to include boundary checking around the defaults. We now verify that messages under the limit work, messages over the default limit but under the specified limit work and that messages over the limit fail. I'm able to run tests on my side so I'm not sure why the previous build was failing.

Travis is unhappy...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project gateway-server: Error resolving project artifact: Could not transfer artifact commonj.sdo:commonj.sdo:pom:2.1.1.v201112051852 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Temporary failure in name resolution for project commonj.sdo:commonj.sdo:jar:2.1.1.v201112051852: Unknown host repo.maven.apache.org: Temporary failure in name resolution -> [Help 1]

@shawnweeks I restarted the JDK 8 travis job since it was a network failure. For future reference, for any travis job if you close and then reopen the PR, the check jobs will run again. (I think its overkill but it seems to be the only way to retrigger the jobs)

@risdenk I'll go and fix the permissions. Normally I'm either working out of WSL/Ubuntu or OSX but I was having trouble getting everything rebased yesterday.


update keeper default spec

associated PR https://github.com/smartcontractkit/chainlink/pull/6577

Why did you delete VRFV2TxPipelineSpec, VRFV2JobSpec and BlockhashStoreJobSpec ? These job specs are used in tests

Why did you delete VRFV2TxPipelineSpec, VRFV2JobSpec and BlockhashStoreJobSpec ? These job specs are used in tests

wow idk how that happened. maybe when i rebased from an old branch. ill fix that


Use a CSS Class to Style an Element

Challenge Use a CSS Class to Style an Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 OPR/41.0.2353.69.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

 CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

You need to create a class with name red-text instead of writing h2 in style tag.

@jay3li take look at what @ambatshri has suggested for some help. If you get stuck or have questions with a challenge in the future, please first ask questions to the Help Room. Happy coding!


Missed in VUI writer

In accordance with the ISO/IEC 23002-7 standard, if the vui_aspect_ratio_info_present_flag in VUI Syntax is true, the vui_aspect_ratio_constant_flag should be transmitted. However, looking at the current code, this parameter seems to be missing.

Indeed, thank you.


Switching from a workspace with a full screen app to an empty one does not redraw the screen

(At least when the pointer is not moved after switching to the workspace with the full-screen app and until the pointer is moved).
I had this in mpv with the opengl-hq/x11 backend (only when the video is paused).
Steps to reproduce:
1) Open fullscreen mpv in a workspace
2) Stop moving your pointer
2) Switch from another non-empty (?) workspace (don't move your pointer yet) to the mpv workspace
4) Switch to an empty workspace
..nothing happens..
5) Move your pointer
6) The screen is updated!

Pause fullscreen mpv
Switch to another empty workspace
...Nothing happens
Move your pointer
The screen is updated

Unable to reproduce.

I'm not able to reproduce this either.

Unable to reproduce in recent head neither.


Add cmake install rule for the sv-bugpoint binary

This makes sv-bugpoint a little easier to install and package.
I have sv-bugpoint packaged in for nix in https://github.com/lowRISC/lowrisc-nix/pull/69

Thanks!


Running tests in threads to avoid issues due to memory leaks

Description
Running detectors in pool to avoid issues due to memory leaks
Related Issue

Type of Change

[ ] 📚 Examples / docs / tutorials / dependencies update
[x] 🔧 Bug fix (non-breaking change which fixes an issue)
[ ] 🥂 Improvement (non-breaking change which improves an existing feature)
[ ] 🚀 New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🔐 Security fix

After lot of tests I decided to use dill to serialize function executed in pools (it is more consistent that pickle since it handle lambas, ... that we use in Models, Datasets and Issues).
I did it in test level because hooks are not pickables.
The issue is that bert model use a lot of memory and is not released, I could not clean it manually with neither torch.cuda.empty_cache() nor with tock.no_grad():. We will probably need to fix the issue in worker by running tasks in thread pool

After lot of tests I decided to use dill to serialize function executed in pools (it is more consistent that pickle since it handle lambas, ... that we use in Models, Datasets and Issues).
I did it in test level because hooks are not pickables.
The issue is that bert model use a lot of memory and is not released, I could not clean it manually with neither torch.cuda.empty_cache() nor with tock.no_grad():. We will probably need to fix the issue in worker by running tasks in thread pool

It's a bit of a shame to have to change each test one by one.
Nice work with dill, will check if I can have another way to avoid thoses changed

After lot of tests I decided to use dill to serialize function executed in pools (it is more consistent that pickle since it handle lambas, ... that we use in Models, Datasets and Issues).
I did it in test level because hooks are not pickables.
The issue is that bert model use a lot of memory and is not released, I could not clean it manually with neither torch.cuda.empty_cache() nor with tock.no_grad():. We will probably need to fix the issue in worker by running tasks in thread pool

It's a bit of a shame to have to change each test one by one. Nice work with dill, will check if I can have another way to avoid thoses changed

I tried with adding an decorator to the tests to automatically wrap but it mess up with the pytest framework

done in https://github.com/Giskard-AI/giskard/pull/1640


Feat: add Fixture list & Bug: ckeditor

From admin not view the ckeditor but front end working
Fixture list added with table

I have realized too late due to my other works, commits looking fine to me gj.

I have realized too late due to my other works, commits looking fine to me gj.

Thank u so much! i appreciate it!


Properly parse json objects

This pull request adds support for json objects in the csv file. They are properly parsed now.

Hi @bartwalczak
Thanks for your contribution, can you elaborate on that and show me an example?

I was attempting to convert logs exported from kibana as csv to json, and ran into several issues with deeply nested json objects not being properly interpreted.
Here's an example:
"@timestamp","msg","host_ip","level","subject","origin","trigger","type","content","tags","timestamp"
"""2019-03-06T18:34:40.795+0000""","""CIS report""","""""","""info""","""internal workings""","""agent/cis""","""report""","""http-bulk""","{""assessment_date"":""03/06/2019 10:33:42"",""target"":""thinktank"",""database_host"":""N/A"",""database_name"":""N/A"",""benchmark_version"":""1.0.0"",""benchmark_id"":""xccdf_org.cisecurity.benchmarks_benchmark_1.0.0_CIS_MIT_Kerberos_1.10_Benchmark"",""benchmark_name"":""CIS MIT Kerberos 1.10 Benchmark"",""benchmark_dup_id"":""xccdf_org.cisecurity.benchmarks_benchmark_1.0.0_CIS_MIT_Kerberos_1.10_Benchmark"",""profile"":""KDC with DB2 Database"",""profile_id"":""xccdf_org.cisecurity.benchmarks_profile_KDC_with_DB2_Database"",""rule_id"":""xccdf_org.cisecurity.benchmarks_rule_2.4.3_Secure_the_administrative_server_log_location_admin_server"",""rule_section"":""2.4.3"",""rule_title"":""Secure the administrative server log location (admin_server)"",""result"":""pass"",""cceid"":""CCE-NONE""}","[""_logz_http_bulk_json_8070""]","""2019-03-06T10:33:47.633862905-08:00"""
"""2019-03-06T18:34:40.795+0000""","""CIS report""","""""","""info""","""internal workings""","""agent/cis""","""report""","""http-bulk""","{""assessment_date"":""03/06/2019 10:33:42"",""target"":""thinktank"",""database_host"":""N/A"",""database_name"":""N/A"",""benchmark_version"":""1.0.0"",""benchmark_id"":""xccdf_org.cisecurity.benchmarks_benchmark_1.0.0_CIS_MIT_Kerberos_1.10_Benchmark"",""benchmark_name"":""CIS MIT Kerberos 1.10 Benchmark"",""benchmark_dup_id"":""xccdf_org.cisecurity.benchmarks_benchmark_1.0.0_CIS_MIT_Kerberos_1.10_Benchmark"",""profile"":""KDC with DB2 Database"",""profile_id"":""xccdf_org.cisecurity.benchmarks_profile_KDC_with_DB2_Database"",""rule_id"":""xccdf_org.cisecurity.benchmarks_rule_2.2.2_Secure_the_kadmin_keytab__admin_keytab"",""rule_section"":""2.2.2"",""rule_title"":""Secure the kadmin keytab (admin_keytab)"",""result"":""pass"",""cceid"":""CCE-NONE""}","[""_logz_http_bulk_json_8070""]","""2019-03-06T10:33:47.633850552-08:00"""


feat: support mtls

Requires the use of a certificate with Extended SAN enabled.
Currently the test certificate in the APISIX repository is not enabled.


[BEAM-80] Fix the Unexpected StateTag error in convertToBagTagInternal

It adds asBagTag() in KeyedCombiningValueWithContextStateTag,
and allows convertToBagTagInternal accept it.

Assignee: kennknowles
(we lack permission to set it on the pull request itself)

Please add a test.

R: @kennknowles

tests added, PTAL


Customizable badge labels

Overview / Summary
Badge labels should be able to be customized in the BadgeOverlay component (and parent components CatalogGridItem and CatalogGrid), for translations and when sites want different labels than the defaults:
const BADGE_LABELS = {
  BACKORDER: "Backorder",
  BESTSELLER: "Best Seller",
  LOW_QUANTITY: "Low Inventory",
  SOLD_OUT: "Sold out",
  SALE: "Sale"
};

:tada: This issue has been resolved in version 0.34.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Remove hardcode sleeps in kdumpcrash.py

There is a sleep10 seconds in kdump test case. Replace it to a timeout loop and check some condition. We need to avoid sleep a big number.

Fixed in https://github.com/microsoft/lisa/pull/2131/files#diff-48023663bed18c6c5b3e05d824af70a40b40543dfdff0208cff659e5b538fa15L323


Clean up inverse button, adding button control groups etc

Clean up of inverse button, replaced last btn-dark reference with btn-inverse
Make sure inverse utilizes the already defined variables in variables.less instead of raw colors
Adding examples to button groups of btn-inverse with dropdowns etc
Adding inverse inline label  label-inverse

@markdotto  Im thinking of adding alert-inverse as well but there is no default light gray alert so Im have second thoughts. A darker alert is good for growl like notifications.

Excellent! Resolved and added to 2.0.2-wip. Thanks!


Extract current day/month $$ from POW R2?

As in topic. I am curious if this kind of info is possible to obtain to put it on Dashboard.

eWeLink app shows this data?

Yes, "Usage" or something simmilar (I am not using english version), chart icon in bottom left corner when You enter POW. It shows chart + usage per every day and total usage along with prices for whole month. Price needs to be set in module settings, same place where You turn off network light, set LAN control etc.

Can you share it to my acc<EMAIL_ADDRESS>Sharing does not work for some users, I do not know how to fix it.

Done. This is how it looks like in case sharing won't work.

3.13 is total KWh used this month and 1.72 is price for that. I have price set to 0.55 per KWh.

I see this information. Later I will see what can be done

Added to 2.0.4
https://github.com/AlexxIT/SonoffLAN#sonoff-pow-power-consumption

Today consumpion: {{ state_attr('switch.sonoff_1000abcdef', 'consumption')[0] }}
10 days consumpion: {{ state_attr('switch.sonoff_1000abcdef', 'consumption')[:10]|sum }}

Thank You, You are true wizard, I never received support so fast.
Can You please advise how to put that data to entity? HA code is still mystery for me if.

1 day multiplied by 0.001 seems to have ideal values in HA:
{{ state_attr('switch.sonoff_10005bfa0c', 'consumption')[0] | multiply(0.001) | float }}
however 30 days multiplied by 0.001 still shows pretty big numbers, cant figure why
value_template: "{{ state_attr('switch.sonoff_100042c55d', 'consumption')[:30]|sum }}" | multiply(0.001) | float

Ok, got the issue. 3 digits reading are ok. When there is 4 digit reading there is aditional 0 put after 1st digit and therefore it becomes 5 digit reading, being 10times too big:

Check v2.0.5

Awesome. Works like a charm. Used | round(2) tho, because some of readings have 10digit precission, but I assume it may be hardware dependent.
Thanks anyway, now it is what I wanted ;)

Please share device wih 10 digits precission problem.

Done. Actually the precission is much bigger than 10 digits. Like 16 or so.

I updated version v2.0.5 with the same number. If HACS does not want to update - you need to do reinstall.

Thanks mate. Basically what You did here is saving me a lot of time with flashing Tasmota on all my Sonoff devices. Now I have what I wanted on stock firmware.
Shared some coffee with You, hope You can get a nice pizza and some beer for that amount. Thanks again. Hoping to meet more people like You during my Home Assistant adventure.


fix: add gambhirsharma

resolves #1298
Checklist for profile addition

[x] Name the PR fix: add <your-username>.
[x] You've added file named your-username.json in the profiles directory.
[x] You've linked the PR to the correct issue.

Can I close this issue?

@gambhirsharma no, don't close the issue as the PR needs to be merged first. After the PR has been merged, then a maintainer will close the issue. Hope that helps.


User creates a PR  Normal Mode - Significant CLA Not Signed_Apr2

Hi @brilliomsinterop, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla-ppe.dotnetfoundation.org.

TTYL, DNFBOT;


[Bug]: Issue installing Coolify 4.0.0-beta.373 on Ubuntu 24.04

Error Message and Logs
I encountered an issue while trying to install Coolify 4.0.0-beta.373 on Ubuntu 24.04. The installation stops unexpectedly at step 9 after displaying the joke. The terminal output ends with a hash-like string, with no further progress or clear error message.
Algorithm: A word used by programmers when they don't want to explain how their code works.
d713574e9603d45c65668ddea8cbeda2acd9293576e8a6e25dc826e6ac2b9b6e

Steps to Reproduce

On an Ubuntu 24.04 system, run the following commands:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

Observe the output during the installation process. The script halts after step 9, and the terminal displays the following:

Algorithm: A word used by programmers when they don't want to explain how their code works.
d713574e9603d45c65668ddea8cbeda2acd9293576e8a6e25dc826e6ac2b9b6e

Expected Behavior
The installation process should proceed without interruption and complete successfully.
Actual Behavior
The installation halts after displaying a random string, with no additional logs or indications of failure.
Environment

Operating System: Ubuntu 24.04
Docker Version: 27.0
Coolify Version: 4.0.0-beta.373
Helper Version: 1.0.4
Realtime Version: 1.0.5

Additional Information
The issue persists even when using the alternate installation method:
git clone https://github.com/coollabsio/coolify.git
cd coolify/scripts
./install.sh

Example Repository URL
No response
Coolify Version
4.0.0-beta.373
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04
Additional Information

Got the same issue on Debian 12
VPS hosted by OVH (8 cores, 16GB RAM, 320GB SSD)

@ldesomer can you run
docker run -it ubuntu bash

@djsisson thanks for the quick reply, below is the response.
Unable to find image 'ubuntu:latest' locally
docker: Error response from daemon: toomanyrequests: Too Many Requests (HAP429).

Indeed, I seem to have exceeded the rate limit!
"Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    28    0    28    0     0     98      0 --:--:-- --:--:-- --:--:--    98
jq: parse error: Invalid numeric literal at line 1, column 4

I'll try a fresh install after creating an account on docker hub and keep you updated!

@ldesomer after creating you will need to run docker login

Still have an issue.
docker login -u ldesomer
Password:
Error response from daemon: login attempt to https://registry-1.docker.io/v2/ failed with status: 429 Too Many Requests

@ldesomer  try
sudo systemctl restart docker.socket docker.service

It was still not working.
The only workaround I found was to disable IPv6.
sudo  nano /etc/sysctl.conf

Adding
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Then
sudo sysctl -p

I know the issue isn't on Coolify side but I'd great to add a word about IPv6 issue with Docker in the documentation!

@ldesomer But your server had an Ipv4 address, right, because at the moment the installer pulls from ghrc.io, which does not support Ipv6 only?

so... I had the same issue using the quick installation. I tried the manual one, and eventually I got a log saying port 6001 was already being used (which actually was because the server was being used to host a Soketi instance). We changed it to 6003 and the manual install worked. Might not be the same fix for you dear reader who is facing the same issue, but maybe the manual install will also tell you what is wrong.

@peaklabs-dev yes the server had an IPv4 address too but the only way to go through the installation was to deactivate IPv6. Closing the issue as I found a workaround.


Ability to reorder grouped terminal tabs

Given the following:

I wanna drag Ext - Build down on top of Core - Build to reorder them and I want the terminals to switch position in the split so Core - Build will be on the left.

Originally you could unsplit terminals by dragging them to the bottom, we felt it was a little confusing mixing rearranging groups with moving terminals out of groups as well. But this seems reasonable as a special case to rearrange within a group if both source and target share the same group.


Installation with pip fails

Good evening,
I am working on a project involving the long-time integration of an ODE, and the results you show definitely look very promising, but I cannot install the package ...
I am working on mac os X v12.4 with a M1 chip.
Python v3.10.8, pip v22.3.1, setuptools v65.5.1.
To really test only the install of numbalsoda and remove all possible side effects from pre-installed packages, I put myself in a new virtualenv.
🔴  I am getting the following error when doing pip install numbalsoda:
pip install numbalsoda
Collecting numbalsoda
  Downloading numbalsoda-0.3.4.tar.gz (241 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 241.3/241.3 kB 2.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting numpy
  Downloading numpy-1.23.5-cp310-cp310-macosx_11_0_arm64.whl (13.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.4/13.4 MB 9.5 MB/s eta 0:00:00
Collecting numba
  Downloading numba-0.56.4-cp310-cp310-macosx_11_0_arm64.whl (2.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 9.4 MB/s eta 0:00:00
Requirement already satisfied: setuptools in ./py3env/lib/python3.10/site-packages (from numba->numbalsoda) (65.5.1)
Collecting llvmlite<0.40,>=0.39.0dev0
  Downloading llvmlite-0.39.1-cp310-cp310-macosx_11_0_arm64.whl (23.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.1/23.1 MB 10.3 MB/s eta 0:00:00
Building wheels for collected packages: numbalsoda
  Building wheel for numbalsoda (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for numbalsoda (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [73 lines of output]
      /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/setuptools/dist.py:770: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)

      --------------------------------------------------------------------------------
      -- Trying "Ninja" generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      -- The C compiler identification is AppleClang <IP_ADDRESS>60021
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is AppleClang <IP_ADDRESS>60021
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57/_cmake_test_compile/build
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying "Ninja" generator - success
      --------------------------------------------------------------------------------

      Configuring Project
        Working directory:
          /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57/_skbuild/macosx-12.0-arm64-3.10/cmake-build
        Command:
          cmake /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57/_skbuild/macosx-12.0-arm64-3.10/cmake-install -DPYTHON_VERSION_STRING:STRING=3.10.8 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/Users/tbridel/Documents/1-CODES/py3env/bin/python<EMAIL_ADDRESS><EMAIL_ADDRESS>-DPython_EXECUTABLE:PATH=/Users/tbridel/Documents/1-CODES/py3env/bin/python -DPython_ROOT_DIR:PATH=/Users/tbridel/Documents/1-CODES/py3env<EMAIL_ADDRESS>-DPython_FIND_REGISTRY:STRING=NEVER -DPython3_EXECUTABLE:PATH=/Users/tbridel/Documents/1-CODES/py3env/bin/python -DPython3_ROOT_DIR:PATH=/Users/tbridel/Documents/1-CODES/py3env<EMAIL_ADDRESS>-DPython3_FIND_REGISTRY:STRING=NEVER -DCMAKE_MAKE_PROGRAM:FILEPATH=/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/ninja/data/bin/ninja -DSKBUILD=ON -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.0 -DCMAKE_OSX_ARCHITECTURES:STRING=arm64

      CMake Error at /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineFortranCompiler.cmake:33 (message):
        Could not find compiler set in environment variable FC:

        /usr/local/bin/gfortran.
      Call Stack (most recent call first):
        CMakeLists.txt:3 (project)

      CMake Error: CMAKE_Fortran_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
      See also "/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57/_skbuild/macosx-12.0-arm64-3.10/cmake-build/CMakeFiles/CMakeOutput.log".
      Traceback (most recent call last):
        File "/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 632, in setup
          env = cmkr.configure(
        File "/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/skbuild/cmaker.py", line 334, in configure
          raise SKBuildError(

      An error occurred while configuring with CMake.
        Command:
          cmake /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57/_skbuild/macosx-12.0-arm64-3.10/cmake-install -DPYTHON_VERSION_STRING:STRING=3.10.8 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/Users/tbridel/Documents/1-CODES/py3env/bin/python<EMAIL_ADDRESS><EMAIL_ADDRESS>-DPython_EXECUTABLE:PATH=/Users/tbridel/Documents/1-CODES/py3env/bin/python -DPython_ROOT_DIR:PATH=/Users/tbridel/Documents/1-CODES/py3env<EMAIL_ADDRESS>-DPython_FIND_REGISTRY:STRING=NEVER -DPython3_EXECUTABLE:PATH=/Users/tbridel/Documents/1-CODES/py3env/bin/python -DPython3_ROOT_DIR:PATH=/Users/tbridel/Documents/1-CODES/py3env<EMAIL_ADDRESS>-DPython3_FIND_REGISTRY:STRING=NEVER -DCMAKE_MAKE_PROGRAM:FILEPATH=/private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-build-env-tb3aezox/overlay/lib/python3.10/site-packages/ninja/data/bin/ninja -DSKBUILD=ON -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.0 -DCMAKE_OSX_ARCHITECTURES:STRING=arm64
        Source directory:
          /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57
        Working directory:
          /private/var/folders/8_/vb42yyg57lj90txl41w_m4ph0000gn/T/pip-install-s6p_6_f6/numbalsoda_aa6a60982d73407590bdf13f5c02eb57/_skbuild/macosx-12.0-arm64-3.10/cmake-build
      Please see CMake's output for more information.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numbalsoda
Failed to build numbalsoda
ERROR: Could not build wheels for numbalsoda, which is required to install pyproject.toml-based projects

🔴  This error also occurs with numbalsoda v0.3.3.
🟢  The pip install runs fine for numbalsoda v0.2.1 however.
Could you please advise @Nicholaswogan ?
Thank you very much in advance !
Best,
T. Bridel-Bertomeu

Hi! Can you try conda install -c conda-forge numbalsoda instead?

Hey !
Thanks for the super fast answer !!
I am sorry I do not have anaconda installed on my machine ... :(
But ! Posting here made me realize that the error CMake is throwing is not that bad actually.
I could do
FC=/opt/homebrew/bin/gfortran pip install numbalsoda==0.3.4

and the install went through successfully.
So it is all good, sorry for the hurried issue report ! Feel free to close :)
And thanks for your reactivity again !

P.S. : maybe you could consider adding a bit of logic to the CMakeLists to automatically locate the fortran compiler, even on a custom brew install ?

I think CMake should be able to find fortran compilers in most cases. I'm not sure why yours was not found?

Hey Nicholas,
It was a conflict with an old $FC env variable set to the wrong path for gfortran (from before Homebrew refactor). So it's all good, thanks for the support ! 🙏


Keep using nose2 or change to pytest?

As the title says.
I want to see what everyone thinks about this.
And I'll volunteer myself to do the heavy-lifting of rewriting all Test Cases into pytest if the community chooses too change.

if you need help  i would be pleased to help :)

Personally I'm a pytest fan

Not that I have any say anymore, but I've converted my other projects to pytest.

Pytest is great

Pytest is great (but the conversion takes some time)

Funnily enough, I have a branch in which I rewrote nearly the whole test suite implementing DRY principles... and now it looks almost like a pytest-based test suite 😅

I find it amusing that converting to pytest actually increases the number of lines for the test cases. (Still on my own repo, though, haven't created a PR at all).
Maybe just not optimized enough, but at the moment I'm just aiming for a 1:1 test coverage. Optimization can come later...
@pkalemba I'll give you a nudge when my -- admittedly, a bit rough -- conversion has finished.

Just an update:
I hit a probable bug with pytest.
So I was converting test_smtp.py to pytest ... and accidentally wrote the wrong value in the assert, resulting in a test that fails ... and hangs. Correcting the value allows pytest to complete without issues.
But that got me thinking: If we made changes that caused a test to fail, the test shouldn't have hung; it should say "test failed" and ended gracefully.
If you are interested in hunting down the cause of this bug, here's my ticket on pytest's issue tracker:
https://github.com/pytest-dev/pytest/issues/7989

Okay I'm at a loss here...
Take a look at this minimal test case:
import asyncio
import unittest

from aiosmtpd.controller import Controller
from aiosmtpd.handlers import Sink
from aiosmtpd.smtp import SMTP as Server
from smtplib import SMTP

def authenticator(mechanism, login, password):
    if login and login.decode() == 'goodlogin':
        return True
    else:
        return False

class DecodingController(Controller):
    def factory(self):
        return Server(self.handler, decode_data=True, enable_SMTPUTF8=True,
                      auth_require_tls=False, auth_callback=authenticator)

class TestSMTP(unittest.TestCase):
    def setUp(self):
        old_loop = asyncio.get_event_loop()
        new_loop = asyncio.new_event_loop()
        asyncio.set_event_loop(new_loop)
        controller = DecodingController(Sink, loop=new_loop)
        controller.start()

        def cleanup():
            print("###CLEANING UP###")
            controller.stop()
            new_loop.stop()
            asyncio.set_event_loop(old_loop)

        self.addCleanup(controller.stop)
        self.address = (controller.hostname, controller.port)

    def test_hanging(self):
        with SMTP(*self.address) as client:
            code, _ = client.helo("example.com")
            self.assertEqual(code, 250)
            assert code == 250
            print("###SENDING_MAIL###")
            code, _ = client.docmd("MAIL FROM<EMAIL_ADDRESS>            self.assertEqual(code, 250)
            print("###SENDING_RCPT###")
            code, _ = client.docmd("RCPT TO<EMAIL_ADDRESS>            self.assertEqual(code, 250)
            print("###SENDING_DATA###")
            code, _ = client.docmd("DATA")
            self.assertEqual(code, 250)  # We purposefully fail here
            client.close()
            print("###CLOSING_UP###")

Even running the above using Unittest, I'm getting stuck at the line marked # We purposefully fail here.
Removing that line -- or changing 250 to 354 in that line -- finishes successfuly. Both on Unittest and on Pytest.
I'm suspicious that the problem is in how Controller work ...
Controller is sus

After some thinking ... I'm seriously planning on taking out the Controller middleman.
After all, test_smtp.py is (mostly) testing the aiosmtpd.smtp.SMTP class, i.e., SMTP behavior over TCP.
We can -- and should! -- test Controller behavior separately.
Let me see what I can do...

Update: I barged through the hanging behavior by explicitly closing the controller for that one test case.
    def test_data_abortconn(self, decoding_controller, client):
        controller = decoding_controller
        self._helo(client)
        resp = client.docmd("MAIL FROM<EMAIL_ADDRESS>        assert resp == (250, b"OK")
        code, _ = client.docmd("RCPT TO<EMAIL_ADDRESS>        assert resp == (250, b"OK")
        # Note: We NEED to manually stop the controller if we must abort while
        # in DATA phase. For reasons unclear, if we don't do that we'll hang
        # the test case should the assertion fail
        try:
            resp = client.docmd("DATA")
            assert resp == (354, b"End data with <CR><LF>.<CR><LF>")
        finally:
            controller.stop()

I will keep my eyes open for similar behavior in other test cases.

in my app created with aiosmtpd i created fixture which is yielding smtp client. As i understand your code you have a fixtrue "client" too. I cannot share my code, but here is a part:
`
@pytest.fixture()
def lmtp(request):
..
..
...
code, response = client.ehlo("example.com")
assert code == 250
assert response.split(b"\n")[0] == bytes(socket.getfqdn(), "utf-8")
yield client
client.quit()
controller.stop()
`

As i understand your code you have a fixtrue "client" too.

Yup. The client fixture returns an SMTP client.
There are lots of Controller & Handler combinations I have to separate the fixture for the SMTP client and the Controller+Handler.
In my snippet above, decoding_controller is defined as:
@pytest.fixture
def decoding_controller(request) -> DecodingController:
    handler = _get_handler(request)
    controller = DecodingController(handler)
    controller.start()
    #
    yield controller
    #
    # Some test cases need to .stop() the controller inside themselves
    # in such cases, we must suppress Controller's raise of AssertionError
    # because Controller doesn't like .stop() to be invoked more than once
    with suppress(AssertionError):
        controller.stop()

While _get_handler is a helper function:
def _get_handler(request, default=Sink):
    marker = request.node.get_closest_marker("handler_data")
    if marker:
        class_ = marker.kwargs.get("class_", Sink)
    else:
        class_ = Sink
    return class_()

request and marker is used like so:
    @pytest.mark.handler_data(class_=ReceivingHandler)
    def test_bad_encodings(self, decoding_controller, client):
        handler: ReceivingHandler = decoding_controller.handler
        self._helo(client)
        mail_from =<EMAIL_ADDRESS>        mail_to =<EMAIL_ADDRESS>        self._ehlo(client, "test")
        client.send(b"MAIL FROM:" + mail_from + b"\r\n")
        assert client.getreply() == (250, b"OK")
        client.send(b"RCPT TO:" + mail_to + b"\r\n")
        assert client.getreply() == (250, b"OK")
        client.data("Test mail")
        assert len(handler.box) == 1
        envelope = handler.box[0]
        mail_from2 = envelope.mail_from.encode("utf-8", errors="surrogateescape")
        assert mail_from2 == mail_from
        mail_to2 = envelope.rcpt_tos[0].encode("utf-8", errors="surrogateescape")
        assert mail_to2 == mail_to

(I have no idea why the original first did a HELO then followed with an EHLO, though.)

Btw, I've finished converting test_handlers.py, test_lmtp.py, test_main.py, and test_smtp.py (the last one's a doozy...)
The work in progress (still at least a week away from PR-able) is here: https://github.com/pepoluan/aiosmtpd/tree/pytest_based

Not that I have any say anymore, but I've converted my other projects to pytest.

Your opinion still matters to a lot of people, because you have shown that your advice are still as good as ever. :)

Aw, thanks PEB!

It had been a titanic effort, but I'm about 95-98% complete.
Would appreciate it if someone can glance at the code and provide some suggestions (if any) as I finish up the loose ends. (Which is why I'm still marking the PR as "draft")

AND IT'S DONE.
Along the way:

Rework tox strategy
Total Upgrade of the Documentation
(Possibly) Fixed the "Intermittent Coverage Failure" gremlin for good
Implement GitHub Actions (though this one gets pushed directly to master, actually, and pulled back to my branch)
And probably lots of other things that I no longer recall ...

A total of 112 commits spanning 4'000+ lines ... gosh, it had been an adventure!
Code is ready for review. No major changes envisioned while it's undergoing review.

Seems like moving over to pytest will prevent issues such as #220 from happening... 🤨
(#220 is effectively a "wontfix", though. But the situation that led to that issue, we can prevent with migration to pytest.)

A bit of an update:
Due to my recent 10K* towards 1.2.3, there had been LOTS of new unit tests, meaning my pytest-based branch is now severely behind master.
It's NOT being abandoned, though. I'll start updating it again as soon as we reach stability towards 1.2.3.
That said, for 1.2.3 I think I'll create a PR that changes the unit test runner from nose2 to pytest. I just tried it out on a whim, and it seems to work well.
I'll play around with it some more, before creating a PR proper.

Thanks for this great work!


Update create-dns-records-at-google-domains.md

https://github.com/MicrosoftDocs/OfficeDocs-O365ITPro/issues/101
Corrected step 4 of instructions of "Add a TXT record for verification"

@pebaum


this fork is not compatible with original library since it uses uncontrolled input

breaking changes:
https://github.com/andriyor/react-currency-input/commit/30f5b6aea3eb9056c500cdcd9219d5d219917a1c
and such example from doc doesn't have sense since passing and update value don't take any effect
  <CurrencyInput value={this.state.amount} onChangeEvent={this.handleChange}/>

Hello!  I don't think I understand.  I have an unchanged component in my original application that works, as far as I can tell, with either version, but does not experience the Android related problems that the original had.
Are you saying that your change corrects the issue?  If so, please do a pull request.
Or please try to help me understand what the issue is.  Thank you!

Hi, its not my changes, i just pointed to your changes in my fork
Here is example with react-currency-input:
https://codesandbox.io/p/sandbox/w7kwkm
The same example with @ericblade/react-currency-input
https://codesandbox.io/p/sandbox/6tt69g

Thank you for the demonstration!  I do see what's not working there, next time I have some time to work on this, I'll add a test for it and see if I can get it working.
That definitely helps illustrate the problem, which will really help me figure it out, since this isn't in my normal workflow.