Keystore & password

Is there a way to pass the keystore file in the parameters ? And also the password ? (using github secrets)
Should it be in the customParameters ?

@Haelle thanks for your request!
I do not know your current context. Could you tell us a bit more about what you are trying to do? Links to official documentation of related tools would be very helpful too.
Technically you could pass anything in customParameters but it depends on the build method what happens to it.
What would be your suggested approach or desired API?

To deploy to the Google PlayStore you need to sign your application.
It's done with a keystore.
In Unity you can then set your keystore in the Publishing menu.
And everytime you want to build your app you need to provide the password of the keystore via the Editor actually.
So for instance via Unity Cloud build you can provide in their web interface the keystore and the password (cannot show sorry). Here is the info in the FAQ section Android, 2rd question
I've never worked with the command line tool, so currently I have no idea how you're doing the command line build... I suppose there is a way to sign the app (as Unity Cloud Build does it !)

Looking at here, the GabLeRoux unity3d library lets you specify the keystore by binary64  formatting it and putting it in a repos' secret variable

@Haelle did you find a solution for this?

Feel free to open a PR with your suggested approach. You're free to make any additions to the builder method, as long as it's usable for everyone.

This is in pending on my side, I'll come back to it later

@Haelle did you work this out? Anything we can reuse for everyone?

No sorry CI is postponed indefinitely for the moment

Added these parameters: androidAppBundle, androidKeystoreName, androidKeystoreBase64, androidKeystorePass, androidKeyaliasName, androidKeyaliasPass
I tested with my personal project, but maybe someone else can test with their project to confirm?
You would pass through GitHub Secrets in your workflow like this:
      - uses: webbertakken/unity-builder@6ece6447b229baedca54df3aae22fc3d097bc4f3
        with:
          unityVersion: ${{ matrix.unityVersion }}
          targetPlatform: ${{ matrix.targetPlatform }}
          buildsPath: builds
          androidAppBundle: true
          androidKeystoreName: keystore.keystore
          androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
          androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }}
          androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }}
          androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }}

@davidmfinol did you successfully built & sign android?
I had working Android build then added the android signing options in order to publish to Google Play and it fails:

UnityException: Can not sign the application
Unable to sign the application; please provide passwords!

https://github.com/louis030195/niwrad/runs/1221825955?check_suite_focus=true#step:4:3197
However i properly set my secrets etc.

Run<EMAIL_ADDRESS>with:
customParameters: -niwradMode offline
projectPath: .
unityVersion: 2019.4.11f1
targetPlatform: Android
buildMethod: Editor.Builds.BuildOptions
androidAppBundle: true
androidKeystoreName: ***.keystore
androidKeystoreBase64: ***
androidKeystorePass: ***
androidKeyaliasName: ***
androidKeyaliasPass: ***
buildsPath: builds
kubeContainerMemory: 800M
kubeContainerCPU: 0.25
kubeVolumeSize: 5Gi
versioning: Semantic
env:
UNITY_LICENSE: ***

https://github.com/louis030195/niwrad/runs/1221825955?check_suite_focus=true#step:4:1
What is actually "androidKeystoreName" ? Since you store the b64 keystore in your secrets ...
I generated my keys using unity IDE btw (first tried CLI but better trust Unity ...)

I had working Android builds, but they've been broken for a while now, since the Android images don't have the Android NDK properly set. Are you able to get past that error?
The androidKeystoreName is the name of the file, while androidKeystoreBase64 is the contents of that file, encoded in base64.
Your workflow looks good to me. Are you applying the passwords in your Editor.Builds.BuildOptions method?
If not, see https://github.com/finol-digital/Card-Game-Simulator/blob/e3d90591b5df4b0b4be9dc64a913da5084eeedad/Assets/Scripts/Cgs/Editor/BuildCgs.cs#L35 for how it can be done.

I had working Android builds, but they've been broken for a while now, since the Android images don't have the Android NDK properly set. Are you able to get past that error?
The androidKeystoreName is the name of the file, while androidKeystoreBase64 is the contents of that file, encoded in base64.
Your workflow looks good to me. Are you applying the passwords in your Editor.Builds.BuildOptions method?
If not, see https://github.com/finol-digital/Card-Game-Simulator/blob/e3d90591b5df4b0b4be9dc64a913da5084eeedad/Assets/Scripts/Cgs/Editor/BuildCgs.cs#L35 for how it can be done.

I don't understand "The androidKeystoreName is the name of the file", you don't commit any keystore file anywhere, it's just base64 content ? What file are you referring to ?
I think this doc is much nicer, I hope something similar would be put on the unity-ci website https://gitlab.com/gableroux/unity3d-gitlab-ci-example#android-support
Thanks for the build options, now I'm stuck at the same point as you : Android NDK, would be nice to automatically use an image with android ndk whenever it's required (building .aab ?).
Also wondering how it works for the api levels if the image can build for any sdk version ?

This is the PR that indended to do that (until i renamed master to main). It's a work in progress by @GabLeRoux
Feel free to contribute and help out.
Could you also elaborate on what's nicer about it exactly? Perhaps we could learn from that.

Also curious on that, but I happen to have gone through the unity-ci docs for github-actions today and I think that the main difference is the approach.
Right now, github-actions documentation provides parts of code that you need to assemble on your own to get things working where on unity3d-gitlab-ci-example's side, you simply grab the files, add them to your project and follow activation steps.
I think this can be easily solved by providing working files out of the box in the documentation and then do the more modular explanation on how things work and how they can customize it for people who want to go deeper.
I'd say most of the use cases are the following:

I want automatic builds for my game for my platforms, ie; windows, linux, mac, webgl, ios, android
I want to run tests in the cloud for edit and play mode
If I have code coverage out of the box without efforts, why not. (replace code coverage with wathever feature we may have an example for that is easy to integrate).

Everything else is probably secondary.

Yea fully agree! Anyone is free to edit the docs or describe feature requests here.
I see you've already created one issue regarding improvements https://github.com/Unity-CI/Website/issues/46 @GabLeRoux, thanks!

Since keystore & password are supported now, do we want to close this issue?
Or do we want to keep this issue open until the documentation is improved?

Since keystore & password are supported now, do we want to close this issue?
Or do we want to keep this issue open until the documentation is improved?

Yea lets close it. Anyone is free to add to the docs.

Yea lets close it. Anyone is free to add to the docs.


Migrations: Allow multi-statement history table create scripts

Fixes #3963

:shipit:

And this will still work with SQL CE?

@ErikEJ Yes, the only real case is for schemes which I assume are ignored there.

Note, this is just about the history table

Thanks. Yes, schemas are not a SQL CE concept  - too small for that :-)


eigen: 3.3.9 -> 3.4.0

Motivation for this change
Updated Eigen to its latest stable version.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[X] Fits CONTRIBUTING.md.

Sorry, should have checked that #139281 existed before opening.


AttributeError: 'Request' object has no attribute 'options'

Describe the bug
AttributeError: 'Request' object has no attribute 'options' when trying to get DriveItem content.
To Reproduce
Steps to reproduce the behavior:
data = await client.drives.by_drive_id(drive_id).items.by_drive_item_id(item_id).content.get()

Expected behavior
retrieved bytes object from DriveItem
Additional context
relevant package versions
$ pip list |grep -E "^(azure|micro|ms)"
azure-core                           1.26.4
azure-identity                       1.12.0
microsoft-kiota-abstractions         0.5.1
microsoft-kiota-authentication-azure 0.2.0
microsoft-kiota-http                 0.4.1
microsoft-kiota-serialization-json   0.3.2
microsoft-kiota-serialization-text   0.2.0
msal                                 1.22.0
msal-extensions                      1.0.0
msgraph-core                         1.0.0a4
msgraph-sdk                          1.0.0a12

stacktrace
  File "/home/user/example/example/microsoft365.py", line 66, in __walk_folder
    file_data = await client.drives.by_drive_id(drive_id).items.by_drive_item_id(item.id).content.get()
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/msgraph/generated/drives/item/items/item/content/content_request_builder.py", line 56, in get
    return await self.request_adapter.send_primitive_async(request_info, "bytes", error_mapping)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/httpx_request_adapter.py", line 205, in send_primitive_async
    response = await self.get_http_response_message(request_info)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/httpx_request_adapter.py", line 320, in get_http_response_message
    resp = await self._http_client.send(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/httpx/_client.py", line 1617, in send
    response = await self._send_handling_auth(
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/httpx/_client.py", line 1645, in _send_handling_auth
    response = await self._send_handling_redirects(
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/httpx/_client.py", line 1682, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/httpx/_client.py", line 1719, in _send_single_request
    response = await transport.handle_async_request(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/msgraph_core/middleware/async_graph_transport.py", line 21, in handle_async_request
    response = await self.pipeline.send(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 31, in send
    return await self._first_middleware.send(request, self._transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/redirect_handler.py", line 65, in send
    response = await super().send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 57, in send
    return await self.next.send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/retry_handler.py", line 77, in send
    response = await super().send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 57, in send
    return await self.next.send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/parameters_name_decoding_handler.py", line 48, in send
    response = await super().send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 57, in send
    return await self.next.send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/msgraph_core/middleware/telemetry.py", line 48, in send
    response = await super().send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 54, in send
    response = await transport.handle_async_request(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/msgraph_core/middleware/async_graph_transport.py", line 21, in handle_async_request
    response = await self.pipeline.send(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 31, in send
    return await self._first_middleware.send(request, self._transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/redirect_handler.py", line 65, in send
    response = await super().send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/middleware.py", line 57, in send
    return await self.next.send(request, transport)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/retry_handler.py", line 68, in send
    current_options = self._get_current_options(request)
  File "/home/user/.cache/pypoetry/virtualenvs/example-r_fbvPX4-py3.10/lib/python3.10/site-packages/kiota_http/middleware/retry_handler.py", line 111, in _get_current_options
    request_options = request.options.get(RetryHandlerOption.get_key())  # type:ignore
AttributeError: 'Request' object has no attribute 'options'

Any further updates on this? I'm also encountering it, with this code:
      def get_detected_apps(self) -> pl.DataFrame:
        apps_array = []

        async def _get_detected_apps() -> None:
            apps = await self._client.device_management.detected_apps.get()

            for i in range(len(apps.value)):
                apps_array.append(apps.value[i])

            print(len(apps_array))

            while apps is not None and apps.odata_next_link is not None:
                apps = await self._client.device_management.detected_apps.with_url(apps.odata_next_link).get()

                for i in range(len(apps.value)):
                    apps_array.append(apps.value[i])

                print(len(apps_array))

        asyncio.run(_get_detected_apps())

        df = pl_df(apps_array)

        return df

It seems to get about 2600 apps in (50 per page), and then fails.
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "...\env\Lib\site-packages\kiota_http\middleware\url_replace_handler.py", line 58, in _get_current_options
current_options = request.options.get(  # type:ignore
^^^^^^^^^^^^^^^
AttributeError: 'Request' object has no attribute 'options'

thanks for reporting this issue, we have since released a new version of the SDK which this issue doesn't apply to. We encourage you to migrate to the new version and open a new issue if you still need help


Pauses don't work with subtitles

MWE:
---
title: A title
subtitle: A subtitle
format: clean-revealjs
---

## No subtitle

This pause works.

. . .

Nice.

## With subtitle

### Subtitle

This pause doesn't work.

. . .

Not nice.

Incremental bullet points do work, however, regardless of subtitle.
## With subtitle

### Subtitle

Incremental bullet points still work.

::: {.incremental}
- First point.
- Second point.
:::

This is a quarto / revealJS issue, not a template issue. Fragments can be used to achieve your desired behaviour.
---
title: A title
subtitle: A subtitle
format: clean-revealjs
---

## No subtitle

This pause works.

. . .

Nice.

## With subtitle

### Subtitle

This pause should be replaced by a fragment

<!-- . . . -->

:::{.fragment}
Much better.
:::

<br>                                <!-- just for aesthetics -->

:::{.fragment}
### Second Subtitle

Fragments can also be used to make subtitles appear sequentially.
:::

Ah, thanks for spotting this (and the fragment tip) @zakvarty.
Do you know if an upstream issue has been filed?
I'll close in the interim.
P.S. Sorry for the slow reply; I missed your comment while I was out on vacation.


License missing

Hi Max,
thank you for providing this! We were thinking about incorporating it in our own calibrations but we need to check licensing before that. Could you add an MIT (or similar thing) to this package as well?
Thank you!

Hey @behrisch, cool to see that you found this! I've added an MIT License.
I wrote this as the sole user, so its sparsely documented and likely contains bugs. I'll be happy to review any PRs to improve the project if you do decide to move forward with using the library!


Cleanup decl_check

bors r+

:+1:
btw, one important task in this area is to make genration of fixes lazy, a-la assists.z


Fix gradient accumulation in trainings recipes

Hello,
A generic bug in the gradient accumulation when training LLMs has been discussed recently by unsloth.ai: https://unsloth.ai/blog/gradient
If I understood correctly the fix would be fairly simple and would affect this line of code (this is true for all recipes):
https://github.com/pytorch/torchtune/blob/ca37c590d0a22992ec2e0236422db242383ad61b/recipes/full_finetune_single_device.py#L628
It would be something similar to this: loss = loss / self._gradient_accumulation_steps by loss = loss / batch["tokens"].numel() to avoid small samples to have more weights than large samples when accumulating.
It might not be as straightforward and a closer look should be taken here: https://github.com/unslothai/unsloth/commit/e210840ba97a5837ca59fc73ede47b56f10772dd

Hi @Optimox thanks for creating this issue. This is on our radar already, see #1875. I need to get back to do it to do some cleanup, but hoping to land in the next couple of days here.

Oh great, sorry for the duplicate!


Feature request: add autoupdate

Hi, I would write a PR my self (wanted to) but I don't have much time. But you can add a file on your git repo that indicates actual version number then on startup check against your version on program and then it asks user if he want to update. If you want full auto update then you can add a line to the version number pointing to last TAG and download, so you can get the zip and uncompress it.

Looks like the URL in question is https://api.github.com/repos/RupertAvery/DiffusionToolkit/tags, ok I'll try it.

It's implemented. Does some inital testing and it should work. Maybe you could do some testing too? change the local version.txt and then allow it to "update"

It worked fine for me, it downloaded the new version when lowering the number

Thanks, closing the issue


Refactor with tests to fix create_adjacent_tables.py

This really is a refactor/test sort of ticket. First example of this is the download_data() function in create_adjacent_tables.py. The test to reproduce the errors it raises is in tests/test_create_adjacent_tables.py, specifically:
@pytest.mark.xfail(reason="str/Path error")
def test_download_mitchells() -> None:
    create_adjacent_tables.download_data()

I think this is done? @griff-rees sent you some data as an output, can you check it?


Discussion: L1BlocksRange is breaking test_run.ipynb

The current version of https://github.com/BlockScience/aztec-gddt/tree/ock/feb-19-24/variable-phase-duration
changes the phase_duration paramters in AztecModelParams with an L1BlocksRange class inheriting from NamedTuple that uses min_blocks and max_blocks.
For some reason, this is leading to an error in line 89 of sim_run.py
df = df.assign(**select_config_M_dict(configs, 0, selected_params))
ValueError: Length of values (2) does not match length of index (701)
FIX: Can probably be worked around by removing the L1BlocksRange and simply hard-coding e.g. phase_duration_proposal_min_blocks and phase_duration_max_blocks as two separate values. I am more curious what is throwing this issue.

This is actually an issue with cadCAD.tools, on which parameters that are passed as lists are incorrectly parsed. I'll commit a workaround.


Use SizeProvider for all sizings

As a developer I should use the SizeProvider from Style lib for all sizing.
Remove StyleUtils sizing.
Acceptance criteria:

Example app or TIKI app working with SizeProvider.


How to create a keytab file for cross domain environment ?

Can someone help me on how to create and use keytab file in a cross domain environment?
Here is my scenario:
I have installed my java application in node 2 of Domain A and my MS SQL Server is running on Domain B where the AD for B is hosted. I would like to know how & where to create keytab file and use it in my java application?
I have created same account in both Domain A & B and created SPN in Domain B as<EMAIL_ADDRESS>&&<EMAIL_ADDRESS>

Hi @poornics09,
You should be able to create a keytab using ktpass command.
ktpass /princ user@domain /pass password /ptype KRB5_NT_PRINCIPAL /out mykeytab.keytab
Once the keytab is created, you will need to specify it in JAAS Login Configuration file. Your configuration file would be similar to
SQLJDBCDriver {
 com.sun.security.auth.module.Krb5LoginModule required useKeyTab=true useTicketCache=false renewTGT=false doNotPrompt=true storeKey=false
    debug=false  keyTab="mykeytab.keytab";
};

Hi @ulvii
Thank you for your response. Should I create keytab on the AD where the SQL server is running ?
I did in the same way but my keytab file is not working. Please refer my another post here for further details https://github.com/scgray/jsqsh/issues/63

Hi @poornics09 ,
This is more of a Kerberos cross domain setup issue. I would suggest to take a look at the following to troubleshoot:

https://docs.microsoft.com/en-us/sql/connect/jdbc/using-kerberos-integrated-authentication-to-connect-to-sql-server?view=sql-server-2017
https://blogs.msdn.microsoft.com/psssql/2014/06/26/getting-cross-domain-kerberos-and-delegation-working-with-ssis-package/
https://blogs.msdn.microsoft.com/anthonw/2006/08/02/how-does-authentication-work-cross-domain/
https://sqlcan.com/2013/07/29/cross-domain-authentication-for-sql-server/

Hope this helps.


fix github workflow dir name

What type of PR is this?
/kind bug
What does this PR do / why we need it:
This PR updates the dir name workfow to workflows to fix github-actions trigger issue on repo
Have you updated the necessary documentation?

[ ] Documentation update is required by this PR.
[ ] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
Test acceptance criteria:

[ ] Unit Test
[ ] E2E Test

How to test changes / Special notes to the reviewer:

/lgtm

/test v4.14-kuttl-parallel

/retest


Train config fix v3

Fixed intialize_dataset to take config as an argument and also deleted the notebook that was pushed with it

@ms475 merge conflicts must be resolved


in ios main content highlight,mode change is working but in subContent like  main content topics details  highlight,mode change,font change not working And in Android all things working fine

Issue / Feature -
Platform (android, iOS or both) -
Crash / Error -
Steps to reproduce / Describe in detail -


How to include CSS from npm modules?

Hi, I'm trying to figure out if including CSS from npm modules is something that Brunch supports.
It's really hard to piece together from the guide and issues.
Perhaps an additional section of the guide would be helpful? What do you think?
I'm just trying to get https://www.npmjs.com/package/skeleton-css included in my brunch build here:
https://github.com/ivanoats/elm-brunch-starter

NPM support is a bit broken at this moment. We're fixing it.

@paulmillr Any progress on this front? Are there any known workarounds aside from copying the CSS out of the npm_modules/module-name folder and into the assets or vendor folders? Obviously that's a crappy solution but it's all I can think of.

Use npm.static.

Aha, thanks!


"CAMEL-16774:camel-debezium - Upgrade to 1.6"

CAMEL-16774:camel-debezium - Upgrade to 1.6

Hey @ramu11 , sorry I realized the PR is against the wrong branch (master), can you please open a new PR against the new main branch? Thanks

@omarsmak ,Thanks  I will raise new PR on main branch


JSDoc to Type Annotations Codefix And @typedef

Suggestion
Currently the JSDoc to TS types codefix does not
🔍 Search Terms

jsdoc @typedef
typedef codefix

Found https://github.com/microsoft/TypeScript/issues/19285 but after trying out the code action in the editor it doesn't seem like
✅ Viability Checklist
My suggestion meets these guidelines:

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[X] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
Currently the annotateWithTypeFromJSDoc codefix does a great job at handling many cases for converting JSDoc to types. However it seems that it does not follow type defs that have been introduced via @typedef, leaving you will unresolved references. Since the compiler is able to emit type aliases from @typedef references it seems like there is some missing functionality in this codefix or that a code fix could be introduced for @typedef references in TS files to convert to a type alias.
📃 Motivating Example
Before:

After:

💻 Use Cases
I think the uses cases are covered in #48982, but in general we are trying to convert millions of lines of JS to TS, being able to leverage as much of the static information we already in files to produce valid types would be very helpful.

It’s intentional that JSDoc types are only resolvable in JS files. So to clarify, you’re suggesting an additional codefix/refactor to convert @typedefs to type aliases? It actually sounds like you probably want a CLI tool, though, i.e. #19285.

Currently the annotateWithTypeFromJSDoc codefix in the service leaves you with unresolved references. Why suggestion is to make a codefix/refactor for @typedefs and/or modifying annotateWithTypeFromJSDoc to leverage that same codefix.

This may not be super easy, but ideally beneath each typedef declaration, we would generate an equivalent interface or type alias. Do we already have a refactoring to convert a typedef to an alias?

We don’t. I really thought we did.

I can try and take a stab at this. Should this be a refactoring or a codefix?

I think a fix would be ok since the typedefs aren’t going to do anything in .ts files... using a codefix implies issuing a suggestion diagnostic, and we try to avoid doing that unless we think something is actually wrong. Having a @typedef in TS where it’s meaningless meets my bar for “actually wrong.” @DanielRosenwasser what do you think?


Feature/travis ci

[ ] @sneal

Travis-Ci build added
TeamCity build added
Rakefile added
Spec tests added
Kitchen updated

Addresses Issue https://github.com/daptiv/seven_zip/issues/8

@heathsnow version.txt file shouldn't be committed.

@sneal

removed verson.txt (git rm version.txt)

LGTM. I'm going to bump the major version to v2.0.0 and release to SuperMarket sometime in the near future. There's quite a few changes in the master branch, some of which are breaking changes.

Sounds good.  I'll leave this open and you can merge when you do the SuperMarket release.  Feel free to tag w/2.0.0 as well :)


A tutorial would be appreciated!

I know you wrote down how this is supposed to work, but its pure non-sense for someone who isn't that deep into this stuff. I would appreciate a tutorial on how this works exactly.
Cheers

Brain.exe stopped working.


isNull, isUndefined convenience functions

I was writing some code checking for null and undefined and found it awkward. Originally I tried %raw which worked but wasn't pretty. I  tried a bunch of Nullable.toOption and then checked for None and that was a mess. Then I realized I could use the == operator, but that also wasn't pretty. There was the uncertainty of do I use == or ===. In JavaScript null==undefined I think. The worst is if you are checking if something is null or undefined...
Nullable.make(obj)==Nullable.null || Nullable.make(obj)==Nullable.undefined
Nullable.make(obj).isNullOrUndefined

So here are some convenience functions like Nullable.isNull and Nullable.isUndefined that are analogous to Option.isNone and Option.isSome that make the code more readable. Includes tests and docs.

this could be simplified with v11 thanks to the new representation of untagged variants that will allow Nullable.t to be defined like this:
module Nullable = {
  @unboxed type t<'a> = Present('a) | @as(null) Null | @as(undefined) Undefined
}

Then those utility functions could be replaced with a simple pattern matching.

It's not related to the post, but I've just thought of a possible problem that Nullable.t<Nullable.t<string>> like Present(Null) is matched as Null which might cause problems. Maybe not a big problem since it wasn't working before as well. But to make it work correctly and improve DX I think that @unboxed types should collapse like Nullable.t<Nullable.t<string>>->Nullable.t<string>
So maybe we should recover the @cristianoc's idea from some time ago? https://forum.rescript-lang.org/t/rfc-automatic-optional-chaining/3791/17?u=dzakh

It's not related to the post, but I've just thought of a possible problem that Nullable.t<Nullable.t<string>> like Present(Null) is matched as Null which might cause problems. Maybe not a big problem since it wasn't working before as well. But to make it work correctly and improve DX I think that @unboxed types should collapse like Nullable.t<Nullable.t<string>>->Nullable.t<string>
So maybe we should recover the @cristianoc's idea from some time ago? https://forum.rescript-lang.org/t/rfc-automatic-optional-chaining/3791/17?u=dzakh

That idea amounts to accepting that nested nullable is the same as nullable.
One can add a convenience function to that effect.

Even if pattern matching can be used, I still think having boolean-returning convenience functions as in this PR are useful because they are easily discoverable and can sometimes be used for more concise code than pattern matching. I don't have my code in front of me but know I have often used Option.isNone and Option.isSome even though I could use pattern matching for that.

yeah I agree, those utility functions can come handy from time to time (eg as a parameter of a filter function).


Lack of namePrefix leads to duplicate events when used for multiple frames on one domain

We are having an interesting problem with the currently live version (
https://az416426.vo.msecnd.net/scripts/a/ai.0.js) that still seems to be an issue with the betaRC2 version.
Bug
If multiple pages on one domain name use appInsights, there are race conditions
Repro

Add appInsights script reference to the head of a page, using ikey1.
Add a child iframe and with appInsights script reference in its head, using ikey2.
Send events from both frames.
Subject to timing race conditions, you will see duplicate events being sent in Fiddler.  The usual repro is that you have a call to dc.visualstudio…. with a few events from ikey1, then another event very shortly thereafter with the same events from ikey1 + some ikey2 events.

Cause
This appears to be the result of all AI script references on a single domain name sharing local storage, and all of them have the same hardcoded name for their buffer management:
r.BUFFER_KEY="AI_buffer",r.SENT_BUFFER_KEY="AI_sentBuffer"
As a result, they can fight over the queue and duplicate each others events.
Resolution
It looks like namePrefix would solve this, but when I provide a value for namePrefix it appears to 1) be ignored and 2) does not get applied to the buffer names anyway.
Is this wrong, are there any other workarounds I am missing?

@jasmcc Thanks for pointing this out. Looks like it is ignoring the setting for the session storage stuff. I'll add it in and release it with rc2

Marking this as resolved. Will be released as part of rc2

Hi,
I don't think this issue is resolved. I'm using ai.2.min.js with namePrefix and still seeing duplicate events between a parent and child frame. I've set up a simple test that repros consistently. Should I add details here or open a new issue?

Yes you can just post the repro here

parent.html
-------------
<script type="text/javascript">
        var sdkInstance="appInsightsSDK";window[sdkInstance]="appInsights";var aiName=window[sdkInstance],aisdk=window[aiName]||function(e){function n(e){i[e]=function(){var n=arguments;i.queue.push(function(){i[e].apply(i,n)})}}var i={config:e};i.initialize=!0;var a=document,t=window;setTimeout(function(){var n=a.createElement("script");n.src=e.url||"https://az416426.vo.msecnd.net/next/ai.2.min.js",a.getElementsByTagName("script")[0].parentNode.appendChild(n)});try{i.cookie=a.cookie}catch(e){}i.queue=[],i.version=2;for(var r=["Event","PageView","Exception","Trace","DependencyData","Metric","PageViewPerformance"];r.length;)n("track"+r.pop());n("startTrackPage"),n("stopTrackPage");var o="Track"+r[0];if(n("start"+o),n("stop"+o),!(!0===e.disableExceptionTracking||e.extensionConfig&&e.extensionConfig.ApplicationInsightsAnalytics&&!0===e.extensionConfig.ApplicationInsightsAnalytics.disableExceptionTracking)){n("_"+(r="onerror"));var s=t[r];t[r]=function(e,n,a,t,o){var c=s&&s(e,n,a,t,o);return!0!==c&&i["_"+r]({message:e,url:n,lineNumber:a,columnNumber:t,error:o}),c},e.autoExceptionInstrumented=!0}return i}
        (
            {
                instrumentationKey: "5b4cda77-fb98-4b2e-bfdb-39be28aa6bf9",
            }
        );
        window[aiName]=aisdk,aisdk.queue&&0===aisdk.queue.length&&aisdk.trackPageView({});
        let counter = 0;
        while (counter < 120) {
                appInsights.trackEvent({ name: "JGS2 Parent Test Event" }, { embedURL: window.location.href, parent: counter });
                counter++;
        }
        console.log('parent: ' + counter);
        </script>
    ...
    <iframe src="/frame.html"></iframe>```

frame.html
```
When I query the logs for parent.html in Azure, I get dupes for every parent event. If I remove the child iFrame, I see the expected # of events (no dupes).
customEvents
| where name contains "JGS"
| extend realTime = tostring(timestamp)
| summarize count() by name, user_Id, session_Id, tostring(customMeasurements), realTime | where count_ > 1 ```

Let me know if you need additional details. Thanks.

Here are the results of the above log query, fyi.
ai_query_data.xlsx

Thanks for the repro and all of the details! I've addressed this in #919 which will land in 2.0.1. The npm package has been published already and the CDN will be updated this coming Monday.

Great! Thanks for the quick response.

Are there any updates I need to make on my end to pull down the 2.0.1 release? Pointing at https://az416426.vo.msecnd.net/next/ai.2.min.js doesn't appear to include the namePrefix fix.

Hey @3xj, try this one:
https://az416426.vo.msecnd.net/beta/ai.2.min.js

Ah, cool, that's got it, thanks! I'm no longer seeing the dupes using the /beta path.
scripts/b/ is considered the stable release?


fix logic error in writepackedguid

i tried to get creatures to spawn in the sandbox and found a logic error in writepackedguid

Thanks! Greatly appreciated.


Backup/Restore feature should be avaiable on threebot deploy machines only

Description
Backup actors can be called from locally installed threebot where setup is not done right. They should be disabled in locally(installed without deployer) threebots where there is no access to the backup servers.
Steps to reproduce
This is not secured, as anyone can call it with a different name hence initializing backup for other 3bots

https://deploy3bot-2.grid.tf/threebot_deployer/actors/backup/init

https://github.com/threefoldtech/js-sdk/blob/06b66c5552f35800f4e95a78f173eabbb2944b5b/jumpscale/packages/threebot_deployer/actors/backup.py#L26

Suggested approach:

Move actor logic to bottle server level
Check if the user not authorized(localhost) then the backup feature is disabled in the admin dashboard

verified

in local, can not backup as below

sdk

commit ee9750bfc45e14d3c81eea7a77edd1bb5d166095 (HEAD -> development, origin/development, origin/HEAD)
Merge: 81773bf8 ef9b1a9c
Author: xmonader<EMAIL_ADDRESS>Date:   Tue Sep 8 10:09:02 2020 +0200

    Merge pull request #1049 from threefoldtech/development_reuse_error_message

    explain reuse in apps error messages


SIMDUTF_CAN_ALWAYS_RUN_* macros broken

As mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=2273542#c14 the SIMDUTF_CAN_ALWAYS_RUN_{HASWELL,ICELAKE,WESTMERE} macros are broken at least for GCC.
This is because GCC (since ~4.7 when not using -save-temps, since 14 when preprocessing separately from compilation) on #pragma GCC target ISA changes undefines/defines the predefined preprocessor macros like __AVX2__, so that they reflect the current set of the enabled/disabled ISAs in the region.
When you
#define SIMDUTF_CAN_ALWAYS_RUN_AVX2 __AVX2__
#if SIMDUTF_CAN_ALWAYS_RUN_AVX2
#else
#pragma GCC push_options
#pragma GCC target ("avx2")
#endif
...
#if SIMDUTF_CAN_ALWAYS_RUN_AVX2
#else
#pragma GCC pop_options
#endif

and compile this with -mno-avx2, the first SIMDUTF_CAN_ALWAYS_RUN_AVX2 use will evaluate to 0 because __AVX2__ is not defined, but then #pragma GCC target ("avx2") defines it, on the second use it will evaluate to 1 because __AVX2__ is defined to 1 there and finally #pragma GCC pop_options will undefine it again.
The code clearly expects it to evaluate the same in both cases, otherwise there is a misbalance, which in the rhbz case causes unsupported_implementation to be compiled with avx2,bmi,lzcnt,popcnt isas.
I'd suggest either change macros like:
#define SIMDUTF_CAN_ALWAYS_RUN_HASWELL ((SIMDUTF_IMPLEMENTATION_HASWELL) && (SIMDUTF_IS_X86_64) && (__AVX2__))

to
#if ((SIMDUTF_IMPLEMENTATION_HASWELL) && (SIMDUTF_IS_X86_64) && (__AVX2__))
#define SIMDUTF_CAN_ALWAYS_RUN_HASWELL 1
#else
#define SIMDUTF_CAN_ALWAYS_RUN_HASWELL 0
#endif

Then it will have a constant value through the whole compilation unit.

What GCC normally uses in its intrinsic headers is:
#ifndef __AVX2__
#pragma GCC push_options
#pragma GCC target("avx2")
#define __DISABLE_AVX2__
#endif /* __AVX2__ */

at the start and
#ifdef __DISABLE_AVX2__
#undef __DISABLE_AVX2__
#pragma GCC pop_options
#endif /* __DISABLE_AVX2__ */

at the end.

Solved with last release. Thanks.


Invalid header bad custom tests

table3.p4 and switch.p4 are bad custom tests that need to set the header to valid but currently don't.
tests failing: table3.stf, switch.stf

hashidentity.stf also needs to set the header to valid.


[Proposal] Use Kotlin Multiplatform to share business-logic between platforms

Why?
Applications have two type of code: platform-specific and platform-agnostic code. To create the best UX with the least effort, we should seek the best tool that makes the distinction easy to translate into code.
Native vs React Native vs Kotlin Multiplatform
Fully native implementations don't leave much room for reusing platform-agnostic code, while React Native makes writing platform-specific code hard. Kotlin Multiplatform strikes the best balance so far in my experience.
I'd be happy to start off with introducing Kotlin Multiplatform in from of a PoC by sharing the database logic between iOS and Android using cashapp/sqldelight.
Resources

KMP Case Studies

this is a huge push up for the project! thank you so much for the help, anything you need please let me know 😃


Perform serialization of KES and DSIGN sign keys in MLocked memory

We will need this for a KES Agent: in order to send and receive keys over a secure network connection, we have to serialize and deserialize them. The serialized format is still just as confidential as the deserialized form, so we need to treat them with the same care, and that involves storing them in mlocked memory.
We also need to make sure no intermediate values ever reach unprotected memory, so we cannot use the usual Haskell serialization primitives, as these may store intermediates on the Haskell heap. At the same time, mlocked memory is a scarce resource, and we don't want to allocate excessive amounts of it, so in the case of staged KES algorithms (SumKES / CompactSumKES), we cannot create a new temporary variable for each sub-key at each stage - ideally, we want to allocate a single block of mlocked memory for the final key, and perform all operations on it, in-place.
Hence, we use the following approach:

We extend the MLockedSizedBytes API with a function mlsbMemcpy, which, just like the memcpy C function, takes two pointers (MLockedSizedBytes) and a length, and copies this many bytes from one MLockedSizedBytes to the other. However, this function has two additional offset parameters, which allow us to address memory locations within the MLockedSizedBytes, and, unlike memcpy, we add bounds checking to prevent buffer overruns.
The DSIGNM and KESSignAlgorithm classes expose two methods for serializing and deserializing their SignKeys; these methods accept a target MLockedSizedBytes value that they write to, and an offset into it. This is a slightly awkward signature for user code, but it allows us to delegate the serialization of sub-keys recursively.
To deal with the awkwardness, then, we provide a pair of convenience wrappers that have more palatable signatures (SignKey -> IO MLockedSizedBytes for serialization, and MLockedSizedBytes -> IO (Maybe SignKey) for deserialization). These can't be used for recursive ser/deser of composite keys, but they are perfect for user code.

closing in favour of #255 and #317


Disable gflags include

Summary
Fixes the issue explained in https://github.com/facebook/react-native/issues/28446
It basically disabled the gflags include before configure can detect the header on the users system.
Changelog

[iOS] [Fixed] - Fixed inability to build apps when gflags is installed
Test Plan
Tested by installing gflags brew install gflags and verifying that apps build after.

No worries, projects of this size get a lot of contribution so I understand that small stuff like this lies around for a while.
I added the issue link to the comment, I didn't see any conflicts though when merging upstream into the fix branch, so I assume that's good?


[154437854] Upgrade Bosh CLI to v2

What
We update the Bosh CLI to v2 and we updated all Bosh commands to use the new CLI version.
Changes:

We duplicated the bosh_CA.crt file as a separate resource so we can use it easily for bosh login commands easily
Don't generate director_uuid into the deployment manifest (the v2 cli doesn't need it)
Replace the bosh_pre_destroy.rb scripts with checking bosh deployments

Additional changes:

We had to update paas-collectd-boshrelease (https://github.com/alphagov/paas-collectd-boshrelease/pull/4) as it contained a template expression which failed.
Don't run terraform destroy if all the resources were already destroyed: we got an ACM cert related error when you run the terraform destroy twice (see commit for details)

How to review

Create a new environment from this branch and run the create-bosh-concourse pipeline
BRANCH=bosh_cli_v2_154437854 make dev deployer-concourse bootstrap
Run the create-bosh-concourse pipeline on the newly Concourse too
Destroy the environment by running the destroy-bosh-concourse pipeline
Update your existing environment from this branch and run the create-bosh-concourse pipeline
BRANCH=bosh_cli_v2_154437854 make dev deployer-concourse pipelines

How to release

Review and merge https://github.com/alphagov/paas-docker-cloudfoundry-tools/pull/118
Update the bosh-cli-v2 images tags to the final Docker image tag (fix the Update bosh cli commands to use v2 and Update the bosh-cli command to work with Bosh CLI v2 commits)
Review and merge https://github.com/alphagov/paas-collectd-boshrelease/pull/4
Replace the temporary commit in the PR with the final collectd release
Merge this

Who can review
Not @chrisfarms or @me.

I think any of the 12 commits that have to be changed as a result of review should be marked as TMP.


Accept preexisting incompatible app versions

Problem:
Prior, if an app that was installed prior was rendered incompatible
due to a rancher upgrade, updates to the app would fail. This would
happen even if the update was not to the app version.
Solution:
Now, apps can
be updated if their current version is incompatible as long as they
are not updating to another incompatible app version.
Issue:
https://github.com/rancher/rancher/issues/35904

@brendarearden I agree, tests in the future would be good.


The "ExpandPriContent" task failed unexpectedly.  Cannot access a disposed object.

Describe the bug
I'm often experiencing the following bug when compiling. Usually it works, but once hitting this, I have to restart Visual Studio.
I don't have a consistent repro, but have observed it with both v1.0.0 and v1.1.4:
1>------ Build started: Project: Toolkit.SampleApp.Maui, Configuration: Debug Any CPU ------
1>Skipping analyzers to speed up the build. You can execute 'Build' or 'Rebuild' command to run analyzers.
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018: The "ExpandPriContent" task failed unexpectedly.
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018: System.ObjectDisposedException: Cannot access a disposed object.
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018: Object name: 'it is not allowed to use disposed Microsoft.VisualStudio.Telemetry.TelemetrySession object.'.
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.VisualStudio.Telemetry.TelemetryDisposableObject.RequiresNotDisposed()
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.VisualStudio.Telemetry.TelemetrySession.SerializeSettings()
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.Build.AppxPackage.Telemetry.Get(IBuildEngine4 buildEngine, String vsTelemetrySession)
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper..ctor(IBuildEngine4 buildEngine, TaskLoggingHelper logger, Action execute, Func`2 exceptionHandler, Action cleanup, Func`1 manifestFileNameGetter, String vsTelemetrySession)
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.Build.AppxPackage.AppxPackagingToolTaskBase.Execute()
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Users\mort5161\.nuget\packages\microsoft.windowsappsdk\1.0.0\build\MrtCore.PriGen.targets(891,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
1>Done building project "Esri.ArcGISRuntime.Toolkit.WinUI.csproj" -- FAILED.

Steps to reproduce the bug
No specific repro. Happens after building a maui app over and over. I've observed it on two different PCs, one running Win10 and the other Win11. VS version was 17.3.1 on both.
Expected behavior
No response
Screenshots
No response
NuGet package version
1.1.4
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
Visual Studio 17.3.1.
Looks very similar to Xamarin telemetry issue (that was supposed to be fixed in 17.3.1 but I'm still occasionally observing that one too). See https://developercommunity.visualstudio.com/t/Unexpecter-error-of-task-Xamarin-Teleme/10096527

Had a similar error today building an Xamarin Forms UWP app with VS 17.3.4 I think. Updating to 17.3.5 fixed, but it seemed random.
2022-09-29T17:23:41.5430851Z ##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(1718,5): Error MSB4018: The "ExpandPriContent" task failed unexpectedly.
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent.ExecuteImplementation()
   at Microsoft.Build.AppxPackage.AppxPackagingToolTaskBase.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

@rohanp-msft is there a known workaround for this without having to restart the VS? Is there anything we could help with to resolve this issue? Happens quite frequently when there is a change in xaml files.

@LadderLogic AFAIK, there isn't another workaround (rebuilding the solution might be one, though that's just as bad). This was postponed due to some higher priority work. I will be able to look at this in a week's time. We apologize for the delay.

@LadderLogic
Hi Nanda, do you have a repro of this?

Had a similar error today building an Xamarin Forms UWP app with VS 17.3.4 I think. Updating to 17.3.5 fixed, but it seemed random.
2022-09-29T17:23:41.5430851Z ##[error]C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\AppxPackage\Microsoft.AppXPackage.Targets(1718,5): Error MSB4018: The "ExpandPriContent" task failed unexpectedly.
System.Xml.XmlException: Root element is missing.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
   at Microsoft.Build.Packaging.Pri.Tasks.ExpandPriContent.ExecuteImplementation()
   at Microsoft.Build.AppxPackage.AppxPackagingToolTaskBase.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

This is unrelated other than this exception also occurs in the same task. Somehow, the PRI XML dump was invalid here. Anyway, it looks like the problem is gone for you after the upgrade.

@LadderLogic Hi Nanda, do you have a repro of this?

@rohanp-msft, it's part of a large solution with multiple projects referencing the same xaml control library, but I'll try to make a small repo soon.

Since there haven't been any recent reports of this issue, we expect this is addressed by an update to VS. I am closing this issue. If it is reported again on latest VS, etc., we will revisit it.

Yes, it is still happening in Visual Studio 2022 17.5.0 an WindowsAppsSDK 1.2.221109.1.

Changing Assignee per ownership change. Will let Robert follow-up as needed.

hello, i got the same error currently.
Projekt is a Xamarin Forms projekt,
when Building the UWP Projekt i get the error.
visual studio community 17.5.1
Name Microsoft.WindowsAppRuntime.1.1
Version           : 1005.616.1651.0
No WindowsAppSDK version installed.
Betriebsystemname	Microsoft Windows 11 Pro
Version	10.0.22621 Build 22621
Systemtyp	x64-basierter PC
Error:

ITNOA
@rohanp-msft please reopen this issue
I do not think this issue is resolved

ITNOA
@rohanp-msft please reopen this issue
I do not think this issue is resolved

@soroshsabz The owners have changed (see the current Assignees of this issue). I notified them when you commented.

FYI - this seems to have helped others:
for VS builds:
>set MSBUILDDISABLENODEREUSE=1
for MSBuilds: (above) or
>msbuild /nodeReuse:false ...

Same here! Solutions?

I see the issue once in a while when building Windows Runtime Components which are C++ WinUI3 Desktop type components.  I am using the latest everything VS2022 17.96, Latest Windows App SDK etc.   When it happens it is after working for a while and normally a clean rebuild works to resolve but more recently that is failing.  This is starting to become a productivity issue.
2>AccessServerWRC.vcxproj -> C:\Users\tim\Source\Repos\PDFAlign\x64\Debug\AccessServerWRC\AccessServerWRC.dll
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018: The "ExpandPriContent" task failed unexpectedly.
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018: System.ObjectDisposedException: Cannot access a disposed object.
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018: Object name: 'it is not allowed to use disposed Microsoft.VisualStudio.Telemetry.TelemetrySession object.'.
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.VisualStudio.Telemetry.TelemetryDisposableObject.RequiresNotDisposed()
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.VisualStudio.Telemetry.TelemetrySession.SerializeSettings()
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.Build.AppxPackage.Telemetry.Get(IBuildEngine4 buildEngine, String vsTelemetrySession)
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.Build.AppxPackage.AppxPackagingTaskHelper..ctor(IBuildEngine4 buildEngine, TaskLoggingHelper logger, Action execute, Func2 exceptionHandler, Action cleanup, Func1 manifestFileNameGetter, String vsTelemetrySession)
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.Build.AppxPackage.AppxPackagingToolTaskBase.Execute()
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
2>C:\Users\tim\Source\Repos\Packages_nuget\Microsoft.WindowsAppSDK.1.5.240404000\build\MrtCore.PriGen.targets(913,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
2>Done building project "AccessServerWRC.vcxproj" -- FAILED.

Here's an explanation of the fix (thanks, @evelynwu-msft), which will be available in WinAppSDK 1.6:
The Single-project MSIX Packaging build tasks were, by default, directly using VS's default telemetry session.  After they finished running, they would dispose this default session.  Later, if some other build task in the same MSBuild process accessed the now-disposed default session, an exception would be raised.


fix: SafariNomoduleFixPlugin.js fullSafariFixPath path error

What kind of change does this PR introduce? (check at least one)

[x] Bugfix

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

Other information:

#6594

In your fix
If publicPath is set to /relative
The end result will be
//relative/js/safari-nomodule-fix.js
Causes a browser request
http://relative/js/safari-nomodule-fix.js
So I think it would be a better way to use "://" to judge publicPath, such as https://github.com/vuejs/vue-cli/pull/7247


Show example with Checkbox

No way to store which checkboxes are selected to persist data on form submit.

Currently we create components which allow you to render an element with GDS styling. You can then track state in your own implementations, does this link help?;
https://codesandbox.io/s/k5zz5k69o3

Going to close this for now, let us know how you get on with your implementation!


Update documentation to reflect that installation of mssql-server-extensibility package is not possible on a MSSQL Docker container

Hi
I have been unable to install mssql-server-extensibility-java on MSSQL Docker container. Docker image details are as follows.
mcr.microsoft.com/mssql/server               2019-CTP2.2-ubuntu
As per documentation, one can install the package on Ubuntu by running the command
sudo apt-get install mssql-server-extensibility-java
When I run the command, it fails with the following error:
`root@56dc52025056:/var/log# apt-get install -y mssql-server-extensibility-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
mssql-server-extensibility-java is already the newest version (15.0.1200.24-2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mssql-server-extensibility (15.0.1200.24-2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuration file /lib/systemd/system/mssql-launchpadd.service is marked executable. Please remove executable permission bits. Proceeding anyway.
Failed to connect to bus: No such file or directory
dpkg: error processing package mssql-server-extensibility (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mssql-server-extensibility-java:
mssql-server-extensibility-java depends on mssql-server-extensibility; however:
Package mssql-server-extensibility is not configured yet.
dpkg: error processing package mssql-server-extensibility-java (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mssql-server-extensibility
mssql-server-extensibility-java
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@56dc52025056:/var/log# echo $?
100
root@56dc52025056:/var/log#`
Seems like the installation fails because systemctl is not available. Upon checking the processes that are running on the container itself, we can see that PID 1 belongs to sqlservr process and not systemd.
root@56dc52025056:/var/log# ps -ef UID        PID  PPID  C STIME TTY          TIME CMD root         1     0  0  2018 pts/0    00:00:01 /opt/mssql/bin/sqlservr root         8     1  1  2018 pts/0    00:26:34 /opt/mssql/bin/sqlservr root      8868     0  0 13:34 pts/1    00:00:00 bash root      8979  8868  0 13:39 pts/1    00:00:00 ps -ef
Can you please confirm that this is the issue that is preventing me from installing package on MSSQL container?
Appreciate your help.

@amanjeetsingh Hi Amanjeet, You say "As per documentation": Can you please provide us with an exact link to the specific documentation article you have in mind, on
https://docs.microsoft.com/sql/<ARTICLE PATH FILENAME>
.
If you can provide the link within the next several business days, remember to @ mention me (@ + MightyPen, as one 10 character string with no spaces), so that I receive a notification.
.
Without such a link, we who monitor this GitHub Issues webpage for repository 'sql-docs' (and 'sql-docs-pr') are unable to process this Issue 1488.
.
HELPFUL LINKS:

All the ways to get help
UserVoice - Suggestion to improve SQL Server?
Setup and Upgrade -  MSDN Forum
SQL Server Data Tools - MSDN forum
Transact-SQL - MSDN forum
SQL Server Security -  MSDN Forum
DBA Stack Exchange (tag sql-server) - ask SQL Server questions
Stack Overflow (tag sql-server) - also has some answers about SQL development
Reddit - general discussion about SQL Server
Microsoft SQL Server License Terms and Information
Support options for business users
Contact Microsoft
Edit SQL Docs
SQL Docs Feedback
SQL Docs Survey

@MightyPen , my apologies for not mentioning the link. The documentation that I am referring to is https://docs.microsoft.com/en-us/sql/advanced-analytics/java/extension-java?view=sqlallproducts-allversions.
The documentation talks about installing Java extensibility package on various variants of Linux. There are no errors in the documentation, and it works fine for Linux running on a standard VM. My question is that is there a limitation around installing/running Java extensibility package on Linux running inside a Docker container? If it's a known limitation, should we then update the documentation to reflect the same?
Thanks


China and France marriage abroad amends

The latest set of change requested by FCO content designer for marriage abroad in China and France.
Expected changes:

What you need to do should include that you need to bring your partner's passport.

Marriage in France
Should now include sentence "Either you, your partner or one of your parents will need to have been living in the town where you wish to get married for at least 40 days before the ceremony."

Now rebased with master and forced pushed

Needs rebasing. It's all content changes, so I'm happy with it.

Have just rebased this with master


The 'TestCafe could not find the test file' error occurs when a file name contains brackets

What is your Test Scenario?
Run a test file with the name containing brackets.
What is the Current behavior?
The following error occurs:
TestCafe could not find the test file
What is the Expected behavior?
Tests should be launched without errors.
What is your web application and your TestCafe test code?
A file named, for example, test (test).js
Your complete test report:
ERROR TestCafe could not find the test files that match the following patterns:
test (test).js

Steps to Reproduce:
npx testcafe chromium *.js
Your Environment details:

testcafe version:                   v1.9.1;
node.js version:                    v12.x.x;
command-line arguments:  npx testcafe chromium *.js;
browser name and version: Chromium;
platform and version:          Win10, Ubuntu;

hello there, I'm facing the same issue, where testcafe fails on executing a file that contains parenthesis, any updates on this? this is the console output I get
`ERROR TestCafe could not find the test files that match the following patterns:
C:\Users\myUser\tests\blank_test().ts
The "C:\myTestCafeProject" current working directory was used as the base path.
Ensure the file patterns are correct or change the current working directory.
For more information on how to specify test files, see https://devexpress.github.io/testcafe/documentation/using-testcafe/command-line-interface.html#file-pathglob-pattern.`
Note files don't contain parenthesis in their name are executed with no issue.

Hi @Campaio,
Run the tests using the latest TestCafe version – 3.0.0. If the issue still occurs, please create a separate issue with all the information that is required to reproduce issue locally, such as test files, screenshot of the terminal, and so on.


Public Domains->Datamob.org link is broken (404 Not Found)

The datasets part of the website can be seen on archive.org, and appears to have been only a directory of other sites.  Perhaps the archive can be mined and the datasets added to this awesome list?

Or @seanflannagan / @laurensperber can provide a data dump to make the task a little easier?

@jayvdb Sure, let me see what we can dig up.

@jayvdb Unfortunately the olde data from Datamob is lost and unrecoverable. I'll see what I can contribute to this awesome list in any case, and I added a link to this list on the page.

This can be closed now that #305 is merged.


Stop tracking when chrome is out of focus

Hey, on OSX I'm getting a lot of fake data when I'm changing workspaces. Even though chrome is not active, the time is still counting the time.

Should be fixed now because we're not using any settimeout?

Correct, this was fixed on V3 Alan


Dnsimple as new provider

Was planning to use external-dns but require support for Dnsimple. Currently have a Dnsimple provider in progress but need to finish testing

Sounds good, looking forward to your PR!

PR https://github.com/kubernetes-incubator/external-dns/pull/224

This seems to have been resolved by 09c35b67909182dd8034c9572db5a55974b7db48.

Can we close this? @jose5918 can you confirm that it works?


[BUG] Dashy crashlooping after last upgrade to 2.1.2

Environment
Self-Hosted (Docker)
System
Docker 25.0.3 build 4debf41
Version
Dashy V-2.1.2
Describe the problem
After upgrading to last docker-image, dashy crashes after few seconds. Im able to open the dashy dashboard (like normal), then reload and i get "Not found".
I didnt changed anything in my config-files.
Im using docker-compose with Watchtower for Dashy.
Additional info
dashy  | ✔ Config file is valid, no issues found
dashy  |
dashy  | SSL Not Enabled: Public key not present
dashy  |
dashy  |
dashy  |  ██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
dashy  |  ██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
dashy  |  ██║  ██║███████║███████╗███████║ ╚████╔╝
dashy  |  ██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
dashy  |  ██████╔╝██║  ██║███████║██║  ██║   ██║
dashy  |  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝
dashy  |
dashy  | *******************************************************************************************
dashy  | Welcome to Dashy! 🚀
dashy  | Your new dashboard is now up and running with Docker
dashy  | *******************************************************************************************
dashy  |
dashy  |
dashy  | Using Dashy V-2.1.2. Update Check Complete
dashy  | ✅ Dashy is Up-to-Date
dashy  |
dashy  |
dashy  | -  Building for production...
dashy  |  WARN  A new version of sass-loader is available. Please upgrade for best experience.
dashy  | Error: ENOENT: no such file or directory, stat '/app/dist/index.html'
dashy  | error Command failed with signal "SIGKILL".
dashy  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
dashy  | ERROR: "build-watch" exited with 1.
dashy  | error Command failed with exit code 1.
dashy  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
dashy exited with code 0

Please tick the boxes

[X] You have explained the issue clearly, and included all relevant info
[X] You are using a supported version of Dashy
[X] You've checked that this issue hasn't already been raised
[X] You've checked the docs and troubleshooting guide
[X] You agree to the code of conduct

Also having this issue. I can run the container as root (2.1.2/latest) no problems. But running as user: XXXX:XXXX, gives constant crashing.
Just pulled and Tested on 2.1.1, there i can run as user no crashing. Here is something from logs running latest image:

Hmm, that's not good. I did push an update a few hours ago, was this before or after that update? Could you try re-pulling that latest image / tag?

Actually getting the same error :/

It stops working, how I can check what is a reason and share here?

It stops working, how I can check what is a reason and share here?

Lissy has already identified the issue and is currently testing a fix.
Huge claps to her 👏

I have tested a bit:
If i docker compose up dashy` and immediately open the dashboard in browser i get
dashy  | Error: ENOENT: no such file or directory, stat '/app/dist/index.html'

And Dashy exit with errorcode.
After disabling resource-limits in docker-compose.yml and waiting for dashy to fully start up, dashy is working. I can repeat F5 without any issue.
If i open Dashy on unlimited resources before it fully starts up, i get again "ENOENT: no such file..." like above and dashy hang up.
Now i see in: https://dashy.to/docs/deployment/ Dashy needs 1GB. It runs all the time on 256MB flawlessly (lol)

Now i see in: https://dashy.to/docs/deployment/ Dashy needs 1GB. It runs all the time on 256MB flawlessly (lol)

Nothing changed there, those were just the recommended specs for the Node base image, but it very very very rarley gets anywhere near 1GB

Merging #1496 now....
Will be available on DockerHub shortly
I'm hoping this will fix the issue, so 🤞
Let me know if that works out for you

Okay, updated version live on DockerHub and GHCR. Try re-pulling :latest or :2.1.2 tag.
It's working for me and @CrazyWolf13 - but OP give it a shot and let us know how you get on.
And sorry for the trouble this has caused, I'll do smaller and more frequent updates going forward, to hopefully mitigate things breaking.

Thanks it works now!
sudo docker pull lissy93/dashy:latest


Limit frame rate to display refresh

We cannot perform mode switches in non-Windows environments, but we still report display modes with lower refresh rates to the application. In some cases, this leads to bugs since games that have a built-in FPS limiter can reasonably assume that a 60 Hz display mode with Vsync enabled will also cap the frame rate at 60.
This implements a heuristic that measures the current frame rate, and if significantly higher than the target refresh rate, engages the FPS limiter after a few frames.
Existing configuration options as well as DXVK_FRAME_RATE will always take precedence, and setting the config to -1 unconditionally disables the limiter.
Might need some testing since some specific games might be a bit on the dumb side and default to something like 24 Hz for no reason at all with no way to change it in game (Crysis 1?).

Existing configuration options as well as DXVK_FRAME_RATE will always take precedence, and setting the config to -1 unconditionally disables the limiter.

If the env var works with -1 too now then remember to update the readme


Unavailable with latest version og HA 2022.4.0

Erelax/Vsmart device is unavailable after upgrade to the 2022.4.0

Error log:
Logger: homeassistant.components.switch
Source: helpers/entity_registry.py:529
Integration: Switch (documentation, issues)
First occurred: 9:19:17 PM (2 occurrences)
Last logged: 9:19:17 PM

Error adding entities for domain switch with platform vaillant_vsmart
Error while setting up vaillant_vsmart platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in _async_add_entity
    entry = entity_registry.async_get_or_create(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 345, in async_get_or_create
    return self.async_update_entity(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 529, in async_update_entity
    raise ValueError("entity_category must be a valid EntityCategory instance")
ValueError: entity_category must be a valid EntityCategory instance

Same issue here, but strangely the thermostat in HA is still working.
The battery indicator, however, is not:

Same here

Thank you for reporting the issue.
I'll look into it and post here when the fix is ready.

The fix is up and you can update through HACS.


Add Emoji support

It will be nice to have Emoji support in Gogs. It could be done by EmojiOne toImage function on client side.

I found a golang library (chnlr/emoji) that supports emoji conversion. Specifically, the EmojiTagToTwemoji function takes a source string, a size, and a boolean to specify XHTML output or not (whether to close the <img> tag with /> or just >), and replaces all of the emoji tags, of form :+1:, with img elements pointing to the emoji as an SVG served by MaxCDN, like so:  (<img src="//twemoji.maxcdn.com/svg/1f44d.svg" width="18" height="18">).
Another function, EmojiTagToHTMLEntities, will convert the emoji code to the HTML entity for that emoji, like 👍 (👍), but that will only work for users who are using a browser/OS that supports emoji.

A nice alternative. @acusti

OK, everyone... it's now supported on develop, and see https://try.gogs.io/gogs/gogs/issues/20 in action.

Path to emojis seems to be hardcoded in gogs.js. When running in subpath (e.g. www.mydomain.com/gogs) emojis are not shown (because they don't exist in mydomain.com/img/emoji)

Hi @mexthemax , thanks your feedback!
I've pushed fix to develop branch.

@Unknwon it works like a charm, thanks for the fix :smile:

@mexthemax no problem!

Close as implemented. :tada:

:bow: :clap:

:+1: :smile:


compiler: Move lambda level to IncrDimension property

Also, it should be a private property, not a public one.


servo-linux-cross2 is having trouble building arm64

--- stderr
configure: error: in `/home/servo/buildbot/slave/arm64/build/target/release/build/backtrace-sys-204dc57c91e9a514/out':
configure: error: C compiler cannot create executables
See `config.log' for more details.
thread 'main' panicked at 'failed with: exit code: 77', /home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.11/build.rs:136

Haven't seen this for a long time.

Saw this again on servo-linux-cross1 today in https://github.com/servo/servo/pull/18821.

This happened for both arm32 and arm64 in https://github.com/servo/servo/pull/18821, both times on servo-linux-cross1.

Both arm32 and arm64 failed both times, and across all of servo-linux-cross1, servo-linux-cross2, and servo-linux-cross3. I wish I could get ahold of the config.log files that were generated for those builds :(

configure:2977: checking for C compiler default output file name
configure:2999: aarch64-linux-gnu-gcc -O3 -ffunction-sections -fdata-sections -fPIC -m64   conftest.c  >&5
aarch64-linux-gnu-gcc: error: unrecognized command line option '-m64'

Accordingly, the two configure scripts are invoked slightly differently:
Failed:
/home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.11/src/libbacktrace/configure --with-pic --disable-multilib --disable-shared --disable-host-shared --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
Successful:
/home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.11/src/libbacktrace/configure --with-pic --disable-multilib --disable-shared --disable-host-shared --host=aarch64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu

Cargo is definitely building backtrace-sys with an unexpected target, according to this output:
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("aarch64-linux-gnu-gcc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("release")

CC @alexcrichton, in case you’ve seen this before or have some idea what’s going on.

Well, either it's an unexpected target, or it's expected but cc-rs is finding the wrong compiler for it (perhaps we're setting CC somehow before the backtrace-rs build script is invoked?).

Ok, so the compiler is being set to the cross binary by the build environment in https://github.com/servo/saltfs/blob/df07d3ace136a1c4594042af659f8584ba59e8fb/buildbot/master/files/config/environments.py#L113-L144 . That's why we see an issue when Cargo builds backtrace with a non-cross target. The mystery remains as to why that's happening - any suggestions for how to figure that out @alexchrichton?

Oh, I know why this is hitting us on https://github.com/servo/servo/pull/18821 - the new version of metadeps uses error-chain 0.10, which depends on backtrace. dbus and x11-rs both have a build dependency on metadeps, which means that we now compile backtrace for the host system, leading to the situation where we end up selecting the wrong compiler.

Interesting! Perhaps this is a case where the env var should be CC_arm-linux-gnueabihf-gcc instead of just CC?

That sounds like a good solution; thanks!


dubbo2.7 用隐式传参方式做异步调用时，调用future.get()会卡死

Dubbo version: 2.7.0
Operating System version: any
Java version: 1.8

Because @Reference anonnation has bug on async  in the method scope ,so I  use the attachment to set the async .So luck, it  works on 2.6.2 before I raise the version up to 2.7

public static  Future execute(Supplier supplier) {
RpcContext.getContext().setAttachment(Constants.ASYNC_KEY, "true");
supplier.get();
return RpcContext.getContext().getFuture();
}
2. then I raise the version up to 2.7.
It is sad that  I have 2 rpc method use async attachment continuously in one http interface
but all of  future of the  methods   have no  result
future.get()  execute in while loop forever
the code is below

3、 I have read the FutureAdapter object ,the result is null,but the future has obtained the reponse

I do'nt get your point, can you confirm it's caused by this 3678

I do'nt get your point, can you confirm it's caused by this 3678

中文说吧，就是我连续调用了两个rpc接口，都是用隐式传参的方式去异步调用的，第一个是2.6的服务，第二个是2.7的服务，我发现得到的Future对象的result永远是null，所以调用get方法时会无限阻塞主线程

I have  found the problem now.
I use a TracingFilter for brave zipkin which register a callBack on the DefaultFuture, so the callBack in FutureAdater is overried, then real response will not be set in the CompletableFuture.

I have found the problem now. I use a TracingFilter for brave zipkin which register a callBack on the DefaultFuture, so the callBack in FutureAdater is overried, then real response will not be set in the CompletableFuture.

最后咋解决的?


Return statements in constructors are broken

Return statements in constructors currently do bad things. Specifically:

Constructors have an implicit return this at the end. When we return early we return whatever happens to be in the relevant register at the time, which means the caller gets a random pointer.
We don't check that all fields are initialised before return statements, meaning that any fields in the newly constructed object may contain random values.

Nice catch! Fixed.


OpenWhisk: Add Packaging an action as a Node.js module to the Table Of Contents (TOC)

Users are stating that would be good to have the section "Packaging an action as a Node.js module" in the TOC.
It would be an entry in:
Creating and invoking actions -> Creating JavaScript actions ->  Packaging an action as a Node.js module
Linked to https://console.ng.bluemix.net/docs/openwhisk/openwhisk_actions.html#openwhisk_js_packaged_action

Closing this is fix with new TOC thanks @sefuhrer 🌮
https://console.ng.bluemix.net/docs/openwhisk/openwhisk_actions.html#openwhisk_js_packaged_action


Creating signals for Map, Set, Iterable, List

Instead of:
final s = signal<List<String>>(['a', 'b', 'c']);

Could become:
final s = <String>['a', 'b', 'c'].toSignal();

This applies to Map, Set, List and Iterable and implements all the public methods and type for each.

Right now if a computer references a ListSignal there needs to be an explicit toList called to trigger rebuild

Curious if others have thoughts on this! Will merge if no major issues raised

These changes are definitely more ergonomic to use and have better self-documenting properties 👍


fraction.js imported from mathjs causes error

it seems that the mathJS version you import 9.4.4    does not specify a specific version of fraction.JS and this is causing an error with fraction.js
can you please reference mathJS version 11.11.0
this whole issue with fraction.JS caused this to break
thanks

Same issue here.

Hi, I found the same problem, I solved it by overwriting the danfojs dependencies.
The problem comes from the mathjs library, which has the caret in the fraction.js dependency.
How do I override nested NPM dependency versions
Add in package.json
"overrides": {
    "danfojs": {
      "fraction.js": "4.2.0"
    }
}

And reinstall node_modules

A big thank you @nonodev96! you probably just saved me a day of torture.


Lua object that holds references to other objects

Hey @ThePhD !
Need some help here.
I have a C++ object exposed to Lua via sol, that should hold the references to other objects of different class (also exposed to Lua) to the data from these objects later on.
It works fine when all objects are alive. But I'd like to prevent a situation when one of the referenced objects gets erroneously nil'ed by a user's code and Garbage Collected. In such cases an attempt to access GCed object causes crash.
Some snippets to explain what I'm doing better:
Lua:
terrainVAO = gl.GetVAO() -- referencer object
terrainVertexVBO = gl.GetVBO() -- referenced object

terrainVAO:Attach(terrainVertexVBO)

terrainVertexVBO = nil
collectgarbage("collect")

--------------- Later
terrainVAO:DoSomething( ) -- causes crash.

CPP side:
class LuaVAOImpl {
....
public:
	void Attach(LuaVBOImpl& luaVBO) { vertLuaVBO =  &luaVBO; };
	void DoSomething( ) { vertLuaVBO->DoSomething(); }; //crash is here. Here I'm trying to access an object that has been GCed from Lua.
private:
	LuaVBOImpl* vertLuaVBO = nullptr;

Is there any way for sol to control lifetime of referenced objects explicitly or a better way for a one object to hold references to other objects?

Seems like replacing gl.GetVBO() to produce shared_ptr and changing Attach(shared_ptr<LuaVBOImpl>& luaVBO) & shared_ptr vertLuaVBO does the trick, but I'm not totally sure if it's a correct way.

Seems like replacing gl.GetVBO() to produce shared_ptr and changing Attach(shared_ptr<LuaVBOImpl>& luaVBO) & shared_ptr vertLuaVBO does the trick, but I'm not totally sure if it's a correct way.

It depends on what gl.GetVBO() is producing, as you have come to understand. If you return a value or a unique_ptr-like class, then Lua (sol2) takes ownership of that memory. If you are not careful with how you hand out references, then when the Lua memory dies, any references to the Lua memory in C++ (such as by a pointer or reference taken in a C++ function) also becomes fraudulent.
Using std::shared_ptr is one such way to prevent a leak, at the cost of taking out a lot of expensive copies. Another is to have gl.GetVBO() return a raw pointer and have a Resource Management System that exists outside of Lua, so that Lua is not managing the lifetime of anything.

It depends on what gl.GetVBO() is producing, as you have come to understand. If you return a value or a unique_ptr-like class, then Lua (sol2) takes ownership of that memory. If you are not careful with how you hand out references, then when the Lua memory dies, any references to the Lua memory in C++ (such as by a pointer or reference taken in a C++ function) also becomes fraudulent.
Using std::shared_ptr is one such way to prevent a leak, at the cost of taking out a lot of expensive copies. Another is to have gl.GetVBO() return a raw pointer and have a Resource Management System that exists outside of Lua, so that Lua is not managing the lifetime of anything.

Thanks a lot. Helpful as always!

Thanks a lot. Helpful as always!

This was caused app by declaring the Editor class twice in sol. I was not able to recreate this in the web app above, but no matter.


Changed the button logic

I only wanted to make a better logic button for this particular example.
Before, you could hold mouse button left outside the button, then drag the mouse unto the button and, upon release, the sfx would play. It would also change the sprite of the button to the one where appears to be pressed.
 I also made it so that if you hold mouse button left on the button and then you drag the mouse outside, the button will release and play the sfx.
Maybe the way it was was the intended way, so if it's not welcomed, I'll understand.

@Dinastia-Harzu I'm afraid something is wrong with this PR, it is replacing all file. I'm not merging it.

Understandable. I'll try again later once I get more familiar with both Git and GitHub, and I hope next time will work properly.


Add chrajeshdagur's file

create a new file and add copied the text inside a file.
.
.
created a branch, created a file and made a commit, and opened a pull request -> create pull request

branch deleted


Windows 10 - Microsoft Edge can´t be opened using the Build-in Administrator account.

Microsoft Edge browser can´t be open after vagrant up or vagrant rdp. Image was build from jf/switch-to-winrm branch as discussed in issue #217.

@Tset-Noitamotua You have to enable UAC to make Edge work.


improve error messages

Description
addresses comment
closes: #XXXX

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

Codecov Report

Merging #203 (48096bf) into main (269164c) will increase coverage by 0.22%.
The diff coverage is 81.63%.

@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
+ Coverage   80.04%   80.26%   +0.22%
==========================================
  Files         109      109
  Lines        6483     6485       +2
==========================================
+ Hits         5189     5205      +16
+ Misses        937      925      -12
+ Partials      357      355       -2

Impacted Files
Coverage Δ

modules/core/02-client/types/proposal.go
83.92% <ø> (-0.82%)
:arrow_down:

modules/core/23-commitment/types/merkle.go
65.21% <0.00%> (ø)

...ht-clients/06-solomachine/types/proposal_handle.go
100.00% <ø> (ø)

...s/light-clients/09-localhost/types/client_state.go
93.91% <ø> (ø)

.../light-clients/07-tendermint/types/client_state.go
74.55% <50.00%> (ø)

...ght-clients/07-tendermint/types/proposal_handle.go
85.00% <64.70%> (+4.23%)
:arrow_up:

modules/core/02-client/keeper/proposal.go
92.15% <100.00%> (+1.04%)
:arrow_up:

modules/core/04-channel/keeper/packet.go
97.09% <100.00%> (+4.02%)
:arrow_up:

modules/core/04-channel/keeper/timeout.go
93.46% <100.00%> (-1.24%)
:arrow_down:

modules/light-clients/07-tendermint/types/store.go
87.82% <100.00%> (+0.21%)
:arrow_up:

... and 2 more

we are adding a stracktrace for error messages, in case you are interested in taking a look:  https://github.com/tharsis/ethermint/issues/50


[REQ] Make BloxTrap available on Windows Store

Acknowledgement of preliminary instructions

[X] I have read and acknowledged the preliminary instructions.

What idea do you have?
Or make a setting that makes you play on WASD instead of ZQSD roblox always mistakes it

there's this neat little application called Microsoft PowerToys which allows you to, among other things, rebind your keys
also making bloxstrap for the windows store version would double the work that pizzaboxer would have to do, so no

k imma try it out

Doesnt work

search up how to rebind keys with powertoys on google...

aight its either im stupid or its just too complicated for me

as someone to likes to have power over their OS like me i see this as an absolute disgrace

Or make a setting that makes you play on WASD instead of ZQSD roblox always mistakes it

Not possible for us. Also, no.


selfhost/main: Fix behaviour after unsuccessful builds

Just to note for cleanup that is can be closed as it was implemented here: https://github.com/SerenityOS/jakt/commit/67bc8b31a517cf4dd99407b8568c1f3dd73bee0c


fvt: use Ginkgo 2.0 to parallelize fvts

Motivation
Using the Ginkgo v2 CLI, some of the tests in the FVTs can be ran in parallel (mainly the "predictor" tests). This reduces the dev-test iteration cycle.
The bulk of the changes are cherry-picked and updated from our internal fork.
Modifications

split FVTs into separate spec suites (go packages); ginkgo can parallelize within a suite, but runs the suites sequentially
refactors to enable sharing of code across the FVT suites
to support parallelization, use ginkgo CLI to execute the tests instead of go test

Result

faster FVT execution times!

TODO:

test changes to CI build of FVTs
test the changes to scripts/deploy/iks/test-fvt.sh

Closing this PR in favor of https://github.com/kserve/modelmesh-serving/pull/158 which includes these commits.
FVTs are not passing consistently on this branch due to issues introduced with the parallelization. https://github.com/kserve/modelmesh-serving/pull/158 resolves these issues and includes a number of other useful FVT changes from our internal fork.


Update package.xml

Bump version number

Thanks, and I'll try to think of this myself on next release!


suggestion on how to contribute code and details on how to debug

Which PikiwiDB functionalities are relevant/related to the feature request?
No response
Description
would like to contribute code, i'm quite new to c++ but i learn quick.
i dunno how to make pika show more debug information
can someone give me an idea on how to get more information on c++ 's segmentation fault?
https://github.com/OpenAtomFoundation/pika/discussions/2340
stuck here without more information on why it crash. i've written a lot of code, normally when it crash i can slowly revert but this compiles perfectly and i'm not sure why it crash with sync on master and slave.
Proposed solution
a more comprehensive howto contribute and with how to debug on segmentation fault for pika contribution
Alternatives considered
update the readme for contributor's code debug only

there is no core dump with segmentation fault. no way to debug


ConfigurationBinder: Support [Key] attribute

The ConfigurationBinder should look for the KeyAttribute (or similar) on all the properties it aims to bind, and fallback to the current solution. We have legacy configuration files with long names not suited for property names.
public class MyOptions {         [Key("C_CONFIG_SYSTEM_NET_MAILSETTINGS_SMTP_NETWORK_HOST_INTERNAL")]         public string SmtpHost { get; set; } }

It do not need to be an attribute though. An extension point that gives full control to the client application how to map property name to dictionary key would do the trick.


Draft API conventions

Pulling together various conversations I've had about conventions we want to have in place as we build out the V3 API.

@adomokos

I wonder if there is anything out there open-sourced, where we don't have to write all this ourselves. Or if we do, can we make sure that we contribute back to the community?

I'm curious about this. Can you give a concrete example of what kind of library, module, and/or functions you might see us building to support these ideas that would make sense to look for in, or contribute back to, the community?

I'm curious about this. Can you give a concrete example of what kind of library, module, and/or functions you might see us building to support these ideas that would make sense to look for in, or contribute back to, the community?

I have not researched the topic, I don't know what exists out there. If there's nothing, can we build it in a way that we can extract it in the future? We usually build things that way, I don't see it as a big challenge.


Arm9loaderhaxInstaller Problem

When I used the installer my sysnand didn't look different (I didn't know if it was supposed to) and decrypt9 didn't work.

It doesn't look different until you move the CTRNAND partition. You need to boot Decrypt9 with arm9loaderhax.

Decrypt9 isn't opening I just gives me a black screen while holding L+R and booting.

Copy the file again
On Sun, Mar 20, 2016, 5:30 PM Pokemaster623<EMAIL_ADDRESS>wrote:

Decrypt9 isn't opening I just gives me a black screen while holding L+R
and booting.
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/Plailect/Guide/issues/20#issuecomment-199029960


Adding new default_host parameter

I know you're not really set up for submissions at this point, but just in case this is helpful, here's a small change I've made to a fork that I'd love to see in the base.  :)
The 'norm' at our location is to have syslog use the hostname instead of the fqdn.  Setting the sourcetype to syslog will result in those logs having the "correct" hostname, while others may not be parsed and will end up with the fqdn, which makes for more troublesome searches for that host.
TL;DR: setting the default_host rather than using the parsed value means that confusion can be resolved.
I have tested this on CentOS 7.2 and Ubuntu 14.04.
Thanks!

OK, I have just made another commit (to add support for the Suse osfamily) which is a very small commit but I didn't realize it would be rolled up with this.

Hi @sharumpe, are you still interested in this PR? If so, please rebase against our latest master.

@sharumpe Ping

Hello. I'm going to close this PR due to inactivity. Please reopen and rebase it if you're still interested in it.