Stuck at "Discovering Python interpreter"

Type: Bug

Behaviour
Endless "Discovering Python interpreter". The extension's features such as Go-to-definition does not work. I have both VS Code stable with release version of the extension, as well as VS Code Insiders with pre-release version. Both environment can reproduce the issue.
Steps to reproduce:

Just open a workspace with Python files
Open any Python file and see the endless message.

Diagnostic data

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

2024-04-29 20:52:32.554 [info] 试验“pythonaa”处于活动状态
2024-04-29 20:52:32.554 [info] 试验“pythonRecommendTensorboardExt”处于活动状态
2024-04-29 20:52:32.554 [info] 试验“pythonREPLSmartSend”处于活动状态
2024-04-29 20:52:32.554 [info] 试验“pythonTerminalEnvVarActivation”处于活动状态
2024-04-29 20:52:32.554 [info] 试验“pythonTestAdapter”处于活动状态
2024-04-29 20:52:32.569 [info] Default formatter is set to null for workspace /Users/lazarusx/Projects/intelligent-center
2024-04-29 20:52:32.576 [info] Test server listening.
2024-04-29 20:52:32.579 [info] > conda info --json
2024-04-29 20:52:32.582 [info] > hatch env show --json
2024-04-29 20:52:32.582 [info] cwd: .
2024-04-29 20:52:32.584 [info] > pyenv which python
2024-04-29 20:52:32.584 [info] cwd: .
2024-04-29 20:52:32.587 [info] > ~/.conda/bin/conda info --json
2024-04-29 20:52:32.748 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2024-04-29 20:52:32.782 [info] > pyenv which python
2024-04-29 20:52:32.782 [info] cwd: .
2024-04-29 20:52:32.797 [info] Found: /opt/homebrew/bin/python3 --><EMAIL_ADDRESS>2024-04-29 20:52:32.798 [info] Found: /opt/homebrew/bin/python3.10 --><EMAIL_ADDRESS>2024-04-29 20:52:32.798 [info] Found: /opt/homebrew/bin/python3.11 --><EMAIL_ADDRESS>2024-04-29 20:52:32.799 [info] > ~/.virtualenvs/address-crawler-w6jYIZUv/bin/python -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:32.802 [info] Found: /opt/homebrew/bin/python3.12 --><EMAIL_ADDRESS>2024-04-29 20:52:32.803 [info] Found: /opt/homebrew/bin/python3.9 --><EMAIL_ADDRESS>2024-04-29 20:52:32.805 [info] > ~/.local/share/virtualenvs/address-crawler-w6jYIZUv/bin/python -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:32.835 [info] > /usr/bin/python3 -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:32.845 [error] [Error: Command failed: /Users/lazarusx/.virtualenvs/address-crawler-w6jYIZUv/bin/python -I /Users/lazarusx/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py /Users/lazarusx/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
dyld[87735]: Library not loaded: @executable_path/../.Python
  Referenced from: <BE7606F8-2228-3391-9D63-C65E80739E57> /Users/lazarusx/.local/share/virtualenvs/address-crawler-w6jYIZUv/bin/python3.7
  Reason: tried: '/Users/lazarusx/.local/share/virtualenvs/address-crawler-w6jYIZUv/.Python' (no such file), '/usr/local/lib/.Python' (no such file), '/usr/lib/.Python' (no such file, not in dyld cache)

	at ChildProcess.exithandler (node:child_process:423:12)
	at ChildProcess.emit (node:events:529:35)
	at maybeClose (node:internal/child_process:1098:16)
	at Socket.<anonymous> (node:internal/child_process:450:11)
	at Socket.emit (node:events:517:28)
	at Pipe.<anonymous> (node:net:350:12)] {
  code: null,
  killed: false,
  signal: 'SIGABRT',
  cmd: '/Users/lazarusx/.virtualenvs/address-crawler-w6jYIZUv/bin/python -I /Users/lazarusx/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py /Users/lazarusx/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py'
}
2024-04-29 20:52:32.946 [info] > /opt/homebrew/bin/python3 -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:33.037 [info] > /opt/homebrew/bin/python3.10 -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:33.102 [info] > /opt/homebrew/bin/python3.11 -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:33.157 [info] > /opt/homebrew/bin/python3.9 -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:33.206 [info] > ./venv/bin/python -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:34.847 [info] > ~/.virtualenvs/address-crawler-w6jYIZUv/bin/python -I ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2024.4.1/python_files/interpreterInfo.py
2024-04-29 20:52:43.441 [info] Python 解释器路径: ./venv/bin/python
2024-04-29 20:53:22.576 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2024-04-29 20:53:22.779 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2024-04-29 20:53:22.779 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2024-04-29 20:53:22.779 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2024-04-29 20:53:30.790 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.

Extension version: 2024.4.1
VS Code version: Code - Insiders 1.89.0-insider (Universal) (b55887a7d96669ea2e70baff32bb2288c640d015, 2024-04-26T13:06:22.512Z)
OS version: Darwin arm64 23.4.0
Modes:

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

User Settings

languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions

Extension Name
Extension Id
Version

autopep8
ms-python.autopep8
2024.0.0

Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code
MS-CEINTL.vscode-language-pack-zh-hans
1.89.2024042409

Flake8
ms-python.flake8
2023.10.0

isort
ms-python.isort
2023.10.1

JavaScript Debugger
ms-vscode.js-debug
1.89.0

JavaScript Debugger Companion Extension
ms-vscode.js-debug-companion
1.1.2

Pylance
ms-python.vscode-pylance
2024.4.1

Python
ms-python.python
2024.4.1

Python Debugger
ms-python.debugpy
2024.4.0

Table Visualizer for JavaScript Profiles
ms-vscode.vscode-js-profile-table
1.0.9

System Info

Item
Value

CPUs
Apple M1 Pro (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
10, 7, 6

Memory (System)
16.00GB (0.08GB free)

Process Argv
--crash-reporter-id 13dfec1b-6da1-46de-b821-73dcad7d053f

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
vsaa593cf:30376535
py29gd2263:31024238
c4g48928:30535728
962ge761:30841072
pythongtdpath:30726887
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
h48ei257:31000450
pythontbext0:30879054
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
cppperfnew:30980852
fegfb526:30952798
bg6jg535:30979844
ccp2r6:30958154
pythonait:30973460
gee8j676:31009450
g316j359:31013175
pythoncenvpt:31022790
a69g1124:31018687
j0bi8933:31021562
dvdeprecation:31030041
pythonprt:31030356

Hi @LazarusX Thanks for filing the issue.
Can you try clearing cache and reloading? It can be found in command palette via control+shift+p (command+shift+p in mac)

@anthonykim1 I tried, but it's not working.

@LazarusX  Can you try downgrading/installing previous version(s) of the Python extension and see if you can still repro the problem?
I'm wondering if this is some sort of regression on discovering Python interpreter.

@anthonykim1  I remember the endless "Discovering Python Interpreter" issue happened for me since a update around early April. However, at that time, IntelliSense feature such as Go-to-Definition and autocompletion still worked. I did a "Clear Cache and Reload Window" last night to see if it helps. After the reloading, the "Discovering Python Interpreter" still existed and IntelliSense also broke.
I just did a series of downgrading (as well as "Clear Cache and Reload Window"), all the way back to v2023.22.1. Both issues still exist.
Here are the output:

2024-04-30 16:05:10.941 [info] 试验“pythonaa”处于活动状态
2024-04-30 16:05:10.941 [info] 试验“pythonRecommendTensorboardExt”处于活动状态
2024-04-30 16:05:10.941 [info] 试验“pythonREPLSmartSend”处于活动状态
2024-04-30 16:05:10.941 [info] 试验“pythonTerminalEnvVarActivation”处于活动状态
2024-04-30 16:05:10.941 [info] 试验“pythonTestAdapter”处于活动状态
2024-04-30 16:05:10.952 [info] Default formatter is set to null for workspace /Users/lazarusx/Projects/intelligent-center
2024-04-30 16:05:10.959 [info] Test server listening.
2024-04-30 16:05:10.961 [info] > conda info --json
2024-04-30 16:05:11.136 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-04-30 16:05:11.139 [info] > ~/.conda/bin/conda info --json
2024-04-30 16:05:11.142 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2024-04-30 16:05:11.143 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-04-30 16:05:11.143 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-04-30 16:05:11.143 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-04-30 16:05:11.143 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2024-04-30 16:05:11.143 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-04-30 16:05:11.143 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-04-30 16:05:11.144 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-04-30 16:05:11.144 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2024-04-30 16:05:11.164 [info] Found: /opt/homebrew/bin/python3 --><EMAIL_ADDRESS>2024-04-30 16:05:11.166 [info] > ~/.virtualenvs/address-crawler-w6jYIZUv/bin/python -I ~/.vscode-insiders/extensions/ms-python.python-2023.22.1/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2023.22.1/pythonFiles/interpreterInfo.py
2024-04-30 16:05:11.166 [info] Found: /opt/homebrew/bin/python3.10 --><EMAIL_ADDRESS>2024-04-30 16:05:11.167 [info] Found: /opt/homebrew/bin/python3.11 --><EMAIL_ADDRESS>2024-04-30 16:05:11.167 [info] Found: /opt/homebrew/bin/python3.12 --><EMAIL_ADDRESS>2024-04-30 16:05:11.168 [info] Found: /opt/homebrew/bin/python3.9 --><EMAIL_ADDRESS>2024-04-30 16:05:11.169 [info] > ~/.local/share/virtualenvs/address-crawler-w6jYIZUv/bin/python -I ~/.vscode-insiders/extensions/ms-python.python-2023.22.1/pythonFiles/get_output_via_markers.py ~/.vscode-insiders/extensions/ms-python.python-2023.22.1/pythonFiles/interpreterInfo.py

OK. I think I found the solution myself. After removing the environment ~/.local/share/virtualenvs/address-crawler-w6jYIZUv/ mentioned in the output, everything worked fine again.

@LazarusX Nice. Was ~/.local/share/virtualenvs/address-crawler-w6jYIZUv/ some sort of stagnant virtual env you had?

@anthonykim1 Yes. It's migrated from my last machine, and only used a few years ago. I have no idea why it's scanned as a potential environment. However, IMO, there could be enhancement for this situation, because a broken environment should not block the entire interpreter discovery process. I also believe there is sort of regression here, because the extension used to work fine in spite of the broken environment.


Add core ownership records

Description
Each device is identified by an "identity key". We need to know which cores belong to which device. Each device should own at most one core in each namespace, and at least one core in the 'auth' namespace.
So that we can use our existing indexer, we can use the device identity public key as docId. The other fields need to be:
type CoreOwnership = {
  authCoreId: string,
  configCoreId: string,
  dataCoreId: string,
  blobCoreId: string,
  blobIndexCoreId: string
}

e.g. fields names of the format ${namespace}CoreId.
The authCoreId should always match the core ID of the auth core where it is written.
Validation
To validate this message, we need to validate ownership of the secret keys for each core. We can store this in a signature record, where we sign the core keys (as buffers), using the core secret key.
type CoreOwnership = {
  // ...
  coreSignatures: Record<Namespace, Buffer>

We don't need to convert these to string because we don't need to use them in any SQL queries (unlike the coreId fields above). That saves a round-trip from buffer-string-buffer.
We also need to validate ownership of the identity key - unlikely that someone would say their cores belong to someone else, but maybe best to be sure?
type CoreOwnership = {
  // ...
  identitySignature: Buffer
}

Questions

Should we allow core ownership records to be modified? If not we can "trick" sqlite-indexer to only index the first ownership record by:

Before sending to the indexer (e.g. in IndexWriter) check the authCoreId matches the core where it is written
Replace links with an empty array
Pass a custom getWinner function to sqlite-indexer to pick the winner with the lowest index (from versionId)

Should we validate at index time or at read time? Might make sense to keep the validation in the indexer, then we only need to validate once rather than on every read. Should just drop/ignore invalid records.
Where should responsibility for writing the core ownership record lie? It should happen when the auth core is first created. Maybe in CoreManager?

API
class CoreOwnership {
  constructor({
    coreManager: CoreManager,
    authDataStore: DataStore,
    keyManager: KeyManager
  })
  // Write the ownership record to the auth core.
  writeOwnership(): Promise<void>
  // Return the identity key of the device that owns the core with the given key
  getOwner(coreKey: Buffer): Promise<Buffer>
  // Return the core key for the core owned by deviceId in the given namespace
  getCoreKey(deviceKey: Buffer, namespace: Namespace): Promise<Buffer>
}

Tasks

[x] https://github.com/digidem/mapeo-core-next/issues/190
[ ] Add sign and verify functions to @mapeo/crypto
[ ] digidem/mapeo-schema#125
[ ] Add special handling of coreOwnership records to IndexWriter - validate signatures, remove links, custom getWinner
[ ] Add a DataType instance for coreOwnership, but don't expose it to the public API
[ ] Create CoreOwnership class with getOwner and getCoreKey methods
[ ] Write core ownership record when the auth core is first created

Should we allow core ownership records to be modified?

Don't have any useful input on this one. Just reading about the "trick" doesn't seem inspiring from a code maintenance perspective, but not sure what allowing modifications entails in practice.

Should we validate at index time or at read time?

Leaning towards at index time

Where should responsibility for writing the core ownership record lie?

CoreManager seems to make sense 👍


DasAPI is not available

After recent changes, DasAPI is not available.
Please, provide the right way to replace former code:
from hyperon_das import DasAPI
das = DasAPI('hash_table')

Sorry about that, we made some changes.
Now, you must call the API like this:
from hyperon_das import DistributedAtomSpace
api = DistributedAtomSpace('ram_only')

See this link for more details:
https://github.com/singnet/das-query-engine#in-memory

@CICS-Oleg, could you please fix dasgate in Hyperon and close this issue of this.

@Necr0x0Der Done


url format

hi, i tried successfully to use your Layout with the file in assets... but when i try with URL, i obtain only a blank screen... in which format i have to provide the url?
thank you

Hi sorry for late reply, Url should ends with .mp4 or any other video format. And video page must supports to play it.
For example: This video should play http://techslides.com/demos/sample-videos/small.mp4
If you have other questions just ask! Thank you!

thank you!
i think android apps need https, instead of http though
this is working
https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4
thanks!


repetition the same information in doc

Deleted unnecessary double times repetition in doc.

Good catch! Some very peculiar merging happened there 😅 Thanks for the PR!


How do I specify a constant in bond schema?

I see that for default value I would do something like this:
int32 someField = 123;
And I see documentation that I think is for constants parsed as json:
{
"type": "constant",
"value": 0
}
But I'm not sure how this is specified in a .bond file, any idea how?
Thanks

That documentation is regarding enum's and how they are represented in json. Bond IDL does not have a constant type, although you could simulate it with default value (or maybe enum) but you would still need a struct defined.

This appears to have been answered. I'm going to close this issue. Please feel free to re-open if needed.


added linux

I compiled xsqlite3 for linux just for fun, you can add it to the package. It should be in the ext folder.

Nice, it's good to know it works. And will do.
On Sun, Dec 18, 2016 at 12:52 PM, Tim Uy<EMAIL_ADDRESS>wrote:

Assigned #9 https://github.com/loqu8/SQLitePCL.raw/issues/9 to
@holland01 https://github.com/holland01.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/loqu8/SQLitePCL.raw/issues/9#event-897943862, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA3qY1lDCqe6AjZDdngCy8d9VMMiaiUqks5rJZz8gaJpZM4LQOwX
.


Make Croppr handle resized large images

Call Croppr.reset() after editing the image height in order to correctly position the cropping bounding box.
When the image uploaded is large, Uppload will resize it to fit within the modal, but this results in Croppr positioning the cropping bounding box incorrectly.

There may be an issue here with some of the other settings not persisting with Croppr, specifically startSize. I'm checking a bit more.

Croppr converts percentage sizes to pixels when initialized, so calling reset does not fully address the issue.

I ended up needing to use some private Croppr methods, but I got it working nicely. Here's the relevant code from crop.js:
var cropOptions = {
    aspectRatio: scope.settings.crop.aspectRatio || null,
    maxSize: scope.settings.crop.maxSize || null,
    minSize: scope.settings.crop.minSize || null,
    startSize: scope.settings.crop.startSize || [50, 50, "%"],
    onCropStart: data => {
        dispatch("cropStart", data);
    },
    onCropMove: data => {
        dispatch("cropMove", data);
    },
    onCropEnd: data => {
        dispatch("cropEnd", data);
    },
    onInitialize: instance => {
        const allImages = previewWindow.querySelectorAll("img");
        for (let i = 0; i < allImages.length; i++) {
            if (allImages[i].offsetHeight > previewWindow.offsetHeight) {
                allImages[i].style.height = previewWindow.offsetHeight + "px";
            }
        }

        // Reset the Croppr instance after we resized the images.
        // insance.options is converted from percentage values to px values when it is initialized
        // so we need to reparse and reconvert before resetting the Croppr instance
        instance.options = Croppr.parseOptions(cropOptions);
        instance.options.convertToPixels(instance.cropperEl);
        instance.reset();
    }
};
const cropInstance = new Croppr(scope.modalElement.querySelector("#previewImage"), cropOptions);

This look good, thanks @pegler! I'll merge your request and add the convert to pixels lines as well.

This has been added in 0.3.5.


The index URL should not expose the password

By default pip-compile will add any custom pip repository URL along with the login details if they are in the URL.
Steps to replicate

Run pip-compile

Expected result
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile
#
--index-url<EMAIL_ADDRESS>
Actual result
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile
#
--index-url<EMAIL_ADDRESS>

Hello @aflaisler
Thanks for the report! That's a deliberate decision. You can hide sensitive data with --no-emit-index-url option.

Ah ok thanks!


[BE] Implement the single blog post API endpoint

Business Requirements
As a visitor, I want to be able to read a specific blog post on the website and be able to learn something new.
Acceptance Criteria

There should be an API endpoint which will retrieve a single blog post by slug which is either published or scheduled to be published at a future publish date
The single blog post should have the following details:

Title
Excerpt
Slug
Content
Author name
Author profile image
Publish Date
Tags

An API documentation should b e implemented with Scribe for the endpoint so that it will be easier for the frontend team to integrate it.

This task is related to #35 which means one of the two will need to be implemented first.


Update for ostensible changes in lifetime handling in rustc.

Hi.
Whilst I'm not 100% sure of exactly sure of the cause, it looks like this library doesn't build on current -nightly rust builds, seemingly due to changes in lifetime handling. It looks like it's a simple fix, but I'm happy to discuss it.
Thanks for the library.

Thanks for putting this together! I've had kind of a crazy couple of weeks and haven't had the chance to catch up with the latest changes to rustc.
I'm going to go ahead and merge this to fix the build, but it does change the API a bit. I'm going to take a look and see if there's a way to have the original tuple-style ReceiptHandler struct now that there's a default lifetime on references. If there is a way, I may tweak these to get back to the original ReceiptHandler notation. If not, I may swing the other way and the other OptionSetter structs all expose a ::new() method.
Thanks again, I appreciate the help!


Add scrollOffset

Extra parameter allows tuning react-scroll for react-md sidebar / toolbar. Fixes https://github.com/fisshy/react-scroll/issues/143

Thanks for your PR.
Why can't you use Offset?

@fisshy I use offset, but in context of react-md top toolbar thats working. I need that new param to fix the scroll position generated by link click - in fact what I do is I cancel the offset like this:
nestedItems={
  sections.map(section => (
    <ListItem
      key={section.id}
      primaryText={section.headline}
      component={Scroll.Link}
      to={`section-${section.id}`}
      spy={true}
      offset={-64}
      scrollOffset={64}
    />
  ))
}

Without  scrollOffset param I was not able to fix the link to scroll to proper position. And I cant skip offset because then the highlight on scroll does not work. So I either needed variable to skip offset on scrollTo helper or add scrollOffset which would allow me to adjust the scrollTo. SInce I found an issue and a PR doing scrollOffset (which for some strange reason incuded also some other canges) - I made new PR with only the scrollOffset :)

@fisshy any update on this one? I'd really love to see this merged!
@tb could you please resolve conflicts? (BTW hello from 🇵🇱dude!)

I have the the same problem as this
https://github.com/fisshy/react-scroll/pull/278
The spy offset and the scroll offset are not the same
Can we merge this or does anyone have different solution for this problem?

I have the same problem, no clue why this is not merged

+1

+1

I have the same problem, please separate spy offset and scroll offset


Loading Lora Adapter weights into 4bit model to continue fine tuning

In this colab you show how to load adapter and merge it with initial model. Notice it loads in 16bits format, so for 65B parameters it would need something like 130GB of RAM.
model_name = "decapoda-research/llama-7b-hf"
adapters_name = 'timdettmers/guanaco-7b'

print(f"Starting to load the model {model_name} into memory")

m = AutoModelForCausalLM.from_pretrained(
    model_name,
    #load_in_4bit=True,
    torch_dtype=torch.bfloat16,
    device_map={"": 0}
)
m = PeftModel.from_pretrained(m, adapters_name)
m = m.merge_and_unload()

Is there a way to load the model adapter as an adapter, just like it was in the training time?
Also if someone wants to continue training after having the adapter using this sample, he needs to merge the adapter into the model on very large machine, and then create exact same adapter on weaker machine, just to continue to train from where he (or someone else) already stopped. Is there a way to load the adapter into 4bit state base model? Somewhere here (inside the FineTuning colab):
from peft import LoraConfig, get_peft_model

config = LoraConfig(
    r=8,
    lora_alpha=32,
    target_modules=["query_key_value"],
    lora_dropout=0.05,
    bias="none",
    task_type="CAUSAL_LM"
)

model = get_peft_model(model, config)
#Add load adapter weights somwhere here...
print_trainable_parameters(model)

Nevermind... you can use from_pretrained function. Like this:
config = LoraConfig.from_pretrained("timdettmers/guanaco-65b")
config.inference_mode = False

model = get_peft_model(model, config)
print_trainable_parameters(model)

Oh, maybe should also set is_trainable=True

@abcbdf No, the line that loads the model weights is:
model = get_peft_model(model, config)
Your method should work too:
model = PeftModel.from_pretrained(model, adapter_name, is_trainable=True)


Strapi can't start up with plugin slugify

Hi,
Strapi crashes as son as I enable the Plugin.
The command yarn dev lead to a crash with the following error:
error: Cannot read property 'admin::permission' of undefined TypeError: Cannot read property 'admin::permission' of undefined
 graphql: {     enabled: true,     config: {       endpoint: '/graphql',       shadowCRUD: true,       playgroundAlways: false,       depthLimit: 7,       amountLimit: 100,       apolloServer: {         tracing: false,       },     },   },   slugify: {     enabled: false,     config: {       contentTypes: {         page: {           field: 'slug',           references: 'title',         },       },     },   },
Using Node 14
"@strapi/plugin-graphql": "^4.1.5",
"strapi-plugin-slugify": "^2.2.1"
"@strapi/strapi": "4.1.5",
When GraphQL is Disabled it works.

@Gradlon , thank you for the report. That is my bad, the Additional Requirement for GraphQL should state that the slugify configuration should be before the graphql plugin configuration not after it.
Updating the plugins.js order to
// ...
slugify: {
  enabled: false,
  config: { contentTypes: { page: { field: 'slug', references: 'title', },
}
graphql: {
  enabled: true,
  config: {
    endpoint: '/graphql',
    shadowCRUD: true,
    playgroundAlways: false,
    depthLimit: 7,
    amountLimit: 100,
    apolloServer: { tracing: false, },
   },
}
//..

should fix the issue.
P.S. Leaving this open until a fix is applied.


Ability to resume observations

It might not actually be necessary to have the ability to resume observations if the resulting observation schemas can simply be merged.


Does not use settings passed to node externals plugin

The esbuild-node-externals plugin's configuration options do not seem to have any effect in combination with serverless-esbuild.
My esbuild-plugins.js:
const { nodeExternalsPlugin } = require('esbuild-node-externals');

module.exports = [nodeExternalsPlugin({
  allowList: ['@a/package']
})]

My serverless.ts contains:
esbuild: {
  minify: true,
  plugins: "./esbuild-plugins.js",
}

However, @a/package is then packed as an external module which it shouldn't be.
I believe this might be because serverless-esbuild detects whether the plugin is enabled, but then overwrites the settings with an empty allowlist:
https://github.com/floydspace/serverless-esbuild/blob/8a1dcc02c49574c0b04df084a3b79049b4e8e25f/src/pack-externals.ts#L220
My current workaround is to pack all external modules, but this appears to make my lambda functions slower.

Just to let you know, I did see this a while ago but I was busy trying to fix the external packaging. I'll take a look some time in the next week :)

Okay so it looks as if we cannot access the options you add to the plugin. The plugin itself relies on us calling the setup() function it returns however our plugin doesn't do that.
We could possibly give it it's own little section under our esbuild config. 🤔
Eg.
custom:
  esbuild:
    node-externals:
      allowList:
        - package

:tada: This issue has been resolved in version 1.33.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


198 cp2k fatal error getting atomic numbers

The error was with the header matching (newer versions) of an output section.
Still, we shouldn't need that section to produce atomic numbers from kinds.

I think it's fine,
a question on tests: can you use in each test different versions of .out files to test on?
This can be done here or in another MR

I asked the user who reported this bug if I can use a file of theirs. Will see if I can get it in before merging.

I think it's fine,
a question on tests: can you use in each test different versions of .out files to test on?
This can be done here or in another MR

I asked the user who reported this bug if I can use a file of theirs. Will see if I can get it in before merging.

I see, yeah that would be the best option I believe. And then, you add that file to be fed into tests. It's likely that some other test may fail with different versions of files so it's a nice way of making the parser more robust.

please rebase so I can see the cp2k parser fixes. thanks.


Update teams-powershell-install.md

The actual parameter to Sign in of Microsoft Teams is not valid, if you use the Get-Credentials is not valid as a parameter, the correct syntax is Get-Credentials.
This script works very well, it's only change the parameter of -Credentials to -Credential
`$credential = Get-Credential
#Connect to Microsoft Teams
Connect-MicrosoftTeams -Credential $credential
#Connection to Skype for Business Online and import into Ps session
$session = New-CsOnlineSession -Credential $credential
Import-PsSession $session
`

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@brandber PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Problems with some offline IPs

I'm trying to get the status of the servers in my list. Most of them it takes less than a second to receive the status but some offline servers make the web keep loading till timeout.
My host is OVH webhosting and I'm using php 5.3.
You can try to get the status with example.php of:
"mc.minley.es" <- not working (offline)
"StabilishedNetwork.com" <- working (offline)
"mc.minegodz.com" <- working (online)
Thanks for your support

I've noticed that there's an issue with craftbukkit/spigot servers running plugins for animated MOTD


[FINERACT-1971] Delinquency pause validation bug fixes

Description
Describe the changes made and why they were made.
Ignore if these details are present on the associated Apache Fineract JIRA ticket.
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Write the commit message as per https://github.com/apache/fineract/#pull-requests

[ ] Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

[ ] Create/update unit or integration tests for verifying the changes made.

[ ] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

[ ] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes

[ ] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@taskain7 Please use the correct formatting the PR title and commit message!
FINERACT-XXXX: short description


⚠ Processors has degraded performance

In 592b111, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 78 ms

Resolved: Processors performance has improved in 957acc2.


The script doesnt run

Runing this on Xpenology redpill loader
920+ DSM 7.1.1-42962 Update 4
I am new to this and would like to run this script. I know nothing about how to run the script.
I putty into the machine like you would.
I did run however a python one and it worked but this shows up as:

root@NAS-SLIM:~# cd /tmp
root@NAS-SLIM:/tmp# sudo script.sh
sudo: script.sh: command not found

Because the script is not in a location that is in DSM's path variable /sbin, /bin, /usr/sbin, /usr/bin, /usr/syno/sbin, /usr/syno/bin, /usr/local/sbin, /usr/local/bin you need to type the path to where the script is located.
For example, if you saved the script to your home folder on volume 1 and your username was bob you'd type:
sudo /volume1/homes/bob/script.sh


Elminate quoted string array indexes. This improves obfuscation size.

Coverage remained the same at 98.017% when pulling 6169d9f4a0ee9a0ee60166c111acab09f0f2dcb2 on J-Rojas:remove-quoted-string-calls into<PHONE_NUMBER>6dbfed949012397cc06d0d9ce4c262 on javascript-obfuscator:master.

Numers is not OK because it can be easily converted from hexadecimal view with this tool
http://www.jsnice.org/

@sanex3339 would you consider this as an option then? My goal is to be able to use some of the features in this tool, but this is not one of them as it can easily be defeated.

The other alternative is to drop the '0x' prefix and append that in the decoding function. Not as good after gzip, but still saves some space.

I wonder if there's any expressive difference after GZIPing it, since the repeating pattern '0x will be compressed the same way as 0x, so only one extra ' would be stored, theoretically..

If you are willing to support modern browsers, you could implement this with a proxy.
b('0xaf')  ---->    b.af


Caused by: java.util.concurrent.CompletionException: io.awspring.cloud.sqs.QueueAttributesResolvingException: Error resolving attributes for queue <queue_name>.fifo with strategy CREATE and queueAttributesNames []

Type: Bug
Component:
SQS
Describe the bug
using package io.awspring.cloud:spring-cloud-aws-sqs:3.2.1
and using @SqsListener(value = "queue-messages.fifo")
i'm getting exception:
Caused by: java.util.concurrent.CompletionException: io.awspring.cloud.sqs.QueueAttributesResolvingException: Error resolving attributes for queue queue-messages.fifo with strategy CREATE and queueAttributesNames []
.....
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncApiCallMetricCollectionStage.lambda$execute$0(AsyncApiCallMetricCollectionStage.java:56)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
at software.amazon.awssdk.core.internal.http.pipeline.stages.AsyncApiCallTimeoutTrackingStage.lambda$execute$2(AsyncApiCallTimeoutTrackingStage.java:67)
.....
Caused by: software.amazon.awssdk.services.sqs.model.SqsException: The action CreateQueue is not valid for this endpoint. (Service: Sqs, Status Code: 400, Request ID: <req_id>
)
Sample
@SqsListener(queueNames = {"queue-messages.fifo"})
public void handleMessage(QueueMessageEvent event) {

I Tought i did give a good code sample. but i'll explain again
To isolate the issue, I created a minimal reproducible example using version 3.2.1 of io.awspring.cloud:spring-cloud-aws-sqs.
Despite ensuring proper IAM permissions and confirming the existence of the FIFO queue (example-queue.fifo) in the correct region, the error persists when attempting to use the @SqsListener.
Here’s the reduced code sample that reproduces the issue:
pom.xml:
<dependency>     <groupId>io.awspring.cloud</groupId>     <artifactId>spring-cloud-aws-sqs</artifactId>     <version>3.2.1</version> </dependency>
listener class:
`import io.awspring.cloud.sqs.annotation.SqsListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class ExampleSqsListener {
@SqsListener(value = "example-queue.fifo" "example-queue.fifo", acknowledgementMode = "ALWAYS")
public void handleMessage(String message) {
    log.info("Received message: {}", message);
}

}`
error i got:
Caused by: java.util.concurrent.CompletionException: io.awspring.cloud.sqs.QueueAttributesResolvingException: Error resolving attributes for queue example-queue.fifo with strategy CREATE and queueAttributesNames [] ... Caused by: software.amazon.awssdk.services.sqs.model.SqsException:  The action CreateQueue is not valid for this endpoint.
The @SqsListener should connect to the specified FIFO queue (example-queue.fifo) and process messages without attempting to recreate the queue.
note: I noticed that when putting full SQS url in the @SqsListener(value = "https://sqs.eu-north-1.amazonaws.com//example-queue.fifo") it does connect successfully to queue and does not try to create queue


Having an issue getting pages to deploy

Checklist

I have read the newlest tutorials and know the correct effect of the functional design.

There is no similar question on existing issues (including closed ones).

I have tried to find the answer on Jekyll Forum and StackOverflow.

My question is based on the latest code of the main branch

Description
So i think i have everthing right so far in terms of install but when i got to push it will give me an error

please help ive been at this for hours
NOTE: IVE SOLVED THE ISSUE..

How did you fix this issue?


Add missing impl to EdgeIndex

NodeIndex in Graph has the following trait impl:
impl<Ix: IndexType> From<Ix> for NodeIndex<Ix> {
    fn from(ix: Ix) -> Self { NodeIndex(ix) }
}

This PR adds the same impl From<Ix> to EdgeIndex, which it did not have.

Thanks!


<EMAIL_ADDRESS>hash check failed

Hi!
Sorry for troubling, got such error.
Checking hash of ReduceMemory.zip ... ERROR Hash check failed!
App:         extras/reduce-memory
URL:         https://www.sordum.org/files/download/reduce-memory/ReduceMemory.zip
First bytes: 50 4B 03 04 14 00 00 00
Expected:    a19b1a785b6df280fc7c84c1f8703a74a9a773eb51cda9f2039e98d332a4e22f
Actual:<PHONE_NUMBER>d1817365b08fa86a808a794f5ef472720aa49a055217b6e0c8b0e7

Hi, I presented the same problem but with a different hash.
Checking hash of ReduceMemory.zip ... ERROR Hash check failed!
App:         extras/reduce-memory
URL:         https://www.sordum.org/files/download/reduce-memory/ReduceMemory.zip
First bytes: 50 4B 03 04 14 00 00 00
Expected:<PHONE_NUMBER>d1817365b08fa86a808a794f5ef472720aa49a055217b6e0c8b0e7
Actual:      ec7607f7f1721f372badf67d897a0932fce96418346e90a960d067fbbbfc024d
In the image you can see that when inserting the installation command it does not allow verifying the hash.

I do not know if it is OK to comment here or create a new issue.


Inconsistent documentation InformationService

Within the documentation on the main page it is written:
Information Service (information-service)
....
Limitations:
.....
 for record status it will always send HTTP code **200** (OK)

But  information/application.yaml says
      nested-responses:
        204:
          response:
            statusCode: **204**

Running actual Image deployment-1.0.8 repsonses with 204 and not 200

Hi @CEiderEVIDENT,
the documentation is updated with release version 1.0.12 - only the ReadMe wasn't updated accordingly after changing from 200 to 204 in previous API release.
--> https://github.com/gematik/epa-deployment/blob/main/README.md#information-service-information-service
Thanks for this finding and best regards,


Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Hi,
I got below error, any idea to pass value to c# funciton
Compiling nethost2 v0.1.0 ()
Finished dev [unoptimized + debuginfo] target(s) in 1.41s
Running target\debug\nethost2.exe
argLength 1
Hello, world! from Program [count: 1]
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.SpanHelpers.IndexOf(Char ByRef, Char, Int32)
at System.String.Ctor(Char*)
at System.Runtime.InteropServices.Marshal.PtrToStringUni(IntPtr)
at Test.Program.PrintLibArgs(LibArgs)
at Test.Program.Hello(IntPtr, Int32)
error: process didn't exit successfully: target\debug\nethost2.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Can you share your Rust and C# code?

It seems like you pass either a non null-terminated string or an utf8 string to Marshal.PtrToStringUni.

------rust code ------
pub fn foo() -> String {
"test".to_string()
}
fn main() ->  Result<(), Box > {
let test_out_dir = Path::new("H:\PUBLISH\net5\").absolutize()?;
let runtime_config_path = Path::join(&test_out_dir, "Test.runtimeconfig.json");
let assembly_path = Path::join(&test_out_dir, "Test.dll");
let hostfxr = nethost::load_hostfxr()?;
let context = hostfxr.initialize_for_runtime_config(PdCString::from_os_str(runtime_config_path)?)?;
let mut fn_loader = context.get_delegate_loader_for_assembly(PdCString::from_os_str(assembly_path)?)?;
let hello = fn_loader.get_function_pointer_with_default_signature(
    pdcstr!("Test.Program, Test"),
    pdcstr!("Hello"),
)?;
let pointer = foo as *const ();
let result = unsafe {
    hello(pointer, 1)
};
println!("result is {:?}", result);
Ok(())

}

---c# code---
[StructLayout(LayoutKind.Sequential)]
public struct LibArgs
{
public IntPtr Message;
}
public delegate int HelloFunc(IntPtr arg, int argLength);
public static int Hello(IntPtr arg, int argLengt) {
try
{
Console.WriteLine("argLength " + argLengt);
LibArgs libArgs = Marshal.PtrToStructure(arg);
Console.WriteLine($"Hello, world! from {nameof(Program)} [count: {s_CallCount++}]");
string message = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
? Marshal.PtrToStringUni(libArgs.Message) : Marshal.PtrToStringUTF8(libArgs.Message);
Console.WriteLine($"-- message: {message}");
CreateSpreadsheetWorkbook(@"formuploadtest22.xlsx");
Console.WriteLine("Hello from C#");
return 42;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message+ex.StackTrace);
return 99;
}
}

You are passing a pointer to the function foo instead of the String instance it returns. It should probably be foo().as_ptr() as *const ()

Thank you, kept struct for passing additional variables . Let me try, but foo().as_ptr() as *const (). didnt solve the issue

Thank you worked
`    let c_string = CString::new("testing something").expect("CString::new failed");
let ptr = c_string.into_raw();
let _pointer = ptr as *const ();
let result = unsafe {
    hello(_pointer, 1)
};

`

Thanks, Marshal.PtrToStringUTF8 and CString combination worked
let c_string = CString::new("testing something").expect("CString::new failed");
let ptr = c_string.into_raw();
let _pointer = ptr as *const ();

let result = unsafe {
    hello(_pointer, 1)
};

Beware that your current code never deallocates c_string.


Parser error

Hello.
I am getting this below error:
NameError: name 'parser' is not defined

Hi there,
I am continuing the issue from #2 here.
Could you please elaborate on the error you are facing? I just reran the parse.py script with the required arguments and it is working. Please be advised that the commands are for spAcy version 2.x. For other spAcy versions, the package benepar has the following recommendation:
`>>> import benepar, spacy

nlp = spacy.load('en_core_web_md')
if spacy.version.startswith('2'):
nlp.add_pipe(benepar.BeneparComponent("benepar_en3"))
else:
nlp.add_pipe("benepar", config={"model": "benepar_en3"})`

Hello Ady.
Thanks for your reply.
I have read the instructions and I am stuck in this step:
To extract parses for PororoSV:
python parse.py --dataset pororo --data_dir
what do you mean by the required arguments for parse.py script? is there anything I have to change?

The parser.py script has been written to read captions for the PororoSV dataset. It needs two arguments: the dataset name and the path to data directory. Are you using this script for PororoSV or some other dataset? If using for Pororo, you need to download the zipped directory available (here)[https://drive.google.com/file/d/1BqKizOZn4o4dbwNGK7ThCDnNEOVAolnf/view], unzip it, and add the path to the directory as a command line argument. If you're using the script for a different dataset, you will need to make some changes. If you have already made some changes and are facing error there, I can be of more help if you could share the modified script. Thank you.


can not set baudrate

when I set baudrate it does not work at all.

I have same issue when I attempt to set SerialPortConfig on Linux:
port.config.baudRate = 9600;

No such file or directory, errno = 2

When the exception was thrown, this was the stack:
#0      Util.call (package:libserialport/src/util.dart:39:7)
#1      _SerialPortImpl.config (package:libserialport/src/port.dart:335:12)
...

var config = SerialPortConfig();
config.baudRate = 9600;
port.config = config;

No such file or directory, errno = 2

When the exception was thrown, this was the stack:
#0      Util.call (package:libserialport/src/util.dart:39:7)
#1      _SerialPortImpl.config= (package:libserialport/src/port.dart:347:10)
...

Thanks @katyo for sharing that discovery. Setting the config after opening the port, solve my issue also. Great!

当我尝试SerialPortConfig在 Linux 上设置时，我遇到了同样的问题：
port.config.baudRate = 9600;

No such file or directory, errno = 2

When the exception was thrown, this was the stack:
#0      Util.call (package:libserialport/src/util.dart:39:7)
#1      _SerialPortImpl.config (package:libserialport/src/port.dart:335:12)
...

var config = SerialPortConfig();
config.baudRate = 9600;
port.config = config;

No such file or directory, errno = 2

When the exception was thrown, this was the stack:
#0      Util.call (package:libserialport/src/util.dart:39:7)
#1      _SerialPortImpl.config= (package:libserialport/src/port.dart:347:10)
...

UPD：正如我在libserialport示例中看到的，似乎应该在打开端口后设置配置。

thank you baby! I solve it! 太屌了

Hi, I may be late to answer to this, but thinking it will help others who end up at this problem.
The port.config needs to be set only after opening the port.
  SerialPort port = SerialPort(availablePorts[widget.comPort]);

  final portconfig = SerialPortConfig();
  portconfig.baudRate = 115200;

  SerialPortReader reader = SerialPortReader(port, timeout: 10000);

  port.openReadWrite();
  port.config = portconfig;

Thanks @VinayakaKS I'll check it further to avoid issues when config is set before opening

That's weird, but it indeed works if setting config takes place after .openReadWrite(), not before.


Block edge 4.4.27

4.4.27 needs to be disabled:
3 clusters currently failing (14%),  4 gone (18%),and 12 successful (55%), out of 22 who attempted the update over 7d
Currently failing classification:
* API crashlooping: 1
* Slow etcd: 1
* Untriaged: 1
* Version retarget: 1

4.4.27 can be enabled again:
1 clusters currently failing ( 5%),  4 gone (19%),and 15 successful (71%), out of 21 who attempted the update over 7d
Currently failing classification:
* Untriaged: 1


Add xboinc and Update docker file

Add xboine and Update docker

Add xboinc and Update docker file , on test_sh.yaml and manual_test_sh.yaml
Checklist
Mandatory:

I have added tests to cover my changes
All the tests are passing, including my new ones

Close in favour of #527


Silkscreen labels swapped on SCL and SDA testpoints

Originally reported by martinr on Discord, confirmed in KiCad:

@esden - a candidate for revC3...

Fixed in wip-revC3-hardware branch

Fixed in wip-revC3-hardware branch


refresh token support

There is currently no way set the Application Refresh Token Behavior

Thanks for the request. This would need to be implemented upstream.

By implmented upstream you mean? https://github.com/alexkappa/terraform-provider-auth0/releases as this was added in v0.13.0

Thanks for pointing that out. In that case, it should get picked up the next time we update this provider, which should be in the next few days.

I need this too. "rotating" refresh tokens are recommended for native apps

@leezen could you provide an update on when a new version will be published?
This would be really helpful for the full-stack generator I'm working on which uses Pulumi to manage infra, create full stack. This tool will make it easier for developers to use Pulumi


Improvement suggestion sent to APS

Hi all
FYI, I have sent this mail to APSystem, hopping they will improve the local web site on ECU-C to read more frequently and easily last Produced/Consumed Power from CT Clamp.
Hopping this does not interfere with ksheumaker action plans, otherwise sorry for that.
BR

Hello
Please forward this mail to the R&D department or Product Improvement department of DS3/ECU-C products.
I am an IT engineer and I have 18 DS3 inverters and an ECU-C with two CT clamps, all supervised by Home Assistant.
I can understand that for the DS3 production readings you limit the refresh period to 5 minutes (many inverters connected in Zigbee which is not very quick), but for the clamps I do not see why you do not lower this period to one minute as it is a simple Analog to Digital conversion. This would would allow me/Home Assistant to adjust more quickly my consumption in case of production drop or increase.
In addition, it would be good to have in the local APSystem web application in the Advanced/Power page, directly the 9 values :Produced A/B/C, Consumed A/B/C and Imported A/B/C provided by the clamps in addition to the curve.
This would allow Home Assistant to simply read these values (by web scraping for example) rather than having to look for the last points in the curves.
I hope I have been clear in my requests and that you will respond favorably as part of the continuous improvement of your products and services.
Do not hesitate to contact me if necessary.
Kind regards

HI all,
Believe me or not, I haven't got any answer from APS despite this message sent 3 times to 3 APS locations worldwide ;-))
Dear  @ksheumaker, if you agree with my improvement suggestions and if you have connections with APS staff / research & Dev teams, could you please forward them this message again please?
Kind regards
Renaud

I do not have connections with APS staff in fact APsystems seems not open at all for suggestions like providing release notes when new firmware is released. I tried in the past but also failed, I hope someday they improve the company policy on this issue.


prisma generate stack overflow on a large schema

Bug description
As per this discussion: https://github.com/prisma/prisma/discussions/3047 reported by @Yawaiaung001:
prisma generate hangs or gives a stack overflow error due to quite a large schema: schema.prisma.zip
Output of prisma generate with DEBUG=* enabled:
$ prisma generate
  prisma Environment variables not loaded +0ms
  engineCommands getDMMF failed Error: Command was killed with SIGABRT (Aborted): /private/tmp/overflow/node_modules/@prisma/cli/query-engine-darwin --enable-experimental=connectOrCreate,transaction,aggregations,distinct --enable-raw-queries cli dmmf

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
    at o (/private/tmp/overflow/node_modules/@prisma/cli/build/index.js:2:1321642)
    at C (/private/tmp/overflow/node_modules/@prisma/cli/build/index.js:2:847685)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  shortMessage: 'Command was killed with SIGABRT (Aborted): /private/tmp/overflow/node_modules/@prisma/cli/query-engine-darwin --enable-experimental=connectOrCreate,transaction,aggregations,distinct --enable-raw-queries cli dmmf',
  command: '/private/tmp/overflow/node_modules/@prisma/cli/query-engine-darwin --enable-experimental=connectOrCreate,transaction,aggregations,distinct --enable-raw-queries cli dmmf',
  exitCode: undefined,
  signal: 'SIGABRT',
  signalDescription: 'Aborted',
  stdout: '',
  stderr: '\n' +
    "thread 'main' has overflowed its stack\n" +
    'fatal runtime error: stack overflow',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
} +0ms
Error: Error: Schema parsing

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
    at Object.<anonymous> (/private/tmp/overflow/node_modules/@prisma/cli/build/index.js:2:1684516)
    at Generator.throw (<anonymous>)
    at rejected (/private/tmp/overflow/node_modules/@prisma/cli/build/index.js:2:1681132)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Environment & setup

OS: Mac OS
Database: PostgreSQL, SQLite
Prisma version: 2.3.0
Node.js version: 12.18.2

Preliminary investigations:

The schema is nearly 11.000 lines long
On my machine, the query engine is able to generate DMMF. The resulting JSON is 545MB.
Using ulimit -s to limit the stack size to half the default — so 4MB — I do get a stack overflow.
At 6MB, we already do not overflow the stack anymore.

Current status: see PR description of https://github.com/prisma/prisma-engines/pull/966

Update: we decided we will attempt a refactoring to eliminate deep recursion in DMMF generation.

Getting a similar error on prisma generate when introspecting a specific schema on Windows: https://github.com/prisma/introspection-ci/blob/b64cdb3a8df6ba0fd5415489182475087cc316c2/introspection-analysis/commands/mysql_127.txt#L39
C:\Users\Jan\Documents\throwaway\studioSchemaTest
λ prisma introspect --url=mysql://prisma:...@mysql-introspection-academic.cg7tbvsdqlrs.eu-central-1.rds.amazonaws.com:3306/Mooney_Family
Introspecting …
✔ Introspected 68 models and wrote them into schema.prisma in 527ms
Run prisma generate to generate Prisma Client.

C:\Users\Jan\Documents\throwaway\studioSchemaTest
λ prisma studio --experimental
Generating Prisma Client ...   engineCommands getDMMF failed Error: Command failed with exit code<PHONE_NUMBER><EMAIL_ADDRESS>--enable-experimental=aggregations --enable-raw-queries cli dmmf
thread 'main' has overflowed its stack
    at o (C:\ProgramData\nvm\v12.6.0\node_modules\@prisma\cli\build\index.js:2:1321642)
    at C (C:\ProgramData\nvm\v12.6.0\node_modules\@prisma\cli\build\index.js:2:847685)
    at processTicksAndRejections (internal/process/task_queues.js:85:5) {
  shortMessage: 'Command failed with exit code<PHONE_NUMBER><EMAIL_ADDRESS>--enable-experimental=aggregations --enable-raw-queries cli dmmf',
  command<EMAIL_ADDRESS>--enable-experimental=aggregations --enable-raw-queries cli dmmf',
  exitCode:<PHONE_NUMBER>,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: "\nthread 'main' has overflowed its stack",
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
} +0ms
Failed to generate Prisma Client: Error: Schema parsing
thread 'main' has overflowed its stack
    at Object.<anonymous> (C:\ProgramData\nvm\v12.6.0\node_modules\@prisma\cli\build\index.js:2:1477785)
    at Generator.throw (<anonymous>)
    at rejected (C:\ProgramData\nvm\v12.6.0\node_modules\@prisma\cli\build\index.js:2:1474451)
    at processTicksAndRejections (internal/process/task_queues.js:85:5)

C:\Users\Jan\Documents\throwaway\studioSchemaTest
λ prisma generate
Error: Schema parsing
thread 'main' has overflowed its stack

(Discovered when testing Studio for @madebysid)

Update on this: we overflow the stack already at the schema builder level, so the query engine can't even start with this schema. I am exploring non-intrusive refactoring options to fix this.

WIP pull request to address this: https://github.com/prisma/prisma-engines/pull/1000

We ran generate on all platforms in https://github.com/prisma/introspection-ci/pull/316
We found 3 instances of thread 'main' has overflowed its stack on windows in

mysql/magento
postgresql/canvas-lms
postgresql/odoo

Analysis here: https://github.com/prisma/introspection-ci/issues/309#issuecomment-674075918


Incorrect role as checkbox is announced for 'Manage Extension' button in "More Actions..." in notification popup.

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

VS Code Version: 1.85.2
OS Version: Windows 11 Enterprise (Windows_NT x64 10.0.22631.3007)

Version: 1.85.2 (user setup)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:10.514Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22631

Description
We are building a VS Code extension. During the accessibility test, when tester exam against our error message, which leverages the notification of VS Code, tester found a problem that the role of "Manage Extension" button in "More Actions..." is checkbox. But it is clearly a button. So I think VS Code may have a wrong role defined there.
Steps to Reproduce:

Trigger an error notification.
Expand the notification to have access to the gear icon "More Actions..."
Enable Narrator
Use keyboard navigation to open "More Actions..."
Listen to Narrator announcing the wrong role of "Manage Extension" button in the dropdown.

https://github.com/microsoft/vscode/assets/5415452/e1e0e648-a2ea-42e3-bf2d-1d5252a2b576

Please do not test using Narrator. Please try to reproduce the issue using JAWS or NVDA

Our tester specified that "Same issue is also replicating with NVDA."

What a great catch. Turns out, we have places where we set checked: false when we should set checked: undefined for menu items. Setting to false will treat the item as if it is capable of being checked 🤯

#A11yMAS; #A11yTCS; #DesktopApp; #Win32; #Visual Studio Code Client; #BM-VisualStudioCodeClient-Win32-Aug2023; #WCAG4.1.2; #Name Role Value; #AILimited;
Primary Bug ID : https://microsoft.visualstudio.com/Xbox/_workitems/edit/48296031

#A11yMAS; #A11yTCS; #DesktopApp; #Win32; #Visual Studio Code Client; #BM-VisualStudioCodeClient-Win32-Aug2023; #WCAG4.1.2; #Name Role Value;

This bug has been fixed in the latest release of VS Code Insiders!
@miniwangdali, you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 442c133fe92b5e2606c8242caae4e68938faccc7 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Happy Coding!

/verified in VS Code 1.87.0-insider.
Version: 1.87.0-insider (user setup)
Commit: ec291c126878742ad640055ce604a58129cd088c
Date: 2024-02-05T05:46:55.122Z
Electron: 27.2.3
ElectronBuildId: 26495564
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22631


why false when user mathjax in node

import mathjax from 'mathjax'
.....
      mathjax.init({
        loader: {
          load: ['input/tex'],
        }
      })
        .then(mj => {
          if (!mj) {
            reject(`mathjax instance is undefined.`)
          } else {
            mj.tex2mmlPromise(math).then(mml => resolve(mml))
          }
        })
        .catch(err => reject(err.message))

will report error:  mathjax instance is undefined.
i was using nuxt3.   it is ok on local, but error on vercel. i don't know why?

@dpvc  could you help me? thanks a lot!!!

Using MathJax in a browser versus in a server-side node application has some differences, and the mechanism you are using (importing mathjax and calling mathjax.init()) is set up as a quick way to get MathJax running in a command-line node application, but is not set up for browser use.  The "note" at the bottom of this section of the MathJax README file points this out.
To use MathJax in a browser you could import one of the MathJax combined components (e.g., 'tex-chtml.js'), which is set up for browser use, and then call the global variable MathJax.tex2mmlPromise() method.  Or you can look at the examples in the MathJax node demos repository for examples of other ways to call MathJax.  For example, the "components" directory shows how to load component-based MathJax files, and the "direct" directory shows how to import that MathJax modules directly.
For the component examples, you would want to leave out the source and require properties in the loader block of the configuration, and remove the adaptors/LiteDOM from the load array.  The "preload" directory might also be a good place to start.
You can also look at the the custom-component example in the MathJax web demos repository for an example of loading MathJax components into a custom application setting.


TypeScript Syntax Theme Colors Incorrect

VSCode Version: 1.17
OS Version: macOS 10.13
Steps to Reproduce:

Open a new file with vscode
Set the language to typescript
Paste the following:

let i = 0;

function shouldBeThisColor() {

}

while(i++ < 12) { }

function butImThisColor() {

}

Go through a few different themes to see the issue.

Both functions should have the same colors applied to them but don't. I think it has something to do with the i++ < 12 line.

Duplicate of https://github.com/Microsoft/TypeScript-TmLanguage/issues/526


Kubernetes config scrape node via api proxy

Since Kubernetes / GKE 1.6 RBAC is available and in some setups the only way to authenticate towards the Kubernetes API. In order to give Prometheus access to the appropriate parts of the API the rbac-setup.yml file shows how to do this. To apply this manifest you need to be authenticated as a kubectl user with cluster admin rights.
At the same time RBAC was introduced GKE disallowed anonymous access to the Kubelet /metrics endpoint. The only way to authenticate in the future is with client side certificates, not with RBAC; other distributions do use RBAC for the Kubelet, but GKE doesn't and will not.
Instead of client side certificates that might not work for all Kubernetes 'distributions' scraping the node metrics through the API node proxy will work for any Kubernetes setup. The kubernetes example config is updated to use this method.

FWIW I just pulled the changes out of this and applied it to my own helm chart. Worked wonderfully. Thanks for your work @JorritSalverda!

@matthiasr About more documentation to make the RBAC related items more clear: in my own setup I have a single yaml file with all Kubernetes manifests required to set up a single Prometheus instance in Kubernetes. This includes a ConfigMap for the configuration of Prometheus itself - like the config in this example - and things like the RBAC setup and use of a dedicated ServiceAccount. A bit like Helm, but then to be used with envsubst and kubectl apply.
Would it perhaps make sense to add a file like that instead of just the config example and the rbac setup for any prospect users of Prometheus on Kubernetes? Although it runs the risk of being slightly more opinionated on how it runs on Kubernetes and still lacks a proper HA setup you would want for your production environment.

@JorritSalverda for running a fully-fledged Prometheus setup on Kubernetes I'd refer to the Prometheus operator instead – but I see the documentation here as a starting point for people who need something else; I don't expect it to be complete but providing an RBAC file to start out from would help a lot in that case.
(sorry for the delay, I was on vacation for a while)


Appstudio update test-component-pac-ynfa

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-ynfa-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
9 seconds
appstudio-init

✅ Succeeded
15 seconds
clone-repository

✅ Succeeded
17 seconds
appstudio-configure-build

✅ Succeeded
17 seconds
sast-snyk-check

✅ Succeeded
34 seconds
build-container

✅ Succeeded
19 seconds
sanity-inspect-image

✅ Succeeded
11 seconds
clair-scan

✅ Succeeded
19 seconds
deprecated-base-image-check

✅ Succeeded
42 seconds
clamav-scan

✅ Succeeded
21 seconds
sbom-json-check

✅ Succeeded
10 seconds
sanity-optional-label-check

✅ Succeeded
9 seconds
sanity-label-check

✅ Succeeded
6 seconds
show-summary


Github webhook stopped working, resync fails

Details

Project URL: http://adafruit-beaglebone-io-python.readthedocs.io
Build URL: https://readthedocs.org/projects/adafruit-beaglebone-io-python/builds/
Read the Docs username: dplanella
Upstream: https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/docs/index.rst

Expected Result

Documentation is automatically built upon an upstream git commit
The latest tags are pulled as a result and can be enabled for documentation builds in the readthedocs admin interface

Actual Result
Both points above used to work until about two months ago. Since then, despite multiple commits at the upstream project, the documentation is neither automatically built nor are the latest upstream tags pulled.
Resyncing the Github hook results in a "Fail.  Check back in a bit!" message. No matter how long the wait and how many retries, the error does not get fixed:
https://readthedocs.org/dashboard/adafruit-beaglebone-io-python/integrations/19437/sync/

@dplanella Hi! I think that I found the issue with this and I opened a PR at #3931 that I suppose that should fix the issue.
Can you check if you have a RTD webhook enabled under https://github.com/adafruit/adafruit-beaglebone-io-python/settings/hooks?
Also, can you check that you have an Integration under https://readthedocs.org/dashboard/adafruit-beaglebone-io-python/integrations/? (please, do not remove it since there is another issue with that: #3932)

Closing this as the user hasn't responded or given more information, feel free to reopen with more information if you are still having this problem :).
Also https://github.com/rtfd/readthedocs.org/issues/3931 was resolved. And I can't replicate the problem in my account.

@humitos sorry for the delay, I hadn't noticed the bug had had a reply after all those months. Thanks a lot for looking at this.
To your questions:

Can you check if you have a RTD webhook enabled under https://github.com/adafruit/adafruit-beaglebone-io-python/settings/hooks?

There is not such a directory in the code. The webhook used to work without it, before it broke.

Also, can you check that you have an Integration under https://readthedocs.org/dashboard/adafruit-beaglebone-io-python/integrations/?

I do have a "GitHub incoming webhook" integration in there. That was the non-working one I was referring to in the initial bug post. The good news is, that when I now click on it and then at "Resync webhook", I no longer get the error message.
However, the sync history says that the last sync was 7 months ago (see screenshot below). I was expecting the sync to happen automatically. Is there anything else I should do on my side to get the syncs back to work?

@dplanella I can not seem to access https://github.com/adafruit/adafruit-beaglebone-io-python/settings/hooks so I have asked @ladyada, @tdicola and @tannewt to check if they have permissions to do so

@pdp7 hi yep here's the current hooks

what do you want added?

@dplanella Do you know what webhook should be added to adafruit-beaglebone-io-python?

@pdp7 Thanks for the update!


net/wireguard: API breaking change in opnsense 23.7.8 (wireguard 2.5) release

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[x] The title contains the plugin to which this issue belongs

Describe the bug
On OPNsense 23.7.7, a request to /wireguard/client/addClient returned an object that contained both the result ("saved") and the uuid of the just-created client. On OPNsense 23.7.8, the uuid is no longer returned, only the "result".
Previously:
{
    "result": "saved",
    "uuid": "1c78ed78-141a-4ea3-a21e-12291af7d654"
}

Now:
{
    "result": "saved"
}

API clients can retrieve the uuid by requesting the list of clients and finding the name+pubkey of the just-added client, but it would reduce necessary requests if addClient could return the uuid like it used to.
To Reproduce
Steps to reproduce the behavior:

POST to /api/wireguard/client/addClient with an appropriate body, e.g.: {"client":{"name":"parnic","pubkey":"my-obviously-valid-pubkey","tunneladdress":"<IP_ADDRESS>/32"}}
See response missing uuid

Expected behavior
The uuid of the just-added client is returned in order to be used with other APIs that require the uuid as a parameter.
Environment
OPNsense 23.7.8-amd64
FreeBSD 13.2-RELEASE-p5
OpenSSL 1.1.1w 11 Sep 2023
Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz (1 cores, 2 threads)

https://github.com/opnsense/plugins/commit/47ccdcc078f7a58432a7cf1350ec9700863416cb should fix this.


add IObit.Unlocker

Microsoft Reviewers: Open in CodeFlow

@KevinLaMS You were assigned to my other pull request, so I mentioned you here.  I'm not sure what's going on with this one, but it's been running for almost 24 hours straight.  I think the process should have errored or succeeded by now.

/AzurePipelines run

/AzurePipelines run

@KevinLaMS So this runs fine locally, just hangs in the automated process?  Any ideas on how we push this through?

/AzurePipelines run

/AzurePipelines run

/AzurePipelines run