'Some of your tests did a full page reload!' error between two executions since karma 5.2.0

Since version 5.2.0, in watch mode, every time an Angular test suite re-executes after some change is saved in a file, I get the following log in the console:
ERROR
Some of your tests did a full page reload!

The tests run fine and pass, but this error is logged between executions.
Here's a reproduction project: https://github.com/jnizet/karmarepro
To reproduce:

clone the project
yarn
ng test
change some test description in src/app/app.component.spec.ts and save file
look at the error appearing in the console.

Note that this project has just been created by

using ng new to create a new Angular project
changing the version numbers of all test-related dependencies in package.json

So I doubt the tests actually do a full page reload as the error message claims.

The error message is emitted by an beforeunload event handler:
https://github.com/karma-runner/karma/blob/8bc5b468393bb90c0cac8f400d61e3434596c05a/client/karma.js#L129
Run the test with --no-single-run and open chrome devtools. Set a breakpoint on the handler above and reproduce. You should see the action that causes your issue.

@johnjbarton I don't think there is any issue in my code (which, BTW, isn't even my code, but the standard code generated by Angular CLI).
Even if I reduce the test to the following:
describe('AppComponent', () => {
  it('should work', () => {
    expect(true).toBeTruthy();
  });
});

, any change made to the test causes the error to be displayed between the two executions. And the error message is not dispayed when using a version older than 5.2.0, so I think it's a regression.
Here's the stack trace when I put the breakpoint where you asked:
Karma.onbeforeunload (karma.js:142)
directCallParentKarmaMethod (context.js:288)
contextWindow.onbeforeunload (context.js:219)
navigateContextTo (karma.js:135)
allowClearContextToComplete (karma.js:278)
setTimeout (async)
(anonymous) (karma.js:273)
r.emit (index.js:83)
r.onevent (index.js:83)
r.onpacket (index.js:83)
(anonymous) (index.js:83)
r.emit (index.js:83)
r.ondecoded (index.js:83)
(anonymous) (index.js:83)
r.emit (index.js:83)
a.add (index.js:83)
r.ondata (index.js:83)
(anonymous) (index.js:83)
r.emit (index.js:83)
r.onPacket (index.js:83)
(anonymous) (index.js:83)
r.emit (index.js:83)
r.onPacket (index.js:83)
r.onData (index.js:83)
ws.onmessage (index.js:83)

Please try setting client.clearContext true in your config.

every time an Angular test suite re-executes after some change is saved in a file

Is this specific to Angular or just karma file-watch feature?

client.clearContextset to true true makes the error message disappear. But it has the side effect of making the html test report disappear from the browser window. That's apparently why it's set to false, since the karma.conf.js generated by the Angular CLI says:
    client: {
      clearContext: false // leave Jasmine Spec Runner output visible in browser
    }

It's still good to know though, because my actual project uses a headless browser anyway.

Is this specific to Angular or just karma file-watch feature?

It's not specific to Angular. As soon as client.clearContext is true, the error appears between two test executions. Here's a repro created with karma init and containing only a trivial jasmine test written in JS: https://github.com/jnizet/karma-repro2.

I'm pretty sure it's a regression. We can see it clearly in the Stryker, where we rerun the karma instance in fast succession.
I see this line is removed in #3452 :
    // if not clearing context, reloadingContext always true to prevent beforeUnload error
    reloadingContext = !self.config.clearContext

If I add that line back Karma works again as expected with Karma.
@johnjbarton did you deliberately remove this? Or got it lost in translation?

@nicojs I think something else must be going on here.
This line
   reloadingContext = !self.config.clearContext

will prevent the onbeforeunload error message in all cases if self.config.clearContext == true.   We want to the error if the page does attempt a reload, whether or not the clearContext feature is enabled. To say this another way, we don't want to disable the message for users of clearContext.

Thanks for the fix @johnjbarton

@johnjbarton  this fix still seems unreleased. Could we release this? Stryker users are reporting issues.

We are working on a release now

When i use jasmine-spec-reporter i get this error, when i remove this reporter error is gone


Include tests in sdists

This makes it easier for downstream packagers to make sure they have the package set up correctly

The Windows builds are failing on travis with this. Not sure why this is the case ...

It looks like there is a problem with the traits install during the build.  I am not sure it has anything to do with this commit.

Without this commit travis on Windows builds just fine.
see https://travis-ci.org/acoular/acoular and https://travis-ci.org/acoular/acoular/builds/622744559


Same UserId Cookie For Every User

I'm curious why the userId cookie is the same for every user that signs up. Was that done on purpose?

Never mind, I realize the userId cookie was from a different app.

No problem! Thanks for testing the app.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2910

Questions ?
Please refer to the Backport tool documentation


JettyContainer在2.6.0以后为什么没有了？

JettyContainer在2.6.0以后为什么没有了，是移到其他地方了吗？还是处于哪方面的考虑删掉了呢？有人知道吗？

According to git history, it was removed by commit https://github.com/apache/incubator-dubbo/commit/e62d3ff805c13eb2c530f50fb6afe2c640ed60ad
@chickenlj could you provide some detail?

JettyContainer is designed for exposing monitor statistics through HTTP.
So it's removed to dubbo-ops along with dubbo-admin and dubbo-monitor.


fix(angular): add request overloads based on observe property

Status

READY
Description
Fixes #1631

Updated generateImplementation to add function overloads when isRequestOptions is true.
This ensures that when supplying observe to a request, it's return type will match what is returned by the HttpClient.

Todos

[ ] Tests
[ ] Documentation
[ ] Changelog Entry (unreleased)

It seems to me that the yarn.lock has not been updated with yesterday's 7.1.1 release.

Agreed @anymaniax ?

OK made progress now some test failures!


Azure Functions emits error when encountering duplicated fields foo=bar&foo=baz

Please provide a succinct description of the issue.
Repro steps
Provide the steps required to reproduce the problem

I create my first Azure Functions (an HTTP trigger function, using Python, deployed from github, into US WEST, ...)

Trigger my function with duplicated parameters in URL. Such as https://myapp.azurewebsites.net/api/myfunc?foo=bar&foo=baz

Expected behavior
My function will be called and let me handle the input query string.
Actual behavior

Got an error page in my browser

This XML file does not appear to have any style information associated with it. The document tree is shown below.

An error has occurred.

From the Azure Functions backend log, I see:
 mscorlib An item with the same key has already been added

Known workarounds
None.
Possible fix
The current situation is caused by the Azure Functions implementation tries to map the query_string (or HTTP POST body, for that matter) into environment variables, and these variables can not have duplicated names. I don't know if we can map them in environment variables in a meaningful way, but at the very least, we can try to fit only one value into that env variable, and then provide the raw QUERY_STRING (which is missing today) for developers to dig them out, just as the old school CGI did.
Related information
Provide any related information

Programming language used: Python
Links to source: Available upon request.

Yeah, we should map duplicated query params in a "last one wins" fashion, and make the raw query string available to your function via REQ_QUERY (as we do for individual REQ_QUERY_XXX params).

Duplicate query parameters will no longer cause errors. The behavior is now "last wins". In addition, I've made the original URL and query string available via REQ_ORIGINAL_URL and REQ_QUERY variables.


Sniper v2.1

This is an upgrade to the PR 5443 (https://github.com/PokemonGoF/PokemonGo-Bot/pull/5443).

Social feed sharing is now enabled by default, since it helps the community and has no drawbacks. Whether to use its data or not has to be set in the new Sniper task config (mode = social).
You can now specify multiple sources (URLs) to gather pokemon data from, including the old PokemonGo-Map. Note that they have to reply JSON objects.
MoveToMapPokemon was kept because some users still use the "walk-to-snipe" feature. Deleting it in the near future should have no impact on this new Sniper.

Related issues: #3672 #3656 #3666 #3355 #3278 #3226 #5523

👍

:+1:

This is not working with https://pokesnipers.com/api/v1/pokemon.json, it throws this error after successfully fetching the source:
Traceback (most recent call last):
  File "pokecli.py", line 843, in <module>
    main()
  File "pokecli.py", line 202, in main
    bot.tick()
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/__init__.py", line 718, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/cell_workers/sniper.py", line 341, in work
    targets = self._get_pokemons_from_url()
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/cell_workers/sniper.py", line 428, in _get_pokemons_from_url
    return self._parse_pokemons(results_hash_map.values())
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/cell_workers/sniper.py", line 373, in _parse_pokemons
    pokemon_name = Pokemons.name_for(pokemon.get('pokemon_id'))
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/inventory.py", line 456, in name_for
    return cls.data_for(pokemon_id).name
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/inventory.py", line 452, in data_for
    return cls.STATIC_DATA[pokemon_id - 1]
IndexError: list index out of range
[2016-09-18 10:13:15] [MainThread] [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
[2016-09-18 10:13:15] [MainThread] [sentry.errors.uncaught] [ERROR] [u'IndexError: list index out of range', u'  File "pokecli.py", line 843, in <module>', u'  File "pokecli.py", line 202, in main', u'  File "pokemongo_bot/__init__.py", line 718, in tick', u'  File "pokemongo_bot/cell_workers/sniper.py", line 341, in work', u'  File "pokemongo_bot/cell_workers/sniper.py", line 428, in _get_pokemons_from_url', u'  File "pokemongo_bot/cell_workers/sniper.py", line 373, in _parse_pokemons', u'  File "pokemongo_bot/inventory.py", line 456, in name_for', u'  File "pokemongo_bot/inventory.py", line 452, in data_for']
Sun Sep 18 10:13:15 BRT 2016 Pokebot  Stopped.
Press any button or wait 20 seconds to continue.

@lucasbento Please show me more logs. Did it successfuly validate this source?

@YvesHenri: yes, it did.

@YvesHenri here is all the important part of the log:
[2016-09-18 10:38:53] [MainThread] [PokemonGoBot] [INFO] Starting bot...
[2016-09-18 10:38:54] [MainThread] [CollectLevelUpReward] [INFO] Received level up reward:
[2016-09-18 10:38:54] [MainThread] [IncubateEggs] [INFO] Eggs incubating: [3.95/5.0 km] (Eggs left: 8, Incubating: 1)
[2016-09-18 10:38:54] [MainThread] [ShowBestPokemon] [INFO] *Best Pokemons* (Dragonite, CP 2332, IVCP 0.94, DPS 15.04, HP 126/126) | (Snorlax, CP 1862, IVCP 0.64, DPS 15.76, HP 200/200) | (Vaporeon, CP 1749, IVCP 0.91, DPS 11.1, HP 171/171) | (Vaporeon, CP 1677, IVCP 0.95, DPS 16.06, HP 165/165) | (Lapras, CP 1600, IVCP 0.92, DPS 12.66, HP 158/158)
[2016-09-18 10:38:54] [MainThread] [PokemonCatchWorker] [INFO] Skip ignored Slowpoke! (CP 451) (Potential 0.6) (A/D/S 11/10/6)
[2016-09-18 10:38:58] [MainThread] [    Sniper] [INFO] Fetching pokemons from the sources...
[2016-09-18 10:38:59] [MainThread] [    Sniper] [INFO] After merging, we've got 24 results
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO]
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Ran for 0:00:14
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Travelled 0.00km
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Visited 0 stops
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before ()
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Threw 0 pokeballs
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Earned 0 Stardust
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Hatched eggs 0
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Next egg hatches in 1.05 km
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO]
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Highest CP Pokemon:
[2016-09-18 10:39:01] [MainThread] [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
  File "pokecli.py", line 843, in <module>
    main()
  File "pokecli.py", line 202, in main
    bot.tick()
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/__init__.py", line 718, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/cell_workers/sniper.py", line 341, in work
    targets = self._get_pokemons_from_url()
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/cell_workers/sniper.py", line 428, in _get_pokemons_from_url
    return self._parse_pokemons(results_hash_map.values())
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/cell_workers/sniper.py", line 373, in _parse_pokemons
    pokemon_name = Pokemons.name_for(pokemon.get('pokemon_id'))
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/inventory.py", line 456, in name_for
    return cls.data_for(pokemon_id).name
  File "/Users/Lucas/Documents/Projects/Pokelast/pokemongo_bot/inventory.py", line 452, in data_for
    return cls.STATIC_DATA[pokemon_id - 1]
IndexError: list index out of range
[2016-09-18 10:39:01] [MainThread] [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/Users/Lucas/Documents/Projects/Pokelast/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
[2016-09-18 10:39:01] [MainThread] [sentry.errors.uncaught] [ERROR] [u'IndexError: list index out of range', u'  File "pokecli.py", line 843, in <module>', u'  File "pokecli.py", line 202, in main', u'  File "pokemongo_bot/__init__.py", line 718, in tick', u'  File "pokemongo_bot/cell_workers/sniper.py", line 341, in work', u'  File "pokemongo_bot/cell_workers/sniper.py", line 428, in _get_pokemons_from_url', u'  File "pokemongo_bot/cell_workers/sniper.py", line 373, in _parse_pokemons', u'  File "pokemongo_bot/inventory.py", line 456, in name_for', u'  File "pokemongo_bot/inventory.py", line 452, in data_for']
Sun Sep 18 10:39:01 BRT 2016 Pokebot  Stopped.
Press any button or wait 20 seconds to continue.

Fixed issue #5523 (old sniper)

It is working pretty well now:
[2016-09-18 12:31:16] [MainThread] [    Sniper] [INFO] Validating sources: https://pokesnipers.com/api/v1/pokemon.json, https://pokewatchers.com/grab/...
[2016-09-18 12:31:17] [MainThread] [    Sniper] [INFO] Source 'https://pokesnipers.com/api/v1/pokemon.json' is good!
[2016-09-18 12:31:25] [MainThread] [    Sniper] [INFO] Source 'https://pokewatchers.com/grab/' contains errors. Details: Fetching has timed out!
[2016-09-18 12:31:25] [MainThread] [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
[2016-09-18 12:31:25] [MainThread] [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
[2016-09-18 12:31:25] [MainThread] [PokemonGoBot] [INFO] Starting bot...
[2016-09-18 12:31:26] [MainThread] [CollectLevelUpReward] [INFO] Received level up reward:
[2016-09-18 12:31:26] [MainThread] [IncubateEggs] [INFO] Eggs incubating: [0.77/5.0 km] (Eggs left: 8, Incubating: 1)
[2016-09-18 12:31:26] [MainThread] [ShowBestPokemon] [INFO] *Best Pokemons* (Dragonite, CP 2332, IVCP 0.94, DPS 15.04, HP 126/126) | (Snorlax, CP 1862, IVCP 0.64, DPS 15.76, HP 200/200) | (Vaporeon, CP 1749, IVCP 0.91, DPS 11.1, HP 171/171) | (Vaporeon, CP 1677, IVCP 0.95, DPS 16.06, HP 165/165) | (Lapras, CP 1600, IVCP 0.92, DPS 12.66, HP 158/158)
[2016-09-18 12:31:26] [MainThread] [    Sniper] [INFO] Fetching pokemons from the sources...
[2016-09-18 12:31:27] [MainThread] [    Sniper] [INFO] Source 'https://pokesnipers.com/api/v1/pokemon.json' returned 25 results
[2016-09-18 12:31:27] [MainThread] [    Sniper] [INFO] After merging, we've got 25 results
[2016-09-18 12:31:27] [MainThread] [    Sniper] [INFO] Poliwhirl is not listed to catch, nor a VIP and its IV sucks. Skipping...

Also fixes #5128.

👍

Does not fix #5523... at least not all of it. See #5542

Feedback:

social didn't work (or solve issue #5518 ) because I already burnt myself on mqtt with normal dev branch beforehand :p
multiple urls in principle seemed to work, but this times out (on browser it works, but responds with a little delay). Is there any other source I can try?

@cowst I dont want users to COMPLETELY customize EVERYTHING, since it might lead to many kind of bugs due to wrong/bad customizings, which means lots of issues. It's a nightmare to track them all. Anyways, it has a decent 7 seconds of timeout when validating and 3 seconds when fetching.
Surely having a list of sources that are pending validations will help A LOT, though I'm not doing this untill this PR gets merged (dont ask me why it hasnt yet).

nothing is perfect , wait for merger Sniper v2.1

👍

@YvesHenri I didn't look at the code, but why aren't we skipping pokemons before teleporting?
Isn't it a waste?
Example:
[2016-09-19 21:14:59] [MainThread] [    Sniper] [INFO] Teleporting to meet Onix (39.163984; -119.765993)...
[2016-09-19 21:15:02] [MainThread] [    Sniper] [INFO] Yay! There really is a wild Onix nearby!
[2016-09-19 21:15:03] [MainThread] [    Sniper] [INFO] Teleporting back to the old position (49.8730329398; 8.61117880831)...
[2016-09-19 21:15:06] [MainThread] [PokemonCatchWorker] [INFO] Skip ignored Onix! (CP 412) (Potential 0.51) (A/D/S 2/11/10)


Higher-order interpolation?

I wanted to try out higher-order interpolation by changing interp_method in species_config.ini but get: ValueError: Method 'pchip' is not defined or ValueError: There are 3 points in dimension 2, but method cubic requires at least  4 points per dimension. or ValueError: There are 3 points in dimension 2, but method quintic requires at least  6 points per dimension. from SpeciesInit().
The first question is whether (thinking here especially of FitModel()) it really can be useful to use something other than linear. If yes, would it make sense to let the interpolation method be argument (overriding the default) in the functions? Or does the user need to re-initialise the whole species package when trying out different orders? Comparing on one plot the importance of the interpolation method (as a check) would requiring saving the data, chaning the order in the config file, re-initialising, and reading the data back in. But hopefully linear interpolation is always ok anyway so that this test does not need to be done often :wink:.

Hello @gabrielastro!
At some point I implemented it because I wanted to test the accuracy with different interpolation methods, but then realized that interpolation with NDIM > 2 was not supported by the scipy function. I still need to remove that setting so best to use linear interpolation indeed.

Bedankt, @tomasstolker :)!

The interp_method parameter is no longer supported with commit 3f07949.


Removed the usage of trivial_flag as it can lead to single-qubit gates being omitted

Summary
Fixes #3197
Details and comments
The stochastic swap pass iterates over the circuit layer by layer and tries to place each layer with one permutation (or swap gate). If there is a layer that cannot be placed with one permutation, the stochastic swap pass tries to place each gate in that layer indivdually.
Currently, the stochastic swap pass has an intermittent bug that is triggered by such a layer if the layer also contains at least one single-qubit gate. When the stochastic swap pass tries to place each gate indivdually, it skips single-qubit gates as they cannot cause any additional swap gate. However, skipping a single-qubit gate also means that the resulting DAG is not updated with the single-qubit gate. Thus, single-qubit gates in such layers are omitted in the transpiled, resulting circuit.
This PR fixes the above bug by removing an if statement that checks the value of the trivial_flag variable and skips the single-qubit gate accordingly. Layers that do not require a swap gate seem to handled correctly by _layer_update. I assume that might not have been the case in the past, hence leading to this code. In fact, the removed if statement was only triggered on the first layer of a circuit in the past: https://github.com/Qiskit/qiskit-terra/commit/c3f5d0ebe0a3aa8416dfa23b92e067ca905a5cb6#diff-490de7e19985a202a6a15414d9e18b28L333 .

Thanks! I added the test and removed the occurence of trivial_flag in stochastic_swap.


Master

I am bringing up the repo up to date. Who has access to approve this PR?

If we go this way, we will need to change the composer file in WS from this "bolt/bolt": "3.7.2", to "mshanken/bolt": "3.7.2" once you do any update in the mshanken/bolt that should be pushed to master as well. Bolt/Bolt has not been updated in years either. Most security patches come from the other libraries (twig, symfony, etc)


installation on windows

Description
hallow!
windows 10.22631 docker desktop 4.36 pip 24.1 python 3.10.6 WSL 2.0
I can't install AGiXT with repository cloning or local unpacking. Before this attempt to install, it gave an attribute error when defining the wmi variable.
Unfortunately, I don't understand how to run it from under Docker and I can't attach logs or screenshots. Maybe the problem is the lack of a video card?
Operating System

[ ] Linux
[X] Windows
[ ] MacOS

Acknowledgements

[X] I am NOT trying to use localhost for providers running outside of the docker container.
[X] I am NOT trying to run AGiXT outside of docker, the only supported method to run it.
[X] Python 3.10.X is installed and the version in use on the host machine.
[X] The latest version of Docker is installed and running on the host machine.
[X] I am using the latest stable version of AGiXT.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.
[X] I have searched the existing issues to make sure this bug has not been reported yet.

AGiXT doesn't require a GPU.
https://josh-xt.github.io/AGiXT/1-Getting started/0-Quick Start.html
Take a look at the quick start guide. Make sure you have everything installed that is required there then try to run it as suggested.


synth_xilinx to infer wide multiplexers using new '-widemux ' option

From doc:
    -widemux <int>
        enable inference of hard multiplexer resources (MuxFx) for muxes at or
        above this number of inputs (minimum value 5).
        default: 0 (no inference)

LGTM (except the synth -keepdc part, see #1166 (comment))

Reverted in #1171


Remove mock-p2p project

Signed-off-by: Antoine Toulme<EMAIL_ADDRESS>Delete code that is not used, apparently.

This mock networking will be useful when we start working on more involved wire protocol changes for stuff like stateless clients.  I think it's a bit hasty to delete it.

Acknowledged, closing.


Handling ancillary files - flag as error

Ancillary files are the same UM fieldsfile format but don't have some of the header information of model output files.
Using ~access/umdir/ancil/atmos/GC5/n96e/orca1/land_sea_mask/etop01/v1/qrparm.mask fails with the less than useful
AttributeError: 'NoneType' object has no attribute 'zsea_at_rho'
Something like
    ff = mule.load_umfile(str(infile))
    if isinstance(ff, mule.ancil.AncilFile):
        raise Exception('Ancillary files are not supported')

Closed by #29.


Update benches to latest commit of the external library

Update benches to latest commit of the external library
Description

Codecov Report

Merging #508 (33d1cc2) into main (8fcd64f) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #508      +/-   ##
==========================================
- Coverage   94.37%   94.37%   -0.01%
==========================================
  Files          65       62       -3
  Lines        8715     8712       -3
==========================================
- Hits         8225     8222       -3
  Misses        490      490

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


Updated README with links to release notes and roadmap

Added roadmap link to the README #12399
Documentation Contribution Overview
In this contribution to the Wagtail repository, I focused on enhancing the clarity and usability of the documentation. I updated the README.md file by adding direct links to the Wagtail roadmap and release notes. This provides users with easy access to essential information regarding project updates and future directions. The revised line now reads:
[docs.wagtail.org](https://docs.wagtail.org/) is the full reference for Wagtail, and includes guides for developers, designers, and editors, alongside [release notes](https://docs.wagtail.org/en/stable/releases/) and our [roadmap](https://github.com/wagtail/wagtail/wiki/Roadmap).

I ensured compliance with the project's contribution guidelines throughout this process, maintaining consistency in formatting and style. Additionally, I conducted a thorough review of the changes for accuracy and clarity. I ran the documentation locally to verify that the updates render correctly and are easily navigable. These enhancements aim to improve the user experience by providing straightforward access to vital project information, helping users stay informed about ongoing improvements and the future direction of the Wagtail project.

@Rohit-Singh-01  I cannot rebase your remote branch for some reason, but I will merge this in with the changes outside of this PR.
Just a note for future, there's no need to update the contributors list, we (core team) usually do that when merging.
Also, I would suggest you just make your branch names use lower-kebab-case with simple characters only, adding a hash to the branch name is a bit confusing.
Thank you though for this contribution and the super quick response on the issue raised.

Merged via ff4f27b131125602cc312f50bef1fb3b2f0ac1f0

@lb Thank you for reviewing and merging my PR, and for the valuable feedback! I’ll make sure to follow the branch naming conventions and avoid updating the contributors list in future. I appreciate the opportunity to learn and contribute to the project! and any other note for me ??

Thanks @Rohit-Singh-01 - nothing else to note, good luck with your next contribution.


fix: typo in reset-offsets causes wrong config to be loaded

I'm not sure how to get the tests stable, so any insight into that would be appreciated!

I'm not sure how to get the tests stable, so any insight into that would be appreciated!

@lew-gordon -- me neither 😢    I just reran the failed step and it worked magically this time.  Maybe we need to extend the timeout here?
https://github.com/segmentio/topicctl/blob/7a61648d16c02d156da4b0c35caa6d444e127a67/pkg/admin/brokerclient_test.go#L454
Notably, local tests are like totally broken for me on Mac.  I'm wondering if there's a trick to get them working @yolken-segment ?  I just did:
go mod vendor
docker-compose up -d
make test-v2

And I got a million errors.
Ahhh... I grepped for the <IP_ADDRESS> address that is prominent in the errors, and found the reference to needing to run this script first:
❯ topicctl (master) ✘ scripts/set_up_net_alias.sh
Aliasing <IP_ADDRESS> to localhost...
Password:

Now the tests work!
Note to self: RTFM!

Awesome, thank you for this @erikdw!


Fix the ArtefactSync lambda and the infra-public-services module.

The ArtefactSync lambda was broken in two separate ways by #1441. Firstly, the runtime was switched to Python 3 without actually updating the code (because the code is unintuitively deployed from a zip file checked into the repo, not from the source). Secondly, even the updated code was broken and crashed 100% of the time. (Seems as though it wasn't tested?)

Fix the ArtefactSync lambda so that it works with Python 3. (#1441 fixed some but not all of the things which prevented it from running.)
Remove the manual build step for this lambda that led to it becoming broken in #1441. Terraform now builds the zip file from the source code and deploys it to lambda, instead of deploying a manually-built zip that's checked into the repo 🤦

This fixes the lambda and prevents the same issue from reoccurring.

Pin the version of the archive Terraform provider. Our Terraform version is so old that it doesn't recognise the certificate that recent provider versions are signed with.

Apart from being necessary for eliminating the checked-in zip file, this also fixes the infra-public-services Terraform module, which was broken because it also had an unpinned version of the archive provider.

Tested:

Applied infra-artefact-bucket from this branch in the staging account.
Ran terraform plan for infra-public-services; now works instead of erroring out on the provider signing issue.
Re-ran the latest Router build in Jenkins, observed that the Lambda runs and copies the file from from s3://govuk-staging-artefact to s3://govuk-staging-artefact as expected.

Follow-up work (not part of this PR):

Fix other lambdas which are still deployed from zipfiles checked into the repo.
Upgrade to at least the latest Terraform 0.11.x patch version so that we're able to use recent Terraform provider binaries.

Thanks for spotting this!


Add write a proposal in the issue before submitting a PR

Details
Clarifying about sending a proposal.
Just a readme change, no tests.

I have read the CLA Document and I hereby sign the CLA

I have read the CLA Document and I hereby sign the CLA

Updated

Updated


After full sync node is unable to catch up

Describe the bug
Very similar issue to : https://github.com/paradigmxyz/reth/issues/3515#issue-1783060192.
After full sync, node has been lagging behind for 24 hours already. Sometime it instantly fetches new heads and then suddenly stops, falls behind by ~200 blocks and, produces logs with errors (see below).
I have checked out the latest commit today and rebuilt Reth client, error still persists.

Current database version: 1
If you've built Reth from source, provide the full command you used
RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc
Code of Conduct

[X] I agree to follow the Code of Conduct

thanks,
do you have any additional logs?

thanks,
do you have any additional logs?

yeah, u mean full history? I can dump them in files for both CL and EL here.

a few more reth lines,
do you see a lot of

INFO try_insert_validated_block{block=(17620502, 0x115a7cd05f025cb497c4f19c7c3bebcc68dd9a8567f86f7b174cc44f01c218a2)}: blockchain_tree: return=Ok(Valid)

in a row?

a few more reth lines,
do you see a lot of

INFO try_insert_validated_block{block=(17620502, 0x115a7cd05f025cb497c4f19c7c3bebcc68dd9a8567f86f7b174cc44f01c218a2)}: blockchain_tree: return=Ok(Valid)

in a row?
[EL_logs.txt](https://github.com/paradigmx
CL_logs.txt
yz/reth/files/11951873/EL_logs.txt)

Very few... The interesting bit now that CL says its synced but its clearly not, Attaching log files


Programmatic Endpoint Registration setId

I believe that documentation
https://docs.spring.io/spring-amqp/reference/amqp/receiving-messages/async-annotation-driven/registration.html
is missing setId method call on SimpleRabbitListenerEndpoint object to work.

Sure!
Feel free to provide that documentation improvement: https://github.com/spring-projects/spring-amqp/blob/main/CONTRIBUTING.adoc.
Although the logic is like this:
public void registerEndpoint(RabbitListenerEndpoint endpoint,
			@Nullable RabbitListenerContainerFactory<?> factory) {
		Assert.notNull(endpoint, "Endpoint must be set");
		Assert.hasText(endpoint.getId(), "Endpoint id must be set");

So, if something is missed, it will be reported back to the caller.
There are might be much more nuances which we don't mention in the docs, but they make it obvious when you run your application.
We definitely cannot cover all the possible use-cases in the reference doc.


How to switch models

There is no way to find a button to switch models, for example, in a video, and the Llm.CLAUDE_3_5_SONNET_2024_06_20 is called by default every time

Hi there, right now, there isn't a UI to switch models. For images, we use GPT4o and Claude 3.5 Sonnet, I believe Option 1 is Claude 3.5 Sonnet and the other is GPT4o if you have both API keys set. If you only have one API key set, then we just generate two options with the same model.
Which model are you looking to use for video? I think video always uses Claude 3 Opus.

"As you can see in the screenshot, I used a third-party API and changed the base URL, but my API only supports models like GPT-4 and doesn't support CLAUDE_3_5. Because of this, no code was generated. I tried to tweak the backend, but I couldn't find a fix, which caused the error: [HTML Extraction] No  tags found in the generated content."

If you look like the line that says models used, it says OpenAI twice. Is any code being returned if you look at the code tab?
Does your third party API work for other use cases?
This likely is an issue with your API not this repo.


Player Experience Road

As players play games, they should gain 'experience' based on their total Np mined. As players level up various unlocks should be able to be recieved. These unlocks should be designed to be locked until obtained and once obtained they may alter game effects such as the number of scheduled events, number of games the player can play at once, or unlock specialists. Some may be available to the player for customization before they enter a game (?).

I don't think we should limit scheduled events, and if there is a rank-up system, I think the full standard game should be available to them at the start of the game. I do like the idea of Total mined Np being the experience though — that might fit in well with the lore too.


make footer position at the end of webpage

fixes issue #57 footer icon collapsing with task list (when long task list is added)

@mnosov622 please check this PR and let me know if require any changes.


refactor: parallax scroll to styled components

Screenshots

Before
After

Description

Migrated ParallaxScroll to styled-components

Coverage increased (+0.1%) to 39.489% when pulling af84d862257997726701977f3993efe7246e513b on shmesa22:refactor-parallax-scroll into 2fda53e80915f720306c445e86c0b1a334ee9926 on gitpoint:master.

Coverage increased (+0.1%) to 39.489% when pulling f591fe4e9a5a344a045c456014359beb36a1a7b8 on shmesa22:refactor-parallax-scroll into 2fda53e80915f720306c445e86c0b1a334ee9926 on gitpoint:master.

Coverage increased (+0.1%) to 39.987% when pulling 091737bd94ca515070a7c192425b108a92acc973 on shmesa22:refactor-parallax-scroll into 7fc068129f9c653c5e34db9c6b96c9a2c56e4c06 on gitpoint:master.


Handle reconnecting when there is a socket level failure

Updates the connection manager to attempt to reconnect the socket when the previous message failed. The reconnection will happen when the next request comes into the connection manager, this way we don't continually attempt to reconnect all failed connections at once.
Currently in draft since I am struggling to test this behaviour with unit tests. I have manually tested this to confirm it is working as expected.

Codecov Report

Merging #15 into master will decrease coverage by 5.66%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
- Coverage     100%   94.33%   -5.67%
==========================================
  Files          11       11
  Lines          98      106       +8
==========================================
+ Hits           98      100       +2
- Misses          0        6       +6

Impacted Files
Coverage Δ

lib/faktory_worker/connection_manager.ex
53.84% <50%> (-46.16%)
:arrow_down:

Continue to review full report at Codecov.

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

@SeatedInc/dev I have now updated this to fix the issue where the first request into the connection manager fails when a reconnect is required.


Update zh kube-scheduler.md has wrong indent

wrong indent, web become unreadable

/check-cla

this page https://deploy-preview-21765--kubernetes-io-master-staging.netlify.app/zh/docs/reference/command-line-tools-reference/kube-scheduler/

/assign @dchen1107

/check-cla

/check-cla

/assign @dchen1107

/lgtm
/approve


[help] how do you source local plugin/files with znap?

as said in the title, how do i load a local plugin using znap? I would i like to load my personal plugins using znap.

This was a thing in earlier versions where you could actually source a directory, but I do not think that it acts that way anymore. Would love to know if somebody else figured this out.


Failed to get original vf information: failed to find vf 2

Failed to get original vf information: failed to find vf 2
Hi, I am trying to use a ConnectX3 with SRIOV to use infiniband within pods. I got everything set up successfully, but when I try and launch a pod with the appropriate network annotation, I receive the following error repeatedly:
 Warning  FailedCreatePodSandBox  0s    kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "1a94062c9900fca5d5b889578e27613e1198707c85f51c654229726329b224d3": plugin type="multus" name="multus-cni-network" failed (add): [pi/testpod1/8db9d7e8-fd54-4d95-a8a0-e7a33c65fd8e:infiniband-net1]: error adding container to network "infiniband-net1": failed to get original vf information: failed to find vf 2

I am using multus in addition to sriov-network-device-plugin.
Am I doing something incorrectly here? I believe I followed the documentation correctly. Any advice would be greatly appreciated.
Here's some other information about my setup.

Config

apiVersion: v1
kind: ConfigMap
metadata:
  name: sriovdp-config
  namespace: kube-system
data:
  config.json: |
    {
        "resourceList": [
            {
                "resourceName": "mlnx_sriov",
                "resourcePrefix": "arcc",
                "deviceType": "netDevice",
                "selectors": {
                    "linkTypes": ["infiniband"],
                    "isRdma": true
                }
            }
        ]
    }

Network attachment

kind: NetworkAttachmentDefinition
metadata:
  name: infiniband-net1
  annotations:
    k8s.v1.cni.cncf.io/resourceName: "arcc/mlnx_sriov"
spec:
  config: '{
  "type": "sriov",
  "cniVersion": "0.3.1",
  "name": "infiniband-net1",
  "ipam": {
    "type": "host-device",
    "subnet": "<IP_ADDRESS>/24",
    "routes": [{
      "dst": "<IP_ADDRESS>/0"
    }],
    "gateway": "<IP_ADDRESS>"
  }
}'

Test Pod

apiVersion: v1
kind: Pod
metadata:
  name: testpod1
  annotations:
    k8s.v1.cni.cncf.io/networks: infiniband-net1
spec:
  containers:
  - name: appcntr1
    image: centos/tools
    imagePullPolicy: IfNotPresent
    command: [ "/bin/bash", "-c", "--" ]
    args: [ "while true; do sleep 300000; done;" ]
    resources:
      requests:
        arcc/mlnx_sriov: '1'
      limits:
        arcc/mlnx_sriov: '1'

Log entry when pod is launched

kube-sriov-device-plugin-amd64-bj2mh kube-sriovdp I1009 15:45:34.565550       1 server.go:125] Allocate() called with &AllocateRequest{ContainerRequests:[]*ContainerAllocateRequest{&ContainerAllocateRequest{DevicesIDs:[0000:82:00.3],},},}
kube-sriov-device-plugin-amd64-bj2mh kube-sriovdp I1009 15:45:34.565683       1 pool_stub.go:108] GetEnvs(): for devices: [0000:82:00.3]
kube-sriov-device-plugin-amd64-bj2mh kube-sriovdp I1009 15:45:34.565747       1 netResourcePool.go:48] GetDeviceSpecs(): for devices: [0000:82:00.3]
kube-sriov-device-plugin-amd64-bj2mh kube-sriovdp I1009 15:45:34.565769       1 pool_stub.go:141] GetMounts(): for devices: [0000:82:00.3]
kube-sriov-device-plugin-amd64-bj2mh kube-sriovdp I1009 15:45:34.565776       1 server.go:151] AllocateResponse send: &AllocateResponse{ContainerResponses:[]*ContainerAllocateResponse{&ContainerAllocateResponse{Envs:map[string]string{PCIDEVICE_ARCC_MLNX_SRIOV: 0000:82:00.3,PCIDEVICE_ARCC_MLNX_SRIOV_INFO: {"0000:82:00.3":{"generic":{"deviceID":"0000:82:00.3"},"rdma":{"issm":"/dev/infiniband/issm4","rdma_cm":"/dev/infiniband/rdma_cm","umad":"/dev/infiniband/umad4","uverbs":"/dev/infiniband/uverbs3"}}},},Mounts:[]*Mount{},Devices:[]*DeviceSpec{&DeviceSpec{ContainerPath:/dev/infiniband/issm4,HostPath:/dev/infiniband/issm4,Permissions:rw,},&DeviceSpec{ContainerPath:/dev/infiniband/umad4,HostPath:/dev/infiniband/umad4,Permissions:rw,},&DeviceSpec{ContainerPath:/dev/infiniband/uverbs3,HostPath:/dev/infiniband/uverbs3,Permissions:rw,},&DeviceSpec{ContainerPath:/dev/infiniband/rdma_cm,HostPath:/dev/infiniband/rdma_cm,Permissions:rw,},},Annotations:map[string]string{},CDIDevices:[]*CDIDevice{},},},}

I fixed this issue by deploying the ib-sriov-cni plugin, and using the ib-sriov type definition in my multus configuration. It seems the older connectx-3 cards operate a little differently than the newer cards.
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: infiniband-net1
  annotations:
    k8s.v1.cni.cncf.io/resourceName: "arcc/mlnx_sriov"
spec:
  config: '{
  "type": "ib-sriov",
  "cniVersion": "0.3.1",
  "name": "infiniband-net1",
  "ipam": {
    "type": "host-local",
    "subnet": "<IP_ADDRESS>/24",
    "rangeStart": "<IP_ADDRESS>",
    "rangeEnd": "<IP_ADDRESS>",
    "routes": [{
      "dst": "<IP_ADDRESS>/0"
    }],
    "gateway": "<IP_ADDRESS>"
  }
}'


Error when generating pdb file

I want to test the performance of trRosetta on a bunch of proteins I have, I got the .npz files from predict.py but when I tried to use trRosetta to output the predicted structure I got following error:
PyRosetta-4 2020 [Rosetta PyRosetta4.Release.python36.ubuntu 2020.50+release.1295438cd4bd2be39c9dbbfab8db669ab62415ab 2020-12-12T00:30:01] retrieved from: http://www.pyrosetta.org
(C) Copyright Rosetta Commons Member Institutions. Created in JHU by Sergey Lyskov and PyRosetta Team.
temp folder:      /dev/shm/64q8sw5m
dist restraints:  8485
omega restraints: 8437
theta restraints: 17282
phi restraints:   17292
mutation: G26A
mutation: G73A
mutation: G81A
mutation: G89A
mutation: G95A
mutation: G117A
mutation: G150A
mutation: G151A
ERROR: Pose::set_phi( Size const seqpos , Real const setting ): residue seqpos is not part of a protein, peptoid, or carbohydrate!
ERROR:: Exit from: /home/benchmark/rosetta/source/src/core/pose/Pose.cc line: 1069
Traceback (most recent call last):
File "/home/zyxue/Record/trRosetta/trRosetta.py", line 212, in
main()
File "/home/zyxue/Record/trRosetta/trRosetta.py", line 110, in main
set_random_dihedral(pose)
File "/home/zyxue/Record/trRosetta/utils_ros.py", line 152, in set_random_dihedral
pose.set_phi(i,phi)
RuntimeError:
File: /home/benchmark/rosetta/source/src/core/pose/Pose.cc:1069
[ ERROR ] UtilityExitException
ERROR: Pose::set_phi( Size const seqpos , Real const setting ): residue seqpos is not part of a protein, peptoid, or carbohydrate!
It seems like there's some residues that are not protein but that's impossible since the sequence I used was directly generated from pdb structure and the sequence alignment and first step prediction of constraints went well, I wonder what does this error mean and if there's a way to fix it.

Could you share a sequence or an msa for the protein which produces those errors so that I can have a closer look?

Hi gioni,
Thanks for your reply, here I attached the fasta, a3m file I used for prediction and the predicted npz file. Thanks for your help!
Erroreg.zip

There are 'X' letters at positions 123-130 in the 2aaoA.fasta file which is  the likely cause of the errors. The folding script can only work with the 20 standard amino acid types.

Thanks for your help! I checked my sequences and they do have "X" in the fasta which I thought doesn't matter previously. Another problem I have is that, I'm trying to make predictions for hundreds of sequences, so I generated .npz file for all of them first and then used trRosetta to make .pdb  structure file for them in parallel by multiprocessing module. However, when the runing went on it filled the innodes and space of my computer's temporary folder /dev/shm, I think it's because trRosetta create a temporary folder there containing a lot of temporary files that used up the space and didn't delete them in time. Do you have any idea on freeing up the space after one trRosetta process is finished? Alternatively, I can also add a line in my code to delete the temporary folder after the process ends but the name of the temporary folder is random so I can't get access to it automatically.
Many thanks for your help!

This is the error message I got:
Traceback (most recent call last):
File "/home/zyxue/Record/trRosetta/trRosetta.py", line 212, in
main()
File "/home/zyxue/Record/trRosetta/utils_ros.py", line 112, in gen_rst
f.close()
OSError: [Errno 28] No space left on device
And this is the result I got from running df -i
Filesystem       Inodes   IUsed    IFree IUse% Mounted on
udev            4102733<PHONE_NUMBER>    1% /dev
tmpfs           4108486    1060  4107426    1% /run
/dev/nvme0n1p2 61022208 1833243 59188965    4% /
tmpfs           4108486 3859057   249429   94% /dev/shm
The /dev/shm folder is completely filled by the temporary folders.

Yes, by default the script writes many intermediate files in /dev/shm. You can manually change it to whatever location you want by modifying 'WDIR' field in trRosetta/data/params.json. The intermediate files are automatically deleted if the script finishes successfully. It is possible that if you run many jobs in parallel /dev/shm gets exhausted quickly and the running jobs crash without cleaning the folder. I would suggest either increasing the default size of /dev/shm or changing it in params.json to some other location which has more free space.


VariableAnalysis.UnusedVariable - bug when using foreach

I see following warnings with the latest 0.7.x - release:
Unused variable $filter.(VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable)
Unused variable $validator. (VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable)
Unused variable $stored_data. (VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable)

The code is following:
/**
 * Add a single Element.
 *
 * @param ElementInterface     $element
 * @param FilterInterface[]    $filters
 * @param ValidatorInterface[] $validators
 */
public function addElement(ElementInterface $element, array $filters = [], array $validators = [])
{

	$this->form->add_element($element);

	foreach ($filters as $filter) {
		$this->form->add_filter($element->get_name(), $filter);
	}

	foreach ($validators as $validator) {
		$this->form->add_validator($element->get_name(), $validator);
	}
}

@Chrico It's a bug in VariableAnalysis which I reported already, see https://github.com/sirbrillig/phpcs-variable-analysis/issues/33
But at the moment (in master branch) I removed completely VariableAnalysis because too much false positives and phpStorm do a good job already to show wrong usages of variables.
We can think about adding VariableAnalysis again later.

Because VariableAnalysis  is not in use anymore, we can close this for now.


build: adjust dependabot run time

Coverage remained the same at 100.0% when pulling 1ddf8a89f78f96e3b625a883239e2441c6dc9e63 on adjust-dependabot into 76ce8c4e77adf88c6c7f07c326e0204b313c9310 on main.

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


nodejs-logging-pino

Hello, where can I request that an equivalent for pino be made? Thanks.

Actually, https://github.com/pinojs/pino/blob/master/docs/help.md#stackdriver is good enough

https://github.com/googleapis/nodejs-logging/issues/875 has since been created


[Java] Delete Checksums class as the logic is moved to Aeron

What about the benchmarks module?

@mjpt777 I would be keep for now, albeit empty. We discussed back in the day that Agrona needs it's own benchmarks.


Add Hamming problem for Standard ML track

There is now an example program example.sml and test program test_hamming.sml for the hamming problem. When testing this code a warning for "nonexhaustive match" may appear, it can be ignored for this exercise. It is just the SML checker trying to say that the function not handle strings that are not the same length, but that is already an invariant for this problem.

Ugh, made mistake there. Will remove the commits for the other problem.


fix: Use correct fieldname in Alignment-TiltSeries relationships.

The Alignment model was using source field tilt_series_id instead of tiltseries_id, the TiltSeries model was using tilt_series_id instead of tiltseries_id as a dest field.
This PR updates both relationships in the python API client.
closes #1342

This file is codegen'd, so I think we need to figure out where the root cause of this error is coming from 😓

This file is codegen'd, so I think we need to figure out where the root cause of this error is coming from 😓

mmh, that's a shame. this breaks the relationship between tomogram and tiltseries, so it would be great if we could fix it. unfortunately I know too little about where the schema for codegen comes from to investigate this.


Images not showing in production build

Problem
Recently, I've created a web app with react as my college assignment. The web app worked fine during the development. But in the production build I was able to see only a blank screen. I opened the console and found this

I searched about this problem on Stack Overflow but I could not find a proper solution.
I've opened the build folder to look if I can figure out the problem. then I realized the file paths have a / (slash) in front of it

so I've change the code to

now all the css and javascript files load properly. but the images are not loading so I've add the following code in a script tag

now all the images that will be displayed in the initial screen gets loaded properly, but the problem persists with the remaining images
I've tried adding MutationObserver  but that didn't work either
So, could you please tell me a quick way to solve this issue ?
Thank you for kindly reading my report

My problem was solved just by adding
"homepage": "./"
Thank you for your support

我也遇到遇到同样的问题，还有种办法是修改css extract插件的publicPath属性，但是我不知道这个属性在哪配置？

I've faced same issue, the error was ERR_NOT_FOUND and after checked how React was importing my static image with file:///file-name.png then I just remove / from my code
before:
<img  src={`/${item.imageUrl}`} />

to:

Hope this would help as well. 🚀

修改webpack的publicPath为auto就可以

I had the same problem but solved it by importing images instead of using exact path on src

this way
import Waving from "../assets/Waving.gif"

adding

How to add "homepage": "./" to package.json
Please help me. I have the same issue


Basic File Explorer Feature: Nested Files

Issue Type: Feature Request
Nested Files is a basic feature that all editors include today, including Visual Stuido for Windows and Mac. Based on the numerous PR's that the community submitted, it seems the implementation is roughy couple dozen lines of code. This feature is actively requested since 2016, and is almost mandatory when working with web projects. What are the reasons the dev team is not looking into adding this and ignoring community contributions?

https://github.com/microsoft/vscode/issues/6328


bsp server launched from console is not terminated when parent process is terminated

(I am on Windows)

Start server from console using this command:

~/.jdks/corretto-18.0.2/bin/java \
    -Xms100m  \
    -Xmx100m  \
    -classpath ~/AppData/Local/Coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.8.0/sbt-launch-1.8.0.jar \
    xsbt.boot.Boot \
    -bsp \
    --sbt-launch-jar=~/AppData/Local/Coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.8.0/sbt-launch-1.8.0.jar

(substitute your home to ~, otherwise sbt doesn't understand it)

Wait for the output:

[info] server was not detected. starting an instance
[warn] server is started using sbt-launch jar directly
[warn] this is not the recommended way: .sbtopts and .jvmopts files are not loaded and SBT_OPTS is ignored
[warn] either upgrade sbt.bat to its latest version or make sure it is accessible from $PATH, and run 'sbt bspConfig'
[info] welcome to sbt 1.8.0 (Amazon.com Inc. Java 18.0.2)
[info] loading global plugins from C:\Users\dmitrii.naumenko\.sbt\1.0\plugins
[info] loading project definition from C:\Users\dmitrii.naumenko\project
[info] set current project to dmitrii-naumenko (in build file:/C:/Users/dmitrii.naumenko/)
[info] sbt server started at local:sbt-server-3c9af2a7955490544b47
[info] started sbt server

Notice that two processes are launched:
The first corresponds to the JVM we just launched
Second, it's child:
~/.jdks/corretto-18.0.2/bin/java \
    -Dsbt.io.virtual=true \
    -jar ~/AppData/Local/Coursier/cache/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.8.0/sbt-launch-1.8.0.jar \
    --detach-stdio \
    --server

Terminate the process via Ctrl + C

Actual result
The child process isn't terminated, it remains hanging.
You need to kill it via process explorer.
Expected result
I am not that experienced in BSP but to me, it seems like a strange, not practical default behavior.
If after starting the main process it doesn't quit immediately I would expect that killing it would also kill the child server process.
While trying to debug various issues with IntelliJ-BSP integration I constantly had to kill processes from process explorer dozens of times.
What's more - AFAIU there is no way to disable this behavior because --detach-stdio is hard-coded in sbt.internal.client.NetworkClient#waitForServer and the comment says:

This instance must be shutdown explicitly via sbt -client shutdown
But this also doesn't work: https://github.com/sbt/sbt/issues/6723

It would be nice if the default behavior killed the child sbt server process
cc @jastice

Thanks for the report.
This is somewhat complicated topic, but one motivation of having the sbt server in general is to speed up the perceived load time by having the server always running. This allows interaction via sbtn client from shell issueing one command at a time.
I think there's a setting somewhere to control the idle TTL (time to live). I wonder if that should be set to 0s for BSP?

@eed3si9n
I would like to clarify some points, including terminology, just to be on the same page in the future.
As I mentioned, when I start the process ("process1") from a command line generated in .bsp/sbt.json (with xsbt.boot.Boot -bsp) it forks a child process ("process2", with --detach-stdio --server).
What are the correct terms for both of the processes?
AFAIU "process2" is at the same time a BSP server and SBT server:
I can connect to it via sbtn --client and send sbt commands.
At the same time I can connect to it via BSP client (e.g. from IntelliJ)
Is that correct?
If so, then what is then "process1" for?
Can't we skip forking another process and just start the combined SBT/BSP server in the original process when passing -bsp?
Or if the proper command to start BSP server is just --detach-stdio --server can we use it directly in  .bsp/sbt.json?


fix(typing): fix type hint of --skip switch attribute

Just a minor fix of the type hint on the class attribute of the --skip switch.

Yes, please. They seem redundant...
El jue., 27 abr. 2023 0:00, Sigurd Spieckermann @.***>
escribió:

@.**** commented on this pull request.
In copier/cli.py
https://github.com/copier-org/copier/pull/1118#discussion_r1178473602:

@@ -161,7 +161,7 @@ class CopierApp(cli.Application):
["-w", "--overwrite"],
help="Overwrite files that already exist, without asking.",
)

skip: cli.Flag = cli.SwitchAttr(

skip: cli.SwitchAttr = cli.SwitchAttr(

I guess you're right, it seems mypy is happy without it even in strict
mode. In fact, it seems that none of the type hints for flags and switches
are needed. Would you agree if I removed them all?
—
Reply to this email directly, view it on GitHub
https://github.com/copier-org/copier/pull/1118#discussion_r1178473602,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHNXDLA6YIY7ROGNDB7DCDXDGSG7ANCNFSM6AAAAAAXFEXP7A
.
You are receiving this because you commented.Message ID:
@.***>

Done. :slightly_smiling_face:


[video_player] Add setClosedCaptionFile method to VideoPlayerController

This PR adds setClosedCaptionFile method to VideoPlayerController to add, change or remove closedCaptionFile.
Fixes flutter/flutter#100302
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[x] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

Hope everything is fine now. And by the way, I want to thank you for your help @stuartmorgan.

The CHANGELOG issue that I've commented on three times is still unaddressed. We do require that PRs follow our style guides (which is why it's part of the checklist).


kernel: avoid useless context switch

Enhancement on void z_reschedule_irqlock(uint32_t key) to avoid useless context switch
Fixes #66299
signed-off-by: Gaetan Perrot<EMAIL_ADDRESS>

no merge commits please

no merge commits please

yes fail on my part sorry..

@moonlight83340 - you might just need to fix the compliance issues.

No complaints. Note though that irq_lock() is a legacy API, what's the use case where you're hitting this?

I checked an issue and found that t was a right way to do. Not hitting the use case personally in fact.
The issue : https://github.com/zephyrproject-rtos/zephyr/issues/66299


Can't select all text

I press the inputfield long time,it can't select all or copy or paste.

Hi,
I tested this today with 5.6.2p4 on Android and works fine for me.
Added a example project, check if you perhaps missed something :)
-Simon

thank you so much.


Dornamedical - The number of jobs is the same as on the company's official website

Description: After typing the name of the company Farmexim in the search bar of peviitor.ro and entered, the jobs are displayed and their number is the same with the number of the jobs from the company website.
Precondition: The website (https://peviitor.ro/) is up and running

Step 1: Open (https://peviitor.ro/)
Expected result: You can see the homepage with the searching bar in the middle

Step 2: Type in the searching bar the name of the company ("Farmexim"). Then click enter
Expected result: you can write the name of the company inside the searching bar and be redirected to the company's jobs

Step 3: Verify if the jobs of the company are displayed.
Expected result: you can see the company's jobs, each job inside a box

Step 4: Verify the number of the jobs.
Expected result: above the boxes with the jobs you can see the the number of jobs.

Step 5: Go on the company's official website and see if the number of the jobs is the same with the jobs number displayed on peviitor.ro
Expected result : the number of jobs from the official company website (https://www.farmexim.ro/posturi-vacante-26.html) is the same with the number of jobs on peviitor.ro

Step 2: Type in the searching bar the name of the company ("Farmexim"). Then click enter Expected result: you can write the name of the company inside the searching bar and be redirected to the company's jobs

Not Farmexim, maybe Dorna Medical . :D

Step 5: Go on the company's official website and see if the number of the jobs is the same with the jobs number displayed on peviitor.ro Expected result : the number of jobs from the official company website (https://www.farmexim.ro/posturi-vacante-26.html) is the same with the number of jobs on peviitor.ro

Again, change Farmexim to Dornamedical :D

Test pass


Weird grey text background rendering in VS Code integrated terminal using bash

Windows build number:  10.0.16299.248

Problem: I just enabled WSL on my desktop and installed Ubuntu from the Microsoft Store. I didn't like the default color scheme (which is terrible to read btw) so I made use of the colortool and switched to solarized_dark. Everything looked great on bash and cmd. I also made use of ansi-dark theme to further polish text rendering.

However, when I tried to use it within VS Code as the integrated terminal, there was something strange.

P.S. I am using the One Dark Pro theme extension on VS Code.

What should be happening instead: Actually I have used bash as my integrated terminal in VS Code for the past month on my laptop. Same use of colortool and the ansi-dark theme. I was expecting the same rendered result as on my laptop, which looks like this:

This looks like it was either fixed by us or a problem in winpty, the library VSCode uses on all versions of windows below 19H1.
@sethrr What versions of Windows and VSCode are you using? Have you set any unusual color schemes on the windows console (outside of VSCode?)

Windows 10, VS Code 1.30.2
I haven't changed anything except for some Powershell profile colors which
don't seem to conflict. CMD and Powershell display fine in the Integrated
Terminal.
On Tue, Feb 5, 2019 at 10:36 PM Dustin L. Howett (MSFT) <
<EMAIL_ADDRESS>wrote:

This looks like it was either fixed by us or a problem in winpty, the
library VSCode uses on all versions of windows below 19H1.
@sethrr https://github.com/sethrr What versions of Windows and VSCode
are you using? Have you set any unusual color schemes on the windows
console (outside of VSCode?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/console/issues/121#issuecomment-460898633,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANdYeUFggYspq9n9_Y2U_PuFQy5pwe_cks5vKlvRgaJpZM4SSHvA
.

This appears to be a dupe of #85. Closing.


Compilation error on redeclaration of variable

Admittedly the code below is bad (either declaring A at the start of a loop or giving it the wrong declaration), but it does work in python because the first declaration is simply ignored.
In any case, this triggers a compilation error.
import numpy as np

# pythran export test(float[][],float)
def test(X,f):
    A = []                      #< --- This fails, putting nothing also fails.
    # A = X[:,0]                #< --- this works
    for i in range(2):
        if i==0: A = f*X[:,i]
        else: A+=f*X[:,i]
    return A

I confirm that this is fixed by https://github.com/serge-sans-paille/pythran/commit/64e8cf43753fff18ddeac1f7d4ca808760164738 on both mac and linux