Custom BLE server characteristic only appears with log levels Debug and Verbose

Using the old toolchain the latest ESP-IDF master, I'm able to get Sample1 working... when the log level is Debug or Verbose. When the log level is Info, the custom characteristic doesn't actually appear through the nRF Connect app, but the device is there and named correctly.
For obvious reasons, I'm having trouble debugging this, since the issue appears to be timing dependent, and the log statements slow the code down just enough to avoid the issue.
Possibly related to https://github.com/nkolban/esp32-snippets/issues/82 or https://github.com/espressif/esp-idf/issues/857

One thing we could try is to introduce "slowness" at various points in our code.  We can selectively enable/disable logging dynamically in the apps.  For example, enable logging at the start and disable logging 1/2 way through.  Using this "divide by 2" approach, we might be able to quickly locate the "area" where the timing conditions are becoming problematic.
I am not saying by any stretch of the imagination that there isn't an error in my usage of the ESP-IDF low level BLE APIs.   The only clue I have is that all worked at one build of the ESP-IDF and stopped working at another ... but if I was doing something wrong in the older build, it might have been tolerated where now it isn't.  But wrong is wrong ... and I need to snipe hunt it down.

Well hmm ... I tried to recreate the issue ... and in the end did ... however I'm troubled.
First, I built the source with 100% debugging enabled, ran the app and used nRF Connect and saw the exposed service as expected.
Next, I compiled the code but switched off debugging within the application using
esp_log_level_set("*", ESP_LOG_ERROR);

I re-ran the test and even though no log output was appearing in the console, nRF Connect continued to see the exposed service.
Finally, I switched off debugging inside make menuconfig, re-compiled and re-ran and NOW we don't see the exposed service through nRF Connect as you described in the original report.
Ouch!!!  This is going to be a royal pain to diagnose.  If I switch on debugging (even with no-output), we work but if I switch off the code generation for debugging, we fail.  This is (to me) a timing issue ... the only way we are going to solve this one is by testing with manual injection of delays until it works ... this is going to be slow.  Oh well ...

As an added note, with Log Level set to Verbose, I'm trying to add 5 characteristics, each with their own unique UUID. Each characteristic is initialized to an 8-byte NULL sequence with:
BLECharacteristic *characteristic = service->createCharacteristic(
	UUID, perms
);

char value[8] = {0};
characteristic->setValue((uint8_t*)&value, 8);

Interestingly, only 4 characteristics show up at any given time. I can identify which characteristic is missing using nRF Connect and disable one of the ones that is currently working,  and then the missing one will appear. I haven't been able to identify a pattern regarding how the missing characteristic is selected to be missing.
I think this is probably related to the timing issue noted above, I don't think this is a new issue. So, for now, I don't want to create a new issue. When the current issue gets resolved, I'll have to see whether this other issue is resolved as well.

Perhaps even more interestingly, I just tested with Log Level set to No Output, and I still get 4 out of the 5 characteristics... hmm.

How did you set log level to no Output?  At compilation time or at run time?

at compilation time in make menuconfig
On Wed, Oct 4, 2017, 4:33 PM Neil Kolban<EMAIL_ADDRESS>wrote:

How did you set log level to no Output? At compilation time or at run time?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nkolban/esp32-snippets/issues/109#issuecomment-334280785,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsUL1EN7URcEV5YxZcPV-N9DZ99D50aks5so-uCgaJpZM4PswDU
.

When you run your tests, do you see the following error?
https://github.com/espressif/esp-idf/issues/1077
Can you also confirm that you are running the latest ESP-IDF version (master from Github?).  I want to verify that we are running the same development base.

For our records, here is a pastebin of a trace with logging enable that works ...
https://pastebin.com/YAMm9DwA
My purpose in capturing this is to replace the logs, one at a time, with delays to see what I can find.

Some important progress ... I resorted to a horrible test scenario ... one I was hoping to avoid.  We know that the apps work with Logging enabled and don't work with logging compiled out.  So with logging enabled, I went through each log output in turn generated by the app as shown in the output and commented it out.  I then re-built the app and re-tested.
I must have gone through about 20 iterations before I found a big-ole-clue.
There is a function called:
BLEService::executeCreate()

Its purpose is to create a GATT server advertised service.  At the beginning of the function there is a log statement.  When I commented it out, we fail (i.e. no characteristics shown) but if we leave it present, the characteristics remain.  I demonstrated this to myself a few times.
Now what remains is to focus attention there and see what the story is.  I need to look at the immediate preceding calls and subsequent calls.  However, that will be tomorrow night's task as it is end of day here.

Updated: 2017-10-05:
After the work last night, I thought the resolution for this was going to be easy.  Here is the start of the function called "executeCreate" in BLEService:
void BLEService::executeCreate(BLEServer *pServer) {
   ESP_LOGD(LOG_TAG, ">> executeCreate() - Creating service (esp_ble_gatts_create_service) service uuid: %s", getUUID().toString().c_str());
   m_pServer          = pServer;
   ...

Pretty standard stuff.  I found that if I removed the debug statement, no service would be found while if I left the debug statement in, the service would be found.  Ok ... sounds like a race condition.  So I commented out the debug statement and replaced with a sleep for 1000msecs ... just as a test.  When I ran it, we delayed for a second as expected ... but there was no service found.  I put the debug statement back in, tested again, and the service was found.
This made me think that what we were hunting here may not be a race condition.
My next test was to leave the debug statement in but remove the parameters to it.  I recompiled and re-ran, and again no service was found.  Aha!!!  This would seem to say that something in the evaluation of the parameters is causing us problems.  Ok ... so now let us focus on the parameters.  It is a string print of:
getUUID().toString().c_str()

With the debug commented out but the above as a source line, I recompiled again.  This time ... with no debug but this line ... the service was present.
I changed the statement to:
getUUID().toString();

retested and still the service was present.
Finally I ended up with just:
getUUID();

and still the service was present.  I removed that line ... and no service!!!
OOooh!!  Ok ... so what have we here?
the getUUID() returns an instance of BLEUUID.... and that's it.
Its late and I'm done again for this evening ... but I'm not understanding what is going on yet.  What ever is happening is not a race condition.

Offtopic, sorry Neil, but it is funny. I thought it may be

getUUID().toString().c_str()
but i didnt expected it can be only getUUID().

I'm truly perplexed on this one.  Its causing me a lot of head scratching.  I've never seen a bug quite like this one.  Obviously, it isn't local environment specific (i.e. my system isn't the only one that is broke) because it is being reported by mr @coder543 .  Because it didn't manifest with debugging enabled, it was pure brute force to get to this point where we can enable/disable the bug with a one line change (and a lot of luck).  I'm not anywhere close to being satisfied with what would appear to be a workaround (i.e. coding a do-nothing call to getUUID()).  Friday is a working day for me on my job but Sat/Sun are coming soon and I'll be able to devote contiguous hours to the study.  However I have no "science" to yet apply ... I feel like an alchemist who will try and produce gold by mixing different chemicals together "just to see what will happen".  My hope is that as I poke it more with a stick, something will show up ... but I'm not confident.  I'll be looking for colleagues like yourself who would be willing to invest a little time to hop on Skype with me just so you can watch for 10 minutes while I recreate the problem and show you the symptoms in the hope that:

You can see something I'm missing?
You can think up new explanations and tests?
You can recreate on your system and we can parallelize tests and theories?

Im short of time this days, a lot work at my job, but if you have test code i have spare couple hours and i can do some tests.

Next session I get on this puzzle I'll put together a "goody package".  Simple instructions, a sample app and a description of how to reproduce.  I'll then post a link to that in this issue.  The only think I won't supply is the other end of the BLE story ... I'll assume that a tester has access to an Android phone running "nRF Connect".  But that of itself might be a good test ... for example using a different peer tool to see if that plays a part ... for example "bluetoothctl" of "gatttool" on Linux.

I will try with SampleServer from BLEtests with custom service/characteristic UUIDs. The rest i need is described here. (I think)

Its problem with adding 5th and next characteristics to service:

D (1467) BLEDevice: gattServerEventHandler [esp_gatt_if: 3] ... ESP_GATTS_ADD_CHAR_EVT
D (1475) BLEUtils: GATT ServerEvent: ESP_GATTS_ADD_CHAR_EVT
D (1481) BLEUtils: [status: ESP_GATT_ERROR, attr_handle: 0 0x00, service_handle: 40 0x28, char_uuid: 00005234-0000-1000-8000-00805f9b34fb]
D (1493) BLEServer: >> handleGATTServerEvent: ESP_GATTS_ADD_CHAR_EVT
D (1500) BLECharacteristic: >> setHandle: handle=0x00, characteristic uuid=00005234-0000-1000-8000-00805f9b34fb
D (1510) BLECharacteristic: << setHandle
D (1514) BLEServer: << handleGATTServerEvent
D (1518) BLECharacteristic: << executeCreate
D (1522) BLECharacteristic: >> executeCreate()
D (1527) BLECharacteristic: Registering characteristic (esp_ble_gatts_add_char): uuid: 00006234-0000-1000-8000-00805f9b34fb, service: UUID: 4fafc201-1fb5-459e-8fcc-c5c9c331914b, handle: 0x28
D (1544) FreeRTOS: Semaphore taking: name: CreateEvt (0x3ffe3ca8), owner: <N/A> for executeCreate
D (1553) FreeRTOS: Semaphore taken:  name: CreateEvt (0x3ffe3ca8), owner: executeCreate
E (1561) BT: btc_gatts_arg_deep_copy 8 no mem

D (1566) BLEDevice: gattServerEventHandler [esp_gatt_if: 3] ... ESP_GATTS_ADD_CHAR_EVT
D (1574) BLEUtils: GATT ServerEvent: ESP_GATTS_ADD_CHAR_EVT
D (1580) BLEUtils: [status: ESP_GATT_ERROR, attr_handle: 0 0x00, service_handle: 40 0x28, char_uuid: 00006234-0000-1000-8000-00805f9b34fb]
D (1592) BLEServer: >> handleGATTServerEvent: ESP_GATTS_ADD_CHAR_EVT
D (1599) BLECharacteristic: >> setHandle: handle=0x00, characteristic uuid=00006234-0000-1000-8000-00805f9b34fb
D (1609) BLECharacteristic: << setHandle
D (1613) BLEServer: << handleGATTServerEvent
D (1618) BLECharacteristic: << executeCreate
D (1622) FreeRTOS: Semaphore taking: name: StartEvt (0x3ffd7fe8), owner: <N/A> for start
D (1630) FreeRTOS: Semaphore taken:  name: StartEvt (0x3ffd7fe8), owner: start
D (1638) BLEDevice: gattServerEventHandler [esp_gatt_if: 3] ... ESP_GATTS_START_EVT
D (1645) BLEUtils: GATT ServerEvent: ESP_GATTS_START_EVT
D (1650) BLEUtils: [status: ESP_GATT_OK, service_handle: 0x28]

I dont know if something been changed in BLE stack, but i can see characteristics (still max 4) with log level ERROR setup in menuconfig.

I just checked the logs over here, and I'm seeing the same error message @chegewara is seeing on my 5th characteristic. Somehow I didn't notice this before.
So, I guess my issue of having more than 4 characteristics is a separate bug from the one  this issue is tracking. I'll go ahead and open another ticket for it.

Yes indeed ... please do separate the concept of > 4 characteristics causing an issue from the notion of having to have debug logging enabled in order to see any services/characteristics.

ATM i cant recreate issue with log level causing not showing characteristics. I can see all 4 characteristics with log level VERBOSE and ERROR.

@chegewara have you tried using Sample1.cpp with different log levels? I can consistently reproduce it over here.

I still owe you a full written story to recreate plus sample artifacts.  That is number one on my task list when my day job ends in about 4 hours and my weekend starts.  Because this story is such a mysterious puzzle, we will need to spell out all the environmental components.  In summary, and before I have written up the full story, the salient points are:

Building on Linux Ubuntu
Using the latest ESP-IDF from Git master
Using the tool chain known as:

gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0-61-gab8375a)

Output from:
$ xtensa-esp32-elf-gcc -v

Using the BLE C++ code as retrieved from master for cpp_utils (latest)

Ok then, we are in different environment.

Linux Ubuntu 14.04,
2 Latest esp-idf
latest toolchain (1.22.0-73)
A little bit modified to debug, i will revoke all changes and try again

SampleServer just a little bit modified is my test app. I will try with Sample1.

Attached to this issue we now have 109.pdf which is my write-up on how to recreate as easily as possible and how to test and expected (and unexpected) results.  The 109.zip contains the source files I tested with.
109.pdf
109.zip

Got it last night, thanks.
Ive found something, maybe this can help you. Still dont work like expected but:

if you add 2nd service then this service is advertised, but 1st service is still invisible

I dont know if this is related somehow but with 2 and more services ping is over 1200 ms.

Got back to studying this tonight ... found that the following doesn't work:
void BLEService::executeCreate(BLEServer *pServer) {
	m_pServer          = pServer;
	m_semaphoreCreateEvt.take("executeCreate");

But the following does:
void BLEService::executeCreate(BLEServer *pServer) {
	char x[1000];
	memcpy(x, &m_uuid, sizeof(m_uuid));
	m_pServer          = pServer;
	m_semaphoreCreateEvt.take("executeCreate");

The pattern I seem to be seeing is that "accessing" the m_uuid data is causing "something" to happen.... but what!!!

Digging further, one more clue ... when changing the "make menuconfig" option: Compiler options -> Optimization level from "-Og" to "-Os" the problem seems to go away completely.  There was nothing "thoughtful" in my discovery of this ... purely a guess.
The underlying SDKCONFIG flag appears to be CONFIG_OPTIMIZATION_LEVEL_RELEASE=y

At cpp_utils/BLEService.cpp line 75, you didn't set srvc_id.is_primary. So the services you created may be Second Service and will not show.
In release mode, srvc_id.is_primary will be initialed to a rand value, mostly not 0, so it works well. But in debug mode, it will be initialed to 0, causing the service not showing.
Please add this line and test again, thanks!
srvc_id.is_primary = true;


v1.4.5 Missing From PyPI

Just wanted to give y'all a heads up that it appears that your 1.4.5 release never got pushed to PyPI. I only see 1.4.4 and the 1.5.0 was yanked with no sight of 1.4.5.

Thanks for the heads up Justin.
Should be published now 👍


The font selection description is misleading and should be updated

TrueType fonts are recommended for high DPI displays as raster fonts may not display clearly.

I agree that TrueType fonts are recommended. However, the motivation is irrelevant and misleading.
It is not a big deal if you have a high DPI display and choose a raster font. The worst thing that could happen is that it will be pixelated (and note - some weirdos even love that).
If someone is not satisfied with the console font, it is pretty clear what to do - just change it.
There's a much bigger problem with raster fonts: they can't display anything outside of the current OEM code page. If your OEM code page is, say, 850 - Multilingual Latin I, with raster fonts you will see ????? instead of Cyrillic абвгд or ?p??s instead of Greek οπρςσ.
It is not clear at all, especially for laypeople, that the problem is in raster fonts. I've seen multiple occasions when people think that such strings are damaged due to bugs in software or that their actual data (file names or content) is corrupted.

This sentence should be rephrased and clearly stress that raster fonts, first of all, cannot display Unicode characters in general, so beware. And only after that, if there's still some space left, it can be mentioned that hey, they can also look ugly sometimes.

If I had my way, it would say:
Please stop using
Raster Fonts, it’s
2019.

(And then, in 2020, we would get rid of them forever. Some console APIs necessarily behave differently when the user’s selected Raster Fonts as their font.)

Pango (the font rendering engine used by Linux apps using the GTK widget, including the entire GNOME desktop) just recently dropped bitmap font support. Let's see where it goes, how it will be received by users...

@alabuzhev Thanks for reporting this. We're not really investing in this dialog or the legacy setting experience right now, and the burden we take on for changing it (which includes getting translation changes for every language Windows supports) is too great for us to countenance. I appreciate that it's wrong, but perhaps it'll just have to be wrong by design. That doesn't mean the design is great :smile:.


coq_8_5: New expression

This is a pull request because right now, the ssreflect build fails with:
coqmktop -coqlib `coqtop -where` -o bin/ssrcoq.byte src/ssrmatching.cmo src/ssreflect.cmo
File "/private/var/folders/4j/br7bdhjx4b384_snb2087gt00000gn/T/nix-build-coq-ssreflect-1.5-8.5b2.drv-0/coqmain34d478.ml", line 1:
Error: Cannot find file threads.cma
Makefile.coq:262: recipe for target 'bin/ssrcoq.byte' failed

I've been unable to determine if this is a problem with how Coq 8.5 is being built, or if it's an incompatibility on Darwin of some kind.  Requesting help from others who know OCaml better...

I'm trying to build this from the following environment in my config.nix file:
coq85Env = pkgs.myEnvFun {
  name = "coq85";
  buildInputs = [
    coq_8_5
    coqPackages_8_5.mathcomp
    coqPackages_8_5.ssreflect
  ];
};

I don’t know if it is a coq issue or a ssreflect one (or both). Nevertheless, here is a patch (adds -I +threads to the coqmktop invocations). You may want to report this issue upstream.
--- a/Make	2015-04-20 13:37:06.000000000 +0200
+++ b/Make	2015-04-25 11:32:53.885194600 +0200
@@ -1,9 +1,9 @@
 ### Uncomment for static linking
 ##
-#-custom "$(COQBIN)coqmktop -coqlib `$(COQBIN)coqtop -where` -opt -o bin/ssrcoq src/ssrmatching.cmx src/ssreflect.cmx" "src/ssrmatching.cmx src/ssreflect.cmx" bin/ssrcoq
-#-custom "$(COQBIN)coqmktop -coqlib `$(COQBIN)coqtop -where` -o bin/ssrcoq.byte src/ssrmatching.cmo src/ssreflect.cmo" "src/ssrmatching.cmo src/ssreflect.cmo" bin/ssrcoq.byte
-#-custom "$(SSRCOQ) $(COQFLAGS) -compile $*" "%.v $(SSRCOQ)" "%.vo"
-#SSRCOQ = bin/ssrcoq
+-custom "$(COQBIN)coqmktop -coqlib `$(COQBIN)coqtop -where` -opt -o bin/ssrcoq -I +threads src/ssrmatching.cmx src/ssreflect.cmx" "src/ssrmatching.cmx src/ssreflect.cmx" bin/ssrcoq
+-custom "$(COQBIN)coqmktop -coqlib `$(COQBIN)coqtop -where` -o bin/ssrcoq.byte -I +threads src/ssrmatching.cmo src/ssreflect.cmo" "src/ssrmatching.cmo src/ssreflect.cmo" bin/ssrcoq.byte
+-custom "$(SSRCOQ) $(COQFLAGS) -compile $*" "%.v $(SSRCOQ)" "%.vo"
+SSRCOQ = bin/ssrcoq
 ##

 ## What follows should be left untouched by the final user of ssreflect

@vbgl Thanks, with those changes I can at least test my projects with 8.5b2.  I'll push this, and report the issue to the ssreflect team.


OTP uri may not be formatted correctly

https://github.com/OTPLibraries/CSOTP/blob/master/CSOTP.cs
See this for a full URI on line 303
otpauth://totp/na%23me1:account%40whatever1.com?secret=JBSWY3DPEHPK3PXP&issuer=na%23me1&algorithm=SHA1&digits=6&period=30

Where inputs are "na#me1" for cissuer.
Make sure it comes out to this, as these are all the required fields of google authentication, however integration of CSOTP could go into QRCoder since all the data is needed anyways. This goes back to issue #72 of my reign of supporting TOTP and HOTP in too many languages ( see http://github.com/OTPLibraries )
I also noted that you put HMACToString or something instead of HOTPToString and you might want to change TimeToString to TOTPToString
of course the state of my libraries is in great need of optimization, but I chose to go with supporting a lot of common languages first.

Hi @tilkinsc
could you please explain what you mean with your post or what you want me to do? It's not clear.
I already encode cissuer, label, etc. with Uri.EscapeUriString(). I'm quite sure that the Uri.EscapeDataString()-function in the linked code file isn't correct, because technically the otpauth://... is an Uri and should be encoded with the EscapeUri-function. (More info: https://stackoverflow.com/questions/4396598/whats-the-difference-between-escapeuristring-and-escapedatastring)
The only other difference between the current implementation and you sample url/outcome is the part around the parameters &algorithm=SHA1&digits=6.
During implementation I stayed near the Google's documentation (https://github.com/google/google-authenticator/wiki/Key-Uri-Format) which says that algorithm is optional and digits only has to be set, when the value differs from 6/8.
With this points in mind, I'm unsure what exactly this issue is about. So please help to clear things up.

Google authentication is deprecated, see the RFC's

Can you give me links where Google Authenticator is marked as outdated and one with the specification of the followup standard?

1
2
3
4
(TOTP) RFC 6230
(HOTP) RFC 4226
Everyone has moved onto using Authy who is actually active in the development and support more things than Google Authentication ever will.  They actually outline it here. Authenticator, also, was too pedantic. Please base all future work off the RFCs.
I brought this up because the 'payload' integration with a pull request I am to make, where verbosity is a must. So it must be checked and ensured the payload generator, given the information, behaves properly and is error checked on things like accepting non-base32 secret keys and the like.

Hi Cody,
I still don't get what you want from me/what you want to changed... The four "example" links haven't to do anything with the PayloadGenerator class of this project. Besides of that I can't see that "everyone" has moved to authy. (Especially because they store your data in the cloud - which may be security risk, too.) But all of that has nothing to do with the QRCoder.
The linked RFCs are about the implementation of TOTP/HOTP, but this isn't a part of QRCoder. The only thing QRCoder does, is building an URI-scheme which is passed to the QR code generator. The payload generator is a "helper" - it just formats the string correctly. It's not a TOTP/HOTP tool.
So at the current state I just can't see, what's wrong with the URI format, generated by QRCoder's payload generator.

Oh this was me asking you to check through it.


DO not merge : In testing: new test cases framework functions

Description
E2E Test cases part 1 for framework function.
Fixes Issue URL
Automation
/ok-to-test tags=""
:mag: Cypress test results

[!WARNING]
Tests have not run on the HEAD 25a3d63cea9b6c4a90d371d428dd963617056498 yet
Tue, 26 Nov 2024 05:33:23 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[x] No

Summary by CodeRabbit

New Features

Introduced a comprehensive suite of end-to-end tests for navigating between pages in both JavaScript and non-JavaScript modes.
Added error handling tests to ensure appropriate responses to incomplete or incorrect navigation paths.
Implemented tests for modal functionalities, including automatic display on page load and error handling for invalid modal names.
Added a series of tests for the action selector functionality, verifying alert triggers and ensuring correct error messages.
Enhanced the PropertyPane functionality by identifying a specific button widget.
Established tests for local storage manipulation, including storing and removing values, and verifying behavior under various conditions.
Introduced tests for the clearStore action, ensuring it behaves correctly across different scenarios.
Added new methods for manipulating text input elements and toggling JavaScript execution settings on page load.

Chores

Updated the test specifications to shift focus from template testing to action execution functionality in the limited tests file.
Streamlined locator definitions by removing duplicates and adding new entries for improved clarity.

/ci-test-limit-count run_count=15

/ci-test-limit-count run_count=10

/ci-test-limit-count run_count=5

/ci-test-limit-count run_count=5

/ci-test-limit


Avoid using compile configuration to declare dependencies in gradle build scripts

Currently on an exercise build  Gradle reports a warning on the topic: compile configuration has been marked as deprecated for further removal.
Suppose we should substitute it with implementation in _template-ed and applied build scripts.

The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead.

Absolutely! compile() is still used in build-configuration because it's required for current implementation of compileStarterSourceKotlin task (used in unit tests). This dependency should be reimplemented or fixed before using implementation().


Server stop hang on android

how i do it....

Probably fixed by #329

Looks like this issue is fixed with #329
Closing!
Greetings
marci4


Poetry Environment not recognized by Locator

Type: Bug
Behaviour
Expected vs. Actual
In the docs (here and here) it states that the python extension can automatically locate (related) environments created by poetry, when in fact it doesn't. Environments from pipenv or pyenv are located successfully though - even unrelated one to my project.
Following files, issues and pull requests might be related to this:

globalVirtualEnvronmentLocator.ts particularly:
https://github.com/microsoft/vscode-python/blob/021b3620d132ff4bb3646dc136adf56afec909dc/src/client/pythonEnvironments/base/locators/lowLevel/globalVirtualEnvronmentLocator.ts#L42
poetryLocator.ts
poetry.ts

Steps to reproduce:

install python, poetry, vscode and python extension
create new poetry project: poetry new locator-test
open project in vscode: code locator-test
select interpreter: Ctrl+Shift+P -> select interpreter
poetry environment not listed
refresh environment list
poetry environment still not listed

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.11.4
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Pyenv
Value of the python.languageServer setting: Default

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

languageServer: "Pylance"

Extension version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Connection to 'wsl+ubuntu' could not be established
Remote OS version: Linux x64 <IP_ADDRESS>-microsoft-standard-WSL2

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.84GB (4.75GB free)

Process Argv
--crash-reporter-id 6a947b0b-2920-480a-98a0-5c6d6b7ebd8c

Screen Reader
no

VM
0%

Connection to 'wsl+ubuntu' could not be established

Item
Value

Remote
WSL: Ubuntu

OS
Linux x64 <IP_ADDRESS>-microsoft-standard-WSL2

CPUs
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2591)

Memory (System)
7.76GB (6.07GB free)

VM
0%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263cf:30792227
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
3biah626:30602489
f6dab269:30613381
vscrpc:30673769
showlangstatbar:30737416
03d35959:30757346
7ij38806:30736111
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofb:30804716
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30812748

Can you please provide the debug Python logs? Thanks!

Run Developer: Set log level command

Select Python -> Select Trace

Run Developer: Reload Window command

Provide the output:

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

2023-08-24 21:37:45.835 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-08-24 21:37:45.835 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-08-24 21:37:45.835 [info] Experiment 'pythonTestAdapter' is active
2023-08-24 21:37:46.172 [info] Test server listening.
2023-08-24 21:37:46.212 [info] Python interpreter path: ~/.pyenv/versions/3.11.4/bin/python
2023-08-24 21:37:49.162 [info] Starting Pylance language server.
2023-08-24 21:38:04.638 [info] > conda info --json
2023-08-24 21:38:04.651 [info] > poetry env list --full-path
2023-08-24 21:38:04.651 [info] cwd: .
2023-08-24 21:38:04.666 [info] Found: /usr/bin/python --> /usr/bin/python2.7
2023-08-24 21:38:04.674 [info] > ~/.pyenv/versions/3.10.0/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:04.675 [info] Found: /usr/bin/python2 --> /usr/bin/python2.7
2023-08-24 21:38:04.676 [info] Found: /usr/bin/python2.7 --> /usr/bin/python2.7
2023-08-24 21:38:04.678 [info] Found: /usr/bin/python3 --> /usr/bin/python3.6
2023-08-24 21:38:04.679 [info] Found: /usr/bin/python3.6 --> /usr/bin/python3.6
2023-08-24 21:38:04.679 [info] Found: /usr/bin/python3.7 --> /usr/bin/python3.7
2023-08-24 21:38:04.688 [info] > ~/.pyenv/versions/3.10.6/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:04.871 [info] Found: /usr/include/python3.6 --> /usr/include/python3.6m
2023-08-24 21:38:04.871 [info] Found: /usr/include/python3.7 --> /usr/include/python3.7m
2023-08-24 21:38:05.404 [error] [Error: Command failed: poetry env list --full-path
Traceback (most recent call last):
  File "/home/djbrown/.poetry/bin/poetry", line 16, in <module>
    from poetry.console import main
  File "/home/djbrown/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/home/djbrown/.poetry/lib/poetry/console/application.py", line 3, in <module>
    from cleo import Application as BaseApplication
ImportError: cannot import name 'Application' from 'cleo' (/home/djbrown/.pyenv/versions/3.11.4/lib/python3.11/site-packages/cleo/__init__.py)

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'poetry env list --full-path'
}
2023-08-24 21:38:06.989 [info] > ~/.pyenv/versions/3.11.4/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:07.001 [info] > ~/.pyenv/versions/3.7.10/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:07.034 [info] > ~/.pyenv/versions/3.7.12/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:08.184 [info] > ~/.pyenv/versions/3.7.9/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:08.218 [info] > ~/.pyenv/versions/3.8.6/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:09.884 [info] > ~/.pyenv/versions/3.9.1/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:09.926 [info] > ~/.pyenv/versions/3.9.2/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.048 [info] > ~/.pyenv/versions/3.9.7/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.058 [info] > ~/.local/share/virtualenvs/hbscorez-oG-TYuOt/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.329 [info] > ~/.local/share/virtualenvs/ycs-mfD08Ma2/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.495 [info] > /usr/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.801 [info] > /usr/bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.804 [warning] [Error: Command failed: /usr/bin/python -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
Unknown option: -I
usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:513:28)
	at Pipe.<anonymous> (node:net:757:14)] {
  code: 2,
  killed: false,
  signal: null,
  cmd: '/usr/bin/python -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:11.804 [error] Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
2023-08-24 21:38:11.811 [info] > /usr/bin/python ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:13.825 [info] > /usr/bin/python3.7 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:14.781 [info] > /usr/include/python3.6 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:14.810 [info] > /usr/include/python3.7 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:14.812 [error] [Error: Command failed: /usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.6: Permission denied

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:513:28)
	at Pipe.<anonymous> (node:net:757:14)] {
  code: 126,
  killed: false,
  signal: null,
  cmd: '/usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:14.814 [error] [Error: Command failed: /usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.7: Permission denied

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:513:28)
	at Pipe.<anonymous> (node:net:757:14)] {
  code: 126,
  killed: false,
  signal: null,
  cmd: '/usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:16.820 [info] > /usr/include/python3.6 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:16.827 [info] > /usr/include/python3.7 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:16.829 [error] [Error: Command failed: /usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.6: Permission denied

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:513:28)
	at Pipe.<anonymous> (node:net:757:14)] {
  code: 126,
  killed: false,
  signal: null,
  cmd: '/usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:16.833 [error] [Error: Command failed: /usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.7: Permission denied

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:513:28)
	at Pipe.<anonymous> (node:net:757:14)] {
  code: 126,
  killed: false,
  signal: null,
  cmd: '/usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:23.745 [info] Send text to terminal: pyenv shell 3.11.4

Seems like the relevant bits are:
2023-08-24 21:38:04.651 [info] > poetry env list --full-path
...
2023-08-24 21:38:05.404 [error] [Error: Command failed: poetry env list --full-path
Traceback (most recent call last):
  File "/home/djbrown/.poetry/bin/poetry", line 16, in <module>
    from poetry.console import main
  File "/home/djbrown/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/home/djbrown/.poetry/lib/poetry/console/application.py", line 3, in <module>
    from cleo import Application as BaseApplication
ImportError: cannot import name 'Application' from 'cleo' (/home/djbrown/.pyenv/versions/3.11.4/lib/python3.11/site-packages/cleo/__init__.py)

	at ChildProcess.exithandler (node:child_process:400:12)
	at ChildProcess.emit (node:events:513:28)
	at maybeClose (node:internal/child_process:1093:16)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'poetry env list --full-path'
}

But when I run poetry env list --full-path it successfully prints out:
/home/djbrown/.cache/pypoetry/virtualenvs/locator-test-pPeCarZq-py3.11 (Activated)

But when I run poetry env list --full-path it successfully prints out:
/home/djbrown/.cache/pypoetry/virtualenvs/locator-test-pPeCarZq-py3.11 (Activated)

~/.bashrc is also run when using terminal, which maybe causing the difference. Try the following:

Open a bash terminal and launch VS Code using code . after cd'ing to the desired workspace folder.
Run Python: Select Interpreter and provide the logs in case envs are still not discovered.

This way we ensure that VS Code also has the context of ~/.bashrc when we run the command internally.

@djbrown , thanks for the info. This seems to be the relevant bit:

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

[info] > poetry env list --full-path
[info] cwd: .
[debug] Shell Exec: poetry env list --full-path with options: {
    "cwd": "/home/djbrown/projects/locator-test",
    "throwOnStdErr": true,
    "timeout": 50000,
    "encoding": "utf8",
    "env": {
        "USER": "djbrown",
        "VSCODE_WSL_EXT_LOCATION": "/mnt/c/Users/danie/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.0",
        "SHLVL": "2",
        "HOME": "/home/djbrown",
        "WSL_DISTRO_NAME": "Ubuntu",
        "WAYLAND_DISPLAY": "wayland-0",
        "LOGNAME": "djbrown",
        "PULSE_SERVER": "unix:/mnt/wslg/PulseServer",
        "WSL_INTEROP": "/run/WSL/24174_interop",
        "NAME": "DESKTOP-65P6D75",
        "_": "/home/djbrown/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node",
        "TERM": "xterm-256color",
        "XDG_RUNTIME_DIR": "/mnt/wslg/runtime-dir",
        "DISPLAY": ":0",
        "LANG": "en_US.UTF-8",
        "SHELL": "/bin/bash",
        "PWD": "/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code",
        "HOSTTYPE": "x86_64",
        "WSL2_GUI_APPS_ENABLED": "1",
        "WSLENV": "VSCODE_WSL_EXT_LOCATION/up",
        "VSCODE_HANDLES_SIGPIPE": "true",
        "NVM_DIR": "/home/djbrown/.nvm",
        "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:",
        "PHPBREW_HOME": "/home/djbrown/.phpbrew",
        "LESSCLOSE": "/usr/bin/lesspipe %s %s",
        "ANDROID_HOME": "/home/djbrown/.android/sdk",
        "PYENV_ROOT": "/home/djbrown/.pyenv",
        "SDKMAN_CANDIDATES_API": "https://api.sdkman.io/2",
        "GPG_TTY": "not a tty",
        "NVM_CD_FLAGS": "",
        "PYENV_VIRTUALENV_INIT": "1",
        "JAVA_HOME": "/home/djbrown/.sdkman/candidates/java/current",
        "PHPBREW_RC_ENABLE": "1",
        "S_COLORS": "auto",
        "XDG_DATA_DIRS": "/usr/local/share:/usr/share:/var/lib/snapd/desktop",
        "SDKMAN_DIR": "/home/djbrown/.sdkman",
        "NVM_BIN": "/home/djbrown/.nvm/versions/node/v16.20.0/bin",
        "SDKMAN_CANDIDATES_DIR": "/home/djbrown/.sdkman/candidates",
        "PYENV_SHELL": "bash",
        "PHPBREW_ROOT": "/home/djbrown/.phpbrew",
        "SDKMAN_VERSION": "5.16.0",
        "NVM_INC": "/home/djbrown/.nvm/versions/node/v16.20.0/include/node",
        "SDKMAN_PLATFORM": "linuxx64",
        "LESSOPEN": "| /usr/bin/lesspipe %s",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}",
        "VSCODE_CWD": "/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code",
        "ELECTRON_RUN_AS_NODE": "1",
        "VSCODE_IPC_HOOK_CLI": "/mnt/wslg/runtime-dir/vscode-ipc-8cc6fb74-83e0-4816-b4f3-f92db9430c0e.sock",
        "PATH": "/home/djbrown/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/remote-cli:/home/djbrown/.poetry/bin:/home/djbrown/.pyenv/shims:/home/djbrown/.local/bin:/home/djbrown/.sdkman/candidates/java/current/bin:/home/djbrown/.pyenv/plugins/pyenv-virtualenv/shims:/home/djbrown/.pyenv/bin:/home/djbrown/.nvm/versions/node/v16.20.0/bin:/home/djbrown/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Program Files/Intel/iCLS Client/:/mnt/c/Program Files/Intel/IntelSGXPSW/bin/win32/Release/:/mnt/c/Program Files/Intel/IntelSGXPSW/bin/x64/Release/:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files (x86)/Intel/iCLS Client/:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files (x86)/Windows Live/Shared:/mnt/c/windows:/mnt/c/windows/system32:/mnt/c/windows/System32/Wbem:/mnt/c/windows/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS:/mnt/c/Program Files/OpenSSH/bin:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files Custom:/mnt/c/Program Files (x86)/Mozilla Firefox:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files Custom/curl/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Program Files/usbipd-win/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/danie/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/danie/AppData/Local/Programs/Git/cmd:/mnt/c/Users/danie/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:/snap/bin:/home/djbrown/.android/sdk/tools:/home/djbrown/.android/sdk/tools/bin:/home/djbrown/.android/sdk/platform-tools",
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
    }
}

We're basically trying to investigate why executing in terminal (which passes from you) is different from executing here. Two options:

Run printenv in terminal and see which environment variables are different from the execution above, try to set these vars in logs in the terminal and see if we can repro the issue.
Try setting python.poetryPath to the full path to the poetry binary in our system.

We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for understanding and the patience!


RFC: publish 0.1

For the past couple weeks it's been suggested again and again to publish 0.1, but this time I'd like to actually do it and propose a feature freeze other than existing open PRs. I suggest that we do the following steps:

[x] Ensure links in the book are up to date (https://github.com/twilight-rs/twilight-rs.github.io/pull/12, https://github.com/twilight-rs/twilight-rs.github.io/pull/13)
[x] Ensure links in the api docs are up to date (#463)
[ ] Add any critical missing documentation; missing docs on smaller functions is probably fine to leave for now
[ ] Update documentation and code for the main "twilight" crate to be an "advertisement crate". It shouldn't re-export the crates that it does and should get across in its README that the individual crates should be used.
[ ] Mark types as non-exhaustive where exhaustiveness isn't necessary (to avoid API breaks when adding new fields or variants) (#471)
[ ] Test critical pieces of all the crates for glaring bugs, especially where there are no unit tests. There have been a lot of breaking changes recently to get in before 0.1 so we might be missing something obvious.

[x] Gateway

[x] Connecting to the gateway works
[x] Sending commands over clusters and shards work
[x] Bringing clusters and shards up and down works
[x] Member chunking works

[ ] Generally high-traffic HTTP client routes work; bad requests aren't sent and responses are correctly deserialized. For example:

[x] Create message
[x] Update message
[ ] Get user
[ ] Get guild
[ ] Get member
[ ] List members

[ ] Lavalink links lavalink (just run the example)

All of the other crates are fairly highly automatically tested. If anyone has any disagreements with doing this now or other ideas feel free to edit them in or comment.
Once these are done we should be clear for a first publish.

i can test the gateway stuff and let it run on my bot for a while to see fuzz out deserialization problems as well as test chunking stuff. i'll probably wait for #449 to be merged tough

@AEnterprise #449 has been merged

checked the gateway on my bot's live token for a while, nothing fails to deserialize. also did some of the http routes already

Get user: Depends on #478
These works:
Get guild
Get member
List members


Error when installing with PIP

C:\Users\<user>>py -m pip install selfupdate
Collecting selfupdate
  Using cached https://files.pythonhosted.org/packages/c9/0f/63efb90e23f1e856c17d02d1a3b76097601bddc6cd654024a2511e4d5851/selfupdate-0.1.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\<user>\AppData\Local\Temp\pip-install-cl5cuatz\selfupdate\setup.py", line 10, in <module>
        import selfupdate
    ModuleNotFoundError: No module named 'selfupdate'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\<user>\AppData\Local\Temp\pip-install-cl5cuatz\selfupdate\

I get this error when i run PIP to install the module. This occurs both in the Command Prompt and the Powershell

Same here!

Seems to be for Python 3... Are you trying it from python 2.7 like me?

i use python 3.6

Oh... good luck than! I had to use something else.

WE NEED THIS REPOSITORY HELP

Is this issue good to close?

@beeedy any look updating PIP repo?

any news?

pip package still hasn't been updated? is there a problem? @beeedy

the package is now updated in pip


Rework AssociationFactoryLookup to Config mixin

This reworks the AssociationFactoryLookup to a Config mixin
as prep for adding additional logic to it. This includes adding
logic for tracking optional associations that should be walked
by record stacks and for reworking the default args logic. This
will allow us to avoid duplicating this logic between the model
factory and record factory and to possibly expand it to the read
model factories.
This renames the AssociationFactoryLookup to Config and
changes it to a mixin instead of a class. This also commonizes
the configs knowing their record class, the
build_associated_record method, and the record_classes_for
methods from the model and record factory configs. The build
associated record method is not implemented and is expected to
be overwritten in the model and record factory config classes.
The Config also expects a build_factory_for_record_class
method to be implemented which tells it how to build a factory
when it can't find a matching one in its association or
default factories hashes. The rest of the association factory
lookup logic is unchanged except that the add_factory method was
renamed to add_association_factory since its no longer on a
class called association factory lookup.
This doesn't commonize any of the current default args logic as
this is being deprecated and removed in a future effort. The new
default args logic will be commonized in this Config mixin.
This also updates the model and record factory configs to use the
mixin. The model factory config was previously being built with
both a model class and record class but didn't ever use its model
class so it is now only built with a record class.
This also updates the record stack tests to randomly choose a model
or record factory config. This ensures that the record stack works
with either factory config. This was a hole in the previous tests.
Finally, this switches a choice to sample to keep MR
compatible with newer versions of ruby.
@kellyredding - Ready for review.

@jcredding yeah man, looks good 👎


Case Sensitive Module Names

Hi,
I have a project where I have to use case sensitive file names.  How can I configure
ceedling to work case sensitive (for example when I generate new Modules)
any hints are appretiated
Keyvan

I am using
Ceedling:: 0.27.0
CException:: <IP_ADDRESS>
CMock:: <IP_ADDRESS>
Unity:: <IP_ADDRESS>

I have now updated to ceedling 0.28.1
same problem

Have this issue as well
~/aProject$ ceedling version
  Ceedling:: 0.28.1
CException:: <IP_ADDRESS>
     CMock:: <IP_ADDRESS>
     Unity:: <IP_ADDRESS>
~/aProject$ ceedling module:create[CamelCase]
File src/camelcase.c created
File src/camelcase.h created
File test/test_camelcase.c created
Generate Complete

@alexjaw : I added the following setting to my project.yml to use CamelCase module names
...
:module_generator:
:naming: "camel"
I am using same ceedling version as you mentioned, so it should work for you as well
for more options and details you should look at module_generator.
hih


Update heliopy ratings

I originally rated community as "Partially met", as I didn't think there were any contribution guidelines. I was wrong though and there are (https://docs.heliopy.org/en/stable/development/contributing.html), so I've updated this to "Good".

Thanks, David!


Clockwise or how to 100% to 0 ?

Hello, how to draw progressbar from 100% to 0 ?
Thank you !!

And the answer is :
bar.set(-1);
bar.animate(0, function() { bar.animate(0); })


Move ts.optionDeclarations data into JSON

If you open commandLineParser.ts, what you'll find is that the first 48% of the file is taken up by a definition that really wants to be JSON.
See also #3549

what you'll find is that the first 48% of the file is taken up by a definition that really wants to be JSON

It wants to be JSON but

It wants to be JSON but [...] isn't JSON.

Right, and neither is the Diagnostics stuff itself in diagnosticInformationMap.generated.ts.  And yet diagnosticMessages.json exists.

we'd have to build a translation layer

No.  The translation layer already exists in processDiagnosticMessages.ts, which operates on the two aforementioned files.
"I don't want to spend any time on this" is something I can appreciate, but is it also the intent of the TypeScript project to also say, "we're not going to accept any patches even from anyone else who would"?  The only reason there's not a pull request already sitting here waiting for review is my inability to locate the generator in processDiagnosticMessages.ts this morning.  I just started off to work on this as of my last comment on #3549 a few minutes ago...
This is data, not code.  It doesn't belong embedded in this file.

@colbyrussell this is a JSON object but it has a contextual type attached to it.
 export var optionDeclarations: CommandLineOption[] = [

this allows us to use our tools to do things like rename, find all refes, etc.. which is helpful.
The size of the object is not big enough to warrant moving it out. I also do not see any user/functional benefits for taking this change.

@colbyrussell this is a JSON object but it has a contextual type attached to it.
export var optionDeclarations: CommandLineOption[] = [
this allows us to use our tools to do things like rename, find all refes, etc.. which is helpful.

... how does this differ from diagnosticMessages.json?

These are two different issues. the reason diagnostic messages is in a .json file is we are creating the id automatically. putting it in a .json file makes it easier for the script to access it.
We had a list of requirements, that generating the file seemed like the best choice, we wanted:

the id of the message to tell you what the message text is
we wanted the compiler to check the usage of the messages and flag any wrong flag names
we did not want to have two files, i.e. an interface, and implementation, cause we did that and it was hard to manage

I'm reminded of why I avoid GitHub when I do open source.
shrugs
So long, TypeScript.

I am sorry you feel this way. It is our intention to shutdown contributions, we would be happy to have you as a TypeScript contributor, in any capacity you choose.. also we always welcome feedback for our process, or interactions. Give us another try with bug report or PR..

In addition to the reasons @mhegazy mentions, tsc.exe needs to support other languages, and so we need to be able to normalize into an XML format for processing and swap out different diagnosticMessages.d.ts files.
"I don't want to spend any time on this" is not at all my intention. It is simply a matter of using the right tool for the job. Sorry if my initial response came off as a little terse. We still feel the same regarding the decision on this issue, but as I first mentioned, we appreciate you taking the time. We always try to be open to issues and pull requests.

Thanks for the disproportionately warm response, and apologies about the curtness of my last message.  Resuming audit.  Will comment on this topic in coming days and follow up with PRs, docs, tests, other changes corresponding to my notes soon after.


travis: use custom FQDN for GitHub pages

travis: use custom FQDN for GitHub pages: https://docs.egi.eu
Before one hour the Let's Encrypt certificate for HTTPS should be setup.

Please wait before merging, need to add some more static content (like a README and the github PR template that was dropped as we don't keep history not to keep old files).


Search on network

Is it possible to do http request while typing text in SearchVIew component?

I am using an AsyncTask with Okhttp and I can type in the SearchView at the same time the async task is working.

Of course, just make sure to make it asynchronous, don't want to block the UI thread


Update Server.h

Resolved issue with missing header files in the build process. Followed guidance from @philippeVerney to include the missing header files and successfully built the project with the command 'cmake --build . --config Release -j2'. Verified that the project builds without errors.

Thanks @sidrah855
However, I must close this PR as I already did the change yesterday : https://github.com/F2I-Consulting/fetpapi/commit/1d238582c5ed923d740486a7617ca3eb07ca72f8
You can see the missing include added at line 32
I appreciate your contribution


Don't list unfree packages

There was a discussion around this when search.nixos.org was redesigned and the conclusion was that nixpkgs is a collection of free and open source software. We shouldn't list the unfree stuff.

This actually didn't do anything, because of
https://github.com/NixOS/nixos-search/blob/a8275b15a190dcffc48788a31de196be930511d0/flake-info/src/commands/nixpkgs_info.rs#L78-L80
It seems like allowUnfree doesn't control what packages nix-env will list (it will always try to list everything), but rather whether it will fail to evaluate unfree packages. This should probably be implemented as an explicit filter somewhere else.

Although now I think I'd actually oppose this change: this feels a lot like hiding unfree packages under the rug and seems disingenuous. If "nixpkgs is a collection of free and open source software" then it shouldn't include unfree software; otherwise, nixos-search shouldn't lie about what's included.

The environment variable does indeed affect the evaluation only,
I'm wondering why we have it here twice now as the unfree thing should have been/is set here too.
But I agree on having an explicit filter. This would also allow users to optionally include unfree packages in their search. I'm not sure if this was completely ruled out in the mentioned irc chat before but if it was I would be interested in the reason too ..

The environment variable does indeed affect the evaluation only, I'm wondering why we have it here twice now as the unfree thing should have been/is set here too.

It's not the same thing twice: packages-config.nix disables unfree whereas the environment variable allows it (and since the two are ORed together, the environment wins).

But I agree on having an explicit filter. This would also allow users to optionally include unfree packages in their search. I'm not sure if this was completely ruled out in the mentioned irc chat before but if it was I would be interested in the reason too ..

Yes, I think that's the best compromise: don't list unfree packages by default but allow the user to tick a box.

Uhm, actually the code I linked above is for options, not packages. The reason nix-env doesn't fail to evaluate unfree packages currently is that it doesn't need to evaluate them to get their metadata. This will change in the future when we add --out-path to support showing a package's outputs, since that requires evaluation, so we will then need to add the environment variables to the nix-env call too.

This will change in the future when we add --out-path to support showing a package's outputs

Evaluating these will run into interruptions due to broken packages I assume, wouldn't it?

Yes thats what i was talking about
initially i patched that for a different approach with the options
seems like there is work towards that.
Although, given the new nix command I'd love to see rather the output for
nix search nixpkgs ".*" --json
// or
nix flake show [--legacy] --json

to be a bit more thorough instead
But maybe that's wishful thinking for now


[ENH] Make naive model with drift strategy robust against NaN values and account for seasonal periodicity

Is your feature request related to a problem? Please describe.
With #1130 (not merged yet at the time of writing this issue), the naive model accounts for seasonal periodicity and is robust against NaN values for all strategies except the drift strategy.
Describe the solution you'd like
As pointed out in https://github.com/alan-turing-institute/sktime/pull/1130#issue-688158837, if the drift strategy would use the same util functions as the other strategies, this would:

make it robust against NaN values, both at the end of the time series and at the start
let it account for seasonal periodicity

The "handles-missing-data" tag for the naive model could then be switched to True (it currently doesn't seem possible to assign this tag on a strategy level, although there is some ongoing discussion about assigning tags in #981).
Describe alternatives you've considered
Alternatively, I tentatively propose the drift method might be eligible for removal? I don't see the use case for this strategy, which is why I am not attempting to fix this myself.

on #1130, please re-request a review if you think you've addressed the comments.

@flix6x, can you remind us - does #1130 close this issue?

@flix6x, can you remind us - does #1130 close this issue?

Sure. No, it doesn't. This issue is about the "drift" strategy specifically, which that PR didn't touch.


Error installing keras in open suse

Hi Rishab,
I am getting error while installing keras in open suse. I did install python 3. While installing keras am getting error message like: command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-70_05rwz/h5py. Can you please let me know which ubuntu version you have used and if you can provide me the link for iso file, it would be greatly helpful
Thanks
Anvesha

Hello Anvesha, my workstation runs Ubuntu 14.04, and I don't remember any such issues while installing Keras. Try and follow the parent blog which I have mentioned, I hope they have covered the instructions to install Keras.

Hi Rishab,
Thanks for response. I was able to install and get the code working. How long simulations took for you for 64, 150 layered network? Do you use GPU? Did you implement the obstacle avoidance robot in any board?
Looking forward to your reply.
Thanks
Anvesha

My work focuses on making the agent learn various kinds of behaviors, for learning each behavior it took around 1 hour, and I even restricted it up to 2000 iterations. Yes I was using a GPU, and I did not implement it on a board.


RHOAIENG-14150: rename helper.go to fix govulncheck failure

This is a change already present on opendatahub-io/kubeflow main.

Error: Process completed with exit code 1.

https://github.com/red-hat-data-services/kubeflow/actions/runs/11533555208/job/32106625942?pr=138#step:4:91

/approved
thanks


Add BigInt article

Target Live Date: asap

[x] This has been reviewed and approved by the V8 + Web DevRel teams
[x] I have run gulp test locally and all tests pass.
[x] I have added the appropriate type-something label.
[x] I've staged the site and manually verified that my content displays correctly.

CC: @petele

Whoops!
There were 3 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/05/bigint.md#L7 - Common typo found: 'javascript' Should it be 'JavaScript'?
src/content/en/updates/2018/05/bigint.md#L33 - Line must be at most 100 characters
src/content/en/updates/2018/05/bigint.md#L175 - Line must be at most 100 characters

Whoops!
There were 1 warnings that will prevent this PR from being merged. Please take a look, and either fix, or provide a justification for why they can't be fixed.
WARNINGS
src/content/en/updates/2018/05/bigint.md#L7 - Common typo found: 'javascript' Should it be 'JavaScript'?

:tada: This has been pushed live to https://developers.google.com/web/


Goofy no longer displays chat names

Out of nowhere tonight my Goofy app, which has not worked flawlessly, but has worked up until now, suddenly stopped displaying any of the names of my chats or contacts, just displaying the avatar image and a blank space. The app did not update, and when deleted and reinstalled the problem persisted. I have no idea what could be causing this, but I would dearly like it fixed.

Hm,…
this is dependant on the size of the window. If you make the window larger, the name get visible again. However, this should be fixed.

On 12 Oct 2016, at 08:26, killersquirrel59<EMAIL_ADDRESS>wrote:
Out of nowhere tonight my Goofy app, which has not worked flawlessly, but has worked up until now, suddenly stopped displaying any of the names of my chats or contacts, just displaying the avatar image and a blank space. The app did not update, and when deleted and reinstalled the problem persisted. I have no idea what could be causing this, but I would dearly like it fixed.
https://cloud.githubusercontent.com/assets/22786033/19299599/2aaf51fc-900a-11e6-8898-7d9a33838624.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/danielbuechele/goofy/issues/285, or mute the thread https://github.com/notifications/unsubscribe-auth/AAp2rG8zQ2CQqJGPmUK5HMyRAISITJv0ks5qzH2qgaJpZM4KUaLU.

I guess messenger.com changed. The names have started folding in to be just pics at a certain size.


Installation failed with "No registered operation handler"

Tests fail with "No registered operation handler for 'getppid'".
OS: arch
Perl6: This is Rakudo Star version 2018.01 built on MoarVM version 2018.01
implementing Perl 6.c.
Command Line:
zef install P5getpriority

Thanks for the report!
It appears that nqp::getppid got added pretty recently.  Short-term solutiion: get a more recent Rakudo.  Longer term: will look at this tomorrow to fix for older Rakudo versions.

Turns out this was easier to fix than I thought: a new version is on its way to CPAN!  Could you please confirm this fixes it for you?

Cool, you are fast ^^.
Thanks for the work. Will test the new version when it hits CPAN. At the moment of writing it is still 0.0.4

I think a new index for modules.perl6.org is generated every 3 hours or so.

Great. Works as expected!
Thanks for your work, Liz!


[[input.exec]] Encounter error when read the oracle alert log

Hi Everyone,
when I read the oracle alert log file it encounter an error .
Oracle scripts :
#!/bin/bash
adrci="/opt/oracle/product/12.2.0/dbhome_1/bin/adrci"
adrcihome="diag/rdbms/orcl/orcl"
logfile="/tmp/adrci.log"
incident=""
alert=""
alertdescription=""
#unixtime=""
#oldunixtime=""
get ORA messages from the last 5 minutes
$adrci -exec "set\ home\ $adrcihome;show\ alert\ -p\ "message_text like '%ORA-%'\ and\ originating_timestamp\ >\ systimestamp-1/288" -term;" > $logfile
get ORA messages from the last day
$adrci -exec "set\ home\ $adrcihome;show\ alert\ -p\ "message_text like '%ORA-%'\ and\ originating_timestamp\ >\ systimestamp-1" -term;" > $logfile
convert line endings (if logfile was created on windows)
sed -i 's/\r$//' $logfile
while read line; do
if [[ -z "$line" ]]; then
continue ;
else
# check if line contains datetime
regex='^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{6} [+-][0-9]{2}:[0-9]{2}'
if [[ $line =~ $regex ]]; then
# the alert time and convert it nanosecond-precision Unix time
unixtime=$(date -d "$line" +"%s%N")
# reset variables
incident=""
alert=""
alertdescription=""
else
if [[ $unixtime != "" ]]; then
# check if line contains incident number
if [[ $line =~ ((incident=(.*?))) ]]; then
incident=$(echo "${BASH_REMATCH}" | grep -o '[0-9]+')
fi
    # check if ORA message
    if [[ $line =~ (ORA-[0-9]{5}) ]]; then
      # get the ORA error string
      alert=$(echo "${BASH_REMATCH}")

      # get the alert description; escape special characters
      #alertdescription=$(echo $line | grep $alert | cut -d\  -f2- | sed 's/ /\\ /g' | sed 's/,/\\,/g' | sed 's/\"/\\\"/g')
      alertdescription=$(echo $line | grep $alert | cut -d\  -f2- | sed 's/ /_/g' | sed 's/,//g' | sed 's/\"/\\\"/g')
    fi
  fi
fi

fi
if [[ $unixtime != "" && $incident != "" && $alert != "" ]]; then
echo "oracle_alert_logs alert="$alert",alertdescription="$alertdescription",incident=$incident $unixtime"
else
if [[ $unixtime != "" && $incident == "" && $alert != "" ]]; then
echo "oracle_alert_logs alert="$alert",alertdescription="$alertdescription",incident=0 $unixtime"
fi
fi
#if [[ $unixtime != "" && $unixtime != $oldunixtime ]]; then
oldunixtime=$unixtime
#fi
done <$logfile
delete the adrci log file
rm $logfile
telegraf input plugin :
[[inputs.exec]]
Commands array
commands = ["sh /etc/telegraf/scripts/oracle.sh"]
Timeout for each command to complete.
timeout = "1m"
Data format to consume.
Each data format has its own unique set of configuration options, read
more about them here:
https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
data_format = "influx"
measurement name suffix (for separating different commands)
name_override = "oracle_logs"
Here the error it is showing when I run the coomand :
sudo -u telegraf /etc/telegraf/scripts/oracle.sh
[root@nvussjc-ftam5 ~]# sudo -u telegraf /etc/telegraf/scripts/oracle.sh
/etc/telegraf/scripts/oracle.sh: line 16: $logfile: ambiguous redirect
sed: no input files
/etc/telegraf/scripts/oracle.sh: line 68: $logfile: ambiguous redirect
rm: missing operand
Can anyone suggest me where I did mistake

This repository is just a demo repository for making plugins using the Go plugin package, all normal Telegraf bugs should go to the https://github.com/influxdata/telegraf repository.  However, since this is a more of a question, I suggest you ask general questions at the InfluxData Community site or on a site that specializes in shell scripting.


Bump kernel version to 4.6.3-m1

Note $subject

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/748583217

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/748583217
Status: success


[Android] App icon not used on

Hi,
I upgraded to 0.1.18 but I'm still having a blank icon for notifications on android.
Whereas the app icon is correctly set and displayed on the phone launcher.

Same problem here

related #53

icons have been refactored in 0.1.20. see readme


File size limit when uploading?

When I upload, only my smaller audio files upload.  Some of the files are on the larger size being radio shows.
I've deployed into kubernetes and obviously there may be a fix needed there, but I wanted to check if its related to a php value or something that is already known.

I set a new uploads.ini with larger values which seemed to help but several failed still.  I did a retry all and noticed, some more worked but still some failed, so I did another, in this way after a few tries everything uploaded except for one.  Not sure why it doesn't upload.  Is this type of intermittent upload behavior normal for koel?

Hi, thanks for reporting this. I've only ever used the upload feature while testing. Next time I spin up my test container I'll try with a radio podcast file. I'm not aware of particular issues. 😕

No rush on this one as I was able to get everything to upload except for one file after a few retries.  At any time though I can restart things to test for you.


Counter examples in Solidity

It would be very cool if Kontrol could generate executable counter-examples. Here is a small example:
function prove_foo(uint256 bar) {
    assert(bar != 0xC0FFEE);
}

Kontrol fails and gives us a counter-example with bar = 0xC0FFEE. It would be even nicer if Kontrol could generate an executable unit test like this:
function prove_foo_1() {
    prove_foo(0xC0FFEE);
}

If we can make the generated test fully concrete and self-contained, it would make an excellent entry point for Simbolik, and it can be easily added as a regression test to CI.

Agreed, thanks @RaoulSchaffranek! It would also make it easier to integrate Kontrol with third-party tools like https://getrecon.xyz/.
The only challenge I see is related to mapping Kontrol cheatcodes to Foundry (there're not many incompatible ones now, and we can come up with translation rules) and, mainly, concretizing/setting up symbolic storage — right now, we don't concretize the storage entries.


Preview Layer is always on top

I would like to be able to have views on top of the preview layer, i.e. have buttons added to the container view AFTER CameraManager.sharedInstance.addPreviewLayerToView(self.view) is called and have those views appear on top of the preview layer.

The easiest way to achieve that is add a container view for the preview layer and add the buttons to the parent view. Check out the example project and let me know if you need any more help :-)
Thanks!

That is the solution I ended up using, but it would be nice if I could add the preview as a view instead of a layer :)


Add benchmarks for data encode/decode

Includes merge of cache buffer branch, will close and open a new PR with only the benchmark changes for messages.


Securing Interaction between IDS Components: chapter does not consider changed Identity and Trust Management

While reading through latest changes it seems, that the chapter 4.1.5 Securing Interaction between IDS components has not yet been updated according to 4.1.2 Identity and Trust Management. I had following findings:

Is the mapping on private and public key still correct? My understanding was, that the Keys (such as C_UID) are not mapped on the key pair.
The mapping of identities is performed in this chapter on organizational level, while the Identities can also be mapped on participant (person within an organization) has been introduced.
The overall identity key ("A private key called Identity Key") should be the "Component Identity Key", doesnt it? Always differentiating between device and component identity is beneficial for the reader.
The device identity certificate mentioned here, seems to (more or less) match the platform identifier.

Thank you for bringing this up. Still a TODO. Sorry for the delay in replying...


Allow scrolling to be disabled when linking to a section within a page

Context
If you click on this link: https://sphinx-book-theme.readthedocs.io/en/stable/components/source-files.html#source-files-repository
it starts at the top of the page, and then after a moment, scrolls down to the section.
It would be much nicer to immediately jump to the section, rather than scrolling.
For example, this link brings you to the section immediately, without any scrolling: https://kevinmusgrave.github.io/pytorch-metric-learning/losses/#histogramloss
Proposal
Allow the scrolling behavior to be disabled.
Tasks and updates
No response

Adding this to a custom css file seems to work:
html {
  scroll-behavior: auto !important;
}

Is this the best approach?


Changed my github account name

Requesting to update to the new one, thank you

Per The Immortal Nicholas Flamel, changed PR from Github over to Steam


MSID: 92938 Version: 1 DOI: 2<IP_ADDRESS>9138

"msas": "Neuroscience"
"msid": "92938"
"preprintDoi": "10.1101/2<IP_ADDRESS>9138"
"Reviewed Preprint posted": "2023-11-09"
"Sent for peer review": "2023-10-02"
"Posted to bioRxiv": "2023-05-02" (link: "Go to bioRxiv": "https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>9138v1/")
[PLACE PDF URL HERE WHEN AVAILABLE] See step 7
Step 1. Inform bioRxiv
Who can help: @QueenKraken, @nlisgo, @scottaubrey

[x] Manuscript is in data hub index (https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=92938)

Step 2. Create preview of manuscript
Who can help: @fred-atherden, @nlisgo, @scottaubrey

[ ] Manuscript is available for preview (https://prod--epp.elifesciences.org/preview/92938/v1)

[ ] Trigger import for staging: https://prod--epp.elifesciences.org/import
[ ] Sync data folder with s3://prod-elife-epp-data/data
[ ] Trigger import for staging: https://staging--epp.elifesciences.org/import
[ ] Sync data folder with s3://staging-elife-epp-data/data
[ ] Pull request created to enhanced-preprint-data
[ ] Post link to pull request below

Pull request: [PLACE LINK TO PULL REQUEST HERE]
Detailed instructions: https://github.com/elifesciences/enhanced-preprints-data#add-a-manuscript
Step 3: Awaiting public reviews and QC
Who can help: Production team

[ ] QC passed or QC not needed

Who can help: Editorial team

[x] Public reviews available on sciety (https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>9138)
[x] Manuscript and editor details at the top of this issue (Supplied by Editorial team)
[x] Reviews returned by EPP - https://prod--epp.elifesciences.org/api/reviewed-preprints/92938/v1/reviews

Example
"msas": "Genetics and Genomics", "Neuroscience"
"msid": "84628"
"version": "1"
"preprintDoi": "10.1101/2<IP_ADDRESS>4241"
"articleType": "Reviewed Preprint"
"status": "Published from the original preprint after peer review and assessment by eLife."

"Reviewed Preprint posted": "2023-01-02"
"Sent for peer review": "2022-10-28"
"Posted to bioRxiv": "2022-11-21" (link: "Go to bioRxiv": "https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>4241v1")

Editors:
Reviewing Editor
Michael B Eisen
University of California, Berkeley, United States
Senior Editor
Michael B Eisen
University of California, Berkeley, United States

Step 4: Modify manuscripts.json (no PDF)

[ ] Reviewed preprint is published to EPP (https://elifesciences.org/reviewed-preprints/92938)

[ ] Pull request created to enhanced-preprint-client
[ ] Pull request switched to "Ready for review"
[ ] Post link to pull request below

[ ] Request that a doi be registered

[ ] Post link to #enhanced-preprint comment below

Pull request: [PLACE LINK TO PULL REQUEST HERE]
#enhanced-preprint comment thread: [PLACE LINK TO COMMENT HERE]

Instructions to modify manuscripts.json

Visit: https://github.com/elifesciences/enhanced-preprints-client/actions/workflows/publish-manuscript.yaml
Click: Run workflow
Complete the form and click "Run workflow"
A successful run should result in a new pull request at https://github.com/elifesciences/enhanced-preprints-client/pulls
Open the pull request and click the "Ready for review" button to trigger tests
Once the tests pass and you are happy with the changes the PR can be merged

Example pull request: https://github.com/elifesciences/enhanced-preprints-client/pull/334/files
Once the pull request is merged in it should be available a few minutes later.

Request that a doi
Post the following in #enhanced-preprint:
@Fred can you register a doi for https://elifesciences.org/reviewed-preprints/92938

Step 5: Awaiting search reindex

[ ] Reviewed preprint is avaliable on journal homepage (https://elifesciences.org)

The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.

Additional info
If needed, the jenkins pipeline to reindex search can be triggered sooner.
https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 6: Published! Request PDF generation

[ ] Post the link to the PDF url at the top of the issue

[ ] Post link to #enhanced-preprint comment below

#enhanced-preprint comment thread: [PLACE LINK TO COMMENT HERE]
Post the following to the #enhanced-preprint on slack:
@Ryan Dix-Peek please can you generate a PDF for https://elifesciences.org/reviewed-preprints/92938

Step 7: Introduce PDF to data folder and git repo

[ ] PDF is avaliable at https://github.com/elifesciences/enhanced-preprints-data/raw/master/data/92938/v1/92938-v1.pdf

Detailed instructions: https://github.com/elifesciences/enhanced-preprints-data#add-a-pdf
Step 8: Add PDF url to manuscripts.json

[ ] Reviewed preprint PDF is available for download (https://prod--epp.elifesciences.org/reviewed-preprints/92938)

[ ] Pull request created to enhanced-preprint-client
[ ] Pull request switched to "Ready for review"
[ ] Post link to pull request below

[PLACE LINK TO PULL REQUEST HERE]

Instructions to add PDF url to manuscripts.json

Visit: https://github.com/elifesciences/enhanced-preprints-client/actions/workflows/add-pdf-url-to-manuscript.yaml
Click: Run workflow
Complete the form and click "Run workflow"
A successful run should result in a new pull request at https://github.com/elifesciences/enhanced-preprints-client/pulls
Open the pull request and click the "Ready for review" button to trigger tests
Once the tests pass and you are happy with the changes the PR can be merged

Example pull request: https://github.com/elifesciences/enhanced-preprints-client/pull/397/files
Once the pull request is merged in it should be available a few minutes later.

Step 9: Done!

[ ] Kettle is on!

This needs updating when the full text for v2 is available

@acollings, please could you move the reviews over to the v2 for this one?

@fred-atherden done! :-)


Document Spy semantics

Add a Wiki section on subscribing with Spy semantics.

This belongs in the Channel Configuration wiki doc because it is simply a modification of the channel format.
https://github.com/real-logic/Aeron/issues/230#issuecomment-224733744


Fix steps to be from simplified view

In the Get Business Assist section, modify the steps to show how you get there in Simplified view. Since you have to have fewer than 5 users, high likelihood that they are using simplified view.

In the simplified view of Microsoft 365 admin center, on the Subscriptions tab, select Add products.
On the Purchase services page, select Other services, and then select Details for Business Assist for Microsoft 365.
Complete your purchase.

Also, please change "less than 5 users" to "fewer than..."

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

ID: 9f142f7c-6415-8c7d-144b-71a56af357c5
Version Independent ID: 6c709916-49bd-3673-82cd-e4ae2765823b
Content: Business Assist for Microsoft 365 - Microsoft 365 admin
Content Source: microsoft-365/admin/misc/business-assist.md
Service: o365-administration
GitHub Login: @KwekuA
Microsoft Alias: kwekua

@AntoniaBlume Thank you for your feedback. We have updated the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/5178
Thanks
Sri

@msbemba Thank you very much for the contribution and updating the documentation with PR. @AntoniaBlume Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Database access not available at http://localhost:7474/

I tried to use toposoid with the following step:
$ docker-compose up -d
$ curl -X POST -H "Content-Type: application/json" -d '{"knowledgeList":[{"sentence":"案ずるより産むが易し。", "json":"{}"}]}' http://localhost:9002/regist
"result":"OK"

Then, try to access http://localhost:7474/, then the output says Database access not available

So I tried to access with user: log4j, password: p@ssw0rd but can't connect.
I just tried the following:
curl -X POST -H "Content-Type: application/json" -d '{"premise":[],"claim":["案ずるより産むが易し。"]}' http://localhost:9004/analyze
"{"records":[]}"

It seems not expected result.
How do I inspect the problem?

Thank you for pointing out the issue.　@knok
Thank you for replying to the issue.　@fuji44

I don't know why I need to connect chyper-shell

I didn't expect this care.
If I find the cause, I will comment.
As a side note, I will comment on the additional information.
The meaning of localhost explained in the usage is an example assuming that the execution environment of curl and browser is the same as Docker's Host. If the access client to toposoid is different from Docker's Host, you can connect by modifying docker-compose.yml. Please read the following.
https://github.com/toposoid/toposoid#note


Update manifest via 'sous deploy'

This PR enables updating the version tag for a deployment via 'sous deploy -tag XXX'.

Current coverage is 48.24% (diff: 32.05%)

No coverage report found for master at 42e4fe4.

Powered by Codecov. Last update 42e4fe4...cfcddf9


Bug: Should international characters be considered Alpha numeric?

PHP Version
8.2
CodeIgniter4 Version
4.3.6
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
The validation library currently returns FALSE if accented characters are provided such as in the word Café. Should this not be considered a valid alpha numeric string? Whilst this was tested in 4.3.6 I don't believe the code in 4.4.1 is any different.
Steps to Reproduce
$validation = \Config\Services::validation();
echo $validation->check('Café','alpha') ? 1 : 0;

Expected Output
1
Anything else?
No response

https://github.com/codeigniter4/CodeIgniter4/blob/da0bddf7cad675872a21a61823faf1a421fb3936/system/Validation/FormatRules.php#L28
Only ascii symbols a-Z allowed

I also think the rule should pass only [a-zA-Z]+.


use LoopBackDemo, but receive always zero.

I use LoopBackDemo, but receive always zero.
This is monitor display below,
My platform is ESP32-S3-DevKitC-1U
ACAN_ESP32 version is 1.1.2
I try use ACAN_ESP32 version 2.0.1. Receive also always zero.
17:06:03.605 -> ESP-ROM:esp32s3-20210327
17:06:03.605 -> Build:Mar 27 2021
17:06:03.605 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
17:06:03.605 -> SPIWP:0xee
17:06:03.605 -> mode:DIO, clock div:1
17:06:03.605 -> load:0x3fce3808,len:0x44c
17:06:03.624 -> load:0x403c9700,len:0xbe4
17:06:03.624 -> load:0x403cc700,len:0x2a68
17:06:03.624 -> entry 0x403c98d4
17:06:03.799 -> ESP32 Arduino Release: 2_0_11
17:06:03.799 -> ESP32 Chip Revision: 0
17:06:03.799 -> ESP32 SDK: v4.4.5
17:06:03.799 -> ESP32 Flash: 4 MB (external)
17:06:03.799 -> APB CLOCK: 80000000 Hz
17:06:03.799 -> Configure ESP32 CAN
17:06:03.799 -> Bit Rate prescaler: 2
17:06:03.799 -> Time Segment 1:     13
17:06:03.799 -> Time Segment 2:     6
17:06:03.799 -> RJW:                4
17:06:03.799 -> Triple Sampling:    no
17:06:03.799 -> Actual bit rate:    1000000 bit/s
17:06:03.799 -> Exact bit rate ?    yes
17:06:03.799 -> Distance            0 ppm
17:06:03.799 -> Sample point:       70%
17:06:03.799 -> Configuration OK!
17:06:03.841 -> Sent: 0 Receive: 0  STATUS 0x3C RXERR 0 TXERR 0
17:06:04.092 -> Sent: 1 Receive: 0  STATUS 0x30 RXERR 0 TXERR 0
17:06:04.602 -> Sent: 2 Receive: 0  STATUS 0x30 RXERR 0 TXERR 0
17:06:05.097 -> Sent: 3 Receive: 0  STATUS 0x30 RXERR 0 TXERR 0
17:06:05.609 -> Sent: 4 Receive: 0  STATUS 0x30 RXERR 0 TXERR 0

I use LoopBackDemo, but receive always zero.
This is monitor display below,
My platform is ESP32-S3-DevKitC-1U ACAN_ESP32 version is 1.1.2
I try use ACAN_ESP32 version 2.0.1. Receive also always zero.
17:06:03.605 -> ESP-ROM:esp32s3-20210327 17:06:03.605 -> Build:Mar 27 2021 17:06:03.605 -> rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) 17:06:03.605 -> SPIWP:0xee 17:06:03.605 -> mode:DIO, clock div:1 17:06:03.605 -> load:0x3fce3808,len:0x44c 17:06:03.624 -> load:0x403c9700,len:0xbe4 17:06:03.624 -> load:0x403cc700,len:0x2a68 17:06:03.624 -> entry 0x403c98d4 17:06:03.799 -> ESP32 Arduino Release: 2_0_11 17:06:03.799 -> ESP32 Chip Revision: 0 17:06:03.799 -> ESP32 SDK: v4.4.5 17:06:03.799 -> ESP32 Flash: 4 MB (external) 17:06:03.799 -> APB CLOCK: 80000000 Hz 17:06:03.799 -> Configure ESP32 CAN 17:06:03.799 -> Bit Rate prescaler: 2 17:06:03.799 -> Time Segment 1: 13 17:06:03.799 -> Time Segment 2: 6 17:06:03.799 -> RJW: 4 17:06:03.799 -> Triple Sampling: no 17:06:03.799 -> Actual bit rate: 1000000 bit/s 17:06:03.799 -> Exact bit rate ? yes 17:06:03.799 -> Distance 0 ppm 17:06:03.799 -> Sample point: 70% 17:06:03.799 -> Configuration OK! 17:06:03.841 -> Sent: 0 Receive: 0 STATUS 0x3C RXERR 0 TXERR 0 17:06:04.092 -> Sent: 1 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0 17:06:04.602 -> Sent: 2 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0 17:06:05.097 -> Sent: 3 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0 17:06:05.609 -> Sent: 4 Receive: 0 STATUS 0x30 RXERR 0 TXERR 0

I use so large CAN Bit Rate. > 1MHz


converted ninjascript to javascript

shoulda just used coffeescript

we needs tests for this stuff

Either the previous commit or mine broke stuff.

You need a "horse AJ" Github account.

I'll check the committed code this evening to ensure it's all working as expected, having just scanned over it briefly I can't see anything immediately glaring.

I should post my simple test case file. It failed.
So either I broke something or the prior code broke something.
—
Sent from Mailbox
On Wed, May 27, 2015 at 2:08 AM, Robert White<EMAIL_ADDRESS>wrote:

I'll check the committed code this evening to ensure it's all working as expected, having just scanned over it briefly I can't see anything immediately glaring.
Reply to this email directly or view it on GitHub:
https://github.com/ryanburnette/Qurl/pull/9#issuecomment-105811595

You're missing type checking, Object.keys throws an exception if the parameter is null or undefined.


[FEATURE] Ability to hide specific elements like we can hide sections

Is your feature request related to a problem? Please describe.
My manager likes this software but she would like to be able to turn off different sections depending on the customer the resume is presented to. For example only showing relevant experiences or skills.

Describe the solution you'd like
Same icon as we already have to hide sections but for each individual entry.

Describe alternatives you've considered
Nothing really comes to mind.

I'm also looking for this enhancement.

Just adding on to say this would be a great feature. When trying to apply for different positions it would be nice to just have all the projects, or work experience in one resume then toggle some of them on or off. Would be easier than we don't have to make multiple projects with duplicate data

I'm also looking for this enhancement.

This will be one of the features in the upcoming overhauled version, among other things :)

+1

Right clicking, or long pressing (on mobile), on the item should give you a toggle "Visible" which would allow you to enable disable specific row items.

@AmruthPillai No, you misunderstood. That option has been there before this ticket was created. What I meant is toggling visibility on each individual entry, as in for example hiding a specific college instead of the whole education section.

@AmruthPillai No, you misunderstood. That option has been there before this ticket was created. What I meant is toggling visibility on each individual entry, as in for example hiding a specific college instead of the whole education section.

That's exactly what the above screenshot demonstrates. I invite you to try the app, right click on an individual entry, like a college, and you should be able to hide/show the item.

meant

Ok, I am stupid, I was trying it on phone to see the latest change and I thought your response was showing the three dot menu. Thank you very much!


Is it possible to have Electron as a subview in a more complex view hierarchy?

Hi!
I cannot seem to find this in the documentation. Is it possible to - instead of creating it's dedicated window, but with as little hackery as possible - embed Electron as a subview in a view hierarchy? Under OS X, one would get an NSView *, under Windows, one would perhaps specify parent's HWND when creating as child window.
Thank You!

No currently it is impossible to embed Electron in other applications, Electron's architecture doesn't allow that.