Unexpected window size change after quitting a tab

Describe the bug
Quitting a tab changes the size of a maximized window in another tab.
To Reproduce

run vim test.txt.
:sp to create another window, and the cursor is in the upper window now.
press <C-W>_ to maximize the upper window.
:tabedit test.txt to created another tab
:q to quit the just now created tab

Expected behavior
After quitting the just now created tab, the bottom of the maximized upper window moves one line upward, i.e. its size changes one line. This shouldn't happen.
Environment:

Vim version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 07 2019 15:25:43)
Included patches: 1-1689
Extra patches: 8.0.0056

OS: Ubuntu 16.04.5 LTS, Ubuntu 18.04.2 LTS
Terminal: GNOME Terminal, tmux

Additional context
Only when two windows in a tab horizontally and the upper one maximized, the line change can be observed.

Please try to reproduce with an updated Vim first.

Am 29.07.2019 um 05:12 schrieb PorcupineAndrew<EMAIL_ADDRESS>Describe the bug
Quitting a tab changes the size of a maximized window in another tab.
To Reproduce
run vim test.txt.
:sp to create another window, and the cursor is in the upper window now.
press _ to maximize the upper window.
:tabedit test.txt to created another tab
:q to quit the just now created tab
Expected behavior
After quitting the just now created tab, the bottom of the maximized upper window moves one line upward, i.e. its size changes one line.
Environment:
Vim version:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 07 2019 15:25:43)
Included patches: 1-1689
Extra patches: 8.0.0056
OS: Ubuntu 16.04.5 LTS, Ubuntu 18.04.2 LTS
Terminal: GNOME Terminal, tmux
Additional context
Only when two windows in a tab horizontally and the upper one maximized, the line change can be observed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Tested on Vim 8.1 and still found this behavior.

Please try to reproduce with an updated Vim first.
…
Am 29.07.2019 um 05:12 schrieb PorcupineAndrew @.***>: Describe the bug Quitting a tab changes the size of a maximized window in another tab. To Reproduce run vim test.txt. :sp to create another window, and the cursor is in the upper window now. press _ to maximize the upper window. :tabedit test.txt to created another tab :q to quit the just now created tab Expected behavior After quitting the just now created tab, the bottom of the maximized upper window moves one line upward, i.e. its size changes one line. Environment: Vim version: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 07 2019 15:25:43) Included patches: 1-1689 Extra patches: 8.0.0056 OS: Ubuntu 16.04.5 LTS, Ubuntu 18.04.2 LTS Terminal: GNOME Terminal, tmux Additional context Only when two windows in a tab horizontally and the upper one maximized, the line change can be observed. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.


(notebook) add colpalidemo notebook

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Der gikk den igjennom endelig ✅ :)
https://github.com/vespa-engine/pyvespa/actions/runs/11629709771/job/32387200495


Fails to close udp socket

https://github.com/bitfocus/companion-module-audivero-unityintercom-client/blob/0bb64e60c747591a44bc1d3c2e3139e9fa34bcec/index.js#L339
I am 99% sure that self.udp.socket is not valid and will always be undefined (it was for me in a quick test locally, and docs make no mention of it).
This means that the self.udp.close() will never be called and will cause the socket to be leaked, and will cause any attempts to rebind to the same port to fail
https://www.facebook.com/groups/companion/permalink/2847874082097590/

Is that like even needed then?

If you make it be `self.udp.removeAllListeners(); then it is valid, but I have no idea if there is any benefit to having it compared to simply removing the line

I removed the line


Mismatching count in currency tab.

Procurement doesn't count the extra slots in currency tab (the 5 at bottom, where you can put any currency you wish); these were changed by GGG soon after the initial launch of aforementioned tabs. Picture attached (see wisdom scrolls), as it explains ir more easily rather than me writing a 200 words long novel.

Procurement 1.9.9 has been released, which fixes this issue!
https://github.com/Stickymaddness/Procurement/releases/tag/1.9.9


preprocess before ajax load (override page load method)

This is a (multiple allowed):

[ ] bug
[x] enhancement
[x] feature-discussion (RFC)
Framework7 Version: 1.4.0
Platform and Target: CORDOVA,ANDROID

What you did
All my pages are embed in js. Don't need ajax anymore.
I setup a preprocess function on Application, BUT it called after ajax complete.
Expected Behavior
split preprocess into two parts, before load, after load
So we can override load method, or only do content filter.
Actual Behavior
preprocess is called after ajax complete.

Template7 would be more appropriate i belive


Add the option to run /save-all before server shutdown and after server shutdown announcement

Enhancement Type
Improve an existing feature
Describe the enhancement
Add an option to save the world before server shutdown. I ran into a situation where someone lost some items because the server restarted and they put iron in a chest, but after the restart, the chest didn't have the iron and the player didn't have it in their inventory. This is because the server saves at a different interval than entities.

When the container stops normally then a graceful stop of the server is initiated. Your container must have been terminated abnormally. Watch the logs during a start and you'll see the progression of normal saves and shutdown.


refactor: repo preperation for v1.0.0-Alpha-1 - [merged]

Merges v-1-0-0-alpha -> development
:books: Summary

arrange repo in preperation for v1.0.0-Alpha-1
:link: Links / References

#74

:construction_worker: Tasks

[ ] Squash migrations ~"breaking-change"

[ ] update commitizen to conduct Alpha Releases on dev branch

[x] ~"breaking-change" Any Breaking change(s)
Breaking Change must also be notated in the commit that introduces it and in Conventional Commit Format.

[ ] ~Documentation Documentation written
All features to be documented within the correct section(s). Administration, Development and/or User

[ ] Milestone assigned

[ ] Unit Test(s) Written
ensure test coverage delta is not less than zero

added 3m of time spent

mentioned in commit 09386ef4a69d5db617666819bd234d35df668580

mentioned in commit 86289f0177f04d64865a679a022ddc6304db7e7d

added 2 commits
86289f01 - refactor!: Squash database migrationsd4dfccf1 - ci: temp change to release on dev to be alpha release
Compare with previous version

mentioned in commit d4dfccf116db603bd9a48576166321ed4bba5495

mentioned in commit f1ed32177c0e69cdf1296d84927b3e2c24bc2b6f

added 1 commit
6bf68153 - 1 commit from branch development
Compare with previous version

mentioned in commit 2937ac95bb03a840be70947eca20ffb798d40235

added 2 commits
f1ed3217 - refactor!: Squash database migrations2937ac95 - ci: temp change to release on dev to be alpha release
Compare with previous version

mentioned in commit 70896ddb54799dfdb8c4d3e34d0d1e24e49ad1cd

added 3 commits
f0bbd22c - 1 commit from branch developmentb9d3935d - refactor!: Squash database migrations70896ddb - ci: temp change to release, on dev to be alpha release
Compare with previous version

mentioned in commit b9d3935dcea50066a8536a12339874dea223e15f

added 2 commits
09386ef4 - refactor!: Squash database migrationsf5b839fa - ci: temp change to release on dev to be alpha release
Compare with previous version

added 35 commits
70896ddb...c057ffdc - 33 commits from branch development47737628 - refactor!: Squash database migrations27902eac - ci: temp change to release, on dev to be alpha release
Compare with previous version

mentioned in commit f5b839fac85e578ba64ba2895404c25371596981

mentioned in commit 27902eaca4815890521eb23d10fd93a0b8aca3c2

mentioned in commit 477376281c8a53c5254e1fbccf77bb77a9f3db0f

added 35 commits
27902eac...46c44193 - 33 commits from branch development1e33231a - refactor!: Squash database migrations253a2fa7 - ci: temp change to release, on dev to be alpha release
Compare with previous version

mentioned in commit 5a201ef548274ea6ea12a90f4b641fad814611a7

mentioned in commit 1e33231a8cbef189b70faece5ae037d8567bac61

approved this merge request

mentioned in commit 30e0342f5266fe8bcb6af819138eb1dbfc278eca

mentioned in commit 9b4cc57c4079099a861a1bd0a3040cf8a905db85

mentioned in commit 0ee7f0346e1054451c605b93a11af075286c2904

added 16m of time spent

added 30m of time spent

mentioned in commit daf34cb75ec465432e94a6d63e9475db8e573865

mentioned in commit 1f8244ae40abc5dd34596142a46ba02417b24357

enabled an automatic merge when all merge checks for a1759ecaaf7df03846bded9c673f654f3da5fe58 pass

mentioned in commit 9871cf248bbf22625628da22334e2a700302b3f3

mentioned in commit eeb7ce6b9b4c59b3c3e4222b6b1ce1ed4e21b2a2

mentioned in commit 603656cdd460060fd4ff91ffe39b62ba1d4e050c

mentioned in commit 0348a223fba9f60709b2a430c66bb7a3ba0ddeb7

mentioned in commit e93ae4db793d40958985851585e88326f414c873


Use .keyword not .raw for keyword fields

We use .raw to indicate that we are storing the keyword along with text and other data.
This should probably be called .keyword.
https://github.com/wellcometrust/catalogue/blob/master/common/elasticsearch/src/main/scala/uk/ac/wellcome/elasticsearch/WorksIndex.scala#L7

Done: https://github.com/wellcomecollection/catalogue/blob/085e4dcb24da95475b6b40ad4e764f83cdda7abf/common/elasticsearch/src/main/scala/uk/ac/wellcome/elasticsearch/IndexConfig.scala#L28


Fix System.FormatException in QueueDetailActivity+<>c.b__0_0 (Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage x)

Version 1.0(1)
Stacktrace
AzureStorageBrowser.Activities.QueueDetailActivity+<>c.b__0_0 (Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage x) [0x00000] in <23d89671ead14dbba507a850d0826418>:0;AzureStorageBrowser.Activities
AzureStorageBrowser.Activities.QueueDetailActivity+d__0.MoveNext () [0x002d3] in <23d89671ead14dbba507a850d0826418>:0;AzureStorageBrowser.Activities
Reason
System.FormatException
Link to App Center

https://appcenter.ms/users/butvinik/apps/azure-storage-browser/crashes/groups/e7537b7425862f499b7febfb4a9dc90478d27411

I had put a non base64 encoded message into this queue message I opened - didn't realize that all the messages in azure storage were base64 encoded until that happened with @chillbotapp
It would be cool to keep the list item for this queue message but put error text where the message goes.


Enable checking name and requiredness of parameters

Rationale: we would like to be warned when someone renames a query parameter, since this breaks backward compatibility.
The code was basically already there, I simply made it compile and added tests.

Coverage increased (+0.02%) to 86.885% when pulling aad5dc96578bc1a1106050db50f8335dca75650f on askoning:master into fde3b83feee343baa22a3fcf9dca33a200724470 on RobWin:master.

Thx. If you like and use assertj-swagger, I would love to get your GitHub star.


I am running the goOpera node of the Fantom Foundation blockchain project. goOpera uses an older go-ethereum version for certain operations, in this case the interesting part is the types.Sender function which calls the atomic.Value Store() procedure:
func Sender(signer Signer, tx *Transaction) (common.Address, error) {
	if sc := tx.from.Load(); sc != nil {
		sigCache := sc.(sigCache)
		// If the signer used to derive from in a previous
		// call is not the same as used current, invalidate
		// the cache.
		if sigCache.signer.Equal(signer) {
			return sigCache.from, nil
		}
	}
	addr, err := signer.Sender(tx)
	if err != nil {
		return common.Address{}, err
	}
	tx.from.Store(sigCache{signer: signer, from: addr})
	return addr, nil
}

Transaction struct looks like this:
type Transaction struct {
	data txdata
	// caches
	hash atomic.Value
	size atomic.Value
	from atomic.Value
}

github link to types.Sender() call here
What did you see happen?
In my custom code I use types.Sender quite heavily, and usually it works, but sometimes the code does not continue, and the CPU is running at 100%.
I nailed it down to the sync/atomic.Value Store() procedure which in those cases never seem to return.
Only way to stop this is to panic after a timeout.
What did you expect to see?
I expect to see that sync/atomic.Value Store() procedure always returns and never gets stuck.

note that 1.19 is an unsupported release
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


bpf: lxc: fix up reporting of drop reason in drop_for_direction()

DROP_* reasons are negative values.
Reported-by: Nikita V. Shirokov<EMAIL_ADDRESS>Relates: https://github.com/cilium/cilium/issues/32473
Report the correct drop reason when a packet is dropped by the bpf_lxc program.

/test


add new env

Description
This PR includes the following proposed change(s):

Add new env fix
Fix probe decleration

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes

I have applied this to the cluster and its currently running


NMS Error

When I try to test the network I get the following error:
Traceback (most recent call last):
  File "test_net.py", line 242, in <module>
    rois_label = fasterRCNN(im_data, im_info, gt_boxes, num_boxes)
  File "/home/rizhiy/anaconda3/envs/faster-rcnn.pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/rizhiy/object-detection/faster-rcnn.pytorch/lib/model/faster_rcnn/faster_rcnn.py", line 50, in forward
    rois, rpn_loss_cls, rpn_loss_bbox = self.RCNN_rpn(base_feat, im_info, gt_boxes, num_boxes)
  File "/home/rizhiy/anaconda3/envs/faster-rcnn.pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/rizhiy/object-detection/faster-rcnn.pytorch/lib/model/rpn/rpn.py", line 78, in forward
    im_info, cfg_key))
  File "/home/rizhiy/anaconda3/envs/faster-rcnn.pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/rizhiy/object-detection/faster-rcnn.pytorch/lib/model/rpn/proposal_layer.py", line 148, in forward
    keep_idx_i = nms(torch.cat((proposals_single, scores_single), 1), nms_thresh)
  File "/home/rizhiy/object-detection/faster-rcnn.pytorch/lib/model/nms/nms_wrapper.py", line 18, in nms
    return nms_gpu(dets, thresh)
  File "/home/rizhiy/object-detection/faster-rcnn.pytorch/lib/model/nms/nms_gpu.py", line 10, in nms_gpu
    nms.nms_cuda(keep, dets, num_out, thresh)
  File "/home/rizhiy/anaconda3/envs/faster-rcnn.pytorch/lib/python3.6/site-packages/torch/utils/ffi/__init__.py", line 198, in safe_call
    result = torch._C._safe_call(*args, **kwargs)
TypeError: initializer for ctype 'struct THCudaIntTensor *' must be a pointer to same type, not cdata 'struct THIntTensor *'

It seems, there is a problem with gpu nms. How can I fix this?

this is because it should be tested on GPU. so add '--cuda' to the end of your command.


Typo in humidity sensor function generator

The file sensebox-sensors.js contains a typo, which leads to the program not compiling properly.
In line 443, instead of

 code = "airSensor.getHumidity()";

it says

  code = "airSensor.getHumiditiy()";

Note the extra 'i' in Humidity.
This leads to following error:
In function 'void loop()':
webserver_1:86:23: error: 'class SCD30' has no member named 'getHumiditiy'; did you mean 'getHumidity'?
      String(airSensor.getHumiditiy()) + String("%"))))))));
                       ^~~~~~~~~~~~
                       getHumidity

Thanks @xEmkayx for reporting! I just fixed it


fix(oracledb): Don't encode '=' in Oracle DB datasource

Proposed Change
When building $datasource, use plain = instead of %3D
Checklist

[ ] Changes are tested
[ ] CI has passed

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Add de, es, fr, pt-br, pt-pt locales

Add locales

packages/zod/src/locales/de.ts
packages/zod/src/locales/es.ts
packages/zod/src/locales/fr.ts
packages/zod/src/locales/pt-br.ts
packages/zod/src/locales/pt-pt.ts

@colinhacks I just made some adjustments to the French translations and force-pushed on my branch (I am French).
I forgot to mention that I based my translations on https://github.com/aiji42/zod-i18n - big thanks 🙏 to them!
I've used Claude to convert the JSON translation file from zod-i18n to an errorMap (v4) format as Zod requires.
I'm saying this to highlight the fact that I don't want to take credit, but I would be happy to help if you want me to do the same for the other languages!
Thanks for your amazing library, by the way!!

Wow this is amazing! I'll put out a release with this and cherrypick this over to the v4 branch as well. Thanks!


Undo

I hope i'm not blind but is there really no undo function?
If anyone accidentially remove the Floor, all components and links are gone and the whole map is empty.
So the biggest missed feature for me is undo.
Alternatevly i think an extra Question on every  deletion process is better than noting.

Hello jonnycastaway.
No, you are not blind 😩. There is no undo function.
I'll try to add it as soon as possible although, this will take some time.
Thanks for the suggestion 😊
Regards,
Pablo.


Added userInfo in Descriptor.

Could we add userInfo in the EventDescriptor?
It is in the Event but removed from EventView.

This a very old PR i am referring to: https://github.com/richardtop/CalendarKit/pull/29

Hi, thanks for your pull request.
I'm not sure if it's needed though, as the EventDescriptor is a requirement on a type that is imposed by CalendarKit. i.e. that's the bare minimum of information / methods required to display an event in the CK.
However, it doesn't limit you as to what the type can actually be, and you're free to add your own methods and properties. For example, instead of userInfo you could actually add your own types.
Then, in your code just cast the EventDescriptor to your type, as I do in the CalendarApp for example:
https://github.com/richardtop/CalendarApp/blob/master/Calendar/CalendarViewController.swift#L130
And then you'll be able to access any other stored properties.
The whole reason for the userInfo existence is to provide a basic option to store some associated information with a provided Event class. If you'd like to have some sort of custom behavior / interface, I definitely suggest you creating your own class in the application target and conforming it to EventDescriptor.
From the CK's perspective, there is no need to have userInfo at all, since CK doesn't need it for layout / handling purposes. Let me know what you think.
Video tutorial part of how to create a custom EventDescriptor: https://youtu.be/iC4XxmExqFA?t=1714

Thank you for the detailed response @richardtop I will take a closer look at this and I think from what i have seen this might suffice. If that is the case i will close this PR.

We are using userInfo from an older version of the CK for storing event data like userID etc.

It's totally OK. Just make sure to cast the EventDescriptor to Event and then you'll be able to access it.
To sum up:
EventDescriptor - a protocol for which any data type should conform to in order to be displayed in CalendarKit. Event Descriptor, as it's name implies, describes the event. It's the data to create an EventView.
Event is the bare minimum class conforming to the EventDescriptor, so that the user of the CalendarKit don't have to create his own class for the basic functionality. If you need something more than this, just create an own class.
That's why Event is marked as final. It's not the base class, it's just a reference implementation:
https://github.com/richardtop/CalendarKit/blob/master/Sources/Timeline/Event.swift#L3
Feel free to close PR if you're able to modify your code the way I described and achieve your goal. Raise an issue if you need something else / library code modified.

@alensaqe any news on this? Can we close it? Did you get it working?

I am closing this for now. I will rewrite the code as you mentioned above. Thank you @richardtop


FileAlreadyExistsException when updating metadata

RPM adapter failed once on testing stage with error:
java.lang.IllegalStateException: java.nio.file.FileAlreadyExistsException: /tmp/6e705b584712528fbd486f1e39e76c5965b7e4c7788daf356d3ab00312e3a7ca-primary.xml.gz

And with logs:
[INFO] RxCachedThreadScheduler-31 [com.artipie.rpm.Rpm:infoForced 247] repository closed
[INFO] RxCachedThreadScheduler-31 [com.artipie.rpm.pkg.MetadataFile:infoForced 247] output com.artipie.rpm.pkg.FilelistsOutput@5e3afb8a closed

The update was started simultaneously from different threads (most probably).
The solution could be to throw an exception if multiple updates started simultaneously for one repository.

The job #230 assigned to @olenagerasimova/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@g4s8 please take a look at #234, let's merge it and then I fix the bug.

@g4s8 2 puzzles #244, #245 are still not solved.

@olenagerasimova/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

The user @olenagerasimova/z resigned from #230, please stop working. Reason for job resignation: It is older than 10 days, see §8

@0crat assign me

@g4s8 please close, we already have puzzles to continue

@0crat assign me (here)

@olenagerasimova The job #230 assigned to @olenagerasimova/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@olenagerasimova thanks

Job was finished in 0 hours, bonus for fast delivery is possible (see §36)

There is an unrecoverable failure on my side. Please, submit it here:
PID: 4@69479bfe-25b6-466a-835a-a020547757e2, thread: PQ-CT2E6TK9B
com.jcabi.xml.StrictXML[124] java.lang.IllegalArgumentException: 1 error(s) in XML document: -1:-1: Duplicate unique value [gh:artipie/rpm-adapter#230] declared for identity constraint of element "speed".

0.53.15: CID: 53420dd4-9a9d-468c-8a5e-1c8eaa8714d8, Type: "Order was finished"

@g4s8 all 2 puzzles are solved here: #244, #245.


Small clean-up in std.conv.parse

Removed gotos and used enforce which IMO is more in keeping with D style.

It's good, don't trust the autotester test that waste the PR, it's unrelated.

@WalterBright Done

@WalterBright Fixed

Auto-merge toggled on

to!ubyte("ff", 16); now throws ConvOverflowException


fix python client CI config

Signed-off-by: Maciej Obuchowski<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##             main      #37   +/-   ##
=======================================
  Coverage        ?   89.74%
=======================================
  Files           ?        5
  Lines           ?      156
  Branches        ?        0
=======================================
  Hits            ?      140
  Misses          ?       16
  Partials        ?        0

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 048f922...0ed6aa0. Read the comment docs.


router.match(location) not return query object from url like this.$route

Version
2.7.0
Reproduction link
https://github.com/BlackCode7/vue-router-bug
Steps to reproduce

git clone https://github.com/BlackCode7/vue-router-bug
npm install
npm run dev
open console
click on the "Get console.log" button
Look at both objects, they should be the same but "router.match(location)" loses query parameters

What is expected?
Objects returned by "this.$route" and "router.match(location)" should be the same
What is actually happening?
The object returned by "router.match(location)", contains an empty query object inside when there are query in the url

Documentation: https://router.vuejs.org/en/api/route-object.html

You have to pass location.href not the Location object

Thank you so much Posva!


Biotypes featureCounts bargraph sample names are not in sorted order

Hello,  I used v3.0 of the pipeline to analyze a set of samples. I noticed that the sample names in the Biotypes plot seem to be sorted at random.  See image

After a gitter chat with @ewels he recommended the following:

I think that the best way to solve this is to edit this file in the pipeline: https://github.com/nf-core/rnaseq/blob/master/bin/mqc_features_stat.py. And get it to sort the samples alphabetically there before creating that output file

Unfortunately, I don't speak Python or I would attempt a PR ☹

Hi @pcantalupo I suspect the problem here is actually that MultiQC is finding and inserting that custom content randomly into the plot. That process/script is actually run on each sample individually so we don't have the option to sort across samples at this point. The command is here.
Be great if @ewels can confirm.

Ah is it separate files? Could you dump a zip file of files for me to play with please?

Created an issue on the MultiQC repo https://github.com/ewels/MultiQC/issues/1412
The files we use for the tests should reproduce the error as you can see in the image below:
test.tar.gz

Closing this for now in favour of dumping it on Phil's lap over at MultiQC. Feel free to re-open if you have good reason to play issue ping pong and to put it back on my lap.


Minimize top-level API surface area for both usability clarity and maintenance reduction

[x] #1586
[x] #1600
[x] #1587
[x] #1759
[x] #1780
[x] #1791

(Continuing discussion from #833)

context.Context is explicitly not meant to be extended

@meatballhat any documentation or links to where that explicit convention maybe written?

@marwan-at-work I should have explained myself better, sorry! The interpretation of the go docs I'm leaning on here comes from the overview

Do not store Contexts inside a struct type; instead, pass a Context explicitly to each function that needs it. The Context should be the first parameter, typically named ctx:
func DoSomething(ctx context.Context, arg Arg) error {
	// ... use ctx ...
}

meaning that we're not supposed to be wrapping context.Context with our own type because that goes against the convention of accepting context.Context as first argument for the purpose of keeping the semantics/expectations of using context.Context as simple as possible.
Aside from that particular interpretation issue, I'd like to make sure we are moving towards the design detailed in the series of issues tracked in #1531 which would result in an action func signature of:
type ActionFunc func(ctx context.Context, cmd *Command) error

@marwan-at-work can you move your comment over here? 🙇🏼

@meatballhat ah, yes storing context vs passing it. In most cases, you want a function to accept a context. But FWIW the Go team themselves break that rule in multiple places:

http.Request stores its context as a private field and exposes Context() and WithContext methods to get/set a request's context.
the sql package also stores its context for queries: https://github.com/golang/go/blob/d5de62df152baf4de6e9fe81933319b86fd95ae4/src/database/sql/sql.go#L2159
The os package actually does exactly what we're doing here and embedding the context interface: https://github.com/golang/go/blob/d5de62df152baf4de6e9fe81933319b86fd95ae4/src/os/signal/signal.go#L299

With all of that said, I'm definitely happy with any solution as long as we have a full context accessible from the outside :)
From issue 1531, it looks like y'all are thinking of removing the *cli.Context type completely? If so, then the type signature of (context.Context, *Command) would also make sense.

@marwan-at-work Thank you for caring about this! 💖 Sorry for my (two weeks??) delay!
The places you reference in the standard library are great examples of how the core Go team adapted existing APIs after the context library was introduced, IIUC. Thankfully, we don't have those constraints in github.com/urfave/cli/v3 🎉
I'm leaning more and more towards wanting to remove the *cli.Context type completely, yep 👍🏼 with the goal being:
type ActionFunc func(context.Context, *Command) error

Duplicate of #1774


Resolves #722 Add example with astro

#722

I tried running this and couldn't see a connect button. There was an error in the console — seemed related to the polyfills not being applied?

The kit compiles and runs without a problem on my end.
You will need to create a yarn.lock file and do an yarn install

@mikelxc thanks for taking the time to check out RainbowKit! I'd prefer we limit the number of example applications in the repo that we have to maintain, but feel free to publish to your own repo! If astro absolutely explodes in popularity over the next year and we see many people having issues getting setup, we can talk about adding this.


Dimmers

I setup in Hoobs.  The light goes on, but does not go off.  Not much else to config.  TIA!

If you manually turn off the light, does the state in HomeKit update?

If you manually turn off the light, does the state in HomeKit update?

Looking at it in HOOBS.  When I turn off manually, it doesn't update the status unless I refresh.  After refresh, I try to turn back on via HOOBS, but it doesn't.  Turn on manually, still doesn't update the status even after refresh.
Currently I use Home Assistant to link to the radiora2 repeater.  Just looking for HOOBS/Homebridge in case I want to switch.

If I restart HOOBS, if the light is on, it will go off if I click it in HOOBS.  However, it won't go back on if I click it in HOOBS.  If the status is incorrect before restart (showing on when it's off), it will still be wrong after reboot....and clicking on it doesn't do anything.  Just more clues for you.

Looks like HOOBS doesn't want to support platform style plugins that don't dynamically create their own accessories. it could be something with that?

I found another plugin that worked.  RadioRA worked just fine.  Thanks!


StochasticWeightAveraging is incompatible with Learning Rate Finder

First check

[X] I'm sure this is a bug.
[X] I've added a descriptive title to this bug.
[X] I've provided clear instructions on how to reproduce the bug.
[X] I've added a code sample.
[X] I've provided any other important info that is required.

Bug description
If you have a Lightning Trainer that uses both the automatic learning rate finding and StochasticWeightAveraging callback, e.g.,
pytorch_model = PyTorchMLP(...)
lightning_model = LightningModel(model=pytorch_model, ...)

trainer = L.Trainer(
    callbacks=[StochasticWeightAveraging(swa_lrs=0.01)],
    auto_lr_find=True,
)

results = trainer.tune(model=lightning_model, datamodule=dm)

you will get an AttributeError (see below)
How to reproduce the bug
See above; it happens to various modules I tried.

Error messages and logs
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [5], in <cell line: 20>()
      8 lightning_model = LightningModel(model=pytorch_model, learning_rate=0.1)
     10 trainer = L.Trainer(
     11     max_epochs=100,
     12     callbacks=[StochasticWeightAveraging(swa_lrs=0.01)],
   (...)
     17     deterministic=True,
     18 )
---> 20 results = trainer.tune(model=lightning_model, datamodule=dm)

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py:1052, in Trainer.tune(self, model, train_dataloaders, val_dataloaders, datamodule, scale_batch_size_kwargs, lr_find_kwargs)
   1047 self._data_connector.attach_data(
   1048     model, train_dataloaders=train_dataloaders, val_dataloaders=val_dataloaders, datamodule=datamodule
   1049 )
   1051 with isolate_rng():
-> 1052     result = self.tuner._tune(
   1053         model, scale_batch_size_kwargs=scale_batch_size_kwargs, lr_find_kwargs=lr_find_kwargs
   1054     )
   1056 assert self.state.stopped
   1057 self.tuning = False

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/tuner/tuning.py:70, in Tuner._tune(self, model, scale_batch_size_kwargs, lr_find_kwargs)
     68 if self.trainer.auto_lr_find:
     69     lr_find_kwargs.setdefault("update_attr", True)
---> 70     result["lr_find"] = lr_find(self.trainer, model, **lr_find_kwargs)
     72 self.trainer.state.status = TrainerStatus.FINISHED
     74 return result

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/tuner/lr_finder.py:227, in lr_find(trainer, model, min_lr, max_lr, num_training, mode, early_stop_threshold, update_attr)
    225 # Save initial model, that is loaded after learning rate is found
    226 ckpt_path = os.path.join(trainer.default_root_dir, f".lr_find_{uuid.uuid4()}.ckpt")
--> 227 trainer.save_checkpoint(ckpt_path)
    228 params = __lr_finder_dump_params(trainer)
    230 # Set to values that are required by the algorithm

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py:2362, in Trainer.save_checkpoint(self, filepath, weights_only, storage_options)
   2357 if self.model is None:
   2358     raise AttributeError(
   2359         "Saving a checkpoint is only possible if a model is attached to the Trainer. Did you call"
   2360         " `Trainer.save_checkpoint()` before calling `Trainer.{fit,validate,test,predict}`?"
   2361     )
-> 2362 self._checkpoint_connector.save_checkpoint(filepath, weights_only=weights_only, storage_options=storage_options)

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py:444, in CheckpointConnector.save_checkpoint(self, filepath, weights_only, storage_options)
    434 def save_checkpoint(
    435     self, filepath: _PATH, weights_only: bool = False, storage_options: Optional[Any] = None
    436 ) -> None:
    437     """Save model/training states as a checkpoint file through state-dump and file-write.
    438
    439     Args:
   (...)
    442         storage_options: parameter for how to save to storage, passed to ``CheckpointIO`` plugin
    443     """
--> 444     _checkpoint = self.dump_checkpoint(weights_only)
    445     self.trainer.strategy.save_checkpoint(_checkpoint, filepath, storage_options=storage_options)

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/trainer/connectors/checkpoint_connector.py:379, in CheckpointConnector.dump_checkpoint(self, weights_only)
    368 checkpoint = {
    369     # the epoch and global step are saved for compatibility but they are not relevant for restoration
    370     "epoch": self.trainer.current_epoch,
   (...)
    374     "loops": self._get_loops_state_dict(),
    375 }
    377 if not weights_only:
    378     # dump callbacks
--> 379     checkpoint["callbacks"] = self.trainer._call_callbacks_state_dict()
    381     optimizer_states = []
    382     for i, optimizer in enumerate(self.trainer.optimizers):
    383         # Rely on accelerator to dump optimizer state

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py:1602, in Trainer._call_callbacks_state_dict(self)
   1600 callback_state_dicts = {}
   1601 for callback in self.callbacks:
-> 1602     state_dict = callback.state_dict()
   1603     if state_dict:
   1604         callback_state_dicts[callback.state_key] = state_dict

File ~/miniforge3/envs/dl-fundamentals/lib/python3.9/site-packages/pytorch_lightning/callbacks/stochastic_weight_avg.py:328, in StochasticWeightAveraging.state_dict(self)
    323 def state_dict(self) -> Dict[str, Any]:
    324     return {
    325         "n_averaged": 0 if self.n_averaged is None else self.n_averaged.item(),
    326         "latest_update_epoch": self._latest_update_epoch,
    327         "scheduler_state": None if self._swa_scheduler is None else self._swa_scheduler.state_dict(),
--> 328         "average_model_state": None if self._average_model is None else self._average_model.state_dict(),
    329     }

AttributeError: 'StochasticWeightAveraging' object has no attribute '_average_model'```

### Important info

Trainer, LightningModule
torch            : 1.12.1
lightning        : 2022.9.15
pytorch_lightning: 1.7.4
Python version: 3.9
OS: macOS
CUDA/cuDNN version: N/A
GPU models and configuration: N/A
How you installed Lightning(conda, pip, source): pip

### More info

_No response_

maybe related to #14755

Ah yes, thanks, looks like it's the same bug. I will close that here then.


cURL - Timeout was reached - bitstamp

Hi there,
i have many of these errors in my log file:
`Error with cURL: Timeout was reached
URL: https://www.bitstamp.net/api/ticker/
Retry in 2 sec...
WARNING: 20 second(s) too late at 03/31/2017 06:36:09
Error with cURL: Timeout was reached
URL: https://www.bitstamp.net/api/ticker/
Retry in 2 sec...
WARNING: 19 second(s) too late at 03/31/2017 06:36:45
Error with cURL: Timeout was reached
URL: https://www.bitstamp.net/api/ticker/
Retry in 2 sec...
WARNING: 20 second(s) too late at 03/31/2017 06:37:15`
They come and go, sometimes each second and sometimes every 20min only. And there are these blank rows, which don't seam to be normal (Okay I see, the code Tag from GitHub don't show the 3-4 blank Lines between the errors).
`# Program parameters
DemoMode=false
UseFullCash=false
CashForTesting=20.00
MaxExposure=25000.00
MaxLength=5184000
DebugMaxIteration=3200000
Verbose=false
CACert=curl-ca-bundle.crt
Strategy parameters
GapSec=3.0
SpreadEntry=0.0080
SpreadTarget=0.0050
PriceDeltaLimit=0.10
TrailingSpreadLim=0.0008
TrailingSpreadCount=1
OrderBookFactor=3.0
UseVolatility=false
VolatilityPeriod=600`
thanks for help

Hi @Wuzzzel, it looks like you have connection issues with Bitstamp, which is not related to Blackbird code itself. Try to ping Bitstamp and check the latency:
ping www.bitstamp.com

thx for reply butor. Here is the ping output:
root@1kv989k:~# ping www.bitstamp.com PING 95lp8.x.incapdns.net (<IP_ADDRESS>) 56(84) bytes of data. 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=1 ttl=60 time=0.392 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=2 ttl=60 time=0.487 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=3 ttl=60 time=0.341 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=4 ttl=60 time=0.405 ms ... 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=136 ttl=60 time=0.356 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=137 ttl=60 time=0.358 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=138 ttl=60 time=0.361 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=139 ttl=60 time=0.362 ms 64 bytes from <IP_ADDRESS>.ip.incapdns.net (<IP_ADDRESS>): icmp_seq=140 ttl=60 time=0.360 ms ^C --- 95lp8.x.incapdns.net ping statistics --- 140 packets transmitted, 140 received, 0% packet loss, time 139081ms rtt min/avg/max/mdev = 0.318/0.393/1.017/0.083 ms
I have these errors with a vps from vultr.com and with one from a german distributor linevast.
Beside that, is it really normal that ~90% of the logfile are blank rows/lines?

The ping looks OK. Do you consistently have that problem?
There are probably blank lines added somewhere that shouldn't be added when Verbose=false. Anyway you would get more information in the log with Verbose=true.

Keep in mind that between you and Bitstamp sits Incapsula. They might not like your VPN connection. I had similar experiences with another bot at Poloniex (they use Cloudfare though). If you can, try with out the VPN. (I am not sure what you mean by

a german distributor linevast.

Is this a VPN service too?)

@Newar417: I meant a Virtual Private Server (VPS). Linevast is just a german server distributor (I have mentioned it, because probably no one knows what I am talking about if not).
@butor: Yes, between every 30sec - 10min. I had disabled verbose, because I thought this would decrease the size of the logfile.
I will try different locations with vulture and if that doesn't work maybe aws or google.
ty

Well that pretty much explains it, it's as @Newar417 said. You didn't get an actual api response back from the exchange server, it looks like an incapsula response just to tell you the request didn't go through. Unfortunately, it's a regular html response but blackbird is trying to parse it as if it's json.


Json messages not working :(

my script https://pastebin.com/sLepudjm

latest

Latest Skript version is unstable, this addon will be updated when Skript will become stable

i'm not using the a.1.13 versions
its the lastest stable version


Integrated Growl Notifications and Linked to Aperture Plugin SDK in README.markdown

Clicking the Growl Notification will open up the user's profile on 500px.

Awesome, thanks! :-)


fix race condition around ready_event (hopefully)

test_timeout and friends rely on ready_event event variable to indicate that a socket is (about to be) listening. But the set/clear sequence falls on its head if the test thread is not already waiting on ready_event.
Which, for some reason, happens really frequently in our build environment.
This patch seems to ensure that the test thread never gets locked out of the ready_event.

This change looks reasonable to me, but @shazow should definitely think on it.

Yea this part is a bit of a mess, I was aggressively trying to fix some flakiness issues so I shoved a bunch of events in there and it's definitely not optimal. I have some ideas for rewriting this to use a ContextManager that would make things a lot cleaner...
For now, I'd say let's get rid of the wait_for_socket classmethod helper in the base that is only being used in one place. Could make it a module helper in the respective test suite if you'd like, or make the wait/clear inline like the rest of the code is anyways. Otherwise, happy to merge.

my thinking with the classmethod helper was that it now forms a usage contract: before you want to use a socket with ready_event, you call wait_for_socket.
but i have no problem with moving that to a module helper, esp. if this is slated for rewrite anyway

Hm I think this breaks the rest of our tests: https://travis-ci.org/shazow/urllib3/jobs/90915501

Hmmm looks like travis is just freaking out in general.

hmm is this something i can fix? it doesn't look like something i can fix

Don't think so, investigating it here #741. If you have any ideas, let us know. :)

Restarting this build as well

@shazow this is good to merge

:boat:


Stop using callable objects - Fixes: #95

@ChameleonTartu You were right. Installing kaiba standalone and not for development in an environment that didn't have attrs installed did not work.  Going away from callable objects all together removes the need for dataclass imported from attr so this should fix it.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (47d85f2) 100.00% compared to head (db6ef30) 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##              main      #136   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           18        21    +3
  Lines          496       501    +5
  Branches        75        72    -3
=========================================
+ Hits           496       501    +5

Files
Coverage Δ

kaiba/casting/__init__.py
100.00% <100.00%> (ø)

kaiba/casting/_cast_to_date.py
100.00% <100.00%> (ø)

kaiba/casting/_cast_to_decimal.py
100.00% <100.00%> (ø)

kaiba/casting/_cast_to_integer.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix bogus validation errors in EditIrtCalcDlg when switching standards.

This fixes the problem that Brendan was running into where if you put the focus in the last row of the EditIrtCalcDlg standard grid, and then choose a standard with fewer peptides in it, you get into a state of endless row validating errors.

Nick, can you cherry-pick this to Skyline/skyline_20_1? It seems pretty simple to run into and in my experience it requires killing Skyline with the Task Manager, a pretty high penalty for stumbling into it.


webview_alloc Returns null on .NET Core 3 Preview on Windows

I can't start any of the example apps, i get this error in all of them
Exception thrown: 'System.Exception' in Webview.Core.dll
An unhandled exception of type 'System.Exception' occurred in Webview.Core.dll
Could not allocate webview

Thanks for reporting this issue. Which environment are you running on? What operating system and dotnet version? What command are you using to run the application?
That error sounds like something went wrong inside the native code and it couldn't create a new webview window on your platform for some reason.

Hi,
I'm running dotnet version 3.0.100-preview7-012821 on Windows 10 64 bit
i'm not using the command line to run the application, but the Visual Studio debugger itself by pressing F5

Thanks. I've not tested it yet on .NET Core 3. It is known to work on .NET Core 2.x on Windows and macOS. I'm guessing that something has changed in how native libraries are loaded in the new .NET Core version.

Thanks for your reply, would you know any alternatives for Electron.NET? i'm looking for some framework to build cross-platform desktop application with C#, HTML and JS, it needs to be a Webview.

You could try using .NET Core 2 rather than the .NET Core 3 beta for the time being. I'll look into what's causing the exception on .NET Core 3.
3 is still not released yet so .NET Core 2 is probably going to be more supported for you.

I've checked locally and all of the examples run under the latest .NET Core 3 preview. Could you try:

Cloning this repository
Opening in a Vsiual Studio Command Prompt and changing to the examples/HelloWorld directory
Running dotnet run

You should see a window with "Hello World" in an h1 tag.

I've made more tests.
The HelloWorld example works when i point to netcoreapp2.0
<TargetFramework>netcoreapp2.0</TargetFramework>

If i point to netcoreapp3.0 it doesn't throw any error but doesn't start the window either.
The example with ASP.NET throws the error Could not allocate webview when pointing to any version.
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args)
                .WithDynamicPort()
                .WithNoOutput()
                .Build()
                .RunWebview();
       }

        private static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>();

Exception thrown: 'System.Exception' in Webview.Core.dll
An unhandled exception of type 'System.Exception' occurred in Webview.Core.dll
Could not allocate webview

I see the same exception when running from Visual Studio for some reason. It doesn't happen if I run on .NET Core 3 from the command line or via Visual Studio Code. I don't see the exception when targetting .Net Core 2.x though.
This is a tricky one. I'll keep digging when I have time.

Hi,
By adding STAThreadAttribute to Main, I successfully run on .NET Core 3.0.
        [STAThread]
        static void Main(string[] args)
        {
            var html = @"
Hello World
";
            new Webview.WebviewBuilder("Hello World", Content.FromHtml(html))
                .Build()
                .Run();
        }

The change might have occured in .NET Core 2.2 rather than .NET Core 3.0, since that version also doesn't seem to work for me (except with the fix provided by @kumaryu) while all previous versions of .NET Core 2 seem to work.


Unified SeeItSayItLabel

Describe the problem
At the moment, if your SeeItSayItLabel requires a larger Text label, you need to change the size of TextMeshPro and LabelPlate manually.
This could be simplified with a ContentSizeFitter, if the BackPlate was a Unity UI component using a RectTransform.

Describe the solution you'd like
If not already possible, the HolographicBackPlate material with its StandardShader should be able to be used in UI Images, or RawImages, or whatever type so it can be used along with the Unity UI.
This way, the plate could be put behind the label, all if it could receive a ContentSizeFitter component and voila, Text scales the content.
Describe alternatives you've considered
Manually adjusting both, making sure, offsets look right

We believe this has been addressed (and mistakenly not resolved). If it is still an issue, please reopen.


[BUG] LB service included a space in the random string for its name

Rancher Server Setup

Rancher version: v2.6.4-rc9

Installation option (Docker install/Helm Chart): docker

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: 1.22.7+rke2r1

Cluster Type (Local/Downstream): downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): harvester node driver

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom): tested with admin

Describe the bug when creating an LB through a workload, the service name had a   in it, preventing the service from coming up. (not always reproducible)
To Reproduce

deploy a cluster with rke2 harvester node driver (cloud provider enabled)
deploy a workload on the cluster with an IPAM LB defined, using the pool option
wait for service to come up

Result service is unable to deploy, character in name not allowed:

 **Expected Result** the character(s) appended to a string by rancher should always be from the allowed set.
Additional context

I have brought up over 50 LBs with this node driver/test but only hit this specific issue 1x so it is likely hard to reproduce.
not sure if this is exclusive to harvester, or could happen with any provider (I suspect the latter)

Copy from https://github.com/rancher/rancher/issues/36956

The suffix is a 32 bits checksum which could be represented as a seven- or eight-digit hexadecimal number. If it's a seven-digit hexadecimal number, the statement fmt.Sprintf("%8x", digest) will add a space at the beginning of the returned string. The correct statement is fmt.Sprintf("%08x", digest) which will add the 0 character rather than space.
digest := crc32.ChecksumIEEE([]byte(name + string(service.UID)))
suffix := fmt.Sprintf("%8x", digest)
name += suffix

Test plan:

deploy a guest cluster with harvester

Verified fixed on harvester v1.0.1 with Rancher v2.6.4 after replacing cloud provider image to armarny/harvester-cloud-provider:issue2122
Close this issue.
Result
After replacing cloud provider image to armarny/harvester-cloud-provider:issue2122.

It can make the pending load balacner (lb-28) which have space in random string back to running status

E0413 09:07:15.977374 1 controller.go:307] error processing service default/lb-28 (will retry): failed to ensure load balancer: LoadBalancer.loadbalancer.harvesterhci.io "rke2-v1234-default-lb-28- c426c07" is invalid: metadata.name: Invalid value: "rke2-v1234-default-lb-28- c426c07": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
I0413 09:07:15.977647 1 event.go:291] "Event occurred" object="default/lb-28" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: LoadBalancer.loadbalancer.harvesterhci.io \"rke2-v1234-default-lb-28- c426c07\" is invalid: metadata.name: Invalid value: \"rke2-v1234-default-lb-28- c426c07\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"

Can route to the back to normal load balancer (lb-28) correctly

Test Information

Test Environment: 1 node harvester on local kvm machine
Harvester version: v1.0.1
Rancher version: v2.6.4
RKE2 version: v1.23.4
OS image: ubuntu focal

Verify Steps

Deploy harvester and set the pool CIDR values in settings

Deploy rancher + connect harvester via virtualization management
Deploy a harvester node driver cluster with cloud provider enabled
Deploy a nginx server deployment
Open kube shell in the RKE2 cluster
Execute the following shell snippet to create bunch of load balancer in once

for i in {7..30}
do
   kubectl expose deployment nginx --port=80 --type=LoadBalancer --name="lb-$i"
   sleep 2
done

Check whether exists the pending load balancer in Service Discovery -> Services

If yes, check the cloud provider pods logs in Workload -> Pods

E0413 09:07:15.977374 1 controller.go:307] error processing service default/lb-28 (will retry): failed to ensure load balancer: LoadBalancer.loadbalancer.harvesterhci.io "rke2-v1234-default-lb-28- c426c07" is invalid: metadata.name: Invalid value: "rke2-v1234-default-lb-28- c426c07": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
I0413 09:07:15.977647 1 event.go:291] "Event occurred" object="default/lb-28" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: LoadBalancer.loadbalancer.harvesterhci.io \"rke2-v1234-default-lb-28- c426c07\" is invalid: metadata.name: Invalid value: \"rke2-v1234-default-lb-28- c426c07\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"

Next we need to replace the cloud provider image version

Open cloud provider application

Edit yaml of the cloud-provider deployment

Replace the image with armarny/harvester-cloud-provider:issue2122 and save

Remove the Running pod

Replace cloud provider to customized image

The pending load balancer lb-28 back to running and can route correctly

Verified fixed for KDM release regression test with the following configuration

Rancher: v2.6.4
Harvester:  master-03ee6213-head (04/18)
RKE2 version: v1.23.6-rc3+rke2r1
Cloud provider version: 0.1.1100

Create 100 Pool load balancers, all of them are running and can be routed correctly


Guide:  Plugin Development

Introduction
With the help of plugin, we add new desired functionality in our existing system. In Violet Rails, we achieve this with External API Connection.
External API Connection is a part of our API data pipeline which is composed of following entities;

API Namespace
API Resource
API Form
API Action
API Client
External API Connection

To learn further about these entities, see here.
Plugin Body
In External API Connection, we define a class in model_definition field which does our required job. By default, a boilerplate code is provided in the model_definition field.

The plugin is basically a class. Two of the methods which is required are;

initialize:
In here, we initialize the things we need. In the above image, you can observe an instance variable @external_api_client is defined, which points to the External API Connection you are working on. To know more about how this functions, see here.

start:
In here, we are supposed to write the working mechanism of our plugin. You can see here which implements a basic plugin to send HTTP request to a defined url.

Apart from these 2 (must have) methods, you can also define other private methods to further simplify and refactor your plugin.
Plugin Inputs
For providing inputs to our plugin, we use metadata field of External API Connection. The provided value is accessed by following way;
 attribute_name = @external_api_client.metadata[ATTRIBUTE_NAME]

The above image is from SyncAttributeToApiNamespace Plugin. To learn further more about this, see here for reference.
NOTE: As of now, we cannot provide files as input to our External API Connection
Triggering Plugin
Plugins in violet rails can be triggered using webhook or cron-job or on-demand basis.

To know more about how these are triggered (working mechanism), see below;

on-demand: see here (search for start action) & see here (search for run method)
cron-job: see here (search for self.cron_jobs method)
webhook: see here (search for webhook action)

Shipping newly developed Plugin

The newly developed plugin should be saved as a new fixture file inside test/plugin_fixtures/ folder. see here
Import the new fixture file in external_api_clients.yml file. see here (search for Specific plugins are moved to its separate files. comment)
The different dependent records specific to the new plugin should also be moved inside test/plugin_fixtures/dependencies/[record-type]/ folder. see here
Add detailed test cases for your Plugin. see here
Create a documentation (Github Issue) for your plugin. Reference

Notes on breaking down fixture file (yml files)

All the broken-down yaml files are put under test/plugin_fixtures instead of test/fixtures due to following reasons;

Rails does not allow multiple fixtures per model. So, we are basically breaking the main fixture file into smaller bits to prevent the main file from getting overcrowded. see here
By default, the system will load the fixtures form test/fixtures/. If the broken-down yaml files are put inside test/fixtures, it will throw error as it violates with rails' single fixture file per model. see here

If the file does not contain any embedded ruby code, it can be imported over its parent fixture file by following way; reference
<%= IO.read(Rails.root.join [PATH_TO_FIXTURE_FILE]) %>

If the file contains embedded ruby code, it should be imported over its parent fixture file by following way; reference
<%= ERB.new(IO.read(Rails.root.join [PATH_TO_FIXTURE_FILE])).result %>

a few things to add/surface:

External API Connections have an unlimited run-time
Errors are handled automatically: the connection is stopped, error metadata is captured (if any), and the error trace is emailed to admins
using the API Renderer you can create a UI for your Plugin
plugin install is done via the Web console. Plugin authors need to maintain their installation script. See example: https://github.com/restarone/violet_rails/wiki/API-Namespace-plugin:-subdomain-events-V1#installation

How to access files from External API Connections?
In the example below, we upload a CSV file under Files and use the web console to run the following Ruby code:
Apartment::Tenant.switch('crm') { file = Comfy::Cms::Site.first.files[1]  ; p file.attachment.open(&:first).parse_csv  }

we see the following output-- with the CSV headers (if formatted with headers):
["id", "api_namespace_id", "ack", "email", "has_flu", "full_name", "phone_number", "covid_contact", "has_travelled", "contact_travelled", "created_at", "updated_at", "user_id"]

to do the same, in your External API Connection, you can use the following code:
class ExternalApiConnection
  def initialize(parameters)
    @external_api_client = parameters[:external_api_client]
  end

  def start
    Comfy::Cms::Site.first.files.each do |file|
       csv = file.attachment.open(&:first).parse_csv
        api_resource = @external_api_client.api_namespace.api_resources.create(
          properties: {
            status: "pending",
            headers: csv,
          	file_name: file.attachment,
          }
        )
    end
  end
end

ExternalApiConnection


@inheritdoc fails when class C implements interface B which extends interface A

Suppose that class C implements interface B, and interface B extends interface A. Then interface B shows the documentation inherited from interface A. But class C does not. Class C shows the method, but without the proper inherited documentation from interface A.
This is similar to issue 906 "@inheritdoc fails when class C extends class B which implements interface A" which was fixed.
In the following example: AbstractSubject implements Subject interface which extends Printable interface. The problem is the toStringShort method in AbstractSubject is lacking documentation.
The resulting documentation can be seen at:
http://www.myphysicslab.com/rmnp/test20150205/out/index.html
Below is the code for this example. Also available at
http://www.myphysicslab.com/rmnp/test20150205/test20150205.js
Using JSDoc 3.4.0-dev (Thu, 22 Jan 2015 23:02:06 GMT)
/** @classdesc An object that has a minimal string representation via
the `toStringShort` method.
* @interface
*/
myphysicslab.lab.util.Printable = function() {};

/** Returns a minimal string representation of this object, usually
giving just identity information like the class name and name of the
object.
@method
@return {string} a minimal string representation of this object.
*/
myphysicslab.lab.util.Printable.prototype.toStringShort;

/** @classdesc A {Subject} notifies its {Observer}s when something changes in the
{Subject}.
@interface
* @extends {myphysicslab.lab.util.Printable}
*/
myphysicslab.lab.util.Subject = function() {};

/** Returns the JavaScript symbol that refers to this {Subject} for usage in a Terminal
script.
@method
@return {string} the symbol of this {Subject}.
*/
myphysicslab.lab.util.Subject.prototype.getSymbol;

/** @classdesc A *reusable forwarding class* which implements the boilerplate code
for a {Subject}.
@constructor
@implements {myphysicslab.lab.util.Subject}
*/
myphysicslab.lab.util.AbstractSubject = function() {};

/** @inheritDoc */
myphysicslab.lab.util.AbstractSubject.prototype.getSymbol = function() {
  return "foo";
};

/** @inheritDoc */
myphysicslab.lab.util.AbstractSubject.prototype.toStringShort = function() {
  return "AbstractSubject";
};

Ugh. Yeah, it makes sense that the fix for #906 would cause this behavior.
This will be a tricky one to solve, and the fix may not make it into 3.3.0.

Fixed on master and releases/3.3. I found a relatively straightforward fix that introduces a minor regression (#911). There's a way to work around the regression, so introducing the regression seemed like the lesser of two evils.

Thanks for correcting this so quickly.  This one and #906 and #907 are all working, I just retested them.  However, I found a new one which I reported as #912.  At least you are getting some elaborate test cases from me!


Ecommerce integration

Any plans to integrate with mailchimp's Ecommerce API?

Hi,
Like what ?
Because i’m using this warper to do ecommerce integration on a ecommerce cms without any trouble.
Do you take time to read the dev doc from MailChimp ?


Allow graphical applications from inside a user toolbox to run

It can happen that some user needs to quickly install and run
applications with a graphical interface, especially from user toolboxes.
That currently does not work, but making it working is just a matter of
exporting to the container a couple of env variables... So let's go for
it.
Another use case is when one use user toolboxes for some specific
tasks, such as development, testing or whatever. E.g., it would be quite
useful to build your application inside a toolbox (where you keep all
the dev and build tools and dependencies installed), and also be able to
test-run it, even if it is a graphical app.
Signed-off-by: Dario Faggioli<EMAIL_ADDRESS>

This could also keep WAYLAND_DISPLAY


Move to append for clustered cache puts.

Fixed most of @henri-tremblay comments, will continue tomorrow.

@henri-tremblay I've responded to all your comments... some with more questions.

Some more comments/questions on yours. And don't forget the stats documentation


Prisma syntax highlighting not active in Markdown preview (VSCode)

Bug description
Syntax highlighting for Prisma in Markdown documents in VSCode only highlighting in editor and not in preview
How to reproduce
## Database layout

\```prisma
model Thing {
	id Int @id @default(autoincrement())
}
\```

Note: I did also try disabling my other markdown extensions such as the Github theming one to see if they were interfering and they are not.
I would like to be able to use Prisma notation for documentation :heart:

Expected behavior
The syntax highlighting present in the syntax highlighted markdown should also be present in the markdown preview.
Environment & setup

OS: Microsoft Windows [Version 10.0.22621.1555] (Win 11)
Editor: VSCode
Editor version: 1.77.3
Extension version: Prisma v4.12.0

That's a good point, it's a shame we can't have a standard for representing syntax highlighting...
If you want highlighting in an IDE, use textmate's standard, prebuilt documentation is often pygments, but if you want dynamic highlighting in the web then it's highlight.js's...

Yes... 🙈 It's complicated and requires a lot of knowledge & work when a project introduces a new syntax to be supported everywhere!

Linking the issue about highlightjs https://github.com/prisma/prisma/issues/2337


Naming clash for new cmp standard package

I am not sure where the best place to have this discussion is, but I wanted to get @dsnet's opinion on this so this seemed like a reasonable place to start.
This is an extremely popular package and is imported into many Go tests across the world. Unfortunately, the new cmp package added within the last year has the same name as this package. I can see one possibly likely scenario where I would want to import both packages: in a unit test which wanted to use cmp.Diff along with a cmpopts.SortSlice which used cmp.Less[sometype]. There may be other situations as well.
The general solution to two packages having the same name is to rename one of them, but it isn't clear exactly which should be renamed: while it seems like a package in the stdlib is more central (leading to a preference to rename the third-party go-cmp), since go-cmp predates std/cmp by many years it will be a burden to retrain people with this new rename rule.
Does this package (or its maintainers) have an opinion about how to handle this naming clash?
PS: One out-of-the-box idea I had was to add forwarding code in go-cmp to all things in std/cmp, but I think that would cause people to import the heavier-weight go-cmp package into non-test code by accident so I am not certain that's a great idea.

The name collision is unfortunate and was brought up during the proposal for the stdlib "cmp" package. The concern was dismissed as not being a problem: https://github.com/golang/go/issues/59488#issuecomment-1554911781
Adding "go-cmp/cmp" to the stdlib has been proposed before, but rejected: https://github.com/golang/go/issues/45200
I personally still find the name collision unfortunate, but don't see the benefit of just renaming "go-cmp/cmp" worth the cost in churn. If we were to do a v2 of the package or entirely move it elsewhere (e.g., the stdlib), there there might be enough benefits to warrant a rename as well.

The standard library cmp is obviously not being renamed.
We could rename github.com/google/go-cmp/cmp. But that's a lot of churn and confusion, for a questionable benefit.
I think the best thing to do for now is wait and see. Perhaps this isn't an issue at all, or is a minor one. We'll have more information in a year or two.

I agree on the churn. It would be nice to have an agreed upon suggested alias for the import, so people would clearly recognise it in other people's Go code.

aliasing as gcmp or gocmp is the only solution forward, it is not that std cmp is extremely useful for every test file, it is very small addition to std lib so chances are slim that you will use both at the same time


Package.json license field

https://www.npmjs.com/package/arktype doesn't understand licenses files, it wants "license": "whatever"
plz add

I think we had this at some point- I guess it got removed?
Anyways, added it, thanks 👍


pull container builders into a separate package

This pulls the container builder implementation out into a separate package, opening up use cases to provide alternative workflows to build and push containers.
Some notes to consider:

container builders only need to understand how to build and push images. They are given the kitchen sink provided by draft up
pkg builder still understands how to deploy the image; that workflow doesn't change.
each container builder still handles state through pkg/builder

So if I understand this correctly, it's the first step toward abstracting away the builder implementation, right? It looks like a good move to me.

yep!

I've still got a few design choices to re-assess here. I'll remove the WIP label once it's ready


calibrate subpackage

In GitLab by @wtbarnes on Jun 21, 2019, 17:38
Maybe this isn't the best name, but we can debate that. Maybe we could call it prep? though aia.prep may be confusing because of the SSW history associated with the aia_prep.pro function.
This subpackage should include the standard "prep" operations including adjusting the plate scale, derotating to align the pixel grid with solar north.
Additionally, we would like to have functions to adjust the CRPIX, CDELT, and CROTA keywords according to the 3-hour pointing information in JSOC as well as correct for the incorrect HGLN_OBS and HGLT_OBS keywords (see https://gitlab.com/LMSAL_HUB/aia_hub/aia-science-team-meetings/issues/1)

In GitLab by @markcheung on Jul 23, 2019, 23:45
aia.calibrate.* makes sense.
maybe aia_prep should be aia.calibrate.register

In GitLab by @wtbarnes on Aug 30, 2019, 22:18
mentioned in commit 606d320a6d18b81f0eae810ce838d91d0e73418d

In GitLab by @wtbarnes on Aug 30, 2019, 22:18
closed via merge request !13


Support yaml file for pipeline

support export a yaml file from existing pipeline
support create a pipeline by importing a yaml file.
support create a pipeline by specifiy a repos that contains the yaml file.

Version - 2.0 master 3/19
Importing yaml that I just exported doesn't work

Version - 2.0 master 3/26
Export and import from the UI is working.  What are the requirements for the repo.  I added the exported yaml file to my repro.  But when I click on Import Pipeline from Respository, it says No Pipeline Found

@tfiduccia you need a file named .pipeline.yml in the root path of your repo.

@biblesyme - we export a file called pipeline-name.yaml.  So shouldn't we support yaml extension as well?

Yes, I thought we should support it so that user can directly use the exported file in their repository. @gitlawr How do you think of it?

I think we should export with file name .pipeline.yml. It is hard to choose a unique file to import from repo given arbitrary filename without prior knowledge

ok, we'll export pipeline-${name}.yaml, and look for .pipeline.yaml in the repo.
Users need to do renaming if they want to put exported pipeline file to the repo.

ok

@tfiduccia both formats are supported now

Version - 2.0 master 4/2
Verified fixed


Footer at the bottom of the Cell Type page

Sorry, @ashin-czi slipped my mind to update this. Currently, we have no footer space at the bottom of cell guide pages. The experience looks like it is broken/cut off. I am suggesting we add some spacing - 80px?


App fails to start with [firebase_messaging/unknown] An unknown error has occurred.

Environment: regtest
Build Number: 2179
Build Version: 1.2.6
2023-09-23 13:36:33.058  LogLevel.ERROR  Failed to initialise: [firebase_messaging/unknown] An unknown error has occurred.
The app sometimes fails on line final fcmToken = await messaging.getToken();, preventing the node to start.
https://github.com/get10101/10101/blob/2725f19f98615972309162fa5e78cf9389893dcf/mobile/lib/main.dart#L552-L557
Not sure why this is happening only sometimes, but it may be related to https://github.com/get10101/10101/issues/1350. see also https://stackoverflow.com/a/69754276/8643355

Let's see if this happens after https://github.com/get10101/10101/pull/1364 is deployed.

Also fixed with https://github.com/get10101/10101/pull/1364

the issue happened to me whilst rebasing my current work locally:
2023-09-25 12:07:19.362 10101[78035:381066] FLTFirebaseMessaging: An error occurred while calling method Messaging#getToken, errorOrNil => {
    NSLocalizedFailureReason = "No APNS token specified before fetching FCM Token";
}
flutter: 2023-09-25 12:07:19.653  LogLevel.ERROR  Error fetching FCM token: [firebase_messaging/unknown] An unknown error has occurred.

the root cause of this issue is that we assume that everyone will have the push notifications enabled in order to start the backend, which should not be the case.

Fixed.


Why not use NIF?

Sweet project!
Any particular reason to avoid a NIF in the first place, I did not benchmark but I think the ser/deser + packet_proc_loop will have a much higher overhead then a NIF call.
Also now you have rogue threads fighting for OS cores.  In the NIF case, a process on an erlang scheduler would proc a V8 instance when appropriate.
Also managing the v8 contexts I assume is possible from erlang (and procing the js eventloop from erlang)? The google engineers did not make some ridiculous JS implementation that demands an event thread be given to solely it?

The reason it's implemented as an OS process is that the facilities to exit the VM from an outside thread were not reliable/fast enough in earlier versions. This is no longer the case and implementing it as a NIF is on the roadmap. Thanks for the input and sorry for the belated reply!

Also, isn't long-running NIFs discouraged as they block the scheduler or has that been fixed/changed?

Also, aren't long-running NIFs discouraged as they block the scheduler or has that been fixed/changed?

You can use the dirty schedulers for that now.
However-- I'd vote against running v8 directly as NIFs. It may bring the whole Beam VM down if something went wrong. Ports give safety against all kind of crashes in v8.


Simplify VALID_TAG_NAMES definition

Hi all 👋  this is a small one, just cleans up the definition of the VALID_TAG_NAMES array. Not sure if there's a reason to use Object.keys if the goal is to get an array of values anyways.

Thanks, that's a good call.

I don't have a problem with this but note that Object.values requires either somewhat recent browser (e.g. no IE11) or a polyfill. Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Object/values
I think that's fine since most folks already use something like core-js but it should be documented. It also means the dependency on object-assign could be dropped since every browser that supports Object.values will also support Object.assign.


Add github data source

Add docs for the github data source.

These ideas are not "hard and fast" requests - but considerations for improvement.

Could sample XML be included here?   I know that you are hard coding org name into the model URL - and that would have to be noted.....  But the pattern with these experiments is that there is a page artifact that goes along with the readme.

Might you add ideas about other data calls?  What other data lists do you find helpful in your audit work?

Otherwise this is awesome.
I want to make a installable template out of it - where the org name can be a secure input - that the user provides in the template installation process - and all the necessary metadata is created in their org.

@zachelrath I've address your comment in a Note under the data source creation heading. @Rnhatch  I've added a demo page and I mentioned the PR and Commit endpoints as other possibilities, and attached a link to githubs api docs.

@tpayne1 I haven't had the chance to test the demo page or set up the data source itself, but I'm sure Rob and Zach caught any issues there. I did do a quick copy read-through, I just had a few tiny README suggestions. I also want to say thank you for the excellent instructions!

@itmightbecody Yeah man, my pleasure. I know this was a long time coming.


ERROR Invariant Violation: new NativeEventEmitter() when trying to use firebase with react-native

Description
I am encountering an error with the following message:
ERROR: Invariant Violation: new NativeEventEmitter() requires a non-null argument.
at Home (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.MuscleSync:187879:26)
at StaticContainer (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.MuscleSync:158191:17)
I am using Xcode version 14.3.1 (14E300c) on a Mac with the M1 chip, and I am testing on an iOS 14 simulator.
I have already tried various troubleshooting steps, including cleaning the project, reinstalling dependencies, and checking the Firebase configuration. However, the issue persists.
The error message suggests that new NativeEventEmitter() requires a non-null argument. It seems that there might be an issue with the configuration or initialization of Firebase or the auth module.
Here is the relevant code from my project:

Podfile:

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

source 'https://github.com/CocoaPods/Specs.git'  # CocoaPodsのデフォルトのソースリポジトリを追加

target 'AppName' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for AppName
  platform :ios, '13.0'

  # Uncomment the following lines if needed
  # pod 'Firebase/CoreOnly'
  pod 'Firebase/Core'
  # pod 'Firebase/Analytics'
  # pod 'Firebase/Auth', '10.11.0'

  pod 'RNFBApp', :path => '../node_modules/@react-native-firebase/app', :version => '> 18.1.0'
  pod 'RNFBAuth', :path => '../node_modules/@react-native-firebase/auth', :version => '> 18.1.0'

  # Add the following lines if needed
  # pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # Disable flipper since flipper doesn't work with static lib
  # Comment out the flipper_configuration line
  # An absolute path to your application root
  # use_flipper! :post_install

  # Add the following lines for static library
  use_frameworks! :linkage => :static
  $RNFirebaseAsStaticFramework = true

  # Flags change depending on the env values.
  flags = get_default_flags()

  target 'AppNameTests' do
    inherit! :search_paths
    # Pods for testing
  end
end

GoogleService-Info.plist
The GoogleService-Info.plist file is located at AppName/ios/AppName/GoogleService-Info.plist.

package.json

"dependencies": {
   "@react-native-firebase/analytics": "^18.1.0",
   "@react-native-firebase/app": "^18.1.0",
   "@react-native-firebase/auth": "^18.1.0",
   "react-native-firebase": "^5.6.0",
   "react": "^18.2.0",
   "react-native": "^0.72.0",
   ...
 },

Source code: src/firebaseAuth.ts
src/firebaseAuth.ts

import Config from 'react-native-config'
import { appInfo } from '@@/const/appInfo'
import firebase from '@react-native-firebase/app'
import auth from '@react-native-firebase/auth'

const firebaseConfig = {
  apiKey: Config.API_KEY || '',
  authDomain: Config.AUTH_DOMAIN || '',
  databaseURL: Config.DATABASE_URL || '',
  projectId: Config.PROJECT_ID || '',
  storageBucket: Config.STORAGE_BUCKET || '',
  messagingSenderId: Config.MESSAGING_SENDER_ID || '',
  appId: Config.APP_ID || '',
  measurementId: Config.MEASUREMENT_ID || '',
}

if (!firebase.apps.length) {
  firebase.initializeApp(firebaseConfig, appInfo.name)
} else {
  firebase.app(appInfo.name)
}

export const isLogin = () => {
  return new Promise((resolve, reject) => {
    const unsubscribe = auth().onAuthStateChanged(user => {
      unsubscribe() // Unsubscribe after the first invocation

      if (user) {
        // User is signed in
        console.log('User is signed in')
        resolve(user)
      } else {
        // User is signed out
        console.log('User is signed out')
        resolve(null)
      }
    })
  })
}

The problem occurs when I try to use Firebase or the auth module. I would appreciate any guidance or suggestions to resolve this issue and properly utilize Firebase without encountering this error.
I have also tried running the following commands multiple times as part of my troubleshooting process:
watchman watch-del-all && lsof -n -P -i :8081 -t | xargs kill && rm -rf ios/build && rm -rf android/app/build && rm -rf node_modules && yarn install && rm -rf ~ /Library/Caches/CocoaPods && rm -rf Pods && rm -rf ~/Library/Developer/Xcode/DerivedData && cd ios && pod deintegrate && pod setup && bundle exec pod install && cd .. && ./node_modules/react-native /scripts/packager.sh --reset-cache
Thank you for your assistance in resolving this issue.
Please let me know if you need any additional information or code snippets.
React Native Version
^0.72.0
Output of npx react-native info
npx react-native info
warn Package react-native-firebase contains invalid configuration: "dependency.platforms.ios.podspecPath" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
info Fetching system and libraries information...
System:
  OS: macOS 13.0
  CPU: (8) arm64 Apple M1 Pro
  Memory: 114.58 MB / 16.00 GB
  Shell:
    version: 5.8.1
    path: /bin/zsh
Binaries:
  Node:
    version: 18.0.0
    path: ~/.anyenv/envs/nodenv/versions/18.0.0/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 8.6.0
    path: ~/.anyenv/envs/nodenv/versions/18.0.0/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.2 AI-222.4459.24.2221.9862592
  Xcode:
    version: 14.3.1/14E300c
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.6
    path: /usr/bin/javac
  Ruby:
    version: 2.7.4
    path: /Users/masahirowatari/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: ^18.2.0
  react-native:
    installed: 0.72.0
    wanted: ^0.72.0
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: false
  newArchEnabled: false

Steps to reproduce
When using isLogin
Snack, code example, screenshot, or link to a repository
ERROR: Invariant Violation: new NativeEventEmitter() requires a non-null argument.
at Home (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.MuscleSync:187879:26)
at StaticContainer (http://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.MuscleSync:158191:17)

It seems that there might be an issue with the configuration or initialization of Firebase or the auth module.

Hi @rotosiruto
Thanks for reporting this issue.
It seems like this issue is probably a better fit for react-native-firebase:
https://github.com/invertase/react-native-firebase/issues
I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.


Remove: Unity.Unity.6000.LinuxServer version 6000.0.15f1

Microsoft Reviewers: Open in CodeFlow

URL: https://download.unity3d.com/download_unity/6a96561936c0/TargetSupportInstaller/UnitySetup-Linux-Server-Support-for-Editor-6000.0.15f1.exe
OK
(Automated message - build 923)

https://github.com/microsoft/winget-pkgs/pull/186121#issuecomment-2445759087

[Policy] Needs-Manual-Merge


Feature request: Show relative line numbers in the neotree file listing

Hi.
I tried to check if this was already asked for and I think it wasn't but please bear with me if it was.
I'm a recent NERDTree to Neo-tree convert. With the former I use relative line numbers extensively to jump to the point of interest in large file/dir listings (eg while working on the Linux kernel source).
If this is not already supported, would it be possible to add it ?
Many thanks for an excellent tool!

Adding the following to your config should work.
require("neo-tree").setup({
  event_handlers = {
    {
      event = "neo_tree_buffer_enter",
      handler = function(arg)
        vim.cmd [[
          setlocal relativenumber
        ]]
      end,
    }
  },

Works like a charm! Thank you!!!

How to set in lazy


Remove all vxTwitter mentions in README

I only say this because at the time of this post, i notice that all the urls for twitter.com i got bookmarked now show it as X(dot)com......and dear god i hate that its truly a permanent thing now.
I'm not saying to rename the entire project here, but since the [REDACTED] at [REDACTED] have chosen to push this as a permanent thing, vxTwitter now no longer works in discord for embed reasons. the vxtwitter links still redirect to twitter (I REFUSE TO CALL IT X ELON, AND I WILL DIE ON THAT HILL IF I MUST), only fixvx works now.


[New Feature]: Add restart button.

🎮 feature Request
Adding restart button so when user want to restart the game they can click restart to restart the game and improve CSS of page to enhance user experience.
Point down the features
Restart the game.
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Feature added successfully please review.
On Sat, 1 Jun 2024, 05:29 Durgesh kumar prajapati, @.***>
wrote:

Assigned #279 https://github.com/ChromeGaming/Dot-Box/issues/279 to
@soniya-malviy https://github.com/soniya-malviy.
—
Reply to this email directly, view it on GitHub
https://github.com/ChromeGaming/Dot-Box/issues/279#event-13006930752,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BED7DW2TG7YTJWOGWXDK5JTZFEFFVAVCNFSM6AAAAABITM6ALWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGAYDMOJTGA3TKMQ
.
You are receiving this because you were assigned.Message ID:
@.***>

hello, please assign this issue to me under GSSOC'24.