ChatGPTCompleteCode does not work at all (ChatGPT does)

Hi,
I have just configured this plugin with the api_key_cmd like so:
api_key_cmd = "op read op://somePath --no-newline",
When I set my cursor on line 9 in the following buffer and issue ChatGPTCompleteCode
It kind of bugs out neovim. What happens is:

  	  // TODO: implement will appear on line 9
the closing curly brace of the message dissapears
I can no longer undo and get the following error: E21: Cannot make changes, 'modifiable' is off

The code completion feature is completely unusable like this.
Any help would be greatly appreciated because what I have seen from the Dreams of Code video seems amazing.
regards,
Chris
package main

import (
	"flag"
	"fmt"
)

func sortStringsByLength(arr []string) {
// this is line 9, in my actual test the comment is not here but the line is empty
}

func main() {
	var nFlag = flag.Int("n", 1234, "help message for flag n")
	flag.Parse()
	fmt.Printf("nflag: %d", *nFlag)
}

When I open a new buffer with just the function in it, I get more sensible results:
func sortStringsByLength(arr []string) {
	sort.Slice(arr, func(i, j int) bool {
		return len(arr[i]) < len(arr[j])
	})
}

some additional findings:
That one line it generates seems to be a buffer. When I :q after :ChatGPTCompleteCode has completed only that line dissappears.

similar functionality works wonderfully btw.
I can select the lines 7 -9 from the example and do :ChatGPTEditWithInstructions ask implement this and I get a solid response which I can accept.

For me :ChatGPTCompleteCode only generates
    // API ERROR: The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

For me :ChatGPTCompleteCode only generates
    // API ERROR: The model `text-davinci-003` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

same here


WIP: Fixes timeline generation math

Resolves #127

Codecov Report

Merging #133 into master will decrease coverage by 0.61%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##           master     #133      +/-   ##
==========================================
- Coverage   99.38%   98.76%   -0.62%
==========================================
  Files           1        1
  Lines         971      973       +2
  Branches      189      192       +3
==========================================
- Hits          965      961       -4
- Misses          2        5       +3
- Partials        4        7       +3

Impacted Files
Coverage Δ

src/turbot/__init__.py
98.76% <62.50%> (-0.62%)
:arrow_down:

Continue to review full report at Codecov.

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


Make SafeEventEmitterProvider type-compatible with Ethereum request libraries

We should update SafeEventEmitterProvider to conform to EIP-1193 so that we are able to create a provider and pass it to an eth-query constructor, ethjs-query constructor, Web3Provider constructor from Ethers v5, or BrowserProvider constructor from Ethers v6 without seeing any type errors.
Minimally, this means adding a request method which returns a Promise instead of calling a callback. Note that EIP-1193 does not rely upon a particular protocol for request data, so in order to ensure that parameters conform to JSON-RPC, we would need to have request allow id and jsonrpc to be optional and fill them in with reasonable values if they are not given.
Also, to maintain backward compatibility, we should deprecate, but not remove, sendAsync and send.

Refer to technical proposal located in notion. If you can't find it ask @desi or @mcmire


Failure to setup sound

I'm getting this error message in the console when changing location
"Failure to setup sound, err = -50"

What is you iDevice ?

I'm running an iPhone 6 Plus with the latest software version 9.3.3

Do you test the app on simulator or on your real device ?

I close the issue, please open an another issue if you still have this problem.


Name components with TLV type greater than 65535 should be rejected

The spec says they're invalid:

TLV-TYPE of name component MUST be in the range 1-65535 (inclusive). Name element containing a sub-element out of this range is invalid and the packet SHOULD be dropped. This requirement overrides the TLV evolvability guidelines.

But Name.from_str and Name.encode happily accept them:
>>> Name.from_str("/a/123456=foo")
[bytearray(b'\x08\x01a'), bytearray(b'\xfe\x00\x01\xe2@\x03foo')]
>>> Name.encode(Name.from_str("/a/123456=foo"))
bytearray(b'\x07\x0c\x08\x01a\xfe\x00\x01\xe2@\x03foo')

I haven't checked the decoding routines but similar checks should be added there too.

Type == 0 is also invalid and should be rejected.


Tracking issue of bindings support

This tracking issue intends to track the implementations of different bindings. Please feel free to take any of them or prompt a new one.
Released

python: Tracking issues of not finished tasks
nodejs: Tracking issues of not finished tasks
java: Tracking issues of not finished tasks

Unreleased

c: Tracking issues of not finished tasks
ruby: Tracking issues of not finished tasks
zig: Tracking issues of not finished tasks

Working on

[ ] #2428
[x] https://github.com/apache/incubator-opendal/issues/2465
[ ] https://github.com/apache/incubator-opendal/issues/2474
[ ] https://github.com/apache/incubator-opendal/issues/2476
[ ] #2981

Ideas

idris: https://github.com/apache/incubator-opendal/discussions/1896
golang: https://github.com/apache/incubator-opendal/issues/1472

Not well tracked. Let's close.


Introduce an Unknown state for property values

Shadow properties get this state when entities are first attached. These properties are then not considered modified even if the entire entity is marked as modified and so the values for these properties are not saved. The properties are only considered as modified or not when an actual value is set.
See #4474

:shipit:


I am receiving no tracking data....also a question about pupil size?

Hello,
Well done on the code. I have installed it and am running the binary with a Tobii EyeTracker 4C.
I am running:
tobiisteam.exe
I get the following:
TobiiStream v2.0.3
SUCCESS: The connection to the GazeTrack Processing library has been correctly set up!
TobiiState Present
However I get no data stream as per your text files and your example? Also, in the text stream (when I fix it), does one of the parameters correspond to pupil diameter of left and right?
What am I doing wrong? I read that for this to work I do NOT need a licence from Tobii.
Please help,
Simon

Note: I have not got any research licence yet, and am not sure if this is why. Also the more important issue for me is getting direct access to the pupil diameter of each eye. Can you please advise if your source can do this?

Dear @simonjosephsmith thank you for your interest in this repository. Soon, we will try to help you by providing an answer to your problem.

Great, thanks.
On Sat, 20 Feb 2021, 8:38 pm Francisco Maria Calisto, <
<EMAIL_ADDRESS>wrote:

Dear @simonjosephsmith https://github.com/simonjosephsmith thank you
for your interest in this repository. Soon, we will try to help you by
providing an answer to your problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mida-project/eye-tracker-naive/issues/1#issuecomment-782595806,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVWLWSHLCGS6EDI7W7ZBXLS757H7ANCNFSM4X3TTHRQ
.

Did you install the Tobii Eye Tracking Core Software?
You need to install the software and configure it. Then you need to run it. From here, you can use this repository to extract the users' gaze. Hope that help.

Perfect, that made me get data streaming. However, how can

I access data for the left and right eye pupil diameter?

Dear @simonjosephsmith, I am really sorry for the delay in answer your last question. I suggest you to read the documentation of Prof. @AugustoEst concerning this solution. As follows, I will provide a link to the documentation that might help you.
Please try to find a solution to your problem here:
http://web.tecnico.ulisboa.pt/augusto.esteves/GazeTrack/reference/gazetrack/package-summary.html
Hope that help!

The TobiiStream used in the GazeTrack library does not provide pupil size information.

Thank you Prof. @AugustoEst for your answer. Good luck @simonjosephsmith with your work.
Can I close the issue?

Thank you kindly all. I assume this is only available with a Pro licence
and accessing the 'advanced' API calls?
May I ask if there is any other direct way of accessing the 4C data?
Simon
On Fri, 26 Feb 2021, 8:20 pm Francisco Maria Calisto, <
<EMAIL_ADDRESS>wrote:

Thank you Prof. @AugustoEst https://github.com/AugustoEst for your
answer. Good luck @simonjosephsmith https://github.com/simonjosephsmith
with your work.
Can I close the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mida-project/eye-tracker-naive/issues/1#issuecomment-786519855,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVWLWWDUD32ZKS56KN3OC3TA5RXBANCNFSM4X3TTHRQ
.

It seems that with Tobii Pro you can access the pupil size. However, you might need to buy a Pro License.

Hello,
They don't seem to be getting back to me. I know that the API in the
advanced area deals with that. Is there any way to access the data?
S
On Mon, 1 Mar 2021, 7:56 pm Francisco Maria Calisto, <
<EMAIL_ADDRESS>wrote:

It seems that with Tobii Pro https://www.tobiipro.com/ you can access
the pupil size
https://www.tobiipro.com/learn-and-support/learn/eye-tracking-essentials/is-pupil-size-calculations-possible-with-tobii-eye-trackers/.
However, you might need to buy a Pro License
https://developer.tobii.com/license-agreement/.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mida-project/eye-tracker-naive/issues/1#issuecomment-787777905,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVWLWQ3ONYKCROP6UIZ2DLTBNJFHANCNFSM4X3TTHRQ
.

You can also try to explore our eye-tracker-setup repository which is based on the tobii_pro_wrapper repository. In the documentation of the tobii_pro_wrapper repository, you have a getPupilSize() method that return the pupil size. Hope that help.

Thanks
The biggest issue is Tobii's lack of customer service. They do not seem to
respond to people wanting a research licence.
On Mon, 1 Mar 2021, 9:52 pm Francisco Maria Calisto, <
<EMAIL_ADDRESS>wrote:

You can also try to explore our eye-tracker-setup
https://github.com/mida-project/eye-tracker-setup repository which is
based on the tobii_pro_wrapper
https://github.com/oguayasa/tobii_pro_wrapper repository. In the
documentation of the tobii_pro_wrapper
https://github.com/oguayasa/tobii_pro_wrapper repository, you have a
getPupilSize()
https://github.com/oguayasa/tobii_pro_wrapper#getpupilsize method that
return the pupil size. Hope that help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mida-project/eye-tracker-naive/issues/1#issuecomment-787853750,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVWLWSQ4YKVGTUZOWK2ZCLTBNWVVANCNFSM4X3TTHRQ
.

Yes, I agree with you. We tried to surpass several issues while working with such devices. Hope this information helped you on your goals. I will now close the issue.


Rasa Web chat customizing buttons position

Hi, I want to reposition the web chat buttons to left. Is there any way to do it?

No sorry, you can add you own css to do it though.  You probably have to look around the .rw-widget-container class, try and change itspositioning properties. You're most definitely gonna run into issues with the tooltip if you use it though.
If you figure out some good css to put the webchat on the left, we're accepting PRs. Thank  you


Renderer, format and path API

As for the general question, it seems a bit problematic that there is no one-to-one correspondence between format and path-extension. What I mean is that:

there is no format="pdf" (I assume because displaying PDFs in something like Jupyter notebooks seems problematic)
there are two formats for extension ".html", namely "widget", and "html".

Without knowing the internals it seems weird that
Plot.plot({}, format="png", path="out.svg") => ok
Plot.plot({}, format="widget", path="out.svg") => error.

I first thought that it would be best to completely decouple format and path: format dictates the display format, path dictates the export format. But this does not account for the html case...

Originally posted by @wirhabenzeit in https://github.com/juba/pyobsplot/issues/32#issuecomment-2133615607

Your points are very valid, but even after thinking about it I don't see a way to solve the inconsistencies without going back to a "renderer" or "output" argument.
This would mean that instead of renderer="jsdom"|"widget" we would have output="widget"|"static". For the widget output only a "path" option with an HTML extension would be allowed. For the static output there could be either a "format" option which could be "html", "svg" or "png". or a "path" option with an "html", "svg", "png" or "pdf" extension.
This would be more like the previous API, but maybe it would cause less confusion ?
@wirhabenzeit, @harrylojames any feedback would be welcome if you have any.

@juba To me this sounds like a good idea! Actually the output option would only be necessary for path=.html and format=html?

For path=*.svg/*.png/*.pdf or format=svg/png it can be inferred that output=static
For path=*.html or format=html the output can be specified, with default output=widget? (Maybe one could argue that the default for path=*.html should be output=static but not sure)

@wirhabenzeit Indeed, I also thought that output could in general be inferred depending on the format and path values (or lack of), with a default of "widget".

For path="*.html" I think we could raise an exception to force the user to specify an output.
For format="html" I think the default could rather be "static", as there should not be any format option for output="widget". We can display a warning to inform the user.

The above all seems reasonable but apologies I've looked through the previous discussion and still feel as though I've missed a key detail!
What's stopping us from having just the arguments output and path? I had assumed if we were in a notebook with the static renderer we could simply always show a html - but perhaps that's not desired! Only at the point of exporting would the format become relevant at which point we could infer from path?

@harrylojames I get your point but I think there are cases where you would want to specify an output format even when not directly exporting to a file. I think of notebook exports (for example if you commit an ipynb with outputs to gitlab it will save the images and make them available) or quarto documents, where you may prefer a png or svg output over another format.

@juba @harrylojames I agree that is useful to have svg or png output also in notebooks. Some platforms displaying ipynb files seem to have issues with HTML output.

New version of format and path API should be now implemented in the development version, and the documentation has been updated.
Closing this for now, don't hesitate to open a new issue for further discussion.


Common rules for inclusion and querying

In discussions with @rartino and @CasperWA over #184 the following ideas over property inclusion have been crystallized:

There should be a small set of properties that MUST be included in the response by default;
response_fields may be used to include/exclude any property (not sure if this holds for all properties, see #209)

Similarly,

There should be a small set of properties that MUST support querying;
Other properties support querying OPTIONALLY.

This PR implements these ideas by adding general notices and cleaning up the 'Entry List' section to explicitly mark only those properties that either included by default or must support querying. (I know, this goes against @CasperWA's idea of having a property reference there, but I have little ideas how to do it otherwise. Machine-readable specs maybe? :confused:). Thus fixes #204.
Also this PR:

Makes coordinate-based properties included upon request only (fixes #184, thus includes #203)
Makes 'lattice_vectors' mandatory in the response (affects #196)
Reduces query support requirement for nsites from MUST to OPTIONAL (includes #205)

Thank you for doing the job with this PR!  This will greatly help to avoid a situation with all implementation having slightly incompatible interpretation of the rules of when to, and when not to, include output fields.
However, with the edits you've made so far in this PR, don't you have to also update the definition of response_fields in 4.1.1, i.e.,from

response_fields: a comma-delimited set of fields to be provided in the output. If provided, only these fields MUST be returned and no others. Example: http://example.com/optimade/v0.9/structures?response_fields=id,url

into something like

response_fields: a comma-delimited set of optional fields to be provided in the output. If provided, the implementation MUST include in its response both the indicated fields and the fields marked as REQUIRED for the endpoint. Fields for which no meaningful value can be given MUST still be included with a null value. The implementation MUST NOT return any other fields. Example: http://example.com/optimade/v0.9/structures?response_fields=immutable_id,chemical_formula_hill

Right, the suggested change to response_fields would fix #209 as well. However, I am a little hesitant about bundling that many changes in a single PR, as requirements of other implementations might conflict. Maybe let's wait for today's Web meeting to discuss it with wider audience, OK?

I have responded to @rartino and @CasperWA comments, addressed #209 on the way. The PR has grown quite heavy, thus I request reviews of other contributors who, AFAIR, were interested in the related discussions.

I am however confused now. Compared to the current spec, we are now forcing a large data response, since, according to this, we are now unable to remove REQUIRED fields in the response, correct?

True, there will be no possibility to remove REQUIRED fields from the response with this PR. This is done both to solve #209 and simplify the rules: there is a set of mandatory properties, additional optional properties can be added using response_fields.
I consider the mandatory response quite compact (we have removed coordinates and related data at least). If you feel that some more fields could be made OPTIONAL - just let me know :)

The idea is that the REQUIRED part is so small that it doesn't matter that all of it must be included.
At this point, the REQUIRED part is essentially just various representations of the chemical formula + lattice_vectors. That last one stands out a bit from the others when the coordinates are not in the response, so maybe it can also be made non-mandatory.
Or, with apologies to @merkys for wavering on this topic; do we need to refine the categories one step further? Into:

REQUIRED in the response
Included in the response by default
Only included when requested by response_fields

And keep the formulation that with response_fields set, it specifies the included fields in addition to the REQUIRED ones. I.e., the default ones are then dropped.
Hence, this can be interpreted as saying that not giving a response_fields returns the concatenation of REQUIRED fields and default fields.

I think yet another requirement layer for properties might be an overkill. But we can introduce it, if needed later. Would such introduction require a major release of specification? If not, maybe let's leave it for v1.1?

I have mulled this over in my head for quite a while. I think a major use case we are missing with the present PR is when one makes a query that will return A LOT of entries and just want to grab their IDs transferring as little data as possible. I've used that sometimes when querying existing databases.
So, I apologize profusely for flip-flopping on this, but I now firmly believe that we need the three level version. These are the categories:

Only type and id are marked as REQUIRED in the response, as they are now.
All other properties marked as REQUIRED now are changed into "MUST be included in the response unless the response_fields query parameter is present and does not include this property."
All other properties are handled as they are now. I suppose they can remain unmarked, but even in the present PR I think the clarity would be grater saying: "SHOULD not be included in the response unless the response_fields query parameter is present and includes this property."

So, as you notice, this is very close to the present version. It is only 'level 2'-properties that needs a search+replace change of the text.
@merkys what do you think? Do you agree? If yes, are you willing to implement this change in your PR this week? Otherwise, I volunteer to do these changes to get them done for the deadline on Friday.

@merkys what do you think? Do you agree? If yes, are you willing to implement this change in your PR this week? Otherwise, I volunteer to do these changes to get them done for the deadline on Friday.

I completely agree with your latest proposal. However, this week is very busy for me, so I'd be grateful if you could make the suggested changes.You should be able to push to my branch.

I have mulled this over in my head for quite a while. I think a major use case we are missing with the present PR is when one makes a query that will return A LOT of entries and just want to grab their IDs transferring as little data as possible. I've used that sometimes when querying existing databases.
So, I apologize profusely for flip-flopping on this, but I now firmly believe that we need the three level version. These are the categories:
1. Only `type` and `id` are marked as REQUIRED in the response, as they are now.

2. All other properties marked as `REQUIRED` now are changed into "Included in a default response, i.e., MUST be included in the response unless the `response_fields` query parameter is present and does not include this property."

3. All other properties are handled as they are now. I suppose they can remain unmarked, but even in the present PR I think the clarity would be grater saying: "SHOULD not be included in the response unless the `response_fields` query parameter is present and includes this property."

This is exactly what I was expecting from this PR and hoping for, hence my earlier "confused" comment.
Great to see we're all see eye-to-eye on this now :+1: Looking forward to this change.

Done. Note that I ran into some trouble (that I recall we discussed somewhere) that these changes would lose all distinction between properties that the implementation could just ignore ("fully optional") and properties we meant needs to be 'supported' but are no longer required in any response.
So, I took it also upon this PR to add a supported key in the entries section that clarifies when a property must be supported in the sense that it cannot act as it is null all the time. I was very restrictive with the MUST demand here, and most properties that previous was marked as "REQUIRED in the response unless excluded" are now "SHOULD not be null".
Well, read the PR, and let me know if you disagree.
Also, please approve ASAP given that we are trying to work towards the deadline of the 20:th...

I had forgotten to merge the current state of develop.
(I've tried to be careful, and my interpretation is that any bad mistake ought to show up in the diff for the present PR, since it would be reverting changes in the present state of develop. But, I'm honestly not sure on that; I remember a case earlier in the history of optimade.md where we managed to revert some changes in an unclean merge. We couldn't even trace back in which merge it had happened, there were 3 or so candidates...)

I had forgotten to merge the current state of develop.

I trust you did the merge right :) OK, so we need yet one more approve.

Pinging @CasperWA, @sauliusg or @giovannipizzi for a review!

@CasperWA Thanks for the careful review! Hopefully, this version is better.

@CasperWA done!


Typo: Currency sign is not prefixing the value amount

Tiny typo, the currency sign is not prefixing the amount
https://github.com/mantinedev/ui.mantine.dev/blob/8be56fdda5b7697f7448187f1c4750a8514af16a/lib/CarouselCard/CarouselCard.tsx#L58

Hi @ryeviz
Do you mean to use a component like NumberFormatter for the prefix?
Or do you mean that it's ok the way it's displayed?

Hello @fagro-vizcaino
Just add the currency sign before the amount

    $397

Sure, that's what I did on this PR to fix that example.
https://github.com/mantinedev/ui.mantine.dev/pull/94/commits/a285bdc298c9779d72e851d58307e12cfca26a4b


[Not an issue] Detection bypass using code comments

Hi team,
As per the README, magika is open to adversarial examples from the community, here's one: https://gist.github.com/s0md3v/747b815cddcb2c9c4c7d0232bcc676ec.
It's a powershell script that prints a dummy string but gets detected as a "python" file by magika with a confidence of 100%. It is not a polyglot as it will not execute as a python program.

Good luck with the project and thanks for open sourcing it!
PS: Relevant tweet

Nice :-) We'll keep this in mind for the next iterations, marked as such. Thanks!


Possible error with poll_time_sec for if-mib

Despite having poll_time_sec: 60 it looks like ifHCInOctets is polling at the same rate as my customer's global interval, 120s.  On the UI side I am seeing IfUtilization coming in every ~60s but it is alternative between 0's the expected calculation.
Any chance the IF mib still has some lingering special code that is that is ignoring poll_time_sec?

Sample data from a customer account
March 31, 2022 15:25:19 kentik.snmp.ifHCInOctets {"type":"count","count":2516.0}
March 31, 2022 15:25:19 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":3.1E-5,"min":3.1E-5,"max":3.1E-5,"latest":3.1E-5}
March 31, 2022 15:24:14 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":0.0,"min":0.0,"max":0.0,"latest":0.0}
March 31, 2022 15:23:19 kentik.snmp.ifHCInOctets {"type":"count","count":8679.0}
March 31, 2022 15:23:19 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":1.07E-4,"min":1.07E-4,"max":1.07E-4,"latest":1.07E-4}
March 31, 2022 15:22:14 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":0.0,"min":0.0,"max":0.0,"latest":0.0}
March 31, 2022 15:21:19 kentik.snmp.ifHCInOctets {"type":"count","count":2516.0}
March 31, 2022 15:21:19 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":3.7E-5,"min":3.7E-5,"max":3.7E-5,"latest":3.7E-5}
March 31, 2022 15:20:24 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":0.0,"min":0.0,"max":0.0,"latest":0.0}
March 31, 2022 15:19:19 kentik.snmp.ifHCInOctets {"type":"count","count":2515.0}
March 31, 2022 15:19:19 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":3.1E-5,"min":3.1E-5,"max":3.1E-5,"latest":3.1E-5}
March 31, 2022 15:18:14 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":0.0,"min":0.0,"max":0.0,"latest":0.0}
March 31, 2022 15:17:19 kentik.snmp.ifHCInOctets {"type":"count","count":7352.0}
March 31, 2022 15:17:19 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":9.1E-5,"min":9.1E-5,"max":9.1E-5,"latest":9.1E-5}
March 31, 2022 15:16:14 kentik.snmp.IfInUtilization {"type":"gauge","count":1,"sum":0.0,"min":0.0,"max":0.0,"latest":0.0}

Yes, very likely. Will check.


Building parts instead of building footprints?

I downloaded the sample data mentioned here and I noticed that some polys were divided into separate parts (i.e. balconies/terraces, roofs, etc).

At first I thought it was an isolated case, so I categorized the  data based on the Shape_Area field.  We have 96,738 buildings with less than 100 feet^2.
Some looks like a legit free standing building (highlighted in yellow with a red dot):

But others are parts of a complex building:

This is the same for many areas (dots are buildings that are less than 100 feet^2):

By default we trace buildings in OSM as a single closed way/multipolygon.  We can use this data for modelling 3D buildings but the attributes of the source data doesn't give us much info.
I made simple visualization showing the outlines of the buildings here.
(OSM - Blue, LA County - Red. At low zooms, it shows building count at z15 tile)
I will investigate this further, but I would like to check here if the plan is to import this as it is or we will do more pre-processing to merge building parts.
cc/ @almccon @jschleuss @planemad

From the latest sample output by @maning https://github.com/osmlab/labuildings/issues/14#issuecomment-171256316
I'm seeing more building parts, mostly attached to garages. Cannot find any patterns with the tags to filter these out, so our best bet might be by area. I measured the dimensions of quite a few and the most were in the 3-5 m2 range.

cc @almccon

This seems like a really common issue throughout the sample

In fewer cases these parts are connections between buildings

Hoping to close this issue, as discussed in #20, the multipolys that are building parts of a building is prevalent in the city of Pasadena and not the rest of the County. As this import now excludes Pasadena  I move we close this issue to move on.

@cityhubla lets be aware that there are building parts in the rest of the county as well as found in https://github.com/osmlab/labuildings/issues/19#issuecomment-171301786 but the issues is not as major as Pasadena.
:+1: for closing now

I just added a comment in the IMPORTING.md instructions to tell importers to look out for these.


supercollider

https://github.com/supercollider/supercollider

Added in 766b101a18985b9a118d2203f6b13329d698e45b

It's great that Supercollider is on here, but "Webapp" doesn't seem the best category for something that bills itself as "An audio server, programming language, and IDE." AFAIK there is no common way to use Supercollider from a web browser.
Perhaps "Library" is the best approximation on this list, but I think something more like "Programming Environment" might be worth introducing, in which case Pure Data and Max/MSP (among others) could be added. Worth considering!


Username is preceeded with "/"

Hi there,
When I type in my authentication details, my username is proceeded with "/". In this example, my username to the database is pirobot
Version details
├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ ├──<EMAIL_ADDRESS>│ │ └─┬<EMAIL_ADDRESS>│ │   ├──<EMAIL_ADDRESS>│ │   └──<EMAIL_ADDRESS>│ └─┬<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   ├──<EMAIL_ADDRESS>│   └──<EMAIL_ADDRESS>Remote server mongod.log file (doing the write)
2016-06-02T11:37:33.125+0100 I NETWORK  [initandlisten] connection accepted from <IP_ADDRESS>:40017 #5 (1 connection now open)
2016-06-02T11:37:37.539+0100 I ACCESS   [conn5] SCRAM-SHA-1 authentication failed for /pirobot on testiot from client <IP_ADDRESS> ; UserNotFound: Could not find user /pirobot@testiot
2016-06-02T11:37:39.375+0100 I NETWORK  [conn5] end connection <IP_ADDRESS>:40017 (0 connections now open)
I managed to get round the issue by renaming my user to "/pirobot" but it just seems a bit odd.
Any advice is appreciated, I am happy to provide more feedback.
Many thanks
Jason

Maybe you are using a URI with three slashes: mongodb:///host/... instead of mongodb://host/....
Are you using the username and password fields, or just the URI field?

Hi Oren,
This is my configuration
Can I pass the username / password in the URI? Like this?
mongodb://pirobot:@<IP_ADDRESS>:27017/testiot
Thanks for your time
Jason
On 09/06/2016 17:07, Oren Zomer wrote:

Maybe you are using a URI with three slashes: |mongodb:///host/...|
instead of |mongodb://host/...|.
Are you using the username and password fields, or just the URI field?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ozomer/node-red-contrib-mongodb2/issues/7#issuecomment-224840025,
or mute the thread
https://github.com/notifications/unsubscribe/AOa6whv51xDeijC03o3zr-Y6XSAMFgo6ks5qJ9fCgaJpZM4ItMHs.

Yes, you can.

I just tried that, same problem
2016-06-09T10:25:11.312+0100 I NETWORK  [initandlisten] connection
accepted from <IP_ADDRESS>:60412 #3329 (1 connection now open)
2016-06-09T10:25:20.698+0100 I ACCESS   [conn3329] Successfully
authenticated as principal /pirobot on testiot
On 09/06/2016 17:31, Oren Zomer wrote:

Yes, you can.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ozomer/node-red-contrib-mongodb2/issues/7#issuecomment-224845255,
or mute the thread
https://github.com/notifications/unsubscribe/AOa6wrq2RPEfpZfZMDut2BEt5KMWWEftks5qJ91egaJpZM4ItMHs.

This is very strange. You are saying it tries to login as "/pirobot" instead of "pirobot"?
Please make sure that the username and password fields are empty, and only the URI field is filled.
The code simply calls: mongodb.MongoClient.connect(this.uri, this.options || {}).
I suggest you try calling mongodb.MongoClient.connect from node shell to see what happens.

Yes it tried to connect as "/pirobot" instead of "pirobot"
So to debug this, I need to run a shell, with the command node, and try
that connect statement?
On 09/06/2016 17:40, Oren Zomer wrote:

This is very strange. You are saying it tries to login as "/pirobot"
instead of "pirobot"?
Please make sure that the username and password fields are empty, and
only the URI field is filled.
The code simply calls: |mongodb.MongoClient.connect(this.uri,
this.options || {})|.
I suggest you try calling |mongodb.MongoClient.connect| from node
shell to see what happens.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ozomer/node-red-contrib-mongodb2/issues/7#issuecomment-224847205,
or mute the thread
https://github.com/notifications/unsubscribe/AOa6wlFWBz_5RLHrmhBTWScYVW4nnlx-ks5qJ99ygaJpZM4ItMHs.

Yes, try to connect normally with a mongodb client and see what happens.

That works fine, very strange
On 09/06/2016 18:04, Oren Zomer wrote:

Yes, try to connect normally with a mongodb
https://www.npmjs.com/package/mongodb client and see what happens.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ozomer/node-red-contrib-mongodb2/issues/7#issuecomment-224852501,
or mute the thread
https://github.com/notifications/unsubscribe/AOa6wsviNl9BeuA3KEqEU_ydHRUo_jEEks5qJ-UzgaJpZM4ItMHs.


antora/xref-validator failure after a component was removed from Camel

Fix #2109

In 7433dec I have added a piece of groovy to keep the Antora config Camel major.minor in sync with what we have in the top pom.xml

In 7433dec I have added a piece of groovy to keep the Antora config Camel major.minor in sync with what we have in the top pom.xml

initial-mvn-install passed, thus merging

initial-mvn-install passed, thus merging


productName can't have spaces with latest electron-forge

https://github.com/ipfs-shipyard/ipfs-desktop/blob/master/package.json#L3

@diasdavid where did you find that information? I can't seem to find it.

@hacdias try to build the app, it will error and give you that log.

I did and I did not receive errors. It just says:
Attempting to build a module with a space in the path

See https://github.com/nodejs/node-gyp/issues/65#issuecomment-368820565 for reasons why this may not work

But it doesn't fail and builds the modules successfully with spaces. But I'll try to figure out if I really need to change that.

Closing as unrelated to the newer version.


[BUG] Search input and entries selector vanishing

Describe the bug
The search input and entries selector goes away when do something in page. Even when goes to create form and comes back, it goes away.
Steps To Reproduce
Steps to reproduce the behavior:

Item
Version

Laravel
8.81.0

Project

OS
Ubuntu 20.04

Please, share the code you are using to display the table (controller and view). I believe it may be a problem with your logic...

In first time it works perfectly, after any action it stops.

The problem will be hard to track, since you have implemented it on top of Livewire and there is more code that you have not shared. You may check for errors on the browser's console tool. Also, I suggest to start with a minimal example of code until you get it working. In that case, you can share that minimal example here in order to get some help...

Thanks for the answer, I'll change my datatable component, i found PowerGrid, for now is working fine.


Type discrimination broken on generic, mapped type values when strictNullChecks:false

Running into what I think is a bug with type discrimination of a function when you have a mapped type on a generic type .  I've tried to make the reproduction as simple as possible.

TypeScript Version:  4.1.0-beta

Search Terms:
discrimination, generic, mapped type, strictNullChecks off
Code
type Mapping<T> = { [key in keyof T]?: string | (() => string) };

function foo<T>(mapping: Mapping<T>) {
    const results: {[key: string]: string} = {};
    for (const key in mapping) {
      const valueTransform = mapping[key];
      if (typeof valueTransform === 'function') {
        results[key] = valueTransform(); //! This expression is not callable...
      } else if(typeof valueTransform === 'string') {
        results[key] = valueTransform;
      }
    }
    return results;
}

Expected behavior:
Actual behavior:
strictNullChecks:false I get the following error:
This expression is not callable.
  Not all constituents of type 'string | (() => string)' are callable.
    Type 'string' has no call signatures.

If you change it back to true, it will work as expected.  It seems to have something to do with the combination of generics & mapped types, as if you change to reference Foo directly the code will compile.
type Mapping<T> = { [key in keyof Foo]?: string | (() => string) };
Also the discrimination only seems to break on the typeof valueTransform === 'function'
Playground Link: Playground Link
Related Issues:
https://github.com/microsoft/TypeScript/issues/27470

The issue can be reproduced with the following example:
function runIfFunction<T>(value: T | (() => T)): T {
  if (typeof value === 'function') {
    return value();
  } else {
    return value;
  }
}

The error looks as follows:
This expression is not callable. Not all constituents of type '(() => T) | (T & Function)' are callable.
Type 'T & Function' has no call signatures.

When changing the type guard from typeof value === 'function' to value instanceof Function it works.

The issue can be reproduced with the following example:
function runIfFunction<T>(value: T | (() => T)): T {
  if (typeof value === 'function') {
    return value();
  } else {
    return value;
  }
}

The error looks as follows:
This expression is not callable. Not all constituents of type '(() => T) | (T & Function)' are callable.
Type 'T & Function' has no call signatures.

When changing the type guard from typeof value === 'function' to value instanceof Function it works.

@web-padawan I would argue in the generic case the insatnceof behavior is wrong and this should be an error. If T is (a: string) => string so the type guard does not exclude T from the true branch:
function runIfFunction<T>(value: T | (() => T)): T {
  if (typeof value === 'function') {
    return value();
  } else {
    return value;
  }
}

runIfFunction<(a: string) => string>((a: string) => a.toLocaleLowerCase())
```
[Playground Link](https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABAJ3ASWAMXNeYA8AKgHwAUAbgIYA2IApgFyKGIA+ippAlIgLzHMuXJiwDeAKESIYwDlACeABzpxZVWnT69eiAOShIsBLp4SpU5HSghkSdfW4BuSYgC+iOtQDOms+cvWtoj2dM5SruIR4uKoYBjYhnj4pJRMXlDIMGAA5jz8iOmZOWQpaRlZuXwClAB0UHAAMnAQNHRNAO50yADClD7cXEA)

@web-padawan I would argue in the generic case the insatnceof behavior is wrong and this should be an error. If T is (a: string) => string so the type guard does not exclude T from the true branch:
function runIfFunction<T>(value: T | (() => T)): T {
  if (typeof value === 'function') {
    return value();
  } else {
    return value;
  }
}

runIfFunction<(a: string) => string>((a: string) => a.toLocaleLowerCase())
```
[Playground Link](https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABAJ3ASWAMXNeYA8AKgHwAUAbgIYA2IApgFyKGIA+ippAlIgLzHMuXJiwDeAKESIYwDlACeABzpxZVWnT69eiAOShIsBLp4SpU5HSghkSdfW4BuSYgC+iOtQDOms+cvWtoj2dM5SruIR4uKoYBjYhnj4pJRMXlDIMGAA5jz8iOmZOWQpaRlZuXwClAB0UHAAMnAQNHRNAO50yADClD7cXEA)

Another sample:
type A0<A0T> = Exclude<A0T, Function>;
type A1<A1T> = Exclude<A1T, Function> | Function;

function f<XF>(x: XF): void {
  type AF0 = A0<XF>
  type AF1 = A1<XF>

  const y0 = {} as AF0;
  const y1 = {} as AF1;

  const z0 = typeof y0 === 'function' ? y0() : undefined;
  const z1 = typeof y1 === 'function' ? y1() : undefined;
  /*                                   ^^^^^
  This expression is not callable.
  No constituent of type 'Function | (Exclude<XF, Function> & Function)' is callable.(2349)
  */

  const r = typeof y1 === 'function' ? y1 : null as never;
  type R = typeof r; // type R = Function
}

Play


cellxgene-schema must validate uns

uns (Dataset Metadata)
Curators MUST annotate the following keys and values in uns:
schema_version

Key
schema_version

Annotator
Curator

Value

          This MUST be "2.0.0".

title

Key
title

Annotator
Curator

Value

str. This text describes and differentiates the dataset from others in the same collection. It is displayed on a page in the cellxgene Data Portal that also has the collection name. To illustrate, the first dataset name in the Cells of the adult human heart collection is "All — Cells of the adult human heart".

Curators MAY also annotate the batch_condition key in uns. If the key is present, then its value MUST NOT be empty.

batch_condition

Key
batch_condition

Annotator
Curator

Value

list[str]. str values MUST refer to cell metadata keys in obs. Together, these keys define the batches that a normalization or integration algorithm should be aware of. For example if "patient" and "seqBatch" are keys of vectors of cell metadata, either ["patient"], ["seqBatch"], or ["patient", "seqBatch"] are valid values.

Implemented in cellxgene-schema v2.0.0


Change the developerConnection configuration to SSH

Again just a try to fix the release build. No reviews needed but welcome of course.


error installing requirements.txt

(venv) D:\ai\StableAnimator>pip install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu124
ERROR: triton-3.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

What is your python version?
python --version

I have 3:11:10 should I go back to 3:10:11

That will work.
However if you want to keep the python 3.11 update requirements.txt with this link
https://huggingface.co/datasets/newgenai79/Windows_wheels/resolve/main/TRITON/triton-3.0.0-cp311-cp311-win_amd64.whl?download=true

D:\ai\StableAnimator\inference\animation1>ffmpeg -i target.mp4 -q:v 1 -start_number 0 target_images/frame_%d.png
'ffmpeg' is not recognized as an internal or external command,
operable program or batch file.

do I need to install ffmpeg? If so, root level or in the venv?

Search for ffmpeg in my YouTube channel. There is installation guide
It need to be installed globally in Windows

ok

great! all working, just wondered how to extract the files into faces folder after this error:
Traceback (most recent call last):
File "D:\ai\StableAnimator\inference_basic.py", line 253, in
face_model = FaceModel()
^^^^^^^^^^^
File "D:\ai\StableAnimator\animation\modules\face_model.py", line 11, in init
self.app = FaceAnalysis(
^^^^^^^^^^^^^
File "D:\ai\StableAnimator\venv\Lib\site-packages\insightface\app\face_analysis.py", line 43, in init
assert 'detection' in self.models
^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

You don't need to extract faces. That is required only for training the model.
Is the inference not working?

If you are facing problem refer this
https://github.com/Francis-Rings/StableAnimator/issues/22

all but the inference is working. This the error:
D:\ai\StableAnimator>venv\scripts\activate
(venv) D:\ai\StableAnimator>command_basic_infer.bat
(venv) D:\ai\StableAnimator>set CUDA_VISIBLE_DEVICES=0
(venv) D:\ai\StableAnimator>python inference_basic.py  --pretrained_model_name_or_path="./checkpoints/stable-video-diffusion-img2vid-xt"  --output_dir="./outputs"  --validation_control_folder="./inference/animation1/poses"  --validation_image="./inference/animation1/reference.png"  --width=512  --height=512  --fps=25  --guidance_scale=3.0  --num_inference_steps=25  --posenet_model_name_or_path="./checkpoints/Animation/pose_net.pth"  --face_encoder_model_name_or_path="./checkpoints/Animation/face_encoder.pth"  --unet_model_name_or_path="./checkpoints/Animation/unet.pth"  --tile_size=16  --overlap=4  --noise_aug_strength=0.02  --frames_overlap=4  --decode_chunk_size=4  --gradient_checkpointing
D:\ai\StableAnimator\venv\Lib\site-packages\transformers\utils\generic.py:441: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(
D:\ai\StableAnimator\venv\Lib\site-packages\transformers\utils\generic.py:309: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(
D:\ai\StableAnimator\venv\Lib\site-packages\transformers\utils\generic.py:309: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree.register_pytree_node(
D:\ai\StableAnimator\venv\Lib\site-packages\albumentations_init.py:24: UserWarning: A new version of Albumentations is available: 1.4.24 (you have 1.4.22). Upgrade using: pip install -U albumentations. To disable automatic update checks, set the environment variable NO_ALBUMENTATIONS_UPDATE to 1.
check_for_updates()
Start Time: 2024-12-28 13:15:03
download_path: checkpoints\models\antelopev2
Downloading checkpoints\models\antelopev2.zip from https://github.com/deepinsight/insightface/releases/download/v0.7/antelopev2.zip...
100%|████████████████████| 352210/352210 [00:31<00:00, 11201.99KB/s]
Traceback (most recent call last):
File "D:\ai\StableAnimator\inference_basic.py", line 253, in
face_model = FaceModel()
^^^^^^^^^^^
File "D:\ai\StableAnimator\animation\modules\face_model.py", line 11, in init
self.app = FaceAnalysis(
^^^^^^^^^^^^^
File "D:\ai\StableAnimator\venv\Lib\site-packages\insightface\app\face_analysis.py", line 43, in init
assert 'detection' in self.models
^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Yeah it's the error with the original code as files do not extract correctly.
Download the files from here and put in local folder
https://huggingface.co/FrancisRing/StableAnimator/tree/main/models/antelopev2

I have the files in the StableAnimator/Models/AntelopeV2 folder already, yet it downloads them to the checkpoints folder when command_basic_infer.bat is used

Let me install again on my laptop. Will get back to you

Give me the assets you are testing with so I can quickly verify with them,

reference.zip

poses.zip

https://github.com/user-attachments/assets/dc352119-024f-432f-b3fb-611028dd0332

target.zip

Working fine for me.
It seems one of the reference image have problem. Try with fewer frames, like 20 frames in poses folder.
Also post issue in https://github.com/Francis-Rings/StableAnimator/issues with all assets
https://github.com/user-attachments/assets/80e12b76-e30c-4920-a80e-e4dcc6992570

cant play your video extraction, can you resend. Also for me even with just 19 frames it just downloads Antelope v2 and then the Error.

Right click on video and copy video address. Download the link using any download manager.

Also check the tree structure in checkpoints folder with this
C:\ai1\StableAnimator\checkpoints>tree /F
Folder PATH listing for volume Windows-SSD
Volume serial number is CE9F-A6AE
C:.
│   .gitattributes
│   config.json
│   inference.zip
│   README.md
│
├───Animation
│       face_encoder.pth
│       pose_net.pth
│       unet.pth
│
├───assets
│   ├───figures
│   │       case-17.gif
│   │       case-18.gif
│   │       case-24.gif
│   │       case-35.gif
│   │       case-42.gif
│   │       case-45.gif
│   │       case-46.gif
│   │       case-47.gif
│   │       case-5.gif
│   │       case-61.gif
│   │       framework.jpg
│   │
│   └───gif
│           case-35.gif
│           case-42.gif
│
├───DWPose
│       dw-ll_ucoco_384.onnx
│       yolox_l.onnx
│
├───models
│   └───antelopev2
│           .gitattributes
│           1k3d68.onnx
│           2d106det.onnx
│           genderage.onnx
│           glintr100.onnx
│           scrfd_10g_bnkps.onnx
│
└───stable-video-diffusion-img2vid-xt
│   .gitattributes
│   comparison.png
│   LICENSE.md
│   model_index.json
│   output_tile.gif
│   README.md
│   svd_xt.safetensors
│   svd_xt_image_decoder.safetensors
│
├───feature_extractor
│       preprocessor_config.json
│
├───image_encoder
│       config.json
│       model.fp16.safetensors
│       model.safetensors
│
├───scheduler
│       scheduler_config.json
│
├───unet
│       config.json
│       diffusion_pytorch_model.fp16.safetensors
│       diffusion_pytorch_model.safetensors
│
└───vae
config.json
diffusion_pytorch_model.fp16.safetensors
diffusion_pytorch_model.safetensors

any download manager suggestions?

I use Free Download manager

looks great, My document tree matches yours

Out of ideas. Only suggestion is to delete and install again.
Also post this issue here
https://github.com/Francis-Rings/StableAnimator/issues

ok

I will go to python 3:10:11

I don't think it has anything to do with python version.
Can you try this
Copy the antelopev2 folder from here, do not cut
checkpoints/models/antelopev2
and paste in following 2 folders
checkpoints
and
models

After above it should look like
StableAnimator/models/antelopev2/.onnx
checkpoints/models/antelopev2/.onnx
checkpoints/antelopev2/*.onnx

Also share this file here, just copy paste the content in comment
StableAnimator\animation\modules\face_model.py

re-installed from start, had to use your Triton link: https://huggingface.co/datasets/newgenai79/Windows wheels/resolve/main/TRITON/triton-3.0.0-cp311-cp311-win_amd64.whl?download=true.... now all working. I had used Francis's requirements file in my confusion. Now its working great!! Thank you again!


instantiate time too long

The phenomenon is basically the same as this problem:
https://github.com/chairfull/GodotRichTextLabel2/issues/5
This is the running time in editor:
252
198
37003
new: 0.78571428571429
ins:<PHONE_NUMBER>87302

This is the running time in export exe:
302
295
798
new: 0.97682119205298
ins: 2.64238410596026

The 145 fold time gap seriously affects the running of test projects in the editor.
The version I am using is:
Godot v4.4.dev2 - Windows 10.0.22631 - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 2080 Ti (NVIDIA; <IP_ADDRESS>33) - 12th Gen Intel(R) Core(TM) i5-12400F (12 Threads)

@chairfull  Is there a solution to this problem? Thanks

I'm going to check later if caching all the Regex stuff saves some time, but at the moment this problem is not a priority for my projects.

ok，thanks your help

I also wanted to add to this, I'm using RichTextLabel2 for floating damage.
Instantiating takes about 200ms for each label.

@aiaimimi0920 @SaltyByte one expensive feature is font_auto_setup which might be generating 3 fonts each time.
In your instanced scene try setting font_auto_setup = false, clearing Theme Overides > Fonts > Bold, Italics, Bold Italics, and then saving.
I'll try rewriting this later to save the fonts to disk.

Caching the RegEx didn't seem to do anything.
I tried setting set_bbcode() and _set_bbcode() to do nothing, and even then it was still slow to instantiate. So that implies it's something to do with the editor.
 Which explains why built games don't have the problem.
Try adding
func _get_property_list():
    if OS.has_feature("editor"):
        return []

Just want to chime in here, this is still an issue for me, and it compounds the more things you need to instantiate. I have for example an inventory view, and each item has its own name label, I get several seconds of thread lock trying to open the view. I absolutely love this plugin and would love to see this addressed.

Hello @chairfull,
I've had my eye on godot MRs mentioning this instantiation issue. One contributor seems to think that this MR might help with this issue: https://github.com/godotengine/godot/pull/98301
I noticed that this is merged in the main godot branch, would be good to test to see if this does help or not. I'm unable to test at the moment, unfortunately but thought I'd post here in case someone else is in a good spot to check it out


Revert "macos: use posix_spawn instead of fork"

This reverts commit 39968db6434f16f9fbd3c78f6c7392fd7ae9074e.
This commit caused a number of failures in the Node.js test suite
while attempting to release libuv 1.41.0.
Node.js integration CI: https://ci.nodejs.org/view/libuv/job/libuv-in-node/175/. The previously observed macOS failures seem to be fixed by this revert.

A rare green libuv CI run 😄 : https://ci.nodejs.org/view/libuv/job/libuv-test-commit/2125/

Some day I'm hoping we could install rr on these Jenkins workers, and then any linux failure would be trivial to reproduce, diagnose, and fix. We've been using it on our buildbots for JuliaLang for the past couple of months, and it has helped enormously at driving down our rare failure rate. The author also has some advance integration tooling for working with javascript, which might be interesting to the nodejs folks too. I don't really know who to contact for installing and setting this up however.

If you open an issue in https://github.com/nodejs/build they should be able to help (assuming they think it's a good idea). cc: @richardlau

Assuming that it is https://github.com/rr-debugger/rr that looks to be Linux only and the issue with this one was a broken macOS CI?
Feel free to open an issue in build if you feel rr would be useful -- it would be helpful to also explain how it would be used (e.g. would we need to upload new artifacts (the recordings) and how much space those are likely to need) bearing in mind that most users who are able to start jobs in Jenkins don't have permissions to log into the machines themselves (temporary access can be granted on request).
If it's Linux another option would be GitHub actions.

@cjihrig just catching up on this, can you point out which tests in Node.js suite were failing ?
Electron backported the posix_spawn change to its stable release lines last week, would be good to know why it should be reverted. Thanks!

Here are the failures: https://ci.nodejs.org/job/node-test-commit-osx/38851/. Please note that the CI results are not persisted permanently, so I don't know how much longer that link will be valid.
For posterity, the failures are:
test.parallel/test-child-process-cwd
test.parallel/test-child-process-exec-error
test.parallel/test-child-process-promisified
test.parallel/test-child-process-spawn-error
test.parallel/test-child-process-spawnsync-validation-errors
test.parallel/test-heapsnapshot-near-heap-limit-worker
test.parallel/test-child-process-exec-error
test.parallel/test-child-process-promisified
test.parallel/test-child-process-spawn-error

test-heapsnapshot-near-heap-limit-worker may not be related though.

Looked into the failing tests there were 3 different types, summarizing what I have found so far.

The following tests were failing when they hit a runtime errors but libuv was closing the pipe that didn't allow for further processing in https://github.com/nodejs/node/blob/master/lib/internal/child_process.js#L444-L456

test.parallel/test-child-process-cwd
test.parallel/test-child-process-exec-error
test.parallel/test-child-process-promisified
test.parallel/test-child-process-spawn-error

I tried to match the previous behavior for these cases and it seems to fix the above tests
diff --git a/deps/uv/src/unix/process.c b/deps/uv/src/unix/process.c
index b4e44b049f..abc83e24c9 100644
--- a/deps/uv/src/unix/process.c
+++ b/deps/uv/src/unix/process.c
@@ -970,7 +970,12 @@ int uv_spawn(uv_loop_t* loop,

   /* Spawn the child */
   err = uv__spawn_and_init_child(options, stdio_count, pipes, signal_pipe[1], &pid);
-  if (err != 0) {
+  if (err != 0 &&
+      !(err == UV_EACCES ||
+       err == UV_EAGAIN ||
+       err == UV_EMFILE ||
+       err == UV_ENFILE ||
+       err == UV_ENOENT)) {
     uv_rwlock_wrunlock(&loop->cloexec_lock);
     uv__close(signal_pipe[0]);
     uv__close(signal_pipe[1]);
@@ -982,7 +987,7 @@ int uv_spawn(uv_loop_t* loop,
   uv__close(signal_pipe[1]);

   process->status = 0;
-  exec_errorno = 0;
+  exec_errorno = err;
   do
     r = read(signal_pipe[0], &exec_errorno, sizeof(exec_errorno));
   while (r == -1 && errno == EINTR);

test.parallel/test-child-process-stdio was failing with EINTR at the posix_spawn call, I don't know what causes this but adding a retry logic fixes this case.

diff --git a/deps/uv/src/unix/process.c b/deps/uv/src/unix/process.c
index b4e44b049f..241272a806 100644
--- a/deps/uv/src/unix/process.c
+++ b/deps/uv/src/unix/process.c
@@ -772,7 +772,11 @@ int uv__spawn_resolve_and_spawn(const uv_process_options_t* options,
     /* Try to spawn the new process file. If it fails with ENOENT, the
      * new process file is not in this PATH entry, continue with the next
      * PATH entry. */
-    err = posix_spawn(pid, b, actions, attrs, options->args, env);
+    int max_retries = 4;
+    int retries = 0;
+    do
+      err = posix_spawn(pid, b, actions, attrs, options->args, env);
+    while (err == EINTR && ++retries < max_retries);

test.parallel/test-child-process-spawnsync-validation-errors this is another interesting one, it was failing with EPERM whenever a test tried to set uid or gid for the child process. A minimal repro at https://gist.github.com/deepak1556/7b02c18eeede9cdcd5da55439e909e1b also validates this. Looking at the posix_spawn code, whenever posix_cred_info is filled by posix_spawnattr_set_uid_np, posix_spawnattr_set_gid_np, posix_spawnattr_set_groups_np it seems to trigger the following check

//https://github.com/apple/darwin-xnu/blob/8f02f2a044b9bb1ad951987ef5bab20ec9486310/bsd/kern/kern_exec.c#L3231

if (!kauth_cred_issuser(kauth_cred_get())) {
				error = EPERM;
				goto bad;
}

and kauth_cred_issuer seems to do the following check
// https://github.com/apple/darwin-xnu/blob/8f02f2a044b9bb1ad951987ef5bab20ec9486310/bsd/kern/kern_credential.c#L3500
/*
 * kauth_cred_issuser
 *
 * Description:	Fast replacement for issuser()
 *
 * Parameters:	cred				Credential to check for super
 *						user privileges
 *
 * Returns:	0				Not super user
 *		!0				Is super user
 *
 * Notes:	This function uses a magic number which is not a manifest
 *		constant; this is bad practice.
 */

Does this mean a super user needs to call the process triggering posix_spawn to set UID/GID bits ?

Yes, setuid / setgid should require being root, uid, or euid already, or fail with EPERM.

posix_spawn is not supposed to return EINTR, but if it was spawning multiple processes, we're probably getting many SIGCHLD notifications, so I wouldn't be surprised if we did get them here

Yeah, rr is a wish list feature, but still a bit hard to set up for CI, so while it would be great, it isn't something I'm fully prepared yet to champion. I just mention it because it makes (linux) debugging so much easier for particularly types of bugs, so I think that everyone should learn about it!
In libuv, there are still some frequent linux failures which keep it from being consistently green, though I'd fixed many of them this past year, so it is sometimes green. Unfortunately using rr also depends on a particular CPU feature, and many VM hosts don't enable that feature, including probably github actions (https://github.com/rr-debugger/rr/issues/2402#issuecomment-557704023). For configuration, yes, those would need to be temporarily made available somewhere for download. They're fairly compact, as they only need to include a copy of all files read and a bit of metadata.

Yes, setuid / setgid should require being root, uid, or euid already, or fail with EPERM.

The test here https://github.com/nodejs/node/blob/master/test/parallel/test-child-process-spawnsync-validation-errors.js#L60 is trying to set uid of parent process, should that fail with EPERM ?

but if it was spawning multiple processes, we're probably getting many SIGCHLD notifications, so I wouldn't be surprised if we did get them here

Yup that seems to be the case as the relevant test cases https://github.com/nodejs/node/blob/master/test/parallel/test-child-process-stdio.js in Node.js involve the PATH resolution stage in the posix_spawn implementation.

Unfortunate that jpcanepa is on vacation now, but I expect he'll dig into the findings soon after he's back. And better to get the release done. Sorry it delayed it so much without effect!

I'm back. I see @vtjnash has done a pretty good rundown already, but I'll try look on my end too.

For EINTR, I notice that is observed elsewhere also (https://reviews.llvm.org/D61096), though it potentially also should go away with https://github.com/libuv/libuv/pull/3251 (which blocks signals)


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2300 ms

Resolved: Bofrost.at performance has improved in 833c931.


Action Edit and Delete Verification Tests

New Test Suite to Verify Edit and Delete Actions
Created Popup helper to deal with the various confirmation and warning popups

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

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added Polish package

Awesome! I’ll take a look tonight.

Reply to this email directly, view it on GitHub
https://github.com/Jason3S/vscode-cspell-dict-extensions/pull/6, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADkR6bTUasbSpLi1pqvGDlfD0VF6DYcsks5tBBivgaJpZM4REbkp
.

Published: https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker-polish


Updating Kubernetes Basics page

Hyphenating open-source since it precedes a noun

@ankita-shirodkar Please sign the CLA. 😊

https://github.com/kubernetes/website/pull/32541#issuecomment-1079736196
https://api.easycla.lfx.linuxfoundation.org/v2/repository-provider/github/sign/18706487/51478266/32541/#/?version=2

Although open-source and open source are both correct, the Cloud Native Computing Foundation does not use a hyphen
See the CNCF Style Guide:
https://github.com/cncf/foundation/blob/main/style-guide.md

However, the Open Source Initiative, established in 1998, does not use a hyphen in "open source." Likewise, the Cloud Native Computing Foundation does not use a hyphen in "cloud native" in its name. And the IEEE Computer Society Style Guide, which is maintained by the 72-year-old Computer Society, lists "open source" as the preferred usage.

Thank you for making this PR but I'm going to close the PR to align with the CNCF's style guide
/close


Ubuntu 20.04 fails to soft-reboot after install

Describe the issue
Similar to #3320 and what @ivorscott described. After the Ubuntu 20.04 LTS Desktop install completes, you're prompted to reboot. However, after pressing reboot you're left at a black screen which will remain until the virtual machine is cold powered off/rebooted.
This also happens with Ubuntu Server 20.04, but this one is a blank screen with a blinking cursor.
Ubuntu 20.04 will boot fine after a cold boot, and I'm able to reboot from the installed disk. Maybe CD boot related issue?
Configuration

UTM Version: 2.4.1
OS Version: macOS Monterey 12.0.1
Intel or Apple Silicon? Apple Silicon M1 Pro

Crash log
UTM did not crash
Debug log
Ubuntu 20.04 Desktop
debug.log
Ubuntu 20.04 Server
debug2.log
Upload VM
Ubuntu 20.04 Desktop
config.plist.txt
Ubuntu 20.04 Server
config.plist.txt

I just observed the same issue with Ubuntu 21.10 ARM. The installer goes to a blank screen with blinking cursor after selecting "Reboot now". Have to close and start the VM again to get it to boot.

Yeah that's what I'm experiencing with 20.04

facing the same issue

Same when installing 22.04 server.
Configuration

UTM Version: 3.0.4
OS Version: macOS Monterey 12.2
Apple Silicon M1 Air

I have experienced this as well on all three builds. To me the issue appears to be with the USB drive not being dismounted/ejected on the soft reboot after install. Not sure if that is a bug in the ubiquity/subiquity installer scripts or with UTM.
Note that if you are attempting a LUKS LVM encrypted install, you may also need to redirect the passphrase prompt to the graphics console--see #3555.

Running into the same issue here.

 First time setting up a VM and first time on Linux!!! Thanks

After installation is finished and you have selected Reboot Now:
1.  Either

   * Move USB Drive down OR
     <img alt="drives" width="797" src="https://user-images.githubusercontent.com/20233085/191200654-c8165272-0e8b-4a89-b91a-7e0a8a09fb00.png">
   * Delete USB Drive entirely

3. Start VM

This is the way.. hopefully this gets documented. If it's documented already somewhere, it should likely be more prominent.

After installation is finished and you have selected Reboot Now:

Shut down the VM

Either

Move USB Drive down OR

Delete USB Drive entirely

Start VM

This also helped in my case using: ubuntu-22.04.2-live-server-arm64.iso
Thanks!

 This totally worked! 🙏


ARROW-10290: [C++] List POP_BACK is not available in older CMake versions

@github-actions crossbow submit centos-7-amd64 debian-stretch-amd64

My bad, thank you for fixing this!

No worries, it's more of a continuous integration issue to cover most of the CMake configurations.


I made a new board, but cannot compile the project

Hello hackers!
I just built an improved board for this inverter, with simpler layout, and fewer components, and just finished assembling it today!

However, when I try to compile the stm32 project, I cannot do so in the stm32cubeIDE.
Since there is no .project file in the repository, I attempt to create my own from the .IOC file, but am encountering errors of all kinds.
Do we still have the .project file? Or, a makefile?

Edit: My friend and I did a bit of hacking and put together a makefile for arm-none-eabi-gcc
https://github.com/gigaj0ule/gti/blob/main/Makefile
However, I am not sure yet what compiler flags are appropriate to add. If someone is able to dump the makefile generated by stm32cubeIDE, then I can cross-reference these flags and add them to this standalone makefile

Hi
I also modify this project according to myself and I do the programming in Windows in ARM Keil uVision 5.38 and I have no problem with the compilation.

Here is the code set up and compiled in KEIL ARM, hex files can be found in STM32CubeIDE_Code\MDK-ARM\GTI_v5
STM32CubeIDE_Code.zip

I use this program for debugging which is better than debugging in Keil
https://github.com/klonyyy/STMViewer

thank you :-)
by any chance, are you able to see the terminal output when compiling?
compiler flags should be included in the debug spew, and although the MDK flags aren’t all going to be the same as GCC ones, I may be able to cross reference them and add to the makefile.
i think the debug output of STM32CUBEIDE should be identical to arm-none-eabi, since it uses GCC internally

I also tried to build the project in STM32CubeIDE and the compilation went without any problems.


set parameters

Hi Vivek,
I am using tracktor to track fish. Anyhow the code often confuses the fish with some dark wall reflections and I was wondering how you go about calibrating the parameters block_size and scaling. Min and max area is very clear to me.
Here is a screenshot showing the problem. I currently run the code with
-> block_size = 31
-> offset = 50
Thanks for your help.
Best
Robert

Dear Robert,
You'd need better lighing in your video recordings. Shadows are hard to deal withs since they provide similar contrast with the background. You could mask out the edges where the shadows are and try again but if you haven't gone all the way, I'd suggest refilming with more even lighting.
CHeers!
Vivek


autocomplete for selection sets

I'm following Andrew Mead's modern GraphQL course and I fell in love with the autocomplete and errors inside GraphQL playground.
Using prisma-binding now that autocomplete is no longer there sadly.
I managed to get autocomplete working when choosing the query/mutation/subscription and the optional arguments for that query/mutation/subscription,
but not for the selection set.
✅ 	After an operation:

✅ 	Inside the arguments for the operation:

❗, but ✅ Inside the selection set (normal string):

❗ Inside the selection set (tagged template literal with graphql-tag):

Using https://github.com/prisma/vscode-graphql as graphQL extension for VSCode, this works great in .graphql and .prisma files.
Is there a way to get autocomplete(/errors) working inside the selection set passed to prisma-binding?
Thanks so much for the prisma-ecosystem, it's all pretty new to me, but wow, it's great so far!

Hello, is there any way to get the autocomplete? I think it's a blocking feature for prisma-binding to be using with info arguments.

+1


Cannot install Invoke version 2.3.0. Installer closes with out completing the installation[bug]:

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Windows
GPU
cuda
VRAM
24 GB
What happened?
Cannot install Invoke version 2.3.0.
The automated installer closes without completing the installation procedure.
I had 2.2.5 without any issues
Screenshots
** DOWNLOADING WEIGHTS **
stable-diffusion-1.5...
safety_checker\model.safetensors not found
Fetching 15 files: 100%|█████████████████████████████████████████████████████████████| 15/15 [00:00<00:00, 1905.06it/s]
A problem occurred during initialization.
The error was: "torch.cuda.is_available() should be True but is False. xformers' memory efficient attention is only available for GPU "
Traceback (most recent call last):
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\config\configure_invokeai.py", line 995, in main
errors.add(download_weights(opt))
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\config\configure_invokeai.py", line 767, in download_weights
successfully_downloaded = download_weight_datasets(
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\config\configure_invokeai.py", line 381, in download_weight_datasets
successful[mod] = _download_repo_or_file(
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\config\configure_invokeai.py", line 394, in _download_repo_or_file
path = _download_diffusion_weights(mconfig, access_token, precision=precision)
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\config\configure_invokeai.py", line 427, in _download_diffusion_weights
path = download_from_hf(
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\config\configure_invokeai.py", line 638, in download_from_hf
model = model_class.from_pretrained(
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 760, in from_pretrained
model = pipeline_class(**init_kwargs)
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\generator\diffusers_pipeline.py", line 305, in init
self._enable_memory_efficient_attention()
File "C:\SD\invokeai.venv\Lib\site-packages\ldm\invoke\generator\diffusers_pipeline.py", line 313, in _enable_memory_efficient_attention
self.enable_xformers_memory_efficient_attention()
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 875, in enable_xformers_memory_efficient_attention
self.set_use_memory_efficient_attention_xformers(True, attention_op)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 900, in set_use_memory_efficient_attention_xformers
fn_recursive_set_mem_eff(module)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 891, in fn_recursive_set_mem_eff
module.set_use_memory_efficient_attention_xformers(valid, attention_op)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 208, in set_use_memory_efficient_attention_xformers
fn_recursive_set_mem_eff(module)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 204, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 204, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 204, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\models\modeling_utils.py", line 201, in fn_recursive_set_mem_eff
module.set_use_memory_efficient_attention_xformers(valid, attention_op)
File "C:\SD\invokeai.venv\Lib\site-packages\diffusers\models\attention.py", line 104, in set_use_memory_efficient_attention_xformers
raise ValueError(
ValueError: torch.cuda.is_available() should be True but is False. xformers' memory efficient attention is only available for GPU
= was unexpected at this time.
Additional context
There is a warning during the installation that is maybe related to this:
WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 1.13.1+cu117 with CUDA 1107 (you have 1.13.1+cpu)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
** DOWNLOADING DIFFUSION WEIGHTS **
Then the installer closes abruptly
Contact Details
No response

I also tried the following

`for Anyone having the issue "xformers pytorch 1.13.1+cpu instead 1.13.1+cu117" after installing 2.3.0rcx.x or suddenly invoke is using the cpu (WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 1.13.1+cu117 with CUDA 1107 (you have 1.13.1+cpu))
Start invoke and choose "Developer Console" (number 6)
paste these comands: pip uninstall torch (uninstalls pytorch cpu version)
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117 (this can take a few minutes)
after that close the Terminal and restart Invoke
There will be a new error "Triton not found" or similar (triton is just optimization ~ 5-10% i think, but not available on pip for windows, only linux) it should still work fine `
found on discord by user Dschogo#0604

This helped me solve the problem but the web UI is loading a blank screen now

I found a thread that mentions this. I'll close this and post it there

I found a thread that mentions this. I'll close this and post it there

@BigBlueGX could you share the link to this tread?


Module import during build process

Hello 👋 ,
I can't use gsap plugin like morphSVG. It throws me an error like this one
[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/username/Documents/vite-project/node_modules/gsap/MorphSVGPlugin' imported from /Users/username/Documents/vite-project/.vite-ssg-temp/main.mjs
Did you mean to import gsap/MorphSVGPlugin.js?
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:416:11)
    at moduleResolve (node:internal/modules/esm/resolve:932:10)
    at defaultResolve (node:internal/modules/esm/resolve:1044:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'

I am importing the module like this in my JS file
import gsap from 'gsap';
import MorphSVGPlugin from "gsap/MorphSVGPlugin";
gsap.registerPlugin(MorphSVGPlugin);

of course I have the premium package activated in my package.json and I am running the last version of the plugin:
"dependencies": {
    "gsap": "npm<EMAIL_ADDRESS>     ...
  },
  "devDependencies": {
    "vite-ssg": "^0.20.1",
  }

if you already encountered the same problem or if you have an idea, please let me know !
Thank you very much in advance!! 🙏
Benjamin

you can also use gsap dist, without transpile gsap modules
import { gsap } from 'gsap'
import { PixiPlugin } from 'gsap/dist/PixiPlugin'
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'

no need to add .js if you already using vite . resolve extensions
maybe optimizeDeps.include can help you solve it problem (don't tested).
https://greensock.com/forums/topic/28030-vite-and-gsap-private-npm-plugins-issue-on-vite-repo/

Hello @userquin, @sadeghbarati !
Thank you both for your responses !! 🙂 Finally I found that the problem came from a plugin I am using vite-svg-loader. In my vite.config.js file, I defined my import config to raw which was causing a massive bug... so I switched back to the component mode (default mode) and I don't have the issue now ! I keep your responses in case of problems !
export default defineConfig({
  plugins: [
    vue(),
    svgLoader({
      defaultImport: 'component', // I was using 'raw'
      svgo: false // I am disabling svgo to keep my path ids, classes...
    })
  ],
  ...
})

Thank you again for your time !! 🙏
Benjamin

Hello @userquin, @sadeghbarati,
I think I claimed victory too soon ... I have the problem right now again ... which honestly I don't understand 😢 I tried your suggestions and I tried some solutions posted on GSAP forum like:
import { gsap, MorphSVGPlugin } from 'gsap/all' // or 'gsap/all.js'
gsap.registerPlugin(MorphSVGPlugin)

If you have some magic trick to propose it would be great 😌

@BenjaminOddou provide a minimal repro on gh or stackblitz

for codsandbox you can add box keywork like
https://githubbox.com/BenjaminOddou/minimal-repo

hello,
I created this repo : https://stackblitz.com/edit/vue-ylbnq5?file=vite.config.js

@BenjaminOddou cannot install dependencies:
F:\work\projects\quini\GitHub\issue-repro\vite-ssg-263>npm install
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@gsap%2fshockingly - Not found
npm ERR! 404
npm ERR! 404  '<EMAIL_ADDRESS>is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR!      C:\Users\userquin\AppData\Local\npm-cache\_logs\2022-06-24T20_34_43_833Z-debug.log

@BenjaminOddou are you gsap club member ?
head into this link https://greensock.com/docs/v3/Installation#NPM
and search
Private registry

Hello @userquin, @sadeghbarati,
indeed I am a gsap club member. I updated my example with an "open" plugin (ScrolltoPlugin). You can have it with the regular version of GSAP.
You can fork now my gitHub repo : https://github.com/BenjaminOddou/vite-ssg-bug-gsap_modules
🙂

for SSR projects better to use umd or cjs format files, I believe so so

import { gsap } from 'gsap' // refers to dist/gsap.js => compiled code file
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger' // it's better not to use gsap/all just import what you need

For other SSR projects like Nuxt and Nextjs you may see normal gsap imports like

import { gsap } from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'

They use a specific transpile config to transfer gsap source code to compiled one. I do not know if this is correct or not, but I believe some npm packages only have a pre-compiled code format.
Nuxt 2
Nuxt 3
Nextjs

Aliasing libraries Which is beautifully explained

For vite you can manually add aliases or create aliases with checking gsap node_module directory and map directories
resolve: {
  alias: {
    'gsap/ScrollTrigger': `${path.resolve(__dirname, 'node_modules/gsap/dist/ScrollTrigger.js')}/`,
  },
},

Hello @sadeghbarati,
I tried to alias like this :
resolve: {
  alias: {
    'gsap/MorphSVGPlugin': `${path.resolve(__dirname, 'node_modules/gsap/dist/MorphSVGPlugin.js')}/`,
  },
},

but I still have the same error during the building process :
><EMAIL_ADDRESS>prod
> vite-ssg build

[vite-ssg] Build for client...
vite v2.9.12 building for production...
✓ 60 modules transformed.
dist/index.html                                2.88 KiB
dist/manifest.webmanifest                      0.80 KiB
dist/ssr-manifest.json                         2.20 KiB
dist/assets/virtual_pwa-register.5acef10f.js   5.53 KiB / gzip: 2.31 KiB
dist/assets/app.1b3f18ec.css                   11.07 KiB / gzip: 2.75 KiB
dist/assets/app.e47a34f9.js                    220.08 KiB / gzip: 87.79 KiB

✨ [vite-plugin-compression]:algorithm=brotliCompress - compressed file successfully:
dist//Users/user/Documents/vite-project/index.html.br                                2.88kb / brotliCompress: 0.78kb
dist//Users/user/Documents/vite-project/assets/virtual_pwa-register.5acef10f.js.br   5.53kb / brotliCompress: 2.04kb
dist//Users/user/Documents/vite-project/ssr-manifest.json.br                         2.20kb / brotliCompress: 0.54kb
dist//Users/user/Documents/vite-project/assets/app.1b3f18ec.css.br                   11.07kb / brotliCompress: 2.39kb
dist//Users/user/Documents/vite-project/assets/app.e47a34f9.js.br                    220.08kb / brotliCompress: 75.88kb

PWA v0.12.0
mode      generateSW
precache  7 entries (239.55 KiB)
files generated
  dist/sw.js.map
  dist/sw.js
  dist/workbox-c1760cce.js.map
  dist/workbox-c1760cce.js

[vite-ssg] Build for server...
vite v2.9.12 building SSR bundle for production...
✓ 28 modules transformed.
.vite-ssg-temp/manifest.webmanifest        0.80 KiB
.vite-ssg-temp/main.mjs                    131.06 KiB
.vite-ssg-temp/assets/style.7a19acc0.css   49.63 KiB

✨ [vite-plugin-compression]:algorithm=brotliCompress - compressed file successfully:
.vite-ssg-temp/assets/style.7a19acc0.css.br   49.63kb / brotliCompress: 3.84kb
.vite-ssg-temp/main.mjs.br                    131.06kb / brotliCompress: 24.60kb

[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/user/Documents/vite-project/node_modules/gsap/MorphSVGPlugin' imported from /Users/user/Documents/vite-project/.vite-ssg-temp/main.mjs
Did you mean to import gsap/MorphSVGPlugin.js?
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:416:11)
    at moduleResolve (node:internal/modules/esm/resolve:932:10)
    at defaultResolve (node:internal/modules/esm/resolve:1044:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Not sure what to do to solve this problem 😅

@BenjaminOddou Vite will not load the temp main.mjs module, it will be loaded directly from node, so you cannot use the alias, you should use it via the ES Modules from my comment: https://github.com/antfu/vite-ssg/issues/263#issuecomment-1164701957
https://github.com/antfu/vite-ssg/blob/main/src/node/build.ts#L114

@userquin, when setting in my vite.config.js :
build: {
    transpile: ['gsap'],
    ...
  },

and importing in my js file :
import gsap from 'gsap'
import MorphSVGPlugin from 'gsap/MorphSVGPlugin.js'
gsap.registerPlugin(MorphSVGPlugin)

and setting in the package.json file :
{
  "type": "module",
}

I have other errors popping. Not sure that this is the good method to import gsap modules. @sadeghbarati commented on https://github.com/antfu/vite-ssg/issues/263#issuecomment-1166506409 and advised not to use the transpile during build.

transpile option is not exist in vite.config
I just explain that only frameworks (Nuxt, Nextjs), I mentioned above have this capability (transpile esm)

sorry for misunderstanding I just wanted to explain what I realized

when you are using (vite-ssg) you have to import like without alias
import { gsap } from 'gsap'
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'

if (typeof window !== "undefined") {
  gsap.registerPlugin(ScrollTrigger);
}
// or register plugin in vue mounted

@sadeghbarati @BenjaminOddou if gsap and/or ScrollTrigger is using window/navigation inside, the static import must be converted into dynamic import, all code in the main module will go to the main SSR build and will fail when loading it to generate the SSG (if not using jsdom, to enable just add mock: true on ssgOptions):
import { gsap } from 'gsap'
onMounted(async () => {
  consy { ScrollTrigger } = await import('gsap/dist/ScrollTrigger')
  gsap.registerPlugin(ScrollTrigger);
})

or just move that logic to a custom module and use it via dynamic import:
// main.ts
if (typeof window !== "undefined") {
  import('gsap-loader')
}
....

// gsap-loader.ts
import { gsap } from 'gsap'
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'

gsap.registerPlugin(ScrollTrigger);

The logic being vite-ssg is the following, there will be 2 + N builds:

1 client build: using Vite to build the client
1 SSR build: using Vite to build the SSR main module (in the temp folder), can be esm or cjs (this module is used for SSG and will fail if there is some static import that uses window/navigator: you can add mock: true to mock the window object via jsdom)
N SSG build (1 per page/route): using the SSR main module from previous step to generate the SSG for each page/route

The code in the app is shared between all 2 + N builds, that's, the code will be the same but with different contexts.

@userquin I tried your suggestions without success 🧐. The first suggestion (wait till it's mounted) gives me this error :
[vite-ssg] An internal error occurred.
[vite-ssg] Please report an issue, if none already exists: https://github.com/antfu/vite-ssg/issues
file:///Users/user/Documents/vite-project/.vite-ssg-temp/main.mjs:263
gsap.timeline();
     ^

TypeError: gsap.timeline is not a function
    at file:///Users/user/Documents/vite-project/.vite-ssg-temp/main.mjs:263:6
    at ModuleJob.run (node:internal/modules/esm/module_job:185:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)
    at async build (file:///Users/user/Documents/vite-project/node_modules/vite-ssg/dist/chunks/build.mjs:171:87)
    at async Object.handler (file:///Users/user/Documents/vite-project/node_modules/vite-ssg/dist/node/cli.mjs:20:3)

this is weird as gsap.timeline() function is defined in the general gsap package 😅
and the second suggestion (using a module with gsap-loader.ts) throw me the same error I already have : Cannot find module....
Note : I tried with and without the below option in my vite.config.js file :
  ssgOptions: {
    mock: true,
    ...
  },

Did you succeed to make it work on your side ?

@BenjaminOddou about cannot find module, add the relative path ./ prefix:
// main.ts
if (typeof window !== "undefined") {
  import('./gsap-loader')
}
....

@BenjaminOddou use static import using the dist folder: import xxxx from 'gsap/dist/MorphSVGPlugin or just try adding extension ``import xxxx from 'gsap/MorphSVGPlugin.js`.

Sorry for the late reply. Here's the solution that's working for me 😄

import gsap from 'gsap'
import SplitText from 'gsap/SplitText'
import ScrollSmoother from 'gsap/ScrollSmoother'
import ScrollTrigger from 'gsap/ScrollTrigger'

if (process.client) {
  gsap.registerPlugin(SplitText, ScrollSmoother, ScrollTrigger)
}


Vote/election related docs and minor refactorings

Vote/election related doxygen docs, encapsulation, more consistent naming, typed durations/chrono literals, and some minor simplifications.

Going to break this up to avoid constant rebasing


Add DbtDepsOperator to DbtDag and DbtTaskGroup

The extract DAG for the mrr-playbook example was failing after initializing the cosmos-dev sandbox. This is because mrr-playbook has a packages.yml file with defined dependencies. After creating the DbtDepsOperator and discussing with @jlaneve, we decided that there should be a DbtDepsOperator generated at as the first task of any DbtDag or DbtTaskGroup class (if a packages.yml exists in that project).
We'll work on this after this is merged.

Customers can put this before the DbtTaskGroup parser to install deps as needed. Not worth adding to the parser at this time.


lecture04 chatclient (Ruslan Bizhanov)

cashe has been done at the lesson (i wrote to telegram), chatclient has been done at home (Ruslan Bizhanov)

почуму-то не подцепились тесты


room listeners not being fired

hi, first attempts with colyseus and colyseus.js.. using the simple chat_room example, the server is printing the join and leave events, but in client side I got the following warning in the console:
colyseus.js: trying to send data while in 0 state
and the join callback is never fired.
client side code:
  var cclient = new Colyseus.Client("ws://localhost:3553");
   var room = cclient.join("main_region");
   room.onJoin.add(() => console.log("joined successfully!"));

output from the server:
[nodemon] starting `node server.js`
Listening on http://localhost:3553
Sy0END-PW joined ChatRoom!
Sy0END-PW left ChatRoom
ryW84wbDZ joined ChatRoom!
ryW84wbDZ left ChatRoom

server side code is just the same as in the chat_room example.
perhaps I am missing something?

Hey @cesarpachon,
Which version of colyseus and colyseus.js are you using?
I recommend using the latest alpha versions:

<EMAIL_ADDRESS><EMAIL_ADDRESS>
They're "alpha" just because the Unity3D client is not ready yet.
Let me know if you find any problem.

hello, thanks for your reply!
now I got a repetitive error in the console saying the port is in use, doesn't matter what number I choose (original value: port = process.env.PORT || 3553). I am working in Ubuntu.
about the versioning:
I installed colyseus through "npm  install colyseus" and  package.json said it was ^0.4.18. If I put<EMAIL_ADDRESS>it installs the alpha.12 version. without the  "^" I got the alpha.9..
for the client, I just dowloaded the colyseus.js raw file right from github, as through npm I was not able to find the transpiled version in node_modules folder.  so checking the package json it says "0.7.0-alpha.5" in master branch so that one was ok.

Hi @cesarpachon,
The issue is that you're listening to httpServer on server-side. Migrating from 0.4 to 0.5, you now need to listen to gameServer instead. Read the following for more info:
https://github.com/gamestdio/colyseus/blob/master/MIGRATING.md#migrating-from-04-to-05

@ScottyFillups thanks for your response.
@cesarpachon I suggest upgrading to the latest versions of the server (0.5.6) and client (0.7.3). Feel free to reopen this issue if you have any questions!


"Both" shows number of windows, not the total in all windows

Can confirm this issue for Opera 52.0 as of May 2018.

@1j01 which browser and version are you in?
I am planning an update. I will test this bug. Thank you for reporting it.

I'm having a hard time replicating this bug. @1j01 @adigitoleo Would you mind providing a screenshot of miscounted badge, your settings page, and what the popup looks like when clicking the icon? Thanks!

Okay, looking at the code, it obviously wouldn't give the number of windows, except by coincidence.
It was the 4 character limit.

@1j01 Ah! I am probably going to remove that feature; it is the cause of a lot of trouble.

Is it possible to set a dynamic SVG as the icon instead? It would be really easy to lay it out then where it can show both numbers fully, just with one number above the other (or maybe get a bit fancy with a solidus).

I would accept pull requests for that ability. Unfortunately, I don't have time to develop it at the moment. I would also be concerned with how much more memory would be required for Firefox to store an unique SVG for every single tab.

@1j01 That looks very nice!
I'm still concerned about the amount of memory required to have a unique ImageData object for each tab. @dev-rke do you have any insight into this? I also wonder how this will work with retina and higher resolution displays at higher lower DPIs. Canvas makes a bitmap image, not a vector like an SVG. So, a higher resolution image requires a larger image file size.


python312Packages.django-silk: 5.2.0 -> 5.3.0

Routine bump
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 353538

x86_64-linux

:white_check_mark: 4 packages built:

python311Packages.django-silk
python311Packages.django-silk.dist
python312Packages.django-silk
python312Packages.django-silk.dist


how to execute JS function

I want to execute js function in VUE, how should I do? Thanks!

These links may help.
Guide
Demo
Controller class
Html/Javascript


Individuals: Map not connected to table

Changes made in the table (e.g., selecting samples) don’t show on the map. Both should update based on each other’s changes to keep them synced.

the map is updated if you go to another page and then back, but this should not be required


Input Scaling bug when Viewport scaling isn't 1x in Google Chrome 64

I'm having an issue similar to #87. In my application I rely on meta viewport scaling. This is nice because I can get arbitrary scaling levels to get exactly the scale I need without the need to keep track of the ratio in code. Works great with iOS and Android. Why my issue my differ from #87 is that I don't explicitly scale the game world.
The problem is that if I scale the viewport by, say, 2.5x, then I need to scale the input by 1 / 2.5. If I don't scale the input then clicks don't register in the same place. This bug only seems affects Google Chrome 64. It doesn't affect Mobile Safari, Firefox, or Google Chrome <= 63.
I'm seeing the bug with Phaser CE v2.9.4 with either WebGL or 2D.
While experimenting and trying to reproduce the error with raw canvas (to see if the issue is outside of Phaser), I did note that canvas onclick events between the two versions of Chrome are identical. The global screen object is the same as well.
Currently I use the following hack to fix the issue:
const SIZE_OF_TILE = 16;
const SCREEN_WIDTH_IN_TILES = 11;
// How I normally dynamically scale the viewport
function scaleViewport() {
  const scale = (window.innerWidth / SIZE_OF_TILE / SCREEN_WIDTH_IN_TILES).toFixed(2);
  console.log(`Setting viewport scale to ${scale}`);

  // Note that bug will happen if either viewport is scaled dynamically like below or with <meta name="viewport" tag
  const viewport = document.querySelector("meta[name=viewport]");
  viewport.setAttribute('content', `width=device-width, initial-scale=${scale}, maximum-scale=${scale}, user-scalable=0, minimal-ui`);

  // hack
  if (window.chrome) {
    let version = 0;
    try {
      version = Number(navigator.appVersion.match(/.*Chrome\/([0-9\.]+)/)[1].split('.')[0]);
    } catch(e) { }

    if (version >= 64) {
      window.game_input_scale_override = 1 / scale;
    }
  }
}

// Later, once game is initialized:
if (window.game_input_scale_override !== 1) {
  console.warn('WARNING: Chrome >= 64 breaks input scaling with Phaser! Overriding game.input.scale properties!');
  this.game.input.scale.x = window.game_input_scale_override;
  this.game.input.scale.y = window.game_input_scale_override;
  this.game.input.scale = Object.freeze(this.game.input.scale); // value reverts upon re-focusing window
}

Sorry that I don't have an actual Phase code example. I'll try to add one when I have more time.

got same issue
Ubuntu/Chrome 64.0.3282.119 (Official Build) (64-bit)/ Phaser CE 2.10.0

Oddly similar to http://www.html5gamedevs.com/topic/35619-phaserio-example-behaves-differently-when-self-hosted/?tab=comments#comment-204958, where <meta name=viewport> is absent in Chrome.

FWIW, this issue no longer applies to Chrome 65.

I'm betting on a Chrome bug.