docs(toh-5-dart): create toh-5 dart example and documentation

changes:

add public/docs/_examples/toh5/dart samples
edit public/docs/dart/latest/toh-pt5.jade

I modified the code, to some extent, and added links to it.

I haven't seen a mention of HashLocationStrategy or a server that allows to develop with PathLocationStrategy. AFAIK with just pub serve the examples will fail with 404 on reload.


fmt: Scanf EOF error inconsistency

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version devel +ff227b8 Thu Jul 21 01:04:22 2016 +0000 linux/amd64
but older versions of Go are also affected.
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN="/home/fjl/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/fjl/"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build153025883=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?
I use fmt.Sscanf to parse integers and big integers.
https://play.golang.org/p/aZVlPM7haY
What did you expect to see?
When there is not enough input Sscanf (and Fscanf, Scanf) should return io.ErrUnexpectedEOF
What did you see instead?
It returns io.ErrUnexpectedEOF for big.Int and io.EOF for uint.

Similarly, Scanf is inconsistent when providing a prefix in the format
// results in io.EOF error
_, err = fmt.Sscanf("", "%d\n", &foo)

// results in io.ErrUnexpectedEOF
_, err := fmt.Sscanf("", "prefix %d\n", &foo)

I also expect io.EOF in the latter
https://play.golang.org/p/fNU3lL-KWn
(Happy to create a different issue if you want to treat this separately)

@robpike, opinions here? Go 1.9, document, do nothing, punt to 1.10?

Punt to 1.10. Also @rsc was the last one to work on that code, although the problems could well be original. Scanf should never have been written. Mea culpa.

Hi,
If anyone is not working on this, may I take this up ?
Also, a question on approaching this - If the appropriate behavior is to return ErrUnexpectedEOF in cases like the ones above, in which cases should we return EOF ?
As far as I understand, EOF is not exactly an error per se. It just signifies that the input has ended. If that is the case, then I believe in all cases where we return EOF, it should be ErrUnexpectedEOF. Let me know what you guys think.

It's trivial. Line 90 returns EOF, reading from a string. Line 928 converts an EOF from an external scanner (here math/big) into ErrUnexpectedEOF. It's inconsistent, yes. Will it break anything to make that change? I don't know.  Does it matter? Not really.
But I do believe it's not worth fixing. The Scan part of fmt is poorly designed and I would prefer to leave it alone. It's not a good idea to use it. Scan[f] is an idea borrowed from C that's really not a good fit for the Go library.
Perhaps the documentation should be more discouraging.

I still intend to look at this to see if there's a clear fix. The problem is the deciding, not the code.

Sure, let me know what you guys decide. Would be happy to send a CL and reap some commit karma 😝

I also expect io.EOF error
func main() {
	var str string
	n, err := fmt.Sscanf("some (thing)", "some (%s)", &str)
	fmt.Println(n, err) // 1 unexpected EOF
	fmt.Println(str)    // thing)
}


Black screen when i cancel request

after i start the dropIn and chose one option , if i cancel it shows me a black screen instead of returning back to the previous screen . it only goes away if i click on that screen

same for me!!


Disabling the default css

Is it possible to completely disable the default css?
I looked at the source and doesn't seem possible right now.

it is now possible! just exclude the stylesheet!


Still maintained?

Considering using this in rustup to deal with a race condition with McAfee and Norton virus scanners; the 2 years w/no activity is a little concerning - but perhaps its just that no-one has put any PR's up?
Anyhow my question is, if we had PR's for you, are you still maintaining this, or would we end up screaming into the void, in which case we should be looking for a different crate ;).

Yes, this crate is maintained — there just hasn't been any need for work on it. If there's anything more you need for it to fit your use case, please open issues!

I just noticed that we never published the major revamp we worked on a while back. I will do a quick pass to make sure everything is up to date and then publish (possibly without the async features since futures 0.1 is nearing replacement) so you don't end up using an API that's going to be replaced.

Yes, that was part of my wondering! Thank you. The major revamp is missing the key feature I'd need - described in #19. I'll start on a patch against master for that. If you have any API thoughts please let me know in #19, or I'm on discord / IRC etc etc.

0.5.0 has been published to crates.io now: https://github.com/jimmycuadra/retry/releases/tag/0.5.0


DeprecationWarning: pkg_resources is deprecated as an API

Running tests on python 3.10 gives warning:
../../../../usr/lib/python3.10/site-packages/pkg_resources/__init__.py:121
  /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

two places where found with it:
https://github.com/praiskup/argparse-manpage/blob/main/examples/copr/copr_cli/main.py#L37
https://github.com/praiskup/argparse-manpage/blob/main/tests/argparse_testlib.py#L6

Thank you for the report!  This is just a test-case warning, so re-reporting against the Copr project: https://github.com/fedora-copr/copr/issues/2674
When fixed, I'll sync the test-case files with the actual Copr files.


Separate out crictl configuration instructions

This separates out instructions on storing crictl configuration Helm values in a AKRI_HELM_CRICTL_CONFIGURATION variable out from the rest of the cluster setup steps. The instructions are referenced at the top of every section that contains installations. It also adds the AKRI_HELM_CRICTL_CONFIGURATION variable to all installations.
This will reduce the amount of slot reconciliation errors people encounter.

resolves https://github.com/deislabs/akri/issues/97

Closing to create PR from fork instead


notation confusion

Thanks for sharing your great work!
In the paper, I am quite confused with the formula below:

These are for calculating mean value δ of all the feature vectors F_k={fk1, fk2, ..., fkm}.
If I understand correctly, fki is a feature vector of a point p in ROI S^K, an element of F_k, and
δ should simply be the mean feature vector by averaging over F_k. Why there are two averaging in your formula?

Hi, so fk is the average feature vector from all the points inside a proposal. Then, to compute the saliency we need one value only in this case δ, which is the average of all the values in the feature vector fk. So we basically compute the average twice, once over all the proposal points feature vectors, and then once more over the average proposal feature vector.


How to get html content after loaded URL?

Is there any way to get the result HTML?

hi, @ego008, you solve it ?

Could you do something with w.Eval("document.documentElement.innerHTML")?

finish it with:
var str string
chromedp.Run(ctx,
	chromedp.Navigate(urls[6]),
	chromedp.OuterHTML("html", &str),
)


Add property card is slightly different height than property cards

Closed, not exactly sure what the issue described is, because there was significant reformatting of the workflow and home page styling.


Add: FX 1

Channel Name
FX 1
Alternative Names (optional)
No response
Network (optional)
No response
Owners (optional)
No response
Country
FR
Subdivision (optional)
No response
City (optional)
No response
Broadcast Area
c/FR
Languages
ara;fra;eng
Categories (optional)
entertainment
NSFW
FALSE
Launched (optional)
No response
Closed (optional)
No response
Replaced By (optional)
No response
Website (optional)
https://fxtv.wns.live/
Logo
https://www.lyngsat.com/logo/tv/ff/fx-1-fr.png
Notes
No response

Duplicated:
https://iptv-org.github.io/?q=Fx1


size() counts incorrectly

OrientDB Version: 2.x
Java Version: 1.8
OS: Linux
I have a simple query:
select scopeItems.risks from #75:2

Which returns me:
{"@type":"d","@rid":"#-2:0","@version":0,"scopeItems":["#81:14","#81:18","#81:16","#81:17","#82:17","#81:22","#82:18","#82:20","#81:25","#82:14","#81:19","#81:23","#82:19","#82:15","#81:24","#81:20","#82:16","#81:21"],"@fieldTypes":"scopeItems=z"}

As you can see - there are 18 records.
But if I execute the following query:
select scopeItems.risks.size() from #75:2

It returns:
{"@type":"d","@rid":"#-2:0","@version":0,"scopeItems":28}

28 records?! How might that be?
Expected behavior
18 records
Actual behavior
returns wrong number: 28

HI @PhantomYdn
I'd say it's pretty strange. What kind of data type is risks? Any chance to have a copy of the db to test it?
(btw, I see you are using v 2.x, which version exactly? In general, if you have a chance to do it, I'd suggest to try 3.0.x)
Thanks
Luigi

@luigidellaquila ,
We use version 2.2.37. I can share with you docker version with DB embedded over dropbox or google Drive. Please share email to which I can send invite.

HI @PhantomYdn
Please send it to l.dell-aquila AT sap dot com
Thanks
Luigi

@luigidellaquila , thank you! Just shared with you database.
You can either run a provided docker or pick OrientDB database from runtime/databases/Orienteer
Username / password can be found in docker-compose.yml


Alpine magic helpers do not work in IE 11

I wanted to use Alpine magic helpers in IE 11, but it didn't work.
Error message @parent undefined

Hi,
I wonder if this is an issue with Alpine specifically and how it registers helpers since it's not even defined. Can you share what version of Alpine you have? And can you share how you are loading the scripts exactly?

Hi,
I wonder if this is an issue with Alpine specifically and how it registers helpers since it's not even defined. Can you share what version of Alpine you have? And can you share how you are loading the scripts exactly?

Hi,
I wonder if this is an issue with Alpine specifically and how it registers helpers since it's not even defined. Can you share what version of Alpine you have? And can you share how you are loading the scripts exactly?

Hi,
I wonder if this is an issue with Alpine specifically and how it registers helpers since it's not even defined. Can you share what version of Alpine you have? And can you share how you are loading the scripts exactly?

hello,this is my demo


pod is not supported

Please find below the issues
Analyzing dependencies
Fetching podspec for SJSegmentedScrollView from 1.3.5
[!] No podspec found for SJSegmentedScrollView in 1.3.5

@sathishbliss sorry for the late reply, please update your cocoapods podspec and try

how about for swift 2.3? it is not working. how can i add it manually?

Sorry for the late reply, Did you tried this, https://github.com/subinspathilettu/SJSegmentedViewController#for-swift-23


add extra line to test build workflow

Not going to merge this PR, just seeing if the build workflow doesn't try to publish a release (#27)

Looks like I had to use inclusive logic instead of excluding pull_request triggers. No idea why, but it works now so whatever


Continue on success should stop trying an account already found

When we use --continue-on-success we want to test all users with the different passwords we have, however, when we find a valid user if there are still passwords left in the list, they are still tested against the user that we already know his password.
My suggestion is that once a valid password is found, do not continue testing that user, but skip to the next one.
crackmapexec smb <IP_ADDRESS> -u engels kiosko -p "Inlanefreight19!" "SimplePassword3!" --no-bruteforce --continue-on-success
SMB         <IP_ADDRESS>  445    DC01             [*] Windows 10.0 Build 17763 x64 (name:DC01) (domain:inlanefreight.htb) (signing:True) (SMBv1:False)
SMB         <IP_ADDRESS>  445    DC01             [+] inlanefreight.htb\engels:Inlanefreight19!
SMB         <IP_ADDRESS>  445    DC01             [-] inlanefreight.htb\engels:SimplePassword3! STATUS_LOGON_FAILURE
SMB         <IP_ADDRESS>  445    DC01             [-] inlanefreight.htb\kiosko:Inlanefreight19! STATUS_LOGON_FAILURE
SMB         <IP_ADDRESS>  445    DC01             [+] inlanefreight.htb\kiosko:SimplePassword3!

Hello,
Thanks for the issue, it is now fixed on the last public release of CrackMapExec https://github.com/mpgn/CrackMapExec v6.0.0
Regards,
mpgn


iTwins Web Viewer - Multiple iModels

Hello,
Is it possible to view multiple iModels in the viewer at once?  I have a large project that requires that is split up into multiple segments (ie. sections of a roadway) by iModel.  For example, Segment 01 iModel contains a Container file of multiple disciplines. Segment 02 iModel, Segment 03... etc.  In the viewer, I would like to filter to certain objects (ie. Pipe) across multiple iModels.
Thanks in advance

short answer: yes & no;
You can visualize the graphics from other imodels in the same vp using a TiledGraphicsProvider.
This however doesn't integrate directly with the tree-widget you are displaying which makes the asumption that there is only one imodel. You would need to create your own which tries to aggregate all the data for all the different iModels into one.
You can also combine multiple iModels into 1 single iModel using the imodel-transformer
For additional details please see: https://github.com/iTwin/itwinjs-core/discussions/5814


How to update patterns and support new languages

Hello there! :)
I am totally new on hyphenation and I was wondering about two things:

Where are the files in the Resources folder of your project coming from? I took a look here : http://tug.org/tex-hyphen/ , and it seems that the links on that table of languages point to TEX files with different content. How do we convert those to your TXT format?

Is it possible to support other languages with your code?

Thanks. :)

After looking inside both of the file formats, I would -quite safely- speculate that you just need to copy the contents of \hyphenation{} to the hyph-***.hyp.txt file and the contents of \patterns{} to the hyph-***.pat.txt file.
Hm... Not much work to build a parser for that...

Hello! Sory for delay.
Previously, library was aimed to handle only Russian and English texts and because it, we didn't need provide way for add languages without code modification.
I added new mechanism for load patterns. Now, you can create own class that implement IHyphenatePatternsLoader for provide patterns and exceptions for Hyphenator
You can find patterns here https://github.com/hyphenation/tex-hyphen/tree/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt
*.pat.txt files contain patterns
*.hyp.txt files contain exceptions
I will update readme file as well, for provide example


AssertionError in assert not torch.isnan(h_prime).any()

I train a GAT network. After 2 epoch I got the AssertionError as follow:

I wonder why I get NaN in this two assertion.

python version: 3.6
pytorch version: 0.4
os: mac os
Anyone can help? Thanks!

you must use pytorch 0.4.1 because API for sparse version is different

Also, I found that GAT for sparse version cannot backprop because creation is just copying the value of tensor. I trying to make tosparse custom API to handle this. for now, please use dense version

Also, check the initail value because softmax can make numerical instability.

Thank you so much for your quick and helpful replies!! @Diego999 @sh0416

This is because you use dropout in input, thus make some rowsum zero.

Hello, I have met the same problems, could you please tell me how to solve it?

@iamlockelightning Hello, solved this problem ?  could you please tell me how to solve it?


Is Seasonality being accounted for?

Hi @ArturoEsquerra,
I have two questions hope that you can help with:

Is Seasonality being accounted for in the package? If so, is it done by using the prophet engine?

How are the counterfactual values calculated?
a. Does it exclusively consider the pre-treatment values of the control and test groups?
b. Or does it consider both the pre-treat and post-treatment of values of the control and test groups?
c. or does it only consider the pre and post-treatment values of the control group?

Thanks

Hi,

Seasonality isn't directly modelled in the package. However, that is not to say that seasonality isn't accounted for, since the weights used to predict the values on Test are based on the values on Control locations on a daily basis. So if the ideal weights to predict Test using Control data are the same throughout time, then there is no advantage in modelling seasonality. However if the weights vary significantly depending on seasonality (ex: weekend vs weekday), then the predictions won't be ideal.
However, if that do happen, then the control location are not ideal, because there are some hidden cofounder that is affecting the behaviour on the ideal weights depending on the seasonality that may very well affect the estimated effect itself (ex: on the weekday vs work day, it may be that the test location has more poor families that work long hours, which would be more sensitive to price changes on a given experiement)

The counterfactual value uses pre- and post-treatment data from control and pre-tretament data from test


[AMBARI-24507] Remove dependency on org.bouncycastle bcprov-jdk15on before version 1.6.0 for Ambari Server

What changes were proposed in this pull request?
Remove dependency on org.bouncycastle bcprov-jdk15on before version 1.6.0 for Ambari Server security concerns. See

CVE-2018-1000180 - https://nvd.nist.gov/vuln/detail/CVE-2018-1000180

This dependency is compiled into the apacheds-all.jar from
    <dependency>
      <groupId>org.apache.directory.server</groupId>
      <artifactId>apacheds-all</artifactId>
      <version>2.0.0-M24</version>
    </dependency>

The relevant parts of this need to be broken out and the offending bouncy castle JAR needs to be excluded as needed.
Unit tests were removed that were actually integration tests that required the conflicting dependencies along with the dependency containing the JAR we want to remove.
This was cherry-picked from #2121
How was this patch tested?
Manually tested, enabling Kerberos and LDAP sync with an Active Directory.
mvn clean test package  -DthreadCount=2  -pl ambari-server,ambari-project
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24:31 min
[INFO] Finished at: 2018-08-20T16:04:20-04:00
[INFO] Final Memory: 102M/1403M
[INFO] ------------------------------------------------------------------------

Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3668/
Test PASSed.


Feature/better code structure

Coverage increased (+0.2%) to 98.333% when pulling ca3f24a181c90ed53ecc69302528323d58a86648 on feature/better-code-structure into c644188dbab83858edb548fe8949f0ba711b5d9e on develop.

Coverage increased (+0.2%) to 98.333% when pulling 3a814412764ac999c08cc405778f359ba32f2f6c on feature/better-code-structure into c644188dbab83858edb548fe8949f0ba711b5d9e on develop.


[Bug]: Verbose log contains api key when running shopify app config link

Please confirm that you have:

[X] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[X] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?
Other
Expected behavior
API key should be replaced by ***** in verbose logs in all places when running shopify app config link.
Actual behavior
When running npm run shopify app config link -- --verbose in the output apiKey is replaced with *****, but the api key is still visible in api_key  variable (snake case version) in other places (fetchSpecifications query, Analytics Event).
Since the verbose output is required in case of opening a bug ticket, this issue should be fixed.
Verbose output
-

Reproduction steps

npm run shopify app config link -- --verbose
See output

Operating System
Ubuntu 22.04.3
Shopify CLI version (check your project's package.json if you're not sure)
3.56.3
Shell
bash
Node version (run node -v if you're not sure)
v18.18.2
What language and version are you using in your application?
No response

lol literally saw this myself when opening a ticket for another issue. Yikes.


Dependencies need to be fixed

OS: Ubuntu 24.04 noble(on the Windows Subsystem for Linux)
When executing the install.sh, which actually performed a pip install -r reguirements.txt command, it turned out an error with pip.
gradio 4.43.0 requires fastapi<0.113.0, but you have fastapi 0.114.1 which is incompatible.
vllm 0.6.2 requires transformers>=4.45.0, but you have transformers 4.42.3 which is incompatible
which indicated that there are corrupted dependencies.
Given that circumstance, l tried just install latest versions of gradio, vllm, fastapi, transformers, and it worked by now
Hopefully, corrupted dependencies could be fixed.

I'm closing this assuming this is no longer reproducible.
Feel free to reopen it if anyone has the same problem.


removeOption 3: Deploy APIM inside the cluster VNet

It is not recommend using the same vnet as AKS. subnets will be used for nodepools for example and it is not good practice to 'put' anything else into the CNI/VNET. Especially for upgrades.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 64c50ed1-29bd-6ec8-7c57-60a6a76d36be
Version Independent ID: ed403a70-b955-347d-72e6-c875e88ccef7
Content: Use Azure API Management with Microservices Deployed in Azure Kubernetes Service
Content Source: articles/api-management/api-management-kubernetes.md
Service: api-management
GitHub Login: @miaojiang
Microsoft Alias: apimpm

Hi @gkaleta Thanks for your feedback. We will review and update as appropriate.

@gkaleta I have assigned this to content author for further review and update as appropriate.

#reassign:elbarnit will followup on this

GitHub user miaojiang has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#reassign: @elbarnit

Thank you for the suggestion to improve the documentation! As part of our regular process to maintain documentation, I recorded it and we'll consider it when we next make updates. I'll now proceed to close this issue. If you want to discuss this with community experts, please reach out on Microsoft Q&A.
#please-close


icons for arc-green are the ones from light theme in 1.17rc1

Description
I upgraded from 1.16.x to 1.17.0+dev-314-g2b55422cd then to 1.17.0-rc1.
In 1.16, icons were OK for theme arc-green
In both 1.17, they are wrong.
Screenshots

Gitea Version
1.17.0-rc1
Can you reproduce the bug on the Gitea demo site?
No
Operating System
Windows 10
Browser Version
Firefox 101

You can ignore the bug, it was my bad.
I added a template to render svg with white background instead of transparent for something else, and it affected all icons.


Cover IR 88

Geographic Bounding Box element is used to facilitate geographic searches. It shall be mapped to the ows:WGS84BoundingBox element. The minimum bounding rectangle in decimal degrees of the area covered by the Layer shall be supplied regardless of what CRS the tileMatrixSet may define and shall use WGS:84 as Coordinate Reference System.

Check that the ows:WGS84BoundingBox is given and it's coordinates are proper CRS:84 coordinates. Note this element is not mandatory by the WMTS schema.

Initial version added in 0f3ab50d2cfc6b8f309de1c8d6a232bdea8f71e0


Complete the test results part of the report

Since we implemented the two algorithms, we can now complete the test results part of the report. More specifically, explain what our tests brings, what is the final coverage, maybe possible drawbacks ?

It would be interesting to also include CCN information about our algorithms

This is done


Add support for Maixduino.

Maixduino makes the Arduino IDE and libraries support the Maix series of development boards (k210 chips).
Here is the project wiki : https://maixduino.sipeed.com/en/
This video shows the running effect : https://youtu.be/pLbBEXIQ9ys

We should have a "basic Arduino" project. As @embeddedt suggested we can have new repo for Maixduino.
We need somebody who can maintain that repo (update lvgl on new releases), answer questions if any. @btx000 would you be interested in it?

Yes, I am interested in maintaining a new repo.

@btx000 Awesome! I've just created the new repo and granted write access.
https://github.com/littlevgl/lv_maixduino
Let's continue on that repo if there are any questions.


Could not find module 'MarkdownView' for target 'x86_64-apple-ios-simulator'

I am facing this issue. I have excluded arch arm64 in my build setting. Any idea how I can get rid of this issue?

Have you ever tried to clean the build folder via Command Shift K, and then build it again?

Yes, It didn't work. Try using any cocoapods with this package in your project and exclude arm64. you should see this error.

Which version of Xcode are you using now?

2023年6月22日 19:51，Fahid Attique @.***> 写道：
I am facing this issue. I have excluded arch arm64 in my build setting. Any idea how I can get rid of this issue?
https://user-images.githubusercontent.com/12518061/247921472-8d0eaf85-1ce8-40a1-803f-e1bcd07c92ed.png
—
Reply to this email directly, view it on GitHub https://github.com/LiYanan2004/MarkdownView/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI6NR4L6CXXIJVEEVDF2MMLXMQWSNANCNFSM6AAAAAAZQCXIXU.
You are receiving this because you are subscribed to this thread.

@fahidattique55 I can't reproduce this on my side. I'm not quite familiar with CocoaPods.
But still found some solutions: https://stackoverflow.com/questions/56957632/could-not-find-module-for-target-x86-64-apple-ios-simulator/76525001#76525001.
This forum may help you. If that helps you solve the issue, don't forget to share the solution with me. Thanks

Closed due to the unresponsiveness. If you still experience the issue, please reopen this issue and offer more context.


Upgrade aws provider version

Describe the Feature
Many of your AWS modules are referring to provider version 2. Are you planning to adopt the new version 3, that came out on July 31st, 2020?
Expected Behavior
All modules run using AWS provider version 3
Use Case
All the latest bugfix on AWS provider won't be available if you continue to stick to version 2

The bug on AWS provider mentioned in #15 has been fixed (see also aws provider project) and is available from version 3.5.0, can you please evaluate the request?


[proposal] Assign milestone for PRs automatically

When a PR is sent to the main branch, it should be assigned the max value of the milestones.
If a PR is sent to release/v1.19, it should be assigned the max value of 1.19.x milestones.

Accepted, will send a PR by tomorrow

Actually, I will need a bit of time to rewrite so we can listen to events other than push

Should probably only handle PRs to still-supported branches, e.g. only the last two, release/v1.20 and release/v1.19 currently, no 1.18 and lower.

Should probably only handle PRs to still-supported branches, e.g. only the last two, release/v1.20 and release/v1.19 currently, no 1.18 and lower.
@lunny we do only support last two, right? Or was it three?

We even sometimes have three but most time always two.

I guess hardcode it to three than to avoid having to manually manage versions.

The robot can hardcode the two and ignore the third which I think it's acceptable.

I'll do it after https://github.com/GiteaBot/gitea-backporter/pull/39 lands

The robot can hardcode the two and ignore the third which I think it's acceptable.

Actually I think we need no list of branches as only trusted users can set these labels and as long as the branch exists, it'll work.

#44 for this


error when trying to build from docker

Cannot find a valid baseurl for repo: base/7/x86_64

looking at the commands, it supposed to run on centos ?

hi Roy,
If you build the docker it will use CentOS Yes, but it seems like there's some DNS resolution issue, can you check if you can resolve mirrrorlist.centos.org at all?

just tried on a different server and it's working. closing, thanks !

Thanks for the update. :+1:


Laravel 5.7 Notification ->line there it can't display html tag but it was working in 5.5

Laravel Version: 5.7.20
PHP Version: 7.2.13
Database Driver & Version: MySQL 5.5.5

Description:
I have the same code notification in Laravel 5.5 and 5.7, for Laravel 5.5, I am able to use in ->line, but in 5.7 it will escape it.
In my notification blade view file, I set {{ ]} or {!! !!}, I still can't display html in my email. In 5.5, I do not need to escape it still work.
 \\this is when I not escape
 <strong>2019-01-13 15:41</strong>

  \\this is when I escape
  2019-01-13 15:37

what I want is display bold like below.
2019-01-13 15:37
both method also displayed the html tag, It will not bold the text. The same coding work in 5.5.32 (which will bold the text) but not Laravel version 5.7.20
Steps To Reproduce:
In Notification File
public function toMail($notifiable)
{
    return (new MailMessage)
        ->line('Due Date: ' . Carbon::parse($this->info->created_at)->format('Y-m-d H:i').'');
}

Thanks @driesvints you saved me aswell

@driesvints thanks man


Improve KPClient

Add error handling to KPClient and move browserless url to config

TODOs added in kp_client.py

Added TODO in base_api_client.py
Changing how lists are returned breaks nexus_flow_brugerauth job.

Added TODO in base_api_client.py Changing how lists are returned breaks nexus_flow_brugerauth job.

@rak-randers Fixed i branch https://github.com/Randers-Kommune-Digitalisering/api-service/commits/st-improved-kp-client/


Investigate a potential revision in error handling for the Peer

Just a small comment update. Afterwards, I think this PR can be merged. However, in the grand scheme of things, I don't particularly like the idea of letting the writer and the reader handle the error blindly. In some cases, we might want to bubble the error up and let the server decide what to do depending on the error detected.

There should be a way to do it without triggering a close channel panic. This can be achieved by wrapping the channel into a specialized SafeChannel struct that contains the channel, a sync.Once (or a mutex) to close the channel and a boolean to keep track of channel closure.

With the recent migration of kadcast to Rusk process, the Peer in the dusk-blockchain is no longer handling network connections other than the GRPC interface exposed by Rusk.


WIP: Moderator's guide

But yeah this works.
story: https://github.com/the-draupnir-project/planning/issues/16

Next up: Try to delete the old moderator's guide


Add theme and plugin

Adds datagovtheme plugin to datagov-theme-production.ini.template
Add config to use bootstrap 2

@thejuliekramer is this ready to merge?

@adborden is the data-gov theme needed in all instances being deployed on the multi-tenant cluster, or just the 'data.gov' ones?


Feature/my progress page

Seems fine. Once you've fixed the LGTM comments and My Progress to lowercase, I'd just merge it!


Fix DUK_UNREF() warning for volatile

Reported by @markand:
duk_js_executor.c:5008:14: warning: conversion to void will not access object of type ‘volatile duk_small_int_t {aka
                 volatile int}’
duk_config.h:2436:36: note: in definition of macro ‘DUK_UNREF’
#define DUK_UNREF(x)  do { (void) (x); } while (0)

The volatile variable in 2.0.0 was used as a way of ensuring that the switch-case generated for an 8-bit opcode doesn't need a bounds check. The reworked version here (omitting the default clause) seems to avoid the bounds check too on GCC. Clang emits the bound check either way; I'm not sure how to fix that but it's not within the scope of this pull in any case.


tailor-gui: temporary fix for UI bugs

Description of changes
Temporary fix for https://github.com/AaronErhardt/tuxedo-rs/issues/46
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 277548 run on x86_64-linux 1

1 package built:

tailor-gui

Superseded by https://github.com/AaronErhardt/tuxedo-rs/pull/60


Added loaded library name templating

Draft PR fixing my issue #32 where I have multiple processes hot reloading the same file causing conflicts. Will match and use old naming scheme when not specified.
I have added a few different template values including uuid and rand (Which is an added dependency so I understand removing these).
Definitely not great at rust so there might be some mistakes here as I was just trying to get something working at the time.
Example of the macro usage
#[hot_lib_reloader::hot_module(
    loaded_lib_name_template = "{lib_name}_hot_{pid}_{load_counter}"
)]

TODO: Add some tests associated with this.

Looks good to me. What's the reason to have both rand and uuid? Wouldn't one of them be sufficient?

@rksm Honestly I was experimenting as to which one I wanted. I am not confident with rusts conditional compilation stuff however I think I have made changes to have both of those as optional features so downstream libraries/binaries have no requirement to include them.

And some docs.

We can remove both of those if you so wish.

Thank you once again for these changes. Sorry that it took me so long, it is merged now. Cheers!


Update manage-sys-extensions-using-jamf.md

Issues with how Jamf was written. Updated
It is not JamF or JAMF
Just Jamf

@microsoft-github-policy-service agree


support $ref resolution

Add list of all known places here:

v1 $ref resolution completed here: 5d92d0e


Possible DoS for Stellar withdrawals

I realized that sourceAccount.LastModifiedLedger is updated also when the account receives the deposit not only when the sequence is bumped. With the current single condition I think it's possible to block the withdrawal of any account by sending 1 stroop every ledger. I wonder how and if we can solve this.
EDIT: Looks like we could use CAP-21 and it's seqLedger which equals to "ledger number at which seqNum took on its present value". In Horizon it's Account.SequenceLedger but can be empty if not set in extension.
Originally posted by @bartekn in https://github.com/stellar/starbridge/pull/68#discussion_r912921050

Probably solved by https://github.com/stellar/starbridge/commit/90255c84ec9c18db5b9f2b6e8126f92b006e7077 in https://github.com/stellar/starbridge/pull/68.


Unable to publish a message type which does not declare a namespace

It doesn't seem to be possible to publish a message whose type does not declare a namespace (source).  I assume this has to do with correctly binding the topic to a unique name, but this limitation seems arbitrary. Could MassTransit not provide a strategy to uniquely identify a "namespaceless" type which is based on some convention (i.e. an MD5 hash of assembly name + type name)?
Furthermore, in this context the ISendEndpointProvider.GetSendEndpoint() method is returning a misleading error message:

Anonymous types are not valid message types

Just to give some context here, this isn't necessarily a practical issue, but it does make it challenging to test publishing messages from LINQPad unless the messages are declared in an external assembly or you use some really funky syntax.

How are you declaring your message type, and why would you not put it into a namespace?

@phatboyg Please see my follow up comment for the reasoning. =)

Ah, gotcha! The issue is it would break the messageType urn, which expects a namespace, and it wouldn't be backwards compatible. I'd have to think about something here and see what makes sense - since it wouldn't be able to deserialize the message without having the actual type available in the runtime.

@phatboyg Very interesting- that definitely makes sense. From my side it's clearly not a big deal, although a more appropriate error message in this scenario would definitely be an improvement.
Cheers

Sounds more like a topology candidate to have a separate string-type mapping, similar to the type cache. I do something like this here. If there is no pre-assigned mapping, the default is to use FQCN as usual.


How to add title ?

how to add title to add in header e.g " Select Country Code"

hey, @naeem01234  header for Dialog page you mean !!!

If so, you could change it inside the SelectionDialog class.
you could add in build widget inside Column this code...
 Padding(
              padding: const EdgeInsets.all(8.0),
              child: Container(
                width: MediaQuery.of(context).size.width,
                child: Text(
                  'Country Code Picker',
                  textAlign: TextAlign.center,
                ),
              ),
            ),

and the result will be ...

or you could play with it as you like.


Minor "Error" in Tutorial

In the dristributed training tutorial (link below) the ordering of the lines can cause problems later on. If the lines are switched it will save some users headaches.
https://www.tensorflow.org/guide/distribute_strategy#using_tfdistributestrategy_with_custom_training_loops
with mirrored_strategy.scope():

  iterator_init = input_iterator.initialize()

  var_init = tf.global_variables_initializer()

  loss = train_step()

  with tf.Session() as sess:

    sess.run([iterator_init, var_init])

    for _ in range(10):

      print(sess.run(loss))

If you adapt the current tutorial code to use a model with weights it will currently not initialise the variables because of the ordering. I recommend switching the var_init and loss lines since the model is being built within the train_step().

@kiunthmo Thanks for bringing this to our notice. We will take a look and resolve it. Thanks!


Figuring out HTML 56

OPS Build status updates of commit 82d79ba:
:clock10: Preparing: average preparing time is 38 sec(s)

OPS Build status updates of commit 82d79ba:
:clock10: Incremental building: average incremental building time is 18 sec(s)

OPS Build status updates of commit 82d79ba:
:warning: Validation status: warnings

File
Status
Preview URL
Details

enterprise-graph/index.yml
:warning:Warning

Details

enterprise-graph/index.yml

[Warning] Author Stephen Flanagan cannot be recognized in GitHub.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


'from auditlog.models import LogEntry' Error、please help me.

Python version 3.6.5
Django version 3.0
django-auditlog-py3 module installed with PIP command
The operation history can be recorded in the database

When I want to read the history, the module cannot be imported
i want to use LogEntry.objects.get_ for_ model()、But the following error occurred

@jjkester   Can you help me 🤝

Sorry, I seem to have got the module name wrong


config-daemon: fix NM udev path

Function tryCreateNMUdevRule() was wrongly
concatenating path components, as path.Join(...)
removes every trailing slashes to the output string.
This regression has been introduced by

https://github.com/k8snetworkplumbingwg/sriov-network-operator/pull/273

Error showed up in logs with:
I1007 12:20:21.325679 10055 daemon.go:1026] tryCreateNMUdevRule()
I1007 12:20:21.325740 10055 daemon.go:1041] Old udev content '' and new content 'ACTION=="add|change|move", ATTRS

{device}=="0x1000|0x1003|0x1004|0x1014|0x1016|0x1018|0x101a|0x101c|0x101e|0x10ed|0x1515|0x154c|0x1565|0x1664|0x16c1|0x1806|0x1889|0x8090", ENV{NM_UNMANAGED}="1"
SUBSYSTEM=="net", ACTION=="add|move", ATTRS{phys_switch_id}!="", ATTR{phys_port_name}=="pf*vf*", ENV{NM_UNMANAGED}="1"' differ. Writing to file /host/etc/udev/rules.d10-nm-unmanaged.rules.
E1007 12:20:21.325772 10055 daemon.go:1048] tryCreateNMUdevRule(): failed to create dir /host/etc/udev/rules.d: mkdir /host: operation not permitted
I1007 12:20:21.325793 10055 daemon.go:294] Could not create udev rule: mkdir /host: operation not permitted

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
13 unchanged lines in 4 files lost coverage.
Overall coverage increased (+0.2%) to 25.204%

Files with Coverage Reduction
New Missed Lines
%

controllers/sriovibnetwork_controller.go
2
67.33%

api/v1/helper.go
3
41.2%

controllers/sriovnetwork_controller.go
4
67.0%

controllers/sriovnetworkpoolconfig_controller.go
4
52.03%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
1888

Relevant Lines:
7491

💛  - Coveralls

LGTM


Docs: complete process for how to use VSCode

Problem
On WSL with a fresh Ubuntu install, running code . works to make the distro immediately useful. On NixOS there are a number of decisions to be made and issues to be overcome before being able to use the distro for dev work.
The info about this process is scattered across a number of issues (see below) and discussions in this repo, plus NixOS wiki pages, the NixOS discourse and other repos.
A lot of this information is conflicting and/or outdated.
Relevant issues for initial VSCode install/setup process:

https://github.com/nix-community/NixOS-WSL/issues/97
https://github.com/nix-community/NixOS-WSL/issues/238
https://github.com/nix-community/NixOS-WSL/issues/222
https://github.com/nix-community/NixOS-WSL/issues/31#issuecomment-849709294

Background:
I am a complete noob to NixOS (though I have 15+ years of Linux and software dev experience). The ideas behind Nix are appealing, so thought I'd try it out for some dev work via WSL to get acquainted. When starting NixOS on WSL for the first time, the first task I tried to achieve (after upgrading) was to get a working dev env up and running, including VSCode. Unfortunately, even after eventually reading all the resources listed above, I still haven't achieved a fully-working VSCode install & dev setup I'm comfortable with (so have had to revert to Ubuntu for the time being)
Virtually everyone I know using WSL is also using VSCode, so this seems like an extremely common first step for new installers. AFAICT at least some of the kindly folks working on NixOS-WSL (including @nzbr ) are using vscode successfully (there is a .vscode dir in the repo root). So would be very helpful to have their knowledge/opinions distilled into ...

Solution

An authoritative set of clear, concise, up-to-date, step-by-step/end-to-end instructions on how to go from a fresh install to a working dev env with VSCode. Ideally this would be in this repo, linked from the README and effectively considered part of the initial install instructions
Specific questions to address:

system-wide install vs home-manager vs single-shell install
installing wget
to flake or not to flake
Node binary: nix-ld vs nix-community/nixos-vscode-server vs sonowz/vscode-remote-wsl-nixos vs manually installing and linking node (described at the bottom of this comment)
connecting: vscode WSL default vs via SSH? https://github.com/nix-community/NixOS-WSL/issues/31#issuecomment-849709294
launching systemd: native-systemd or are the container based method (currently the default?)

I've had a workaround for this for a while that I never got around to publishing, but now I did: https://github.com/K900/vscode-remote-workaround
This should be enough to get things working without any extra movements, no matter what setup you're using.

Got vscode wsl remoting with NixOS to work.  This is using the nix-ld approach
Version Info
Windows 11 22H2
WSL version <IP_ADDRESS>
vscode 1.83.1 (user setup)
ms-vscode-remote.remote-wsl-0.81.8

Setup Instructions

download latest release from https://github.com/nix-community/NixOS-WSL/releases
import into wsl using wsl --import nixos . .\nixos-wsl.tar.gz --version 2
update channel sudo nix-channel --update
update nixos configs sudo nano /etc/nixos/configuration.nix

  wsl.extraBin = with pkgs; [
    { src = "${coreutils}/bin/uname"; }
    { src = "${coreutils}/bin/dirname"; }
    { src = "${coreutils}/bin/readlink"; }
  ];

  programs.nix-ld.enable = true;

  nix.settings.experimental-features = [ "nix-command" "flakes" ];

  environment.systemPackages = [
    pkgs.wget
  ];

rebuild sudo nixos-rebuild switch
shutodwn wsl from powershell wsl --shutdown and confirm shutdown wsl --list --running
from nixos shell mkdir ~/.vscode-server & curl https://raw.githubusercontent.com/sonowz/vscode-remote-wsl-nixos/master/server-env-setup -o ~/.vscode-server/server-env-setup
from vscode attempt to connect via wsl.   Find NodeExecServer log message with how its being invoked

[2023-11-01 03:41:35.475] NodeExecServer run: C:\Windows\System32\wsl.exe -d nixos sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" f1b07bd25dfad64b0167beb15359ae573aecd2cc stable code-server .vscode-server --host=<IP_ADDRESS> --port=0 --connection-token=2218860889-3195581200-2104464773-1251764395 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'

take log message, modify slightly, and run

# note the changes to `wsl.exe -d nixos -e sh -l -c` and expanding the `$VSCODE_WSL_EXT_LOCATION`
C:\Windows\System32\wsl.exe -d nixos -e sh -l -c '"/mnt/c/Users/Acelinkio/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.8/scripts/wslServer.sh" f1b07bd25dfad64b0167beb15359ae573aecd2cc stable code-server .vscode-server --host=<IP_ADDRESS> --port=0 --connection-token=3823671665-1023682691-1766917102-882463176 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'

vscode wsl remoting now works....

Thoughts
Changing wslDaemon.js as mentioned https://nixos.wiki/wiki/Visual_Studio_Code#Remote_WSL did nothing.  My guess is that that file is versioned outside of the wsl extension.  No amount of changing versions or restarting vscode helped.  The underlying wsl remoting commands being executed did not respect any modifications.
Really would like to see this user experience improved.  Most of this appears to have been caused by the VSCode WSL extension changes.  Closest issue I could find is https://github.com/microsoft/vscode-remote-release/issues/8305
cc @Atry @sonowz

I believe the solutions mentioned above should have worked before Remote-WSL 0.77.0, which broke all the solutions and caused https://github.com/microsoft/vscode-remote-release/issues/8305.
Downgrading the extension below 0.76.1 until the issue is resolved should work in most cases. However the current situation of every users stumbling upon this issue is absolutely frustrating :(

I think we can use the fallback path since https://github.com/Mic92/nix-ld/pull/53

Here's the simplest solution I have found so far.  On a fresh wsl instance, put this flake somewhere and then apply via sudo nixos-rebuild switch --flake .
flake.nix
{
  description = "SpecialSnowflake";

  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
  inputs.nixoswsl.url = "github:nix-community/NixOS-WSL";
  inputs.nixoswsl.inputs.nixpkgs.follows = "nixpkgs";
  inputs.vscode-server.url = "github:nix-community/nixos-vscode-server";
  outputs = {
    self,
    nixpkgs,
    nixoswsl,
    vscode-server,
    ...
    }: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        nixoswsl.nixosModules.wsl
        vscode-server.nixosModules.default
        ({ pkgs, ... }: {
          system = {
            stateVersion = "23.05";
          };
          programs.nix-ld.enable = true;
          services.vscode-server.enable = true;
          environment.systemPackages = [
            pkgs.wget
          ];

          wsl = {
            enable = true;
            defaultUser = "nixos";
            extraBin = with pkgs; [
              { src = "${coreutils}/bin/uname"; }
              { src = "${coreutils}/bin/dirname"; }
              { src = "${coreutils}/bin/readlink"; }
            ];
          };
        })
      ];
    };
  };
}

wsl --terminate NixOs
wsl --distribution NixOs
code .

For anyone trying to create solutions, be sure to document how to get things started.  Trying to do first run from VSCode starting a WSL remote connection leads to errors with another group of missing tools.

I really do not want to enable nix-ld as it changes LD_LIBRARY_PATH for everything which can lead to weird bugs in my experience.

nix-ld-rs behaves differently
On Thu, Nov 9, 2023 at 2:37 AM Sandro @.***> wrote:

I really do not want to enable nix-ld as it changes LD_LIBRARY_PATH for
everything which can lead to weird bugs in my experience.
—
Reply to this email directly, view it on GitHub
https://github.com/nix-community/NixOS-WSL/issues/294#issuecomment-1803579960,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAES3ORRXQDWDKHSLZUOVZLYDSXAPAVCNFSM6AAAAAA5HT3IOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBTGU3TSOJWGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Here's the simplest solution I have found so far. On a fresh wsl instance, put this flake somewhere and then apply via sudo nixos-rebuild switch --flake .
flake.nix
{
  description = "SpecialSnowflake";

  inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
  inputs.nixoswsl.url = "github:nix-community/NixOS-WSL";
  inputs.nixoswsl.inputs.nixpkgs.follows = "nixpkgs";
  inputs.vscode-server.url = "github:nix-community/nixos-vscode-server";
  outputs = {
    self,
    nixpkgs,
    nixoswsl,
    vscode-server,
    ...
    }: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        nixoswsl.nixosModules.wsl
        vscode-server.nixosModules.default
        ({ pkgs, ... }: {
          system = {
            stateVersion = "23.05";
          };
          programs.nix-ld.enable = true;
          services.vscode-server.enable = true;
          environment.systemPackages = [
            pkgs.wget
          ];

          wsl = {
            enable = true;
            defaultUser = "nixos";
            extraBin = with pkgs; [
              { src = "${coreutils}/bin/uname"; }
              { src = "${coreutils}/bin/dirname"; }
              { src = "${coreutils}/bin/readlink"; }
            ];
          };
        })
      ];
    };
  };
}

wsl --terminate NixOs
wsl --distribution NixOs
code .

For anyone trying to create solutions, be sure to document how to get things started. Trying to do first run from VSCode starting a WSL remote connection leads to errors with another group of missing tools.
referencing nix-community/nixos-vscode-server#67 as this has been the simplest flake so far. I did not have luck with others.

Thank you for providing the solution; it enabled me to successfully run VSCode in WSL. However, I encountered an issue when attempting to launch a devcontainer or attach to a running Docker container inside WSL. The following error message persists:
[202907 ms] Dev Containers 0.327.0 in VS Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c).
[202906 ms] Start: Run: wsl -d NixOS -e /bin/sh -c cd '/home/nixos/nix-wsl' && /bin/sh
[202912 ms] Start: Run in host: id -un
[203012 ms]
[203012 ms] /nix/store/5q96kfjc8bxwv89fw0fqczwr6083ny8n-bash-interactive-5.2-p15/bin/sh: line 1: id: command not found
[203012 ms] Exit code 127

Upon investigation, I found that the issue lies in the $PATH environment variable, which lacks /run/current-system/sw/bin where almost all the necessary binaries are located. It seems that wsl -d NixOS -e /bin/sh leads to a non-login shell, resulting in a different $PATH compared to a login shell.
May I ask if you have any solutions or suggestions?

@fyang93
I don't know how Docker based container remoting works when inside WSL.   Afaik the connection is made by invoking the wsl.exe binary, but the commands passed through expect the binary to be accessible.   You can try to expose those via extraBin like for uname/dirname/readlink.
I successfully got that working with kuberenetes by directly point the kubernetes api server that is hosted WSL. Doing it this way avoids leveraging the wsl.exe

I would try nix-ld-rs + server-env-setup approach. I created some NixOS modules in that approach here:
https://github.com/Atry/nixos-wsl-vscode

There are two small errors that happened with recent versions of vscode.  One is with not being able to locate cat or sed which can be fixed via adding those to the wsl extraBin via appending on
{ src = "${coreutils}/bin/cat"; }
{ src = "${coreutils}/bin/sed"; }
{ src = "/run/current-system/sw/bin/sed"; }

The other issue was with using nixos-vscode-server defaulting to nodejs16.  Upstream fix https://github.com/nix-community/nixos-vscode-server/pull/75
services.vscode-server.nodejsPackage = pkgs.nodejs_20;

After exploring @rodent1 nix configuration, there is a more direct fix that allows wsl remoting to be opened by Windows or Nixos.  Creating a configuration ~/.vscode-server/server-env-setup file with the following contents.  This still requires nix-ld/nix-ld-rs and wsl should be restarted after setup.
PATH=$PATH:/run/current-system/sw/bin/

Reference for how I implemented https://github.com/acelinkio/nixplayground/blob/main/wsl/flake.nix

I tried the ~/.vscode-server/server-env-setup fix and I don't think you even need the extraBin arguments when running it. At least with nix-ld-rs. You do however still need to install wget.
eg nixos config
wsl = {
  enable = true;
  defaultUser = "nixos";
 };

environment.systemPackages = with pkgs; [
  wget
];

programs.nix-ld = {
  enable = true;
  package = inputs.nix-ld-rs.packages.${pkgs.system}.default;
};

Hello. This is my minimum WSL2 NixOS config that make VSCode Remote works.
flake.nix:
{
  inputs = {
    nixpkgs.url = "nixpkgs";
    nixos-wsl = {
      url = "github:nix-community/NixOS-WSL";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nix-ld-rs = {
      url = "github:nix-community/nix-ld-rs";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs: with inputs; {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [
        nixos-wsl.nixosModules.default
        ./configuration.nix
      ];
    };
  };
}

configuration.nix:
{
  wsl = {
    enable = true;
    defaultUser = "nixos";
  };

  nix.settings.experimental-features = [ "nix-command" "flakes" ];

  environment.systemPackages = with pkgs; [
    micro
  ];

  programs.nix-ld = {
    enable = true;
    package = inputs.nix-ld-rs.packages."${pkgs.system}".nix-ld-rs;
  };
}

Hope it will be helpful!

Why micro? I don't think we need that.

Sorry. It's just a text editor I used. Edited.

Comment #2009075533 by @songpola fixed NixOS WSL and VSCode Insiders for me. Insiders can now successfully open remote connection to WSL.

Above solution by @songpola fixed NixOS WSL and VSCode Insiders for me. Insiders can now successfully open remote connection to WSL both by running 'code-insiders .' within WSL directory, and by launching VSCode in Windows and connecting.

I use the stable one. Glad it helps with Insider one too!

Hmm, I did a fresh install recently and now for some reason after going into my project directory, running nix develop to activate the flake then code . to open it... vscode does not gain the flake environment rendering my IDE useless since can't access binaries and language servers.
Not sure what happened.

@0xLunch Have you by any chance found a solution? I just freshly installed nix and got VsCode working and I have the exact same problem.

Update: Today, I tried the setup again and found it works even without the ~/.vscode-server/server-env-setup

Hmm, I did a fresh install recently and now for some reason after going into my project directory, running nix develop to activate the flake then code . to open it... vscode does not gain the flake environment rendering my IDE useless since can't access binaries and language servers.
Not sure what happened. Pretty sure it worked just fine on the previous installation.

+1
I just want vscode server to run with entering nix develop shell/virtual env
btw, other tool, such as devbox, devenv, will work. this means that vscode server will start inside of virtual env

@JanuszSamborski
On Mac, this solution will work as same?

With @songpola config, I'm getting such an error:
`error: undefined variable 'inputs'
   at /nix/store/6z15vxc9dxjjj5573c5q13h3sfavwdhb-source/configuration.nix:17:15:

       16|     enable = true;
       17|     package = inputs.nix-ld-rs.packages."${pkgs.system}".nix-ld-rs;
         |               ^
       18|   };`

@arraen make sure you are passing the inputs properly in your flake
  outputs = inputs: with inputs; {
# IMPORTANT ^^^^^^^^^^^^^^^^^^^
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
# IMPORTANT           ^^^^^^^^^^^^^^
      modules = [
        nixos-wsl.nixosModules.default
        ./configuration.nix
      ];
    };
  };

@carschandler Yes, I copied both configs and put them into fresh wsl.
I'm new with Nixos, so maybe this issue is obvious for more experienced users, but I need to add
{ config, lib, pkgs, inputs, ... }:
to head of configuration.nix
*Also, you should have wget installed :)
PS Additionally, in flake.nix I set:
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
to stop rolling updates.

I'm a bit confused by the need to use VSCode on the host with the WSL extension in the first place; wouldn't it be better to just use VSCode from WSL directly, since it's possible to use GUI apps + we'd also get to use the VSCode home-manager module ?

Not really, no, because WSLg is far from perfect, is currently not very fast (though that is something that could be addressed on the NixOS side to an extent), and isn't always enabled.

For this time period, I think it is necessary to update the documentation
After several hours of trying, I can now prove that the method mentioned in https://github.com/sonowz/vscode-remote-wsl-nixos is completely usable except for a small flaw. I may upload all the configuration files later but I think everything mentioned in this repository can solve the problems you encounter (only wget is needed, not K9000 and nix-ld solutions).

If possible, I'd like to write a document about this, but I see a lot of similar pull requests are open? Any plans for documentation?

There is a file on now to run vscode remote server. https://github.com/nix-community/NixOS-WSL/blob/main/docs/src/how-to/vscode.md

There is a file on now to run vscode remote server. https://github.com/nix-community/NixOS-WSL/blob/main/docs/src/how-to/vscode.md

The strange thing is that both methods didn't work after trying them. There are somethings, for example, it seems that nix-ld-rs has been merged into nix-ld, and I can't find the functions mentioned in the documentation for the latest version. Also, K900's solution reported a socket timeout error in vscode side. I think these errors are not difficult to reproduce.

@nan-mu For the latest version (unstable), you can just enable only the programs.nix-ld.enable option. No need to specify the package.

I just had the same issue today, and your workaround works for me. Thanks!
BTW, if you have nix-direnv set up, installing the direnv VS Code extension to the WSL host seems to make these devShell-set env vars propagate to VS Code.

  shellHook =
    ''
      WSLENV=$WSLENV:PATH
    '';

to my shell.nix - it exposes PATH to process running in vscode, which helps with most extensions


Allow form elements to be pre-filled

Epic
No response
Description
As a: D2.0 user
I want to: pre-fill some form elements like in a data picker todays date
So that: forms can be filled out much faster
Which customers would this be availble to
None
Acceptance Criteria

[ ] criteria 1
[ ] criteria 2
[ ] criteria 3
...

Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate

I believe that this is a duplicate of #363

Correct, thanks @colinl!


cannot add addon URL

Hello, On HomeAssistantOS 13.2. core: 2024.11.1 - supervisor: 2024.11.2
error message when adding the URL to add-ons repositories.
Thanks for your work ;)

Hello,
as stated in the readme, you need to add this url: https://github.com/t0bst4r/home-assistant-addons
In Home Assistant "addon repositories" do not include the project itself, but they are containers which include only configurations on how to install an addon.


[WIP] Window Methods

Neat. Ping me when it's ready!

Included already now. Sorry for the late notice.


Revert "Changes add a script for generating C code and build rule for…

… protobuf"
This reverts commit 62027b7e14624283f758a7785a0a1347eda0a147.
This PR needs some outside changes to be importable. I'm not sure yet if this revert is actually needed, but getting it ready in the meantime.
cc @vishalpowar

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,870      Total (=)      2,020,870

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,177,124      Total (>)     11,177,118

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences


contain text assertion does not work if String.prototype.includes is not available

The following breaks in environments that do not support the ES2015 method String.prototype.includes, such as Internet Explorer and Phantom JS.
expect(wrapper.find('#child')).to.contain.text('Te')

I guess the solution would be to include an appropriate polyfill in the build.

Closely related to https://github.com/producthunt/chai-enzyme/pull/111

Merged in #111 so this will no longer be an issue on the next release

Thanks :+1:


IndexError: too many indices for array

Hi SS,
I just ran the demo without any other edit, but met this problem:

File "quadrotor_trajectory/scripts/min_snap_traj.py", line 436, in
st.traj_stepwise(w)
File "quadrotor_trajectory/scripts/min_snap_traj.py", line 178, in traj_stepwise
x_v = np.array(self.min_snap(0.0, tf[0]-ti[0], xi, xf))
File "quadrotor_trajectory/scripts/min_snap_traj.py", line 280, in min_snap
return np.array(V.value)[:,0]
IndexError: too many indices for array

     is this related with numpy version?

Thanks

I am using Python 2.7. I have cvxpy version 0.4.9 installed using Anaconda. The demo runs properly on MacOS.
What version of Python and CVXPy are you using?
Have you made any modifications to the code or demo?
Also, try printing np.array(V.value) before the return statement. For the 7-degree polynomial, you should get an 8x1 matrix. e.g.  [[0] [0] [0] [0] [0] [0] [0] [0]].
np.array(V.value)[:,0] takes the first column of the matrix and groups them into a 1x8 vector. e.g. [0 0 0 0 0 0 0 0]

@dyxwxjdy Any update? Were you able to resolve the issue?

@The-SS Really sorry for late reply.  It`s solved by updating cvxpy. Thank you very much!


MINOR: Rename lock variable of the entry class

The RemoteIndexCache has a variable lock  and the child class also have a variable lock in the same class file. Renaming lock of the entry(child class) to avoid confusion.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Test failures are unrelated.
https://ci-builds.apache.org/blue/organizations/jenkins/Kafka%2Fkafka-pr/detail/PR-14569/1/tests
@showuon  can you merge it.


Error "Failed to sendto: Not enough space" occurring frequently

Hi,
I am encountering the following errors consistently while working with WebRTC on Xiao ESP32 Sense using libpeer:
ERROR   ./managed_components/sepfy__libpeer/src/socket.c  142  Failed to sendto: Not enough space
ERROR   ./managed_components/sepfy__libpeer/src/buffer.c     45       no enough space
This error appears frequently, and I'm not sure if it's due to network buffer limitations or something else within the library. Is this a known issue, and are there any recommended solutions or workarounds to resolve this?

Based on my own experience, it could be an issue with the antenna. You could try adjusting the WiFi antenna.

@sepfy Thank you! I’ll try adjusting the antenna as you suggested and see if that helps. I hadn’t considered the possibility that it might be related to Wi-Fi signal strength. Just to clarify, could the weak signal or slow connection cause images or data to build up in the buffer, since the connection isn't fast enough to send the data in real-time? If you have any insights on that or other suggestions, I’d be happy to try them. I'll also share any updates once I’ve tested this.

When I use the XIAO, adjusting the antenna can resolve the Failed to sendto: Not enough space error. However, if it's not enough space, there might be other issues, and I'll look into optimizing the process.

Hi @sepfy
Thanks for the suggestion. I hope that the issue can be resolved with a more optimized method rather than just the antenna adjustment. For now, I'll go ahead and close this issue.


Update the hive image used to an older commit but built more recently

Which issue this PR addresses:
Move back to a rebuilt older Hive image that doesn't have memory leaks to address some P0s.

https://msazure.visualstudio.com/AzureRedHatOpenShift/_git/ARO.Pipelines/pullrequest/8338597
https://msazure.visualstudio.com/AzureRedHatOpenShift/_git/RP-Config/pullrequest/8338603


absolute paths docs fix

Description
A few sentences describing the overall effects and goals of the pull request's commits.
What is the current behavior, and what is the updated/expected behavior with this PR?
Other changes
Describe any minor or "drive-by" changes here.
Tested
An explanation of how the changes were tested or an explanation as to why they don't need to be.
Related issues

Fixes #[issue number here]

Backwards compatibility
Brief explanation of why these changes are/are not backwards compatible.

jk ignore this, #5815 seemed to have worked


Can't find open campaigns/live channels, despite showing many campaigns/live channels.

Plenty to pick from, can't find them or a live channel?

This is a duplicate of #189


First pass at ste_vec docs for JSONB containment indexing

It's wordier than the doc for the other index types. I might have gone into too much detail - either that, or the other index types need more detail. Unsure.
@coderdan can you fact check my explanation of the purpose of the prefix (salt-like thingo) please?

Looks like @calvinbrewer has actioned your suggestions already, @auxesis .
Let me know when this is good to merge.


Bug: Unable to import TranslocoExtractKeysWebpackPlugin

Is there an existing issue for this?

[X] I have searched the existing issues

Is this a regression?
Yes
Current behavior
It's currently not possible to import the TranslocoExtractKeysWebpackPlugin from '@jsverse/transloco-keys-manager'.
This was working before switching from "@ngneat/transloco-keys-manager": "3.8.0" to "@jsverse/transloco-keys-manager": "5.1.0"

Expected behavior
I expect that this import should still work, as it was working before and is still part of the README.md.
Please provide a link to a minimal reproduction of the bug
https://codesandbox.io/p/sandbox/jsverse-transloco-forked-kn72mv?file=%2Fwebpack-dev.config.ts%3A6%2C1
Transloco Config
No response
Debug Logs
No response
Please provide the environment you discovered this bug in
Transloco: 7.4.3
Transloco Keys Manager: 5.1.0
Angular: 17.3.11
Node: 20.15.1
Package Manager: npm
OS: macOS

Additional context
No response
I would like to make a pull request for this bug
No

Does nobody have the same issue? Am I doing something wrong here?

I did some investigation and could resolve the above error with changing my moduleResolution from node to bundler (wasn't really aware that node means node10).
But I still wasn't able to use the plugin. We are using nx and @angular-builders/custom-webpack:dev-server to setup the plugin. We ended up with receiving a no 'exports' main defined error.
This probably happened because we haven't set type: "module" in our package.json so our custom webpack config file was treated as cjs module. After setting our project to type: "module" we received a lot of errors regarding no existing pollyfills for multiple node packages.
At that point I stopped working on this problem, because it takes too much time. I removed the plugin for now, so we are at least finally able to use the new scope and the new transloco versions.

@krechtern Hey! yes, the package is now ESM, we can also provide a cjs version to allow the import.
Would you like to open a PR for it? 🙂


Sample Snowfakery Recipe to Generate Permutations of Contacts, related Household Accounts, and Opps.

As a project developer, I need to be able to generate series of objects that are permutations of various record types and field values, and all required related objects for that base object.
When building out a membership portal, developers of the portal need to be able to test the interface with members who have all the different membership types and statuses.  To do this a data set must include all the permutations of the membership object (generally a custom object), the contacts that are required for each, accounts for those contacts, and potentially other required objects.

The intent here is a bit different than the goal of #9. Memberships, via the schema project or not, are a useful example of when a team needs a recipe that generates permutations of all options – indeed it was the need to do that which triggered the conversations that led to this project. But it's not the only example. Really any object with a picklist can create the need to have one of each in the output. For example having an opportunity in each stage can be useful, as can having a campaign member in each status.

Do you know whether this functionality is available in snowfakery at this point? If you have more direction, we might be able to include it in the advanced recipe track at the minisprint.


Touchpad Scrolling Not Working in Sway's Tabbed/Stacked Mode

Hello Regolith Team,
I've encountered an issue while using Regolith with the Sway window manager, specifically when windows are in tabbed or stacked mode. The problem is that scrolling through the windows (to change the active one) with the touchpad does not work, whereas using a mouse's scroll wheel functions as expected.
Environment:

Regolith Version: 3.1
Sway Version: 1.8
Operating System: Ubuntu

Steps to Reproduce:

Open multiple windows in Sway under Regolith.
Change the window layout to either tabbed or stacked mode.
Attempt to scroll within a window title using the touchpad.

Expected Behavior:
Scrolling with the touchpad should allow me to change the active window, how it works when using a mouse.
Actual Behavior:
Scrolling with the touchpad has no change in which the active window is, while mouse scrolling works perfectly.
Thank you for your time and effort in maintaining Regolith and Regolith Sway.

I can confirm this behaviour. Does i3 allow scrolling on the window title to change tabs? If it does, you can file an issue with the upstream sway repo here with the i3-compat tag.


Azure CLI on WSL2 doesn't handle full file paths which include symlinks into /mnt/c/Users

Related command
ls -lAF ~/src
lrwxrwxrwx 1 myuser myuser 39 Sep 27 01:49 /home/myuser/src -> /mnt/c/Users/MyUserName/Workspaces/

az deployment group create --name MyClientSandboxDeployment-20221017-1311 \
                           --resource-group MyClient-Sandbox-Test \
                           --template-file /home/myuser/src/MyClient/myclient-azure-prototype/deployments/resource-group/tests/resource-group-override-test.bicep

An error occurred reading file. Could not find a part of the path 'C:\home\myusername\src\MyClient\myclient-azure-prototype\deployments\resource-group\tests\resource-group-override-test.bicep'.

Describe the bug
The Azure CLI translates a full-path filename from the provided linux path to a non-existent, but seemingly equivalent Windows path using Windows path conventions when the linux path contains a symlink that points back into the Windows filesystem.
Best explained by example:
I am primarily developing some code which includes (initially) a bash-based script to setup parameters and then run Azure deployment commands on a MacBook Pro, with an Azure DevOps repo. To test in bash, because I refuse to install brew (don't like all the changes it makes) on my mac (please create a DMG installer like ALL other similar software! i.e. AWS CLI, PowerShell), and therefore can't test there, I have a separate Windows PC, so I clone/pull the repo into VS Code on Windows 11, then want to run this code within Windows Terminal in a WSL2 Ubuntu 20.04 shell. Once I get any bash variant of these helper scripts working, I usually then create an equivalent version in PowerShell. So, I want to edit in VS Code in Windows, not in WSL2.
In order for me to edit in Windows, but run the result in the WSL2 Ubuntu shell, I've created this symlink, which normally works everywhere I've tried it in the past, until now.
ls -lAF ~/src
lrwxrwxrwx 1 myuser myuser 39 Sep 27 01:49 /home/myuser/src -> /mnt/c/Users/MyUserName/Workspaces/

The repo I'm using is cloned in Windows to ~\Workspaces\MyClient\myclient-azure-prototype, so to run the utility script which prepares and runs the az statement shown above, I would (in an Ubuntu shell window):
cd ~/src/MyClient/myclient-azure-prototype/bin
./create-deployment -R MyClient-Sandbox-Test -d tests/resource-group-override-test

This creates a templatefile variable which points to:
templatefile=/home/myuser/src/MyClient/myclient-azure-prototype/deployments/resource-group/tests/resource-group-override-test.bicep

Which due to the ~/src symlink, is really pointing to the equivalent file within the repo on Windows:
C:\Users\MyUserName\Workspaces\MyClient\myclient-azure-prototype\deployments\resource-group\tests\resource-group-override-test.bicep

Running the code results in this error message: "An error occurred reading file. Could not find a part of the path 'C:\home\myusername\src\MyClient\myclient-azure-prototype\deployments\resource-group\tests\resource-group-override-test.bicep'."
You can see how somewhere inside the Azure code which accepts file-based parameters, it is translating the linux full file name, into something which is not either one of the two original full path names of this file. It's using C:\home\myusername\src, where the C:\ and path separators are Windows, the home first directory in the path is from Linux, the myusername part of the path is from Windows but now in lowercase, the src part of the path is from Linux, while the rest of the path is correct on both systems, except for different path separators.
So, the linux path which I provided as a parameter, which works in all other linux commands such as cat $templatefile, is translated by code within az cli into a path which is not valid any more on linux, nor is it correct or valid if used on Windows either.
To Reproduce
Exact steps to reproduce this in the prior section.
Expected behavior
Linux paths which include symlinks into /mnt/c/Users (or similar) should work. Whatever code is translating this path into a variant of the path which is invalid on both the Linux and Windows OSes is broken and should not perform this translation when az code is run on Linux.
Environment summary
az cli installed via standard published method on WSL2 with Ubuntu 20.04. I have zsh along with oh-my-zsh configured on the Ubuntu shell.
Additional context
This is a really annoying thing to workaround, as this will force me to either

Have a separate direct git clone inside the WSL Ubuntu shell, not reached by a symlink, so I could no longer use VS Code to edit and test this code for use in both Ubuntu (bash scripts) and Windows (PowerShell 7 scripts) I'd have to commit each change, then pull on linux. NOT something I want to do.
Translate all absolute paths into relative paths which do not go through the ~/src symlink. This works fine if it's just one repo, but I have separate repos for the templates vs per-client parameters files, so depending on where I am, I have to modify multiple file paths from absolute going through ~/src to get to where I clone all code on Windows.
If someone has a better way to do this sort of cross-platform development, I'm all ears! I want to edit the code in VS Code when working on Windows, and I need to test both bash scripts which must run within the WSL2 and PowerShell scripts which must run within PowerShell, directly in Windows. I need line endings to not get confused in Git. My method worked when using AWS CLI, was surprised it didn't work here with Azure CLI. So, this seems like a bug to me.

@jiasli for awareness

For anyone following this, I had to develop some workaround code in my bash scripts to have them work with the Azure CLI until they get around to fixing this problem.
As mentioned in my second point under additional context, this is complicated when it's not just a single absolute path which goes through a symlink into /mnt/c somewhere. For the first or main path, you can pushd to a known location, such as the HOME of the repo, then convert all relative paths to that starting point.
I use this code at the top to find the repo home based on the location of the directory running the script (so it doesn't matter where I'm running it from or where I clone my repos), and when running on WSL, I perform this adjustment.
# <Skipping comment header, but this is just below>
uname -a | grep "WSL" &> /dev/null && use_relative_paths=1 || use_relative_paths=0 # BUG: Use relative paths on WSL

#  1. Initialize environment
bindir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
home=${bindir%/*}
[ $use_relative_paths = 1 ] && pushd $home &> /dev/null && home=. && bindir=$home/bin # BUG: Use relative paths on WSL
confdir=$home/conf

So, when on WSL, we move to pwd = /home/myuser/src/MyClient/myclient-azure-prototype for the body of the script, and:
home=.
bindir=./bin
confdir=./conf

But when not on WSL, we see the full absolute path and do not adjust pwd.
This code has the concept of a customization repo, that can augment/override what's in $home/conf with what's in $customhome/conf. This repo is likely to be in a different GitHub organization and not a sibling directory in the filesystem, so converting this path from absolute to relative needs to calculate the relative path from the $home of the first repo, which will probably have some ../ parent references in it. It turns out there's a simple program to do this, available in Ubuntu 20.04, allowing use of this code to convert additional absolute paths into relative paths.
[ $use_relative_paths = 1 ] && customhome=$(realpath --relative-to=. $customhome) # BUG: Use relative paths on WSL
customconfdir=$customhome/conf

So, when on WSL, we might have
confdir=../../AnotherClient/anotherclient-azure-custom/conf

But when not on WSL, we see the full absolute path.
At the end of the script, I add this to pop the directory stack and return to the same directory I was in when I started.
[ $use_relative_paths = 1 ] && popd &> /dev/null # BUG: Use relative paths on WSL

So, this works, but I really shouldn't have to do this - I want to use absolute paths and display them to users to avoid the confusion relative paths is likely to create. Hope this gets fixed in a timely manner!

Adding Service team to look into this.


How do I switch to non-bridge mode？

AppBridge Installation successful and work good.
But I want to switch to non-bridging mode.
When I open app in shopify list, Stay on the following token page.
https://domin_xxx.com/authenticate/token?shop=test_xxx.myshopify.com&target=%2Fhome%3Fhost%3DZWx1by10ZXN0OC5teXNob3BpZnkuY29tL2FkbWlu
Specific Detail:
URL
APP URL: https://domin_xxx.com/home
Redirect URL: https://domin_xxx.com/authenticate

.env (The only thing that changed, it can't work.)
SHOPIFY_APPBRIDGE_ENABLED=false

Route::group(['prefix' => config('shopify-app.prefix'), 'middleware' => ['verify.shopify', 'billable']], function () {
    //Home
    require __DIR__ . '/../routes/app/home.php';
});

Stay on the following token.blade.php page.

the app is currently tethered to the app bridge

Because of the tokens we need app bridge. Correct, it's tied to it .

@osiset
Thank you for your reply.

Hi @osiset, will the package support non embedded apps again ?
Basically, my app has 2 sections. One is embedded, and the other one is not. In the embedded section, I need to click a link that opens an external Full screen view (an editor that contains an iframe preview of the shop frontend).
This used to work fine before updating to v17, now, whenever I click on the external link, it authenticates again then redirect to the embedded app instead of opening in full screen.
There is no way of using regular auth only for the non embedded part ?


ghc-modi failed - hGetContents: invalid argument

Hi,
I am having the following error with the plug-in on IntelliJ version 14.
Error:
ghc-modi failed
ghc-modi failed with error: NG BUG: GMEIOException /Users/ME/IdeaProjects/PROJECT_NAME/dist/setup-config: hGetContents: invalid argument (invalid byte sequence)
System Info:
OSX 10.10
cabal-install version <IP_ADDRESS>
ghc-7.8.3
Thanks,

Hi,
What version of ghc-mod are you using? Try to install new version.

Thank you for your help!

@cnsgcu So, why did you close it? :)

The issue seems to be nod in the plugin, bat rather in ghc-mod. https://github.com/kazu-yamamoto/ghc-mod/issues/417


Not able to use the Rest Resources Constructs with Admin API Access Token for Private apps

Issue summary
Trying to understand if I can use the Rest Resources with Private Apps. For an instance, once I initialise a session with the admin access token from the private app. The API call would crap out saying it can't find
I am initialising the session using the Session Construct:
const session = new Session(randomUUID(), process.env.SHOP, nonce(), true)
session.accessToken = process.env.ADMIN_ACCESS_TOKEN_FROM_PRIVATE_APP
const customer = await Customer.find({ session, id: customerId });

Expected behavior
I am expecting the API calls to succeed. This seems to be fine if I opt to use the RestClient construct.
//<EMAIL_ADDRESS>
declare class RestClient extends HttpClient {
    readonly accessToken?: string | undefined;
    private static LINK_HEADER_REGEXP;
    private static DEFAULT_LIMIT;
    constructor(domain: string, accessToken?: string | undefined);
    protected request(params: RequestParams): Promise<RestRequestReturn>;
    protected getRequestPath(path: string): string;
    private buildRequestParams;
}

Actual behavior
Fails to make the API call

Steps to reproduce the problem
You can replicate it with the following steps 👍🏼

Create a private app on a development store admin
Generate the Admin Access Token with the Customer Scope

Add the node api library to your project. And add the following snippet. Replace the env variables and make sure to import the classes.

const session = new Session(randomUUID(), process.env.SHOP, nonce(), true)
session.accessToken = process.env.ADMIN_ACCESS_TOKEN_FROM_PRIVATE_APP
const customer = await Customer.find({ session, id: customerId });

Run it.

Checklist

[ x] I have described this issue in a way that is actionable (if possible)

Looking into the implementation of the base-resources, it just looks like we are using the rest client under the hood. 🤔
https://github.com/Shopify/shopify-node-api/blob/3f1f45a4c374825af22f923eb083a121002552d8/src/base-rest-resource.ts#L106

My bad. Seems like my local env was messed up during the tests. Subsequent tests seems to hit the API correctly after recreating my container. 🙇🏼

My bad. Seems like my local env was messed up during the tests. Subsequent tests seems to hit the API correctly after recreating my container. 🙇🏼


Extra attributes should be forbidden in nested Input models

Nested input models like class BgpAfi(BaseModel) don't inherit from AntaTest.Input meaning they don't forbid extra attributes. This could lead to unexpected behaviors for a user who wants to override a default value but accidently provides the wrong key.
BGP tests for example. If a user provides vrfs instead of vrf, ANTA will silently ignore vrfs and use the default value of vrf. An error should be raised to the user since vrfs is not supported.

Nested input models are being moved over to anta.input_models package and model_config = ConfigDict(extra="forbid") should be added at the same time.


B/simulink errors

Feature or improvement description
The Simulink interface was overwriting the error message when OpenFAST ended with a fatal error, making it difficult to determine why the simulation ended.
Related issue, if one exists
<#632
Impacted areas of the software
Simulink interface
Test results, if applicable
This won't affect any of the current testing suite.

Thanks for fixing this!

Thanks for fixing this!

Debugging is difficult when you have no error messages! .... (stupid global variables)

Debugging is difficult when you have no error messages! .... (stupid global variables)


Add Generators to the extensions section?

Just that. It typically gets talked about as an extension of what's being done with async.

Any link about this?
Personally I'm not convinced that generator is an extension of async. Async function may have been able to reuse generator's mechanism, since they are conceptually similar. However, I don't think it is possible on the language level to utilize async fn as generator.

Alright, just thought it might bear mentioning because of the conceptual similarity. Please close if not pertinent.

Okay, let's close this issue for now.
Given withoutboats' latest blog post (to be added to the post list soon), it is possible that there is going to be a combination of generator and async function to form an ergonomic way for stream (similar to JavaScript's async function*() I would guess). If that becomes a formal plan, generator would likely be tracked as a dependency of that feature.


AArch64 build break: c1_LIRAssembler_aarch64.cpp:210:1: error: control reaches end of non-void function [-Werror=return-type]

Aarch64 currently broken by upstream build break in jdk8u282:
https://bugs.openjdk.java.net/browse/JDK-8258815

Looks to have been fixed upstream, builds now good.

Looks to have been fixed upstream, builds now good.


Reinstate the serialize model

This allows for swapping out model implementations at any level.
cc @jasongrout

:+1:


[Fix] Fix small errors in seg dataset and cfgs

Some small errors, the modifications have been verified.

This PR contains 4 small modifications about data:

Wrap some operations in test_pipeline with MultiScaleFlipAug3D, so that the loaded test data would be List[List[Tensor]] and can be processed correctly by Model.forward_test()
Some small typos in seg dataset cfg
Small bugs in S3DIS data generation scripts
Small bugs in ScanNet data generation scripts

This PR should be merged before we release next version of MMDet3D @ZwwWayne @Tai-Wang.


fix: android push prompt on startup

This PR resolves []
Description

PR Checklist

[ ] I tested my changes on iOS / Android.
[ ] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.
[ ] I added an app state migration.
[ ] I hid my changes behind a feature flag.
[ ] I have prefixed changes that need to be tested during a release QA with [NEEDS EXTERNAL QA] on the changelog.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

We are trying to migrate away from moment towards luxon, but found moment imports in the following new files:

src/app/utils/pushNotificationUtils.ts

See docs.

  Generated by :no_entry_sign: dangerJS against 5ddfe2b611c6a5c9c3cd0fa83e3abc2730a972e3


iOS - Workspace - New user invitation link does not allow entering the new password

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to staging.new.expensify.com
Log in with admin expensifail account
Go to Setting - Workspace - Manage members
As the workspace admin invite a new user (that doesn't have a NewDot account)
Log out of the admin account in NewDot
Navigate to the workspace user email inbox and look for an invitation to the Workspace.
Use the link included in the email to validate the account

Expected Result:
Verify you can complete the validation flow with the link in the invitation email. For iOS/Android to the mobile OldDot app to set up the password
Actual Result:
New user invitation link does not allow validating the account
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[x] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

https://user-images.githubusercontent.com/93399543/215286775-ee6db595-b90d-4e2d-85f3-0a64f633978b.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

@kbecciv Was this tested on other platforms and iOS is the only affected one?

@slafortune Checking with team, will update you shortly

Issue is not longer reproduced

@slafortune Huh... This is 4 days overdue. Who can take care of this?

@slafortune Eep! 4 days overdue now. Issues have feelings too...

@slafortune Eep! 4 days overdue now. Issues have feelings too...

Thanks for checking @kbecciv I'll close this out 👍


Disable resizing

How can I manage to disable resizing?

@berkaey how did you do it?

I just add
resizable: false

to options. turns out menubar merge options to electron itself


Error building Oni after re-basing on master that includes keyboard-layout

When running npm install on master (on Ubuntu) I get:
><EMAIL_ADDRESS>install /path/to/project/oni/node_modules/keyboard-layout
> node-gyp rebuild

make: Entering directory '/path/to/project/oni/node_modules/keyboard-layout/build'
  CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o
In file included from ../src/keyboard-layout-manager-linux.cc:1:0:
../src/keyboard-layout-manager.h:7:22: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>
                      ^
compilation terminated.
make: *** [Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o] Error 1
keyboard-layout-manager.target.mk:96: recipe for target 'Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o' failed
make: Leaving directory '/path/to/project/oni/node_modules/keyboard-layout/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.10.0-35-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /path/to/project/oni/node_modules/keyboard-layout
gyp ERR! node -v v7.10.1
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm ERR! Linux 4.10.0-35-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v7.10.1
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the keyboard-layout package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs keyboard-layout
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls keyboard-layout
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/my-user/.npm/_logs/2017-10-06T11_33_21_501Z-debug.log

After executing sudo apt install libx11-dev the error is changed to:

make: Entering directory '/path/to/project/oni/node_modules/keyboard-layout/build'
  CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o
../src/keyboard-layout-manager-linux.cc:5:37: fatal error: X11/extensions/XKBrules.h: No such file or directory
 #include <X11/extensions/XKBrules.h>
                                     ^
compilation terminated.

...

Doesn't seem I am on the right track.
What am I missing/doing wrong?

Hi @TalAmuyal , just responded to you on gitter too. Sorry for the issues here - I believe you also need libxkbfile-dev as a dependency.
Can you try running sudo apt install libxkbfile-dev and npm install + npm run build again and see if that fixes the issue?
I also updated the Development section of our wiki with some of these notes

It helped, but now npm run build yields:
Error happened when running command /path/to/project/oni/node_modules/bs-platform/bin/bsb.exe with args [ '-make-world' ]

Glad that original error is resolved!
For the bsb.exe error - I'm actually not sure what causes it. It used to happen on my Ubuntu box but it no longer occurs for me. You can try deleting the node_modules folder and running npm install again.
Alternatively, that one is safe to ignore - you can run Oni with that error (that build step is for the reason / ocaml plugin, so as long as you aren't using that you're okay).

Tried removing the node_modules folder, now npm install generates:
npm ERR! Linux 4.10.0-35-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v7.10.1
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR<EMAIL_ADDRESS>postinstall: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'node scripts/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bs-platform package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs bs-platform
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls bs-platform
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

:(

Hmm, would you mind including the full error log? npm install --loglevel verbose should save a npm-debug.log.
In addition, what node version are you using? node --version and npm --version?
There are several issues in the bucklescript repo related to this, like:

bucklescript/bucklescript#773
bucklescript/bucklescript#2051
bucklescript/bucklescript#1446

In addition, looks like there is a newer version of bs-platform (we're on 1.8.0, looks like it's up to 1.9.3 now - might be worth trying that out...)

Well, tried rm -rf node_modules && npm install --loglevel verbose && npm run start a few times and now it works...
Doesn't seems to be a good thing though...
Will try a few more things and report back.

Interesting... I'm glad that you got it working! It's always a bit disconcerting when it starts working magically, though... 😄

I'll close this out since @TalAmuyal since it started working... but let me know if you hit this again or there is any new info we can use to troubleshoot.