Fix websurfer agent issue

openai.BadRequestError: Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_CIcCVzHbQ5TTDqqTK2QWm5kl", 'type': 'invalid_request_error', 'param': 'messages.[5].role', 'code': None}}

2024-06-21 08:25:52,686 ERROR    - FastAgency | initiate_workers | chat.server.initiate_chat | 9e872af6-a - Error in chat: Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_CIcCVzHbQ5TTDqqTK2QWm5kl", 'type': 'invalid_request_error', 'param': 'messages.[5].role', 'code': None}}
2024-06-21 08:25:52,687 ERROR    - FastAgency | initiate_workers | chat.server.initiate_chat | 9e872af6-a - Traceback (most recent call last):
  File "/workspaces/fastagency/./fastagency/io/ionats.py", line 198, in start_chat
    chat_result = initiate_chat(body.msg)
  File "/workspaces/fastagency/./fastagency/models/teams/multi_agent_team.py", line 35, in initiate_chat
    return self.agents[0].initiate_chat(  # type: ignore[no-any-return]
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 1018, in initiate_chat
    self.send(msg2send, recipient, silent=silent)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 655, in send
    recipient.receive(message, self, request_reply, silent)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 818, in receive
    reply = self.generate_reply(messages=self.chat_messages[sender], sender=sender)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 1972, in generate_reply
    final, reply = reply_func(self, messages=messages, sender=sender, config=reply_func_tuple["config"])
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/groupchat.py", line 1052, in run_chat
    reply = speaker.generate_reply(sender=self)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 1972, in generate_reply
    final, reply = reply_func(self, messages=messages, sender=sender, config=reply_func_tuple["config"])
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/contrib/web_surfer.py", line 286, in generate_surfer_reply
    self._user_proxy.send(messages[-1]["content"], self._assistant, request_reply=True, silent=True)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 655, in send
    recipient.receive(message, self, request_reply, silent)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 818, in receive
    reply = self.generate_reply(messages=self.chat_messages[sender], sender=sender)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 1972, in generate_reply
    final, reply = reply_func(self, messages=messages, sender=sender, config=reply_func_tuple["config"])
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 1340, in generate_oai_reply
    extracted_response = self._generate_oai_reply_from_client(
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 1359, in _generate_oai_reply_from_client
    response = llm_client.create(
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/oai/client.py", line 662, in create
    response = client.create(params)
  File "/home/vscode/.local/lib/python3.10/site-packages/autogen/oai/client.py", line 285, in create
    response = completions.create(**params)
  File "/home/vscode/.local/lib/python3.10/site-packages/openai/_utils/_utils.py", line 277, in wrapper
    return func(*args, **kwargs)
  File "/home/vscode/.local/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 606, in create
    return self._post(
  File "/home/vscode/.local/lib/python3.10/site-packages/openai/_base_client.py", line 1240, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
  File "/home/vscode/.local/lib/python3.10/site-packages/openai/_base_client.py", line 921, in request
    return self._request(
  File "/home/vscode/.local/lib/python3.10/site-packages/openai/_base_client.py", line 1020, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_CIcCVzHbQ5TTDqqTK2QWm5kl", 'type': 'invalid_request_error', 'param': 'messages.[5].role', 'code': None}}


cmd/cgo: panic instead of error for insufficient arguments to C function

There appears to be a regression in cgo, where when a C function is called with not enough arguments, it causes cgo to panic instead of printing a meaningful error:
package main

// #include <math.h>
// #cgo LDFLAGS: -lm
import "C"

func main() {
	_ = C.sin()
}

In go 1.4 go build prints out:
./foo.go:8: not enough arguments in call to _Cfunc_sin
At tip, the output is a panic during the execution of cgo:
panic: runtime error: index out of range

goroutine 1 [running]:
main.(*Package).rewriteCall(0xc82009e0f0, 0xc820082120, 0xc820076b00, 0xc8200a0180)
	/Users/cookieo9/local/go/src/cmd/cgo/gcc.go:606 +0xc58
main.(*Package).rewriteCalls(0xc82009e0f0, 0xc820082120)
	/Users/cookieo9/local/go/src/cmd/cgo/gcc.go:593 +0x1f8
main.(*Package).Translate(0xc82009e0f0, 0xc820082120)
	/Users/cookieo9/local/go/src/cmd/cgo/gcc.go:170 +0x197
main.main()
	/Users/cookieo9/local/go/src/cmd/cgo/main.go:275 +0x1055

Going the other way (i.e.: having too many arguments) produces the same error as go 1.4:
./foo.go:8: too many arguments in call to _Cfunc_sin
The only function I tested which doesn't panic, and prints the correct error is malloc, although I believe that's a result of special handling for malloc. Other functions I tested included "strcpy", "strlen", and "calloc" (from https://groups.google.com/forum/#!topic/golang-dev/TquSAX-w6NA).
I have tested this at tip on darwin-amd64 (El Capitain), and linux-arm (Raspberry Pi 2)

/cc @rsc

This bug was introduced by 9dcc58c3d139ee0475fdaca8119812c014ec5ba1 (cmd/cgo, runtime: add checks for passing pointers from Go to C). The code assumes that the call has at least as many arguments as the function definition requires.
/cc @ianlancetaylor


Port Request: DevIL

DevIL is a cross-platform image library that in it's last version has been reworked to fully work with CMake.
I would love to see it integrated into vcpkg.
The project URL is http://openil.sourceforge.net
Thank you

@Lyrex mind sharing your port?

I coudln't get it fully working yet.
Linking statically still outputs some linking errors.

I think it's better than nothing. You can disable static linking at first

I made a PR (#2082) of my version of the port with static linking disabled.
Feel free to add or correct things.


Minor: use /usr/local/sbin for nebula binary

since nebula seems to require to be run as root, it may make sense to standardize on /usr/local/sbin for the binaries? (As references in service scripts and ansible)

I expect package maintainers for different distributions will decide on their own, but we'll think about changing it in our official docs as we work through them. Documentation needs to brought up to snuff in general. Thanks for the suggestion!


Elasticquent pagination and fractal

Hi,
I'm using elasticquent/Elasticquent to do search queries.
If you do a search on the model, add pagination and apply a transformer, in the fractal adapter from dingo makes a call to inexistent function:
Line 89 on dingo/api/src/Transformer/Adapter/Fractal.php:
if (($response instanceof EloquentCollection || $response instanceof IlluminatePaginator) && $this->eagerLoading) {
            $eagerLoads = $this->mergeEagerLoads($transformer, $this->fractal->getRequestedIncludes());
            $response->load($eagerLoads);
        }

The call to $response->load() fails because the collection is an instance of Illuminate\Support\Collection instead of Illuminate\Database\Eloquent\Collection.
In order to solve this I added a condition to the if:
if (($response instanceof EloquentCollection || $response instanceof IlluminatePaginator) && $this->eagerLoading && method_exists($response->getCollection(), 'load')) {
            $eagerLoads = $this->mergeEagerLoads($transformer, $this->fractal->getRequestedIncludes());
            $response->load($eagerLoads);
        }

In summary:
when you do pagination on a Illuminate\Support\Collection the fractal paginator fails.
Thank you!!

Okay no worries I'll need to account for that as well. Cheers.

The workaround I posted yestarday fails in some cases, this not:
if ( ($response instanceof EloquentCollection || ($response instanceof IlluminatePaginator &&
method_exists($response->getCollection(), 'load') ) ) && $this->eagerLoading )
{
    $eagerLoads = $this->mergeEagerLoads($transformer, $this->fractal->getRequestedIncludes());
    $response->load($eagerLoads);
}

Indeed. No worries I'll have something up when I can.

Thank you!

This is indeed an issue for larger projects, where not only an eloquent collections are used, but hand-made collections of entity objects.

This should've been fixed with cda184a566d9b68f47d4edff51b43ba8f56bbc3c so that it only attempts to eager load Eloquent collections.


Improvise readme

Added steps directly in readme so no need to figure out how to install it

Looks like we should do the same to csantarin/openssl_p12_to_pem...


COVID SEIR fit

Hi, First thanks a lot for your very useful and productive videos and codes.
May I ask you please teach me how to predict the COVID with SEIR model and fit the data with SEIR model ...  I saw your codes and video with exponential growth, not SEIR
Thanks

SEIR falls into disease modeling and really does not fit into the topic of machine learning, especially for image processing. Moreover, it is not my expertise anyway.


Made push confirmation case-insensitive

Accept both "y" and "Y" when confirming a push to public registry.

Michal, is this something we want to get into 1.6?

Would this be better?
return strings.ToUpper(answer) == "Y"

Yeah, I guess in would fit in 1.6 as well.
Use of strings.ToUpper() is indeed better, I'll amend the patch, thanks!


External file with SystemJS

Question
Hi!
I would like to know if it is possible to use a systemjs.config.js file external to index.ejs? Has anyone been able to successfully complete this integration?
Thanks,
Environment

Libs:
- @angular/core version: 12.0.0
- single-spa-angular version: 6.0.0

Others:

The question isn't super clear. Are you referring to something like https://github.com/single-spa/single-spa-angular/issues/418?

Hi @Eduk29 . I'm not sure what you're asking and I'm not sure what means external to index.ejs.

Ok,
I want to create an systemjs.config.js file with imports-map configuration in root directory and I want to configure index.ejs to push imports-map configuration from this file.

Alright, so my next question would be how is this related to single-spa-angular?

@arturovt
Knowing that single-spa uses systemJs as a module loader, I want to know if it is possible to configure the imports-map with this approach (as is done in systemjs without using single-spa).

I cannot answer if it's possible or not. This is better to ask the question in the SystemJS repository.

@arturovt
Ok, I understood that the configuration of the index.ejs file was a single-spa thing and not a SystemJS thing. Forgive the mistake.

I’ll close the issue since it’s better to ask the question in single-spa or SystemJS repository.


Cant load sample project-

Hi,
I am unable to import sample project in myDig.
Error ."Failed to import project config"

I do see some of the folders are imported. The project directory is as follows.

If I still go ahead and load the files and generate KG:

The output is as below.

I tried the same with museum data. The import fails with "Failed to import project config" and if I proceed further to create KG, the below happenes.


Remove class default for setup(), add transform tests.

Added some missing basic tests for transforms, removed now-pointless Module class default for setup fn.

Codecov Report

Merging #415 into master will increase coverage by 6.81%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #415      +/-   ##
==========================================
+ Coverage   64.84%   71.66%   +6.81%
==========================================
  Files          53       53
  Lines        3886     3885       -1
==========================================
+ Hits         2520     2784     +264
+ Misses       1366     1101     -265

Impacted Files
Coverage Δ

flax/linen/module.py
92.24% <100.00%> (-0.04%)
:arrow_down:

flax/core/scope.py
80.59% <0.00%> (+5.97%)
:arrow_up:

flax/core/lift.py
67.39% <0.00%> (+57.76%)
:arrow_up:

flax/linen/transforms.py
85.85% <0.00%> (+67.67%)
:arrow_up:

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 0132b3f...43b4658. Read the comment docs.


.clone is broken in 0.8

.clone method broke in 0.8. I do not have enough time to test it properly, but cloning a model and trying to set a property on it causes errors:
Unhandled rejection TypeError: Cannot set property 'key' of undefined
    at ModelBase.set (/home/adomas/webproject/node_modules/bookshelf/lib/base/model.js:69:26)

Hi, any updates on this one? I am getting problems with how bookshelf handles mysql timeouts in 0.7, but in 0.8 .clone is broken. I am running bookshelf at production level and it would be nice to have a resolution of any kind.

The problem is here.
model.changed = setProps(Object.create(null), this.changed);

should be
model.changed = Object.create(null);
setProps(model.changed, this.changed);

Or alternatively setProps could be modified to return the first argument.

Actually setProps has a big bug in it too:
function setProps(obj, hash) {
  var i = -1, keys = Object.keys(hash);
  while (++i < hash.length) {
    var key = hash[i]
    obj[key] = hash[key];
  }
}

Probably the correct fix would be to remove setProps and use _.extend, unless there is some other compelling reason. Are you willing to make a PR for this @adomasven? I've never had a use for .clone(), but I have the test environment set up if you'd prefer me to do it.

I can't spot the problem with setProps? What are you referring to, exactly?
I am willing to eventually, but it wouldn't be another week or two, before I sit down with our code to do some refactoring and bugfixing, which would involve a PR for this one too. I'd be really grateful if you submitted a fix for this, though @rhys-vdw .

The variables keys is never used. I updated the comment.
Okay, I'll have a look at in the next couple of days.

Hey @adomasven, that's what I came up with. It was a bit more involved than I'd expected.
Since you're using clone, maybe you could point your package.json dependency at the PR to check if it works for you? I just added one fairly basic test case, there might be more complex use cases that fail.

I've also just run into this, and verified that #775 fixes it for me. Thanks!

@blah238 Thanks for the confirmation.


Tweaks to QR code, OCP image caching

Tweaks to make QR code more legible.
Build configurations have been updated to use docker.io prefix for better image caching.

w00t!! Let me know when and where to test?

Changes are rolling out to prod, they should be active in a few minutes in any of the issuers.


OpenSSL: follow RFC on basicConstraints too

Hi!
ref. https://github.com/opnsense/core/pull/6017#issuecomment-1244087369
trying to follow the RFC requirements for basicConstraints extension as well
Thanks!)

@kulikov-a thanks!

thanks!


Add a doc talking about issues with connectedness and prerendering

Cross-ref to this same or different issue (close it or work together?): https://github.com/aspnet/AspNetCore.Docs/issues/11366

A lot of work has been done in this area since this was opened over a year ago. We have more to do, but it will be tracked by https://github.com/dotnet/AspNetCore.Docs/issues/14878 with some degree of re-organization of coverage in either a future issue or the UE tracking issue.


support json output

chatting with @cdutra, it might be interesting to generate json to template some of the more advanced terraform configuration

added in https://github.com/k14s/ytt/releases/tag/v0.14.0


Intermitten EOF error

I am running the docker image microsoft/mssql-server-linux:2017-latest on my Ubuntu 16.04.
I am running some tests in my Golang project that creates tables, inserts some rows, gets rows, deletes rows, then drops tables.
I first ran into some problems where I'd get "too many open files" errors, and so I increased the number of open file handles using the 'ulimit' command on the host as well as the '--ulimit nofile=98304:98304' flag when running the container.
Now I am getting intermittent EOF failures:
<*errors.errorString | 0xc4200140d0>: {s: "EOF"}
          EOF

Sometimes all the tests pass, other times 1 or 2 fail with that error. Can someone help me in figuring this out?

After the digging into this some more, I noticed the following:
This happens on the same create table statement. It seems that the statement is too long. I've tested by shortening the statement (eg: remove all unnecessary white space) and I am no longer seeing the error.
Is there a way to increase the size of the query the database can handle?


Could not be used?

[root@localhost ~]# java -jar ark-tools.jar players /root/Saved/TheIsland.ark /root/bak/      java.lang.NullPointerException         at org.glassfish.json.UnicodeDetectingInputStream.fillBuf(UnicodeDetectingInputStream.java:90)         at org.glassfish.json.UnicodeDetectingInputStream.detectEncoding(UnicodeDetectingInputStream.java:129)         at org.glassfish.json.UnicodeDetectingInputStream.<init>(UnicodeDetectingInputStream.java:76)         at org.glassfish.json.JsonParserImpl.<init>(JsonParserImpl.java:76)         at org.glassfish.json.JsonReaderImpl.<init>(JsonReaderImpl.java:68)         at org.glassfish.json.JsonProviderImpl.createReader(JsonProviderImpl.java:131)         at javax.json.Json.createReader(Json.java:220)         at qowyn.ark.tools.CommonFunctions.readJson(CommonFunctions.java:110)         at qowyn.ark.tools.CommonFunctions.readJsonRelative(CommonFunctions.java:123)         at qowyn.ark.tools.DataManager.loadData(DataManager.java:33)         at qowyn.ark.tools.PlayerListCommands.players(PlayerListCommands.java:81)         at qowyn.ark.tools.App.main(App.java:114)
Tribes no problem

The cause of this has been a missing ark_data.json file, the newest version will report this as "Unable to load data file ./ark_data.json"

How to get ark_data.json

Every release includes the current version (at the time of release) in the ark-tools.zip and ark-tools.7z files. The newest version (and translated versions) can be downloaded here: https://ark-tools.seen-von-ragan.de/data/

Thanks very much

Hi, I think now that the json file is not in the release zips, you should improve the error message again, saygin one needs to run updateData (not everyone reads the whole doc :))


Add TeX plugin

Matches environment \begin/\end.

Nice patch. This should really include \( and \[, though:
 let b:pear_tree_pairs = extend(deepcopy(g:pear_tree_pairs), {
-            \ '\\begin{*}': {'closer': '\\end{*}', 'until': '[{}[:space:]]'},
-            \ '$$': {'closer': '$$'},
+            \ '\\(': {'closer': '\\)'},
+            \ '\\[': {'closer': '\\]'},
             \ '$': {'closer': '$'}
             \ }, 'keep')

Thanks! Apologies for the incredibly long delay on checking this. I'm coming back to this plugin after a long hiatus


Use observation time for just and fromArray

Previously, these were just using 0 as their t value.  It seems tough to me to rigorously (mathematically) justify any value of t for something like just(1).  When does 1 "occur"?
tl;dr; See lib/source/core.js and lib/source/fromArray.js for the important changes.
So, after some discussion on gitter, it seemed like the right thing to do is to make a practical choice about t.  We bounced around several ideas:

Use observation time, i.e. scheduler.now() at the time the Stream provides the value to an observer.

There was discussion about what the time origin of scheduler.now() should be.  For example, currently it is the same origin as JavaScript Date, the unix epoch.  Another option is program start: the scheduler would use Date.now() at VM startup time as the time origin, and t values would start at zero at program start and increase from there. That led to the discussion of stream-local time origin ...

Use t=0, and switch to using stream-local times and use t=0--that is, every stream (not only just and from) gets it's own origin at t=0.  This is actually similar to 1, but with a per-stream time origin rather than a global time origin.
Use construction time, i.e. scheduler.now() at the time just(1) is called.  One technical hurdle with this is that, at construction time, streams do not know what scheduler they will be asked to use.  They cannot call scheduler.now() until they are first observed.

The change to do 1 was trivial, so I figured I'd put it up for discussion.  The change to use program start time would be relatively simple, but I decided not to do it until there's evidence that it's "better" in some way.  The change to do 2 is more involved, but certainly possible.  The change to do 3 would be much more work.
  We'll probably want to keep those changes even if we don't switch to observation time for just and from.

For what it's worth, I think absolute time is fine. "Stream local" time is nice and all, but I think could potentially become complex or have unexpected results when dealing with multiple streams that are combined asynchronously. For example, stream A is active and multicasted, stream B is active and multicasted, but younger than stream A. Stream C is younger again, and combines both stream A and B. Emission times would be weird and unexpected seeing as each stream exists in its own time bubble.
I think it's perfectly ok to have the developer decide on the start time and perform their own subtraction if required.

Thanks @axefrog.  I can imagine ways to make stream-local work.  Also, netwire (plenty of info here uses stream-local, and it's quite a rigorous library.  It's also very different, so you won't necessarily find equivalent concepts.  Anyway, it makes me think it's at least interesting enough to continue thinking about stream-local.  Who knows, maybe it will turn out to be a bad idea!
In the near-medium term (which probably means thru 1.x), I agree: shared absolute time is a good option.  It could be what we end up with in the long term, too.  I just want to spend time thinking about it.

This can probably be considered a breaking change, so we'll need to do a 0.20.0 to publish it.  I guess we could call it a bug, but that kinda feels like we're cheating to avoid a minor version bump.

No harm bumping the version, I'm sure. To be fair, you seem to be shooting pretty hard for a 1.0 release anyway, so it won't make too much difference at the end of the day.


add GitHub templates

Updates and adds PR and issue templates. Multiple issue templates provide experience described here; I determined GitHub's expected format by trying it with the described UI :).
Targeting master cause these templates only work when on the master branch.

closes #1234

Can one of the admins verify this patch?

Made major changes in this edit pass. Removed "Work Item" cause we can always replace the template if needed. Added a "service package request" since that's pretty common and would help to track and encourage.
Targeting latest instead of master per our own instructions :). I think we should have everything land in latest and have a way to backport to master if needed in a current release.

landed in latest, will open another PR to backport to master


Devices not listed when node-red is using httpAdminRoot setting

I was looking at the code and it looks like this line is keeping the devices from being listed.
https://github.com/Dirnei/node-red-contrib-zigbee2mqtt-devices/blob/c619bd74c4e89b89f84da8b8c659cbcc531b3469/src/zigbee2mqtt-config.html#L96
I am going to test changing it to a relative path and report back.
$.getJSON('./z2m/devices/' + bridgeId + '/router/all/all', function (data) {

That would be great if this works

It didn't work as expected, but something like this does work:
$.getJSON((window.location) .protocol + "//" + (window.location).host + "/" + (window.location).pathname.split('/')[1] + '/z2m/devices/' + bridgeId + '/router/all/all', function (data) {

If you're ok with the fix, I can open a pull request sometime next week.

Yeah looks good. Thanks a lot!


Webpack does not create a split point by import() in webpack 4, unlike of require.ensure in webpack 2, 3

Bug report
I have an app, where I split my code on chunks by they routes matches. In webpack 2, 3 it makes by require.ensure perfectly, but for now, in Webpack 4 it does not create a split point and does not embed an async module loader (jsonp) when bundling in dev or prod mode for all chunks. Instead of it - webpack 4 just compose all chunks in one common app.js chunk that is not good...
What is the current behavior?
Webpack creates a single app.js bundle, instead of separate app routes bundles, just like: app.js, appFirstChunk.js, appSecondChunk.js, etc...
If the current behavior is a bug, please provide the steps to reproduce.
I just rewrite my require.ensure way of code splitting on new in webpack 4 - import() syntax as said in this documentation https://webpack.js.org/guides/code-splitting/ and got a problem with bundles creation.
My component spit point (rewrited from require.ensure to import() syntax) :
import { injectReducer } from '../../store/rootReducer'
import { injectSaga, cancelTask } from '../../store/middleware/saga'
import { fetchData } from './modules/actions'
import { typeID } from './constants'

import appFirstChunk from './containers/appFirstChunk'
import reducer from './modules/reducers'
import saga from './modules/saga'

export default store => ({
  path: '/app_first_chunk',
  /*  Async getComponent is only invoked when route matches   */
  getComponent(nextState, cb) {

    /* New import() syntax for code splitting in webpack 4 */
    return import('./containers/appFirstChunk')
      .then(() => injectReducer(store, { key: 'app_first_chunk', reducer }))
      .then(() => injectSaga({ key: 'app_first_chunk', saga }))
      .then(() => cb(null, appFirstChunk))
      .then(() => store.dispatch(fetchData('&step=appFirstChunk&typeID=' + typeID)))
      .then(() => 'app_first_chunk')
      .catch(error => console.log(error))

    /*  Webpack 2, 3 - use 'require.ensure' to create a split point
        and embed an async module loader (jsonp) when bundling   */
    // require.ensure(
    //   [],
    //   require => {
    //     /*  Webpack - use require callback to define
    //       dependencies for bundling   */
    //     const appFirstChunk = require('./containers/appFirstChunk').default
    //     const reducer = require('./modules/reducers').default
    //     const saga = require('./modules/saga').default

    //     /*  Add the reducer to the store on key 'app_first_chunk'  */
    //     injectReducer(store, { key: 'app_first_chunk', reducer })

    //     /*  Add the saga to the store on key 'app_first_chunk'  */
    //     injectSaga({ key: 'app_first_chunk', saga })

    //     /*  Return getComponent   */
    //     cb(null, appFirstChunk)

    //     /* load initial crime data  */
    //     store.dispatch(fetchData('&step=appFirstChunk&typeID=' + typeID))

    //     /* Webpack named bundle   */
    //   },
    //   'app_first_chunk'
    // )
  }
})

What is the expected behavior?
Webpack must create a split points for appFirstChunk bundle creation by import() in webpack 4, like of require.ensure do this in webpack 2, 3. Instead of it embed my component code into the common app.js bundle.
Other relevant information:
my webpackConfig on gist https://gist.github.com/BiosBoy/d970d8eb965b3a97cdb0e1bc5d869f43
Windows 10
NodeJs 6.0.1
Yarn 1.7.0
Webpack 4.14.0
html-webpack-plugin 3.2.0

Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem.

@BiosBoy, I believe the uglify: true option to babel-preset-env forces all transforms (effectively undoing the module: false), which presumably means babel converts the import() before webpack even gets to see it:
https://github.com/babel/babel-preset-env#targetsuglify
webpack 4 now uses uglify-es by default, so making babel compile down to ES5 is no longer required.

@edmorley hi!
Thank you for your help. I tried to fully disable babel config in my webpackConfig.js, but it does not give any effect. Webpack as and before compile all code like a one single bundle...
That part of code I fully commented:
plugins: [
      //   'babel-plugin-transform-class-properties',
      //   'babel-plugin-syntax-dynamic-import',
      //   [
      //     'babel-plugin-transform-runtime',
      //     {
      //       helpers: true,
      //       polyfill: true,
      //       regenerator: true
      //     }
      //   ],
      //   [
      //     'babel-plugin-transform-object-rest-spread',
      //     {
      //       useBuiltIns: false
      //     }
      //   ]
      // ],
      // presets: [
      //   'babel-preset-react',
      //   [
      //     'babel-preset-env',
      //     {
      //       modules: false,
      //       targets: {
      //         ie9: true
      //       },
      //       uglify: false
      //     }
      //   ]
      // ]

remove this line: import appFirstChunk from './containers/appFirstChunk'

@sokra hi. I cannot understand you message... If I'll remove this line import appFirstChunk from './containers/appFirstChunk' then I'll never make a right .then(() => cb(null, appFirstChunk)) invoke. It needed to inject new component inside react-router.

import('./containers/appFirstChunk') returns a promise resolving to the module exports.
importing it via import appFirstChunk from './containers/appFirstChunk' will import it sync, which makes the import('./containers/appFirstChunk') obsolete as all modules have already been loaded.
import('./containers/appFirstChunk')
.then(({ default: appFirstChunk }) => {

});

@sokra I do not understand you clearly. You mean :
return import('./containers/appFirstChunk')
      .then(() => injectReducer(store, { key: 'app_first_chunk', reducer }))
      .then(() => injectSaga({ key: 'app_first_chunk', saga }))
      .then(({ default: appFirstChunk }) => cb(null, appFirstChunk))
      .then(() => store.dispatch(fetchData('&step=appFirstChunk&typeID=' + typeID)))
      .then(() => 'app_first_chunk')
      .catch(error => console.log(error))

(That is not work)
Or implement { default: appFirstChunk } in some other place?

{ default: appFirstChunk } should be inmediately after import('./containers/appFirstChunk').

@montogeek ok, but './containers/appFirstChunk' is used like object only on the 3th .then, so how can I transfer it like "untouchable" after two previous .then there?
You mean like
    return import('./containers/SearchForCashContainer')
      .then(({ default: SearchForCashContainer }) => injectReducer(store, { key: 'searchforcash', reducer }))
      .then(SearchForCashContainer => injectSaga({ key: 'searchforcash', saga }))
      .then(SearchForCashContainer => cb(null, SearchForCashContainer))

I think you can solve this on your own. It's not a webpack problem.

Ok. Thank you all you guys for help!

@BiosBoy while the above module is resolved at the same time your appFirstChunk gets statically resolved (module) not the context where appFirstChunk exists

Ok. Thank you all you guys for help!

@BiosBoy Hi, Are you able to rewrite the code successfully to make it work in WebPack 4?  Can you share updated code?  Thank you!

@NallaRK Hi, catch it:
export default store => ({
  path: '/component',
  /*  Async getComponent is only invoked when route matches   */
  getComponent(nextState, cb) {
    return (
      import(/* webpackChunkName: "component" */ './containers/Component')
        .then(({ default: Component }) => {
          /*  Add the reducer to the store on key 'component'  */
          injectReducer(store, { key: 'component', reducer })
          return Component
        })
        .then(Component => {
          /*  Add the saga to the store on key 'component'  */
          injectSaga({ key: 'component', saga })
          return Component
        })
        .then(Component => cb(null, Component))
        /* load initial crime data  */
        .then(() => doSomething())
        .catch(error => console.log(error))
    )
  },
  onLeave() {
    console.log('onLeave')
  }
})

Could be worthwhile to update the title of this issue to something like (moving from require.ensure to dynamic import())

This may not be a 100% correct but the translation is roughly:
// Old require.ensure:
// require.ensure([], require => {
//     useComponent(require('./containers/Component').default)
// }, 'Component')

// New dynamic import
import(/* webpackChunkName: "component" */ './containers/Component')
    .then(({ default: Component }) => useComponent(Component))
    .catch(console.error)


升级pandas到1.0.0出现的错误

ID： 236559
升级pandas到1.0.0出现的
Traceback (most recent call last):
File "D:\StockAnalize\tradeW.pyw", line 15, in
import tushare as ts
File "D:\Python\lib\site-packages\tushare_init_.py", line 11, in
from tushare.stock.trading import (get_hist_data, get_tick_data,
File "D:\Python\lib\site-packages\tushare\stock\trading.py", line 24, in
from tushare.stock.fundamental import get_stock_basics
File "D:\Python\lib\site-packages\tushare\stock\fundamental.py", line 19, in
from pandas.compat import StringIO
ImportError: cannot import name 'StringIO' from 'pandas.compat' (D:\Python\lib\site-packages\pandas\compat_init_.py)

Have the same issue as well when import tushare as ts
It was under Linux and I cloned the project then installed it by 'python3 setup.py install'
Pending on a fix. Thanks

Fixed this issue by upgrading to latest tushare latest version, with following commands:
pip install tushare --upgrade


Optimized compile of serialise/Failures causes abort on x86

Compiling/running the tests for the Serialise package results in an abort if the tests are compiled without debug with ponyc. This happens on both config=debug and config=release builds of ponyc. Additionally, this seems independent of llvm versions.
The following snippet shows what occurs:
vagrant@vagrant:~/ponyc$ uname -a
Linux vagrant 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:06:14 UTC 2016 i686 i686 i686 GNU/Linux
vagrant@vagrant:~/ponyc$ ./build/debug/ponyc -d packages/serialise/
Building builtin -> /home/vagrant/ponyc/packages/builtin
Building packages/serialise/ -> /home/vagrant/ponyc/packages/serialise
Building ponytest -> /home/vagrant/ponyc/packages/ponytest
Building time -> /home/vagrant/ponyc/packages/time
Building collections -> /home/vagrant/ponyc/packages/collections
Generating
 Reachability
 Selector painting
 Data prototypes
 Data types
 Function prototypes
 Functions
 Descriptors
Writing ./serialise.o
Linking ./serialise
Warning: environment variable $CC undefined, using cc as the linker
vagrant@vagrant:~/ponyc$ ./serialise --filter=serialise/Failures
1 test started, 0 complete: serialise/Failures started
1 test started, 1 complete: serialise/Failures complete
---- Passed: serialise/Failures
----
---- 1 test ran.
---- Passed: 1
vagrant@vagrant:~/ponyc$ ./build/debug/ponyc packages/serialise/
Building builtin -> /home/vagrant/ponyc/packages/builtin
Building packages/serialise/ -> /home/vagrant/ponyc/packages/serialise
Building ponytest -> /home/vagrant/ponyc/packages/ponytest
Building time -> /home/vagrant/ponyc/packages/time
Building collections -> /home/vagrant/ponyc/packages/collections
Generating
 Reachability
 Selector painting
 Data prototypes
 Data types
 Function prototypes
 Functions
 Descriptors
Optimising
Writing ./serialise.o
Linking ./serialise
Warning: environment variable $CC undefined, using cc as the linker
vagrant@vagrant:~/ponyc$ ./serialise --filter=serialise/Failures
Aborted

Runing the command with gdb:
vagrant@vagrant:~/ponyc$ gdb ./serialise
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./serialise...done.
(gdb) run  --filter=serialise/Failures
Starting program: /home/vagrant/ponyc/serialise --filter=serialise/Failures
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb6dc2b40 (LWP 18946)]
[New Thread 0xb65c1b40 (LWP 18947)]

Thread 3 "serialise" received signal SIGABRT, Aborted.
[Switching to Thread 0xb65c1b40 (LWP 18947)]
0xb7fdac31 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdac31 in __kernel_vsyscall ()
#1  0xb7dfdea9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#2  0xb7dff407 in __GI_abort () at abort.c:89
#3  0x0806d315 in pony_throw () at src/libponyrt/lang/posix_except.c:37
#4  0x080724dc in ponyint_serialise_object (ctx=0xb7dc2c44, p=0x0, t=0x807d930, mutability=0)
    at src/libponyrt/gc/serialise.c:108
#5  0x080721d3 in pony_traceknown (ctx=0xb7dc2c44, p=0x0, t=0x807d930, m=0) at src/libponyrt/gc/trace.c:105
#6  0x08049c8a in _HasPointer_Trace ()
#7  0xb7dc2c44 in ?? ()
#8  0x080727a1 in pony_serialise (ctx=0xb7dc2c44, p=0xb4dba860, out=0xb4dba880) at src/libponyrt/gc/serialise.c:203
#9  0x08056286 in ?? ()
#10 0x0805c12f in ?? ()
#11 0x0805bb88 in ?? ()
#12 0x0804b532 in ponytest__TestRunner_Dispatch ()
#13 0x0806c594 in handle_message (ctx=0xb7dc2c44, actor=0xb4dc0f00, msg=0xb4dbc1a0) at src/libponyrt/actor/actor.c:103
#14 0x0806c713 in ponyint_actor_run (ctx=0xb7dc2c44, actor=0xb4dc0f00, batch=100) at src/libponyrt/actor/actor.c:158
#15 0x0806e32c in run (sched=0xb7dc2c00) at src/libponyrt/sched/scheduler.c:287
#16 0x0806e406 in run_thread (arg=0xb7dc2c00) at src/libponyrt/sched/scheduler.c:338
#17 0xb7fb0295 in start_thread (arg=0xb65c1b40) at pthread_create.c:333
#18 0xb7eb8eee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114
(gdb) up
#1  0xb7dfdea9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) up
#2  0xb7dff407 in __GI_abort () at abort.c:89
89	abort.c: No such file or directory.
(gdb) up
#3  0x0806d315 in pony_throw () at src/libponyrt/lang/posix_except.c:37
37	  abort();
(gdb) l
32	  exception.exception_class = 0x506F6E7900000000; // "Pony"
33	#endif
34	  exception.exception_cleanup = exception_cleanup;
35	  _Unwind_RaiseException(&exception);
36
37	  abort();
38	}
39
40	static void set_registers(struct _Unwind_Exception* exception,
41	  struct _Unwind_Context* context)
(gdb) up
#4  0x080724dc in ponyint_serialise_object (ctx=0xb7dc2c44, p=0x0, t=0x807d930, mutability=0)
    at src/libponyrt/gc/serialise.c:108
108	    pony_throw();
(gdb) l
103	  if(t->serialise == NULL)
104	  {
105	    // A type without a serialisation function raises an error.
106	    // This applies to Pointer[A] and MaybePointer[A].
107	    serialise_cleanup(ctx);
108	    pony_throw();
109	    return;
110	  }
111
112	  serialise_t k;

It looks a lot like what @Praetonus describes in #1186 https://github.com/ponylang/ponyc/issues/1186#issuecomment-244377359
Maybe a duplicate.

@Praetonus agrees that this looks like #1186.

@dipinhora is this still an issue?

Still a segfault. But with a slightly different stack trace (see below). I tried with both llvm-3.9 and llvm-6.0. Same results.
The following snippet shows what occurs:
vagrant@ubuntu-xenial:~/ponyc$ uname -a
Linux ubuntu-xenial 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:15 UTC 2018 i686 i686 i686 GNU/Linux
vagrant@ubuntu-xenial:~/ponyc$ ./build/debug/ponyc --version
0.22.5-23567c3 [debug]
compiled with: llvm 3.9.1 -- cc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
Defaults: pic=false ssl=openssl_0.9.0
vagrant@ubuntu-xenial:~/ponyc$ ./build/debug/ponyc -d packages/serialise/
Building builtin -> /home/vagrant/ponyc/packages/builtin
Building packages/serialise/ -> /home/vagrant/ponyc/packages/serialise
Building ponytest -> /home/vagrant/ponyc/packages/ponytest
Building time -> /home/vagrant/ponyc/packages/time
Building collections -> /home/vagrant/ponyc/packages/collections
Generating
 Reachability
 Selector painting
 Data prototypes
 Data types
 Function prototypes
 Functions
 Descriptors
Writing ./serialise.o
Linking ./serialise
vagrant@ubuntu-xenial:~/ponyc$ ./serialise --only=serialise/Failures
1 test started, 0 complete: serialise/Failures started
1 test started, 1 complete: serialise/Failures complete
---- Passed: serialise/Failures
----
---- 1 test ran.
---- Passed: 1
vagrant@ubuntu-xenial:~/ponyc$ ./build/debug/ponyc packages/serialise/
Building builtin -> /home/vagrant/ponyc/packages/builtin
Building packages/serialise/ -> /home/vagrant/ponyc/packages/serialise
Building ponytest -> /home/vagrant/ponyc/packages/ponytest
Building time -> /home/vagrant/ponyc/packages/time
Building collections -> /home/vagrant/ponyc/packages/collections
Generating
 Reachability
 Selector painting
 Data prototypes
 Data types
 Function prototypes
 Functions
 Descriptors
Optimising
Writing ./serialise.o
Linking ./serialise
vagrant@ubuntu-xenial:~/ponyc$ ./serialise --only=serialise/Failures
Aborted (core dumped)
vagrant@ubuntu-xenial:~/ponyc$

Runing the command with gdb:
vagrant@ubuntu-xenial:~/ponyc$ gdb ./serialise
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./serialise...done.
(gdb) run  --only=serialise/Failures
Starting program: /home/vagrant/ponyc/serialise --only=serialise/Failures
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb6dc1b40 (LWP 18122)]
[New Thread 0xb65c0b40 (LWP 18123)]
[New Thread 0xb4dbfb40 (LWP 18124)]

Thread 3 "serialise" received signal SIGABRT, Aborted.
[Switching to Thread 0xb65c0b40 (LWP 18123)]
0xb7fdac31 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdac31 in __kernel_vsyscall ()
#1  0xb7dfbea9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#2  0xb7dfd407 in __GI_abort () at abort.c:89
#3  0x0807c627 in pony_error () at src/libponyrt/lang/posix_except.c:39
#4  0x08086a82 in ponyint_serialise_actor (ctx=0xb7dc1444, actor=0xb45b7c00) at src/libponyrt/gc/serialise.c:144
#5  0x080838ca in pony_traceknown (ctx=0xb7dc1444, p=0xb45b7c00, t=0x80935d0, m=2) at src/libponyrt/gc/trace.c:112
#6  0x08056c5a in _HasActor_Trace ()
#7  0xb7dc1444 in ?? ()
#8  0x08086cb8 in pony_serialise (ctx=0xb7dc1444, p=0xb45b8080, t=0x0, out=0xb45b80a0, alloc_fn=0x80714f0 <$1$0_apply_oZo>)
    at src/libponyrt/gc/serialise.c:214
#9  0x080715c1 in ?? ()
#10 0x0806f01c in ?? ()
#11 0x0805a4c8 in ?? ()
#12 0x08056e05 in ponytest__TestRunner_Dispatch ()
#13 0x0807d493 in handle_message (ctx=0xb7dc1444, actor=0xb45bef00, msg=0xb45b8880) at src/libponyrt/actor/actor.c:164
#14 0x0807d59c in ponyint_actor_run (ctx=0xb7dc1444, actor=0xb45bef00, batch=100) at src/libponyrt/actor/actor.c:226
#15 0x08082171 in run (sched=0xb7dc1400) at src/libponyrt/sched/scheduler.c:794
#16 0x08082256 in run_thread (arg=0xb7dc1400) at src/libponyrt/sched/scheduler.c:835
#17 0xb7faf295 in start_thread (arg=0xb65c0b40) at pthread_create.c:333
#18 0xb7eb70ae in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:114
(gdb) up
#1  0xb7dfbea9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) up
#2  0xb7dfd407 in __GI_abort () at abort.c:89
89	abort.c: No such file or directory.
(gdb) up
#3  0x0807c627 in pony_error () at src/libponyrt/lang/posix_except.c:39
39	  abort();
(gdb) l
34	  exception.exception_class = PONY_EXCEPTION_CLASS;
35	#endif
36	  exception.exception_cleanup = exception_cleanup;
37	  _Unwind_RaiseException(&exception);
38
39	  abort();
40	}
41
42	static void set_registers(struct _Unwind_Exception* exception,
43	  struct _Unwind_Context* context)
(gdb) up
#4  0x08086a82 in ponyint_serialise_actor (ctx=0xb7dc1444, actor=0xb45b7c00) at src/libponyrt/gc/serialise.c:144
144	  pony_error();
(gdb) l
139	void ponyint_serialise_actor(pony_ctx_t* ctx, pony_actor_t* actor)
140	{
141	  (void)ctx;
142	  (void)actor;
143	  serialise_cleanup(ctx);
144	  pony_error();
145	}
146
147	PONY_API void pony_serialise_reserve(pony_ctx_t* ctx, void* p, size_t size)
148	{
(gdb)

Possibly related... As of current master both regex/Regex.groups and net/http/_HTTPConnection._new_conn also segfault. However, their backtraces seem to be corrupt.
regex/Regex.groups results:
vagrant@ubuntu-xenial:~/ponyc$ ./regex --only=regex/Regex
Segmentation fault (core dumped)
vagrant@ubuntu-xenial:~/ponyc$ gdb ./regex
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./regex...done.
(gdb) run --only=regex/Regex
Starting program: /home/vagrant/ponyc/regex --only=regex/Regex
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb6d43b40 (LWP 2394)]
[New Thread 0xb6542b40 (LWP 2395)]
[New Thread 0xb4d41b40 (LWP 2396)]

Thread 3 "regex" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6542b40 (LWP 2395)]
0x0805d0a2 in ?? ()
(gdb) bt
#0  0x0805d0a2 in ?? ()
#1  0xb4534a20 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

net/http/_HTTPConnection._new_conn results:
vagrant@ubuntu-xenial:~/ponyc$ ./http --only=net/http/_
1 test started, 0 complete: net/http/_HTTPConnection._new_conn started
Segmentation fault (core dumped)
vagrant@ubuntu-xenial:~/ponyc$ gdb ./http
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./http...done.
(gdb) run --only=net/http/_
Starting program: /home/vagrant/ponyc/http --only=net/http/_
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb6b69b40 (LWP 2379)]
[New Thread 0xb6368b40 (LWP 2380)]
1 test started, 0 complete: net/http/_HTTPConnection._new_conn started
[New Thread 0xb4b67b40 (LWP 2381)]

Thread 3 "http" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6368b40 (LWP 2380)]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x00000040 in ?? ()
#2  0x00000001 in ?? ()
#3  0xb4359c00 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

No longer able to reproduce.


[SPARK-15603][MLLIB] Replace SQLContext with SparkSession in ML/MLLib

What changes were proposed in this pull request?
This PR replaces all deprecated SQLContext occurrences with SparkSession in ML/MLLib module except the following two classes. These two classes use SQLContext as their function arguments.

ReadWrite.scala
TreeModels.scala

How was this patch tested?
Pass the existing Jenkins tests.

Test build #59475 has started for PR 13352 at commit ae8acae.

Test build #59475 has finished for PR 13352 at commit ae8acae.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/59475/
Test PASSed.

This removes lots of deprecation warning messages like the followings.
/home/jenkins/workspace/SparkPullRequestBuilder/mllib/src/main/scala/org/apache/spark/mllib/fpm/FPGrowth.scala:126: method getOrCreate in object SQLContext is deprecated: Use SparkSession.builder instead
[warn]       val sqlContext = SQLContext.getOrCreate(sc)

Hi, @andrewor14 .
This is about deprecation warnings about SQLContexts.

@dongjoon-hyun actually the builder.sparkContext method was added recently so there are other existing places where we could use that. Would you mind submitting a patch to fix those? This patch itself LGTM other than that issue, but we can fix it separately.

Oh, thank you, @andrewor14 . I see.
I will make another PR for using builder.sparkContext(sc) pattern.

Sorry, I did not notice this PR. I submitted another PR (https://github.com/apache/spark/pull/13380) that removes SQLContext from MLlib. Any reason why you still keep SQLContext in ReadWrite.scala and TreeModels.scala?


🐞 Runtime Error: Publishing changes from within view updates

Description
When running the app and opening a file in a project, hundreds of runtime errors (purple) are generated on

var selectionState in WorkspaceDocument.swift::31

https://github.com/CodeEditApp/CodeEdit/blob/a0848b9f6385a8bb0fab05e01f0daf3b4a3c4d25/CodeEdit/Documents/WorkspaceDocument.swift#L31

var preferences in AppPreferencesModel.swift::35

https://github.com/CodeEditApp/CodeEdit/blob/a0848b9f6385a8bb0fab05e01f0daf3b4a3c4d25/CodeEditModules/Modules/AppPreferences/src/Model/AppPreferencesModel.swift#L35

var selectedLightTheme in ThemeModel.swift::39

https://github.com/CodeEditApp/CodeEdit/blob/a0848b9f6385a8bb0fab05e01f0daf3b4a3c4d25/CodeEditModules/Modules/AppPreferences/src/Sections/ThemePreferences/Model/ThemeModel.swift#L39

var selectedDarkTheme in ThemeModel.swift::48

https://github.com/CodeEditApp/CodeEdit/blob/a0848b9f6385a8bb0fab05e01f0daf3b4a3c4d25/CodeEditModules/Modules/AppPreferences/src/Sections/ThemePreferences/Model/ThemeModel.swift#L48

var selectedTheme in ThemeModel.swift::78

https://github.com/CodeEditApp/CodeEdit/blob/a0848b9f6385a8bb0fab05e01f0daf3b4a3c4d25/CodeEditModules/Modules/AppPreferences/src/Sections/ThemePreferences/Model/ThemeModel.swift#L78

func saveThemes() in ThemeModel.swift::308

https://github.com/CodeEditApp/CodeEdit/blob/a0848b9f6385a8bb0fab05e01f0daf3b4a3c4d25/CodeEditModules/Modules/AppPreferences/src/Sections/ThemePreferences/Model/ThemeModel.swift#L308

To Reproduce

Run CodeEdit
Open a Project
Open a file inside this Project

Expected behavior
Somewhere the state of selectionState is modified during view updates which should not happen. Further investigation is needed.
Version information
CodeEdit: 1.0
macOS: 13.0
Xcode: 14.1
Additional context
Screenshot

From what I can tell, this is a Xcode 14.x issue.
https://developer.apple.com/forums/thread/711899
https://www.donnywals.com/xcode-14-publishing-changes-from-within-view-updates-is-not-allowed-this-will-cause-undefined-behavior/

I have the same problem in one of my projects too and believe this is an issue with xcode itself

I've had a look at this issue and may have found the cause of it.

var preferences in AppPreferencesModel.swift::35
objectWillChange.send() is automatically fired by the @Published property wrapper, so it doesn't make sense to call it again. This will fire the updates twice, and update the view multiple times, as Xcode correctly reports. Removing the objectWillChange.send() fixes this issue.

var selectionState in WorkspaceDocument.swift::31
WorkspaceSelectionState is a Published struct which has a dict with ObservableObjects in it. I don't think this is allowed, as this will also cause multiple view updates. Either CodeFileDocument would need to become a struct (which doesn't seem possible, as it looks like some objc framework needs it), or WorkspaceSelectionState would need to become an ObservableObject class. I gave this a shot and this seems to fix the issue, but causes issues with the TabBar, so I've just left this as is for now.

@Wouter01 can you provide a fix?

@Wouter01 can you provide a fix?

I've tried fixing it but ran into issues which I wasn't able to solve. As some of these classes will probably be extensively modified later in the development cycle, I'd just ignore it for now.

@Wouter01 I think this issue should be re-opened because of the following Runtime Errors, including one in CETV:


Update DNS SDK for 2017-10-01 API Version

Description

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] Please add REST spec PR link to the SDK PR
[x] I have read the contribution guidelines.
[ ] The pull request does not introduce breaking changes.

General Guidelines

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[x] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[x] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[x] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

Swagger PR link: https://github.com/Azure/azure-rest-api-specs/pull/2558

Going to re-submit after making Swagger fixes. Changing location to optional resulted in breaking change which needs to be undone in Swagger.


Update Dependencies

Coverage remained the same at 96.78% when pulling a1b8e469ec517996e2e8819c297e779bd19d8004 on update-dependencies into 9e27f75333e82a0d0dd90cf537a26c79688b2e37 on master.


catalan number Via Recurrsion

📥 Pull Request
issue : #888
Catalan numbers are a sequence of natural numbers that have numerous applications in combinatorics. They are defined based on recursive relationships and have a variety of interpretations in problems involving counting structures like valid sequences of parentheses, binary search trees, paths in grids, and polygon triangulations.
For example:
Balanced Parentheses: The nth Catalan number counts how many valid ways there are to arrange n pairs of parentheses. For n = 3, there are 5 valid sequences: ((())), ()(()), (())(), ()()(), (()()).
Binary Search Trees: It represents the number of distinct binary search trees that can be constructed with n distinct elements.
Recursive Definition:
The recursive formula for Catalan Numbers is: C(n)= i=0∑n−1 [ C(i)×C(n−i−1) ] , with the base case C(0)=1.
Explanation:
The recursive nature reflects how larger structures can be built from smaller ones. For example, in the case of valid parentheses sequences, placing a pair of parentheses at the outermost positions leaves a smaller valid subsequence inside and another valid subsequence after the outer parentheses.
This recursive division is mirrored in the summation, where C(i) represents the number of valid structures in the left subsequence, and
C(n−i−1) represents the right subsequence.
Limitations and Considerations Performance:
For larger values of n, the recursive approach will take significantly longer to compute. This is because of the exponential time complexity and the repeated computation of subproblems.
Optimization: If efficiency is a concern, switching to dynamic programming or using the closed-form formula is recommended for values of n larger than 20. These methods reduce the computational overhead and are more practical for larger inputs.
Stack Depth: Recursive approaches are also limited by the system's recursion depth limit, which may cause a stack overflow for very large values of n (though this is less of a concern for values up to 20)
Type of change

[✅ ] New feature (non-breaking change which adds functionality)
[✅ ] Documentation update

Checklist:

[✅ ] My code follows the style guidelines of this project
[✅ ] I have performed a self-review of my code
[✅ ] I have commented my code, particularly in hard-to-understand areas
[ ✅] I have added tests that prove my fix is effective or that my feature works
[✅ ] New and existing unit tests pass locally with my changes
[✅ ] Any dependent changes have been merged and published in downstream modules

@ajay-dhangar , Please Check if All okay or not ,, If so , then can you please merge it my contribution

@ajay-dhangar , please check now ,, All okay or not


Make SyntaxTextView.init(frame:) public

From my understanding of SyntaxTextView, this init method should be public.

Makes sense, thanks!


wyoming-(normal)-whisper?

As faster whisper does not work on AMD GPUs and as I can read there is no plan to support it, would not it be useful to have wyoming-whisper as well?

+1, I'll link these issues since they seem relevant to this conversation:

https://github.com/OpenNMT/CTranslate2/issues/1072
https://github.com/SYSTRAN/faster-whisper/issues/162#issuecomment-1514767030

I have just written a Wyoming connector to Whisper API which allows utilising multiple engines and models via Whisper.cpp: https://github.com/ser/wyoming-whisper-api-client

Awesome, thank you for sharing :)


[SPARK-41773][CONNECT][PYTHON][TESTS] Enable the doctests for window functions

What changes were proposed in this pull request?
1, Enable the doctests for window functions
2, Add additional test in connect
Why are the changes needed?
for test coverage
Does this PR introduce any user-facing change?
no
How was this patch tested?
enabled and added tests

@dongjoon-hyun yes, it should use [TESTS], thanks for the reminder!

Merged to master.

thank you for the reviews @dongjoon-hyun @HyukjinKwon


fix(seed): Fix seed script for new curriculum pkg

Pre-Submission Checklist

[ ] Your pull request targets the staging branch of freeCodeCamp.
[ ] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[ ] You have only one commit (if not, squash them into one commit).
[ ] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #18262
Description
This script no longer uses loopback to destroy and insert challenges in to the database.
I have dropped the Block collection and it was previously only used for the map.

@raisedadead, the seed has no effect on the deployed client


Add automated formating/style checking to travis

It would be good to automatically check formatting with travis.

since PyGrid now also has a basic html page.
We should enable automatic style checking for the web component too.


Condition Element Clarification

Please Specify how nested child Resources are affected by the condition.
Does it matter if you run incremental or complete? I am having trouble building a template that functions how I think it should with conditions.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c337b02a-d12c-9034-2a70-f64c66c7dcfc
Version Independent ID: 3e0434c5-12f3-bffc-c5ea-75a3280bc210
Content: Conditional deployment with templates - Azure Resource Manager
Content Source: articles/azure-resource-manager/templates/conditional-resource-deployment.md
Service: azure-resource-manager
Sub-service: templates
GitHub Login: @mumian
Microsoft Alias: jgao

@vllama Thanks for your question. We are checking on this and will respond to you soon.

@vllama - thanks for this question. I am updating the article with a note about child resources. The condition doesn't cascade to child resources. You must apply it to each resource type that is conditionally deployed. The article already has a section about complete mode.


[5.5] [IDE] Fix superclass constraint handling for extension merging

5.5 cherry-pick of https://github.com/apple/swift/pull/37295

For a case like:
public class C<T> {}
public class D {}

extension C where T : D {
  public func foo() {}
}

We would indadvertedly drop the extension for C in the doc info, as the superclass constraint would fail the isBindableToSuperclassOf check. Instead, map the subject type of the constraint into the context and check if it could be bound to the superclass. In the example above, this is trivially true, but for cases where we're mirroring a protocol extension onto the type, this will disregard those that don't fulfil the requirements.
Resolves rdar://76868074

@swift-ci please test


How to register two languages in one LS

Hi,
I tried the example and it works. My goal is to register two languages of one LanguageServer. I don't find the right settings to do so.
Greets
MH

HI,
Me too , I have a xtext language server for 2 languages and struggle to make it work. I went back to a single language, created a Theia frontend. That works including references, completions and outline view. When trying to add another language I still manage to load the languages but no references , no completion no outline view is working. The language working in the single language server stops working when I add the second language.
Is there a working example with 2 languages in some git repo as example?
Gruesse
Hermann


Filter Module - text debounce enhancements

Text debounce speed is too fast. Every char is firing a new request.

increase the debounce wait time
add prop to allow user to control the wait time

My mistake. The debounce is working properly. Just inside the customFilter or customSearch it's not, but it's not supposed to.


Back button on app bar of Initial route other than '/' records 2 entries in browser history

Related to -
Issue - flutter/flutter#87897
PR - flutter/flutter#88122
Steps to Reproduce

$ flutter channel master
$ flutter upgrade
Run $ flutter create bug
Update the files as follows:
main.dart -> https://gist.github.com/hrishikesh-kadam/78f784338c3e85a5d66fb3b4537c81d2/418a9eb16a4d219f5a448ce73509bc5d5004bcce
$ flutter run -d chrome
Click the back button on the app bar
Right-click on the back button of the browser

Expected results:
Only 1 entry should be recorded.
Actual results:
2 entries are being recorded.

Logs

$ flutter run -d chrome --verbose
[  +48 ms] executing: uname -m
[  +23 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +4 ms] executing: [/home/hrk/main-data/softwares/flutter/channels/master/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 369a0e2bc03a3fd3d2fc9cf8b250ff5d7d6c576a
[        ] executing: [/home/hrk/main-data/softwares/flutter/channels/master/] git tag
--points-at 369a0e2bc03a3fd3d2fc9cf8b250ff5d7d6c576a
[  +12 ms] Exit code 0 from: git tag --points-at 369a0e2bc03a3fd3d2fc9cf8b250ff5d7d6c576a
[   +1 ms] executing: [/home/hrk/main-data/softwares/flutter/channels/master/] git describe
--match *.*.* --long --tags 369a0e2bc03a3fd3d2fc9cf8b250ff5d7d6c576a
[  +12 ms] Exit code 128 from: git describe --match *.*.* --long --tags
369a0e2bc03a3fd3d2fc9cf8b250ff5d7d6c576a
[        ] fatal: No tags can describe '369a0e2bc03a3fd3d2fc9cf8b250ff5d7d6c576a'.
           Try --always, or create some tags.
[   +2 ms] Could not interpret results of "git describe":
[   +3 ms] executing: [/home/hrk/main-data/softwares/flutter/channels/master/] git
rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/hrk/main-data/softwares/flutter/channels/master/] git
ls-remote --get-url origin
[   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +59 ms] executing: [/home/hrk/main-data/softwares/flutter/channels/master/] git
rev-parse --abbrev-ref HEAD
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +38 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping
update.
[  +47 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping
update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping
update.
[  +58 ms] Skipping pub get: version match.
[  +90 ms] Generating
/mnt/common-data/study-material/flutter/bugs/back_button_app_bar_initial_route/bug/android/
app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +125 ms] Launching lib/main.dart on Chrome in debug mode...
[  +76 ms] Updating assets
[  +59 ms] Waiting for connection from debug service on Chrome...
[  +71 ms] <- reset
[   +5 ms]
/home/hrk/main-data/softwares/flutter/channels/master/bin/cache/dart-sdk/bin/dart
--disable-dart-dev
/home/hrk/main-data/softwares/flutter/channels/master/bin/cache/artifacts/engine/linux-x64/
frontend_server.dart.snapshot --sdk-root
/home/hrk/main-data/softwares/flutter/channels/master/bin/cache/flutter_web_sdk/
--incremental --target=dartdevc --debugger-module-names --experimental-emit-debug-metadata
-DFLUTTER_WEB_AUTO_DETECT=true --output-dill
/tmp/flutter_tools.HAOFHY/flutter_tool.BBPIAW/app.dill --libraries-spec
file:///home/hrk/main-data/softwares/flutter/channels/master/bin/cache/flutter_web_sdk/libr
aries.json --packages
/mnt/common-data/study-material/flutter/bugs/back_button_app_bar_initial_route/bug/.dart_to
ol/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-root /tmp/flutter_tools.HAOFHY/flutter_tools.UCTCJD
--filesystem-scheme org-dartlang-app --initialize-from-dill
build/b1b715402d823b7fd5c2b68d2edcb2ce.cache.dill.track.dill --platform
file:///home/hrk/main-data/softwares/flutter/channels/master/bin/cache/flutter_web_sdk/kern
el/flutter_ddc_sdk_sound.dill --sound-null-safety
[   +6 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+12548 ms] Waiting for connection from debug service on Chrome... (completed in 12.6s)
[        ] Synced 26.4MB.
[        ] <- accept
[        ] Caching compiled dill
[ +131 ms] Using Google Chrome 92.0.4515.159

[  +61 ms] executing: uname -m
[   +4 ms] Exit code 0 from: uname -m
[        ] x86_64
[ +119 ms] [CHROME]:
[        ] [CHROME]:DevTools listening on
ws://<IP_ADDRESS>:38291/devtools/browser/94ce4876-b99d-476f-8d99-f963c2601b4c
[ +156 ms] DwdsInjector: Received request for entrypoint at
http://localhost:41053/main_module.bootstrap.js
[   +3 ms] MetadataProvider: Loading debug metadata...
[  +10 ms] MetadataProvider: Loaded debug metadata (sound null safety)
[   +4 ms] DwdsInjector: Injected debugging metadata for entrypoint at
http://localhost:41053/main_module.bootstrap.js
[+1264 ms] ChromeProxyService: Initializing expression compiler for
main_module.bootstrap.js with sound null safety: true
[  +51 ms] DevHandler: Debug service listening on ws://<IP_ADDRESS>:33727/Kg5npfymqfE=/ws

[  +17 ms] This app is linked to the debug service: ws://<IP_ADDRESS>:33727/Kg5npfymqfE=/ws
[   +7 ms] Debug service listening on ws://<IP_ADDRESS>:33727/Kg5npfymqfE=/ws
[        ] 💪 Running with sound null safety 💪
[   +2 ms] 🔥  To hot restart changes while running, press "r" or "R".
[        ] For a more detailed help message, press "h". To quit, press "q".
[        ] An Observatory debugger and profiler on Chrome is available at:
           http://<IP_ADDRESS>:33727/Kg5npfymqfE=
[ +718 ms] DevTools activation throttled until 2021-08-24 07:48:02.748046.
[+1138 ms] The Flutter DevTools debugger and profiler on Chrome is available at:
                    http://<IP_ADDRESS>:9101?uri=http://<IP_ADDRESS>:33727/Kg5npfymqfE=

$ flutter analyze
nalyzing bug...

   info • Use key in widget constructors • lib/main.dart:14:7 •
          use_key_in_widget_constructors
   info • Private field could be final • lib/main.dart:20:22 • prefer_final_fields
   info • Private field could be final • lib/main.dart:21:30 • prefer_final_fields
   info • Use isEmpty instead of length • lib/main.dart:46:9 • prefer_is_empty
   info • The parameter 'path' should have the name 'configuration' to match the name used
          in the overridden method • lib/main.dart:64:59 • avoid_renaming_method_parameters
   info • Prefer const with constant constructors • lib/main.dart:66:14 •
          prefer_const_constructors
   info • Prefer const with constant constructors • lib/main.dart:69:14 •
          prefer_const_constructors
   info • Annotate overridden members • lib/main.dart:80:35 • annotate_overrides
   info • Annotate overridden members • lib/main.dart:93:21 • annotate_overrides
   info • Prefer const with constant constructors • lib/main.dart:108:16 •
          prefer_const_constructors
   info • Prefer const with constant constructors • lib/main.dart:115:29 •
          prefer_const_constructors
   info • The parameter 'path' should have the name 'configuration' to match the name used
          in the overridden method • lib/main.dart:135:46 •
          avoid_renaming_method_parameters
   info • Annotate overridden members • lib/main.dart:169:9 • annotate_overrides
   info • Prefer declaring const constructors on `@immutable` classes • lib/main.dart:202:3
          • prefer_const_constructors_in_immutables
   info • Use key in widget constructors • lib/main.dart:202:3 •
          use_key_in_widget_constructors
   info • Prefer declaring const constructors on `@immutable` classes • lib/main.dart:228:3
          • prefer_const_constructors_in_immutables
   info • Use key in widget constructors • lib/main.dart:228:3 •
          use_key_in_widget_constructors
   info • Use key in widget constructors • lib/main.dart:250:7 •
          use_key_in_widget_constructors
   info • Prefer const with constant constructors • lib/main.dart:255:13 •
          prefer_const_constructors
   info • Prefer const with constant constructors • lib/main.dart:256:16 •
          prefer_const_constructors
   info • Unused import: 'package:bug/main.dart' • test/widget_test.dart:11:8 •
          unused_import
  error • The name 'MyApp' isn't a class • test/widget_test.dart:16:35 •
         creation_with_non_type

22 issues found. (ran in 1.1s)

The above issues can be ignored as they have araised due to the introduction of flutter_lint.

$ flutter doctor -v
[✓] Flutter (Channel master, 0.0.0-unknown, on Ubuntu 21.04 5.11.0-31-generic, locale
    en_IN)
    • Flutter version 0.0.0-unknown at
      /home/hrk/main-data/softwares/flutter/channels/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 369a0e2bc0 (5 hours ago), 2021-08-23 09:17:04 -0400
    • Engine revision 710af46d53
    • Dart version 2.15.0 (build 2.15.0-42.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /mnt/common-data/softwares/android/sdk/linux
    • Platform android-31, build-tools 31.0.0
    • ANDROID_SDK_ROOT = /mnt/common-data/softwares/android/sdk/linux
    • Java binary at: /snap/android-studio/current/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
    • cmake version 3.18.4
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2020.3)
    • Android Studio at /snap/android-studio/114/android-studio
    • Flutter plugin version 59.0.2
    • Dart plugin version 203.8292
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Android Studio (version 4.2)
    • Android Studio at /snap/android-studio/113/android-studio
    • Flutter plugin version 58.0.1
    • Dart plugin version 202.8531
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)

[✓] Android Studio
    • Android Studio at /snap/android-studio/current/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /snap/android-studio/current/android-studio
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at /snap/intellij-idea-community/310
    • Flutter plugin installed
    • Dart plugin version 211.7727

[✓] IntelliJ IDEA Community Edition (version 2021.2)
    • IntelliJ at /snap/intellij-idea-community/315
    • Flutter plugin installed
    • Dart plugin version 212.4746.57

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 21.04 5.11.0-31-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 92.0.4515.159

• No issues found!

Closing as this is the intended behavior.
Reference - https://github.com/flutter/flutter/issues/87897#issuecomment-904060553


Fix quality issue

See #81 for more detail

Codecov Report

Merging #82 into master will increase coverage by 0.23%.
The diff coverage is 95.45%.

@@            Coverage Diff            @@
##           master     #82      +/-   ##
=========================================
+ Coverage   92.26%   92.5%   +0.23%
=========================================
  Files          16      16
  Lines         582     587       +5
=========================================
+ Hits          537     543       +6
+ Misses         45      44       -1

Impacted Files
Coverage Δ

vidstab/cv2_utils.py
92.85% <ø> (ø)
:arrow_up:

vidstab/version.py
100% <100%> (ø)
:arrow_up:

vidstab/frame_queue.py
98% <100%> (+0.04%)
:arrow_up:

vidstab/VidStab.py
90.86% <94.11%> (+0.7%)
:arrow_up:

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 a42cfe3...4f1e55e. Read the comment docs.


Getting an error: "UserWarning: Could not set COM MTA mode. Unexpected behavior may occur." [Pyglet Error]

Describe the error

In any scene that I am running, whether it's in preview mode or not, I am getting the mentioned error. I searched everywhere but nothing closely related I found to resolve it. The problem is the output is really messed up. The rendering is not done properly. It started happen after one of the recent commits [that I am not sure of], before that everything was working fine. Maybe it's the way the rendering is being done.
Error:

Error from the package: pyglet\libs\win32\__init__.py:326
Environment
OS System: Windows 11
manim version: master latest commit.
python version: 3.9.16
Even, I created a fresh environment with python 3.10.6 and installed all the dependencies. Still the same error and same messed up rendered animation.

Can you share an image showing how the rendering is messed up?  And is there any kind of stack trace, or line number, associated with the warning?

The error I got was just I mentioned: Line 326 from pyglet libs\win32\__init__.py package.
Error: ..\pyglet\libs\win32\__init__.py:326: UserWarning: Could not set COM MTA mode. Unexpected behavior may occur.  warnings.warn("Could not set COM MTA mode. Unexpected behavior may occur.")
There was no stack of error.
For reference, I am attaching both the old and new animations.
Old (this one is when CONFIG parameter was still used in manimgl):
https://user-images.githubusercontent.com/41651498/215852781-ccec45ee-c50a-44cd-accc-d010856c4456.mp4
New:
https://user-images.githubusercontent.com/41651498/215852851-771b8a2c-8efa-4891-bed6-b806f3b15876.mp4
python version: 3.10.8
manim version: Latest manim version

Are you able to check if this fix works on your end?  It's not directly related to the window warning but addresses a certain hypothesis about the rendering glitch.

Yup! This fix worked perfectly well.


Native Ollama API support

Use "native" ollama API, not the OpenAI compatible layer.

Lowering the priority of this task as it seems that Ollama OpenAI support is pretty robust.


This should be the default for any .NET project

Hi,
this setup is useful enough to be used in all .NET projects not only F# projects.
We use nearly the same setup for https://github.com/octokit/octokit.net
We should add a C# project and remove all F# naming.
Cheers,
Steffen

#102 is now merged, and as such ProjectScaffold supports C# projects. We're using it for more C# projects than F# projects now :smile:

@Vidarls my sincerest condolences for having so many C# projects
Joking aside, thanks for helping us to make this ecosystem great. Your work on all these projects is super cool. :heart:

Don't be sorry, adding Scaffold, Format and Fake, makes every project an F# project :stuck_out_tongue_winking_eye:

In the spirit of this thread, it would be great if as part of the options in the init.fsx script if we allowed the user to decide if the default project should be an C# project instead of F#.


reading the readme helps

Windows Bug message.txt
npm-debug.txt
Could you tell me which part i did wrong?

Works fine on ubuntu, did you do all the steps in the README?

I believe so. I uploaded the error log here. It appears the same error message when I run it in Windows.
From Mark's IPhone.

On Aug 11, 2016, at 4:39 PM, jmoriau<EMAIL_ADDRESS>wrote:
Works fine on ubuntu, did you do all the steps in the README?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from the readme:
apt-get install libprotobuf-dev


[dgw] Avoid snat on reply packets

#212
OVN had fix the issue[1] that avoid snat on reply packets for gateway router. And it is also needed be dealt with for dgw.
[1]https://github.com/ovn-org/ovn/commit/8b3e1afc30

test this please

Hi @shylou!  This change looks good to me at a first glance.  Would you mind posting this as a formal patch to the mailing list?  Instructions are available here:
https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/submitting-patches.rst
Essentially it's something like:
p=$(git format-patch --subject-prefix="PATCH ovn" -M HEAD~)
git send-email $p

Please also make sure you sign-off your commit:
https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/submitting-patches.rst#developers-certificate-of-origin
git commit -s --ammend

Thanks,
Dumitru

hi @dceara, i have  posted this patch to<EMAIL_ADDRESS>Please review it, thanks.

Applied via<EMAIL_ADDRESS>


⚠ Bofrost.at has degraded performance

In aeeac7d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2586 ms

Resolved: Bofrost.at performance has improved in 8f4af18 after 6 minutes.


etc/password is automatically added, document it

Doc update: the passwd file is mounted since https://github.com/helm/charts/commit/fa9cf124fa7f0ad91754c37920de3bfdc850da87

/lgtm


refactor(cicadaPlayer): enable abr

Signed-off-by: pingkai<EMAIL_ADDRESS>

Codecov Report

Merging #63 into develop will increase coverage by 2.35%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop      #63      +/-   ##
===========================================
+ Coverage    66.08%   68.43%   +2.35%
===========================================
  Files          200      200
  Lines        10566    10567       +1
===========================================
+ Hits          6983     7232     +249
+ Misses        3583     3335     -248

Impacted Files
Coverage Δ

cmdline/cicadaPlayer.cpp
0% <0%> (ø)
:arrow_up:

mediaPlayer/SuperMediaPlayerDataSourceListener.h
0% <0%> (-100%)
:arrow_down:

framework/tests/dataSource/ipList.h
0% <0%> (-100%)
:arrow_down:

framework/tests/demuxer/demuxerUnitTest.cpp
0% <0%> (-100%)
:arrow_down:

framework/tests/decoder/decoderUnitTest.cpp
0% <0%> (-93.48%)
:arrow_down:

framework/tests/dataSource/dataSourceUnitTest.cpp
0% <0%> (-93.34%)
:arrow_down:

framework/tests/demuxer/demuxerUtils.cpp
0% <0%> (-82.67%)
:arrow_down:

framework/data_source/ffmpeg_data_source.cpp
9.37% <0%> (-65.63%)
:arrow_down:

framework/demuxer/AVBSF.cpp
25.27% <0%> (-42.86%)
:arrow_down:

framework/data_source/curl/CURLShareInstance.cpp
69.44% <0%> (-27.78%)
:arrow_down:

... and 33 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 7b7455d...fc45272. Read the comment docs.


Model set typed create

Reopen of #625 *

The two offending tests are:  ModelSetIntegrationTest  and  UserGuideSamplesIntegrationTest .
In  ModelSetIntegrationTest , model creation of "ModelSet of ModelSets" and "ModelSet of ModelMaps" seems to break, could you take a look?
UserGuideSamplesIntegrationTest  fails because of small mistakes in  subprojects/docs/src/samples/modelRules/modelDsl/build.gradle .
You can run it locally using the following incantation:
./gradlew intTestImage docs:userguide integtest:integTest --tests org.gradle.integtests.samples.UserGuideSamplesIntegrationTest

It seems that the ModelSetIntegrationTest is failing because I'm losing the generic type parameter of the ModelMap. It's either being lost at line 206 of NodeBackedModelSet where I call elementType.getRawClass() or it's being lost on line 86 with the ModelType.of(type) call. I'm leaning towards line 86, but to be honest, I don't understand enough about all the elements at play to properly identify the culprit or how to fix either. Can you offer any guidance on the issue?

Hi Michael,
Maybe taking a look at how NodeBackedModelMap is handling the same concepts could help.
We can see there that the creational method flow is quite different and do not use .getRawClass() that surely erases the generic types. I did a quick spike but without much success.
@adammurdoch, @lptr, any chance one of you could chime in and provide some guidance?

Thanks again for providing the pull request. There has been little tracking on this PR as well as the software model on our end. I am going to close it.


handle lossy data packet messages which fix speakers update

Livekit server use two differents protocol for sending speakers update: https://github.com/livekit/livekit-server/blob/master/pkg/rtc/room.go#L519-L525
It's seems that's server send lossy data packet for speakers update to room from go sdk. But they are not handled so I started implementation for reading it in the same for as SignalClient. This currently handle speakers update and I don't really know what should be handled too.
This also include a small fix on Participan.setIsSpeaking which was not update speaking if the state of speaking state change. It should be inverted obviously

You will see also  that I've handled the receive data callback which was not handled  ;)


[feature/#334] Remove useless param of EventMapScreen in iOS

Issue

close #334

Overview (Required)

Bug occurred because of undefined param in eventMapViewController, so remove it.

Links

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before
After

Movie (Optional)

Before
After

Thank you for finding this issue and fix this! This is what we needed!


[feature] Support external network access monitor

Is your feature request related to a problem? Please describe.
User may need to access monitoring through external network.
Describe the solution you'd like
LeaderSVC and FollowerSVC need support external network access.
Describe alternatives you've considered
Additional context

change scheme：
Do not use leader and follower services, use headless or create a dedicated service


Unable to open 2nd split file

I tried splitting a PDF file and it doesn't seem to work on the 2nd split file.
I tried splitting 5,10
It gave me a zip of 3 files correctly.
The first PDF will open with page 1-5
the 2nd file will fail to load with the error "An error existing on this page..."

The 3rd file will open from page 11 to the end correctly
Splitting 5,10,15 results in
File 1, page 1-5 (Correct)
File 2, error
File 3, Page 11-15 (Correct)
File 4, page 16-end (Correct)
Same results splitting 5,10,15,20. It's always the 2nd file that files to load with an error.
The only time the 2nd file opens is when there's only 1 split
eg: Split on page 5, results in 2 files, 1-5 and 6 to end. Both opens with no complains from Acrobat reader.
The files with issues opens in Chrome and Edge browsers with gibberish on it.

Issue has been resolved in v0.21.0 everything works as expected now


macOS doesn't work

Hi,
I tried NekoPresence's extension example in my project on MacBook M1 and it doesn't work. np_initdiscord is returning false but APP ID is correct. I even tried it on Windows (exactly same project) and it worked perfectly, so maybe there is problem with macOS ? M1 chip ? or some kind of macOS permission thing ?

That's a fun one.
GameMaker Studio 2 has an official native built M1 version, it will use that whenever possible.
Discord does not have an official M1 build, it is 'optimized' for Rosetta 2 (meaning it's been tested to work there), but it's still an AMD64 binary.
Since M1 macs are overly expensive I just can't afford one so I only built NekoPresence for AMD64.
Even if I were to build my extension for M1, Discord is still using Rosetta 2, there's no point.
You can probably force your app to run in Rosetta 2 as well or just... complain to Discord :/

Ah, so its M1 problem, ok that's I need to know. I'm using M1 just for development so it's not big deal at the end of day, I was just wondering.. thanks and yes, I will definitely complain to Discord >:(

I published a new 1.3.2 version, I did recompile the macOS library as Universal (took me an hour of my life to figure out how to force CMake to use the older SDK but build for ARM).
I have no idea if this will work with Discord itself, but my testing reports that it is a valid x86/M1 dylib and it does load & initialize for me on x86.

After some testing on an M1 Mac Mini it has been confirmed that NekoPresence now functions correctly on macOS, closing.


FR: More characters in Computer name in list report please.

I'm sorry.

See #88 to understand how to customize the computer name space

Thanks.


Added fitlet2

@arielsaghiv - Before we can evaluate your PR, you need to sign the contribution license agreement. It's all electronic and will take just a few minutes. Thank you.
#label:"aq-pr-triaged"

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

Hi - @arielsaghiv,
We need a few fixes:
a - the bottom row has 7 columns where the rest of the table only has 6. This is going to cause a build error - can you fix?
b - same w the Storage row in the second table. this has 3 rows while the rest has only 2. please fix.
c - generally we support only 4 columns in tables. I'm not sure how this got published with 5, but we can't add a 6th - the horizontal scrolling that's going to show here is not going to reach accessibility standards. removing the images for now would help - do you want to do that or rework the table?

replacing with https://github.com/MicrosoftDocs/azure-docs-pr/pull/192586

#please-close


Inventory / Stock Tracking

First thoughts are to create this as a module of it's own.
This could be a good starting point: http://code.google.com/p/silverstripe-ecommerce/source/browse/#svn%2Fmodules%2Fecommerce_stockcontrol%2Fbranches%2Fsimple

Note: https://github.com/milkyway-multimedia/ss-shop-inventory

https://github.com/i-lateral/silverstripe-commerce-stockkeeping
https://github.com/sunnysideup/silverstripe-ecommerce_stockcontrol

We've now got that with the shop_stock module


fix function based collections without params

What I am changing

Currently, parameter-less functions are broken on startup when the Collection model is instantiated by them

How I did it

Handle the table dict having an explicit parameters: None properly, always default to a list to make pydantic happy

How you can test it

Create the following function
CREATE OR REPLACE FUNCTION public.test() RETURNS TABLE(foo integer, location geometry)
AS 'SELECT 1, ST_MakePoint(0,0);' LANGUAGE SQL;

Currently
Launching tipg will fail when it goes to create an instance of Collection based off of this function due to a validation error
After this PR
Launching tipg will work as expected without any validation errors

@vincentsarago if you'd like a test for this let me know and i can do that as well :)

Thanks @jackharrhy

if you'd like a test for this let me know and i can do that as well :)

Yes please 🙏

I might be missing something, but I don't see how this is doing anything differently than parameters=table.get("parameters", [])?

@bitner because I guess table can have parameters=None.
Maybe this tell us there is a bug and that parameters should always default to [] or not be set in table if empty

@bitner

Maybe this tell us there is a bug and that parameters should always default to [] or not be set in table if empty

This is what table look like
{'name': 'test', 'entity': 'Function', 'schema': 'public', 'parameters': None, 'properties': [{'name': 'foo', 'type': 'integer'}, {'name': 'location', 'type': 'geometry', 'geometry_type': 'Geometry'}]}

You can see that tipg_catalog function returns None for parameters

I have updated the code and added tests. @bitner I think we don't need to change the tipg_catalog SQL code to return [] by default for now!

Thanks for taking this over and getting it sorted!


modification and implementation

modified the readme file and implemented the KNN classifier and regressor models.

I changed the structure of this project a bit, pull from the main branch again and adjust the code, then commence. See this issue #3


fix(table chart): Show Cell Bars correctly

SUMMARY
The issue here is that the “isMetric” key for percentage metric is coming up as False from the columns when it is being imported from props.

As we follow the data into the line where we are creating “const valueRange”, we can see that we are calling the getValueRange function only when either “isMetric” is True or “isRawRecords” is true.  “isRawRecords” is false for both, and “isMetric” is only true for regular metrics and not percentage metrics. So the "getValueRange" function is not even being called for percentage metrics which is why it is not calculated for these metrics.

When we follow the data further, we can see in the “” component where we are returning the Cell Bars we have a condition of “valueRange” to not be null in order to display the cell bars. We can verify with console.logs that the valueRange is never calculated in the case of percentage metrics and it is null. This is why the cell bars are not showing up for only the percentage metrics because the css class for it is not being added since “valueRange” is null.

Proposed solution:
A solution that fixed the cell bars for me is adding a separate key[0] == “%” in the conditional where we are checking (isMetric || isRawRecords) while creating the const “valueRange” variable. This ensures none of the other code is messed with and the cell bars still show up.

Alternatively, we can also make the isMetric variable true from the file where the percentage metric props are being created, but I am not sure if that might break other parts of the code, so this seemed to be the least intrusive way to fix it.
End result:
Before:

After:

TESTING INSTRUCTIONS
Create a table chart and add both regular metrics and percentage metrics and enable the show cell bars options. They both should be showing when it previously was not.
ADDITIONAL INFORMATION
Fixes #24495 - Show Cell Bars does not work on the Percentage Metrics in Table Chart

[ ] Has associated issue:
[ ] Required feature flags:
[X] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

Hey @SA-Ark you got a lint issue to fix. You can run npm run lint-fix


Prompt users to set multiple tokens for GitHub configuration

Description
Due to GitHub API rate limit, it will take a lot of time to run data collection if only one token is configured.

Describe the solution you'd like
Prompt users to set multiple tokens and tell them how to get these tokens.
Design of the solution
Show an Add Token button and perhaps 5 input boxes on the GitHub Add Connection page, so that users can provide multiple tokens at once to speed up data collection.

Prototypes of GitHub configuration

Prototype of GitHub configuration

@Startrekzky Moving this ticket for enhancing multi-token input to v0.10.0


[FAIL. Reason: Arithmetic over/underflow] testRSA() (gas: 6003)

Hello, There was a error after I execute the command.
forge test --mc BigNumbersTest
In total I executed the following commands
git clone https://github.com/firoorg/solidity-BigNumber.git
cd solidity-BigNumber
forge build
forge test --mc BigNumbersTest
And this is all of the message
[⠑] Compiling...
No files changed, compilation skipped

Running 11 tests for test/BigNumbers.t.sol:BigNumbersTest
[PASS] testDiv() (gas: 27532)
[PASS] testFailVerifyBitlen() (gas: 668)
[PASS] testFailVerifyLength() (gas: 499)
[PASS] testInit() (gas: 31180)
[PASS] testLengths() (gas: 11256)
[PASS] testModMul() (gas: 24026)
[PASS] testMul() (gas: 83697)
[FAIL. Reason: Arithmetic over/underflow] testRSA() (gas: 6003)
[PASS] testShiftLeft() (gas: 153374)
[PASS] testShiftRight() (gas: 59236)
[PASS] testVerify() (gas: 733)
Test result: FAILED. 10 passed; 1 failed; 0 skipped; finished in 1.98ms
Ran 1 test suites: 10 tests passed, 1 failed, 0 skipped (11 total tests)

Failing tests:
Encountered 1 failing test in test/BigNumbers.t.sol:BigNumbersTest
[FAIL. Reason: Arithmetic over/underflow] testRSA() (gas: 6003)

Encountered a total of 1 failing tests, 10 tests succeeded

hi, this was in fact due to a bug in the verify() function, is has been patched: https://github.com/firoorg/solidity-BigNumber/blame/master/src/BigNumbers.sol#L38