Gradle Error while build apk in Ionic 3

I am getting below error while build apk in ionic application.
[ERROR] An error occurred while running cordova build android (exit code 1):

        ANDROID_HOME=C:\Users\XYZ\AppData\Local\Android\sdk
        JAVA_HOME=C:\Program Files\java\jdk1.8.0_31
        Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
        :wrapper

        BUILD SUCCESSFUL

        Total time: 11.122 secs
        Subproject Path: CordovaLib

        FAILURE: Build failed with an exception.

        * What went wrong:
        Could not dispatch a message to the daemon.

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
        Error: cmd: Command failed with exit code 1 Error output:
        FAILURE: Build failed with an exception.

        * What went wrong:
        Could not dispatch a message to the daemon.

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Result when tried with --stacktrace,--debug
[ERROR] An error occurred while running cordova build android (exit code 1):
        ANDROID_HOME=C:\Users\XYZ\AppData\Local\Android\sdk
        JAVA_HOME=C:\Program Files\java\jdk1.8.0_31
        :wrapper

        BUILD SUCCESSFUL

        Total time: 0.862 secs
        Subproject Path: CordovaLib

        FAILURE: Build failed with an exception.

        * What went wrong:
        Received invalid response from the daemon: 'org.gradle.launcher.daemon.protocol.ForwardInput@5b6ec132' is a
        result of a type we don't have a strategy to handle. Earlier, 'Build{id=ce257caf-e024-4abd-90a8-72d733ea91d7.1,
        currentDir=D:\app}' request was sent to the daemon.
        Diagnostics:
        No diagnostics available.

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
        Error: cmd: Command failed with exit code 1 Error output:
        FAILURE: Build failed with an exception.

        * What went wrong:
        Received invalid response from the daemon: 'org.gradle.launcher.daemon.protocol.ForwardInput@5b6ec132' is a
        result of a type we don't have a strategy to handle. Earlier, 'Build{id=ce257caf-e024-4abd-90a8-72d733ea91d7.1,
        currentDir=D:\app}' request was sent to the daemon.
        Diagnostics:
        No diagnostics available.

        * Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

cordova requirements output:
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-25
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle

Can anyone please provide any solution for this?

Looks like something is wrong with daemon. Please try gradle --stop to stop all daemons and retry or start your build with --no-daemon.

gradle --stop command gives below result
'gradle' is not recognized as an internal or external command,
operable program or batch file.

So I had tried with gradlew --stop command to stop but this command runs for very long time and showing below message only.
Stopping Daemon(s)
I have tried gradlew --status but this command also not showing any message and keeps running.

Seems you don't add gradle into your PATH. Never mind, it's same to use gradlew --stop. If it is stuck for a long time, maybe that is the cause of the issue. Try to find the daemon process in windows task manager and kill it (it is named with something like GradleDaemon). If it's a bit hard for you, try to restart you computer simply.

gradle --stop command gives below result
'gradle' is not recognized as an internal or external command,
operable program or batch file.

So I had tried with gradlew --stop command to stop but this command runs for very long time and showing below message only.
Stopping Daemon(s)
I have tried to get status with gradlew --status but this command also not showing any message and keeps running.

I have tried with computer restarting and tried to build but again same error.

Looks like you're nesting one build into another:
An error occurred while running cordova build android (exit code 1):
        ANDROID_HOME=C:\Users\XYZ\AppData\Local\Android\sdk
        JAVA_HOME=C:\Program Files\java\jdk1.8.0_31
        :wrapper

        BUILD SUCCESSFUL

        Total time: 0.862 secs
        Subproject Path: CordovaLib

because there's a successful build. It's a bit weird to have a successful build in a failed build.  It would be great if you can provide a reproducible sample to let me know the project structure.
Here's the advice: add --no-daemon option to you build command to disable daemon. See here for more details.

@Topiya Since I didn't hear your response, I would close it for the moment. Please feel free to reopen it if you have any questions.

There is a problem with your gradle, it's unable to access the port required or some process is blocking its execution, try disabling anti-virus. It worked for me.

Good morning, I solved this issue, updating the java sdk. Greetings.


ECMAScript module (ESM) bundle support

Currently using heatmap.js in an Angular version 10+ application gives the following build warning:
WARNING in [filename] depends on 'heatmap.js'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Starting with Angular 10 the Angular CLI now provide warnings for CommonJS modules. Read more about it here:
https://blog.angular.io/version-10-of-angular-now-available-78960babd41

When you use a dependency that is packaged with CommonJS, it can result in larger slower applications.
Starting with version 10, we now warn you when your build pulls in one of these bundles. If you’ve started seeing these warnings for your dependencies, let your dependency know that you’d prefer an ECMAScript module (ESM) bundle.

And here:
https://angular.io/guide/build#configuring-commonjs-dependencies

It is recommended that you avoid depending on CommonJS modules in your Angular applications. Depending on CommonJS modules can prevent bundlers and minifiers from optimizing your application, which results in larger bundle sizes. Instead, it is recommended that you use ECMAScript modules in your entire application. For more information, see How CommonJS is making your bundles larger

Is it possible to add ESM support?

+1

You can use this bug-fixed version：npm install @mars3d/heatmap.js
Corresponding source address： https://github.com/muyao1987/heatmap.js
mars3d update

fix: An error "Cannot assign to read only property 'data' of object '#'"
add: Added support for typescript in index.d.ts
The NPM package was released @mars3d/heatmap.js


entry points

version
sculpt_stl_to_inp
cubit_inp_to_minsj

@calehma and @elejeune11
As of version 0.0.7 of the atmesh library, I added three above-listed "Entry Points", which simplifies the command-line calls for functions that are exposed.
Before:
# deprecated after version 0.0.7
(atmeshenv) ~/autotwin/mesh> python src/atmesh/sculpt_stl_to_inp.py doc/bunny_delta_cell/cell_0010_stl_to_inp.yml

After:
(atmeshenv) ~/autotwin/mesh> sculpt_stl_to_inp doc/bunny_delta_cell/cell_0010_stl_to_inp.yml

So, the long selection to the function (which still works if you prefer this alternative) of

python src/atmesh/sculpt_to_inp.py <input.yml>

is replaced with

sculpt_to_inp <input.yml>

which simplifies the typing and makes the atmeshenv virtual environment operate more like a built-in bash command than a python command (e.g., python is no longer needed as a prefix).


Always eats up VRAM

I've tried running enhancement.py on a card with 16GB of VRAM and again on another with 48GB of VRAM on different machines and it always OOMs:
(sgmse) root@C.13364355:/workspace/sgmse$ python3 ./enhancement.py --ckpt models/train_vb_29nqe0uh_epoch\=115.ckpt --test_dir /workspace/t --enhanced_dir /workspace/enhanced_
dir
Set TORCH_CUDA_ARCH_LIST to: 8.6
  0%|                                                                                | 0/2 [00:00<?, ?it/s]
/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/conv.py:549: UserWarning: cuDNN cannot be used for large non-batch-splittable convolutions if the
V8 API is not enabled or before cuDNN version 9.3+. Consider upgrading cuDNN and/or enabling the V8 API for better efficiency. (Triggered internally at ../aten/src/ATen/nativ
e/Convolution.cpp:430.)
  return F.conv2d(
  0%|
| 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/workspace/sgmse/./enhancement.py", line 93, in <module>
    sample, _ = sampler()
                ^^^^^^^^^
  File "/workspace/sgmse/sgmse/sampling/__init__.py", line 64, in pc_sampler
    xt, xt_mean = corrector.update_fn(xt, y, vec_t)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/sgmse/sgmse/sampling/correctors.py", line 75, in update_fn
    grad = self.score_fn(x, y, t, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/sgmse/sgmse/model.py", line 309, in forward
    score = -self.dnn(dnn_input, t)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/sgmse/sgmse/backbones/ncsnpp.py", line 305, in forward
    h = modules[m_idx](hs[-1], temb)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/sgmse/sgmse/backbones/ncsnpp_utils/layerspp.py", line 260, in forward
    h = self.Conv_0(h)
        ^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/conv.py", line 554, in forward
    return self._conv_forward(input, self.weight, self.bias)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/content/miniconda/envs/sgmse/lib/python3.11/site-packages/torch/nn/modules/conv.py", line 549, in _conv_forward
    return F.conv2d(
           ^^^^^^^^^
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 82.48 GiB. GPU 0 has a total capacity of 44.45 GiB of which 14.88 GiB is free. Process 4068242 has 29.56 GiB mem
ory in use. Of the allocated memory 29.11 GiB is allocated by PyTorch, and 142.42 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try
setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/notes/cuda.html#en
vironment-variables)

What am I doing wrong?

It looks like your GPU is running out of memory, possibly due to the large files you are trying to process. To address this, please try splitting the large files into smaller segments before running the enhancement code.

It's a 19M .wav file.  Is that really enough to eat up 48GB of ram?

I spoke too soon; evidently it was.  Thank you for setting me straight!


Update Cocoapods

Cocoapods needs to be updated for Swift 3 support.

I haven't used Cocoapods in a long time. @Bashta Could you tackle this one with your newly acquired powers?

Resolved @siemensikkema ! Kudos


tidy up parse- names

parse_path and parse_query_params are not consistent. We have many choices
parse_path
parse_segments
parse_path_segments
parse_query
parse_query_params
parse_params

but we should choose a pair of functions that are consistent with the rest of the names and return types.

they should be consistent now, we have parse_path and parse_params. In the context of html forms, "params" is correct.


Fixed typo

#620
Fixed the git clone URL
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jakemayeux Thanks for the update and fix!


PEP 458: Review OpenSSH key rotation scheme for applicability

OpenSSH 6.8 includes an interesting new key rotation scheme: http://blog.djm.net.au/2015/02/key-rotation-in-openssh-68.html
I'm not sure there's anything applicable there (I think the N/M key quota model addresses the problem in a different way), but I'm still interested in hearing directly from the TUF team on that.

[We have a deadline Tuesday, so I only gave this a quick read now.]
From what I see, I agree that our N/M key quota model addresses the issue
of key rotation.  TUF's scheme also has the advantage that it can remove
outdated / compromised keys whenever clients update.
Anyways, we'll do a deeper read in a few days and will post a response here
if there is something we missed or what to clarify.
We will also add a little more detail to the PEP where it discusses this
topic.
Thanks,
Justin
[on behalf of the TUF team]
---------- Forwarded message ----------
From: ncoghlan<EMAIL_ADDRESS>Date: Sat, Jan 31, 2015 at 7:46 PM
Subject: [interoperability-peps] PEP 458: Review OpenSSH key rotation
scheme for applicability (#22)
To: pypa/interoperability-peps<EMAIL_ADDRESS>OpenSSH 6.8 includes an interesting new key rotation scheme:
http://blog.djm.net.au/2015/02/key-rotation-in-openssh-68.html
I'm not sure there's anything applicable there (I think the N/M key quota
model addresses the problem in a different way), but I'm still interested
in hearing directly from the TUF team on that.
—
Reply to this email directly or view it on GitHub
https://github.com/pypa/interoperability-peps/issues/22.

The key continuity scheme outlined in the blog is supported in TUF :)
The relevant section of the tuf-spec document says:
"To replace a compromised root key or any other top-level role key, the root role signs a new root.json file that lists the updated trusted keys for the role. When replacing root keys, an application will sign the new root.json file with both the new and old root keys until all clients are known to have obtained the new root.json file (a safe assumption is that this will be a very long time or never). There is no risk posed by continuing to sign the root.json file with revoked keys as once clients have updated they no longer trust the revoked key. This is only to ensure outdated clients remain able to update."
Updating root.json (which contains all of the top-level keys, including the root role's) is part of the automated update process that clients follow to download the TUF metadata.  Clients might download a new root.json if repository maintainers release a new root.json to revoke keys or add new ones.  Important to note, is that root.json is only updated by clients if they already trust a threshold number of the keys included in the new root.json.
The update process is sketched here in words:
https://github.com/theupdateframework/tuf/tree/develop/tuf/client#overview-of-the-update-process
And in code:
https://github.com/theupdateframework/tuf/blob/develop/tuf/client/updater.py#L563-L669
I'll review the PEP to make sure this behavior (key continuity and revocation of keys) is explicitly stated.  The reserved offline (off-pypi) keys mentioned in the blog is also a good way of helping with key continuity for clients that might not download the new keys in time (that is if PyPI decides to discard revoked keys after a certain period of time).  Using reserved off-pypi keys for key continuity in PEP 458 is just a matter of generating PyPI keys for this specific purpose and using them when signing root.json.

I'd certainly missed the subtlety that we can continue to sign with revoked keys for the benefit of outdated clients - that's a really nice option to have available.

Discussed the option of continuing to sign with revoked keys in PR https://github.com/pypa/interoperability-peps/pull/23


rest.bitcoin.com is down

I've noticed a lot of errors when the button tries to contact rest.bitcoin.com. It seems that service is permanently down.
Do you plan to migrate services to fullstack.cash? Will this affect the functionality of the button as it is or will donations still continue to work?
Thank you!
https://i.imgur.com/HmigFEK.png
https://i.imgur.com/SWzqQWl.png
From https://rest.bitcoin.com/ :
Dear rest.bitcoin.com developers,
As some of you may have noticed, the free, public rest.bitcoin.com endpoints have at times been unstable due to dramatically increased load from the growing number of products and services using it. In order to continue providing the best developer experience possible, we’re upgrading this free service to run on Fullstack.cash.
This change is effective immediately, so please ensure you update your endpoints to api.fullstack.cash as soon as possible.
Fullstack.cash is free to use for 20 full-node, indexer, and SLPDB requests per minute. For comprehensive plans, please refer to the pricing page.
Please also check rest.bch.actorforth.org for API and slpdb.bch.actorforth.org for SLPDB.
Sincerely,
The Bitcoin.com Team

Bitcoin.com's API continues to work although is not a great API to rely on since it's been deprecated.
The next major release will switch to use https://github.com/PayButton/paybutton-server which is also open source.


Update PIT implementation in Redshift

I see that you are using COALESCE(LEAD(TIMESTAMP_SUB({{ ldts }}, INTERVAL 1 MICROSECOND)) in PIT for Redshift. However TIMESTAMP_SUB and INTERVAL 1 MICROSECOND are not supported by Redshift.

also,
{%- set hash_dtype = var('datavault4dbt.hash_datatype', 'STRING') -%}
the default data type should be VARCHAR since STRING is also not supported by redshift

Hey Allan,
thanks for your feedback, if you've already fixed it yourself feel free to open a PL otherwise we will implement a fix for that in the upcoming release.
Best regards,
Tim


Migration: 10000 tables from Oracle to Azure SQL Database

Can we migrate 10000 tables from On-premise Oracle DB to Azure SQL Database using SSMA or azure have different tool for migration?

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

ID: a5f18f40-333b-4990-decd-36862d7b6818
Version Independent ID: 7ec72692-5ba7-a2c9-398b-4aedeccd46c4
Content: Oracle to Azure SQL Database: Migration guide - Azure SQL
Content Source: articles/azure-sql/migration-guides/database/oracle-to-sql-database-guide.md
Service: sql-database
Sub-service: migration-guide
GitHub Login: @cawrites
Microsoft Alias: chadam

@manishmsfte Is the “migration” in this context refers to:

Table schema conversion
Data movement
Or both?
From the perspective of the schema conversion, as long as these definitions will fit in memory – we don’t have any hard limit. Thus using 64-bit version will help.


Unable to run a Python action with remote execution enabled

I have a tiny little example program that runs a simple Python program to generate a C++ header.  You can see the full example here: https://github.com/andyfriesen/buck2-demo/tree/main/remote-execution.  The Buildbarn config is all there too.
When remote execution is not used, this example works just fine.
When using RE with Buildbarn, the Python action instead fails with this text:
Traceback (most recent call last):
  File "/worker/build/486b47aca52ecd75/root/buck-out/v2/gen/root/524f8da68ea2a374/__txn_tables_h__/srcs/../../../80b8ee2fabeb8b7c/__build_txn_tables__/build_txn_tablesNone", line 244, in <module>
    os.execv(sys.executable, args + sys.argv[1:])
ValueError: execv() arg 2 first element cannot be empty

It looks like sys.executable is the empty string.  I don't have any great theories as to why that might be.
The important part of BUILD reads thus:
python_library(
    name="build_txn_tables_library",
    srcs=["build_txn_tables.py"],
)

python_binary(
    name="build_txn_tables",
    main_module="build_txn_tables",
    deps=[":build_txn_tables_library"]
)

genrule(
    name="txn_tables_h",
    srcs=["en.json", "jp.json"],
    out="txn_tables.h",
    cmd='$(exe :build_txn_tables) $SRCS -o $OUT'
)

I wonder if this might be an issue similar to https://github.com/facebook/buck2/issues/255 — does this repro if you move this out of the project root down one directory?
(I would test it myself, and I'll do it, but with how things work here one has to reinstall buildbarn every time to test it so that's a bit tricky ...)

If I understand you, I've moved my .buckconfig and so forth up one level, but left BUCK where it is.  I am then building from the parent directory with buck2 build remote-execution:hello.
Did I get it right?
This does not change the error I see.


Attributes in hamlc within {} don't have correct highlight

Eg
.some-div{data-attribute: 'test'}
Will work but the data- won't have the correct highlight.

I'm going to close this for now.


142 scrolling behaviour

What is the context of this PR?
Trello card
Adds ScrollPanel component that will add vertical scroll bars if it's children height exceeds the height of it's container.
Additionally, "add section" button is now sticky, should the navigation exceed the height of the browser it will "stick" to the bottom of the viewport.
Also, fixed a lingering issue with the Column component having max-width: NaN in CSS.
How to review

add enough answers/other content to a page to invoke scrollbars on main content area.
add enough pages/sections to invoke scrollbars on navigation

There's a weird "ghost" of the "QUESTIONNAIRE STRUCTURE" heading on hover, when the sidebar overflows and scrollTop > 0


Not badge in vscode-doc

I am writing release notes and work in the vscode-doc repo with latest insiders and for some reason the scm-viewlet shows not badge. The one for the vscode repo does...

Very strange. We were able to reproduce this easily until we added another repo and removed it. It doesn't repro any longer.
Will investigate.

I really can't seem to reproduce... I've been through the code and also don't see anything wrong in there. I'll keep an eye out, please do the same.
cc @sandy081

Not reproducing... Closing until we have steps.

@jrieken Pushing possible fix which could explain the occurrence of this issue in very unlikely circumstances. Also pushed some trace logging, so if it happens again, you can set the log level to trace and see if the badge it being set at all.


Plugin Not Useable -- How to Get Working in 2024

Posting this here so other users can find this and see how I was able to get this very useful plugin working. Referencing this post: https://github.com/KjellConnelly/obsidian-dev-tools/issues/3#issuecomment-974684919
Date this was tested: 02/28/2024
Obsidian (Android) Version: 1.5.8
Android OS: Android 14 QPR3 Beta 1

Go to: https://github.com/KjellConnelly/obsidian-dev-tools/releases/tag/1.0.0
Download style.css, main.js, and manifest.json under the Assets section.
On mobile device using a File Explorer app (may need to toggle on "show hidden files"), navigate into your vault folder -> .obsidian -> plugins -> create new folder obsidian-dev-tools

Move the three files you downloaded into this new folder.

Restart Obsidian app if it's running.

Go into "Community Plugins" (assuming you have these enabled already) --> Enable "Obsidian Dev Tools Plugin"

If no error message is shown (failure to load), you're on your way.

Open command palette and select "Obsidian Dev Tools Plugin: Toggle Console"

An icon will appear in the corner and/or the console will show up.

Thanks to Kjell for a very very useful plugin to aid in debugging on mobile.

Posting this here so other users can find this and see how I was able to get this very useful plugin working. Referencing this post: #3 (comment)
Date this was tested: 02/28/2024 Obsidian (Android) Version: 1.5.8 Android OS: Android 14 QPR3 Beta 1

Go to: https://github.com/KjellConnelly/obsidian-dev-tools/releases/tag/1.0.0

Download style.css, main.js, and manifest.json under the Assets section.

On mobile device using a File Explorer app (may need to toggle on "show hidden files"), navigate into your vault folder -> .obsidian -> plugins -> create new folder obsidian-dev-tools

Move the three files you downloaded into this new folder.

Restart Obsidian app if it's running.

Go into "Community Plugins" (assuming you have these enabled already) --> Enable "Obsidian Dev Tools Plugin"

If no error message is shown (failure to load), you're on your way.

Open command palette and select "Obsidian Dev Tools Plugin: Toggle Console"

An icon will appear in the corner and/or the console will show up.

Thanks to Kjell for a very very useful plugin to aid in debugging on mobile.

Thank you
The least he could do is post this on the landing page of the plugin so that users won't have to look for it. @KjellConnelly


Bug: Git Branch Doesn't Update

Describe the bug
The git branch listed is not correct. When you enter a directory and change the branch, the listed branch does not change.
However, you can leave the directory and come back and it will be correct.
To Reproduce
Steps to reproduce the behavior:

Open any repo
Look at the given branch, it should be correct now
Change your branch - git checkout -b foo
The listed branch is not correct now
Leave that directory
Return to the directory
Now it's correct

Expected behavior
The branch should update when changed
Screenshots

Desktop (please complete the following information):

OS: macos 14.2 (23C64) m3
Wave: Client Version 0.7.2 (20240329-220114)

Additional context
Add any other context about the problem here.

Same for me:

OS: 14.4.1 (23E224)
Wave: Client Version 0.7.2 (20240329-220114)

Updates to the current branch, when I switch the workspace and come back to the original workspace.

This should be fixed as of Wave v0.7.4.  There was an issue where zsh was not running our exittrap as expected (I didn't notice at first because bash did run the exittrap).


No output file

Hello, I finished the fmlrc run, however, there was no output file. This might be a really dumb mistake on my part, do you have to specify an output file name? Are outputs only in .fa format?
Thanks

It requires a specific ordering of the input and output files as describing in the README.

I believe I ran it wrong then, so the only inputs are the .npy file and the long reads, and the output is just the corrected reads?

Yes, that's correct, there is an example here.

Closing due to inactivity


Bug 1989722: Add SoftTopologyAndDuplicates profile

Adds a copy of the TopologyAndDuplicates profile which includes soft constraints
Ref https://issues.redhat.com/browse/WRKLDS-302

/lgtm


Fix bullets in visionOS

Label does not align the icon with the center of the first line like on iOS. This happens in the simulator so I guess it will happen on ht actual device.
Before the fix:

After the fix:

This fix applies, only on visionOS, a custom LabelStyle  to list items that align the bullet to the center of the first line.

Awesome! Thanks ❤


[Automation] Generate Fluent Lite from Swagger recoveryservices#package-2024-04

[Automation] Generate Fluent Lite from Swagger recoveryservices#package-2024-04

/azp run java - recoveryservices - mgmt - tests

API change check
APIView has identified API level changes in this PR and created following API reviews.
com.azure.resourcemanager:azure-resourcemanager-recoveryservices


dirty notebook opens if you close the IW before connection completes

set "jupyter.interactiveWindow.notebookRepl": true
run "Create Interactive Window"
press ctrl+W before kernel connection completes (1-2 seconds)

🐛 untitled notebook opens in new tab

The root cause is that we create a new EditorInput every time showNotebookDocument is called, and not all of them get disposed when the editor is closed.
The editorService.open call will end up using the createUntitledEditorInput factory method each time it is called with an untyped Input, and that factory method was not doing any caching, nor is the custom editor provider, diff editor and notebook editor. The notebook editor input factory was previously caching, but that was removed while fixing an issue https://github.com/microsoft/vscode/issues/207742.
@bpasero , @lramos15 - I just want to confirm that it is intended that we should be caching the editor inputs as the text editor does (https://github.com/microsoft/vscode/blob/aabb725c04d7d18f57855891d5c1782a68922890/src/vs/workbench/services/textfile/common/textEditorService.ts#L233-L253). If so, the naming of the factory method is pretty misleading and seems to be improperly implemented in most cases.

A much hotter path to hit this issue is with the python extension,

set "python.REPL.sendToNativeREPL": true
open a .py file with print(1)
press shift+enter on that line to execute in the REPL

every execution of that line will call showNotebook, and create a new editorInput

I vaguely remember a discussion with Logan about this and we somehow ended up not implementing caching in the resolver. I am not sure its a requirement, custom editors for example are not caching afaik.
Can you explain why caching would solve the issue here of a untitled editor opening?

I vaguely remember a discussion with Logan about this and we somehow ended up not implementing caching in the resolver.

I also do not remember, it's been such a long time since we discussed this. Doesn't text editor cache since multiple editors all share the same input which isn't the same for other editor types?
I wonder if this is also a matches call issue as it sounds somewhat similar to https://github.com/microsoft/vscode/issues/166161

Yeah, so when an editor is closed we dispose the input unless its opened somewhere else, maybe that can be used as hook?
https://github.com/microsoft/vscode/blob/deb10e8a1dd3fa00d4e155bf7903914675ee56b7/src/vs/workbench/browser/parts/editor/editorGroupView.ts#L685-L689

I don't think we can just keep building up instances until the tab is closed. It's easy to imagine calling Python: Run Selection/Line in Python REPL hundreds of times for the same REPL, with each one adding a new set of event handlers.


PoC: LightningSystem

What does this PR do
This is a weekend PoC to open a discussion and get feedbacks. Just exploration for now 🤗
This PR introduces a LightningSystem class, subclassing the LightningModule. At the difference of the LightningModule, it is more restrictive to force right patterns for production.
This forces the Lightning Module to be a vessel for training and shouldn t be while serving the model.
    class AbstractGAN(ABC):

        generator: nn.Module
        discriminator: nn.Module

    class Model(AbstractGAN, nn.Module):
        def __init__(self, dim: int):
            super().__init__()
            self.generator = nn.Linear(dim, 1)
            self.discriminator = nn.Linear(1, 1)

        def forward(self, x):
            return self.generator(x)

    class GANSystem(LightningSystem):
        def __init__(self, module_cls, *args, **kwargs):
            super().__init__()

            self.gan = module_cls(*args, **kwargs)
            self.automatic_optimization = False

        def training_step(self, batch, batch_idx):
            # Implement a GAN there.
            pass

        def configure_optimizers(self):
            opt_g = torch.optim.Adam(self.gan.generator.parameters(), lr=0.01)
            opt_d = torch.optim.Adam(self.gan.discriminator.parameters())
            return [opt_g, opt_d], []

        def train_dataloader(self):
            return DataLoader(RandomDataset(2, 2))

    system = GANSystem(Model, 5)
    trainer = Trainer(fast_dev_run=False, max_epochs=1)
    trainer.fit(system)
    trainer.save_checkpoint(p)
    model = load_from_checkpoint(Model, p)

Fixes #<issue_number>
Does your PR introduce any breaking changes? If yes, please list them.

Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you list all the breaking changes introduced by this pull request?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

I like it! We have a few patterns internally, both using LightningModule as all-in-one and a training wrapper. An older system uses things as all-in-one as it seemed pointless to introduce another layer of abstraction, but with the experience of using it, I think it's right for us to encourage people to do the split. There can be a bunch of things that are used during training (e.g. metrics most prominently) that are not useful for inference/deployment and keeping them on the LightningModule makes things more bloated when you script them if you try to deploy the whole module.
A few questions/potential annoying issues:

Where does the loss belong here now? I'm assuming we would encourage that to be not part of the underlying model and be a field in the system?
What do we do with logit/probabilities split? For a simple classifier, during training we want it to return logits to be able to use a faster and more numerically stable loss functions that operate on logits directly. During deployment though, we need to attach an output gate on top of those logits (e.g. softmax/sigmoid). This is simple thing, but having to do it all the time, I think we should make it clear what's the canonical way to do it.

I am strongly opposed to this.

The motivation for this is not clear from the PR? Why do we want to introduce a new abstraction?
Extending the LightningModule and then breaking behaviors related to the LightningModule extending nn.Module violates base class/child class expectations and responsibilities.
It creates uncertainty as to whether the LightningSystem and LightningModule are both supported for training. Is LightningModule being phased out? If not, why not?

@ananthsub , I think we can separate two things: 1) do we want to encourage people to split out the model that is being trained from the LightningModule that is doing training (IMO yes, but let's discuss) and then 2) how should we do it? It might be just reworking documentation/examples or introducing a layer of code-enforcement like this PR suggest.
I don't have a strong opinion on the 2nd point and maybe you are right that we shouldn't introduce another layer here - instead of failing things when LightningSystem is used "incorrectly", we can move the same code to LightningModule and send out warnings that it's used "suboptimally"?

Hmm not sure i understand this . Is this LightningModuleV2? Why are we sub-classing LightningModule?
If we want to make it more restrictive , then maybe this is really an opportunity to simplify the implementation as well.

In general I would strongly prefer to simplify the existing LightningModule rather than introduce yet another concept. It will just create more mess and will be increasilngly harder for users to know what they should do when using Lightingn.
LightningModule
LightingLite
LightningSystem.
What am I supposed to do with all this?

I believe that there's no magic to good production. Ands it's to make APIs more stable over time. Which is the opposite of adding new experimental APis every week :)

Some context to this PR: I provided some feedback on Slack:

I really like the idea of distinguishing between “Models” and “Systems”. It makes sense to me that a system is a composition of a model + an optimization strategy. But I feel as though subclassing pl.LightningModule is the wrong approach to this. In my work I take a compositional approach to further separate lightning from my model:

class System(pl.LightningModule):
    def __init__(self, model):
        self.model = model

    # configure optimizers etc.

# initialize my model
model = MyModel()

# wrap my model with a system to train it
system = System(model)

# Train the system
trainer.fit(system)

The benefit of this composition is that I can deploy MyModel on an embedded device without the need for a lightning dependency. Lightning installs a ton of stuff that isn’t really appropriate for embedded systems (like TensorBoard), so I feel that decoupling the model from the system makes sense.

This is kindof supported by lightning if you’re willing to do some plumbing, but I’d like to see better support for it - for example, having the option to separately save the system parameters from the model parameters.

Hopefully this explains some of the context as to why decoupling "models" and "systems" might make more sense for some people.

As for my feedback on this PR:  The initial decision to subclass nn.Module is clever design because it ensures that the entire system state is trivially serializable. However, this has come at an additional cost, which is that the system state parameters and the model state parameters are now tangled together in a way that isn't explicit enough for PyTorch Lightning effectively disambiguate between system (optimizer) parameters and model parameters.
When I deploy a model, I really just want to deploy the model parameters, and not have to ship around whatever state my optimizer was in during training time.
In this PR, it appears that the proposed checkpoint now only saves the model parameters, which allows you to deserialize your model from the checkpoint:
trainer.save_checkpoint(p)
model = load_from_checkpoint(Model, p)

But doesn't this break a really important use case of checkpoints, which is that if your optimizers have some non-trivial state (such as a variable learning rate), that this state is no longer resumable?
Given that our model parameters and our system parameters are neatly separated in this abstraction, we could instead add a new method, trainer.save_model_state_dict(filename) which saves the model parameters (and nothing else) for deployment. This can then be loaded and deserialized by Model without having to install Lightning on an embedded system.

Hey @oliland

In this PR, it appears that the proposed checkpoint now only saves the model parameters, which allows you to deserialize your model from the checkpoint:

This is not accurate. The checkpoint is generated by the trainer and therefore contains all the information required if you want to use your system afterwards.
But more importantly, this enables you to not use Lightning on the embedded systems if you need to do so.
This enables you to have both LightningModule and not Lightning usable from the same checkpoint.
Best,
T.C


pull request for e2e test at 12/07/2016 19:26:02

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


FYI: Travis fails the first time without a re-run

See: https://github.com/shakacode/react_on_rails/blob/master/.travis.yml
Should I turn off support for Ruby 2.0.0 from Travis?

Failures on master:

Ruby 2.0

Ruby 2.2

Another random failure:
Failures:
  1) Pages/Index All in one page Server Rendered/Cached React/Redux Component
     Failure/Error: visit root_path

     Net::ReadTimeout:
       Net::ReadTimeout
     Shared Example Group: "React Component" called from ./spec/features/integration_spec.rb:31
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/remote/http/default.rb:124:in `response_for'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/remote/http/default.rb:78:in `request'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/remote/http/common.rb:63:in `call'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/remote/bridge.rb:645:in `raw_execute'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/remote/bridge.rb:109:in `create_session'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/remote/bridge.rb:69:in `initialize'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/chrome/bridge.rb:42:in `initialize'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/common/driver.rb:61:in `new'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver/common/driver.rb:61:in `for'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/selenium-webdriver-3.0.4/lib/selenium/webdriver.rb:82:in `for'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/capybara-2.7.1/lib/capybara/selenium/driver.rb:14:in `browser'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/capybara-2.7.1/lib/capybara/selenium/driver.rb:46:in `visit'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/capybara-2.7.1/lib/capybara/session.rb:233:in `visit'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/capybara-2.7.1/lib/capybara/dsl.rb:52:in `block (2 levels) in <module:DSL>'
     # ./spec/features/integration_spec.rb:27:in `block (3 levels) in <top (required)>'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/rspec-retry-0.5.2/lib/rspec/retry.rb:112:in `block in run'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/rspec-retry-0.5.2/lib/rspec/retry.rb:101:in `loop'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/rspec-retry-0.5.2/lib/rspec/retry.rb:101:in `run'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/rspec-retry-0.5.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # /home/travis/.rvm/gems/ruby-2.3.1/gems/rspec-retry-0.5.2/lib/rspec/retry.rb:30:in `block (2 levels) in setup'
Finished in 2 minutes 5.6 seconds (files took 5.41 seconds to load)
75 examples, 1 failure
Failed examples:
rspec ./spec/features/integration_spec.rb[1:1:1:1] # Pages/Index All in one page Server Rendered/Cached React/Redux Component
Coverage report generated for dummy, gem-tests to /home/travis/build/shakacode/react_on_rails/coverage. 734 / 881 LOC (83.31%) covered.
rake aborted!
Command failed with status (1): [cd /home/travis/build/shakacode/react_on_r...]
/home/travis/build/shakacode/react_on_rails/rakelib/task_helpers.rb:20:in `block in sh_in_dir'
/home/travis/build/shakacode/react_on_rails/rakelib/task_helpers.rb:20:in `each'
/home/travis/build/shakacode/react_on_rails/rakelib/task_helpers.rb:20:in `sh_in_dir'
/home/travis/build/shakacode/react_on_rails/rakelib/run_rspec.rake:107:in `run_tests_in'
/home/travis/build/shakacode/react_on_rails/rakelib/run_rspec.rake:23:in `block (2 levels) in <top (required)>'
/home/travis/.rvm/gems/ruby-2.3.1/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/travis/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => default => run_rspec => run_rspec:run_rspec => run_rspec:all_but_examples => run_rspec:dummy
(See full trace by running task with --trace)
The command "rake" exited with 1.
cache.2
store build cache
$ bundle clean
Cleaning all the gems on your system is dangerous! If you're sure you want to remove every system gem not in this bundle, run `bundle clean --force`.
0.00s
2.07snothing changed, not updating cache
Done. Your build exited with 1.

Closing for now. No solution found other than clicking that re-run button.


Index/landing pages for each section need improvement

Up until recently, the Docsy theme provided a rudimentary layout for the pages at the start of each section in the docs:
https://github.com/google/docsy/blob/master/layouts/docs/list.html
For Kubeflow, I ended up creating my own layout:
https://github.com/kubeflow/website/blob/master/layouts/docs/list.html
My layout doesn't do a good job of handling the situation where a section includes single pages as well as other sections. See this index page for example - the links point to a mix of single pages and sections, which is not clear and the ordering is funny:
https://www.kubeflow.org/docs/pipelines/
Also, it'd be nice to include more information about each doc listed in the index, instead of just the title.

/assign

/close


Export a class decorated with decorators, which cannot be automatically imported in other files

VSCode Version:1.45
OS Version: win10 1909

Steps to Reproduce:

Export a class decorated with decorators, which cannot be automatically imported in other files

import { Column, Entity } from 'typeorm';
import Base from './Base';

export default
@Entity()
class Order extends Base {
@Column('varchar', {
  nullable: true
})
name = '';
}import { Column, Entity } from 'typeorm';
import Base from './Base';

export default
@Entity()
class Order extends Base {
@Column('varchar', {
  nullable: true
})
name = '';
}

Does this issue occur when all extensions are disabled?: Yes

Please share a complete, self-contained code example. The current one doesn't make much sense  to me

case1

case2

case3

Use the decorator and export the class like case1 and case2. When importing this class in other files, you can see the path and automatically import the import statement, but the usage in case3 does not

I'm not sure the is a valid context for decorators. For the code:
function Bar(x) { return x; }

export default @Bar() class X { }

I see the following syntax error in VS Code insiders:

@zhydn Do you also see this error reported? Have you disabled JavaScript validation?

I have disabled JavaScript validation

And Eslint tips:  Using the export keyword between a decorator and a class is not allowed. Please use export @dec class instead.

The issue is that we don't support this syntax. You can suppress the errors but our tooling still does not understand this code so it cannot provide proper tooling support
Please file an issue against the TypeScript project if you think the syntax errors themselves are incorrect


ParallaxToolbarListViewActivity ‘s Head

In ParallaxToolbarListViewActivity. I want to change ImageHead to RelativeLayout,and In RelativeLayout, I add some Imageview,ImageButton, set OnclickListenr. and then ,the ClickListenr dose't work. How can I do?

Yes. I sorry I forgetting the FrameLayout feature. i put the RelativeLayout under the ListView, It did work.


Add type converters

Things that get reimplemented in projects:

convert string value to boolean (on, yes, 1, true / off, no, 0, false; case-insensitive)
lists (separators? space / newline / comma)

Not sure about more; for integers for example we could catch and ignore ValueError but whould it be a good thing?  Review projects to see need.

Boolean:

#35 from Michel adds get_boolean
#40 uses a more robust function (only specific values possible) and changes get_setting

List: doc recommends to use a whitespace-separated value which is easiest to read in a text field and takes a simple .split() to convert.
Integer: int(store.get_setting("some_timeout", 10)) seems enough
So I think #40 is enough to close this ticket!


select type from @ngx-formly/material not working with grouped options

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ X ] support request

Current behavior

Hello there. Still newbie, so please don't roast me, but I've quite some trouble on generating a dropdown list where options are divided into groups.
So, I took the formly example from this link:
https://formly-js.github.io/ngx-formly/examples/bootstrap-formly/select
Then change from bootstrap to material.
I reload the page, but it won't load, until Chrome (or Firefox) asks me to block the page.
So I'm writing to try to understand if I'm doing anything wrong.
Expected behavior

I simply expect a dropdown where options are divided in groups. The same I see in Material's Stackblitz example:
https://stackblitz.com/angular/nvvxerdxeqqq?file=app%2Fselect-optgroup-example.ts
Minimal reproduction of the problem with instructions

There you have a stackblitz example I generated:
https://stackblitz.com/edit/formly-group-select?file=src%2Fapp%2Fapp.component.ts
What is the motivation / use case for changing the behavior?

I gave a look to the code in github, and I noticed in ngx-formly/src/material/src/lib/types/select.ts that get selectOptions() is called infinite times. Let me tell you also that this not happens in case I have options without group selected.
Please tell us about your environment:

Angular version: 6.0.X
Material version: 6.0.X

Thank you in advance for your help and your work.

Can you paste the code that is causing it, cant load the stackbliz because of the error.

I modified the stackblitz commenting the select form with groups and uncommenting the non-grouped one.
Anyway, I give you the code:
app.component.ts
import { Component } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { FormlyFormOptions, FormlyFieldConfig } from '@ngx-formly/core';

@Component({
  selector: 'formly-app-example',
  templateUrl: './app.component.html',
})
export class AppComponent {
  form = new FormGroup({});
  model: any = {};
  options: FormlyFormOptions = {};

  fields: FormlyFieldConfig[] = [
    {
      key: 'marvel2',
      type: 'select',
      templateOptions: {
        label: 'Grouped Select',
        options: [
          {label: 'Iron Man', value: 'iron_man', group: 'Male'},
          {label: 'Captain America', value: 'captain_america', group: 'Male'},
          {label: 'Black Widow', value: 'black_widow', group: 'Female'},
          {label: 'Hulk', value: 'hulk', group: 'Male'},
          {label: 'Captain Marvel', value: 'captain_marvel', group: 'Female'},
        ],
      },
    },
  ];

  submit() {
    alert(JSON.stringify(this.model));
  }
}

app.component.html
<form [formGroup]="form" (ngSubmit)="submit()">
  <formly-form [model]="model" [fields]="fields" [options]="options" [form]="form">
    <button type="submit" class="btn btn-primary submit-button" [disabled]="!form.valid">Submit</button>
  </formly-form>
</form>

app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ReactiveFormsModule } from '@angular/forms';
import { FormlyModule } from '@ngx-formly/core';
import { FormlyMaterialModule } from '@ngx-formly/material';
import { MatSelectModule } from '@angular/material';

import { AppComponent } from './app.component';
@NgModule({
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    MatSelectModule,
    ReactiveFormsModule,
    FormlyMaterialModule,
    FormlyModule.forRoot(),
  ],
  bootstrap: [AppComponent],
  declarations: [
    AppComponent,
  ],
})
export class AppModule { }

I also added the ordinary
@import<EMAIL_ADDRESS>to styles.scss

fixed in 4.1.0


Log exceptions thrown during view rendering

Reproduction of #25 with this change applied results in the following log:
Exception thrown while rendering view
Traceback (most recent call last):
  File "/home/lo/Documents/prj/prometheus-pve-exporter/src/pve_exporter/http.py", line 103, in view
    return self._views[endpoint](**params)
  File "/home/lo/Documents/prj/prometheus-pve-exporter/src/pve_exporter/http.py", line 55, in on_pve
    output = collect_pve(self._config[module], target)
  File "/home/lo/Documents/prj/prometheus-pve-exporter/src/pve_exporter/collector.py", line 291, in collect_pve
    pve = ProxmoxAPI(host, **config)
TypeError: type object argument after ** must be a mapping, not NoneType
<IP_ADDRESS> - - [02/May/2020 17:23:28] "GET /pve?module=default HTTP/1.1" 500 -

Previously stack traces were suppressed completely.


Deterministic shard databases/files

As discussed in #2625 I'd like to propose a few changes to how shard databases are currently being built with the goal to have them created deterministically.
These changes would be:

Only allow NuDB for shard databases (at least the deterministic kind). RocksDB is too much of a moving target.
Values that are inserted into the shard database must be deterministically compressed (this could include not compressing them at all...)
salt, app_num, key_size, block_size, load_factor and the hashing algorithm must be fixed and not derived from properties of the current system (sane defaults would probably be an easily recognizable number + the current shard number as salt, 1 for the app_num, 32 bytes for the key size [as is currently standard anyways], 4 KiB for the block_size, 0.5 for the load_factor and xxhash for the hashing algorithm)
Deterministic shard database files can only be written once the last (highest) ledger sequence of that shard has been closed and only if all nodes of the 16384 ledgers they contain are available
To write such a database file, all nodes contained in the shard must be written single-threaded in sorted order (ascending or descending, whatever is easier to implement) to a NuDB file. I haven't checked yet if there are other caches or optimizations going on, but hopefully that should already be enough to guarantee a deterministic result. If there's a lot of RAM available, it might be possible to load the whole shard into memory and sort it there, otherwise it could mean hitting the node store twice (once for getting all the keys and after sorting them for the values again).

Once such a file has been generated (ideally also with a canonical name...), it then is possible to compare hashes with others, immediately help seeding torrents or IPFS swarms or use this knowledge to implement a trustless way of quickly getting a lot of history without hitting your peer's node stores or shard databases. If you want to get very fancy, it would even be possible to add IPFS or BTinfo hashes to the ledger itself, if validators are willing (and able) to download and verify their contents (e.g. by extending rippled into a historic-headers-only mode and then asserting that a shard database contains all nodes necessary to walk all SHAmaps in the specified range with an unbroken header chain up to the latest one).
An alternative to forcing determinism upon NuDB would be to not use a database file format at all and just specify a deterministic export/import format for shards. An example would be a CSV file containing sorted key-value pairs in simple hex or base64 encoding. If these are independently verifiable, it might be already enough. As far as I understand the shard import code though, it kinda expects being able to randomly query the import file like a database.
What do you guys think, which approach is better - getting NuDB to do something it wasn't really designed for or to already overhaul/refactor something in rippled that was just added on the latest release? I started some experiments with the "deterministic NuDB" approach, but I'd be more motivated to work on something presentable once I know which approach is preferred by you guys.
Tagging/pinging @miguelportilla and @nbougalis for sharding and overall design/feature roadmap expertise.

Alright, I managed to create a tar.lz4 file with deterministic contents that gets accepted by rippled and added to the shard store!
:tada:
Still to do: Create a tar archive deterministically (they contain all sorts of timestamps...) and then make sure that lz4 is also deterministic in operation...
There is a bigger downside though - upon import of shard tar.lz4 files, rippled just seems to unpack them, it does NOT recompress the contents upon import (implementing compression schemes other than the InnerNodes one does not sound very stable to me...) or process them in any way.


have init call reinitialize()

Add meaningful title here

Describe your feature here.
Related issue

Impacted areas of the software

Additional supporting information

Test results, if applicable

This last commit should have been in my last PR that I just merged and somehow I missed it.


exe "source" calls not executed in oni

Oni Version: 0.3.6
Neovim Version (Linux only): 0.3.6-2 (AUR)
Operating System: Arch Linux / GNOME
Issue:
I think I found a problem where I'm unsure whether or not it is related to neovim or oni itself.
With one of the latest updates (~3 months not updated on this machine, now it's broken everywhere I updated to 0.3.6) oni does not load my vimrc files properly anymore.
Inside my .vimrc / .nvimrc (both are symlinks to the actual file) I have something like an "index" structure where only my plugins and the standard stuff is set, it makes use of split(globpath()) in order to load external files via exe 'source' 'path-to-file'.
My complete .vimrc is available here, all files are commited in their current state, so a 1:1 copy can be reproduced by just cloning this repo into ~/.vim and by symlinking the vimrc/nvimrc afterwards: https://github.com/cookiengineer/.vim/blob/master/.vimrc
If you just use a single exe 'source' 'whatever.vim' call and inside it you set something different, e.g. set listchars and set list in there, it will be totally ignored by oni while not being ignored by vim.
Please note that in my case the ~/.vim folder is also a symlink, I don't know whether that's causing the issue or not (but will verify and update this issue afterwards with results).
Expected behavior:
exe 'source' 'path/to/file.vim' calls should work

Have you managed to check this with symlinks? I use a similar layout and have had no issues (https://github.com/CrossR/dotfiles/blob/master/neovim/.config/nvim/init.vim), so its possible that is the cause, but I wouldn't expect so if nvim/vim works fine with it.


Implement std::iter::{Sum,Product}

(copying from rust-num/num#233, here for Ratio only)
The Sum and Product traits are stable in 1.12.0, so we could implement them for our types.
(But we consider it a breaking change to increase the required rustc.)

An important bit of context from the original issue:

It's only that pesky "breaking change" label. There is a next branch now though, if you'd like to submit a pull request there. We could also consider it for the stable branch if it used a build script to gate the code, depending on the detected rustc version.

I'm assuming the "staging" branch is the equivalent of that for this repo.

staging is the branch that bors uses for testing merges.
I don't have a next branch now, because that basically got neglected in the old repo.  But I think I will be bumping num-complex and num-rational to 0.2 pretty soon.  If you'd like to open a PR on master for this issue, that would be great!


Cleanup the database clone

Cleanup the database clone in the dispose function. An assertion failure after the clone database created will keep the clone database stay in the system unless we clean it up in the dispose function like the normal database.

@torkins Looks like we have to refactor this test because the delete database calls in the dispose function are redundant because the Facts/tests themselves are also deleting the database. So, if the test succeeds the deletion in dispose function will be redundant. So, try/finally or using function should be the right approach.

@torkins Looks like we have to refactor this test because the delete database calls in the dispose function are redundant because the Facts/tests themselves are also deleting the database. So, if the test succeeds the deletion in dispose function will be redundant. So, try/finally or using function should be the right approach.

I guess we are good with this approach now but I will create a story to refactor this test.

Issue created to refactor the SDK
https://relationalai.atlassian.net/browse/RAI-9417

@torkins I have done the changes as you requested. Replied to your comments as well. This DatabaseTest.cs anyways require refactoring so either we close this PR and wait for the refactoring or merge this one for right now to avoid leaking databases until we refactor. I am with the second approach.

@torkins I have done the changes as you requested. Replied to your comments as well. This DatabaseTest.cs anyways require refactoring so either we close this PR and wait for the refactoring or merge this one for right now to avoid leaking databases until we refactor. I am with the second approach.

approved


Pip requirements files are not recognized

This only includes the .pip extension and the most common filename ('requirements.txt').

I don't suppose there's some creative way to disambiguate requirements.txt from a generic text file is there?  I actually have some plain text files with that name.

The contents just be a list of words so no.

According to here, can't we check, that the first X lines only consist of Comments for single words optionally followed by a version?

The comments are not mandatory. The following is a perfectly valid requirements file:
foobar

The comments are not mandatory. The following is a perfectly valid requirements file:
foobar

Yes. What I am trying to say is, does it make sense to only set the pymanifest filetype, if the file either contains single words per line (optionally allowing Comments and version identifier)?

No since it can have paths, urls, extras, etc..
Should I just drop the filename?

Here's two other plugins that support these files; perhaps they can be used as inspiration: https://github.com/benknoble/requirements.txt.vim, https://github.com/raimon49/requirements.txt.vim

yeah, I guess it is fine to include then. It may be a minor annoyance when using  requirements.txt file for actual text files, but that may be acceptable I guess?

It may be a minor annoyance when using requirements.txt file for actual text files, but that may be acceptable I guess?

Well, there won't be any highlighting without a plugin so it should be fine.


Zooming, panning, and aspect ratios in agents 3D plotting

This is a feature request.
I can see from reading the history on the repo that when 3D plotting functionality was added, that one goal was to have it be more uniform with how the 2D plotting works.
However, Axis3 apparently doesn't support zooming or panning https://discourse.julialang.org/t/makie-how-to-insert-an-axis3-into-a-scene-so-that-zooming-on-a-plot-is-possible/78584/2
It seems like LScene allows zooming (not sure about panning though--the docs are basically nonexistent https://docs.makie.org/v0.17.13/examples/blocks/lscene/index.html).
It would be nice to support zooming/panning for 3D plots, and also forcing the axes to be equal aspect ratio.

Hi, thanks for your comments on this topic. I agree that zooming and panning in 3D plots would be nice. I just had a look at how LScene works but it's not as easily incorporated in our recipe as I had hoped. One problem that arises from this is that LScene is a wrapper for a Scene but we are heavily relying on axes and their keywords in our recipe. If we switch away from Axis3 to LScene for 3D plots, that would make our recipe a bit more cluttered. Might be worth it, I don't know yet. Will play around with it a bit more and see in how far we can incorporate it.
Regarding the aspect ratio I'm unsure what you're asking for exactly. You can se the axis aspect of the abmplot already to your liking. I don't see any added value in forcing the plots to be always equal aspect ratio. Maybe you can elaborate a bit on this and why it would be desirable for all users.


Add statsd support

This PR adds statsd support to this gem. When passed in a client, the consumer will start incrementing counters for the number of processed, failed, retried and errored messages.
This will allow us to build a dashboard and add alerting for specific queues.
Trello: https://trello.com/c/Ipl9UVsA

:+1:

Updated PR.

@jackscotti renamed that class.
I'm closing this PR temporarily to sanity test this on integration.

Tested with a branch on integration. The counts seem to be sent to statsd allright. Fine to merge now.

Nice. :+1:


Do not use the absolute path to the workspace for the rich presence: rpc.detailsEditing

I only wanted to show the name of my workspace, instead of the entire path to the workspace. Is there a way to configure it like this?

I dug further into the source code:
https://github.com/LeonardSSH/coc-discord-rpc/blob/main/src/structures/Activity.ts#L37
I guess it didn't work as in the directories on Windows are actually backslashes: \ instead of the regular slash: /. The source only splits on regular slashes but not backslashes.

@LeonardSSH any plans to fix this, as in: checking the current platform and split on \ if it's Windows, and / if its not Windows?

It will be fixed in the next version, which will be in about a few days. Due to the fact that the entire extension was rewritten and passed on events, no more timers.
At the same time, moving to events, we added some new features, including the 'Viewing' option of the file.

😊

It will be fixed in the next version, which will be in about a few days. Due to the fact that the entire extension was rewritten and passed on events, no more timers.
At the same time, moving to events, we added some new features, including the 'Viewing' option of the file.

😊

Thank you 👍

Thank you 👍

I have updated to version 4.0.0 and it is fixed. Thank you!

I have updated to version 4.0.0 and it is fixed. Thank you!


Add virtcontainers trace support

This PR expands the opentracing support in the runtime, providing increased granularity by adding trace spans to the virtcontainers packages.
Like the initial PR (#565), the strategy here is to add context.Context parameters to all virtcontainers API calls. The specified context replaces the default context created in certain parts of the code and allows trace spans to be created.
I've added a trace() function in cli/tracing.go but most subsystems and subsystem implementations also create their own trace() method.
Tags have been added to spans, mostly via the trace() functions:

component
This is equivalent to the source log field (see https://github.com/kata-containers/tests/tree/master/cmd/log-parser#logfile-requirements) and is named this way to conform to the standard
(https://github.com/opentracing/specification/blob/master/semantic_conventions.md#span-tags-table).

type
This is used to provide more information for interface implementations.

Examples:

For component=network, type could be cnm.
For component=hypervisor, type could be qemu.

Fixes #566.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

Given the amount of code this touches, it would be great to get this reviewed sooner rather than later to avoid "rebase hell" if code changes underneath this PR... :)

recheck

Ping @amshinde, @sboeuf, @bergwolf.

Ping @egernst.

awesome.  @jodh-intel to easy stable handling, do you think we can seperate out the agent change from the VC changes?  It makes it a bit easier to track a whole PR for applicability.  WDYT?

@egernst Is this going to be a stable candidate?

@egernst - I agree. I've removed that commit and will raise a follow-on PR when this PR gets merged...
@egernst, @bergwolf  - Agreed - I don't think the tracing code should be in stable yet as it's brand new (and hence "unproven" at this point).

Ping @kata-containers/runtime - please can you review??

Errm, checking the F27 CI log:
Repository  was already defined in a 'Depends-on:' tag.
Only one repository per tag is allowed.

WTF? I didn't add any depends-on...? That message looks like "repository" is actually "" (note the double space before "was").
/me puts another coin in the slot and pulls the handle...

@amshinde, @bergwolf, @sboeuf, @egernst, @WeiZhang555 - ptal....

recheck

restarting jenkins-ci-fedora-27-vsocks


Slow processing speed

Describe the bug
I ran GLIM on ROS1 Noetic docker image (koide3/glim_ros1:noetic_cuda12.2), with the provided downsized rosbag (os1_128_01_downsampled.bag).
It seems a lot slower than expected. I expected faster processing speed, from this video (https://www.youtube.com/watch?v=CIfRqeV0irE).
Is this processing speed normal?
Here's a video capture of my run.
https://youtu.be/q0Pk7DriU8s
To Reproduce

Pull docker image from koide3/glim_ros1:noetic_cuda12.2.
Start the docker container with docker run -it --rm --net=host --ipc=host --pid=host --gpus all -e=DISPLAY -e=ROS_DOMAIN_ID -v ./config:/glim/config -v /data:/data koide3/glim_ros1:noetic_cuda12.2
roscore + rosrun glim_ros glim_rosnode + rosbag play /dta/os1_128_01_downsampled.bag

Expected behavior
I expected faster processing speed, like https://www.youtube.com/watch?v=CIfRqeV0irE
Screenshots
https://youtu.be/q0Pk7DriU8s
Environment (please complete the following information):

CPU/GPU: Core i9-13900K, RTX3080
OS: Ubuntu 20.04
ROS: ROS1 noetic docker
CUDA: CUDA 12.2
Build with CUDA: ON

To process faster, use glim_rosbag instead of glim_rosnode.

To process faster, use glim_rosbag instead of glim_rosnode.

Fixed!
glim_rosbag is super fast!! :+1: :+1: :+1:

Closing issue as solved.


ci(docker): add cache, labels and multiplatform

Codecov Report

Merging #159 (268532d) into main (a45d91b) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 268532d differs from pull request most recent head 38766cc. Consider uploading reports for the commit 38766cc to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #159   +/-   ##
=======================================
  Coverage   69.84%   69.84%
=======================================
  Files          23       23
  Lines        1572     1572
=======================================
  Hits         1098     1098
  Misses        412      412
  Partials       62       62

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix JRuby failures in CI

CI is failing for JRuby.
This commit gets the test suite passing.

There must've been an issue with Circle / JRuby.
The branches are now passing without code changes.


V0.6.0 rc quadtree

pyCSEP Pull Request Checklist
Please check out the contributing guidelines for some tips
on making pull requests to pyCSEP.
Fixes issue #(please fill in or delete if not needed).
Type of change:
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (this pull request adds no new code)
[ ] Unpublished science feature (This may require a science review)
[ ] This change requires a documentation update

Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

@khawajasim im going to close this pr for now for a couple of reasons. first, the CI is breaking (fixed changes are included in master). this is nothing to do with your code. its a dependency issue that comes from cartopy. id like to merge the work that you've already contributed to this branch and release v0.6.0. we can open this pull request against 'master' once v0.6.0 is released. second, the code needs some work to be ready to publish. the docstrings need formatted properly (see other functions) so that our documentation generator can correctly parse them and create docs page from it, and there are several places with unnecessary comments (e.g., print statements that were used for debugging). also, i think we should create a new module utils/quadtree.py (or something like this) to hold some of these new functions, which should help the circular import issue that you fixed with the local import. most of this is copied from our e-mail, but wanted to share it here.


highlighter tool

Resolving https://github.com/mbrlabs/Lorien/issues/242
Add a simple highlighter tool drawing on a layer at level 0
Other tools drawing on layer at level 2
Older versions are on layer at level 0
File version is now 3:
1 is the older one
2 is handling stroke's layer
3 is handling alpha on stroke color
Color and size selection stay the same but is applied:
size is the selected one *10 for the highlighter
color is the selected one with alpha 0.8 for the highlighter
The highlighter should have its own size/color in another iteration

Thank you for your contribution!
At this point though i don't want anything that involves multiple layers in the program. I'd first have to implement a proper extensible layer system to avoid hardcoded layers like this.
I am also not convinced this feature is worth the added complexity, so closing this.


Jazzy Jalisco support and docker image release

ROS 2 Jazzy is under process to release in May.2024, once it is released, add jazzy support.

https://github.com/fujitatomoya/ros2ai/pull/33 closes this issue.


"Menu" button broken on iPhone

On both iPhone 13 and iPhone SE the teal "Menu" button does not open the main menu.
I cannot test on an Android phone.

Tried several times to open the main menu without success.
Does the teal button work on an Android phone?

No, it's totally non-operative on my Android phone. (If you turn the phone to landscape orientation, the menu button is replaced by three bars on the right of the pink bar, and clicking on that does link to the menu items.)

Does not happen on iPhone: stuck on portrait

It's easily replicated on a desktop by making the window narrow enough. This screen grab suggests that the Menu button is simply a link to Google Analytics:

I tried the turn it off and back on again thing. The screen is rotating and the hamburger is working!
@richardofsussex if that is the case, surely we should not even see it?

As is often the case with Rails code, it is impossible to deduce from the source exactly what is meant to happen. I can see the logic of the hamburger being replaced by a Menu button at the smallest width, but only if it actually links to/opens said menu.

Indeed!!

This is the code which displays the menu (in three different ways, depending on screen width):

You can see that the aria-label attribute value is what is being displayed at the smallest screen width as the button text.

Sorry — cannot see that. I see aria-label="Main menu" Perhaps I'm looking at the wrong thing?

That's exactly my point: the code says
<nav class="main-nav float--right" role="navigation" aria-label="Main menu">            <ul class="nav hide_nav capitalize">
and you can see from the Inspector scope that this is all that controls that whole three-level-alternate-display behaviour.

Er, "Main menu" is not the same as "Menu". What am I missing here?

Comparing with FreeReg and FreeCEN, I see that those sites misbehave in a different way when you narrow the browser width to 'palm'. The menu headings shuffle up as you narrow the window, then suddenly 'jump' to the right (off the screen) when 'palm' width is reached. There is no intermediate 'hamburger' state. The Menu button is the same as for BMD, except that it works ... but it is almost hidden by a cookie acceptance dialogue which appears and won't go away.

The id trigger-offcanvas-old is an attribute of the containing <div> element, not of the <button> with class site__header__menu-btn. This means that the event is associated with this <div> element, not the button:

In CEN and REG, there is no containing <div>, and the <button> has both id and class (though the id is trigger-offcanvas, i.e. not identical). In these projects, the event is associated with the <button>. Could this be why it works for them, but not in BMD2?

@Vino-S finds that the javascript is not working

@richardofsussex Ready for testing in test3

This now works nicely both on my desktop (with an increasingly narrow window) and on my Android phone. In both cases, as the screen narrows the menu items on the bar first become a hamburger on the bar, then at the narrowest screen width they become a separate Menu button above the bar. In both cases, and on both devices, the hamburger/menu works as it should and offers the menu items as links. Nice work.

@AlOneill could you test this is fixed on iPhone please? Then we can close

@DeniseColbert
I can confirm that the "MENU" button opens the menu. And a second tap closes the menu, although part of the button is not visible, being off the screen to the left so that I see "ENU".
The cookie acceptance works as expected. Thank you.


Alpha opener

The file == "" check fixes an issue preventing FastAI working in Notebooks, especially any display functions.
Basically fastprogress are updating on empty HTML (don't understand reason), which makes Jupyter check if it's a file.
And it does that using os.stat, so it tries to do a os.stat("").
We could handle it ourselves, but imo relative_path("") returning "." is wrong behavior

 Streaming Client: overeager custom opener check in open


Builds failing because of pep8 version

We need to figure out which version of flake8 has an appropriate version of pep8 and hardcode it in the requirements.txt file.
The current version of flake8 uses pep8 1.6.2.  We need a version of pep8 above or equal to 1.5.7 and less than 1.6.
$ flake8 tests ga4gh scripts
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7.9/bin/flake8", line 11, in <module>
  sys.exit(main())
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/flake8/   main.py", line 24, in main
  flake8_style = get_style_guide(parse_argv=True, config_file=DEFAULT_CONFIG)   File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/flake8/   engine.py", line 110, in get_style_guide
  kwargs['parser'], options_hooks = get_parser()
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/flake8/   engine.py", line 48, in get_parser
  (extensions, parser_hooks, options_hooks, ignored) = _register_extensions()
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/flake8/   engine.py", line 32, in _register_extensions
  checker = entry.load()
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/          pkg_resources/__init__.py", line 2309, in load
  self.require(*args, **kwargs)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/          pkg_resources/__init__.py", line 2326, in require
  items = working_set.resolve(reqs, env, installer)
File "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/          pkg_resources/__init__.py", line 810, in resolve
  raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pep8 1.6.2 (/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages), Requirement.parse('pep8<1.6,>=1.5.7'))
The command "flake8 tests ga4gh scripts" exited with 1.

Er, actually, pep8 is set in our requirements.txt file itself.  So we can just hardcode it there.

Fixed in d9db9d0ae3e47b5ecd5a0d01731b7b3384829226


Load multiple wimdo and camdo models

Some models are split across multiple files.  One approach is to add model loading functions that take an iterator of paths. Loading a single model can call this function internally with std::iter::once. Merging a ModelRoot should also merge the skeletons. Skeleton merging can be tested with unit tests.

[ ] load_models and load_models_legacy
[ ] merge ModelRoot
[ ] support multiple files for xc3_gltf and xc3_viewer

It may be more accurate to load a single complete skeleton instead of trying to merge partial skeletons from wimdo skinning information.


Regrading to visualization results in the papaer

First of all, thank you for your work.
I wonder details for an experiment of visualization in your paper. (Fig. 5)
How did you project vectors for a sentence for visualizations?

Hi, we take hidden states from LLM's last layer and use the averaged vector as the sentence representation

Thank you for your answer!
I'll refer to embedding.py for more details.


Ansible processes are orphaned and remain running when reconciliation timeout occurs

What happened?

When timeout flag is set, I'd expect that ansible playbooks/roles/commands exit whenever that timeout is reached. Instead, only the calling reconciliation loop stops, but the ansible-runner process stays around, leaking resources.
How can we reproduce it?

For convenience, set a small timeout, e.g. 1min, and set -d for debug logging
Create an ansiblerun that for sure runs longer than a the timeout, e.g.

apiVersion: ansible.crossplane.io/v1alpha1
kind: AnsibleRun
metadata:
  name: test-timeout
spec:
  deletionPolicy: Orphan
  forProvider:
    inventoryInline: |
      cluster:
        hosts:
          default:
            ansible_host: <my VM IP>
    playbookInline: |
      - hosts: cluster
        tasks:
        - pause:
            minutes: 10
    vars:
      ansible_ssh_private_key_file: ./ssh_id
      ansible_ssh_user: root
  providerConfigRef:
    name: test-timeout

In the logs, things actually look good cause it looks like the ansible process got killed after 2 min:
PLAY [cluster] *****************************************************************

TASK [pause] *******************************************************************
Pausing for 600 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
2024-01-23T17:34:10Z    DEBUG   provider-ansible        Cannot observe external resource {"controller": "managed/ansiblerun.ansible.crossplane.io", "request": {"name":"test-timeout"}, "uid": "813b3bca-0fef-4849-9a1e-5ae9062b5f2e", "version": "482235", "external-name": "test-timeout", "error": "signal: killed"}

BUT when I execed into the provider-ansible pod, it looks like some processes frim this run are still around:
provider-ansible-593234d4c171-74994bbbbb-s4rlc:/$ ps -o pid,ppid,time,etime,args,rss | grep ansible-play | grep -v grep
 2640     1  0:10 14:05   [ansible-playboo]
 3065     1  0:23  9:13   {ansible-playboo} /usr/local/bin/python /usr/local/bin/ansible-playbook -e @/ansibleDir/813b3bca-0fef-4849-9a1e-5ae9062b5f2e/env/extravars playbook.yml
 3069  3065  0:00  9:12   {ansible-playboo} /usr/local/bin/python /usr/local/bin/ansible-playbook -e @/ansibleDir/813b3bca-0fef-4849-9a1e-5ae9062b5f2e/env/extravars playbook.yml

In the real-world case of this bug, when timeout was left at the default 20min, I was still seeing ansible processes several hours old...
What environment did it happen in?
Crossplane version:
1.14.0

ansible-runner gets SIGKILLed by the default exec.Cmd's Cancel() function. It gets called when the context passed to the command is Done().
That way ansible-runner doesn't get a chance to do any graceful shutdown, so all the ansible-playbook brocesses remain orphaned and running.
I've experimented with other signals and ansible-runner appears to handle SIGINT and SIGTERM by shutting down the ansible-playbook (or whatever other command) it spun up, so will be submitting a PR with that change.


typing exported JSON files

Thank you so much for this very useful tool. This issue is about asking questions relative to JSON files.
Typings of exported JSON files
I've tried to run it against a package that my team is publishing and I am wondering what's the right approach for typings exported JSON files? For example, the following package exports declaration:
"exports": {
   "./foo.json": "./dist/foo.json"
}

Result in the following errors:

Imports of "package/foo.json" under all modern module resolution settings resolved to JavaScript files, but no types.

And:

Imports of multiple entrypoints resolved to ES modules from a CJS importing module. CJS modules in Node will only be able to access this entrypoint with a dynamic import

Ignoring exported package.json?
On a side note, shall we ignore the entry that exports the package.json when present?
"exports": {
  "./package.json": "./package.json",
}

Happy to do a PR if you think that should be the default.
Looking forward to the TS documentation updates.

The message is slightly wrong for JSON files because unlike .js files, .json files have types inferred for them automatically as long as they resolve (some modes need to use resolveJsonModule for this; I have it turned on for the analysis). So, resolutions to JSON files should not be reported as a problem, though I think it would be nice to indicate what’s happening with them in some way, since in TypeScript 5.0.0, it’s possible to write types for a JSON file by using a *.d.json.ts extension.
I also think it’s nice to see the package.json subpath represented. In fact, it could be a good feature to always try to resolve the package.json, so that it shows up as a legitimate failure if a package uses exports but forgot to add package.json to it (very easy to do until you need it!).

Thanks a lot for the detailed answer! Would you consider a PR that doesn't report JSON files as a problem?

I think it would be nice to indicate what’s happening with them in some way since in TypeScript 5.0.0, it’s possible to write types for a JSON file by using a *.d.json.ts extension

Do you have suggestions on how to handle this?

I’ll handle this soon. I appreciate the offer to contribute, but I’m not 100% sure how I want to represent this yet, and the code is a little too in flux (read: sloppy and unsure of its own abstractions) for me to encourage a PR at this point 😅. This was a real get-it-up-and-running-and-clean-it-up-later project.

Appreciate your honesty and transparency, thanks a lot!

I have a similar issue with css files. My package provides imports for css files:
https://github.com/hazel-ui/hazel-ui/blob/main/package.json#L10-L11
It should be safe to assume that css files are not going to have an accompanying declarations file and can be ignored.

CSS files can certainly have accompanying declaration files

I don’t know; this project is designed to give you information, not block a build like a linter. As a human, you can decide what information is relevant to your particular case. If I simply remove information, I give everyone less information, which seems strictly worse.
In the future, I would like to make a “severity” system to separate errors, warnings, and info. At that point, it would be reasonable to make untyped non-JS files an “info” instead of appearing to be a problem. And if there’s ever a CLI version of this tool, it would definitely make sense to be able to ignore certain severities or certain problem kinds. But for now, I don’t think it’s worth it to hide entrypoint information in these edge cases. Some people will have non-JS entrypoints that they definitely want to provide types for.


Added deep equality checks for undoing actions

I'm afraid I can't merge this once since this will hurt the performance of the application. The reason why the current version is performant is because they check references, and every action has its own reference. Is there a reason why the current version doesn't work for you?

Hi, I don't know your implementations but the original version just doesn't work for me. I believe that you tested undo functionality with assumption that redux action is a plain object cached in one variable. But in my application I've got action creators functions (common redux pattern) that return new action object every time. Because of this filtering actions in handleUndo.ts solely by reference just doesn't work. Maybe where should be some initialization options to choose from shallow or deep equality comparisons.

The thing is that you have to undo the original action, not a new one, that's the whole idea. Like I said in my previous comment, if you create 2 todo items with the exact same content
{
    type: 'ADD_TODO',
    payload: {
        title: 'My todo'
    }
}

const todo1 = MyActionCreator.addTodo('My Todo');

dispatch(todo1);

const todo2 = MyActionCreator.addTodo('My Todo');

dispatch(todo2);

// Undo the second one
dispatch(undo(todo2));

With this PR I will end up with 0 todos because it checks the content. Not what you would expect. When you undo an action, you will have to call undo with the original action (see my example), not with a new one.
THIS IS WRONG!
const todo = MyActionCreator.addTodo('My Todo');

dispatch(todo);

// Undo
dispatch(undo(MyActionCreator.addTodo('My Todo')));

very well explained! You indeed want to keep a reference to your action. Otherwise it will never work :)

OK. Thanks for you answers. I refactor my code to pass original action object to undo and it works well. I didn't think that it works based on reference because redux architecture is based on coping objects and immutability so I don't rely on references much.


Extension not loading - againg?

Version: 1.72.2 (user setup)
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:15:18.074Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No
A have tha same issue.
Do not use parent colorize.

Use these extensions and there is no error in the log.
love this extension.
thanks ludek

Hi, I'll answer here:
https://github.com/leodevbro/vscode-blockman/issues/8

Please show me the settings json files of User and Workspace.

It happens in all my projects, workspaces. I am attaching a settings of one of them.

with new VSCode update the block man works again. From today.


Notification when disabled

In the application, the notification is disbled.
But I still sometime have notifications.
And usually not at all at the right time.
For example here, notification to remove the ring after only 6 hours.

I am aware if this issue, i'll try to fix it definitely


Connect to tracker

Received this error my tracker is GT02_MT626/DV2.2
#:  is trying to 'noop' but it isn't loged. Action wasn't executed
78781f12120a1f120d1dc0029297a304f7ed2b00080002d40a101100c96a0009c22d0d0a
<Buffer 78 78 1f 12 12 0a 1f 12 0d 1d c0 02 92 97 a3 04 f7 ed 2b 00 08 00 02 d4 0a 10 11 00 c9 6a 00 09 c2 2d 0d 0a>
noop
{ start: '7878',
  length: 31,
  finish: '0d0a',
  protocal_id: '12',
  device_id: '',
  cmd: 'noop',
  action: 'noop' }
#:  is trying to 'noop' but it isn't loged. Action wasn't executed

Same problem...
78780d010352887078955048005552640d0a
#:  is trying to 'noop' but it isn't loged. Action wasn't executed
Some solution?


Setup build process

Description
Provide build for PR and maser
Fixes #9
Type of Change:
Delete irrelevant options.

Quality Assurance
New feature (non-breaking change which adds functionality)

Checklist

[x] Config
[x] Setup in circleci
[x] Verification (see bellow)

Sadly I cannot test that without merge. Please review this PR but I would love to merge that to see if we will get the build process setup

Sorry I only saw it now. But LGTM anyway and I saw the build works ;)


当发布maui blazor项目时报错

严重性	代码	说明	项目	文件	行	禁止显示状态	详细信息 错误		资产文件“D:\Downloads\blazor-samples-main (1)\blazor-samples-main\8.0\MauiBlazorWeb\MauiBlazorWeb.Shared\obj\project.assets.json”没有“net8.0”的目标。确保已运行还原，且“net8.0”已包含在项目的 TargetFrameworks 中。	MauiBlazorWeb.Maui	C:\Program Files\dotnet\sdk\8.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	266

Severity Code Description Project File Line Suppressed Status Details Error Asset File "D:\Downloads\blazor-samples-main (1)\blazor-samples-main\8.0\MauiBlazorWeb\MauiBlazorWeb.Shared\obj\project.assets. json" does not have a target for "net8.0". Make sure the restore has been run and "net8.0" is included in the project's TargetFrameworks

This is a NuGet package restore problem of some sort. There are public conversations about this happening and various approaches for resolving it. For example, here's a discussion with several potential solutions ...
https://stackoverflow.com/questions/72280776/assets-file-project-assets-json-doesnt-have-a-target-for-net6-0-vs2022
If you work through the various approaches to solve the error and you can't get the app to compile and run, open an issue on the product unit's repo for assistance (and note that they only speak English, so you might want to use Google Translate to converse with them) ...
https://github.com/dotnet/maui/issues

Thanks for the reply @guardrex


Speaker dialog module shows sessions addressed by the speaker

The speaker dialog box shows the sessions addressed by the speaker in card layout. Clicking on this sessions opens the dialog module for the particular session

Sir, I have amended the code to use array filter. Please review.

@SaptakS see my comments above.

Amended the changes. Please review.

:+1: Looks good thanks for the fix.

(y)


Documentation issues

typo https://docs.botframework.com/en-us/core-concepts/reference/#navtitle, see Stating a Conversation. should be see Starting a Conversation.
broken url https://docs.botframework.com/en-us/core-concepts/conversation see Alarm Bot and Proactive Messaging. the Proactive Messaging link 404s.

Fixed, thanks for the reports.


URL Cleanup

This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
Fixed URLs
Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

[ ] http://www.apache.org/licenses/ with 3 occurrences migrated to:
https://www.apache.org/licenses/ (https result 200).
[ ] http://www.apache.org/licenses/LICENSE-2.0 with 587 occurrences migrated to:
https://www.apache.org/licenses/LICENSE-2.0 (https result 200).

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


Question: is there anyway we can use MDI Icons instead of Text?

Question: is there anyway we can use MDI Icons instead of Text?
I would like to use the 6 panel look and having icons instead of Text would be alot easier to manage,

To do that we'd need a material icon font that places the icons into standard code points to replace normal alphabetic letters, in a manner similar to the old wingdings/webdings/etc fonts.  Once that's in place, the font could be imported with the Nextion editor and would be usable in the project.  I have no idea how one might get that done :(

Closing this issue as it has been answered above.


Cpp model generation from the cellml models

I am developing a class to generate cpp code from the cellml models. This uses libcellml.
In this generation we will be able to annotate the cellml models from module annotations in the module_config file. We will be able to generate cpp models that:

have time delays.
Can couple with external Cpp code (Muller's 1D code for example).

This is working, still improvements to be done, but working


Assigning an EIP

Issue on page:        https://github.com/opentelekomcloud-docs/elastic-ip/blob/main/api-ref/source/apis/elastic_ip/assigning_an_eip.rst
In table 3 there is missing the option "ip_version" with this it is possible to create an ipv6 adresse. in the code example further down the page the option is included

fixed.


Fix bootloader unknown

Oops!
Looks like my initial pull request caused an issue on non Pi 4 boards.
I've improved the get_actual_version function further; Instead of splicing the string from vcgencmd bootloader_version, I am just getting the bootloader version from a bash command.
I have tested this on my Pi 4 and Pi 2, everything should be working just fine.

Unfortunately I don't have Pi 4 < boards so I can't test it myself. If you sure about path and file format I will push it.

That's understandable.
Yes, with the previous version I was having the same problem as in issue #27 on my Pi 2. With this new fix, instead of using vcgencmd bootloader_version I used a bash command to just find all of the installed eeproms and select the most recent one.
I've tested this fix on the Pi 2 and the Pi 4 on a clean install and the program installs and runs without issue, so I'm pretty sure the path and file format should be good.


CI: Use epics-on-travis instead of conda or Debian.

Travis did not pick this up....

What's the motivation?

Bit more reliable / controlled and faster to install.

Travis does not like these changes or this PR for whatever reason.

Let's just move to azure eventually...


Relax Python version constraint

Hello,
questionary is supposed to work with Python 3.10, and the version constraint has been relaxed upstream a few months back more than a year ago.
This PR brings this relaxed constraint to the conda-forge package.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Thank you!