Trollius Rasing AssertionError

When running some of the examples, AssertionError is being raised. For example:
python examples/tweets/manage.py
22:11:27 [p=2197, t=140624344975104, INFO, pulsar.arbiter] mailbox serving on <IP_ADDRESS>:58411
22:11:27 [p=2197, t=140624344975104, INFO, pulsar.arbiter] started
22:11:27 [p=2197, t=140624344975104, INFO, pulsar.pulsards] started
22:11:27 [p=2197, t=140624344975104, INFO, pulsar.pulsards] pulsards serving on <IP_ADDRESS>:6410
22:11:27 [p=2197, t=140624344975104, ERROR, pulsar.twitter_server] Please specify the "twitter_api_key" parameter in your config.py file
22:11:27 [p=2197, t=140624344975104, INFO, pulsar.server] started
22:11:27 [p=2204, t=140624344975104, INFO, pulsar.server.worker] server serving on <IP_ADDRESS>:8060
22:11:27 [p=2204, t=140624344975104, INFO, pulsar.server.worker] started
22:11:28 [p=2197, t=140624344975104, ERROR, trollius] Exception in callback <pulsar.async.eventloop.LoopingCall object at 0x7fe59d3ea0f0>()
handle: <TimerHandle when=5983.248157817 <pulsar.async.eventloop.LoopingCall object at 0x7fe59d3ea0f0>()>
Traceback (most recent call last):
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/apps/data/stores/pulsards/startds.py", line 41, in start_store
    yield client.ping()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 65, in yield_from
    value = yield From(result)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 388, in _wakeup
    value = future.result()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/futures.py", line 287, in result
    raise self._exception
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/tasks.py", line 251, in _step
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 51, in yield_from
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/apps/data/stores/redis/store.py", line 78, in execute
    connection = yield self._pool.connect()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 65, in yield_from
    value = yield From(result)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 388, in _wakeup
    value = future.result()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/futures.py", line 287, in result
    raise self._exception
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/tasks.py", line 251, in _step
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 51, in yield_from
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/clients.py", line 70, in connect
    connection = yield self._get()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 65, in yield_from
    value = yield From(result)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 388, in _wakeup
    value = future.result()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/futures.py", line 287, in result
    raise self._exception
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/tasks.py", line 251, in _step
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 51, in yield_from
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/clients.py", line 98, in _get
    connection = yield self._creator()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 65, in yield_from
    value = yield From(result)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 388, in _wakeup
    value = future.result()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/futures.py", line 287, in result
    raise self._exception
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/tasks.py", line 251, in _step
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/apps/data/stores/redis/store.py", line 99, in connect
    protocol_factory, host, port))
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 388, in _wakeup
    value = future.result()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/futures.py", line 287, in result
    raise self._exception
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/tasks.py", line 251, in _step
    result = coro.throw(exc)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/base_events.py", line 600, in create_connection
    raise exceptions[0]
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/base_events.py", line 587, in create_connection
    yield From(self.sock_connect(sock, address))
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/futures.py", line 388, in _wakeup
    value = future.result()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/futures.py", line 287, in result
    raise self._exception
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/selector_events.py", line 403, in _sock_connect_cb
    wrap_error(_get_socket_error, sock, address)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/py33_exceptions.py", line 144, in wrap_error
    return func(*args, **kw)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/selector_events.py", line 46, in _get_socket_error
    raise OSError(err, 'Connect call failed %s' % (address,))
ConnectionRefusedError: [Errno 111] Connect call failed ('<IP_ADDRESS>', 6410)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/events.py", line 151, in _run
    self._callback(*self._args)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/eventloop.py", line 88, in __call__
    self._continue()
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/pulsar/async/eventloop.py", line 97, in _continue
    loop._add_callback(handler)
  File "/opt/pixspan/app/pixdev_3/lib/python3.4/site-packages/trollius/base_events.py", line 1017, in _add_callback
    assert not isinstance(handle, events.TimerHandle)
AssertionError

Thanks, I'll have a look


Jawbone backend problem, AuthCanceled exception.

Traceback:
http://pastebin.com/zqKCknCb
So everything is successful, I can see jawbone message
![message]
(http://i.imgur.com/pb4zRat.png)
With this url:
https://jawbone.com/auth/oauth2/auth?scope=basic_read+extended_read+sleep_read+move_read&state=xPjRSrjw97UC7FS5Mi0Ocw2nuFWcItlK&redirect_uri=http://www.test1.com:8000/complete/jawbone/&response_type=code&client_id=7wlC_4ZiucI
Then I click agree (with or without this checkbox) and exception is raised. The traceback on pastebin link is above.
The problem is obviously somewhere in python-social-auth, because basically the jawbone's work is done (you can see url in traceback, it has &code=mGKV_178jYzP0rLxJmQz-DFgyTmy-xwRh7wBkytH1pT_tpMD-scm8s03UMN7dzyJyerH6h6H0l2-fL7a4wREe4eyzy0s7TLyCQDfEZZgjGTOLvajaxYQwT249X_514- ).
I tried with or without custom pipeline.
I also have working code for attaching twitter and facebook accounts to django user account. And they work perfectly.

I've just run into this same problem. Did you ever figure out what it was, or a workaround?

Yep, I've fixed it.
Check this: https://github.com/omab/python-social-auth/pull/498


zen mode: We will not restore zen mode, need to clear all zen mode state

fixes #64198
With some storage changes now the zen mode does not properly clear its state on shutdown.
This PR is my atempt of fixing #64198, however it does not solve the issue
What is the actualy difference that we did to the workspace storage and what is the recommend way to solve this?
I basically nead to clear some state before workbench gets shutdown?

@isidorn commented in https://github.com/Microsoft/vscode/issues/64198#issuecomment-443678732


[OTHER] Network selector on the frontpage

What would you like to share?
The fact that Dev Protocol is already multi-chain capable is not apparent from the first view.
Putting a component similar to the network selector in the navigation on the front page will make it easier for users to know the multi-chain.
This is a simple mockup created in the browser inspector:

Additional information
No response
Code of Conduct

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

We have started a bounty for this issue!
https://app.chainwhiz.app/bounty/61f8945de60b5800180d941a

I have a few doubts, can someone clarify them?

To my knowledge, the component should only have the network name displayed.
There shoudln't be any connect button functionality,unlike navbar, right?

There shouldn't be any connect button functionality, unlike navbar, right?

@rajashree23 Yes, in my opinion, there is no connect button there.


[gdal] Fix gdal JPEG driver on iOS

This PR fixes the gdal JPEG driver on iOS by relying on gdal's internal jpeg library instead of the default external library. The issue was detected by our QField iOS users who noticed JPEG raster datasets (as well as JPEG encoded geotiffs, mbtiles, etc.) would not render on their mobile device.

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

@microsoft-github-policy-service agree

Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags.

Alright, closing this for now as an issue filed upstream got me to rethink this and figure out what the issue at play is here (see https://github.com/OSGeo/gdal/issues/7904#issuecomment-1578656103)
@dg0yt , @LilyWangLL , thanks to both of you for your responsiveness.


Console color doesn't reset after error when output is redirected

Describe the bug
After some errors, console color doesn't reset. This is similar to https://github.com/Azure/azure-cli/issues/6080.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
For example, but not limited to this example:

az login
wait for token expire
az keyvault secret list --vault-name somekeyvault
az prints: Get Token request returned http error: 400 and server response: {"error":"interaction_required","error_description":"AADSTS50078: Presented multi-factor authentication has expired due to policies configured by your administrato...
echo Hey
"Hey" is now red

Expected Behavior
Console color resets to original color.
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.6.0 *

Extensions:
aks-preview 0.4.50
azure-devops 0.18.0

Additional Context
❯ $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

add to S172

Hi @scabana, are you redirecting the result of az keyvault secret list --vault-name somekeyvault to somewhere else? If so, the only fix is to manually disable color (introduced in https://github.com/Azure/azure-cli/pull/12601) following CLI configuration values and environment variables with the no_color config.
This is a bug with colorama (https://github.com/tartley/colorama/issues/200) out of our control.

Hi,
It's exactly that. I'll rename the issue. Should this issue be kept opened until a proper fix can be provided?

Yes. The fix https://github.com/microsoft/knack/pull/209 is on its way!

Got similar issue with az pipelines variable-group list

Got similar issue with az pipelines variable-group list

@czmirek, this is definitely caused by the colorama bug which is triggered by redirecting the stdout to ConvertTo-Json. https://github.com/microsoft/knack/pull/209 has been merged and the next version of CLI 2.18.0 released by S181 at 2020-01-19 will get rid of this issue.

@czmirek, this is definitely caused by the colorama bug which is triggered by redirecting the stdout to ConvertTo-Json. https://github.com/microsoft/knack/pull/209 has been merged and the next version of CLI 2.18.0 released by S181 at 2020-01-19 will get rid of this issue.

Duplicate of #6080.

Duplicate of #6080.

Duplicate of #6080

Duplicate of #6080

This issue has been fixed. Please see https://github.com/Azure/azure-cli/issues/6080#issuecomment-763294594 for the solution.

This issue has been fixed. Please see https://github.com/Azure/azure-cli/issues/6080#issuecomment-763294594 for the solution.


BigValue does not work in Each Loop

Bug Description
Cannot iterate through rows using a BigValue component.
This does work in the Value component.
Severity

[ ] High - I'm not able to use Evidence until this bug is fixed
[x] Medium - I'm able to use Evidence, but a feature I need to use is not working
[ ] Low - I'm able to keep using Evidence as normal, but flagging this for the team to fix

Expected Behavior
Displays one BigValue per row in the data
Error Messages and Screenshots

Steps To Reproduce

Workarounds

Or use a Value component

Suspect this block is informative: https://github.com/evidence-dev/evidence/blob/233c0a8bd8cb2f837d7331023c85364d2cc97be5/packages/core-components/src/lib/unsorted/viz/Value.svelte#L36


add PWA feature

add PWA feature cache, full screen, install the app

You added the Thai translation. Can you make it a separate PR, so that it would be easier to review?


Adds reduced motion 🙂

@argyleink Thanks Adam! Looks good. I might adjust things a bit to also handle the toggle (turn off and on) case later, but for now it's great!
Thank you!


F.sphashquery() shows bug in cpu mode

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior

Above the two codes, I take variable on cpu to F.sphashquery(), it shows bug. However, I take variable on gpu to F.sphashquery(), it is good.
Could you help me to solve the problem?
My torchsparse Library is torchsparse-2.1.0+torch112cu113-cp39-cp39-linux_x86_64.
Expected Behavior
fix it
Environment
- GCC: 9.4.0
- PyTorch: 1.12.1
- PyTorch CUDA: 11.3
- TorchSparse: 2.1.0+torch112cu113

Anything else?
None

@ys-2020, could you take a look at this issue?

Nobody answer？

Hi @Shadow581. Sorry for the late reply. We have temporarily deprecated the cpu version of sphashquery() before. And we are currently working on this problem.

@ys-2020  ok，thanks

Hi @Shadow581 , we have solved this problem and update the wheels in our pypi sever. Could you please reinstall torchsparse v2.1.0 with python -c "$(curl -fsSL https://raw.githubusercontent.com/mit-han-lab/torchsparse/master/install.py)"? Thank you again for bringing this issue to our attention.


Deprecate old packages and publish the updated ones

[x] Deprecated sonarwhal-rule-chisel
[x] Deprecated sonarwhal-rule-jsll

[x] Release webhint-hint-chisel.


Old request showing as new

Subject: Old request showing as new
Description:
Got email notification for 7 month old request, signed on
Results:
Getting notification and email, not relevant/active
Backend version: develop-f028e8e2
Frontend version: develop-f028e8e2
User Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Mobile Safari/537.36
Page: https://couchers.org/messages/request/63453
User: onebasejumper (159)

Unclear


How to enable trusted proxy?

How to enable trusted proxy? Please guide.

Use issues to report bugs, please post your questions on the forums or better still search the forums for existing solutions.


Add missing instructions to translations

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #2420

PR #2492   👈

This comment was auto-generated by Graphite.


Update build instructions to use upstream binary packages

The build instructions are rather outdated, as we don't need to build any upstream packages from source anymore.
The old instructions have probably lead to issues like #413

Codecov Report

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

@@          Coverage Diff           @@
##             foxy    #419   +/-   ##
======================================
  Coverage        ?   3.73%
======================================
  Files           ?      16
  Lines           ?    1071
  Branches        ?     212
======================================
  Hits            ?      40
  Misses          ?     942
  Partials        ?      89

Flag
Coverage Δ

unittests
3.73% <0.00%> (?)

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

Continue to review full report at Codecov.

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


jobs: full refactoring for job module

A full refactoring for the jobs module, hope it makes easier in 6.0 jobs module renewing.
Constructure
Class Bars was moved into bars.ts, and those code related to player is moved to a new class Player, code related to log parsing or events data from C# plugin is moved to a new class JobsEventEmitter.
Now the structure is like:

file
class
feature

jobs.ts
none
entry of jobs module, initialize several classes

bars.ts
Bars
helds HTML DOM nodes, expose some API that can add or modify HTML nodes

event_emitter.ts
JobsEventEmitter
register overlay plugin listener and provides event subscription, do some pre-process on event data. Many of other classes subscribe event from it.

player.ts
Player
mentaining player data, this class is also an event emitter that expose some API to ease event subscribing. When player's status changed, the corresponding event emittes.

components/index.ts
ComponentManager
the entry class of jobs module, register events and invoke methods from Bars and other job components.

component/base.ts
BaseComponent
the father class of all jobs components, held instances of Player and Bars and so on, register events and provide methods for overriding.

Event Handling
I imported eventemitter3 which acts just like the event module of NodeJS does. So that I can split out several blocks that do different things, would improve the readability a bit I think.
Job Components
Now all "components" are classes that inherit BaseComponent in ui/jobs/component/base.ts, BaseComponent would register the most popular events and expose several onXxx methods that can be overridden by derived classes.
Job Components can also access this.player, this.bars or else for their exposed API or events.
User Customisation (Incomplete)
I didn't find a proper way to provide user customisation.
My feeling is like to expose a field in Options, for example:
// ui/jobs/jobs_options.ts
export type JobsOptions = {
  // ...
  OverrideComponent: (job: Job, override: (Component: typeof BaseComponent) => BaseComponent) => void;
  // ...
}

// user/jobs.js
Options.OverrideComponent('BLM', (BLMComponent) => {
  return class OverrideBLMComponent extends BLMComponent {
    // hide buffs list and hp bar
    shouldShow = { buffsList: false, hpBar: false };

    // overrides others, like access `this.player.on('mp', ({ mp }) => {});` to get alert on every mp updates
  }
});

The this.shouShow is typed here (although I didn't implemented it completely):
https://github.com/MaikoTan/cactbot/blob/f7c44e3c8b9a71432effd1dc80546eae51e085e4/ui/jobs/components/base.ts?_pjax=%23js-repo-pjax-container%2C div[itemtype%3D"http%3A%2F%2Fschema.org%2FSoftwareSourceCode"] main%2C [data-pjax-container]#L11-L19
https://github.com/MaikoTan/cactbot/blob/f7c44e3c8b9a71432effd1dc80546eae51e085e4/ui/jobs/components/index.ts?_pjax=%23js-repo-pjax-container%2C div[itemtype%3D"http%3A%2F%2Fschema.org%2FSoftwareSourceCode"] main%2C [data-pjax-container]#L175-L184
Users can access this.bars this.player this.emitter for most data in-game or subscribe events, but there are problems such as that user cannot turn off boxes they don't like because now those are written in the constructors, or access global variables like kAbility EffectId.

Note
I have only caster and healer at the max level, so I can only make sure that components for casters and healers works properly for now.
I'll appreciate if there is someone test it with all jobs.

This is a lot of changes and is really hard to review.  I will try to take a look at this and test this during the next week, but it is a lot to understand.  I tried to say this on your other PR, but in general it is much easier to break changes like this up into smaller refactorings where possible rather than trying to do everything in one PR that changes everything.

I think I have only imported a new dependency eventemitter3 that provides APIs just like event from Node native?
I refactored this module but basically didn't change its features, so maybe you can checkout codes and run it locally, rather than checking the compare view on Github.
I try my best to explain that the roles of files I modified in the module and their features in the description.

I will try to take a look today.  I have all jobs at 80 so I should be able to test everything.

I also once saw:
overlay_plugin_api.ts:93 TypeError: Cannot read properties of undefined (reading 'toString')
    at MNKComponent.onJobDetailUpdate (mnk.ts:53)
    at EventEmitter.wrapper (player.ts:274)
    at EventEmitter.emit (index.js:203)
    at Player.emit (player.ts:483)
    at Player.processPlayerChangedEvent (player.ts:386)
    at JobsEventEmitter.<anonymous> (player.ts:179)
    at JobsEventEmitter.emit (index.js:181)
    at event_emitter.ts:49
    at overlay_plugin_api.ts:91
    at Array.forEach (<anonymous>)

... but was unable to reproduce.  Maybe there's some race where the job changes and we try to evaluate the job detail based on the wrong job so it has undefined fields? I think this is minor, but something worth thinking about if you have any ideas.

I also once saw:

overlay_plugin_api.ts:93 TypeError: Cannot read properties of undefined (reading 'toString')

    at MNKComponent.onJobDetailUpdate (mnk.ts:53)

    at EventEmitter.wrapper (player.ts:274)

    at EventEmitter.emit (index.js:203)

    at Player.emit (player.ts:483)

    at Player.processPlayerChangedEvent (player.ts:386)

    at JobsEventEmitter.<anonymous> (player.ts:179)

    at JobsEventEmitter.emit (index.js:181)

    at event_emitter.ts:49

    at overlay_plugin_api.ts:91

    at Array.forEach (<anonymous>)

... but was unable to reproduce.  Maybe there's some race where the job changes and we try to evaluate the job detail based on the wrong job so it has undefined fields? I think this is minor, but something worth thinking about if you have any ideas.

So it is happened on a job change? I think I have code that compares job name before emitting the job detail, but I am not very sure if there are bugged conditions or something.
But I afraid that I can't test more as the FFXIV server is going to mentain for a whole day at 18:00 today (japan time), and I have bought Early Access which means I cannot access 5.0 after mentainance any more. Maybe I can only rebase this after 6.0 launched

I also once saw:

overlay_plugin_api.ts:93 TypeError: Cannot read properties of undefined (reading 'toString')

    at MNKComponent.onJobDetailUpdate (mnk.ts:53)

    at EventEmitter.wrapper (player.ts:274)

    at EventEmitter.emit (index.js:203)

    at Player.emit (player.ts:483)

    at Player.processPlayerChangedEvent (player.ts:386)

    at JobsEventEmitter.<anonymous> (player.ts:179)

    at JobsEventEmitter.emit (index.js:181)

    at event_emitter.ts:49

    at overlay_plugin_api.ts:91

    at Array.forEach (<anonymous>)

So it is happened on a job change? I think I have code that compares job name before emitting the job detail, but I am not very sure if there are bugged conditions or something.

Yeah, it happened on a job change, but only once.

But I afraid that I can't test more as the FFXIV server is going to mentain for a whole day at 18:00 today (japan time), and I have bought Early Access which means I cannot access 5.0 after mentainance any more. Maybe I can only rebase this after 6.0 launched

Ack.  I am sorry it took me so long to get to this.  I was out of town and also wanted to finish getting everything ready for the alpha plugin changes as well.

I do think the crafting CP bar and the missing mp bar colors need to get fixed before this is merged, but the one off toString error seems fine to just see if we ever see it again.

I'll try to fix the mana-bar issue later, as it needs more debugging things; and for the ninja/bard issue, I asked Echoring to test them on the Chinese server.

Thanks for all the work.  Obviously I can't test the mp bar change, but it looks good to me.  I'm going to merge this now so we can move forward with this and new changes can come on top of this (rather than anybody else trying to submit changes before this is merged).


Put -s option back in.

I removed -s (force Slurp) option, but I find I need it for example when I was sending to Kraken and I wanted the confirmations number to stay up to date, but it wasn't because it was cached. I had to physically delete the .bin files. With -s option I wouldn't have to do that.

It's super easy. Just put option back in, record a bool and add it to the line that checks if we need to re-sync.


Adding remote project folders could be easier

I'm working in Windows with WSL. If I have a Vscode session open in WSL and I try to add the current folder as a Folder project it will give me something like this:
\\wsl$\Ubuntu\home\lewy\dev\projectFolder
However, if I use the dashboard to open this project it will open in a standard Windows VSCode session which is not what I want.
I need the URL to look like this:
vscode-remote://wsl+Ubuntu/home/lewy/dev/three.js
The only way I have found to add this URL is to create an SSH project and copy in the in vscode-remote://wsl+Ubuntu URL.
I have two suggestions for making this easier:

allow me to manually edit the path of a Folder project. At the moment if I try to edit the path it just takes me back to the Windows open folder menu. But if I could just hit edit and change the start of the path to ``vscode-remote...` it would make things easier.
Rename SSH Target to Remote Project since it's not only SSH folders that can be added here.

Beyond those it would be great to recognize when VSCode is open in a remote session and automatically prepend the correct data to the path. The Project Manager extension currently does this.

Thanks for the remarks! I need to have a closer look on that as I've never really worked with WSL or VSCode remote sessions myself.

Beyond those it would be great to recognize when VSCode is open in a remote session and automatically prepend the correct data to the path. The Project Manager extension currently does this.

What data is relevant here? vscode-remote://wsl+Ubuntu?

What data is relevant here? vscode-remote://wsl+Ubuntu?

I'm not sure. Maybe you can assume a path starting with \\wsl$ is a wsl project and that you can just do a replace with \\wsl$\xxx\ -> vscode-remote://wsl+xxx/?
Or maybe look at the code for Project Manager and see what they do?

Same issue here.
As all my projects are in WSL2, it becomes quite unusable.

Same for me, I really need to use every day wsl2 for my projects and University work and i cannot use this extension anymore because of this. It'd be really cool to have a feature "WSL folder" or "remote proejct/window" etc.

Should it stay that way?


search.dt is triggered on ordering

The search.dt event is triggered also when the user is ordering, i.e is clicking on a table header. I think this may be a little blunder because there also is the overlapping order.dt event. It is not logical having two different events that both is triggered on the same action. Furthermore, talking in logic terms, there is no search performed when ordering. Reference for the issue -> https://stackoverflow.com/q/45037459/1407478

Actually, this is technically correct as DataTables does do a filter when sorting is applied to the table.
This is the line of code that triggers that. The _fnReDraw function will trigger both order and search.
The reason it is done this way is that the order is applied to the entire data set, and then rather than also applying the sort to the filtered data set, it applies the filter again. It would need to be one or the other - neither optimal perhaps, but this is the way I've chosen to implement it.


Ported to 1.19.2

I love it :)

Not sure how to make it suggest a new branch tho

Thanks for the port! I noticed an issue with the letters display so I went ahead and fixed it but other than that looks good.


fix(warning): stringify args in warn handler

close #10409

a is undefind，Error, vue version is  v3.4.25

@xukang0222 create a new issue and provide a minimal reproduction will be helpful, thx!
In general, it's not recommended to request help in a closed PR.


Release 1.3.0

Signed-off-by: David Ko<EMAIL_ADDRESS>

Verified on https://github.com/innobead/charts/tree/1.3.0-ga
Result pass

Fresh install - Pass

Upgrade from v1.2.4 to v1.3.0 - Pass

Helm install v1.2.4
Create deployment and write data
Helm upgrade to v1.3.0
Upgrade engine image
Verify pod data

Uninstall - Pass

Waiting to https://github.com/longhorn/longhorn/pull/4114 merge first.


stdenv: add meta.repository (fixed)

Description of changes
packages assume src won't be evaluated on unsupported platforms, so we match that assumption.
hopefully this doesn't break anything else.

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.

@AndersonTorres @a-n-n-a-l-e-e because of their role in the previous PR.

the fix to serapi seems to be getting deleted in the merge, unsure how to fix.

i think this should work

something is throwing an error and i don't know what.  if anyone can tell me what package is failing to eval, or why ofborg-eval dosn't show any error logs, that would be greatly appreciated.

if this doesn't work, then i'll try fixing eval errors at the package end instead of the check-meta end.  this could actually be done by manually adding repository to failing packages' meta attributes

results from various permutations of the change. diffs below.

name
baseline
prlist %
prlist2 %
prlist3 %
prlist4 %

cpuTime
128.5
0.72
0.22
-0.66
-0.35

envs.bytes
6500151112.0
0.22
0.21
0.23
0.22

envs.elements
341667635.0
0.2
0.19
0.23
0.21

envs.number
235425627.0
0.24
0.22
0.22
0.22

gc.heapSize
19532808192.0
-0.09
-0.09
-0.09
-0.09

gc.totalBytes
39995440312.0
0.24
0.23
0.24
0.24

list.bytes
762081056.0
0.12
0.08
0.08
0.08

list.concats
17115912.0
0.0
0.0
0.0
0.0

list.elements
95260132.0
0.12
0.08
0.08
0.08

nrAvoided
272612023.0
0.19
0.15
0.17
0.14

nrFunctionCalls
217154209.0
0.24
0.23
0.19
0.19

nrLookups
109933236.0
0.42
0.39
0.39
0.39

nrOpUpdateValuesCopied
605984516.0
0.12
0.12
0.12
0.12

nrOpUpdates
28428461.0
0.53
0.53
0.53
0.53

nrPrimOpCalls
121479871.0
0.27
0.16
0.16
0.16

nrThunks
334647453.0
0.34
0.31
0.35
0.35

sets.bytes
13825998032.0
0.22
0.22
0.22
0.22

sets.elements
810928496.0
0.19
0.19
0.19
0.19

sets.number
53196381.0
0.63
0.63
0.63
0.63

sizes.Attr
16.0
0.0
0.0
0.0
0.0

sizes.Bindings
16.0
0.0
0.0
0.0
0.0

sizes.Env
16.0
0.0
0.0
0.0
0.0

sizes.Value
24.0
0.0
0.0
0.0
0.0

symbols.bytes
2326781.0
0.0
0.0
0.0
0.0

symbols.number
167519.0
0.0
0.0
0.0
0.0

values.bytes
10257889848.0
0.32
0.29
0.33
0.33

values.number
427412077.0
0.32
0.29
0.33
0.33

using 127c06803636f1e2c1de2e63bd767cf39f8d6c2c
prlist.diff
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix
index 1cd1ae6dd72e..c092063a03e8 100644
--- a/pkgs/stdenv/generic/check-meta.nix
+++ b/pkgs/stdenv/generic/check-meta.nix
@@ -10,7 +10,9 @@ let
     concatMapStrings
     concatMapStringsSep
     concatStrings
+    filter
     findFirst
+    head
     isDerivation
     length
     concatMap
@@ -303,6 +305,10 @@ let
       (listOf str)
       str
     ];
+    repository = union [
+      (listOf str)
+      str
+    ];
     downloadPage = str;
     changelog = union [
       (listOf str)
@@ -440,6 +446,22 @@ let
     # -----
     else { valid = "yes"; });

+  # get the default value for the meta.repository field.
+  # the fetchFrom* fetchers set src.meta.homepage
+  getRepository = let
+    getSrcs = attrs:
+      filter (src: src ? meta.homepage)
+        (if attrs ? src
+         then [ attrs.src ]
+         else optionals (attrs ? srcs && isList attrs.srcs) attrs.srcs);
+    getHomePages = map (src: src.meta.homepage);
+    unlist = list:
+      # the following line should show up in the stack trace is src doesn't eval
+      # HINT: try adding meta.repository to your package if it fails to eval
+      if length list == 1
+      then head list
+      else list;
+    in attrs: unlist (getHomePages (getSrcs attrs));

   # The meta attribute is passed in the resulting attribute set,
   # but it's not part of the actual derivation, i.e., it's not
@@ -452,8 +474,9 @@ let
     let
       outputs = attrs.outputs or [ "out" ];
       hasOutput = out: builtins.elem out outputs;
-    in
-    {
+    in {
+      repository = getRepository attrs;
+
       # `name` derivation attribute includes cross-compilation cruft,
       # is under assert, and is sanitized.
       # Let's have a clean always accessible version here.

prlist2.diff
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix
index 1cd1ae6dd72e..a28f0c342ecd 100644
--- a/pkgs/stdenv/generic/check-meta.nix
+++ b/pkgs/stdenv/generic/check-meta.nix
@@ -10,7 +10,9 @@ let
     concatMapStrings
     concatMapStringsSep
     concatStrings
+    filter
     findFirst
+    head
     isDerivation
     length
     concatMap
@@ -303,6 +305,10 @@ let
       (listOf str)
       str
     ];
+    repository = union [
+      (listOf str)
+      str
+    ];
     downloadPage = str;
     changelog = union [
       (listOf str)
@@ -440,6 +446,20 @@ let
     # -----
     else { valid = "yes"; });

+  # get the default value for the meta.repository field.
+  # the fetchFrom* fetchers set src.meta.homepage
+  getRepository = let
+    getSrcs = attrs:
+      if attrs ? src
+      then
+        [ attrs.src ]
+      else
+        filter (src: src ? meta.homepage) attrs.srcs;
+    getHomePages = map (src: src.meta.homepage);
+    unlist = list:
+      if length list == 1 then head list
+      else list;
+    in attrs: unlist (getHomePages (getSrcs attrs));

   # The meta attribute is passed in the resulting attribute set,
   # but it's not part of the actual derivation, i.e., it's not
@@ -452,8 +472,9 @@ let
     let
       outputs = attrs.outputs or [ "out" ];
       hasOutput = out: builtins.elem out outputs;
-    in
-    {
+    in {
+      repository = optionals (attrs ? src.meta.homepage || attrs ? srcs && isList attrs.srcs && any (src: src ? meta.homepage) attrs.srcs) (getRepository attrs);
+
       # `name` derivation attribute includes cross-compilation cruft,
       # is under assert, and is sanitized.
       # Let's have a clean always accessible version here.

prlist3.diff
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix
index 1cd1ae6dd72e..4c1f6ce8e81f 100644
--- a/pkgs/stdenv/generic/check-meta.nix
+++ b/pkgs/stdenv/generic/check-meta.nix
@@ -10,7 +10,9 @@ let
     concatMapStrings
     concatMapStringsSep
     concatStrings
+    filter
     findFirst
+    head
     isDerivation
     length
     concatMap
@@ -303,6 +305,10 @@ let
       (listOf str)
       str
     ];
+    repository = union [
+      (listOf str)
+      str
+    ];
     downloadPage = str;
     changelog = union [
       (listOf str)
@@ -440,7 +446,6 @@ let
     # -----
     else { valid = "yes"; });

-
   # The meta attribute is passed in the resulting attribute set,
   # but it's not part of the actual derivation, i.e., it's not
   # passed to the builder and is not a dependency.  But since we
@@ -452,8 +457,17 @@ let
     let
       outputs = attrs.outputs or [ "out" ];
       hasOutput = out: builtins.elem out outputs;
-    in
-    {
+    in {
+      repository = let
+        srcs =
+          if attrs ? src then [ attrs.src ]
+          else filter (src: src ? meta.homepage) attrs.srcs;
+        unlist = list:
+          if length list == 1 then head list
+          else list;
+        hasRep = attrs ? src.meta.homepage || attrs ? srcs && isList attrs.srcs && any (src: src ? meta.homepage) attrs.srcs;
+        in optionals hasRep (unlist (map (src: src.meta.homepage) srcs));
+
       # `name` derivation attribute includes cross-compilation cruft,
       # is under assert, and is sanitized.
       # Let's have a clean always accessible version here.

prlist4.diff
diff --git a/pkgs/stdenv/generic/check-meta.nix b/pkgs/stdenv/generic/check-meta.nix
index 1cd1ae6dd72e..7895b1b2f5b9 100644
--- a/pkgs/stdenv/generic/check-meta.nix
+++ b/pkgs/stdenv/generic/check-meta.nix
@@ -10,7 +10,9 @@ let
     concatMapStrings
     concatMapStringsSep
     concatStrings
+    filter
     findFirst
+    head
     isDerivation
     length
     concatMap
@@ -303,6 +305,10 @@ let
       (listOf str)
       str
     ];
+    repository = union [
+      (listOf str)
+      str
+    ];
     downloadPage = str;
     changelog = union [
       (listOf str)
@@ -440,7 +446,6 @@ let
     # -----
     else { valid = "yes"; });

-
   # The meta attribute is passed in the resulting attribute set,
   # but it's not part of the actual derivation, i.e., it's not
   # passed to the builder and is not a dependency.  But since we
@@ -452,8 +457,16 @@ let
     let
       outputs = attrs.outputs or [ "out" ];
       hasOutput = out: builtins.elem out outputs;
-    in
-    {
+    in {
+      repository = let
+        srcs =
+          if attrs ? src then [ attrs.src ]
+          else filter (src: src ? meta.homepage) attrs.srcs;
+        unlist = list:
+          if length list == 1 then head list
+          else list;
+        in optionals (attrs ? src.meta.homepage || attrs ? srcs && isList attrs.srcs && any (src: src ? meta.homepage) attrs.srcs) (unlist (map (src: src.meta.homepage) srcs));
+
       # `name` derivation attribute includes cross-compilation cruft,
       # is under assert, and is sanitized.
       # Let's have a clean always accessible version here.

This needs to be squashed a bit btw.

i will squash once i'm sure everything is working properly.

@a-n-n-a-l-e-e updated

can you remove the files from the PR -- now the files just have comments which seem outdated. this PR should have 1 file and then squash the commits so we can move forward. thx.

what do you mean by "remove the files from the pr"?
will squashing do that, or do i need to do something else?

@a-n-n-a-l-e-e does this look good to you?

very short time

21 days of active discussion.

without changing much about their approach

it has been completely rewritten and the semantics have been changed.

I'd feel better if some more experienced voices were involved

if anyone with relevant experience with stdenv is available in a timely manner, then sure, but i'm not sure that's the case.

very short time

21 days of active discussion.

<sigh> @AndersonTorres proposed splitting the PR into two parts along the basis of whether repository should be populated from src on March 28. @a-n-n-a-l-e-e merged the PR on March 29. That was a very short time to consider and reject that approach.

without changing much about their approach

it has been completely rewritten and the semantics have been changed.

The approach of deriving this field from src hasn't changed.

I'd feel better if some more experienced voices were involved

if anyone with relevant experience with stdenv is available in a timely manner, then sure, but i'm not sure that's the case.

This isn't how consensus-driven projects should work. Cooperate and build consensus; don't just rush through what you can get away with because you have more free time than the older hands.

very short time

21 days of active discussion.

 @AndersonTorres proposed splitting the PR into two parts along the basis of whether repository should be populated from src on March 28. @a-n-n-a-l-e-e merged the PR on March 29. That was a very short time to consider and reject that approach.

this is likely true. i stopped reading @AndersonTorres comments as they were toxic and trollish.

Cooperate and build consensus

the current PR is an amalgamation of code written by at least three different people, using feedback provided by several others.  if that's not cooperation, i don't know what is.
additionally, i'm not sure how to cooperate with someone when their only feedback is "don't do this".

@a-n-n-a-l-e-e does this look good to you?

the commit still needs to get squashed. if you're struggling with git one thing i do is create a test branch to experiment on so if i run the wrong git commands i can just toss the branch and start over. eg: git switch -c test-branch meta.repository then experiment on test-branch.

@a-n-n-a-l-e-e whenever i would squash it would just create a merge conflict, which i would fix on github, but that would just create another commit.
i have 3 backup presquash branches by now
my local nixpkgs clone is extremely messy due to using things like shallow pulls in order to cope with my extremely slow internet.

@a-n-n-a-l-e-e whenever i would squash it would just create a merge conflict, which i would fix on github, but that would just create another commit.
i have 3 backup presquash branches by now
my local nixpkgs clone is extremely messy due to using things like shallow pulls in order to cope with my extremely slow internet.

ok. i fixed it then. you'll need to pull before doing any changes.

@rhendric you have requested changes but have not commented on any part of the PR. This is a low stakes change that has minimal impact on eval performance, https://github.com/NixOS/nixpkgs/pull/300313#issuecomment-2031023142, and does not impact the building of nix packages. additionally, backing out the change, if required, does not require a staging cycle or any rebuilds, so your behavior seems out of place given impact of this change. Please reconsider to help move forward and deescalate this situation or consider stepping down from your role as a committer if you are unable to do so.

so, turns out shallow fetches kinda break everything.  will manually reconstruct the broken branches on top of current master and create a new PR.

@a-n-n-a-l-e-e 1. any committer can dismiss «changes requested» status with a comment, so you might be overstating the level of blocking, and 2. if a change has broken eval and was reverted, its updated version is not low-stakes.


Does not work with bevy main's require component

So I was having issues with using this repo with bevy main, and I stumbled into an issue with queries like Query<&PickingCamera> and it led me to realize that while Component derives have been added to components on this repo and on bevy_mod_raycast, there has not been a release of raycast with this update, and thus when this repo pulls bevy_mod_raycast v0.2 you get components that do not derive Component.
The ideal solution would be to make a new release for bevy_mod_raycast, then bump the version number on this repo.

Hey @Sheepyhead, you might need to delete your cargo lock - the cargo.toml in this repo pulls from the git/master branch of mod_raycast. I generally try to track bevy/main on my master branches of both repos, and depend on the cargo versions when I make releases to match Bevy's.

I have deleted both target and Cargo.lock and I was still having dependency issues, seems like it might be an issue with different bevy versions between my project and what's in the cargo.toml of this repo - either way it makes it unusable with bevy main in an external project without cloning this repo and changing the dependencies manually, if you try to take a Query<&PickingCamera> for instance.

either way it makes it unusable with bevy main in an external project without cloning this repo and changing the dependencies manually

Not sure what you mean. I can make a sample project that depends on Bevy/main, as well as mod_picking/master (which depends on Bevy/main) without any issues out of the box. What does your mod_picking dependency look like in your cargo.toml?

I created a sample project to demonstrate that this is working: https://github.com/aevyrie/picking_test
Also see the cargo.toml: https://github.com/aevyrie/picking_test/blob/main/Cargo.toml

Here's a minimal example that fails to compile https://github.com/Sheepyhead/bevy_test/tree/bevy_mod_picking_105

Thanks, I'll try it out

I did a diff, and it looks like your cargo.lock is pointing to an old bevy commit before the component derive was added: https://github.com/bevyengine/bevy/commit/b91541b6efff2236f6aefca0f2baa09aba54f505


fixed the field split strides for interleaving components

@ahmadia  here's a start on fixing the strides. They were set up for end-to-end  stacking so when you switched  proteus to  consistently interleave when possible, the field split preconditioners broke.  I believe we can actually get a reference  to  the  model via L so we could do this more generally and  switch automatically based  on the strides/offsets of the underlying discrete PDE from which L is  generated.

@ahmadia I tested this in parallel on various levels of refinement up to 114073 triangles in 2D, and it seems to be working well. There is a difference in what I've tested and what you were reporting, namely additive, multiplicative, and schur with a11  all work. The a11 preconditioner is significantly less effective than selfp, though, which fits with what we discussed with @jedbrown. I also  noticed that the petsc docs say selfp is actually lumped, which I think should make it more robust than just the raw diagonal, given that we don't  lump the mass matrix itself. I'm going to go ahead an merge this in. We can re-open if you were  able to do any tests this week and found any issues.

Lumping is optional (see MatSchurComplementSetAinvType()) and off by
default.  @karpeev, is this the default you intended?  I wouldn't say
one is better than the other, but the docs should be consistent.

I don't think the docs indicated one way or the other, which is an omission.
In any event, I [pushed] (https://bitbucket.org/petsc/petsc/commits/0a4569348d06e683c17ae77db1dd4b4985071d19) what I hope is a clarification on when lumping is used and how to turn it on/off.


GUID not generated correctly

Hello,
I'm trying to connect to a server and get some info from a table, where one of the columns is a GUID. When I look at the values in the dictionary, the GUID is not matching with what is in the table when I look at it from running a SQL query in Visual Studio Code. The last 2 portions are correct, but the first 3 portions have the correct values, but are not in the correct order. Any idea what is going on there? This is running on macOS 10.13.4 on a MacBook Pro.
Thanks

That is due to the Microsoft string representation of a GUID being different than the actual byte order:
https://msdn.microsoft.com/en-us/library/system.guid.tobytearray.aspx?f=255&MSPPError=-2147217396

Does that mean there's no way to get the same representation as what's stored in the DB?


Add c.o.i.content.index.change.StoreChangeListener to clean up indices when store is deleted

I found the indices were really not cleaned when a repo/group were deleted. This could cause a lot of useless entries left in the cache. Fix it by listening to the store post deletion event.

Another case is: if a repo is removed from a group, all entries with this repo in group should also be removed from content index. ( I think it is storeKey=group and originStoreKey=repo, we can add a method in ContentIndexManager to clear this type of entry).


Add fiddle to gemfile error

/home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/pycall-1.5.2/lib/pycall/libpython/finder.rb:2: warning: /home/bendangelo/.asdf/installs/ruby/3.3.5/lib/ruby/3.3.0/fiddle.rb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add fiddle to your Gemfile or gemspec to silence this warning.
Also please contact the author of pycall-1.5.2 to request adding fiddle into its gemspec.

@bendangelo, Could you please make a pull request?

Done


Make v1 7 0

Make release

Coverage increased (+0.04%) to 93.897% when pulling 446e7f0dfccfcea7f762b2b9045b38986bdbb0f6 on make_v1_7_0 into af0b294e97431ab9c61104d787ef63bf27324d2c on master.


S4 | Add eslint to the project

Acceptance Criteria

An eslint definition file
An easy to use NPM script to run eslint npm run lint
Existing code is updated to fit the chosen standard

Approach

https://eslint.org/docs/user-guide/getting-started

@CalebSarikey


[CSApply] Use fully qualified locator while coercing member chain result

Constraint generator records conversion between chain result expression
and contextual type as anchored on an implicit unresolved chain result,
which means that coercion has to do the same in case restrictions
(like Double<->CGFloat conversion) depend on locators to retrieve
information for the solution.
Resolves: rdar://97261826

@swift-ci please test

@swift-ci please test macOS platform


Repeated storm alerts

I keep getting storm warnings. This is especially bad when you are driving in the mountains.
There seems to be no alignment with the GPS position, so that one can assign a strongly changed pressure to a position change and thus no alarm is triggered.
even this morning is displayed to me complete crap, although I was also time only @home. (see picture)

Should the cause be a calibration, an automatic "mute" function of an alarm is also missing here.
Other apps or even e.g. Garmin can do this much more reliably, although they have to deal with the same problem.

Hi, I'm sorry you are having issues with Trail Sense.
Trail Sense is only designed for use in hiking / outdoor activities. I know some like to turn the weather monitor on before leaving for a trip so they don't forget to enable it when they start their hike, so I'm planning on implementing #1858 which should eliminate the false alerts while you are driving.
In case it also applies here, please see this discussion on using Trail Sense indoors / while driving (both are unsupported, and can lead to inaccuracies - especially if the building is large like it was in the referenced issue): https://github.com/kylecorry31/Trail-Sense/issues/1833
As for the alert happening repeatedly - is that occurring every 15 minutes for you? Trail Sense has a mechanism in place where it won't send the alert if a storm alert was previously sent. It resets that trigger when a storm is no longer predicted. So I wouldn't really expect that to occur back to back (I have not seen that behavior on my end). I'll do more investigation to make sure that is working properly though, and maybe also put a minimum time in there (though I need to be careful that it doesn't miss a subsequent storm).

Closing this issue in favor of https://github.com/kylecorry31/Trail-Sense/issues/1858 and https://github.com/kylecorry31/Trail-Sense/issues/1833


Pytest discover on 3.9 does not find tests

Type: Bug

Behaviour
A few updates ago everything worked as expected. But now the Testing Area shows pytest Discovery Error and Logs aren't really helpfull, because the only error shown:
The python test process was terminated before it could exit on its own, the process errored with: Code: 1

On the other hand if I run the tests they are executed as normal, but also if my tests are failing , they do not update the panel.
Steps to reproduce:
Since it is hard to determine what actually happend with the updates I provide the github repo, which causes the issue:
git clone git@github.com:MaKaNu/boxsup-pytorch.git
cd boxsup-pytorch
git switch Feature-Move-IoU-PreProcess
poetry env use 3.9
poetry install
poetry shell
code .

Switch to Pytestpanel and thats it.
I tested via ssh remote machine and also local same issue.

Diagnostic data

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

2024-05-21 18:20:25.116 [info] Experiment 'pythonCreateEnvOnPipInstallcf' is active
2024-05-21 18:20:25.116 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-05-21 18:20:25.116 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-05-21 18:20:25.116 [info] Experiment 'pythonTestAdapter' is active
2024-05-21 18:20:25.299 [info] Default formatter is set to ms-python.black-formatter for workspace /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch
2024-05-21 18:20:25.324 [info] VS Code was launched from an activated environment: '.venv', selecting it as the interpreter for workspace.
2024-05-21 18:20:25.338 [info] Python interpreter path: ./.venv/bin/python
2024-05-21 18:20:25.711 [info] > pyenv which python
2024-05-21 18:20:25.711 [info] cwd: .
2024-05-21 18:20:26.663 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-21 18:20:26.663 [info] shell: zsh
2024-05-21 18:20:26.779 [info] > /usr/bin/python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-21 18:20:26.779 [info] shell: zsh
2024-05-21 18:20:26.875 [info] Prepending environment variable PS1 in collection with (.venv)  {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-05-21 18:20:26.877 [info] Send text to terminal: /usr/bin/python /home/matti.kaupenjohann/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariablesToFile.py /home/matti.kaupenjohann/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/zsh/envVars.txt
2024-05-21 18:20:29.965 [info] Starting Pylance language server.
2024-05-21 18:20:35.426 [info] Discover tests for workspace name: boxsup-pytorch - uri: /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch
2024-05-21 18:20:35.426 [info] Running discovery for pytest using the new test adapter.
2024-05-21 18:20:35.427 [info] All environment variables set for pytest discovery: {"ALACRITTY_LOG":"/tmp/Alacritty-51609.log","ALACRITTY_SOCKET":"/run/user/1000/Alacritty-:0-51609.sock","ALACRITTY_WINDOW_ID":"41943043","BROWSER":"/usr/bin/firefox","CASROOT":"/usr","CHROME_DESKTOP":"code-url-handler.desktop","COLORTERM":"truecolor","CSF_DrawPluginDefaults":"/usr/share/opencascade/resources/DrawResources","CSF_EXCEPTION_PROMPT":"1","CSF_IGESDefaults":"/usr/share/opencascade/resources/XSTEPResource","CSF_LANGUAGE":"us","CSF_MDTVTexturesDirectory":"/usr/share/opencascade/resources/Textures","CSF_MIGRATION_TYPES":"/usr/share/opencascade/resources/StdResource/MigrationSheet.txt","CSF_OCCTResourcePath":"/usr/share/opencascade/resources","CSF_PluginDefaults":"/usr/share/opencascade/resources/StdResource","CSF_SHMessage":"/usr/share/opencascade/resources/SHMessage","CSF_STEPDefaults":"/usr/share/opencascade/resources/XSTEPResource","CSF_ShadersDirectory":"/usr/share/opencascade/resources/Shaders","CSF_StandardDefaults":"/usr/share/opencascade/resources/StdResource","CSF_StandardLiteDefaults":"/usr/share/opencascade/resources/StdResource","CSF_TObjDefaults":"/usr/share/opencascade/resources/StdResource","CSF_TObjMessage":"/usr/share/opencascade/resources/TObj","CSF_XCAFDefaults":"/usr/share/opencascade/resources/StdResource","CSF_XSMessage":"/usr/share/opencascade/resources/XSMessage","CSF_XmlOcafResource":"/usr/share/opencascade/resources/XmlOcafResource","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1000/bus","DEBUGINFOD_URLS":"https://debuginfod.archlinux.org ","DESKTOP_SESSION":"leftwm","DISPLAY":":0","DRAWDEFAULT":"/usr/share/opencascade/resources/DrawResources/DrawDefault","DRAWHOME":"/usr/share/opencascade/resources/DrawResources","ELECTRON_NO_ATTACH_CONSOLE":"1","EMPRO_LICENSE_FILE":"27009@<IP_ADDRESS>","GDK_BACKEND":"x11","GTK_MODULES":"canberra-gtk-module","HOME":"/home/matti.kaupenjohann","LANG":"en_US.UTF-8","LOGNAME":"matti.kaupenjohann","MAIL":"/var/spool/mail/matti.kaupenjohann","MMGT_CLEAR":"1","MOTD_SHOWN":"pam","NIX_PROFILES":"/nix/var/nix/profiles/default /home/matti.kaupenjohann/.nix-profile","NIX_SSL_CERT_FILE":"/etc/ssl/certs/ca-certificates.crt","NO_AT_BRIDGE":"1","OLDPWD":"/home/matti.kaupenjohann","ORIGINAL_XDG_CURRENT_DESKTOP":"LeftWM","POETRY_ACTIVE":"1","PWD":"/home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch","PYENV_ROOT":"/home/matti.kaupenjohann/.pyenv","PYENV_SHELL":"fish","RANGER_LOAD_DEFAULT_RC":"false","SHELL":"/bin/zsh","SHLVL":"3","SSH_AUTH_SOCK":"/run/user/1000/ssh-agent.socket","STARSHIP_SESSION_KEY":"2536321540281461","STARSHIP_SHELL":"fish","TERM":"alacritty","USER":"matti.kaupenjohann","VIRTUAL_ENV":"/home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch/.venv","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"/home/matti.kaupenjohann/.config/Code/CachedData/dc96b837cf6bb4af9cd736aa3af08cf8279f7685","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"/home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"/run/user/1000/vscode-fee2af50-1.89-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"osLocale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_PID":"5177","WINDOWID":"41943043","XAUTHORITY":"/tmp/xauth_MzqUAL","XDG_CURRENT_DESKTOP":"LeftWM","XDG_DATA_DIRS":"/home/matti.kaupenjohann/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/home/matti.kaupenjohann/.nix-profile/share:/nix/var/nix/profiles/default/share","XDG_RUNTIME_DIR":"/run/user/1000","XDG_SEAT":"seat0","XDG_SEAT_PATH":"/org/freedesktop/DisplayManager/Seat0","XDG_SESSION_CLASS":"user","XDG_SESSION_DESKTOP":"LeftWM","XDG_SESSION_ID":"5","XDG_SESSION_PATH":"/org/freedesktop/DisplayManager/Session3","XDG_SESSION_TYPE":"x11","XDG_VTNR":"2","_":"/opt/visual-studio-code/bin/../code","_JAVA_AWT_WM_NONREPARENTING":"1","_OLD_VIRTUAL_PATH":"/home/matti.kaupenjohann/.pyenv/shims:/home/matti.kaupenjohann/.local/bin:/home/matti.kaupenjohann/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin","key_value":"xuWIzfw5Eqqwa5XuWjUnCmG/X+VdSyEjV4VihKSbKNQJSr7rIF8Gs4i0MvAJzIUp8FAFGAFCnJ29Eh+O","secret_value":"eJ6sMMtAOsmMtvLtQJnOJx0fc0malRnbEkLoLejsviYMRcEE9a7MjKziNga2t3M7LT5VZDiKGq9SGxCb","ELECTRON_RUN_AS_NODE":"1","VSCODE_L10N_BUNDLE_LOCATION":"","PATH":"/home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch/.venv/bin:/home/matti.kaupenjohann/.pyenv/shims:/home/matti.kaupenjohann/.local/bin:/home/matti.kaupenjohann/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin","PYTHONPATH":"/home/matti.kaupenjohann/.vscode/extensions/ms-python.python-2024.6.0/python_files","TEST_RUN_PIPE":"/run/user/1000/python-test-discovery-372fbe8d730e5ac01a96.sock"}
2024-05-21 18:20:35.463 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.6.0/python_files/printEnvVariables.py
2024-05-21 18:20:35.463 [info] shell: bash
2024-05-21 18:20:35.532 [info] > ./.venv/bin/python -m pytest -p vscode_pytest --collect-only tests
2024-05-21 18:20:35.532 [info] cwd: .
2024-05-21 18:20:35.882 [info] ============================= test session starts ==============================
platform linux -- Python 3.9.19, pytest-6.2.5, py-1.11.0, pluggy-1.5.0 -- /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch/.venv/bin/python

2024-05-21 18:20:35.895 [info] cachedir: .pytest_cache
rootdir: /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch, configfile: pyproject.toml
plugins: mock-3.14.0, cov-2.12.1
collecting ...
2024-05-21 18:20:38.349 [info] collected 5 items

<Module tests/test_losses.py>
  Test Scenario for utils losses.
  <Class TestLossesClassCompareLabels>

2024-05-21 18:20:38.349 [info]     Test compare label method of Losses class.

    We implement 3 tests to check both trees of the if statement of the method and two states of
    the process (Fresh Initialized and Middle of Process):

    Test1:
    This is the Test which analyzes the result of running the compare against not initialized cands.
    This is something what actual needed to be avoided and might be replaced with raising an Error.

    Test2:
    This tests the fresh scenario. We have prepared 4 Batches of Data with a Size of 2 x 3.
    So speaking of 2 possible BBoxes and 3 candidate Masks each initilaized the same class.
    The 4 Batches represent themself 4 different scenarios.
        Scenario 0:
        The Cands are the same class as the bboxes.
        Scenario 1:
        The Cands are all labeled class 1 while only one bbox exists.
        Scenario 2:
        The Cands classes are all class 2 but bbox only one bbox is class 2.
        Scenario 3:
        Same as Scenario 2 but this time with class 1.

    Test3:
    This tests an already trained state. Also 4 Batches Scenario.
        Scenario 0:
        Only the first candidate has the class of the BBox.
        Scenario 1:

2024-05-21 18:20:38.349 [info]         The second candidate is correct for first BBox, Since BBox 2 does not existst, the result
        is always False.
        Scenario 2:
        The second and thirds candidate has same class as BBoxes.
        Scenario 3:
        The first and second candidate has same class as BBoxes.
      <Function test_compare_labels[not_initialized_cands]>
        Parametrized test for Class TestLossesClassCompareLabels.

2024-05-21 18:20:38.349 [info]       <Function test_compare_labels[initialized_cands]>
        Parametrized test for Class TestLossesClassCompareLabels.
      <Function test_compare_labels[trained_cands]>
        Parametrized test for Class TestLossesClassCompareLabels.
  <Class TestLossesOverlappingLoss>

2024-05-21 18:20:38.349 [info]     Test batch_overlapping loss method of Losses class.

2024-05-21 18:20:38.349 [info]     We implement 1 test to test the calculation of overlapping loss based on same data as the test
    for compare class.

    Test1:
    This is the Test which analyzes the result of running the compare against not initialized cands.

2024-05-21 18:20:38.349 [info]     This is something what actual needed to be avoided and might be replaced with raising an Error.

    Test2:
    This tests the fresh scenario. We have prepared 4 Batches of Data with a Size of 2 x 3.
    So speaking of 2 possible BBoxes and 3 candidate Masks each initilaized the same class.
    The 4 Batches represent themself 4 different scenarios.

2024-05-21 18:20:38.350 [info]         Scenario 0:
        The Cands are the same class as the bboxes.
        Scenario 1:
      <Function test_overlapping_loss[Simple Overlapping]>
        Parametrized test for Class TestLossesOverlappingLoss.
<Module tests/test_strats.py>
  Test scripts for testing of strats pipeline.
  <Class TestBaseStrat>
    Test batch_overlapping loss method of Losses class.

    We implement 1 test to test the calculation of overlapping loss based on same data as the test
    for compare class.

    Test1:

2024-05-21 18:20:38.350 [info]     This is the Test which analyzes the result of running the compare against not initialized cands.
    This is something what actual needed to be avoided and might be replaced with raising an Error.

    Test2:
    This tests the fresh scenario. We have prepared 4 Batches of Data with a Size of 2 x 3.
    So speaking of 2 possible BBoxes and 3 candidate Masks each initilaized the same class.
    The 4 Batches represent themself 4 different scenarios.
        Scenario 0:
        The Cands are the same class as the bboxes.
        Scenario 1:
      <Function test_check_input[Check Input Correct]>
        Parametrized test for Class TestLossesOverlappingLoss.

2024-05-21 18:20:38.579 [info]

---------- coverage: platform linux, python 3.9.19-final-0 -----------
Name                                            Stmts   Miss Branch BrPart  Cover   Missing
-------------------------------------------------------------------------------------------
boxsup_pytorch/__init__.py                          5      0      0      0   100%
boxsup_pytorch/__main__.py                         24     24      4      0     0%   3-38
boxsup_pytorch/config/__init__.py                   3      0      0      0   100%
boxsup_pytorch/config/config.py                    26      0      0      0   100%
boxsup_pytorch/data/__init__.py                     0      0      0      0   100%
boxsup_pytorch/data/datacontainer.py               16      4      8      0    67%   27-30
boxsup_pytorch/data/dataloader.py                  57     57     14      0     0%   9-153
boxsup_pytorch/data/dataset.py                    164    164     46      0     0%   3-343
boxsup_pytorch/data/datatrain/__init__.py           0      0      0      0   100%
boxsup_pytorch/data/datatrain/controlwagon.py      17     17      2      0     0%   1-28
boxsup_pytorch/data/datatrain/datawagons.py        13     13      0      0     0%   1-23
boxsup_pytorch/data/datatrain/factory.py           16     16      4      0     0%   7-52
boxsup_pytorch/data/datatrain/locomotive.py        16     16      0      0     0%   6-27
boxsup_pytorch/launch.py                           24     24      2      0     0%   3-48
boxsup_pytorch/model/__init__.py                    0      0      0      0   100%
boxsup_pytorch/model/network.py                    47     21      6      2    53%   22, 30, 41-70, 86
boxsup_pytorch/pipeline/__init__.py                 0      0      0      0   100%
boxsup_pytorch/pipeline/core.py                    27     27      6      0     0%   3-68
boxsup_pytorch/pipeline/data_prep.py               21     21      2      0     0%   1-42
boxsup_pytorch/pipeline/error_calc.py              28     13      8      0    47%   24-33, 36-38, 41-43
boxsup_pytorch/pipeline/preprocess.py             112    112     44      0     0%   11-234
boxsup_pytorch/pipeline/process_runner.py          12     12      4      0     0%   10-43
boxsup_pytorch/pipeline/strats.py                  95     61     18      0    35%   31, 34-41, 44-51, 55-68, 71-79, 90-111, 114-121, 130-152
boxsup_pytorch/pipeline/trainer.py                 94     94     18      0     0%   6-170
boxsup_pytorch/pipeline/update_masks.py            32     32      6      0     0%   3-72
boxsup_pytorch/pipeline/update_net.py              17     17      2      0     0%   2-25
boxsup_pytorch/utils/__init__.py                    0      0      0      0   100%
boxsup_pytorch/utils/check.py                      15      8      0      0    47%   20-21, 33-34, 46-47, 60-61
boxsup_pytorch/utils/common.py                     36     36     12      0     0%   1-56
boxsup_pytorch/utils/losses.py                     80     47     10      0    37%   40-51, 80-85, 102-112, 125-129, 142-148, 175-177, 180-186, 189-194, 198
-------------------------------------------------------------------------------------------
TOTAL                                             997    836    216      2    14%

FAIL Required test coverage of 80% not reached. Total coverage: 14.43%
========================== 5 tests collected in 2.70s ==========================

2024-05-21 18:20:38.838 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch.
2024-05-21 18:20:38.838 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch. Creating and sending error discovery payload
2024-05-21 18:20:38.838 [error] pytest test discovery error for workspace:  /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch

 The python test process was terminated before it could exit on its own, the process errored with: Code: 1, Signal: null for workspace /home/matti.kaupenjohann/Dokumente/GIT/boxsup-pytorch

Extension version: 2024.6.0
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:16:23.416Z)
OS version: Linux x64 6.9.1-arch1-1
Modes:
Remote OS version: Linux x64 5.4.0-176-generic

Python version (& distribution if applicable, e.g. Anaconda): 3.9.18
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Poetry
Value of the python.languageServer setting: Default

User Settings

languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions

Extension Name
Extension Id
Version

autoDocstring - Python Docstring Generator
njpwerner.autodocstring
0.6.1

Bash Debug
rogalmic.bash-debug
0.3.9

Black Formatter
ms-python.black-formatter
2024.2.0

C/C++
ms-vscode.cpptools
1.20.5

Color Highlight
naumovs.color-highlight
2.8.0

Django
batisteo.vscode-django
1.15.0

Even Better TOML
tamasfe.even-better-toml
0.19.2

Flake8
ms-python.flake8
2023.10.0

German Language Pack for Visual Studio Code
MS-CEINTL.vscode-language-pack-de
1.89.2024050109

Git Graph
mhutchie.git-graph
1.30.0

IntelliCode
VisualStudioExptTeam.vscodeintellicode
1.3.1

IntelliCode API Usage Examples
VisualStudioExptTeam.intellicode-api-usage-examples
0.2.8

isort
ms-python.isort
2023.10.1

JavaScript Debugger
ms-vscode.js-debug
1.89.0

Jinja
wholroyd.jinja
0.0.8

Jupyter
ms-toolsai.jupyter
2024.4.0

Jupyter Cell Tags
ms-toolsai.vscode-jupyter-cell-tags
0.1.9

Jupyter Notebook Renderers
ms-toolsai.jupyter-renderers
1.0.17

Jupyter Slide Show
ms-toolsai.vscode-jupyter-slideshow
0.1.6

Matlab Unofficial
Gimly81.matlab
3.0.2

matlab-formatter
AffenWiesel.matlab-formatter
2.11.0

Pylance
ms-python.vscode-pylance
2024.5.1

Python
ms-python.python
2024.6.0

Python Debugger
ms-python.debugpy
2024.6.0

Python Environment Manager
donjayamanne.python-environment-manager
1.2.4

Python Extension Pack
donjayamanne.python-extension-pack
1.7.0

Python Indent
KevinRose.vsc-python-indent
1.18.0

Rainbow CSV
mechatroner.rainbow-csv
3.11.0

ShellCheck
timonwong.shellcheck
0.37.1

SVG Previewer
vitaliymaz.vscode-svg-previewer
0.7.0

SynthWave '84
RobbOwen.synthwave-vscode
0.1.15

Table Visualizer for JavaScript Profiles
ms-vscode.vscode-js-profile-table
1.0.9

View Image for Python Debugging
elazarcoh.simply-view-image-for-python-debugging
4.0.0

VS Code Counter
uctakeoff.vscode-counter
3.4.0

System Info

Item
Value

CPUs
12th Gen Intel(R) Core(TM) i7-1265U (12 x 2832)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
0, 1, 1

Memory (System)
15.07GB (10.70GB free)

Process Argv
--crash-reporter-id 7d01ea2e-5028-4d25-8a52-23f7ac7b238b

Screen Reader
no

VM
0%

DESKTOP_SESSION
leftwm

XDG_CURRENT_DESKTOP
LeftWM

XDG_SESSION_DESKTOP
LeftWM

XDG_SESSION_TYPE
x11

Item
Value

Remote
SSH: hpc01.lit.fh-dortmund.de

OS
Linux x64 5.4.0-176-generic

CPUs
Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz (64 x 2107)

Memory (System)
187.55GB (122.18GB free)

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
tftest:31042121
vstes627:30244334
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
666c4381:30973075
chatpanelc:31048052
dsvsc021:30996838
9c06g630:31013171
pythoncenvptcf:31049071
a69g1124:31046351
dvdeprecationcf:31052040
pythonprc:31047982
dwnewjupytercf:31046870
26j00206:31048877

Hi! I see your pytest version is pytest-6.2.5, are you able to upgrade your pytest version? Since 6.2.5 is old we are looking to support pytest 7.x.x moving forward. Pytest 6.2.5 has a few items that are not as compatible with the extension. Thanks

I need to investigate this first. My pyproject states pytest = "^6.0", so technically it should. I need to look into what other dependency might hold me back.


Pet Card gets extended if the Breed is long

Some Pets have multiple breeds and it creates a new line extending the height of the card.

hi, i would give it a try

If possible, create with an image of example from the issue.

also depends on the screen size such as 1024px

Hmm, all right. I think on two possible ways:
1 - Transform this page on mosaic (I don't believe that this way is better, for the complexity)
2 - Use Grid Layout to define a height pattern for all cards to each line. For example, the second cards will assumes the height size from the other cards.
Do you have any idea about that?

Maybe I'll just add a fixed height with media queries


JSDoc+Intellisense. Not supported @method in auto-completion

From @IgorNovozhilov on November 15, 2016 13:58

VSCode Version:

OS Version: win7 pro

Steps to Reproduce:
See: http://usejsdoc.org/tags-function.html
JSDoc tag @method not found in auto-completion:

Code:
/**
 * @class MyClass
 */
class MyClass {
   /**
    * @method func1
    */
   func1() {

   }
   /**
    * @method
    */
   func2() {

   }
}

Copied from original issue: Microsoft/vscode#15511

@bowdenk7 would you call this a bug or a feature request?

@bowdenk7 would you call this a bug or a feature request?


relax version pins to ~>1.60 or ~>1.70

This relaxes all the version pins for the 1.60 pinned releases to accept 1.60+, which allows 1.70.
For the 1.70 pins we'll allow 1.70+ as they use the new dashboard resource.
There's a downside here in that our provider can have bugs creep in now for end-users, so we'll have to be more mindful/careful there.

Chatted on this, and closed in favor of https://github.com/lightstep/terraform-lightstep-aws-dashboards/pull/59


Stop scrolling on long sections

Hello!
I am trying to implement your plugin on this page-
http://www.ismar.co.uk/thinkingplace/#3
However, scrolling is not slowed down over the long section although I think I have the plugin set up correctly.
 $.scrollify({ 		section : ".sc", 		sectionName : "one, two, three, four", 		interstitialSection : "", 		easing: "easeOutExpo", 		scrollSpeed: 1100, 		offset : 0, 		scrollbars: true, 		standardScrollElements: "slow", 		setHeights: false, 		overflowScroll: false, 		updateHash: true, 		touchScroll:true, 		before:function() {}, 		after:function() {}, 		afterResize:function() {}, 		afterRender:function() {} 	});
Would you be able to figure out what is causing the problem?
Many thanks for your help!

To slow down the scroll speed you'll need to modify the scrollSpeed option.

i am also facing same issue. i have long content in one of my section but that's overlapping with next section. when i want to view rest of my content they take me to next section, but not showing ful content in same section.


remove the pulsar admin from pulsar connector

Please add a meaningful description for your change here
Connectors should avoid using Pulsar Admin API as much as possible due to permission control issues.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

run java precommit

@nlu90 are you still working on Luke's requested changes?

Closing as we haven't seen updates

If you want this re-opened, just let us know


api_token in provider work ?

Hi,
I try to configure api_token in provider but terraform always ask me to enter aiven token :/
provider "aiven" {
    api_token = "js1h2bw...........dq654="
}

 => terraform apply

provider.aiven.api_token
  Aiven Authentication Token

  Enter a value:

But when i configure it in environment variable, it's work.
export AIVEN_TOKEN=js1h2bw...........dq654=

Any idea ?
I have same problem with 1.2.1 & 1.2.3
Terraform v0.12.24

Hi,
That is strange unfortunately I cannot reproduce that.
Can you please run terraform validate and provide and output?
In general, we take a default value for an api_token from AIVEN_TOKEN env variable, but it can be overridden by providing an explicit value in TF files.

terraform validate
Error: Missing required argument

The argument "api_token" is required, but was not set.

Provider configuration :
provider "aiven" {
    api_token = "js.......8="
    alias     = "aiven_project"
}

Environment variable empty :
 ~  export |grep TF
 ~ 

umh, i have found problem...
I must set provider in my all aiven ressources :
provider = aiven.aiven_project


Update README.md

https://stackoverflow.com/questions/30413621/homebrew-cask-option-not-recognized

Sorry for the duplication! https://github.com/Pyroh/Fluor/pull/57


Migrate Vault storage to PersistentCollections.jl or similar

Should probably use a package like PersistentCollections.jl which depends on a key-value store to back the file-based storage. Other options include:

https://github.com/jerryzhenleicai/LevelDB.jl
https://github.com/aj-monk/RocksDB.jl

After rolling my own on-disk dictionary backed by Base serialization, this was fixed by 1bbf36cf86afcfe1d07ef89e0ec5610171ea5862

After rolling my own on-disk dictionary backed by Base serialization, this was fixed by 1bbf36cf86afcfe1d07ef89e0ec5610171ea5862


PostgreSQL enum handling

From @IC3Q on October 28, 2015 21:32
I'm using Npgsql.EntityFramework7 provider, version 3.1.0-beta8-2.
The problem is while trying to get entity from context which has some enum inside of it.
Postgres enum declaration:
CREATE TYPE public.my_enum AS
 ENUM ('value1','value2','value3');

Model:
[Table("my_table")]
public class Entity
{
        [Column("id")]
        [Key]
        public int Id { get; set; }
        [Column("type")]
        public MyEnum Type { get; set; }
}

Enum:
public enum MyEnum
{
    value1,
    value2,
    value3
}

Unfortunately, when you try to get something from database via entity framework it throws this error:
System.InvalidCastException: Can't cast database type my_enum to Int32
I've tried to register my enum in Npgsql (as it's pointed in npgsql documentation). With no effects.
Original question on stackoverflow: http://stackoverflow.com/questions/33394908/enum-handling-in-npgsql-and-entityframework7
Copied from original issue: npgsql/npgsql#842

It seems the EF7 doesn't support database enum mapping right now, mapping enums to numeric types instead. Have opened https://github.com/aspnet/EntityFramework/issues/3620 for this.

Hi is there a workaround until this get fixed?

I think you should be able to have enums on your entities, it's just that they'll be mapped to database int columns instead of PostgreSQL enums. I haven't confirmed this yet, though.

Yes, I'm using enums and getting integers by default. I haven't tried mapping to a posgres enum type but I do need to flip to sqlite occasionally so leaving it as int.

@julielerman you're not going to be able to map to a PG enum because of limitations in EFCore, this is what this issue is about. My hope is that when EFCore does support native database enums you'll be able to have the same model mapping to enum on PostgreSQL and to int on sqlite.

thanks. I realize now that enum isn't just a type to specify with HasColumnType so understand why even though basic enum support is now working in EFCore, that this is a much farther stretch.

@roji I can confirm that using a enum in C# and mapping it to an int in the database does work.
My problem is that we do already use enums as custom types in postgres. So I was looking for a solution for that case. Anyway I've a working solution it's not the best but it works. It does require that the enum in C# has the PgName attributes set.
Change the model like this:
[NotMapped]
public MyEnum Type
{
	get
	{
		return GetEnumValueByPgName(MyEnum.Value1, this.TypeDatabase);
	}

	set
	{
		this.TypeDatabase = value.GetPgName();
	}
}

[Column("type")]
public string TypeDatabase { get; protected set; }

This is the helper function I use:
/// <summary>
/// Gets PgName value for enum
/// </summary>
/// <param name="enumVal">The enum value</param>
/// <returns>PgName or empty if not found</returns>
public static string GetPgName(this Enum enumVal)
{
	var type = enumVal.GetType();
	var memInfo = type.GetMember(enumVal.ToString());
	if (memInfo.Count() == 0)
	{
		return null;
	}

	var attributes = memInfo[0].GetCustomAttributes(typeof(NpgsqlTypes.PgNameAttribute), false).ToArray();
	if (attributes?.Length > 0)
	{
		var name = (NpgsqlTypes.PgNameAttribute)attributes[0];
		if (name != null)
		{
			return name.PgName;
		}
	}

	return string.Empty;
}

/// <summary>
/// Get enum value by PgName. Use as workaround for bug in EfCore.
/// </summary>
/// <param name="defaultValue">Default value to set if could not find a match</param>
/// <param name="pgname">PgName used in database</param>
/// <returns>Mapped value or default value</returns>
public static TEnum GetEnumValueByPgName<TEnum>(this TEnum defaultValue, string pgname)
{
	if (string.IsNullOrEmpty(pgname))
	{
		return defaultValue;
	}

	var type = typeof(TEnum).GetTypeInfo();
	if (!type.IsEnum)
	{
		throw new TypeLoadException("Given type is not an enum.");
	}

	foreach (var item in type.GetMembers())
	{
		var attributes = item.GetCustomAttributes(typeof(NpgsqlTypes.PgNameAttribute), false).ToArray();

		if (attributes?.Length > 0)
		{
			var name = (NpgsqlTypes.PgNameAttribute)attributes[0];
			if (name != null && name.PgName == pgname)
			{
				return (TEnum)Enum.Parse(typeof(TEnum), item.Name);
			}
		}
	}

	return defaultValue;
}

@vankooch I'm surprised this actually works, but if it does why not.

@vankooch Hey, your solution only works for retrieving right? I tried to use but I still get the Npgsql.PostgresException: 42804: column "payment_type" is of type payment_type but expression is of type text by  at insertion time.

@roji Any news on when this feature will be implemented or how this issue can be bypassed?

@CoffeeDreamLabs there is a slight chance that this will be possible in the upcoming 2.1 release, but it doesn't on me or on Npgsql, but rather on EF Core itself. Go to https://github.com/aspnet/EntityFrameworkCore/issues/3620 and express you interest there.

@ajcvickers, @divega and everyone else interested in this, I've completed a hacky prototype that successfully maps to PostgreSQL native enums. Enum types can even be defined using a fluent API on the model and are created as part of migrations. I will probably complete support for this, including scaffolding, for 2.1.
It's really, really nice to be able to do all this with EF Core, great going guys!

@roji Very cool! I have a PR out for the enum literal bug.

@ajcvickers will wait for that to be fixed (https://github.com/aspnet/EntityFrameworkCore/pull/11041), there's more than enough to do in the meantime...

@roji Thanks for the update. That sounds really cool! It is also great because you are helping us validate (and improve :smile:) the type mapping design.

@roji aspnet/EntityFrameworkCore#11041 was merged. Is there any way to start using your fix today?

@myrup I'm actively working on this, it involves many things across the stack. I'm really hoping it'll make it into preview2.

This has been merged and will be released with 2.1.0-preview2.
For now, the depends on Npgsql 4.0.0, which is still in development - not ideal. We'll see how the release cycles of EF Core and Npgsql coincide and see what to do.


Update implementation to be able to transform the ISO Simple Template docx

We need to be able to convert this Word document into Asciidoc.
reverse_adoc has the command w2a which converts docx into Asciidoc, by first converting it into HTML then adoc.
2023-iso-simple-template-rice.docx

@ronaldtse I need your opinion on that matter before I start the implementation

hello @hmdne i am ready to test the conversion with the .docx file provided. since distribution of internal formats by some SDOs is no longer possible, conversion of their official ms-word version is presently the only way to support input to metanorma. i discussed this with @ronaldtse a while back. i suspect in the future, the documents may end up "living" in a different system, and the ms-word output from that system could be rather different that what we presently have. when you are ready, let me know if there are any questions about the sample word file. thank you.


Question: How do you use this?

Hello,
I'm in a situation that almost mirrors your described usecase in the README.  I would love to see if your library works for me, but I'm not sure how to use it.  The example in the README shows how to specify options, but I'm not seeing where any work is being done in this example.  Where do I do my work in this example?
Sorry for such a noob question, I'm still learning about managing memory and CPU usage with long-running processes and lots of them.
Thanks in advance

Hello,
Thanks for you question, it's not noob or anything like this. It's actually my fault that I didn't explain the module well enough.
I'll be glad to help, just one question before that: are you trying to use it as a standalone program from the terminal or as a library by importing it in your own module?

I'm trying to use it in conjunction with my node app which consists of a main process (call it main.js) which kicks off a child process (call it worker.js).  This child process is responsible for opening a pdf with pdf.js npm package, counting the pages in it, and for each page in each pdf, use tabula-js npm package to parse the tabular information inside.  tabula-js kicks off a .jar file asynchronously with .spawn and I'm having a really hard time controlling how much CPU is used during this process.  tabula-js gave no way to synchronously call that .jar file, so I'm trying to find a way to keep my operating system from bogging down whenever I run my node application.
Does that answer the question?  If not, I can try again!

Thanks for the detailed the explanation!
Here's the code for a small demo I tried and it seems to be working:
const tabula = require('tabula-js');
const limiter = require('cpulimit');

// Run tabula

const t = tabula('file.pdf'); // your pdf filename
t.extractCsv((err, data) => console.log(data));

// Run cpulimit
const options = {
  limit: 20, // or any other value
  includeChildren: true,
  command: 'tabula-java.jar'
};

limiter.createProcessFamily(options, (err, processFamily) => {
  if (err) {
    console.error('Error:', err.message);
    return;
  }

  limiter.limit(processFamily, options, (err) => {
    if (err) {
      console.error('Error:', err.message);
    } else {
      console.log('Done.');

Try it and tell me if this worked for you.

Thanks for the explanation!  I'll give this a shot and let you know how it goes.  My thoughts are this: since I'm running many tabula calls concurrently on a worker child process, I can run cpulimit in the main process right before forking off all these child processes.  The difference to what you have here is that I would be calling into tabula a bunch of times and I would be doing so after running cpulimit as opposed to running tabula once and immediately running cpulimit after.  Do you see that working?
Side-note: the reason I'm in this situation is this: tabula-js seems to be using the .spawn method to kick off the child process that runs the .jar file which is non-blocking.  I tried to fork the tabula-js repository and let the developer use the .spawnSync method if they chose via an option, but couldn't get it working.  You wouldn't know of any way I could get a nodejs program to wait for an external process like the running of a .jar file, would you?  This is ultimately why I'm trying to use cpulimit because I am running tabula a lot of times and I can't find a way to slow it down other than throttling it myself (which I don't know how to do yet) or using something like cpulimit.
Thanks again for your help!

But your callback is called when the child processes finishes, why do you need to make in synchronous?

I guess what I could do is keep an array of "jobs" locally to my node process and pop off a new job in each callback to control the flow.  My problem has been that I've been looping through pdfs, looping through those pdf's pages, and kicking off a tabula process for each of the 12 tables on each page.  I'm having trouble reorganizing the code I've written to do this in a more conservative manner in which I'm not running hundreds of Tabula runs at once.
What would be your approach, if you don't mind me asking?

I suggest you use a queue and add each page of each pdf file as a task. Then processes those tasks with the right concurrency level (how many tasks are being process in parallel at any moment). Try using https://caolan.github.io/async/docs.html#queue, it gives you all of the above features.


[FR]: Letting clients to change the length of silence required to be detected as stop of speaking

Description
Letting clients change the length of silence required to be detected as a stop of speaking.
D.js does provide such features, so it's technically client-side...
Reason
It is useful.
Example code
No response
Confirmations

[X] This feature is not already implemented.
[X] I have verified that this is not a duplicate feature request.

Code of Conduct

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

Already implemented.


Fix link opening in new window

The way we previously did it in Jekyll doesn't work
with Black Friday. There are a few workarounds, but
the easiest way to fix it is to just change those
links to HTML email.
Fixes #8350
(see https://code.luasoftware.com/tutorials/hugo/how-to-create-link-with-target-blanks-in-hugo-markdown/)

The class="_" is a trick to make syntax highlighting not break because of an unclosed _ in editors like Atom.

/assign @chenopis
/assign @zacharysarah

Tested in staging, works fine.
/approve
/lgtm

I would suggest you use the link shortcode for this:
https://github.com/kubernetes/website/blob/master/layouts/shortcodes/link.html
It is in use already, so if you search for {{< link  you should find it. Sprinkling the Markdown with HTML gets messy really fast. And Blackfriday/Hugo will eventually get support for this, and it is easier to search for one shortcode than random inline HTML.

@bep So you are saying use the link shortcode even though it currently doesn't support the _blank target? I am not 💯 about this, and think maybe we should leave it how it is after this PR was merged until Hugo gets that feature and then we can change it back. Can you confirm that I am correct and that Hugo doesn't currently support setting a target?


add on_upload_complete callback

Closes #2

@max-l on_upload_complete is now integrated, check it out. Thanks for the idea and contribution.


Use latest setuptools (39.0.1) by default on build process

More info/questions in the issue itself.
Closes #3963

LGTM


(Addition) Add original beeping noise when there is hazardous weather.

I'd really like the same frequency used from the original.

@Jaydem808 is there an audio or video of this sounds on the internet some where?

Also, here is another addition, and the source for the sound.  Is it alright if you add Air Quality back?
Air quality image showcase from 4 years ago: (https://user-images.githubusercontent.com/91167466/140232173-d8c27acb-ff5b-4b8f-ae7c-dedbfdcd0193.png)
Alert Frequency Sound is from 0:35 to 0:40: https://www.youtube.com/watch?v=fG206BR2lfg

@Jaydem808 is there an audio or video of this sounds on the internet some where?

I am also pretty sure you can extract it from Taiganet's simulator as well.

@Jaydem808 thanks. I didn't realize that the air quality wasn't working. What location are you using?

Btw I am not allowed to use any assets from Taiganet's Simulator. Been down that road 5 years ago...

It's working for me so it appears to be location based.  Here's a screenshot for Medford NY:

@Jaydem808 Beeping sound is now added in version 1.67
Note that it is only heard when you have the hazard text visible in the scroll area.

Thanks! It isn't perfect, but alright!

Whenever there is a weather emergency, can you try make current conditions cut to hazardous weather?

@Jaydem808 I received some feedback a while back where people didn't like it working that way.  You are more than welcome to fork the repo and make the changes yourself.


"Frăsinet" and "Clănița" are listed in the drop-down menu

Description:
"Frăsinet" and "Clănița" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Frăsinet" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Frăsinet, TELEORMAN (Frăsinet)" and "Comuna Frăsinet, TELEORMAN".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Clănița" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Clănița, TELEORMAN (Frăsinet)".