OpenBazar Server not connecting to Mac

Brief Description:
Operating System (OS and version): OS X Yosemite 10.10.5  (for the store client)
Ubuntu 15.10 (GNU/Linux 4.2.0-27-generic x86_64)  (for the server)
OpenBazaar version: I just pulled the latest version 1
Reproducible (Always / Almost Always / Sometimes / Rarely / Couldn't Reproduce):
Always happens when I try to reconnect from the client after inputting my username and password
Steps to reproduce:

python2.7 -m pip install -r requirements.txt
python openbazaard.py start -d -a [my client ip went here]

Observed Behavior:
2016-04-07 01:14:25-0700 [MarketProtocol] [INFO] serving store listings to <IP_ADDRESS>:35530
2016-04-07 01:14:25-0700 [MarketProtocol] [INFO] serving store listings to <IP_ADDRESS>:18467
2016-04-07 01:14:50-0700 [MarketProtocol] [INFO] serving store listings to <IP_ADDRESS>:18467
2016-04-07 01:15:11-0700 [MarketProtocol] [INFO] serving user metadata to <IP_ADDRESS>:35530
2016-04-07 01:15:25-0700 [MarketProtocol] [INFO] serving store listings to <IP_ADDRESS>:35530
2016-04-07 01:16:09-0700 [MarketProtocol] [INFO] serving user metadata to <IP_ADDRESS>:18467
2016-04-07 01:16:13-0700 [ConnHandler] [INFO] connected to <IP_ADDRESS>:35073
2016-04-07 01:16:31-0700 [ConnHandler] [INFO] connected to <IP_ADDRESS>:18467
2016-04-07 01:16:43-0700 [ConnHandler] [INFO] connected to <IP_ADDRESS>:18467
2016-04-07 01:16:57-0700 [MarketProtocol] [INFO] serving user metadata to <IP_ADDRESS>:18467
##############then when I try to connect this happens from the client
Unhandled Error
Traceback (most recent call last):
File "/home/nick/.local/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
why = selectable.doRead()
---  ---
File "/home/nick/.local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 1074, in doRead
protocol.makeConnection(transport)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/protocols/policies.py", line 75, in makeConnection
self.wrappedProtocol.makeConnection(self)
exceptions.AttributeError: 'NoneType' object has no attribute 'makeConnection'
2016-04-07 01:18:06-0700 [txws.WebSocketFactory] Unhandled Error
Traceback (most recent call last):
File "/home/nick/.local/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
why = selectable.doRead()
---  ---
File "/home/nick/.local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 1074, in doRead
protocol.makeConnection(transport)
File "/home/nick/.local/lib/python2.7/site-packages/twisted/protocols/policies.py", line 75, in makeConnection
self.wrappedProtocol.makeConnection(self)
exceptions.AttributeError: 'NoneType' object has no attribute 'makeConnection'
2016-04-07 01:18:22-0700 [ConnHandler] [INFO] connection with <IP_ADDRESS>:37172 terminated
2016-04-07 01:18:22-0700 [ConnHandler] [INFO] connection with <IP_ADDRESS>:18467 terminated
Expected Behavior:
I expect to connect.
Additional info (links, images, etc go here):
followed this tutorial / guide
https://openbazaar.zendesk.com/hc/en-us/articles/207852873-Guide-to-Setting-up-OpenBazaar-Server-on-a-VPS
Thanks in Advance,
Nick T.

I had success with this edited Dockerfile https://github.com/grigio/docker-apps/blob/master/openbazaar-server/Dockerfile and it is also easier than the official docs

Thank you, that is exactly what I was looking for.  I will give it a try.

The docker file worked for getting all the dependencies, it was a lot simpler than the other route.  Also the twisted errors are gone.  So it seems my container on my UBUNTU  vps is running.
sudo docker run -e flags="-a <IP_ADDRESS>" 2a827e90721f
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
135a9e035cf9        2a827e90721f        "/bin/sh -c 'python o"   11 hours ago        Up 11 hours                             sad_thompson
I am new to docker, not sure if my run command above is correct for connecting to home computer.
The -a flag is for the ip of the client running on a different computer correct? The command I was running before docker was:
python openbazaard.py start -d -a <IP_ADDRESS>
The reason being I still cannot connect from my client on my home computer.  Will I need to set up dynamic dns on the home computer? As far as I know my home computer does not have a static ip (even though it does not change much) If anyone knows how to get through the Airport please let me know.

@hoffmabc <IP_ADDRESS> doesn't seem a local ip.. if it could change you should use something like no-ip.org or access to you OB server via a local static ip in your lan (like 192.168.1.x), but it will work only from inside your network.
Any path you choose it should be reachable like this:
curl -I http://<IP_ADDRESS>:18469                   ⏎
HTTP/1.1 404 Not Found
Date: Sun, 10 Apr 2016 18:38:07 GMT
Content-Length: 167
Content-Type: text/html; charset=utf-8
Server: TwistedWeb/16.1.0

Thanks- closing this issue since I got the OpenBazaar server working and now it is just a networking issue on my side.

Just an update, I just finally get my Mac client connected to OB running on my separate UBUBTU VPS.
I had to use docker version info below:
○ → docker -- version
Client:
Version:      1.11.0
API version:  1.23
Go version:   go1.5.4
Git commit:   4dc5990
Built:        Wed Apr 13 18:38:59 2016
OS/Arch:      linux/amd64
○ → sudo docker ps -l
CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS                                             NAMES
f0f54e8005e9        6904aeb234bd        "/bin/sh -c 'python o"   About a minute ago   Up About a minute   <IP_ADDRESS>:18466-18470->18466-18470/tcp, 18469/udp   sharp_golick
##################
cd OpenBazaar-Server
sudo docker build .
############
Heres how I run
############
sudo docker run -i -p 18466-18470:18466-18470/tcp 6904aeb234bd
#############
VERY IMPORTANT:
The actual working docker file I used is at the link below.
https://hub.docker.com/r/hax10r88/openbazaar-server/
The docker file for this master repository did not work for me as of today. Please note the username and password are set (overridden) to default username "user" and password "pass" in this docker file.
FROM ubuntu:14.04
Examples
docker build -t observer .
docker run --rm -it -e flags="--help" observer
docker run -d --name observer -e flags="--testnet" observer
docker logs observer
RUN apt-get update
RUN apt-get install -y python-dev python-pip build-essential git libffi-dev libssl-dev
RUN pip install pyopenssl ndg-httpsclient pyasn1
RUN pip install --upgrade pip virtualenv
RUN git clone https://github.com/OpenBazaar/OpenBazaar-Server.git
WORKDIR /OpenBazaar-Server/
RUN pip install -r requirements.txt && pip install -r test_requirements.txt
RUN make
RUN adduser --disabled-password --gecos "" openbazaar
RUN chown -R openbazaar:openbazaar /OpenBazaar-Server
RUN mkdir /home/openbazaar/.openbazaar
RUN chown -R openbazaar:openbazaar /home/openbazaar/.openbazaar
USER openbazaar
customize your OpenBazaar server access
RUN sed -i -- 's/#USERNAME = username/USERNAME = user/g' ob.cfg
RUN sed -i -- 's/#PASSWORD = password/PASSWORD = pass/g' ob.cfg
EXPOSE 18469/udp 18466 18469 18470
CMD python openbazaard.py start -l debug -a <IP_ADDRESS> $flags


Linter text not rendered correctly in multiline errors.

Also raised here : https://github.com/atom-community/linter/issues/893#issuecomment-141956253 Fix needs to go there :rose:

Yes, sorry, I have realised that it's actually Linter problem not yours and forgot to close the issue :/


Streaming Data Interface

This PR adds streaming a set of methods to servicex that return streaming data:

Use the async generator pattern to return python data objects
Each data object contains a servicex filename and the type of data requested (awkward, pandas, root-file path, pandas file path, or minio-url)
The minio-url is new: that returns a URL that the user can use to access the data directly in the minio S3 store hosted by ServiceX.

@BenGalewsky - I checked it still "works", and added some doc info to the readme file. This contains all the streaming stuff - I need to get this cleared out of the way before tackling other things because of the way git works ("clearing the decks so-to-speak"). I'll give you till Monday afternoon to ask for a hold or approve, or I'm going to merge it with master so I can get onto the smaller stuff that is holding up others. :-) :-)


Facebook Login Autorefreshes and loses token

Description
When using Facebook login, the window that opens sends the message back to the Facebook login component. Using a very quickly captured screenshot I can confirm that this contains the 'status' variable (showing true) and the access token. However, this page (Facebook login component) then immediately refreshes, resulting in the token being lost and the line const result = JSON.parse(message.data); results in an undefined error.
Expected Behavior
The page should not refresh, the message should be parsed and the token sent to the facebookLogin function in the user service.
Current Behavior
Page refreshes and token is lost.
Steps to Reproduce
1.Build project as per tutorial
2. Verify code against Github repository
3. Run backend and client
4. Click Facebook Login on home screen, then the Login with Facebook button
5. Login to Facebook (if not already)

Basically turned out to be a typo in my code. Apologies for the unnecessary issue. Weirdly what compounded it for me was that I couldn't hit the breakpoint in my external auth controller (I would have expected the issue in question to result in a bad model state) but instead its as if the controller never got reached.

Sorry spoke to soon. The problem seems to be with this line:
var appAccessTokenResponse = await Client.GetStringAsync($"https://graph.facebook.com/oauth/access_token?client_id={_fbAuthSettings.AppId}&client_secret={_fbAuthSettings.AppSecret}&grant_type=client_credentials");
I've done some testing to ensure the url is getting translated correctly (which it is), but sending a get request to this url results in a 500 internal server error back from Facebook:
{
    "error": {
        "message": "An unknown error has occurred.",
        "type": "OAuthException",
        "code": 1,
        "fbtrace_id": "xxxx"
    }
}


Last update bf82529...82c99d0


Overriding Thread Controller(add custom logic)

Hi sorry for comment here don't know where to post my issue I have questions for how to override some methods of /api, in order to add logic and other validations for custom fields. Controller, in particular, is ThreadController I tried to do according to doc but it's not working
You can give me a starting point for this, I read the documentation for Symfony2 http://symfony.com/doc/2.3/cookbook/bundles/inheritance.html, but this doesn't work for this bundle. Thanks and sorry for bad English

Issue is not related to FOSCommentBundle, though you might get some answers at stackoverflow.


Add php xlswriter extension

Description

This PR allows to install php xlswriter extension do php-fpm,workspace and php-worker.
Motivation and Context

Use laradock and laravel for technical and to generate excel.
Types of Changes

[] Bug fix (non-breaking change which fixes an issue).
[x] New feature (non-breaking change which adds functionality).
[] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Definition of Done Checklist:

[] I've read the Contribution Guide.
[] I've updated the documentation. (refer to this for how to do so).
[x] I enjoyed my time contributing and making developer's life easier :)

The xlswriter github Url https://github.com/viest/php-ext-xlswriter

Also add value for .env on testing, example
sed -i -- 's/XLSWRITER=true/XLSWRITER=false/g' .env

https://github.com/laradock/laradock/blob/a70675007dd5da7097f46f118a84598c056d7311/.github/workflows/main-ci.yml#L29-L37


[tenplay] login now required

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] Searched the bugtracker for similar pull requests
[x] Read adding new extractor tutorial
[x] Read youtube-dl coding conventions and adjusted the code to meet them
[x] Covered the code with tests (note that PRs without tests will be REJECTED)
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Service now requires login (free account sign-up) to access videos. Fixes issue #28641.

Just want to say this patch is working v.well for me and it'd be great to see it merged soon.


The same restored terminal session can occur in multiple windows

Issue Type: Bug
Only tested via Windows 10

Open multiple windows each with a terminal
Run different commands in terminals
Close all windows via File -> Exit
Reopen vscode via the Start Menu

The first window has access to at least some, if not all, restored terminals in the other windows. Closing a terminal in the first windows, closes that instance of the terminal in the other window. When closing the terminal in the subsequent windows, it closes in the first.
 This means that if I ran foo in terminal 1 in windows 1 and bar in terminal 2 in windows 2, after restarting, e.g. updating to a new version, terminal 1 and terminal 2 could both have a command history showing that foo was run after bar.

try setting terminal.integrated.persistentSessionReviveProcess to never and let me know if that fixes the problem

Thank you for looking into this. I switched to never and it is now not restoring terminals. Is that not just turning off the feature rather?
I do like the restored terminals and plan to keep using it. It generally works fine, but there are some glitches. I haven't seen these issues recently. Although on the latest build setting terminal.integrated.persistentSessionReviveProcess back to onExit I just had an issue where the restored terminal didn't start properly, so I can't type a command in it. Should I create a new issue?

The cursor does change to a solid square, but doesn't respond to key presses. The PowerShell Integrated Console is a terminal that the Powershell extension creates when a Powershell script is in the active tab. They seem to fail to restore every time on every window with vscode insider 8d30d4d922dda917d22f05a81f2ab4fad7349779.

/duplicate #133542

I thought that I would just mention that the issues with the PowerShell Integrated Console terminals appear to be fixed in the latest version after killing the terminals created in the previous version. Thank you for all the work on this.


Fix torchvision_functional_tensor - test_perspective

Summary:
Test is broken: https://www.internalfb.com/intern/test/844424959297016?ref_report_id=0
The issue is that very few pixels may differ between the scripted version and the regular version for float16. As far as I can tell, those discrepancy can be quite large but they happen on very few pixels (less than .1%). Also, they seem to appear on pixels that have at least one coordinate in common with the startpoints or endoints. A wild guess of mine would be that the pixel  is black on one image (or whatever the background is) and a no-background pixel on the other, hence the large difference in values, but the actual source of difference may just be a minor floating difference.
Since the check is already quite robust and the equivalence between scripted and regular is already tested for non-batched entries, we simply avoid the check.
Reviewed By: fmassa
Differential Revision: D27794284

This is just to make sure CI is OK - I'll open a PR for master later


default evm version to paris [APE-1269]

What went wrong?
push0 rollout went bad, with many networks not supporting the latest evm version yet, possibly resulting in potentially broken deploys.
How can it be fixed?
instead of latest (shanghai), it would be better to default to paris unless explicitly overriden by a user who knows what they are doing.

I second this. See my discussion here.


Implement a retry capability when connecting to MongoDB

This allows configuration of a retry loop when connecting to Mongo. You can configure as follows:
module.exports = {
  db: 'mongodb://' + (process.env.DB_PORT_27017_TCP_ADDR || 'localhost') + '/mean-dev',
  dbOptions: {
    retry: {
      times: 5,
      interval: 1000
    }
  },
  ...

Options are per async.retry (interval is in ms). Default behavior is to not retry (i.e. current behavior).

This is a nice addition, thanks!


chore(main): release 1.0.0

:robot: I have created a release beep boop
1.0.0 (2024-07-26)
⚠ BREAKING CHANGES

dhis2: add caching for all GET requests (#46)

Features

dhis2: add caching for all GET requests (#46) (710fafb)

Bug Fixes

IASOClient: remove columns (#43) (8ce0a6d)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-toolbox/releases/tag/v1.0.0 :sunflower:


Force complex player vars to be untracked player vars

Sometimes it crashes if a tracked player var is something complex, like nested dicts that contain unserializable objects. Tracked player vars only make sense for simpler things like floats, strings, and ints, so if a player var comes in that's not one of those, change it.
Or, get rid of uvars and just make it so the event posting and monitoring only happens with simpler data types. Actually that's probably easier and better.

done


Appveyor builds slow/timing out

Appveyor run times have been consistently timing out.  Hitting an hour to compile and run tests even on that limited, virtualized hardware is no bueno.
Figure out and fix those builds.  It'd be great to figure out if it's something we directly did or if a dependency changed and is now slow.

Requisitioned a family member's laptop, got hung up on a libssh2 regression and needing to install VS2015 for ring.  Still working on this.

We're dead in the water with Appveyor builds.  They are failing regularly, being slow, running out of memory and our crate is only getting bigger.
I propose we trim Appveyor to build and test a selection of popular services instead the whole crate.  This could look like the entire Appveyor build script being cargo test --lib --features "dynamodb s3 sqs".
This will get us unstuck while we decide what a longer term plan is.


use zap-cli naming for the CLI executable

@jingteng25742 , don't forget you have to change names in apack.json file.

Note: https://github.com/project-chip/zap/pull/757

This PR is a subset of PR: https://github.com/project-chip/zap/pull/757
So I'm closing it.


python311Packages.evohome-async: 0.4.18 -> 0.4.19

Diff: https://github.com/zxdavb/evohome-async/compare/refs/tags/0.4.18...0.4.19
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 288095 run on x86_64-linux 1

4 packages built:

python311Packages.evohome-async
python311Packages.evohome-async.dist
python312Packages.evohome-async
python312Packages.evohome-async.dist


feat(price): Created getBchUsd() for bch-js

PR related to this trello task --> https://trello.com/c/mVd8gV1q

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update Router to serve HTTP/2 traffic

Add integration test.
We were not able to get a router/router test working because making
HTTP/2 requests to the test Server resulted in broken pipes. We believe
this is due to differences in the test Server setup and the main.go
setup used in the integration tests. This will require additional
investigation.
Add router/router test to confirm that Gorouter can still server
HTTP/1.1 traffic
Update protocol checking middleware to accept HTTP/2

[#177586561]
[cloudfoundry/routing-release#200]
Co-authored-by: Weyman Fung<EMAIL_ADDRESS>Co-authored-by: Greg Cobb<EMAIL_ADDRESS>

@ameowlia  is this good to go?

@ameowlia is this PR good to go?

Apologizes for the delay. Github comments are not the best way to ping me 😅
Acceptance Steps

Set enable_http2 to true
Deployed this code
Built this h2 go client with GOOS=linux
bosh scped it to the router VM
Sent h2 traffic directly to the gorouter for an app
Saw the response was h2
Set enable_http2 to false and redeploy
Sent h2 traffic directly to the gorouter for an app
Saw it fail to connect with h2


Problem with computation of drake-sill

If the subdomain of mpi is smaller than the sill, the eastern boundary of that subdomain. This issue first appeared in nemo_4.2.1, but might be coincidence.

If the domain_cfg_out and mesh_mask are generated on one processor (or few) and read from file (issue #17 ) this issue is patched.

Found the issue related to this index misspelling...
zlamt(ji, ji)


Running scenarios in parallel when nworkers() > 1

https://github.com/open-AIMS/ADRIA.jl/blob/6bdbe38171100ec2cc7b1870467aba1adabf6adf/src/scenario.jl#L126C1-L130C16
When running more than 4095 scenarios the function run_scenarios will run in the scenarios in parallel. If nworkers() using more than one worker, fun won't be defined, but then at the lines 127 and 129 it will be called, raising the following error at line 127 of this file: ERROR: UndefVarError: 'func' not defined

How are you hitting this error? (i.e., running scenarios in parallel more than once?)
The nworkers() check is there so that you don't repeatedly and unnecessarily add more and more workers.
The first time you run in parallel, the functions get defined. The second time, the workers were either removed (see flow for remove_workers==true) and the process repeats, or the workers were kept so that part of the logic is unnecessary.
FYI, remove_workers is set to true by default as it can use a lot of memory. In most cases I imagined you'd want to free memory so that analysis can be done.
I suspect the first run errored? Meaning workers were not spun up?

What do you mean by "more than once"? I run scenarios with num_samples = 4096 and I didn't get any error. Than I run again and I got the error. And since then I get the same error again and again...
Do you think after running the first time I run the workers weren't removed?

More than once, meaning run scenarios multiple times
scens = ADRIA.sample(dom, 4096)
ADRIA.run_scenarios(scens, dom)

scens = ADRIA.sample(dom, 8192)
ADRIA.run_scenarios(scens, dom)

Can you try:
ADRIA._remove_workers()

and see what happens?

I run
ADRIA._remove_workers()

and run the code, and got the following error:
ERROR: On worker 55:
IOError: unlink("C:\\Users\\pribeiro\\.julia\\compiled\\v1.9\\ADRIA\\jl_CE3.tmp"): permission denied (EACCES)

and after that every time I run again I get the func not defined error.
Then I removed workers again, with the same command, and I got the following different error:
ERROR: On worker 56:
UndefVarError: `#141#143` not defined

and, again, after that, every time I run it again I get the func not defined error.
🤔

Just to confirm, is this on both your laptop and remote desktop or just one?
I'm starting to suspect anti-virus is interfering...

@ConnectedSystems I am running in my laptop now, the ETA is around 40min, but it seems to be working.

@ConnectedSystems It took me a while to run it here because my REPL crashed (and I had to decrease the number of workers) but yes, it worked on my personal laptop.
So, should I close this issue then?

Leave it open, I'll raise a ticket with IT to see if it's the anti-virus

Can confirm it's an issue on the remote desktop, and it is not anti-virus related. Not sure what's happening there.
Need to double check what happens on laptop.

@Zapiano
I have a possible fix for parallel runs crashing workers on the remote desktop 😄

Running 8192 scenarios for RCP 45 100%|████████████████████████████| Time: 0:06:44

Running a few more times to see if the crash still occurs.

@ConnectedSystems good! On that: today I managed to run 4096 scenarios in parallel but I had to Elevate first... 🤔

Nope, seems I'm just delaying the issue - it comes back with larger runs...


How to auto set font size based on background size

Hi! I use your script to show a fullscreen message on second monitor, now I have set a variable in ini file to set the font size. But if I use a pt size, after few character there is no more space and can't see correctly all message. If I use precentage have less character to see.
There is a way to auto adapt font size/percentage based on text and sizeof the background?
For example something like if the text is "lorem ipsum dolor is amet" can be max 150px and if the text is "Lorem" can be max 500px because is shorter than the first phrase. Thank you!
this is the code I'm using now: TextVar.Value, "c: #00000099 x:1920 y:y w:100% h:100% t:10000 m:0 a:0", "f:(Blogger Sans) z:(Blogger Sans Condensed) c: #ffffff s:" FontSize " j:2 v:2"

Can something similar be done in CSS?
On Sat, Oct 29, 2022 at 03:05 manuelvita96 @.***> wrote:

Hi! I use your script to show a fullscreen message on second monitor, now
I have set a variable in ini file to set the font size. But if I use a pt
size, after few character there is no more space and can't see correctly
all message. If I use precentage have less character to see.
There is a way to auto adapt font size/percentage based on text and sizeof
the background?
For example something like if the text is "lorem ipsum dolor is amet" can
be max 150px and if the text is "Lorem" can be max 500px because is shorter
than the first phrase. Thank you!
this is the code I'm using now: TextVar.Value, "c: #00000099 x:1920 y:y
w:100% h:100% t:10000 m:0 a:0", "f:(Blogger Sans) z:(Blogger Sans
Condensed) c: #ffffff s:" FontSize " j:2 v:2"
—
Reply to this email directly, view it on GitHub
https://github.com/iseahound/TextRender/issues/12, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKTTVFLIL2BIVIUM7TZ3ALWFTED5ANCNFSM6AAAAAARRU7TKM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi! Thanks for immediate response! I have find this article about that: https://css-tricks.com/viewport-sized-typography/
Il sab, 29 ott, 2022 alle 16:33, Edison @.***> ha scritto:
Can something similar be done in CSS?
On Sat, Oct 29, 2022 at 03:05 manuelvita96 @.***> wrote:

Hi! I use your script to show a fullscreen message on second monitor, now
I have set a variable in ini file to set the font size. But if I use a pt
size, after few character there is no more space and can't see correctly
all message. If I use precentage have less character to see.
There is a way to auto adapt font size/percentage based on text and sizeof
the background?
For example something like if the text is "lorem ipsum dolor is amet" can
be max 150px and if the text is "Lorem" can be max 500px because is shorter
than the first phrase. Thank you!
this is the code I'm using now: TextVar.Value, "c: #00000099 x:1920 y:y
w:100% h:100% t:10000 m:0 a:0", "f:(Blogger Sans) z:(Blogger Sans
Condensed) c: #ffffff s:" FontSize " j:2 v:2"
—
Reply to this email directly, view it on GitHub
https://github.com/iseahound/TextRender/issues/12, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKTTVFLIL2BIVIUM7TZ3ALWFTED5ANCNFSM6AAAAAARRU7TKM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

viewport width and viewport height have already been implemented in
TextRender. I was thinking that perhaps use of max() and min() could solve
your issue? Scaling font sizes based on text size leads to edge cases such
as extremely small and unreadable text.
On Sat, Oct 29, 2022 at 11:24 manuelvita96 @.***> wrote:

Hi! Thanks for immediate response! I have find this article about that:
https://css-tricks.com/viewport-sized-typography/
Il sab, 29 ott, 2022 alle 16:33, Edison @.***> ha scritto:
Can something similar be done in CSS?
On Sat, Oct 29, 2022 at 03:05 manuelvita96 @.***> wrote:

Hi! I use your script to show a fullscreen message on second monitor, now
I have set a variable in ini file to set the font size. But if I use a pt
size, after few character there is no more space and can't see correctly
all message. If I use precentage have less character to see.
There is a way to auto adapt font size/percentage based on text and
sizeof
the background?
For example something like if the text is "lorem ipsum dolor is amet" can
be max 150px and if the text is "Lorem" can be max 500px because is
shorter
than the first phrase. Thank you!
this is the code I'm using now: TextVar.Value, "c: #00000099 x:1920 y:y
w:100% h:100% t:10000 m:0 a:0", "f:(Blogger Sans) z:(Blogger Sans
Condensed) c: #ffffff s:" FontSize " j:2 v:2"
—
Reply to this email directly, view it on GitHub
https://github.com/iseahound/TextRender/issues/12, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ACKTTVFLIL2BIVIUM7TZ3ALWFTED5ANCNFSM6AAAAAARRU7TKM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
@.***>
—
Reply to this email directly, view it on GitHub
https://github.com/iseahound/TextRender/issues/12#issuecomment-1295870231,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKTTVG2ANNYKHYRBL7HLQ3WFU6SXANCNFSM6AAAAAARRU7TKM
.
You are receiving this because you commented.Message ID:
@.***>

This can be the solution :)
Il sab, 29 ott, 2022 alle 19:08, Edison @.***> ha scritto:
viewport width and viewport height have already been implemented in
TextRender. I was thinking that perhaps use of max() and min() could solve
your issue? Scaling font sizes based on text size leads to edge cases such
as extremely small and unreadable text.
On Sat, Oct 29, 2022 at 11:24 manuelvita96 @.***> wrote:

Hi! Thanks for immediate response! I have find this article about that:
https://css-tricks.com/viewport-sized-typography/
Il sab, 29 ott, 2022 alle 16:33, Edison @.***> ha scritto:
Can something similar be done in CSS?
On Sat, Oct 29, 2022 at 03:05 manuelvita96 @.***> wrote:

Hi! I use your script to show a fullscreen message on second monitor, now
I have set a variable in ini file to set the font size. But if I use a pt
size, after few character there is no more space and can't see correctly
all message. If I use precentage have less character to see.
There is a way to auto adapt font size/percentage based on text and
sizeof
the background?
For example something like if the text is "lorem ipsum dolor is amet" can
be max 150px and if the text is "Lorem" can be max 500px because is
shorter
than the first phrase. Thank you!
this is the code I'm using now: TextVar.Value, "c: #00000099 x:1920 y:y
w:100% h:100% t:10000 m:0 a:0", "f:(Blogger Sans) z:(Blogger Sans
Condensed) c: #ffffff s:" FontSize " j:2 v:2"
—
Reply to this email directly, view it on GitHub
https://github.com/iseahound/TextRender/issues/12, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ACKTTVFLIL2BIVIUM7TZ3ALWFTED5ANCNFSM6AAAAAARRU7TKM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
@.***>
—
Reply to this email directly, view it on GitHub
https://github.com/iseahound/TextRender/issues/12#issuecomment-1295870231,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKTTVG2ANNYKHYRBL7HLQ3WFU6SXANCNFSM6AAAAAARRU7TKM
.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

I still don't know if this can be done efficiently - it seems to be that it is not possible to know how much space a specific font may take up before drawing. It's not like font-size: 12pt really means anything: There's 12 points in 1 pica, and 6 picas in 1 inch, but no one is measuring my screen with a ruler. The worst part is that some characters have overhang — so if the idea is to develop an algorithm to fit the text inside the box, that actually might not be possible.
It just sounds really inefficient to measure the text 13-14 times, but it could be added. I'll have to think about it.

Not implementing a recursive solution that iterates to a limit.
Maybe I misunderstood this question, but at least in CSS, I'd have to use max() or min() to get the desired outcome, which is a little too advanced for this project. As it stands, it feels the most natural for text size to be a % of the ScreenHeight.


Consider exposing error details

In particular, being able to determine if a variable is missing would be very helpful.

Makes sense. I'll see if it can be done backwards compatible.

Implemented and released with 0.3.0 \o/


Testing the real-time streaming example

I followed the user-guide steps by steps to test the streaming example at Sphinx environment, but I got the following error

Traceback (most recent call last):
File "ctypes/callbacks.c", line 234, in 'calling callback function'
File "/home/tara/Documents/parrot-groundsdk/out/olympe-linux/final/usr/lib/python/site-packages/olympe_deps.py", line 81, in
type((lambda callback: lambda *args: callback(*args))(
File "/home/tara/Documents/parrot-groundsdk/packages/olympe/src/olympe/arsdkng/pdraw.py", line 840, in _media_added
if (media_info.contents._2.video.format !=
AttributeError: 'struct_pdraw_media_info' object has no attribute '_2'

As expected, there should be a new window continuously showing the FPV image from the drone. However, the window only showed black in my case.
My goal is to post-processing the FPV image, but the function show_yuv_frame seems not to be called at all. So how can I get access to the current frame? How can I fix the problem to make it work as expected in the example?
Thanks in advance

I also faced the same error message when I run the streaming example. I am looking forward to hearing any response from Parrot.

I also faced the same error message when I run the streaming example. I am looking forward to hearing any response from Parrot.

Up :)
Impossible to read streaming video from Anafi running inside Sphinx simulator. The struct_pdraw_media_info seems to be empty in olympe_deps.py.
Could we have a way to fix that, please ?
Thanks

Also facing this same error. It's strange because I installed olympe on my desktop a couple months ago and have no problems streaming. But now that I install olympe on my laptop I suddenly have this error. Must have been from some update?


This page -> Import to IPFS workflow is confusing

It begins understandably:

I open a website
I right click the website and choose Import to IPFS

but then it turns weird

I am taken to IPFS Webui directory such as Files/IPFS-Companion imports/2020-02-25_175727 (well maybe this and 4. are understandable)
I double click the only file there
I am shown raw html inside IPFS WebUI without indication on how do I actually see the page I have imported?

I think that instead of 6 or in addition to it, I should see a pointer to https://ipfs.io/ipfs/Qmcu8NULAvtES4Tj4bCrrqxWoPEVsAmPmn1rvdnaJZEoCc (IPFS Companion README.md page imported to IPFS) and maybe there IPFS Companion should greet me and tell me that I am browsing a page imported to IPFS and link me back to the imported directorory page.
Possibly related: #91

Hi @mikaela -- thanks for describing this in such useful detail. What you're talking about is definitely an example of how the UX breaks based on work needed/discussed in https://github.com/ipfs-shipyard/ipfs-companion/issues/91. I'm going to close this issue in favor of that one, but link to your description here so we can track how the finished work can avoid the poor UX you're describing. Thanks!


swift build error

Hello, I'm getting this error when trying to build:
NoSources("/home/user/app/Packages/CURIParser-0.4.0/include")

@SamAlbuga what toolchain you are using?
0.4.0 version is for latest, develop one.
If you are using stable 2.2 swift, try minor=3 version

swift 3 feb 8 dev snapshot works as well.

@goloveychuk I'm using swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-ubuntu15.10. I got more compilation errors when setting minor to 3

We don't support that snapshot. 02-08 works with 0.3, 03-16/03-24 work with 0.4.


Document endpoints

After endpoints are finalised we need to document the endpoints.
Note: the current zod entities are types and not classes so they do not inherently work with @nestjs/swagger. This needs be adjusted if we choose to use zod with Swagger.

I would prefer TypeScript types over swagger (although swagger would be also nice).

As a frontend dev and a consumer of this API, I would prefer TypeScript types over swagger (although swagger would be also nice).

If we stick with zod, we have autogenerated types. I'll bring this up in our next sync.

I vote for swagger if it's possible. We are using it for all our back-end services and it's easy to use and read for non-dev person


RSDK-6509 - Delete motion.MoveOnMapNew

Ticket

Merged with https://github.com/viamrobotics/viam-python-sdk/pull/527


Raise errors for client facing functions with invalid args

Current implementation uses inconsistent logging / inline comments. I will make function pre-reqs clearer.

Making great progress! Client facing code is simplified and raises errors appropriately.


What's the openssl default entropy of Linux system?

Hi,
I am reading the drbg code, but I am confused about the default entropy of Linux system?
It seems that a macro defined the devrandom device
define DEVRANDOM "/dev/urandom", "/dev/random", "/dev/hwrng", "/dev/srandom"
But also I find something use :
return syscall(__NR_getrandom, buf, buflen, 0);
I want to know openssl use which one by default
Thanks in advance.

Linux uses a variety of different sources.  The default source is from the operating system source. This will use the getrandom(2) call if available and the DEVRANDOM list (which really ends up as /dev/urandom).  It is possible to pick other sources via the configure line.


provide guidance on the instant-search various folders

@vvo I suggest changing most simple to simplest. Otherwise, :+1:

Done @dustincoates


1.2.1: sphinx warnings reference target not found

First of all currently it is not possible to use straight sphinx-build command to build documentation out of source tree

+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v5.3.0

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 350, in eval_config_file
    exec(code, namespace)
  File "/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/docs/conf.py", line 5, in <module>
    from pyproject_api import __version__
ModuleNotFoundError: No module named 'pyproject_api'

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

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/usr/lib/python3.8/site-packages/sphinx/application.py", line 202, in __init__
    self.config = Config.read(self.confdir, confoverrides or {}, self.tags)
  File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 172, in read
    namespace = eval_config_file(filename, tags)
  File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 363, in eval_config_file
    raise ConfigError(msg % traceback.format_exc()) from exc
sphinx.errors.ConfigError: There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 350, in eval_config_file
    exec(code, namespace)
  File "/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/docs/conf.py", line 5, in <module>
    from pyproject_api import __version__
ModuleNotFoundError: No module named 'pyproject_api'

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sphinx/config.py", line 350, in eval_config_file
    exec(code, namespace)
  File "/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/docs/conf.py", line 5, in <module>
    from pyproject_api import __version__

This can be fixed by patch like below:
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,5 +1,9 @@
 from __future__ import annotations

+import sys
+import os
+sys.path.insert(0, os.path.abspath("../src"))
+
 from datetime import datetime

 from pyproject_api import __version__

This patch adds what is in sphinx example copy.py https://www.sphinx-doc.org/en/master/usage/configuration.html#example-of-configuration-file
Than .. on building my packages I'm using sphinx-build command with -n switch which shows warmings about missing references. These are not critical issues.

+ /usr/bin/sphinx-build -n -T -b man docs build/sphinx/man
Running Sphinx v5.3.0
making output directory... done
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: [new config] 2 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... python-pyproject-api.3 { changelog } /home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend:1: WARNING: py:class reference target not found: abc.ABC
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.get_requires_for_build_sdist:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.get_requires_for_build_wheel:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.get_requires_for_build_editable:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.prepare_metadata_for_build_wheel:1: WARNING: py:class reference target not found: Path
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.prepare_metadata_for_build_wheel:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.prepare_metadata_for_build_editable:1: WARNING: py:class reference target not found: Path
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.prepare_metadata_for_build_editable:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_sdist:1: WARNING: py:class reference target not found: Path
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_sdist:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_wheel:1: WARNING: py:class reference target not found: Path
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_wheel:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_wheel:1: WARNING: py:class reference target not found: Path
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_editable:1: WARNING: py:class reference target not found: Path
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_editable:1: WARNING: py:class reference target not found: ConfigSettings
/home/tkloczko/rpmbuild/BUILD/pyproject-api-1.2.1/src/pyproject_api/_frontend.py:docstring of pyproject_api._frontend.Frontend.build_editable:1: WARNING: py:class reference target not found: Path
done
build succeeded, 16 warnings.

You can peak on fixes that kind of issues in other projects
https://github.com/latchset/jwcrypto/pull/289
https://github.com/click-contrib/sphinx-click/commit/abc31069
https://github.com/latchset/jwcrypto/pull/289
https://github.com/RDFLib/rdflib-sqlalchemy/issues/95
https://github.com/sissaschool/elementpath/commit/bf869d9e
https://github.com/jaraco/cssutils/issues/21
https://github.com/pywbem/pywbem/pull/2895
https://github.com/sissaschool/xmlschema/commit/42ea98f2
https://github.com/RDFLib/rdflib/pull/2036
https://github.com/frostming/unearth/issues/14
https://github.com/pypa/distlib/commit/98b9b89f

You know the drill, make a PR if you make the issue, or don't make the issue.

You're expected to install the project, not alter the sys.path, before running sphinx-build.


No changes to the code and the generated mesh has repeatability? How do I debug it?

mesh

validations_fine

normals

mesh is not ture,but validations_fine/normals is ok

Hi sorry for the late reply. It looks weird, did you use confs/thin_structure.conf as the config file for running? Thanks

I have the same issue. Were you able to resolve it?


Fix favourites.html page footer

What is the bug*
favourites.html doesn't look good like other pages
Expected behavior
NA
Screenshots

Additional context
Please assign this bug to me. I'll fix this bug asap.

@charandeep7 Go ahead
Show your support by stargazing the repo 🌟


Option to disable "run test | debug test" links

I'm having the same issue as this guy from a while back on vscode-go, but with the Python extension:

Hi,
just a minor nit -- is there any way to disable these two links?

When writing tests, these lines show up when the code is OK, but they disappear every time there's a syntax error - effectively every time I save a _test.go file that doesn't compile.
The showing up / hiding causes the code to jump up and down and it gets too much of my attention and slows me down.

The code jumping up and down while I type kind of makes me seasick. Is there any way to disable just this one codelens for Python tests (or tests in general, for that matter)? There's always:
"editor.codeLens": false

but that disables all code lenses everywhere, which is less than ideal.

Thank you for the suggestion! We have marked this issue as "needs decision" to make sure we have a conversation about your idea. We plan to leave this feature request open for at least a month to see how many 👍 votes the opening comment gets to help us make our decision.

I came here to file this same bug, but searched first and found this.  Fairly annoying when you have more than 2-3 tests because the code at the bottom jumps by the number of tests plus the number of classes.  So if you have one class with 15 tests, it'll jump by 16 lines every time these things appear/disappear.
Maybe some would argue that the source class should be simplified for less tests or something, but I don't think 15 tests is unreasonable.
I'd prefer to keep these codelens adornments, as they're kind of useful, if there's a way to stop this jumping behavior while coding tests.  But if the choice is have them disabled entirely (e.g. "python.testing.codeLens" or something) or use the setting to disable all codelens in the project (using editor.codeLens), I'd happily disable just these python unittest codelens adornments if the feature was available.

I also came here looking for a way to turn off the lens. I run tests for most projects in the terminal in a docker environment, so the lens is just taking up space. It would be useful to have an option to hide it.

We can add a setting called "python.testing.codeLensesEnabled" that can be true by default, but will have code lenses disabled if set to false.
I think it may make sense to have it in the User scope only, but I don't think it'd be bad to have it in the Workspace scope either.

@luabud I guess that means it's difficult to make it stop jumping around so we can keep them?
Assuming that's the case, I'd agree with the User scope thing because this seems to pretty clearly be a personal preference rather than related to a specific project.  Although I can't imagine who isn't bothered by the text jumping around as you edit more than 3-4 tests.

@luabud I guess that means it's difficult to make it stop jumping around so we can keep them?
Assuming that's the case, I'd agree with the User scope thing because this seems to pretty clearly be a personal preference rather than related to a specific project. Although I can't imagine who isn't bothered by the text jumping around as you edit more than 3-4 tests.

I just wanted to echo this. I don't mind having the adornments/code lens there, it's the code bobbing up and down that could use a fix.

Perhaps another idea would be to put the adornment in-line with the function declaration. Either to the left or the right of the text. Having it take up a brand new line seems to be part of the issue.
Thanks!

I just want to +1 this. I am teaching python and decided to use VSCode because it is very simple to install and use and works for many languages but working with tests is frustrating because students cannot follow what I do due to all these jumps. I have to disable code lenses but it is not ideal.
I am not sure how PyCharm does it, but in there you get a play button to the left of the tests that does not move ever, it does not even matter if pytest, unittests or whatever testing frame you use can discover the tests. They are just recognized. No matter what. If there is an import error (which causes the discovered test disappear due to pytest not being able to find them) vscode fails to recognize the test, this does not happen in pycharm.
Not sure why the code lenses disappear so often but maybe, if you the same discovery procedure as done in pycharm cannot be replicated, you might want to consider to put the codelense somewhere else, like inline with the test as @1studlyman mentioned.

I guess that means it's difficult to make it stop jumping around so we can keep them?

That's correct. We rely on VS Code's APIs for the code lenses, I don't believe the extension is doing anything special to cause this "jumping around" behaviour. We were considering dropping off the code lenses but the feedback we receive is that a lot of people do like it and would prefer to have them on.
That said, we also have a test explorer with a run button that doesn't jump around 😅 the explorer shows up once tests are configured:

@AAraKKe I see that you mentioned that the code lenses disappear often. The original problem behind this issue was about the "jumping" behaviour of the code lenses, not that the extension failed to recognize tests. Your problem sounds like a separate bug, am I understanding it right?

@AAraKKe I see that you mentioned that the code lenses disappear often. The original problem behind this issue was about the "jumping" behaviour of the code lenses, not that the extension failed to recognize tests. Your problem sounds like a separate bug, am I understanding it right?

These are related problems. As I type the contents of a given test, the test tends to cycle into/out of a state of valid/invalid syntax. Further, my vscode is set up to save files on loss of focus (I assume most people on this post have some similar form of autosave). Whenever the file gets saved while the test is valid, the codelens discovers the test and appears, and whenever the file gets saved while the test contains invalid syntax, the codelens loses the test and vanishes. Thus, the cycle of test discovery-loss-discovery appears to be what's causing the codelens to in turn cycle through appear-vanish-appear.
So one way to resolve the issue would be to be smarter/more lazy about striking tests off the discovered list. Eg, for the purpose test discovery, maybe do a regexp for "class (Test\w*)" when invalid syntax is encountered.

@luabud These are related problems. As I type the contents of a given test, the test tends to cycle into/out of a state of valid/invalid syntax. Further, my vscode is set up to save files on loss of focus (I assume most people on this post have some similar form of autosave). Whenever the file gets saved while the test is valid, the codelens discovers the test and appears, and whenever the file gets saved while the test contains invalid syntax, the codelens loses the test and vanishes. Thus, the cycle of test discovery-loss-discovery appears to be what's causing the codelens to in turn cycle through appear-vanish-appear.

Exactly this. I can add that I disabled the option to discover on save because the discovered triggered the run/debug lenses to appear and disappear. Even with the option disabled it keeps happening. This means that it is related with the fact that it can or cannot find the tests (no discover is being done) but with the file syntax being valid or not itself.

I can confirm that whenever the syntax is invalid those lenses disappears.
I would really appreciate a settings to turn them off, also because they kinda clash with other plugin lenses (test explorer ui python plugin, for example).

Did this get fixed? Writing tests is making me seasick with the code bobbing up and down.

Just letting you guys know the issue is still very relevant. Jumping up-and-down code of tests is not cool.

I had these lenses tamed at some point (this issue was there 2 years ago as well), but they reappeared.
Please fix this - the code jumping up and down while writing your test is extremely annoying and distracting. For now I'll just disable lenses globally if necessary.

Came here for the same issue - the jumping was frustrating me causing misclicks when I am in a hurry.
@iivvoo 's solution worked well for me - thanks!

@iivvoo This works. TY!!

    "[python]": {
        "editor.codeLens": false
    }

unfortunately this deactivates all code lenses, even the useful ones. And I personally like my lenses a lot.
I'm also using the Extension: Python Test Explorer for Visual Studio Code, that has good (or better) code-lenses too.
I could deactivate their lenses "Run" and "Debug", but I prefer them over the "Run Test" | "Debug Test" from the official extension.
A setting like python.testing.codeLens": true, would be awesome.

Ok, just do it yourself. Go to the Microsoft Python extension source and open the file out/client/extension.js. In there you can remove the line that adds the code lenses to the registry. Remove the following piece of text, save the file, reload VSCode.
if(c)return[new r.CodeLens(i,{title:l(c.status)+s.Text.CodeLensRunUnitTest,command:s.Commands.Tests_Run,arguments:[void 0,a.CommandSource.codelens,e,{testFunction:[c]}]}),new r.CodeLens(i,{title:l(c.status)+s.Text.CodeLensDebugUnitTest,command:s.Commands.Tests_Debug,arguments:[void 0,a.CommandSource.codelens,e,{testFunction:[c]}]})]

I want to say that this issue is still very relevant and a cause for great concern.
Adding a flag like python.testing.enableCodeLens would be a patch for the problem (and it would definitely be appreciated as an intermediate fix!)
A solution would be something similar to what @telamonian and @AAraKKe discussed. Discover tests that match the pattern that pytest and unittest search for, but don't "invalidate" the tests and cause the code lens to disappear because of a syntax, import or attribute error. Additionally, if a test has already been discovered and has the code lens floating above it, place an additional tag like Invalid Test next to Run Test | Debug Test instead of removing it if for whatever reason the test is no longer discoverable.

This isn't 100% related, but there are actually a whole bunch of similar issues caused by VSCode saving the file you're actively editing while it has an error.
You stop typing for 3 seconds while there's a syntax error in your code? Suddenly you get a message "Test discovery failed", the code shifts upwards because the code lens thingies are gone, all the red and yellow squiggles created by the linter disappear, basically any tool that analyzes your code stops working. And then you continue typing, and suddenly it starts working again. And then you type some more, and it breaks again. It's honestly infuriating.

The same problem.
By the way, @luabud could you share which theme or extension you are using? Your panel looks different and good. Thank you!

this should be addressed by #16769
This is the new UI:

Can't wait to see this fix when it's released!  Thanks a lot @karthiknadig !!!  I see it's merged, so we just have to wait until the next update :-)

@jpangburn you can also try it out on the Insiders program! You can go to View > Command Palette... and run "Python: Switch to Insiders Weekly Channel". After it finishes downloading the new version you will need to reload the window, but after that it should work 😊

Sigh. I really preferred the old codelens look, and the old organization of Tests in the sidebar, and do not like the new UI for tests at all.

@astrowonk would you mind explaining more about what you don't like about the new UI?
(cc @connor4312)

I'm happy to bring (an option for) the classic codelenses back in the native testing implementation, though thus far it seems most people have been happy with the gutter decorations. Interested to hear thoughts on other UI.

I'm happy to bring (an option for) the classic codelenses back in the native testing implementation, though thus far it seems most people have been happy with the gutter decorations. Interested to hear thoughts on other UI.

@connor4312 @luabud  Would love the Code Lens options back, maybe I'd get used to the gutter decorations but it's a lot easier for me to just click "run test" than to right click and parse the contextual menu.
My bigger issue is the organization in the sidebar. I think the full path text is distracting, and I preferred the previous UI of showing only the Folder and class names as I navigated into tests in other directories/modules. Showing the full paths doesn't seem to add anything, especially since clicking on any one test takes you in the editor to the code for that test anyway.
I realize that's out of scope for this closed issue, I am happy to open some other issues on the Test UI. I tried to turn Insiders back on to examine the UI again more closely just now, but this led to discovery failing for one subfolder of my workspace, which appears to have broken discovery for all the other folders in my workspace so none of my tests were available and the UI issue became secondary. I'll see if I can reproduce the discovery issue in a test repo tonight and open an issue if I can.

Would love the Code Lens options back, maybe I'd get used to the gutter decorations but it's a lot easier for me to just click "run test" than to right click and parse the contextual menu.

The default left click action on the decorations is to run the test, though you can change that with the testing.defaultGutterClickAction setting.

My bigger issue is the organization in the sidebar. I think the full path text is distracting, and I preferred the previous UI of showing only the Folder and class names as I navigated into tests in other directories/modules. Showing the full paths doesn't seem to add anything, especially since clicking on any one test takes you in the editor to the code for that test anyway... this led to discovery failing for one subfolder of my workspace, which appears to have broken discovery for all the other folders in my workspace so none of my tests were available and the UI issue became secondary

@karthiknadig

@connor4312  @karthiknadig Opened #16902 on the test discovery issue. It doesn't seem related to failing imports but just perhaps a certain hierarchical folder structure.


Errors during startup

I see a couple of errors when starting up the HA instance. In terms of hardware, I have a doorbell, weather station indoor&outdoor, wind meter and rain meter. All the weather stuff seems to work fine and I am not missing anything unless the expected behavior is to have a switch and/or sensor for the doorbell.
HA version was updated just now to HA2022-03-04

Logger: homeassistant.components.switch
Source: custom_components/netatmo/switch.py:40
Integration: Switch ([documentation](https://www.home-assistant.io/integrations/switch), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+switch%22))
First occurred: 3:05:03 PM (1 occurrences)
Last logged: 3:05:03 PM
Error while setting up netatmo platform for switch

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/netatmo/switch.py", line 40, in async_setup_entry
    if not account_topology or account_topology.raw_data == {}:
AttributeError: 'AsyncAccount' object has no attribute 'raw_data'

Logger: homeassistant.components.sensor
Source: custom_components/netatmo/sensor.py:283
Integration: Sensor ([documentation](https://www.home-assistant.io/integrations/sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
First occurred: 3:05:56 PM (1 occurrences)
Last logged: 3:05:56 PM
Error while setting up netatmo platform for sensor

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/netatmo/sensor.py", line 283, in async_setup_entry
    if not account_topology or account_topology.raw_data == {}:
AttributeError: 'AsyncAccount' object has no attribute 'raw_data'

FYI: I did some side-by-side checking, and it seems this is due to startup being a bit slow and the platform not yet being ready, correct?

I pushed an update to clean up this error.


See previous screen while next state transiton

iPad-Mini 8.4 (12H143)
angular  1.5.0-rc.0
angular-ui-router 1.0.0-alpha0
ionic-native-transitions 1.0.0-rc.10
wkwebview 0.6.9
com.telerik.plugins.nativepagetransitions 0.6.3
https://vimeo.com/158166742 - bug when slide to page which contains tabs
https://vimeo.com/158171241 - bug when use flip transition between tabs
my settings:
  $ionicNativeTransitionsProvider.setDefaultOptions({
    triggerTransitionEvent: '$ionicView.afterEnter',
    backInOppositeDirection: false,
  });

This happens only when I try to go to page that contains css3 effects or high quality images, seems that problem exists because $ionicView.enter dispatched before view actually rendered. I noticed if I manually adjust iosdelay for this pages all is ok. When I disable wkwebview plugin and use old webview, all work even without iosdelay. I can share chunk of my app if needed. This bug absent in iOS simulator, only on device.
I found some workaround, using after-render directive in my view, and subscribe ionic-native-transition to $afterRender, but on first render bug still exists
  $ionicNativeTransitionsProvider.setDefaultOptions({
    triggerTransitionEvent: '$afterRender',
    backInOppositeDirection: false,
  });

export default function afterRender($rootScope, $timeout) {
  "ngInject";
  return {
    restrict: 'A',
    terminal: true,
    link: function (scope, element, attrs) {
      angular.getTestability(element).whenStable(function() {
        $timeout(() => {
          $rootScope.$emit('$afterRender');
        }, 0);
      });
    }
  };
}

<ion-view>
  <ion-content>
  ...
  </ion-content>
  <div after-render></div>
</ion-view>

+1 with exactly the same bugs

Anyone of you has enough knowledge to have a crack at it?
On Tue, Mar 8, 2016 at 4:18 PM, Grégory BABONAUX<EMAIL_ADDRESS>wrote:

+1 with exactly the same bugs
—
Reply to this email directly or view it on GitHub
https://github.com/shprink/ionic-native-transitions/issues/77#issuecomment-193821058
.

We currently use
$ionicNativeTransitions.stateGo('yourState', {}, {})
Combined with no cache on the previous view.
It's a problem since we need to then re-set the scroll position at the right position in the parent view, but it seems it do the job until a real fix

Gregory do you have any idea what this fix could look like? Every help is
appreciated
On Tue, Mar 8, 2016 at 4:32 PM, Grégory BABONAUX<EMAIL_ADDRESS>wrote:

We currently use
$ionicNativeTransitions.stateGo('yourState', {}, {})
Combined with no cache on the previous view.
It's a problem since we need to then re-set the scroll position at the
right position in the parent view, but it seems it do the job until a real
fix
—
Reply to this email directly or view it on GitHub
https://github.com/shprink/ionic-native-transitions/issues/77#issuecomment-193825253
.

We'll try to look at the code as soon as we can, i keep you posted if web found something !

+1 same bug here but with Crosswalk and S5 Mini

Works fine in iPhone 6, but the bug appear with crosswalk and moto g

+1 still seeing this bug on android with crosswalk

same issue!! no solution?

+1 bug with honor7

Change from 'stage' to 'active' of attribute nav-view for new loaded view happen on event $ionicView.enter of Ionic view life-cycle, while event is transitioning from $ionicView.loaded to $ionicView.enter the old view is still with attribute nav-view="active" where the active styling of CSS is still applied.
Under certain circumstances, even though ionic-native-transition start to kick the animation on $ionicView.afterEnter but DOM update for nav-view attribute still in process that's why native transition still showing the old view while animating transition and sometime its drop while animation is still taking place if you set to longer transition duration.
You can have a temporary solution on this issue by forcing new view attribute of nav-view to active on earlier life-cycle event. You need to change the class .some-container base on your Ionic view structure, some simpler structure doesn't need this extra targeting.
$rootScope.$on("$ionicView.beforeEnter", function(event, data){
    var founds = $('.some-container ion-nav-view > ion-view');

    if( founds.length == 2){
            $.each(founds, function(i, view){
                    if( $(view).attr('nav-view') == 'stage' ) $(view).attr('nav-view', 'active');
            });
    }
});

Below is my default setting and this solution have been test on device Samsung Galaxy Tab A 8.0 which is before suffering the same issue.
$ionicNativeTransitionsProvider.setDefaultOptions({
    "duration": 600,
    "backInOppositeDirection": true
});

If the next view structure is complex, the problem is showing, but if not ,there is no such an issue !
why?

Here I got one advices , I only has this sentence " triggerTransitionEvent: '$ionicView.afterEnter' "  commented out and the issue seems gone and the world is in peace ...


[[FIX]] Support semicolons within arrow fn params

When JSHint encounters an "open parenthesis" token, it must determine if
the token marks the beginning of an arrow function or a grouping
operator before parsing can proceed.
To make this determination, it inspects the token stream to find the
corresponding "close parenthesis" character.
Previously, this lookahead behavior halted whenever a semicolon token
was encountered. This was presumably an optimization to allow the
algorithm to exit early in the event of an unmatched "open parenthesis"
token.
Because a semicolon token may appear in the parameter list of an arrow
function (e.g. within a default parameter value that is a function
expression), the presence of such a token does not necessarily
indicate that the "open parenthesis" is unmatched.
Remove the condition concerning the semicolon character from the
lookahead algorithm.
Resolves gh-3002.

Coverage decreased (-0.07%) to 97.625% when pulling 3560c2c8617ed6b1a7e9d4edce0186ac34d9e5b3 on jugglinmike:gh-3002-stmt-within-arrow-param into ee0acabd680a980a74160ae87af7534894685b7e on jshint:master.

@rwaldron Mind taking a look?

My only issue with this is the commit message's short description, and only because my first read of it was "alarming". I'm not going to block on it, but I would've used the word "nested" somewhere in there ;)


consumer.receive will only process events at interval of ~2 seconds. How to increase rate?

Package Name:
azure-eventhub
Package Version:
"^5.10.0"
Operating System:
Windows 11
Python Version:
Python 3.10.6

Describe the bug
I am trying to diagnose a latency issue when subscribing to EvenHub using python sdk. It is only processing received events at a rate interval of ~2 seconds (which is very suspicious it is some default configuration value)
I am using the consumer.receive method and seem to have follow the samples very closely.
I have create two similar testing utilities and it seems for the same EvenHub the dotnet sdk works as expected, sends and receives hundreds of events in a few seconds. The python can publish /send large amounts of events on 1 or 2 seconds but when receiving it takes 1 or 2 seconds PER EVENT which makes it unusable for practical use. At this rate it would take so long to process all the events, they would expire before being processed.
I created a video to make it more clear
Video
Given the dotnet works and python doesnt for the same EventHub and Consumer Group, I see two results:

I have something configured incorrectly or bug in test causing behavior
There is a bug in the library

Hopefully someone can help identify option 1 since that is much easier for fix.
To Reproduce
Steps to reproduce the behavior:

Attempt to receive events using the python azure-eventhub library using the synchronous receive pattern.

Expected behavior
Expected to receive ALL events available to the consumer group in very short amount of time (hundreds of events should be able to be processed within few seconds)
Screenshots
If applicable, add screenshots to help explain your problem.
See the video
Additional context
N/A

We have changed our test consumer to use the async version similar to this sample and found that it works as expected receiving hundreds of events within seconds instead of processing 1 event for 2 seconds.
To me this does indicate a limitation with sync version.

Thank you @mattmazzola for the detailed bug report and video showing the issue. I just had a few clarification questions:

The python script in the video, does it first send 100 events and then try to receive them? Are you using buffered mode when sending?
Do you see the same issue if you step down a version to 5.9?

I will update you as soon as I have information on this.
Thanks

The python script in the video, does it first send 100 events and then try to receive them?

Yes

Are you using buffered mode when sending?

No
The creation of clients was using this snippet
    producer = EventHubProducerClient.from_connection_string(publish_subscribe_connection_string)
    consumer = EventHubConsumerClient.from_connection_string(
        conn_str=publish_subscribe_connection_string,
        consumer_group=event_hub_consumer_group,
        eventhub_name=event_hub_name
    )

Do you see the same issue if you step down a version to 5.9?
I have not tested this.

Thank you for the info @mattmazzola . Can you also share the version of uamqp that is installed in your environment.

Hi @mattmazzola - A few more follow-up questions:

In your video, it looks like your Event Hub has 7 partitions. Is this correct?
If you use fewer partitions (1 or 2), do you see this issue?
Thanks!

your Event Hub has 32 partitions. Is this correct?

Yes

If you use fewer partitions (1 or 2), do you see this issue?

I also haven't this but might get around to testing this when I test version 5.9 of library per suggestion above.  Our team was delayed attempting various changes to diagnose this issue, write the testing tools to isolate the problem, and produce the video. Now that we have a solution using the async version, we are trying to catch up. Unlikely we would get to this quickly

@mattmazzola - No problem. Appreciate you bringing this bug to our attention and apologies for the inconvenience! A few last questions to help us get to the bottom of this:

In your .NET sample, what is the starting position that you are passing in?
In you .NET sample, were you receiving one event at a time or receiving a batch of max size 10?

Thank you!

In your .NET sample, what is the starting position that you are passing in?

The dotnet testing tool uses a slightly different testing pattern than the python since it has more advanced features with process and cancelation tokens.
The dotnet sequence is this:

Establish consumer connection and start processing
Establish producer connection and send events

This means the consumer can use default/latest and it would still receive the events.
The dotnet tool is actually available to see here:
https://github.com/mattmazzola/dotnet-servicebus-cli/blob/6ed2a8e03155616fe14b3a200b23f9c6498966fb/Commands/LatencyTest.cs#L78-L82
(It's called servicebus-cli because that's how it started, but it works with EventHub
The python testing tool sequence is reversed since the subscribe methods block which means we can't start processing and then also execute other code without much more advanced code

Establish producer connection and send events
Establish consumer with start position set to 10 seconds ago (to allow getting all the events that were just produced)

In you .NET sample, were you receiving one event at a time or receiving a batch of max size 10?

The 10 parameter in the video was for sending batches not receiving.  For receive it's one event using the EventProcessorClient pattern.

Hi, I wanted to give provide some new information from our usage and also ask if there is any status update from the team maintaining this library.
Background:
1. sync consumer
Originally we were using this style of consumption:
with self._consumer:
  self._consumer.receive(
    on_event=process_deserialized_event,
    max_wait_time=None,
    starting_position="@latest"
  )

This has the ~2 second delay issue because it taking significant time to rotate through each of the 32 partitions and receive events from the 1 partition that has them.
2. Async consumer
We changed to use the async version of library and this seemed to resolve issues
async with self._consumer:
  await self._consumer.receive(
    on_event=process_raw_event,
    max_wait_time=None,
    starting_position="@latest"
  )

Producer Issues
1. Basic sync Producer
We had started using this basic pattern for publishing events
self._producer = EventHubProducerClient.from_connection_string(publish_subscribe_connection_string)
...
self._producer.send_batch(event_batch)

We noticed a similar issue where the producer would not publish events immediately. It would also take around ~2 sec between publishing. (We suspect a similar issue with partitions but are not sure)
2. Buffered mode, very small max_wait_time
We changed the producer to user buffered mode with a very small max_wait_time so seemingly force the producer to publish events at a very fast rate.
self.producer = EventHubProducerClient.from_connection_string(
  publish_subscribe_connection_string,
  buffered_mode=True,
  max_wait_time=0.001,
  on_success=(lambda _, __: None),
  on_error=(lambda _, __, e: _LOGGER.error("Error in producer: " + str(e))),
)

This unblocked us but as we continued to add more features and other computations we saw significant slow downs of the publishing of events.
We tried moving the consumer and producer to different threads, but given python only allows a single thread execute at once this didn't help.
3. Separate Processes
We ended up having to move the EH consumer and produces into their own process that only transfer events two and from queues to share the events between processes. This allows the consumer and producer to run at different rates
        self.__outgoing_event_queue: Queue[EventData] = Queue()
        self.__incoming_event_queue: Queue[EventData] = Queue()

        self.consumer_process = MessageConsumer(
            queue=self.__incoming_event_queue,
            publish_subscribe_connection_string=publish_subscribe_connection_string,
            consumer_group=consumer_group,
            event_hub_name=event_hub_name,
        )
        self.consumer_process.start()

        self.producer_process = MessageProducer(
            queue=self.__outgoing_event_queue,
            publish_subscribe_connection_string=publish_subscribe_connection_string,
            event_hub_name=event_hub_name,
        )
        self.producer_process.start()

Feedback
I think the amount of work we have had to do to troubleshoot this library and get it to work correctly for our usage is too high.  I think most people trying to work with the library might give up or use an alternative communication stack if they didn't have other reasons to use EventHub.
I wanted to know if the team maintaining this library can provide any status update on investigation into this issue.
Is there a solution coming? If so what is the ETA?
If there is not a solution, since it is a known expected limitation with working with python and EventHubs with high amount of partitions, can you also confirm this?
Suggestion for Documentation
I think there could be updates to the documentation to warn users about these potential problems and inform them about the workarounds we have done in the examples above so they don't have to discover and solve the same issues we did.
This would mean they setup and use the library correctly the first time instead of having the bad experience we did.
Interested to hear your thoughts.

Thanks for looking into this more and providing an update.
Unfortunately, our team has moved on from the project that used event hub and we won't be able to invest much time to this anymore.
I will try to answer some of the questions.

It can be further sped up for both methods if the intention is to only ever use one partition for sending and receiving by passing in a partition_id

I wanted to give more background on setup which may give reason for our design choices here. Our situation may have been more rare than I originally thought. We have different sets of events that needed order guaranteed so each different set (we call game) was put in different partition. The server was written in Java and had responsibility to observe/consume an unbounded number of sets/games [0,N] For this, we maxed the standard tier partitions at 32 to have the most parallelism.
The clients written in Python would generally only be dealing with 1 or 2 sets/games simultaneously.
This created a type of asymmetry / mismatch. The design choices of maxing partitions of EH for the server consumer, means the other clients which usually only care about 1 or 2 partitions suffered performance issues.

Were you seeing the same issue using async send_batch since the async receiver alleviated the problem?

I can't remember. Although I believe we tried every combination the SDK supported and the issue persisted before we went to our own custom threading model

Were able to see a difference when you tried sending events to a EH with few partitions?

I don't think we tried this since we always had 32 partitions

Are there any other threading/CPU activities going around outside of the SDK ?

Yes, there were significant activities.

we have just released a new version of the SDK, which uses a new AMQP stack written in python

Cool! If we ever go back to this project or work with EventHub again we'll try it out.
Given we likely won't be active on the thread anymore and you have released a new version of SDK perhaps this issue can be closed. I won't be able to confirm if the issue is actually resolved, but I assume people could re-open if they observe it.

Thank you @mattmazzola and again apologies for the late response. I might ping you on teams to learn a bit more about the design so that we can try to emulate it on our stress and performance frameworks that have been implemented since that time. Ill go ahead and close the issue, but if it arises again we can use this going forward.


Added color for .ace_invisible

The .ace_invisible class refers to RStudio's whitespace characters. Just a suggestion of an appropriate "feel" in line with other RStudio themes. I'll add comparison screenshots in an issue.

Awesome, thanks so much.
Fixes #7


Changed class comment to include all supported languages

Changed class comment to include all supported languages
Removed trailing whitespaces/tabs on one line

Thanks!


Fix leak of a RAND_POOL in error condition

Fixes Coverity 1636676

This pull request is ready to merge

Merged to the master branch. Thank you for the reviews.


Enable Header Credentials / Update to Gradle 6

#19 Feature Request: Support HttpHeaders in Server Configuration

Added support for header credentials

header credentials must be place under settings->servers->server->configuration->httpHeaders->property in the settings.xml
basic authentication is preferred if both basic auth credential and http header credential types are provided.

Maven dependency versions updated to 3.6.3
Updated Gradle wrapper to 6.1.1 (support for Java 11)
Build-scan plugin deprecated in Gradle 6 in favor of gradle.enterprise plugin. This has been transitioned.
Updated build config and settings files to Kotlin
Updated readme to reflect supported credential types

@mark-vieira, is there any update on this PR? Support for httpHeaders would be great for Gitlab package registries.

For anyone that want to support this: @acidbee publish it into gradle plugins repository
https://plugins.gradle.org/plugin/co.coxes.maven-settings-gitlab


Cassiano Montanari - MongoDB - Exercicio 1, 2, 3 4 e 5 resolvidos

Cassiano Montanari - MongoDB - Exercicio 1 e 2 - resolvidos

Sobrando formatação aqui https://github.com/cassianomon/be-mean-instagram-mongodb-exercises/blob/4e4ca820e35420f5563d537c26ac2f0d2008795e/class-01/class-01-resolved-cassianomon-cassiano-montanari.md

Sobrando formatação aqui tb https://github.com/cassianomon/be-mean-instagram-mongodb-exercises/blob/a5c5128bdb8f8724c667f9a2aeda8c762c69999a/class-02/class-02-resolved-cassianomon-cassiano-montanari.md

Aqui tb https://github.com/cassianomon/be-mean-instagram-mongodb-exercises/blob/7aebd4d3c77dd5f312a43fca1e29933f240ae914/class-03/class-03-resolved-cassianomon-Cassiano-Montanari.md

Melhor arrumar tudo e dai enviar novamente.


Alternative support JSX in tabrisjs

In traditional tabris development cycle, we may create many component from scratch.
We may  need a better method to improve these job.
From react and nativescript, they used JSX to slove the proble, but tabris not.
I hope tabris js can support smarter solution (eg. JSX options) in future.
Currently, I have found a alternative solution(but not smart) for using JSX in tabrisjs.
First, install babel js transcripter
https://babeljs.io/docs/setup/

npm install --save-dev babel-cli babel-preset-es2015

Second, install jsx transcripter plugin(i'm not sure use both or transform-h-jsx only)
https://babeljs.io/docs/plugins/syntax-jsx/ , https://www.npmjs.com/package/babel-plugin-transform-h-jsx

npm install --save-dev babel-plugin-syntax-jsx babel-plugin-transform-h-jsx

Third, setup .babelrc like following(may be different):
{
	"presets": ["es2015"],
	"plugins": ["transform-es2015-modules-commonjs",
		"transform-h-jsx",
		"syntax-jsx"]
}

Then, we need to add a module to export a method called "h":
import tabris from "tabris";
export default function h(obj,param, child = []) {
    let o = new obj(param)
    if(child.length > 0) o.append(child);
    return o;
}

After all , in your main development, before you using JSX, you may include the module which includes the h method, and the following sample program will help you to study this alternative method.
In this case, the module h is stored in the lib folder.
import 'tabris';
import h from "./lib/h";
let items = [
	{id:0, name:"a"},
	{id:1, name:"b"},
	{id:2, name:"c"},
]
let a =
	<tabris.Composite id="scroll" left="0" top="0" >
		<tabris.TextView id="lblA" left="10" top="10" text="Title A" />
		<tabris.TextView id="lblB" left="10" top="prev()" text="Title B"/>
		<tabris.TextView id="lblC" left="10" top="prev()" text="Title C" />
		<tabris.Picker id="picker" left="10" top="prev()" items={items} itemText={(i)=>i.name} />
	</tabris.Composite>;
a.appendTo(tabris.ui.contentView);

Check this out:
http://eclipsesource.com/blogs/2016/02/29/tabris-js-declarative-ui-in-100-lines-of-functional-programming/

Like this?
I will update the event handle support in later.
const t = require("tabris");

/**
 * transform module tree
 */
function C(b) {
	return h(b.o, b.p, b.c);
}
/**
 * Main function to transform Component from param's object
 */
function h(o,p={},c=[]) {
	if(typeof p !== "object") p = {};
	let obj =( typeof o === "object") ? o : new o(p);
	if(Array.isArray(c) && c.length > 0) {
		obj.append(
			c.map(function(_p) {
				if(
					_p.hasOwnProperty("o") &&
					_p.hasOwnProperty("p") &&
					_p.hasOwnProperty("c")
					)
					return h(_p.o, _p.p, _p.c);
				return _p;
			})
		);
	}
	return obj;
}
/**
 * predefined component based transform
 */
const COMP = (param, child=[]) => h(t.Composite, param, child);
const TEXT = (param) => h(t.TextView, param);
/**
 * param tree example
 */
C(
	{o:t.Composite, p:{id:"c1",centerX:0,top:10},c:[
		{o:t.TextView, p:{id:"lbl1", top:0, centerX:0, text:"lbl1"},c:[]},
		{o:t.TextView, p:{id:"lbl2", top:"prev()", centerX:0, text:"lbl2"},c:[]},
		{o:t.TextView, p:{id:"lbl3", top:"prev()", centerX:0, text:"lbl3"},c:[]},
		TEXT({id:"lbl4", top:"prev()", centerX:0, text:"lbl4"})
	]}
).appendTo(tabris.ui.contentView);
/**
 * Component tree example
 */
COMP({centerX:0, bottom:10}, [
	TEXT({text:"Line 1", top: 0, centerX:0}),
	TEXT({text:"Line 2", top: "prev()", centerX:0}),
	TEXT({text:"Line 3", top: "prev()", centerX:0}),
	TEXT({text:"Line 4", top: "prev()", centerX:0}),
]).appendTo(tabris.ui.contentView);

With many code editors coming with JSX support, that sounds like an interesting idea. What does the babel plugin produce?
Chances are that JSX support can be implemented outside of Tabris.js, either as a shim for the output of the babel plugin, or as a custom babel plugin...

Tabris.js 2.0 RC2 supports JSX, but currently only with typescript.

It technically also works with JS via babel or tsc, we would just have to document the setup. Not sure why one would use it without TypeScript though.

We have documented now how to use it with JavaScript vis the TypeScript compiler. I would consider this fixed, since the result is the same. If there is a definite need to use Babel, please re-open.


Substitute command modifies buffer when error is thrown inside sub-replace-expression

" aaa bbb aaa
" aaa

fun! Foo()
    throw 'error'
endfun

try
    %s/aaa/\=Foo()/g
catch 'error'
    echo 'error caught'
endtry

Running this will replace the matches on line 1 with an empty string, notwithstanding the error - in general, the matches on the first matching line will always be replaced by an empty string, the others remain untouched.
Experimented a little more with it: if e.g. I force an E471 inside Foo (throw without arguments), or write some gibberish to get an E492, then the behavior is the same, but when I run the substitute command without a try-catch wrap, then in these cases all of the matches will be substituted by a 0 (the custom error does the same as before).
A real-life case where I ran into this: https://stackoverflow.com/questions/54619021/vim-substitutes-empty-string-when-exception-is-thrown-inside-sub-replace-express

So, what is the problem?  If you use try-catch then errors will be handled differently, since that's what you asked for.

Sorry if I was not clear enough: the problem is the buffer modification itself (in both cases) when - ideally - nothing should happen (since an error has been thrown, there's no proper value to substitute with, but a substitution happens anyway).

Sorry if I was not clear enough: the problem is the buffer
modification itself (in both cases) when - ideally - nothing should
happen (since an error has been thrown, there's no proper value to
substitute with, but a substitution happens anyway).

Well we could do something like this, but I wonder if it will cause
trouble:
--- ../../git/vim81/src/ex_cmds.c	2019-03-17 16:59:38.586201879 +0100
+++ ex_cmds.c	2019-03-24 22:26:56.525595616 +0100
@@ -5574,7 +5574,12 @@
sub_firstlnum - regmatch.startpos[0].lnum,
sub, sub_firstline, FALSE, p_magic, TRUE);
#ifdef FEAT_EVAL

  /* Don't keep flags set by a recursive call. */

  // If getting the substitute string caused an error, don't do

  // the replacement.

  if (aborting())

      goto skip;

  // Don't keep flags set by a recursive call.
  subflags = subflags_save;
  if (subflags.do_count)
  {

--
Two percent of zero is almost nothing.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

In addition to not modifying the buffer, any further calls to the replacement-expression should be stopped, too. After all, that's the purpose of throwing an exception: Getting out of the current context, which here is the loop-like invocation from :substitute. That would save the replacement-expression from maintaining an s:isAborted state itself. (I actually had to implement such workarounds in some of my plugins due to the current behavior.)
So, if a replacement-expression :throws an exception, there should be no further invocations from the same :substitute command, neither from the /g flag nor from additional lines in [range]. Previous (successful) invocations and replacements should be kept; if the exception happens on the first replacement, the buffer should not be modified by the command at all.

In addition to not modifying the buffer, any further calls to the
replacement-expression should be stopped, too. After all, that's the
purpose of throwing an exception: Getting out of the current context,
which here is the loop-like invocation from :substitute. That would
save the replacement-expression from maintaining an s:isAborted
state itself. (I actually had to implement such workarounds in some of
my plugins due to the current behavior.)
So, if a replacement-expression :throws an exception, there should
be no further invocations from the same :substitute command, neither
from the /g flag nor from additional lines in [range]. Previous
(successful) invocations and replacements should be kept; if the
exception happens on the first replacement, the buffer should not be
modified by the command at all.

That already happens, since the main loop in do_sub() checks aborting().
That's also why using the try-catch or :throw only changes one line,
instead of all lines.
--
An actual excerpt from a classified section of a city newspaper:
"Illiterate?  Write today for free help!"
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

That already happens, since the main loop in do_sub() checks aborting(). That's also why using the try-catch or :throw only changes one line, instead of all lines.

But shouldn't we undo the wrongly replaced empty line in case of an exception/error?

Christian wrote:

That already happens, since the main loop in do_sub() checks
aborting(). That's also why using the try-catch or :throw only
changes one line, instead of all lines.

But shouldn't we undo the wrongly replaced empty line in case of an
exception/error?

What wrongly placed empty line?  With the check for aborting() nothing
is substituted.
--
There are three kinds of persons: Those who can count and those who can't.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


Simple Open Folder should default to current folder (or parent)

Issue Type: Bug
Open Folder defaults to some other folder when a folder is already open. It would make sense to use the current folder as the default (or maybe its parent folder).
VS Code version: code-oss-dev 1.36.0 (Commit unknown, Date unknown)
OS version: Darwin x64 18.6.0
Remote OS version: Linux x64 4.9.125-linuxkit

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
3, 3, 2

Memory (System)
16.00GB (0.08GB free)

Process Argv
.

Screen Reader
no

VM
0%

Item
Value

Remote
Dev Container

OS
Linux x64 4.9.125-linuxkit

CPUs
Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (4 x 2193)

Memory (System)
7.79GB (1.49GB free)

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

vscode-open-in-github
ziy
1.3.6

remote-containers
ms-
0.61.0

@chrmarti it already should be using the parent folder. I tested with a remote container and locally, and I'm seeing the parent folder as the starting point of the picker. Were there any other steps you took to open the folder?

With a new self-hosting container it defaults to /headless/.vscode-server-oss/data/Machine/ when the current folder is /workspaces. Not sure where that path comes from.

This a Mac vs. Windows difference. On Mac, it is Open File or Folder, on Windows, it is two separate commands. Because it is one command on Mac, we always make the starting folder relative to the last open file. When the commands are separate on Windows, we make the Open Folder command start with a path relative to the currently open folder.

"Open Folder" is the more frequently used command on Windows and Linux (77% more often than "Open File"). It would make sense to optimize openFileFolder for the folder case by opening at the parent of the last folder. @bpasero What do you think?

@chrmarti you gave some statistics but I cannot recall any user complaining about this so far, so changing this is asking for trouble maybe? And I assume this is a change that has an impact on both native and custom dialog.

I'm suggesting the change based on data and am one of the users who would benefit from it. 🤷♂
There will always be users complaining about change...

I feel this will backfire. If I had to pick a solution for this, I would add the "Open File" and "Open Folder" as commands on macOS as well for those that want to distinguish and then we can use better default paths. These commands should probably not show up anywhere but the command palette and keybindings editor.

I suggest to make this a feature request then. As suggested by you, this could also be implemented as a setting that changes where the default folder is read from for 'open file or folder' on MacOS.