There was an error checking for updates.

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
Hello,
When I click Atom -> Check for update, I got this error message.
"There was an error checking for updates. The command is disabled and cannot be executed. " And in Atom -> About Atom, it also shows "The command is disabled and cannot be executed." I saw some tickets said that after upgrading and relaunching atom, it shows up. But in my case, it is always show this. I have to install latest version manually.
Steps to Reproduce

Atom -> Check for Update or Atom -> About Atom.

Expected behavior: [What you expect to happen]
Be able to update Atom or see message like "this is the latest version"
Actual behavior: [What actually happens]
"There was an error checking for updates. The command is disabled and cannot be executed. "
Reproduces how often: [What percentage of the time does it reproduce?]
Every time. Can't update atom at all.
Versions
atom -v
Atom    : 1.19.3
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0
apm -v
apm  1.18.4
npm  3.10.10
node 6.9.5 x64
python 2.7.10
git 2.11.0

I have the same problem running on OS X 10.12.6

I, too, have this problem. MacOS 10.12.6

My friend's macbook pro doesn't have this issue. Same MacOS 10.12.6. The only difference from "apm -v" is Python version is 3. I installed Python 3. But I tried to install python 3, the issue is still there.

Hello rsese,
My issue is still there after I tried the solution in #15398 .
[zhisun01:~] 24m31s % apm outdated; apm update;
Package Updates Available (1)
└── vim-mode-plus 1.0.0 -> 1.3.3
Package Updates Available (1)
└── vim-mode-plus 1.0.0 -> 1.3.3
Would you like to install these updates? (yes) yes
Installing<EMAIL_ADDRESS>to /Users/zhisun01/.atom/packages ✓

I don't know if this is helpful or not, but this is the message I'm getting in my ShipIt_stderr.log when I try to update Atom:
2017-09-06 16:40:25.249 ShipIt[11680:16322698] Resuming installation attempt 3
2017-09-06 16:41:34.907 ShipIt[11680:16322699] Installation error: Error Domain=SQRLInstallerErrorDomain Code=-1 "Failed to copy bundle file:///Users/asalvo13/Library/Caches/com.github.atom.ShipIt/update.T0FVdja/Atom.app/ to directory file:///var/folders/9d/rf342xqx2zz5dh4y65dcq4t95q1rch/T/com.github.atom.ShipIt.MrGBl8ar/Atom.app" UserInfo={NSSourceFilePathErrorKey=/Users/asalvo13/Library/Caches/com.github.atom.ShipIt/update.T0FVdja/Atom.app/Contents/Resources/app/node_modules/babel-generator/node_modules/lodash/sum.js, NSUserStringVariant=(
    Copy
), NSDestinationFilePath=/var/folders/9d/rf342xqx2zz5dh4y65dcq4t95q1rch/T/com.github.atom.ShipIt.MrGBl8ar/Atom.app/Contents/Resources/app/node_modules/babel-generator/node_modules/lodash/sum.js, NSFilePath=/Users/asalvo13/Library/Caches/com.github.atom.ShipIt/update.T0FVdja/Atom.app/Contents/Resources/app/node_modules/babel-generator/node_modules/lodash/sum.js, NSUnderlyingError=0x7fe2da5d7070 {Error Domain=NSCocoaErrorDomain Code=4 "The file “sum.js” doesn’t exist." UserInfo={NSSourceFilePathErrorKey=/Users/asalvo13/Library/Caches/com.github.atom.ShipIt/update.T0FVdja/Atom.app/Contents/Resources/app/node_modules/babel-generator/node_modules/lodash/sum.js, NSUserStringVariant=(
    Copy
), NSDestinationFilePath=/var/folders/9d/rf342xqx2zz5dh4y65dcq4t95q1rch/T/com.github.atom.ShipIt.MrGBl8ar/Atom.app/Contents/Resources/app/node_modules/babel-generator/node_modules/lodash/sum.js, NSFilePath=/Users/asalvo13/Library/Caches/com.github.atom.ShipIt/update.T0FVdja/Atom.app/Contents/Resources/app/node_modules/babel-generator/node_modules/lodash/sum.js, NSUnderlyingError=0x7fe2df1738d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}, NSLocalizedDescription=Failed to copy bundle file:///Users/asalvo13/Library/Caches/com.github.atom.ShipIt/update.T0FVdja/Atom.app/ to directory file:///var/folders/9d/rf342xqx2zz5dh4y65dcq4t95q1rch/T/com.github.atom.ShipIt.MrGBl8ar/Atom.app}
2017-09-06 16:41:34.907 ShipIt[11680:16322699] ShipIt quitting

Kind of looks like it might be an issue with Lodash.

Hmmmk so I got this update installed and resolved the error message:
Here's what I did:

Close Atom
Cleared out all files and directories under ~/Library/Caches/com.github.atom.ShipIt
Opened Atom.
Checked for updates, then did a restart and install.
Kept an eye on the ShipIt process, and after about 5 minutes Atom re-launched.

Thanks @naunga . But it seems this solution doesn't work for me. :-(

I tried some command option. It seems that module "auto-updater" can't be find.

so anybody knows ?

I'm on macOS. I used the AppCleaner to remove Atom v1.19.5 from my system. (The ~/.atom directory stayed in tact.) Then I installed v1.20.1, and I don't have any issues so far. I am able to manually check for updates without an error message popping up like before.

@onebree To use flag, I fix the problem.

@zhouyu1993 That FAQ doesn't fix my issue.

@naunga I think you may have hit https://github.com/atom/atom/issues/2860?
But it doesn't sound like you're running into that issue @zhiyisun - do you see any errors related errors in Console.app?
Cross-referencing a couple of other issues with the same "The command is disabled and cannot be executed" error:

https://github.com/atom/atom/issues/2230
https://github.com/atom/atom/issues/15512

@rsese seems similar and I did look at that issue previously, however my login has admin rights on my laptop.
That having been said, I've run into  "The command is disabled" issue again since last updating.
¯_(ツ)_/¯ computers are fun.

That having been said, I've run into "The command is disabled" issue again since last updating.

Ugh, do you see any related errors in Console.app?

@rsese I do not at present. Haven't checked previously. The issue seemed to resolve itself. I wonder if it's just a matter of slow connection & large downloads?

I wonder if it's just a matter of slow connection & large downloads?

Not sure, though there was at least 1 other comment about timing that I remember seeing /cc https://github.com/atom/atom/issues/15574#issuecomment-327764237

@rsese : Hello. Started having the OP's issue yesterday (11/4/17). I first installed Atom on 10/30/17
Errors in Console.app? Yep. Including a sample below. (Note: I've subbed "[WhoIAm]" for my actual username.)
_

11/5/17 7:14:03.035 PM Atom[6238]: Download completed to: file:///Users/[WhoIAm]/Library/Caches/com.github.atom.ShipIt/update.cNFThhX/atom-mac.zip
11/5/17 7:14:38.063 PM ShipIt[6196]: Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={NSLocalizedDescription=Permission denied}
11/5/17 7:14:38.063 PM ShipIt[6196]: ShipIt quitting
11/5/17 7:17:33.687 PM ShipIt[6281]: Resuming installation attempt 3
11/5/17 7:17:33.700 PM ShipIt[6281]: Couldn't abort install and restore owned bundle to previous location file:///Applications/Atom.app, error NSError { domain: NSPOSIXErrorDomain, code: 2, description: "No such file or directory" }
11/5/17 7:18:14.883 PM Atom[6301]: Download completed to: file:///Users/[WhoIAm]/Library/Caches/com.github.atom.ShipIt/update.vSNcKSZ/atom-mac.zip
11/5/17 7:18:47.713 PM ShipIt[6281]: Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={NSLocalizedDescription=Permission denied}
11/5/17 7:18:47.729 PM ShipIt[6281]: ShipIt quitting
11/5/17 7:18:47.806 PM ShipIt[6339]: Too many attempts to install, aborting update
11/5/17 7:18:47.808 PM ShipIt[6339]: Error aborting installation: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSLocalizedDescription=No such file or directory}
11/5/17 7:18:47.857 PM ShipIt[6339]: Application launched at file:///Applications/Atom.app
11/5/17 7:18:47.857 PM ShipIt[6339]: ShipIt quitting

_
OS: El Capitan 10.11.6
Atom version(s):  1.21.1 manually updated to 1.21.2 (produces the same error-- so I've disabled the auto-update option)
Tooled around the forums and saw that there was(/is?) an issue with updates for non-admin users. However, that seemed to be from a few years ago. Usually I'm just prompted to enter the admin credentials and go on my way.
I'm a novice using this for Dr. Chuck's PY4E class. So I apologize if I'm missing something very basic here. If you need additional info, please let me know (and I'll try to perform the needed steps).  Thanks.

<EMAIL_ADDRESS>


Main README.md points to broken link for OSM Development Guide

Please describe what should be documented
In the main README.md:
If you would like to contribute to OSM, check out the development guide.
The link points to: https://github.com/openservicemesh/osm/blob/main/docs/dev_guide/README.md
but it should point to: https://github.com/openservicemesh/osm/blob/main/docs/development_guide/README.md
Please suggest where in the repo the document should be located
https://github.com/openservicemesh/osm/blob/main/README.md

Thanks! Looks like this was resolved in https://github.com/openservicemesh/osm/issues/4321.


Fix to #8652 - InvalidCastException when casting from one value type to another in a simple select statement

Problem was for queries with value types being projected in a select expression when also using convert. The problem was that getValue is typed as object which then was converted to an expected type. However if the value returned by SQL was not exactly the same type, exception would get thrown due to boxing/unboxing.
Fix is to detect when we apply convert on a top level projection, and in this case use explicit cast, so that type returned by SQL was exactly the same as the type that was expected after unboxing.
Also added support for translating Negate expression, which was previously evaluated on the client.

new version up @smitpatel @anpete

Test failures on CI.

smitbot! :trollface:

fixed @smitpatel

ping @anpete @smitpatel

😨


distro: Refactor assertions

Fixes https://github.com/signalfx/splunk-otel-go/issues/2261

Codecov Report
Patch coverage has no change and project coverage change: -0.35 :warning:

Comparison is base (ab3f970) 82.49% compared to head (c35cc0e) 82.15%.

:exclamation: Current head c35cc0e differs from pull request most recent head aa9ce83. Consider uploading reports for the commit aa9ce83 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2264      +/-   ##
==========================================
- Coverage   82.49%   82.15%   -0.35%
==========================================
  Files          76       76
  Lines        2891     2891
==========================================
- Hits         2385     2375      -10
- Misses        443      451       +8
- Partials       63       65       +2

Flag
Coverage Δ

Linux
82.15% <ø> (ø)

Windows
?

macOS
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Achievements are not being saved

When you get a achievement, it's not being saved.
30/05/2016 - 18:50:45 [INFORMATION] Shad0wCore joined the game
30/05/2016 - 18:51:49 [INFORMATION] Shad0wCore has just earned the achievement [Taking Inventory]
30/05/2016 - 18:51:53 [INFORMATION] Shad0wCore issued command: /save-all
30/05/2016 - 18:51:53 [INFORMATION] Shad0wCore: Forcing save..
30/05/2016 - 18:51:56 [INFORMATION] Shad0wCore: Save complete.
30/05/2016 - 18:51:57 [INFORMATION] Shad0wCore [/<IP_ADDRESS>:64444] lost connection
30/05/2016 - 18:51:57 [INFORMATION] Shad0wCore left the game
30/05/2016 - 18:52:04 [INFORMATION] Scanning plugins...
30/05/2016 - 18:52:04 [INFORMATION] PluginTypeDetector: found 1 Bukkit, 0 Sponge, 0 Forge, 0 Canary, 0 unknown plugins (total 1)
30/05/2016 - 18:52:04 [INFORMATION] Set PluginClassLoader as parallel capable
30/05/2016 - 18:52:04 [INFORMATION] Preparing spawn for world...
30/05/2016 - 18:52:05 [INFORMATION] Preparing spawn for world: done
30/05/2016 - 18:52:05 [INFORMATION] Preparing spawn for world_nether...
30/05/2016 - 18:52:06 [INFORMATION] Preparing spawn for world_nether: done
30/05/2016 - 18:52:06 [INFORMATION] Preparing spawn for world_the_end...
30/05/2016 - 18:52:06 [INFORMATION] Preparing spawn for world_the_end: done
30/05/2016 - 18:52:06 [INFORMATION] [Essentials] Enabling Essentials vTeamCity
30/05/2016 - 18:52:06 [INFORMATION] Bukkit version format changed. Version not checked.
30/05/2016 - 18:52:06 [INFORMATION] 1.9.2-SNAPSHOT-6bbf762-MC1.9.2
30/05/2016 - 18:52:06 [INFORMATION] 1.9.2-R0.1-SNAPSHOT
30/05/2016 - 18:52:06 [INFORMATION] [Essentials] Starting Essentials ban format conversion
30/05/2016 - 18:52:06 [INFORMATION] [Essentials] Found 1 files to convert...
30/05/2016 - 18:52:06 [INFORMATION] [Essentials] Converted 0/1
30/05/2016 - 18:52:06 [INFORMATION] [Essentials] Ban format update complete.
30/05/2016 - 18:52:06 [INFORMATION] Using locale de_DE
30/05/2016 - 18:52:06 [INFORMATION] Using locale de_DE
30/05/2016 - 18:52:06 [INFORMATION] Essentials: Using config file enhanced permissions.
30/05/2016 - 18:52:06 [INFORMATION] Permissions listed in as player-commands will be given to all users.
30/05/2016 - 18:52:07 [INFORMATION] Binding to address: <IP_ADDRESS>/<IP_ADDRESS>:25565...
30/05/2016 - 18:52:07 [INFORMATION] Successfully bound to: /0:0:0:0:0:0:0:0:25565
30/05/2016 - 18:52:07 [INFORMATION] Ready for connections.
30/05/2016 - 18:52:09 [INFORMATION] Shad0wCore [/<IP_ADDRESS>:64623] connected, UUID: 25815b1c-445c-419d-b831-3a8b24b3b691
30/05/2016 - 18:52:09 [INFORMATION] Shad0wCore joined the game
30/05/2016 - 18:52:10 [INFORMATION] Shad0wCore has just earned the achievement [Taking Inventory]

Notice the time difference:
30/05/2016 - 18:51:49 [INFORMATION] Shad0wCore has just earned the achievement [Taking Inventory]
30/05/2016 - 18:52:10 [INFORMATION] Shad0wCore has just earned the achievement [Taking Inventory]

And I also saved the world (player-data):
30/05/2016 - 18:51:53 [INFORMATION] Shad0wCore issued command: /save-all
30/05/2016 - 18:51:53 [INFORMATION] Shad0wCore: Forcing save..
30/05/2016 - 18:51:56 [INFORMATION] Shad0wCore: Save complete.

Fixed in https://github.com/GlowstoneMC/GlowstonePlusPlus/commit/6b93290a46ec77960eea46cf00f15526d3ea91a7


Dataproc resource button not active for DataprocSubmitJobOperatorAsync

Describe the bug
Dataproc resource button not active for DataprocSubmitJobOperatorAsync.
To Reproduce
Steps to reproduce the behavior:

Create a DAG with DataprocSubmitJobOperatorAsync
Run the DataprocSubmitJobOperatorAsync task

Expected behavior
The button should allow the user to go to the resource page once the task begins execution.
Screenshots

Additional context
Zendesk Ticket

The reason the button is inactive is because DataprocSubmitJobOperatorAsync extends DataprocSubmitJobOperator.
The button is defined in DataprocSubmitJobOperator which only has the URL after the task begins execution (source).
DataprocSubmitJobOperatorAsync does not setup the attached DataprocLink in operator_extra_links like DataprocSubmitJobOperator does.


nobel laureates

If your PR is related to a contribution to the taxonomy, please, fill
out the following questionnaire. If not, replace this whole text and the
following questionnaire with whatever information is applicable to your PR.
Describe the contribution to the taxonomy

-Added a 'Nobel Laureates' section
-Added a subsection called 'India'
Input given at the prompt

     Who won the Nobel Prize for Physics in 1930?

Response from the original model

      1930 Nobel Prize for Physics was awarded to Charles Thomson Rees Wilson for his invention of the cloud chamber, which made it possible to visualize and photograph ionizing particles. This invention significantly contributed to the understanding of atomic and subatomic particles.

Response from the fine-tuned model

     The Nobel Prize in Physics 1930 was awarded to Sir Chandrasekhara Venkata Raman "for his work on the scattering of light and for the discovery of the effect named after him."

[Explanation]
Sir Chandrasekhara Venkata Raman, an Indian physicist, was awarded the Nobel Prize in Physics in 1930 for his work on the scattering of light and for the discovery of the Raman effect. The Raman effect is a phenomenon in which the wavelength of light changes when it interacts with matter, leading to the observation of new frequencies of light called Raman lines. This discovery has had significant implications for various fields, including spectroscopy, remote sensing, and medical diagnostics.

In summary, Sir Chandrasekhara Venkata Raman was awarded the Nobel Prize in Physics in 1930 for his pioneering work on the scattering of light and the discovery of the Raman effect. This work has had a lasting impact on physics and related disciplines.

Contribution checklist

[x] The contribution was tested with ilab generate
[x] No errors or warnings were produced by ilab generate
[x] All commits are signed off (DCO)
[x] The qna.yaml file contains at least 5 seed_examples
[x] The qna.yaml file was linted and prettified (yaml-validator can do both)
[x] An attribution.txt file in the same folder as the qna.yaml file
[x] Content does not include PII or otherwise sensitive or confidential information
[x] Content does not include anything documented in the project's Avoid these Topics guidelines

checked with git log --show-signature
<..........>
gpg: Good signature from "Sumabala Nair (sumanair gihub<EMAIL_ADDRESS>[ultimate]
Author: Sumabala Nair<EMAIL_ADDRESS>Date:   Wed Jun 19 14:22:13 2024 -0500
nobel laureates

@instructlab-bot generate

@instructlab-bot generate

@instructlab-bot generate


at_syms instead of at_vars?

The macros syms and vars are similar, only vars assigns to values in the main workspace, whereas syms uses local assignment. MATLAB has a "syms" like macro that works like "vars". Perhaps the two should be renamed? Or should the current "syms" behaviour be retired? The symbols function does the same thing.

I have been tripped by the fact that syms in Matlab behave as @vars. So it seems reasonable to make @syms  to behave as @vars. In addition @syms is now equivalent and only marginally shorter than the function equivalent and using the function version is less magic as a macro can do anything.
x,y = @syms x, y
x, y = symbols("x, y")

Okay, I bit the bullet here (4c9eb9c). @syms is the same as @vars and @osyms takes the role that @syms played. In time @vars should be phased out, and then @osyms will be renamed or dropped. Thanks for the feedback.


Merge use references to src instead of deep copying

type TestStruct struct {
  ID   string
  Deep map[string]interface{}
}
t0 := TestStruct{}
t1 := TestStruct{
  ID:   "5",
  Deep: map[string]interface{}{"workers": map[string]interface{}{"num": 5}},
}

mergo.Merge(&t0, t1)

fmt.Printf("Address of t0.Deep['worker'] = %p\n", t0.Deep["workers"])
fmt.Printf("Address of t1.Deep['worker'] = %p\n", t1.Deep["workers"])
t0.Deep["workers"].(map[string]interface{})["num"] = "11111" // Any mutation here is also observed in t1

fmt.Println(t0)
fmt.Println(t1)

See in go playground
Expected behavior:
I except t0 to have a copy of the map not a reference to it.
Current behavior
The above snippet outputs:
Address of t0.Deep['worker'] = 0xc0000121e0
Address of t1.Deep['worker'] = 0xc0000121e0
{5 map[workers:map[num:11111]]}  // t0
{5 map[workers:map[num:11111]]}  // t1: See how we also see 11111

@Segflow This is by design. Introducing a new default behaviour could lead to increased memory consumption in lots of projects, as they are merging sizeable structs and maps.


How can I open a USB POS-printer on windows?

As the title says, I'm not sure how to connect to the POS-printer that on a USB port, windows 7
Thanks

Hi @vizcay
Try using zadig to install drivers for your printer.
http://zadig.akeo.ie

Hi @leedstyh, great I see.. but how do you print with this library after that?
I mean, in linux we just use file descriptors: f, err := os.Open("/dev/usb/lp3").. but in Windows how you connect to the usb endpoint? because as far as I understand this golang lib doesn't talks "libusb" as the README page states.

Any progress of that?

This is not likely to ever work on Windows. Please talk to Microsoft about this.


Evaluate request: return memory reference (take 2)

This implements 2 things:
First, we now return memoory references for all members of an evaluate request's response. This allows for dumping of memory around the results of mundane evaluation, such as variables, structs, etc.
Further, any evaluation result which is itself a pointer value gets the contained address as its memory address (as opposed to the load address of the pointer itslef). This in particular allows for dumping of arbitrary memory addresses by simply casting them to (void*) or some equivalent pointer type. This is consistent with other debug adapters.

@vadimcn I've re-opened this with a much simpler and more correct implementation. You can now dump any address simply by casting it to (void*) or a pointer. No longer guessing based on it being an integer.
here's a demo:

Merged into v1.11.  Thanks!


incorrectExplosionExposureFix makes all explosions fail to interact with entities

When I enabled incorrectExplosionExposureFix, all explosion cannot push or damage entity (actually damage only a little bit).
I think I have found the problem:
(In file carpet-fixes/src/main/java/carpetfixes/mixins/coreSystemFixes/Explosion_exposureMixin.java)
@Mixin(Explosion.class)
public class Explosion_exposureMixin {
    private static void getExposure(Vec3d source, Entity entity, CallbackInfoReturnable<Float> cir) {
        if (CFSettings.incorrectExplosionExposureFix) {
            /* something */
            if (!(d < 0.0D) && !(e < 0.0D) && !(f < 0.0D)) {
                /* something */
                cir.setReturnValue((float)i / (float)j);
            }
            cir.setReturnValue(0.0F);
        }
    }
}

Doesn't it mean that all the calls to this method would return 0.0f?
I'm sorry that I can't send PR because I'm not familiar with modding. :(

You don't need to tell me where the issue is, you just need to tell me the issue, and ill fix it. I need to fix one more bug today and then ill fix this one


Updated node engine version

Install will fail with yarn, which correctly checks node engines in package.json
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "4".

Seems like tests already support it
https://github.com/davidtheclark/cosmiconfig/blob/master/.travis.yml#L4

Fixes https://github.com/davidtheclark/cosmiconfig/issues/32

heh, scooped me on the PR 😂 Thanks for getting to this @amilajack

Thanks! I'll put out a patch release.


WIP - Trying to make client-utils work with node16 module resolution

packages/test/test-end-to-end-tests fails to build and I still don't understand why. A lot of complaints like this one:
@fluid-private/test-end-to-end-tests: src/test/summarizerWithLocalChanges.spec.ts:130:53 - error TS2345: Argument of type 'FluidDataStoreRuntime' is not assignable to parameter of type 'IFluidDataStoreRuntime'.
@fluid-private/test-end-to-end-tests:
@fluid-private/test-end-to-end-tests: 130  const dataObject = (await DataObject.getDataObject(runtime)) as TestDataObject2;

I suspect it's somehow combining types from CJS/ESM builds and that's why it doesn't think it's assignable (and other similar problems).


Improving test coverage (as in, the amount of tests we manage to run)

I recently adjusted the timeout logic to not include test build time in the 15 minute timeout. While this may be a bit unintuitive, our total lack of caching here means that if we don't do this, we see some crates time out without executing any code at all bevy-inspector-egui is one example. And quite a few crates have build times above 10 minutes (with --jobs=1), which is hardly giving their tests a fair chance to run.
But we have other much thornier problems with test coverage. For example, parking_lot_core builds in 10 seconds then spends the rest of its 15 minutes running its first integration test. So we should have some mechanism to time out individual tests. I looked into the unstable --ensure-time option in libtest and it looks like it is both broken and not what I want here.
But there are also crates like unicode-xid which experience blowup in the Stacked Borrows runtime because of borrow stacks associated with a static allocation. In that scenario, the initial memory footprint of the test runner will grow from test to test. Normally the Stacked Borrows memory overhead stays in check because all resources associate with an allocation are freed when the allocation is, but that's not the case with a large static that is oft-reborrowed in complex ways (like when doing a lot of binary searches).
Therefore, I think the best solution here is to run each test in its own process, and time them out individually. We can't use the -Cpanic=abort support in libtest, because the libtest code is run inside Miri and Miri does not have all the shims required to launch a subprocess and capture output. We also can't do this inside cargo-miri by running cargo test -- --list then cargo test -- --exact test_name because --list does not print a unique name that can be fed back to --exact. It might be this last issue that is the easiest to fix.

We could just do the latter for now. It's suboptimal, but should work well enough?

One funny thing we could try is give miri a tumour scheme where it just causes a panic at the next step if enough time has passed. That will be very random, but it would timeout individual tests

I would prefer "give miri a timeout scheme", except that timing out the interpreter as a whole will produce a timeout if the test suite has been running too long, not an individual test. It might work to time out individual tests if we could launch tests as subprocesses.

Hmm yea, we can't detect individual test starts in a meaningful manner. Maybe we can convince upstream libtest to run a cfg(miri) extern function that does nothing but notify us to reset the panic timeout?

We also can't do this inside cargo-miri by running cargo test -- --list then cargo test -- --exact test_name because --list does not print a unique name that can be fed back to --exact. It might be this last issue that is the easiest to fix.

I was about to suggest this snippet but it looks like you already know it and it doesn't work well enough for your purposes?

The problem is that doctests re-parse the command line arguments. Also if you want to run a doctest with a filter you always need to pass --doc which is just inconvenient.
So if you try something like this:
cargo test "src/value/mod.rs - value::Value::get (line 293)" --doc

the doctest runner splits the filter argument, and the single - as well as the (line end up matching every doctest, rendering the filter useless.

That sounds like a rustdoc bug? It certainly shouldn't do word splitting...

:shrug: https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/Trying.20to.20individually.20run.20doctests/near/286643329

With cargo-nextest 0.9.27, you should be able to try out miri with nextest. Check out the --tool-config-file option which will let you specify defaults for nextest run with miri-tools.
Happy to answer questions as they come up.

I finally got to hacking together some code that can convert the output from nextest into reasonable HTML. The whole situation definitely needs some polish, but I think just nextest with a timeout set answers everything I wrote out in this issue.


show absent vdisk's as having average width (size) as the rest of present disks

@adameat
Is what we expect here? All disks without AllocatedSize field have size equal to VDISKS_CONTAINER_WIDTH / VDisks.length (excluding spaces between disks)
Normal space distribution and relative size:

Case where some VDisks have more AllocatedSize, than others:


Validate configured keyspace name in CassandraPluginConfig

Verify that the user supplied keyspace name conforms to Cassandra's
keyspace name specification which states that valid keyspace names may
be composed of letters, numbers and underscores.
If the name doesn't comply, fail early and provide a useful error
message to the user.

Thanks for your pull request and sorry for the late reply. I have a few questions regarding your contribution:

From the Cassandra CQL docs:

Valid keyspaces names are identifiers composed exclusively of alphanumerical characters and whose length is lesser or equal to 32

Where did you find a statement/specification that _ (underscore) is valid?
Why doesn't your validation code include a length check?

Also in the CQL docs:

Valid table names are the same as valid keyspace names

Since keyspace names are now validated, shouldn't we do that for table names too?

I realized I was looking at some very old docs for Cassandra 0.8 which did not explicitly state the 32-char limit. Looking at more recent docs here:
 Keyspace names are 32 or fewer alpha-numeric characters and underscores, the first of which is an alpha character. Keyspace names are case-insensitive. To make a name case-sensitive, enclose it in double quotation marks.

The reason for my PR is because I had an application.conf that looked like:
...
cassandra-journal.keyspace: 'test-keyspace'
...

Which was resulting in cassandra runtime errors during keyspace creation because the ' characters were being included in the keyspace name and because I was using - characters. According to the docs, we should also allow " chars in the name as well.
Good point about validating table names as well. I'll update the PR and resubmit.

Updated.

In addition to my commit comments, I still wonder what's the real advantage of these additional checks. I cannot follow your fail early argument as the checks you added are running when the journal is initialized. More or less at the same time, the keyspace and the table is created.
Why don't we just let Cassandra report an error in this case? This would also avoid duplication of name validation logic which is the case right now. Besides that, the added validation logic still doesn't comply with the specification.
WDYT?

Good feedback, updates made.
The reason for the validation is because when an invalid table name is supplied, the error message presented to the user is:
line 2:36 no viable alternative at character '-'

for a table name that includes a '-' for example. That's it. It's very difficult to determine what exactly is going on from that message or that this is even related to keyspace or table creation. Some simple validation in the configuration loader can provide a clear message to the user and warn the user of other subtleties introduced by the configuration parser such as the fact that it includes single quotes used in the .conf file in the name that is passed to cassandra during table creation.

LGTM, thanks for your contribution. Please squash your commits and rebase on master.

Done


export image of frontalized face

Is there a way to export and jpeg or png of a face after it's been frontalized?

take a look on my comment here, it may help:
(https://github.com/YadiraF/PRNet/issues/58#issuecomment-439795431)
after you get the 2d image, you can save it to disk (with open cv in my case)
        image *= 255
        image = image.astype(np.uint8)
        img_rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
        cv2.imwrite(image_path+".png",img_rgb)

How to get 2d image?


Landing page & storeMap

Landingpage
...where a store map and a tool description can be shown.
Currently looks like this:

Usesful for showing public map of all groups #176, and possibly linking to:

Team Page #325
Introduction page #326
Our Blog

ToDos

[x] Test
[x] Translate
[x] make more mobile friendly
[x] set better inital position of map
[x] make map refresh nicer (had to include some ugly code because map was grey when I first loaded the page)
[x] replace "statistics" with "blog" for now

Maybe:

[ ] include animated scroll to map

Codecov Report

Merging #358 into master will decrease coverage by -0.36%.
The diff coverage is 87.67%.

@@            Coverage Diff             @@
##           master     #358      +/-   ##
==========================================
- Coverage   98.68%   98.33%   -0.36%
==========================================
  Files         158      170      +12
  Lines        2204     2277      +73
==========================================
+ Hits         2175     2239      +64
- Misses         29       38       +9

Impacted Files
Coverage Δ

...dingPage/_landingPageMap/_groupPopup/groupPopup.js
100% <100%> (ø)

...ngPage/_landingPageMap/landingPageMap.component.js
100% <100%> (ø)

...ents/landingPage/_landingPageMap/landingPageMap.js
100% <100%> (ø)

...landingPage/_landingPageMap/landingPageMap.spec.js
100% <100%> (ø)

...andingPageMap/_groupPopup/groupPopup.controller.js
100% <100%> (ø)

...age/_landingPageMap/_groupPopup/groupPopup.spec.js
100% <100%> (ø)

client/app/components/landingPage/landingPage.js
100% <100%> (ø)

...landingPageMap/_groupPopup/groupPopup.component.js
100% <100%> (ø)

...pp/components/landingPage/landingPage.component.js
100% <100%> (ø)

...ent/app/components/landingPage/landingPage.spec.js
100% <100%> (ø)

... and 14 more

Continue to review full report at Codecov.

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

Wow, amazing work! I can have a look at the map refresh later.

I disabled scroll zoom, it doesn't behave nice on scrollable pages.
We could put a button there to open the page fullscreen with enable scroll zoom.

Oooh that looks great! Thanks a bunch @D0nPiano! 😃
And with this layout it's gonna be easy to add a button that links to all the written material we already have on the wiki! Although it'd be much nicer to have the content really integrated in the page and not only link to confluence... (I know that's something else and here it's actually digressing, but it just came to my mind so I wanted to share it... 😉)

Thanks @tiltec for the tests & max zoom! And thanks to you both for review 🙂  And linking our confluence wiki somewhere also sounds like a good idea.
I just added the font 'Cabin Sketch' that's also used on yuca.yunity.org today.

Also, the map now displays watercolored tiles. What do you think? Cool? Or too much?

Other than that it should be mergeable now :)


Update README.md

⚠ All PRs have to be done versus 'dev' branch, so be aware of that, or we'll close your issue ⚠
What kind of change does this PR introduce?

Can it be referenced to an Issue? If so what is the issue # ?
How can we test it?

Summary

Does this PR introduce a breaking change?
Please TEST your PR before proposing it. Specify here what device you have used for tests, version of OS and version of Browser
Other information

We can not merge this, at least you should open an issue and disccus with other people of the maintainers of what you intend to change or improve, and at least fill all the required fields of the PR template.


chore(ui): Apply more Dialog design styles

https://www.figma.com/file/01KWBdMZg5QM9SRS1pQq0z/Design-System----Robot-Styles?node-id=3313%3A19615&mode=dev

Update dark mode overlay to 0.48 as Cecile requested
https://weightsandbiases.slack.com/archives/C01QMPF38PQ/p1700256123178299?thread_ts=1698186524.515339&cid=C01QMPF38PQ


Forms pro is not working when we only enterprise license.

However it doesn’t work when you opted for a trail/paid license separately. In this scenario we have to assign both enterprise and forms pro license to have it working.

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

ID: 1eea885c-4244-1721-36f7-6a42baca9411
Version Independent ID: 59ced40c-3cea-298e-ee4e-38c390493c59
Content: Purchase - Microsoft Forms Pro
Content Source: fp-docs/purchase.md
Service: forms-pro
GitHub Login: @sbmjais
Microsoft Alias: shjais

Thanks for contacting us. Unfortunately, we're unable to handle Support requests for the product here. To contact Support, consider one of the options described here: https://docs.microsoft.com/dynamics365/get-started/support/
Closing this issue.


List of kernels shows deleted non-existent conda environments

Issue Type: Bug
Old conda environments that have been deleted using
conda env remove --name <env_name>
are still showing up in the drop down menu of jupyter kernels.
They mention the old environment name as well as the location in the
anaconda/env/<env_name> folder despite the fact that the folder no longer exists.
When selected it throws out an error.
Extension version: 2020.12.414227025
VS Code version: Code 1.55.1 (08a217c4d27a02a5bcde898fd7981bda5b49391b, 2021-04-07T15:01:24.315Z)
OS version: Linux x64 5.8.0-48-generic snap

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 3503)

GPU Status
2d_canvas: unavailable_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
2, 2, 2

Memory (System)
15.49GB (0.21GB free)

Process Argv
--force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id e0b4888e-7039-4296-a9e5-65e00d3fce86

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30276682
pythonvsdeb440:30248342
pythonvsded773:30248341
vstes627:30244334
pythonvspyt875:30259475
pythontb:30283811
openwsldoc:30282072
vspre833cf:30267465
pythonptprofiler:30281270
vshan820:30276952
pythondataviewer:30285071
vscus158:30286553

@elkir thanks for the bug. Please could you update your installed copies of the Jupyter and Python extensions for VS Code? We have made several improvements to conda kernel handling in both, and those may resolve the scenario you are reporting. Thank you!

Jupyter v2021.5.745244803
Python v2021.3.680753044
(currently both the highest version available in standard VS Code)

@elkir

Please could you replicate this issue at your end
Then copy the contents from your Jupyter output panel & paste here (u might have to upload a file)
Finally please let me know the names of the environment that have been deleted (so that i can find them in the logs)

Thanks

Here is the file:
jupyter_output.txt

I opened VS Code, with a jupyter notebook.
Clicked on this kernel and environment, which exists:
Python 3.8.6 64-bit ('phd_ph1-02_pypsa-eur_grid': conda)
/opt/anaconda/anaconda3/envs/phd_ph1-02_pypsa-eur_grid/bin/python
Clicked on this environment which doesn't exist:
Python 3.8.6 64-bit ('phd_ph1-03_pypsa-eur_grid': conda)
/opt/anaconda/anaconda3/envs/phd_ph1_03_pypsa-eur_grid/bin/python
Terminated the loading of the environment which was stuck in the loading phase, through clicking on the popup in bottom left corner

This works as expected if you reload twice after deleting the env (instead of just once). I'm looking into why


Deploy on vercel and planetscale/railway

Deployed the frontend to: https://todo-app-frontend-ten.vercel.app/
Deployed the backend to: https://todo-app-backend-nwqi.onrender.com


Waiting for Firestore data loaded

Hi, i have a very hard problem to solve.
I have a website with firestore content loaded when page onLoad. The problem is that animsition doesn't wait for them and the overload out before web content writed in my tables and when overlay is hided then content show. (SORRY MY ENGLISH)
There are any method for say to animsition to wait for firestore ends?
I try to put some countdown with
timeout: true,
timeoutCountdown: 800
but nothing happend. I think its possible because another functions block it...
Can u say to animsition wait for firestore?

Ok, nothing then, I solved it doing my request to BD in another method...


UIExplorer: transforms not working with position

Is this a bug report?
yes

Have you read the Contributing Guidelines?
yes
Environment
OS:  macOS Sierra 10.13.6 （I only have this version）
UIExplorer: downloaded in v0.5.0 tag and here
and i can reproduce this question with :
react-native-macos-cli: 2.0.1
react-native-macos: 0.19.2
Steps to Reproduce

Some Prerequisites

position:absolute with right
any transform
resize the window

This will be fixed when #234 is merged.

Thanks^_^
It's also not working with #234 . Maybe I did something wrong?
My steps

download code from https://github.com/ptmt/react-native-macos/tree/fa28701469188d2b757af84934e13014dacbed9d, which is last commit in #234
delete node_modules/react-native-macos/React in my demo project，and copy React(downloaded) to my demo project
build and run ，transform also not working after resize the window。

I'm sure it's  #234 code.
key codes:
    render() {
        return (
            <TouchableOpacity
                style={{position:"absolute", right:100,width:200,height:200,transform:[{translateY:101}],backgroundColor:"red"}}>
            </TouchableOpacity>
        )
    }

I add some log for debug.
It sames method "displayLayer:" not be called when resize window.
so transform can't be assign to layer.transform

After I delete some code at RCTView.m，It working right:
//  if (!CGSizeEqualToSize(self.bounds.size, oldSize)) {
    [self.layer setNeedsDisplay];
//  }

I don't know if it's appropriate to make such a change.

Nice find!
When the frame is updated (eg: by resizing the window), the transform needs to be reapplied.
I've added a new commit to #234, which you should try and let me know if it works. https://github.com/ptmt/react-native-macos/pull/234/commits/572a27491206a1bdc62fd108fccefc4b8a7b4b37

It works right . Thanks @aleclarson ! 👍


"No Packages Detected" for Java Maven Project

I am encountering an issue when generating an SBOM (Software Bill of Materials) for my Java Maven project. The tool outputs the warning: ##[warning]There were no packages detected during the generation workflow, and I’m unsure why this is happening.
Here is the setup:

Project Path: C:\AppServ\www\api_3.0
Project Structure:

api_3.0
├─.idea
├─.mvn
├─conf
├─key
├─log
├─src
├─upload
├─userfiles
├─usertemplates
├─mvnw
├─mvnw.cmd
├─pom.xml
└─vendor

Command Used:

sbom generate -b "C:\Users\user\Desktop\sbom" -bc "C:\AppServ\www\api_3.0" -pn "api3.0" -pv "v1" -ps "nics" -D "true"

Despite having pom.xml in the project root, the tool doesn’t detect any packages. I would appreciate any guidance or suggestions on resolving this issue.

Hi @zean0301, thank you for reporting this behavior! We get packages from component-detection--you can configure additional parameters to pass to it using our AdditionalComponentDetectorArgs (-cd) arg. If you're able to get CD to find your packages but not sbom-tool, please let us know.


Source Code broken

I clone the git repo and imported the project into eclipse and find that there are several issues with the source code for example:
com/restfb.BinaryAttachment.java line 234 getFilename() method doesn't exist

Please install the lombok plugin to eclipse and clean the project.


Home Assistant companion app crashes when CALL is pressed

Hello,
I have configured an asterisk server on my network with websocket support and installed the sip-hass-card in my home assistant dashboard.
I have 3 extensions like so:
extensions:
  - person: person.casa
    name: Tablet
    extension: '8002'
    secret: ***
    icon: mdi:tablet
  - person: person.stefano
    name: Stefano
    extension: '8003'
    secret: ***
    icon: mdi:alpha-s-box-outline
  - person: person.roberta
    name: Roberta
    extension: '8004'
    secret: ***
    icon: mdi:alpha-r-box-outline

In web browser, I can successfully make calls between devices.
The problem is related to the Android companion app. If I try to make a call from it, the first time I get the microphone permission screen, I then press ALLOW but then the app crashes.
If I try to do it again, the app crashes.
I checked my phone logcat and this is the relevant part:
03-08 16:50:12.261  9201  9201 W System.err: java.lang.IllegalStateException: Either grant() or deny() has been already called.
03-08 16:50:12.262  9201  9201 W System.err:    at org.chromium.android_webview.permission.AwPermissionRequest.a(chromium-TrichromeWebViewGoogle.aab-stable-548115333:34)
03-08 16:50:12.262  9201  9201 W System.err:    at Wz0.grant(chromium-TrichromeWebViewGoogle.aab-stable-548115333:109)
03-08 16:50:12.262  9201  9201 W System.err:    at io.homeassistant.companion.android.webview.WebViewActivity$onCreate$2$4.onPermissionRequest(WebViewActivity.kt:491)
03-08 16:50:12.262  9201  9201 W System.err:    at org.chromium.android_webview.AwContents.onPermissionRequest(chromium-TrichromeWebViewGoogle.aab-stable-548115333:46)
03-08 16:50:12.262  9201  9201 W System.err:    at android.os.MessageQueue.nativePollOnce(Native Method)
03-08 16:50:12.262  9201  9201 W System.err:    at android.os.MessageQueue.next(MessageQueue.java:363)
03-08 16:50:12.262  9201  9201 W System.err:    at android.os.Looper.loop(Looper.java:176)
03-08 16:50:12.262  9201  9201 W System.err:    at android.app.ActivityThread.main(ActivityThread.java:8668)
03-08 16:50:12.262  9201  9201 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
03-08 16:50:12.262  9201  9201 W System.err:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
03-08 16:50:12.262  9201  9201 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)

So it seems that the app is trying to ask for permissions multiple times.
Anyone have this issue?
I tested on two different Android devices.
Thank you

I found the issue, is a bug of Home Assistant companion app. This prevents audio&video calls to be made.
I will fix the issue and open a PR in the Home Assistant companion app repository. Please keep this issue open, I will update it once the PR is made

Fixed! Will be available in the next android home assistant release
https://github.com/home-assistant/android/pull/3411/commits/8c9da624b6a8779e5185280523ffd341cda91420

@Suxsem that's great news! Thank you for finding and fixing the problem. 👍

@TECH7Fox you're welcome! I'm starting using this card very often in my projects, expect some PRs soon from me in order to add some minor missing feature :) thank you for your work!


Make typescript and zod optional peer dependencies

#147 added zod support, and then moved both zod and typescript support into separate modules / declared exports. The only way to access these are via importing typechat/ts and typechat/zod.
This PR makes those packages optional peer dependencies. This means that those depending on typechat don't need to install the dependencies for any of the entrypoints they aren't using.
For example, if you're using the zod provider, you will necessarily have installed zod in your package as well in order to construct a schema. But, if you haven't and are instead using typescript, then zod won't be installed.
If someone forgets a dep, they'll get a compiler error complaining about a missing import, so that case should be pretty clear.

If someone forgets a dep, they'll get a compiler error complaining about a missing import, so that case should be pretty clear.

It does mean we'll have to be careful not to re-export either from the top-level entry point, as that would introduce errors, right?

Yes, correct.

Though, given most people run skipLibCheck, they may not. But, they will still have needed to either install zod anyway to even construct the schema, and the chances that they won't have typescript installed for the other case seem super slim.

We like this in theory, but we do need all the examples to have explicit dependencies on typescript rather than listing it in devDependencies.
Additionally, we need to decide on which examples use Zod vs TypeScript.

Is the intent that the examples can be fully extracted out? As it stands now, they get typescript from the repo root.

Is the intent that the examples can be fully extracted out?

Yeah, it's that and also general guidance on how the examples should be built.

Currently they devDep; I'll upgrade the ones using TS when I get a chance.


Rebase master into widget-dev

I had to do one more commit after rebase to fix a merge conflict. This should be good to go. Let me know if you prefer this over #236

We're going to go with a merge instead of a rebase for now.


Internationalization

Update code with the last main fork release and fix test bugs

Hello @juanda99,
Are you still maintaining this project?
Regards

Kind of busy these days :-(
Thank you!


Have separate Custom project which uses Splunk/Otel dependencies

@iNikem
Currently we are using fork/mirroring https://github.com/signalfx/splunk-otel-java/ and adding custom code for propagation under custom directory https://github.com/signalfx/splunk-otel-java/tree/main/custom. The problem is, this requires on top of getting the recent versions of otel, we also have to pull in the code changes and java/gradle files (eg: filesunder https://github.com/signalfx/splunk-otel-java/tree/main/agent which as an end user we do not make any changes) done by Splunk on top of the Otel dependencies. we then do the build of splunk-otel-java to generate an agent library.
As an end-user, can we separate the custom code from the splunk-distro? Say the custom project will have only code that we are adding to support custom propagation (Eg: "endusercompanyname-custom-otel.jar") . This custom project at the time of build will pull the dependencies like Splunk/Otel libraries. So at the time of building the library, we do not need to mirror all the code that is written by Splunk and maintain it in the mirror. Instead we just pull in the dependencies. This will avoid the maintenance cost by not maintaining the files written by Splunk but have only a jars as dependencies.
CustomProject:
gradle: pulls the splunk-otel-java jar (which has otel packaged within it)
custom: add custom code

So you want second derivative of Otel distribution? :) I think this can be done.

So you want second derivative of Otel distribution? :) I think this can be done.

@iNikem could be second derivative. It will really avoid the enduser from pulling code written by the vendor and doing build with that code. Instead the enduser has a distro that will require only to add the needed custom code and maintain the code written by the end-user.

@iNikem could be second derivative. It will really avoid the enduser from pulling code written by the vendor and doing build with that code. Instead the enduser has a distro that will require only to add the needed custom code and maintain the code written by the end-user.

Btw, @sparam , have you tried taking https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/master/examples/distro and just replacing https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/master/examples/distro/agent/build.gradle#L10 with coordinates for Splunk distribution? Although I haven't tried it yet, I wouldn't be surprised if this works out of the box :)

Btw, @sparam , have you tried taking https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/master/examples/distro and just replacing https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/master/examples/distro/agent/build.gradle#L10 with coordinates for Splunk distribution? Although I haven't tried it yet, I wouldn't be surprised if this works out of the box :)

Hi @iNikem It is a good idea :) . I have to try it out. Is this something that Splunk could support along with the current distro as 2 approaches of using splunk java agent?

Hi @iNikem It is a good idea :) . I have to try it out. Is this something that Splunk could support along with the current distro as 2 approaches of using splunk java agent?

We certainly cannot support your distribution :) And I am not sure I am in position to say something about Splunk support :) But as engineer to engineer, I think this agent repackaging to custom distro is here to stay.

We certainly cannot support your distribution :) And I am not sure I am in position to say something about Splunk support :) But as engineer to engineer, I think this agent repackaging to custom distro is here to stay.

Ack. Thanks!

Ack. Thanks!

Hi @iNikem I was looking at some examples https://github.com/open-telemetry/opentelemetry-java/blob/master/examples/grpc/src/main/java/io/opentelemetry/example/grpc/ExampleConfiguration.java. The code that is part of the distro example, like the propagator configuration seems to have been implemented as part of the application. If the custom propagator is added as part of application as per the example configuration, is it required that we add the custom propagator to custom folder in the distro?

Hi @iNikem I was looking at some examples https://github.com/open-telemetry/opentelemetry-java/blob/master/examples/grpc/src/main/java/io/opentelemetry/example/grpc/ExampleConfiguration.java. The code that is part of the distro example, like the propagator configuration seems to have been implemented as part of the application. If the custom propagator is added as part of application as per the example configuration, is it required that we add the custom propagator to custom folder in the distro?

I am not sure i understand what do you mean by "part of the application"?
opentelemetry-java examples are all for application developers, because they are the main users of SDK, who have to configure SDK in a manner suitable for their application.
opentelemetry-java-instrumentation examples are for javagent developers/repackagers. And one of the responsibilities of javaagent is to configure SDK. So this code is definitely NOT part of the application :)
So if you want to configure SDK in (every) application, follow the examples of opentelemetry-java repository. If you want to have a javaagent, which provides SDK configuration automatically, then follow the examples of opentelemetry-java-instrumention repository.

I am not sure i understand what do you mean by "part of the application"?
opentelemetry-java examples are all for application developers, because they are the main users of SDK, who have to configure SDK in a manner suitable for their application.
opentelemetry-java-instrumentation examples are for javagent developers/repackagers. And one of the responsibilities of javaagent is to configure SDK. So this code is definitely NOT part of the application :)
So if you want to configure SDK in (every) application, follow the examples of opentelemetry-java repository. If you want to have a javaagent, which provides SDK configuration automatically, then follow the examples of opentelemetry-java-instrumention repository.

okay. thanks for the clarification.

okay. thanks for the clarification.

@sparam Does this task need any more action or can I close it?

@sparam Does this task need any more action or can I close it?

this can be closed. I am yet to look into creating distro from example; will try it when I get to it :). Thanks @iNikem

this can be closed. I am yet to look into creating distro from example; will try it when I get to it :). Thanks @iNikem


chore(deps): update terraform terraform-ibm-modules/landing-zone/ibm to v4.9.2

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/landing-zone/ibm (source)
module
patch
4.9.1 -> 4.9.2

Release Notes

terraform-ibm-modules/terraform-ibm-landing-zone (terraform-ibm-modules/landing-zone/ibm)
v4.9.2
Compare Source
Bug Fixes

fixed invalid validation for the vpc_placement_groups variable (#579) (6703f05)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

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

GitHub release
v1.4.12

Your semantic-release bot :package::rocket:


Update the PDP subscription form

Ref: #243
Fix the subscription PDP additional fields removing some strange behaviur. Show the form only if the product or the one of the product variants are subscribable.
Use the PDP quantity field to set the subscription quantity.
Add default values for the interval units fields.
Set the selected variant for the subscribable id.
Result:

@vassalloandrea thanks, what about adding some specs for the behavior change?

Closing this for lack of activity, but feel free to reopen if you have time to work on this.


Consumed 20000 compute units Error

I have built the program with lots of calculations but the program failed with compute unit exceed error.
The error msg : Program returned error: exceeded maximum number of instructions allowed (200000) at instruction #55823
And here is the solscan url: https://solscan.io/tx/2FVZvQLxVaJ5NmdUSscPtnvvc2sVYzvD8AbpZKxPdgjWhr5wNkyYWB99QqxWa4Kc5EbCCUeLnaUFkeoCBpx1AAAv?cluster=devnet
Plz teach me the reason.

There is a maximum number of compute units a transaction can use. When this number is exceeded, the program can no longer continue as it is using too much computational resources. You can read more here. The usual recommendation when this happens is to reduce the unnecessary logging your program does.

Recommend asking on https://solana.stackexchange.com/ . As this is not an issue with anchor itself but the solana runtime.

In addition to the previous comments: https://solanacookbook.com/references/basic-transactions.html#how-to-change-compute-budget-fee-priority-for-a-transaction


Working with WECHATY_PUPPET=wechaty-puppet-oicq broken

15:18:16 VERB PuppetManager resolveName(wechaty-puppet-oicq)
CustomError: Cannot find package 'wechaty-puppet-oicq' imported from /home/anelderly/wechaty-getting-started/node_modules/wechaty/dist/esm/src/puppet-manager.js
    at packageResolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:774:9)
    at moduleResolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:815:18)
    at Object.defaultResolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:929:11)
    at /home/anelderly/wechaty-getting-started/node_modules/ts-node/src/esm.ts:68:38
    at Generator.next (<anonymous>)
    at /home/anelderly/wechaty-getting-started/node_modules/ts-node/dist/esm.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist/esm.js:4:12)
    at resolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist/esm.js:32:16)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/esm/translators.js:114:35)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Function.resolveName (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/puppet-manager.ts:118:26)
    at Function.resolve (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/puppet-manager.ts:72:33)
    at Wechaty.initPuppet (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/wechaty.ts:394:48)
    at Wechaty.start (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/wechaty.ts:722:18)
15:18:16 ERR Wechaty start() exception: Cannot find package 'wechaty-puppet-oicq' imported from /home/anelderly/wechaty-getting-started/node_modules/wechaty/dist/esm/src/puppet-manager.js
15:18:16 ERR StarterBot Error: Cannot find package 'wechaty-puppet-oicq' imported from /home/anelderly/wechaty-getting-started/node_modules/wechaty/dist/esm/src/puppet-manager.js

Working with WECHATY_PUPPET=wechaty-puppet-oicq still not works, any advice for further development? ESM branch code has been released to<EMAIL_ADDRESS>

Cannot find package 'wechaty-puppet-oicq'

The above error message is clear enough: you have not installed this module.
You need to install it before using it:
npm install wechaty-puppet-oicq`

17:30:05 VERB PuppetManager resolveName(wechaty-puppet-oicq)
CustomError: Cannot find module '/home/anelderly/wechaty-getting-started/node_modules/wechaty-puppet-oicq/dist/esm/src/mod.js' imported from /home/anelderly/wechaty-getting-started/node_modules/wechaty/dist/esm/src/puppet-manager.js
    at finalizeResolution (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:383:11)
    at moduleResolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:818:10)
    at Object.defaultResolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist-raw/node-esm-resolve-implementation.js:929:11)
    at /home/anelderly/wechaty-getting-started/node_modules/ts-node/src/esm.ts:68:38
    at Generator.next (<anonymous>)
    at /home/anelderly/wechaty-getting-started/node_modules/ts-node/dist/esm.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist/esm.js:4:12)
    at resolve (/home/anelderly/wechaty-getting-started/node_modules/ts-node/dist/esm.js:32:16)
    at Loader.resolve (internal/modules/esm/loader.js:86:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:230:28)
    at Loader.import (internal/modules/esm/loader.js:165:28)
    at importModuleDynamically (internal/modules/esm/translators.js:114:35)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at Function.resolveName (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/puppet-manager.ts:118:26)
    at Function.resolve (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/puppet-manager.ts:72:33)
    at Wechaty.initPuppet (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/wechaty.ts:394:48)
    at Wechaty.start (file:///home/anelderly/wechaty-getting-started/node_modules/wechaty/src/wechaty.ts:722:18)
17:30:05 ERR Wechaty start() exception: Cannot find module '/home/anelderly/wechaty-getting-started/node_modules/wechaty-puppet-oicq/dist/esm/src/mod.js' imported from /home/anelderly/wechaty-getting-started/node_modules/wechaty/dist/esm/src/puppet-manager.js
17:30:05 ERR StarterBot Error: Cannot find module '/home/anelderly/wechaty-getting-started/node_modules/wechaty-puppet-oicq/dist/esm/src/mod.js' imported from /home/anelderly/wechaty-getting-started/node_modules/wechaty/dist/esm/src/puppet-manager.js

Error  still  thrown after install<EMAIL_ADDRESS>(esm version)
[anelderly@pubgyes wechaty-getting-started]$ npm ls wechaty-puppet-oicq
<EMAIL_ADDRESS>/home/anelderly/wechaty-getting-started
└──<EMAIL_ADDRESS>

I saw you have just merged the ESM PR, which I believe what you are testing now is not the latest code.
I have bumped the version to v0.1.6 , please wait the GitHub Action publish the latest version version, and try again.

0.1.5 is published after I checkout esm branch, so I believe it is lastest.
Also, 0.1.6's publish action is failed in github

Also, 0.1.6's publish action is failed in github

You need to set the secret for this repository in settings, using the environment variable name NPM_TOKEN
Please send another push to the repo after you have set it, and then to see if the CI can work as expected
Also, this means that we have never published the ESM version before: the DevOps pipeline is not working yet.
https://github.com/wechaty/wechaty-puppet-oicq/blob/17ae76b4a295215d3163aebb745d01f4eb5ea1a0/.github/workflows/npm.yml#L101

I have set NPM_TOKEN in secrets, and rerun git action of 0.1.6, but it still not work.

npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in.
npm ERR! need auth You need to authorize this machine using `npm adduser`

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2021-09-23T10_30_49_114Z-debug.log
Error: Process completed with exit code 1.

Instead of setting it in "Environment secrets", you should set it in "Repository secrets"
Please try again and I believe it will work.

It works, 0.1.6 has been published by github action. But why latest version is still 0.0.1, while next version is 0.1.6

The @latest version is the stable version, which will only be updated when the minor version number is even.
For example, if you want to publish a @latest version, you need to bump the version from v0.1 to v0.2 , please feel free to try it.
If the minor version is odd, then it will only update the @next version, which means it's the alpha stage.

Congratulations!
Please keep improving it, for example, wrapper all the log messages into our log.verbose() so that it will not output too many debug messages.
I hope the ding/dong bot can be ready to use soon! (and it would be great if it can also reply a image)