VSCode is extremely laggy

Type: Performance Issue
Load my project in vscode with all extensions disabled. Clicking around a single file results in latency between 500ms and 1s.
VS Code version: Code 1.80.1 (Universal) (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:20:23.298Z)
OS version: Darwin arm64 22.5.0
Modes:

System Info

Item
Value

CPUs
Apple M1 (8 x 24)

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

Load (avg)
3, 3, 2

Memory (System)
16.00GB (0.11GB free)

Process Argv

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
   84	   279	 24831	code main
    2	    82	 24833	   gpu-process
    0	    16	 24834	   utility-network-service
    0	   377	 24836	window [1] (~[Media Editor V2]~ — tailwind.config.js — Untitled (Workspace))
    0	    16	 24853	ptyHost
    1	    49	 24854	shared-process
    0	     0	 29477	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	   426	 28615	   window
    0	    33	 28623	   utility-process
    0	    66	 28735	extensionHost [1]
    0	    33	 28737	     electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/markdown-language-features/server/dist/node/workerMain --node-ipc --clientProcessId=28735)
    0	    49	 28798	     electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Users/rome/Code/moat.sh/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /var/folders/kd/22cnlybj6sqc8n2wf4r8t13h0000gn/T/vscode-typescript501/92a194e9152f378fa41c/tscancellation-fb394809e0395664a8b8.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc)
    0	   147	 28799	     electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node --max-old-space-size=3072 /Users/rome/Code/moat.sh/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/kd/22cnlybj6sqc8n2wf4r8t13h0000gn/T/vscode-typescript501/92a194e9152f378fa41c/tscancellation-ce7a441bfafbee00f04a.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc)
    0	    33	 28803	       electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/rome/Code/moat.sh/node_modules/typescript/lib/typingsInstaller.js --globalTypingsCacheLocation /Users/rome/Library/Caches/typescript/5.2 --enableTelemetry --typesMapLocation /Users/rome/Code/moat.sh/node_modules/typescript/lib/typesMap.json --validateDefaultNpmLocation)
    0	    33	 28736	fileWatcher [1]
    2	    98	 29468	window [5] (Issue Reporter)

Workspace Info
|  Window (tailwind.config.js — Untitled (Workspace))
|    Folder (moat.sh): 2849 files
|      File types: json(677) md(524) ts(225) js(189) vue(150) png(118)
|                  DS_Store(72) jpg(24) mjs(22) map(20)
|      Conf files: tsconfig.json(2) package.json(2) github-actions(1)
|                  settings.json(1);

Extensions: none

Video example (I tried attaching the performance but github is not accepting the file type)
https://github.com/microsoft/vscode/assets/12685308/44cf077a-deb6-4ae4-aa82-70002442ba09

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.82.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

@francisashley can u also share a video of realtime ram,  disk usage when u open up an empty and then this workspace.

@Nasfame based on the feedback from VSCodeTriggerBot I upgraded to the latest version 1.80 > 1.82 and performance seams immediate again. It can be temperemantal so i'll leave it a bit. I'm not sure what you mean by leaving out npm-scripts, i don't have an extension called that. i believe in the screen recording the similarly named panel is native to vscode. before recording and posting this I disabled all extensions via Disable all extensions option and reloaded the app. I also generated this issue from vscode's in-app error reporting feature which automatically populates contextual info. you can see the extensions section reported Extensions: none.

I m curious : whats consuming the ram only 0.1 GB free of 16GB

The recorded profile actually doesn't show blocking tasks, so it might have been very well a background process or something else.
Also, it is sufficient to just record a couple of seconds for profiling, as it should show blocking tasks immediately.
I'll close this issue, as it doesn't reproduce and might have been caused by other processes.


feat : #[inline(always)]

i think this one also in compiler v2.x syntax, good to add explanation for this syntax :)

it duplicate to #268


fix ValueError in share_memory func (#23)

This pull request addresses issue #23. I encountered the same error in the share_memory function when using Python 3.10. The error occurs due to incompatible shapes during the comparison of x.base and y.base.
To fix this, I added a shape compatibility check before performing the base comparison. If the shapes are incompatible, the function now safely returns False without attempting the comparison. This prevents the ValueError and ensures the function works correctly across different environments.

Thanks! Should "ret = x.base is y.base" be "ret = (x.base == y.base)"?

Thanks! Should "ret = x.base is y.base" be "ret = (x.base == y.base)"?

Yep! I didn't consider the issue with element-wise comparison of numpy arrays. It has been fixed and submitted.


Pagination and table styling

As a user/teacher, I want to view and interact with tables that follow a consistent style and include pagination, so that I can easily navigate large data sets and access the information I need.
Acceptance critera

Definition of "data set gets too big" is defined
Pagination is displayed below the table and allows users to navigate between pages.
Tables across all pages are consistent in structure and functionality.
Alternate row colors and hover effects improve readability and interactivity (implementation details to follow style guide).

Tasks
Tables

Update table stylings to match on every page and follow style guide:
Headers: Use primary color text and bold font for clarity.
Rows: Alternate light gray background (#F9F9F9) to improve readability.
Hover Effect: Slight background change on row hover to indicate interactivity.
Add delete buttons for every table row so admin can delete results (on Results page and Change User page on result tables):
Alert Button (for delete actions):
Background: Accent color (#FF5722)
Text: White
Hover: Darker shade of accent color (#E64A19)

Pagination

Add pagination to table views on Results and Change user pages.

Remove the scroll bars

Pagination controls should include page numbers and Next, Previous, First, and Last buttons.
Style: Primary color for active pages, gray for inactive.
Font: Roboto
Size: Follow style guide.
Position: Below the table, centered horizontally.

Add to the style guide under "Navigation."

[x] mobile

[x] computer

I am making components for the tables while styling and adding pagination to them.

Dekstop tables are done and implemented. The Add student, Add teachers and Add results tables were only screenshots of examples for the user to follow, so I just made them bigger to fit the grid. I have not considered the layout carefully when placing the tables, as I understand that another team will taking care of this for all pages.

Parent ticket #88

I have now finished and implemented all mobile tables. I did some minor prototyping just to so the tables can be scrolled horizontally when in presentation view.

Closing this task again as the changes has its own task: https://github.com/NoroffFEU/edu-gate/issues/131


Roll Flutter Engine from 76a1c64f4e63 to 0f95d2d103f0 (3 revisions)

https://github.com/flutter/engine/compare/76a1c64f4e63...0f95d2d103f0
2024-08-14<EMAIL_ADDRESS>Roll Fuchsia Test Scripts from J1EXQ2ozMIQEa6F7H... to -XDS8eBA0Le-zCEfW... (flutter/engine#54561)
2024-08-14<EMAIL_ADDRESS>macOS: Refactor create_macos_framework.py (flutter/engine#54557)
2024-08-14<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from MeV5i7xXXFPHF5sBK... to qpfC-GAVZvOwAQU5f... (flutter/engine#54559)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from MeV5i7xXXFPH to qpfC-GAVZvOw
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


v6.0.0 BREAKING CHANGES

Hi, Just wanted to drop a quick question about the recent updates – noticed my go-to extension isn't kicking in anymore (along with probably another 2 million users). No rush, but any chance you could shed some light on the reasons behind such changes ?
Had to do a little morning tech detective work instead of jumping into work right away.
Thanks a bunch!

@iliareshetov I was afraid of that. The issue was making the extension compatible with Prettier 3. Prettier 3 added a dynamic import() in its .cjs file, making ESM support required. VS Code only supports CommonJS (CJS) however. VSCode extensions can use worker_threads and a Worker can execute import().
When implemented the worker_threads, I tried bundling prettier-eslint with the worker.mjs but couldn't get it to work.
I'm thinking there are two options.

Revert my changes and make the Prettier 3.0 version be the a pre-release version. Eventually though the pre-release version will need to be made the official version.
Put the breaking changes notification (making the title caps and adding emojis) at the very top of the extension page and README pages.

What are your thoughts?

Worth noting that even with Prettier 3, 6.0.0 broke support for Yarn PnP using nodeLinker: pnp. I'm getting Error: Cannot find module 'prettier-eslint' on a fresh TS project with all the setup and troubleshooting instructions on the repo's README.

@moselhy You can go back to 5.1.0 if you need. You just need to go to the Extension page in VS Code and click the arrow next to Uninstall. Select Install another version and chose 5.1.0.

@idahogurl Thank you for the prompt response and detailed explanation. 👍
I lean towards option 2 as it provides users with upfront information, helping them make informed decisions about their workflow.
Personally, I had to roll back to version 5.1.0 as the only practical solution for the time being, and I'm sure I'm not alone.

The problem is that our entire team uses this plugin and our workflow was broken by VSCode auto-updating to the latest version.
I think a prerelease version (option 1) makes sense until it can be made to work with older versions and anyone can auto-update without worry.
Another option might be to create another extension and publish it as "For prettier 2" or something. Copy everything from the latest 5.x release and just keep that plugin out there as the old version, and keep your main one (with all the users) on the latest.


Importing/Exporting of Aliases.

Import export is available for Aliases.
Only custom aliases get exported.
Aliases are categorized into IsManaged(autoroute aliases...) and not IsManaged(custom aliases).
In the Alias UI in admin, the IsManaged field is visible.
Edit/Delete only available on the custom Aliases in UI.
Filter option added to UI, enabling the user to choose, all, managed or custom aliases in the list.
Admin UI list is ordered by Path.

Hi @mahsaro, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@mahsaro, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, DNFBOT;


feat: add network policies reference

Fixes fl-1580

Can you move your content to another file and include it in the index (Cf https://github.com/Substra/substra-documentation/pull/424)


GWEN does not support attributes in examples table for scenario outline

Feature file to reproduce
Feature: Exmaple Scenario with attribute

Scenario: Initialisation
And counter is "1"

Scenatio Outline: Exmaple Scenario with attribute
And value is "<AttributeValue>"

Examples:
|AttributeValue  |
|${counter}      |

On executing such a example table which contains an attribute GWEN throws below error;
ERROR - No group with name {counter}
Env Details
Gwen Version - 2.53
Chrome Driver - Latest (92)

Verified on latest release - gwen 2.53.3


Variable used before definition

Environment data

VS Code version: 1.29.1 (1.29.1)
Extension version (available under the Extensions sidebar): 2018.11.0
OS and version: macOS Mojave 10.14.1 (18B75)
Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.1 64-bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions: -

Expected behaviour
When running provided code snippet there should be no warning.
from typing import Dict

fallbackName: Dict[str, str] = {"firstName": "First", "lastName": "Last"}

NAME = " ".join(str(x) for x in fallbackName.values())

print(f"Hi, {NAME}!")

Actual behaviour
A warning is generated: 'fallbackName' used before definition
{
	"resource": "/Users/_____/Projects/python/sandbox/index.py",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "use-before-def",
	"severity": 4,
	"message": "'fallbackName' used before definition",
	"source": "Python",
	"startLineNumber": 5,
	"startColumn": 33,
	"endLineNumber": 5,
	"endColumn": 45
}

Additional Info
This does not happen when type hinting is removed:
FALLBACK_NAME = {"first_name": "First", "last_name": "Last"}

NAME = " ".join(str(x) for x in FALLBACK_NAME.values())

print(f"Hi, {NAME}!")

Steps to reproduce:

Create a new project, python3 -m venv new/venv.
Insert code into new/index.py.
Lint.

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Starting Microsoft Python language server.
Microsoft Python Language Server version <IP_ADDRESS>
Initializing for /Users/_____/Projects/python/sandbox/venv/bin/python
##########Linting Output - prospector##########
{
  "summary": {
    "started": "2018-12-08 12:13:01.666245",
    "libraries": [],
    "strictness": "from profile",
    "profiles": ".prospector.yaml, full_pep8, doc_warnings, strictness_veryhigh, no_member_warnings",
    "tools": [
      "dodgy",
      "mccabe",
      "mypy",
      "pep257",
      "pep8",
      "profile-validator",
      "pyflakes",
      "pylint"
    ],
    "message_count": 0,
    "completed": "2018-12-08 12:13:02.171521",
    "time_taken": "0.51",
    "formatter": "json"
  },
  "messages": []
}

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
 INFO no standard startup: not a new window
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: {"$mid":1,"fsPath":"/Users/_____/Projects/python/sandbox","external":"file:///Users/_____/Projects/python/sandbox","path":"/Users/_____/Projects/python/sandbox","scheme":"file"}, Return Value:
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: {"$mid":1,"fsPath":"/Users/_____/Projects/python/sandbox","external":"file:///Users/_____/Projects/python/sandbox","path":"/Users/_____/Projects/python/sandbox","scheme":"file"}, Return Value: UNABLE TO DETERMINE VALUE
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: undefined, Return Value:
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: undefined, Return Value: UNABLE TO DETERMINE VALUE
console.ts:134 [Extension Host] Python Extension: Get language server folder name, , Return Value: "languageServer.0.1.66"
6console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:

@yehorb Could you create a minimal Github repo with a reproducible error? It will help a lot in fixing this issue.
In my case, this happens because of typing.

I'm encountering a very similar problem with class variable type annotations.

class TestClass:
    instance_var: str

    def __init__(self) -> None:
        self.instance_var = ""

produces
{
	"owner": "_generated_diagnostic_collection_name_#1",
	"code": "use-before-def",
	"severity": 4,
	"message": "'instance_var' used before definition",
	"source": "Python",
	"startLineNumber": 2,
	"startColumn": 5,
	"endLineNumber": 2,
	"endColumn": 17
}

By adding a typed class variable, the error disappears (no problems are detected):
from typing import ClassVar

class TestClass:
    instance_var: str
    class_var: ClassVar[int] = 0

    def __init__(self) -> None:
        self.instance_var = ""

Omitting the type annotation on the class variable will cause the previous error on the instance variable to show up again:
class TestClass:
    instance_var: str
    class_var = 0

    def __init__(self) -> None:
        self.instance_var = ""

produces
{
	"owner": "_generated_diagnostic_collection_name_#1",
	"code": "use-before-def",
	"severity": 4,
	"message": "'instance_var' used before definition",
	"source": "Python",
	"startLineNumber": 2,
	"startColumn": 5,
	"endLineNumber": 2,
	"endColumn": 17
}

VS Code version: 1.31.0
Extension version (available under the Extensions sidebar): 2019.1.0
OS and version: Windows 10 1803
Python version (& distribution if applicable, e.g. Anaconda): CPython 3.7.0
Python Language Server version: 0.1.78

Having a similar issue... It's really frustrating.

Doing some very basic DRF stuff with django rest and these things keep popping up :(

I'm also having the same issue but with dataclasses. Every attribute gets unterlined with a use-before-def message.

Interestingly, assigning a default value makes the Language Server stop complaning:

@phwh reported in https://github.com/Microsoft/python-language-server/issues/399 .

If an even more minimal example would help:
test: list = [1, 2]

a = [2*i for i in test]

@millsyman please report on the upstream issue.

Original issue is fixed upstream (https://github.com/microsoft/python-language-server/issues/475)


New Postcard for UI Contributions

I am beginning to work with David Radley on updating the UI. In accordance with this, I am creating an issue and submitting a PR to familiarize myself with the Egeria process.

Actually ended up editing the UI ReadMe instead of creating Postcard.


Add find references support for constants

Motivation
Closes #202
With the same infrastructure added in #2626, we can easily support finding constant references. Instead of building an array of text edits, we just return an array of locations.
Implementation
The idea is to use the same reference finder implementation and then return all of the hits back as locations.
I also had to fix a small duplication issue to be able to respect the LSP spec's includeDeclaration parameter.
Automated Tests
Added tests.

The issue was related to not finding a target. I fixed it in the latest push.


[FEA] Audit FileSourceScanExec

Is your feature request related to a problem? Please describe.

Ensure Spark and Rapids plugin version of the exec match functionality.

Verify Config specific to the operator match.

Verify API is consistent and fully translated.

Port relevant tests.

Ensure Spark and Rapids plugin version of the exec match functionality.
Yes. They do.

Verify Config specific to the operator match.
Matches.

Verify API is consistent and fully translated.
Yes it is.

Port relevant tests.
Needs to be addressed thru https://github.com/NVIDIA/spark-rapids/issues/147 as part of this work.


Error message "Process being used by another process"

I have InsertDate installed in ST3 under Windows.  It was working when I first installed it about 6 months ago.   Now when I hit F5 to use the plugin nothing happens.
When I look for the User Settings (to try and reassign the hotkey) there is no entry for InsertDate under Package Settings menu.  There are no entries for InsertDate under the Package Control menus either.
When I try and Remove Package to uninstall and reinstall - I get the following error:
Package Control: An error occcurred while trying to remove the installed
package file for InsertDate.

[WinError 32] The process cannot access the file because it is being used
by another process: 'C:\\Users\Username\AppData\\Roaming\Sublime Text 3\Installed Packages\\InsertDate.sublime-package'

I get this error trying to uninstall the plugin, even after a fresh start of Sublime with no projects or files open in ST.

Which version are you using? Did you update recently? What are the entire contents of the console?
This looks like a duplicate of https://github.com/FichteFoll/InsertDate/issues/23.

I'm using v1.0.1.  I just received a message from Package Control that there was an update with a changelog last night..  In fact,  the update message keeps coming back up whenever I shut down and restart ST ..
Package Control Messages
========================
InsertDate:
----------
  v2.0.0 (2015-08-21)
  -------------------

The thing is I noticed this problem before the update.  The F5 key did not work and I never got around to figuring out why.   I just looked at issue #23 - you have the fix in the updates I'm gathering?  But I seems like I can't uninstall or update because of this issue.

This may be an inappropriate workflow by package control, where it re-enables the package after the upgrade fails, and then the upgrade fails again. I'll need to check the package control code for that.
Until then, try uninstalling the package completely, then restart, then reinstall.

Trying to uninstall gives me the error message.  Is there a clean way to manually uninstall the package and delete all references to it, without package control?   I don't want to tangle things up by simply deleting a directory if that going to cause problems, thanks

I did some investigation. It does seem like this is mainly caused by package control, but triggered by my bad code earlier which, as a result of PC, I can not automatically fix. I either have to fix PC and get wbond to push an update, or tell everyone to remove the package manually, which still works.
You said you got an update message after the failed upgrade attempt, is that correct? When did you get it exactly? Maybe I can tell users to remove (and automatically upgrade) InsertDate manually that way.
In order do remove it, you need to close Sublime Text (to close the file handles) and then remove the file "%APPDATA%\Sublime Text 3\InstalledPackages\InsertDate.sublime-package`. Then start ST and let package control download the latest release with the fix.

I get the update message every time I close down / re-open ST3 now.   In fact I just opened it a moment ago and the update message came up again.
Now I deleted the sublime package - restarted ST3 - and there is your new message from Package Control.   It asked me to set the timezone,  I did,  and tested F5 to see if my hotkey is back.
Seems to work great!  Thanks for looking into this, handy little utility for sure didnt want to lose it.

Alright, I will test this in a local install and see if users are always getting the update messages (because from my current understanding of Package Control's code they should not) and then push a new release with instructions for updating.
Thanks for the report.

Update: This will hopefully be resolved by a Package Control update in the next few days.

Package Control has been updated and includes a fix for this situation that will be fixed by restarting ST after attempting to update or remove InsertDate 1.0.1.
I'll be releasing a new version with minor changes and mention this in the update message.


Basic input class

Closes #664
Adds a basic Input class with an example demonstrating how to implement simple FPS controls with it

You guys are epic and so fast! With pointer events I can already see how it can simplify our drag PR ! I didn't realize we can just subclass from the existing Controller :D

I'm working to at least include all the basic functionality in this PR with pointer state as well.

This is now working. Could one of you give it a try locally and review?
@almarklein I was thinking to move the FPS controls into a controller class, but it will have a different architecture and design than the other controllers. I also don't want to refactor all of them. Do you have any ideas on how to deal with that? I was thinking about creating another subpackage pygfx.input...

Tried it and it works really nice!  Also feels immersive because the mouse is grabbed.

I was thinking about creating another subpackage pygfx.input...

Yes, I think that makes the most sense. I think controllers are quite different because they closely relate to cameras. Perhaps we can (later) refactor the controllers to make use of the input class(es) to make them simpler. I think wrapping makes more sense than subclassing here, what do you think?

The example works well for me along with small modifications to try out various things (moving the torus and the view, sensitivities, etc.) :smile:

Added escape/mouse click handlers to release/capture the mouse
Added acceleration to make movement smoother

The example is "done" I think, next step is reorganizing the code into a pygfx.inputs folder.

The more I think about this the more I feel like it should be a part of wgpu-py's GUI layer... I will see what that feels like by trying it out on a branch.

I'll give this a shot in wgpu if you can hint me at where it would go!

I'll give this a shot in wgpu if you can hint me at where it would go!

wgpu/gui/input.py :)

Closing. We will get back to this when we work on #495. We see two approaches, but we'll have to see at the time:

The animation event has info on what buttons are down.
The canvas has API to check what buttons are down.


AFNetworking 3.0

It's possible to used AFURLConnectionByteSpeedMeasure with AFNetworking 3.0 ?

Still no answer?

Unfortunately, this library does not support AFNetworking 3.x at the moment. Pull requests are welcome though :)


calculate function uses hard coded "Official" rather than passed-in zenith

Hi Chris,
Thank you loads for the work porting the calculations to Swift, it's been very helpful!
In testing I found the sunset times for offical, civil, etc., were all the same.  In Solar.swift on line 162, I noticed the calculate function was not using the passed-in zenith and was instead always using the "Official" zenith;
   let cosH = (cos(Zenith.Official.rawValue.degreesToRadians) - (sinDec * sin(latitude.degreesToRadians))) / (cosDec * cos(latitude.degreesToRadians))

This can be corrected with the following;
   let cosH = (cos(zenith.rawValue.degreesToRadians) - (sinDec * sin(latitude.degreesToRadians))) / (cosDec * cos(latitude.degreesToRadians))

Cheers, Graham.

Hi Graham!
Oops! You're completely right. I'll put a fix in for this on the train this evening :)

Nice one Chris. :)
My next effort is to reverse the algorithm so I can determine the zenith for a given date, time & place.  Not sure my maths is up to it though!
Cheers, Graham.

Bit later than I expected, but I've just merged in the fix.
Good luck in the reversal! Feel free to send in a PR if you want to add it to Solar :)


Fix initial tcp lookup when address is not available

What does this PR do?
Fix #8347 since we probably missed that use case in #7370
Motivation
When initializing a TCP proxy the code was failing fast if the initial address was not resolvable, meaning it would never get refreshed or attempt a new lookup until the dynamic configuration is reloaded to rebuild the router.
This is specially problematic for when you're starting both the proxy and the target service at the same time without any guarantee that the target service name will be ready when Traefik builds the router / proxy.
More

[X] Added/updated tests
[ ] Added/updated documentation

Additional Notes

Out of curiosity what happens if the DNS record is updated with a new IP a few days after traefik is brought up?
I do not know go but it did not seem like that situation was covered.

Hello @ykuksenko,
Indeed, the resolution is done each time a connection starts for hostname-based addresses.


otplib on ios with ionic

Hello, i'm having an issue with this lib on my ionic3 project.
For Android it builds and works perfectly, but on IOS it crash the app right after the splash screen, the screen keeps white.
that my info
`import authenticator from 'otplib/authenticator';
authenticator.options = {
algorithm: 'sha1',
step: 60,
digits: 6
};
var validationCode = authenticator.generate(this.user.userSecret);`
Ionic:
ionic (Ionic CLI)  : 4.1.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework    : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.10
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms     : ios 4.5.5
Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1, (and 23 other plugins)
System:
ios-deploy : 1.9.2
NodeJS     : v10.6.0 (/usr/local/bin/node)
npm        : 6.1.0
OS         : macOS High Sierra
Xcode      : Xcode 9.4.1 Build version 9F2000
my package.json
{   "name": "EasyChange",   "version": "0.0.1",   "author": "Ionic Framework",   "homepage": "http://ionicframework.com/",   "private": true,   "scripts": {     "clean": "ionic-app-scripts clean",     "build": "ionic-app-scripts build",     "lint": "ionic-app-scripts lint",     "ionic:build": "ionic-app-scripts build",     "ionic:serve": "ionic-app-scripts serve"   },   "dependencies": {     "@angular/animations": "5.2.11",     "@angular/common": "5.2.11",     "@angular/compiler": "5.2.11",     "@angular/compiler-cli": "5.2.11",     "@angular/core": "5.2.11",     "@angular/forms": "5.2.11",     "@angular/http": "5.2.11",     "@angular/platform-browser": "5.2.11",     "@angular/platform-browser-dynamic": "5.2.11",     "@ionic-native/action-sheet": "^4.8.0",     "@ionic-native/android-permissions": "^4.8.0",     "@ionic-native/background-mode": "^4.8.0",     "@ionic-native/barcode-scanner": "^4.8.0",     "@ionic-native/camera": "^4.8.0",     "@ionic-native/clipboard": "^4.8.0",     "@ionic-native/contacts": "^4.8.0",     "@ionic-native/core": "4.7.0",     "@ionic-native/crop": "^4.8.0",     "@ionic-native/device": "^4.8.0",     "@ionic-native/facebook": "^4.8.0",     "@ionic-native/fingerprint-aio": "^4.7.0",     "@ionic-native/firebase": "^4.9.0",     "@ionic-native/geolocation": "^4.8.0",     "@ionic-native/google-plus": "^4.8.0",     "@ionic-native/local-notifications": "^4.10.1",     "@ionic-native/onesignal": "^4.8.0",     "@ionic-native/sms": "^4.8.0",     "@ionic-native/social-sharing": "^4.8.0",     "@ionic-native/splash-screen": "4.7.0",     "@ionic-native/status-bar": "4.7.0",     "@ionic/pro": "1.0.20",     "@ionic/storage": "2.1.3",     "angular2-qrcode": "^2.0.1",     "angularfire2": "^5.0.0-rc.11",     "brmasker-ionic-3": "^1.1.0",     "cordova-android": "^7.0.0",     "cordova-clipboard": "^1.2.1",     "cordova-ios": "4.5.5",     "cordova-plugin-actionsheet": "^2.3.3",     "cordova-plugin-add-swift-support": "^1.7.2",     "cordova-plugin-android-permissions": "^1.0.0",     "cordova-plugin-background-mode": "^0.7.2",     "cordova-plugin-badge": "^0.8.7",     "cordova-plugin-camera": "^4.0.3",     "cordova-plugin-contacts": "^3.0.1",     "cordova-plugin-crop": "^0.4.0",     "cordova-plugin-device": "^2.0.2",     "cordova-plugin-facebook4": "^2.3.0",     "cordova-plugin-fingerprint-aio": "^1.3.8",     "cordova-plugin-firebase": "^1.1.0",     "cordova-plugin-geolocation": "^4.0.1",     "cordova-plugin-googleplus": "^5.3.0",     "cordova-plugin-ionic-keyboard": "^2.1.2",     "cordova-plugin-ionic-webview": "^1.2.1",     "cordova-plugin-local-notification": "^0.9.0-beta.2",     "cordova-plugin-sms": "^1.0.5",     "cordova-plugin-splashscreen": "^5.0.2",     "cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",     "cordova-plugin-whitelist": "^1.3.3",     "cordova-plugin-x-socialsharing": "^5.4.1",     "cordova-sms-plugin": "^0.1.13",     "es6-promise-plugin": "^4.2.2",     "firebase": "^5.1.0",     "hi-base32": "^0.5.0",     "ionic-angular": "3.9.2",     "ionicons": "3.0.0",     "minimist": "^1.2.0",     "moment": "^2.22.2",     "onesignal-cordova-plugin": "^2.4.3",     "otplib": "^10.0.0",     "phonegap-plugin-barcodescanner": "^8.0.0",     "rxjs": "5.5.11",     "sw-toolbox": "3.6.0",     "xml2js": "^0.4.19",     "zone.js": "0.8.26"   },   "devDependencies": {     "@ionic/app-scripts": "3.1.10",     "typescript": "~2.6.2"   },   "description": "An Ionic project",   "cordova": {     "plugins": {       "cordova-plugin-camera": {},       "onesignal-cordova-plugin": {},       "cordova-plugin-background-mode": {},       "cordova-plugin-android-permissions": {},       "cordova-clipboard": {},       "cordova-plugin-actionsheet": {},       "cordova-plugin-contacts": {},       "cordova-plugin-crop": {},       "cordova-plugin-device": {},       "cordova-plugin-facebook4": {         "APP_ID": "",         "APP_NAME": "",         "ANDROID_SDK_VERSION": "4.+"       },       "cordova-plugin-x-socialsharing": {},       "cordova-plugin-geolocation": {         "GEOLOCATION_USAGE_DESCRIPTION": "To locate you"       },       "cordova-plugin-googleplus": {         "REVERSED_CLIENT_ID": ""       },       "phonegap-plugin-barcodescanner": {         "ANDROID_SUPPORT_V4_VERSION": "27.+"       },       "cordova-plugin-whitelist": {},       "cordova-plugin-splashscreen": {},       "cordova-plugin-ionic-webview": {},       "cordova-plugin-ionic-keyboard": {},       "cordova-plugin-firebase": {},       "cordova-plugin-fingerprint-aio": {         "FACEID_USAGE_DESCRIPTION": " "       },       "cordova-sms-plugin": {},       "cordova-plugin-sms": {},       "cordova-plugin-local-notification": {},       "cordova-plugin-statusbar": {}     },     "platforms": [       "android",       "ios"     ]   } }

Can you see where the syntax error is located?
It seems like a general error where const is not supported on that version of iOS and not just specific to the library.  Android works because const and let are probably supported.
Do you have any code transpiler in your build process?

@marcosgouvea what's your iOS version?

the ipad im working have ios 9.3.5
and my computer is macOs high sierra 10.13.6

i just tested in another devices, and in ios 11 it works

@marcosgouvea
for ios 9.3.5, can you try installing the beta? i.e. npm install otplib@next --save
Thanks

Wow ! worked like a charm ! thank you so much

released in v10.2.2


Add CodeBert ONNX model

Type of Change
New model
API changed or not: No
Description
Add CodeBert ONNX model
How has this PR been tested?
Extension Test
dynamic
static
Dependency Change?
The dependency changes only for this example.

Extension Test
dynamic
static

Rerun the EXT test 5272.


Use this from a non-RN project

Hi
Could this be used from a regular node project?
Perhaps adding the import-export package is enough?

actually i don't think this will work. the node fs hook uses fs which doesn't exist in react.
can we just revert to old syntax instead of export/import?


HL-154: output full URLs instead of paths for applicant terms.

Additionally:

Add blank=True to the ApplicationBatch foreignkey, so testing through Django admin is easier.
Add a debug_env URL to ease debugging of environment issues in Azure.

Description :sparkles:
Issues :bug:
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #302 (304b2bc) into develop (4abd717) will decrease coverage by 1.39%.
The diff coverage is 58.62%.

@@             Coverage Diff             @@
##           develop     #302      +/-   ##
===========================================
- Coverage    96.17%   94.77%   -1.40%
===========================================
  Files          165      120      -45
  Lines         6032     4497    -1535
===========================================
- Hits          5801     4262    -1539
- Misses         231      235       +4

Impacted Files
Coverage Δ

backend/benefit/applications/models.py
94.35% <ø> (ø)

backend/benefit/common/debug_util.py
33.33% <31.25%> (-1.97%)
:arrow_down:

backend/benefit/helsinkibenefit/urls.py
86.95% <66.66%> (-3.05%)
:arrow_down:

backend/benefit/applications/api/v1/serializers.py
95.69% <100.00%> (+<0.01%)
:arrow_up:

.../applications/migrations/0021_allow_blank_batch.py
100.00% <100.00%> (ø)

backend/benefit/helsinkibenefit/settings.py
94.33% <100.00%> (+0.05%)
:arrow_up:

backend/benefit/terms/tests/test_api.py
100.00% <100.00%> (ø)

backend/shared/shared/audit_log/viewsets.py
46.96% <0.00%> (-43.94%)
:arrow_down:

backend/shared/shared/audit_log/audit_logging.py
79.54% <0.00%> (-18.19%)
:arrow_down:

backend/shared/shared/common/tests/conftest.py
84.61% <0.00%> (-15.39%)
:arrow_down:

... and 48 more

Continue to review full report at Codecov.

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


iree/hal/local/elf/elf_module_test failed to dispatch the simple_mul function correctly in RV32 config

Run https://github.com/google/iree/blob/main/iree/hal/local/elf/elf_module_test.cc resulting into a segfault in qemu-riscv32. The same code works fine in x86_64 and RV64 Linux configs
$ {QEMU_BIN} -cpu rv64 -L ${TOOLCHAIN_PATH}/sysroot/ iree-build-riscv/iree/hal/local/elf/elf_module_test
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ELFModuleTest
[ RUN      ] ELFModuleTest.Check
[       OK ] ELFModuleTest.Check (3 ms)
[----------] 1 test from ELFModuleTest (3 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (7 ms total)
[  PASSED  ] 1 test.

$ {QEMU32_BIN} -cpu rv32 -L /tmp/toolchain_iree_rv32/sysroot/ iree-build-riscv_rv32_linux/iree/hal/local/elf/elf_module_test
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ELFModuleTest
[ RUN      ] ELFModuleTest.Check
Segmentation fault

Broken at https://github.com/google/iree/blob/9b946d7ffaf08f7f6130e6aacb3692e53456eb45/iree
Steps to reproduce
patch https://github.com/hcindyl/iree/commit/6fa9e8b9a65b34388d68183d3e360ef44c7625b6 and build the test
Additional context

build the runtime with the RV32 baremetal results in the same segfault
build and run the abs() iree bytecode module towards the vmvx target with the same RV32 Linux toolchain works fine

I will try to run the system emulator with the baremetal config later to see if I can gather more information than the segfault.

Hit segfault at iree_elf_cal_i_pp for rv32 https://github.com/google/iree/blob/main/iree/hal/local/elf/elf_module_test.cc#L109

Reimplement the simple_mul with a for loop in the code, and the function runs fine --> the op should be okay
Rebuild the linker artifact with -iree-llvm-target-cpu-features="+m,+a,+f,+d,+c" -iree-llvm-target-abi=ilp32d -iree-llvm-target-float-abi=hard resulting in the same segfault

https://github.com/google/iree/blob/main/iree/hal/local/executable_library_test.c runs on RV32 (linux) without issues, and if I reimplement https://github.com/google/iree/blob/main/iree/hal/local/executable_library_demo.c#L26-L35 with
static int dispatch_tile_a(
    const iree_hal_executable_dispatch_state_v0_t* dispatch_state,
    const iree_hal_vec3_t* workgroup_id) {
  const float* arg0 = ((const float*)dispatch_state->binding_ptrs[0]);
  const float* arg1 = ((const float*)dispatch_state->binding_ptrs[1]);
  float* dst = ((float*)dispatch_state->binding_ptrs[2]);
  for (int i = 0; i < dispatch_state->binding_lengths[0] / sizeof(float); ++i) {
    dst[i] = arg0[i] * arg1[i];
  }
  return 0;
}

(the same simple_mul function as in the elf_module_test) It can also be built/run successfully in RV32 config.
Looking at the dissembled .text field in the simple_mul_dispatch_*.so at https://github.com/google/iree/tree/main/iree/hal/local/elf/testdata, the RV64 version has very similar assembler code w.r.t the direct compiled code, but the RV32 version is 1.6 in size.
https://gist.github.com/hcindyl/7816aa7b6d48ef539f88aea3eee687c6
If I compile the simple_mul function in https://godbolt.com with rv32gc clang compilier and rv64gc clang complier, the only difference should be sw --> sd, and lw --> ld, as the load/store in the size of word32 and word64, respectively.
It could be a codegen problem for the RISC-V 32bit config

QEMU target machine asm dump also shows the segfault happen in the middle of the simple_mul_dispatch artifact
https://gist.github.com/hcindyl/4c92bdcc49a9940c65304b822ec73bce

Copy the debug information from the discord channel. Looking into the codegen flow in https://github.com/google/iree/blob/9b946d7ffaf08f7f6130e6aacb3692e53456eb45/iree/compiler/Dialect/HAL/Target/LLVM/LLVMAOTTarget.cpp#L255 to see how rv32 target is compiled.

Rebase the repo to https://github.com/google/iree/pull/6265 and the error code for RV32 changes to
/usr/local/google/home/hcindyl/Projects/iree-dev/iree/iree/hal/local/elf/elf_module_test_main.c:93: INVALID_ARGUMENT; entry point count mismatches

Should be related to the code change in https://github.com/google/iree/pull/6221

interesting - that could make things easier to debug - can you break there and look at the header/library structure and see what it looks like? (it would be easy to spot alignment/packing issues, for example)

(and also make sure you rebuilt the compiler before generating the artifact)

(and also make sure you rebuilt the compiler before generating the artifact)

Rebuild the host compiler and the same mismatch error persists. I am going to dump the library structure to see what's there.

x86_64:
library header name: simple_mul_dispatch_0
library header feature: 0
library header sanitizer: 0
imports count:0
exports count:1
export 0 ptr: 0x7f624db5f350, name: simple_mul_dispatch_0

riscv_64 (linux):
library header name: simple_mul_dispatch_0
library header feature: 0
library header sanitizer: 0
imports count:0
exports count:1

riscv_32 (linux):
library header name: simple_mul_dispatch_0
library header feature: 0
library header sanitizer: 0
imports count:0
exports count:0

riscv_32 (bare-metal)
library header name: simple_mul_dispatch_0
library header feature: 0
library header sanitizer: 0
imports count:0
exports count:0

Need to check the linker artifact alignment and relo pointers next.

See relocated pointer printout at https://gist.github.com/hcindyl/a0e2e1d9bf313ff35aa56eac5792145a
The export entry point is consistently at the second relocated pointer across all architectures, with the correct offset w.r.t the query_fn_ptr (checked with objdump .text result). Not sure why in riscv_32 the relocated pointer for the export function is not used.

Great investigation! It's weird - looking into the binary it seems like maybe the structs are getting reordered.
rv64:

rv32:

The export count (1) is moved down to the bottom of the exports struct in the rv32 case, where it's expected to be the first element as it is in the rv64 version.
So maybe this is some struct reordering thing that needs to be disabled via some pragma/attribute. Does this sound like a familiar issue? I can do some digging and see what I can tweak - I really should be packing these structs anyway so maybe that'll fix it. Have a bunch of meetings until the afternoon but will try as I can to sprinkle in attributes unless you want to give it a shot!

Yeah looks like a padding issue - there should be 2*4=8 bytes of padding between the header and the count (which I set to 123 here to make it easier to spot) - instead there is 20!
.Liree_hal_executable_library_query_v0:
        .word   .Liree_hal_executable_library_query_v0_header
        .zero   4
        .zero   16
        .word   123                             # 0x7b
        .word   .Liree_hal_executable_library_query_v0_funcs
        .word   .Liree_hal_executable_library_query_v0_attrs
        .word   .Liree_hal_executable_library_query_v0_names
        .word   .Liree_hal_executable_library_query_v0_tags
        .zero   4
        .size   .Liree_hal_executable_library_query_v0, 48

(for future experimentation: compiler explorer link)

After https://github.com/google/iree/pull/6280 the error return back to segfault :(
$ ${QEMU32_BIN} -cpu rv32 -L ${TOOLCHAINRV32_LINUX_PATH}/sysroot/ iree-build-riscv_rv32_linux/iree/hal/local/elf/elf_module_test_binary
instr_ptr[i]: 0x3fc5f344 -> 0x3fc5d1e0
instr_ptr[i]: 0x3fc5f350 -> 0x3fc5e214
instr_ptr[i]: 0x3fc5f354 -> 0x3fc5d1fc
instr_ptr[i]: 0x3fc5f358 -> 0x3fc5d212
instr_ptr[i]: 0x3fc5f360 -> 0x3fc5f340
instr_ptr[i]: 0x3fc5f370 -> 0x3fc5f350
instr_ptr[i]: 0x3fc5f374 -> 0x3fc5d1f8
instr_ptr[i]: 0x3fc5f378 -> 0x3fc5f354
instr_ptr[i]: 0x3fc5f37c -> 0x3fc5f358
query_fn_ptr: 0x3fc5e326
library header name: simple_mul_dispatch_0
library header features: 0
library header sanitizer: 0
imports count:0
exports count:1
export 0 ptr: 0x3fc5e214, name: simple_mul_dispatch_0
Segmentation fault

The optional stops in the middle of the dispatch_0 call

Remove the compressed instructions doesn't help with the problem
objdump of the simple_mul_dispatch_riscv_32.so

qemu execution log for the in_asm

debug printout:
query_fn_ptr: 0x3fc5e418
library header name: simple_mul_dispatch_0
library header features: 0
library header sanitizer: 0
imports count:0
exports count:1
export 0 ptr: 0x3fc5e23c, name: simple_mul_dispatch_0
jump to instruction 00400593

00400593 matches the expected instruction in the linker artifact.

darn - but at least we can rule out alignment, jump distance, or special addresses (as the target address here changes)

Dump the strace from qemu along with the in_asm(target arch asm)

/* `si_code' values for SIGSEGV signal.  */
enum
{
  SEGV_MAPERR = 1,                /* Address not mapped to object.  */
# define SEGV_MAPERR        SEGV_MAPERR
  SEGV_ACCERR                        /* Invalid permissions for mapped object.  */
# define SEGV_ACCERR        SEGV_ACCERR
};

The host ASM doesn't seem to have the reason to jump to a null object either

FYI, compiler explorer from a naive implementation of the simple_mul_dispatch looks much cleaner without jumps. Need to go further down in codegen to inspect the LLVM IR --> ASM flow.

yeah I was noticing that too - a large part of it comes from memref descriptor (an MLIR->LLVM concept that is used upstream that we don't want/need but is tangled in the code): https://discord.com/channels/689900678990135345/689932666505920596/857029424855646218
I've got a capture of the MLIR LLVM-dialect IR, LLVM IR, and decompiled source (which makes it easier to see what the LLVM IR is doing): https://gist.github.com/benvanik/b086774810059b96b162fdb396a44202
The SPIR-V we generate, which avoids the memref descriptors, looks pretty close to as it should, and what we should be trying to make the LLVM IR look like: https://gist.github.com/benvanik/d00c2a85b286b1b8a89b7ae5dfa0ba69
So the good news is that we can remove almost all of the LLVM IR junk - the bad news is that no one is working on that right now ;( A large part of the work will be refactoring the MLIR LLVM lowerings to not go through memref descriptors, which should be fairly straightforward today (and will only get more difficult to fix in the future).

Manage to get the qemu-riscv32 linux emulator work. The binary actually fails before the jump call

a0 is 0, so lw      s3,0(a0) (Reg[s3] <- Mem[Reg[a0]]) becomes an illegal access. a0 is set to 0 in the previous calls (slli shift left) so it could be a address overflow issue.
There's no breakpoint or step in in the dispatch call (no symbol), so it's not straightforward to see how to step through the dispatcher in this case.

Unrelated to the crash I suspect: but that emitted code is horrifying - it's doing some unaligned loads (4 lbus + shifts/ors). That's what I was afraid of with packing (why I didn't have it originally) - I should be able to revert that now that we found out it didn't fix this issue and the root cause was the mistyped imports table size on 32-bit machines.
Really great that you're finding out how to debug into this deeper - I hope we can figure out what's going on soon but at least these techniques will be useful in the future :)

Rebase the code after #6288, and rebuild the .so without +c,+f. It still hits segfault, but memory access at least looks aligned. More detail on where the dereferencing of nullptr happens
(Screenshot taken at the dispatch executable ASM)

Need to track down the last activity w.r.t. a0 and a1 address setting before the dispatch call


Uploading SPFx solution in a Site Collection App Catalog results in "Invalid App ID

Category

[ ] Question
[x] Bug
[ ] Enhancement

After uploading a solution to SiteCollection App Catalog,  Clicking on 'Detail' should show the app detail information with 'Add it' button
Observed Behavior
Clicking on 'App detail' shows 'AppStore,  invalid ID ....'  the ID shown is not an ID of the solution.

The solution will still install If I just double click on the App Icon.   but there will be no upgrade path with the lack of detail page.  Happening in both development tenant and in production tenant.
Steps to Reproduce
Create a 'Hello world' solution package and upload to Site Collection level app catalog.  go to any sub site under the site collection and go to Site contents ->Add an App.   Find your solution and click on 'App detail'.
The same solution package, when uploaded to tenant level App catalog,  will correctly show app detail with 'Add it' button

.

@a2life, why was this closed?
I am seeing this issue with any app I add to the site collection app catalog, was there something you did to resolve this?

I am also seeing this issue when I add to a site collection app catalog.

I closed this because I was not sure if this is the right place to submit the issue report.  Yes the issue is still there.

Facing the same issue even now. Any solution?

I will keep it open as the issue is still there although I am not sure if this is the right forum to log this issue.  This problem  effectively blocks Site collection level app to get updated because  "new version is available,  get it' action is in this detail view and therefore there is no way to update the web part that is installed through Site collection level catalog.

I ended up commenting this in Docs.Microsoft.
My assessment at this time is that the SPfX solutions uploaded to the Site Collection level appCatalog  appear to be missing "detail" information properly provisioned. I can still install those apps.   The annoyance is that one can not see "New version is available.  GET IT" button in the event of upgrading the app because it is a part of the detail page.   However, ALM API  still works, so it was a matter of  writing a utility app to invoke the API for a selected app.   with this knowledge, I am closing this issue.


Large codebase that fails with clj-reload but not tools namespace.

Hey I have large codebase at 'megacorp', that I can't share, but it failing to be loaded on initial start-up via clj-reload, but works fine with tools namespace, do you have any tips on what to post here to help you diagnose the issue, i haven't had much time to dive into it, i'll take a longer look at the weekend, but it looks like it could be an issue with clj-reload. i'm getting errors like 'foo' alias does not exist when its clearly required. I can't share code, or filenames, but I can anonymize the data if you tell me what to send.

Do you mean it just takes too long to load? Or there are exceptions?

i'm getting errors like 'foo' alias does not exist when its clearly required

I would love to hear more about this, maybe the minimal example. Could be the case that we look into the files we shouldn’t be looking

Do you mean it just takes too long to load? Or there are exceptions?

yes exceptions surrounding using a namespace alias that should have been required.
i'm hoping to have time this weekend to investigate, thanks.

I spent more time looking at this on the weekend, and I can only reproduce on one of my computers, with a specific build of emacs v30. So i'm just going to write this off some kind of corrupted file and/or buggy emacs. It's not really worth my time to try and narrow down the problem beyond that.  Thanks for entertaining me this briefly, and your work in general is quite nice, gonna close this issue, cheers.


Question about ig_pred

hello,
I have a question: why ig_pred is computed but not used in your project. It seems that all the gradients are computed based on golden label. Is there some reason?

We aim to analyze the influence on the probability of the true fact, but not the predicted one, so we use IG w.r.t. the golden label.

ok,thanks


refactor(relative-import): index.js files added to carbon components

Part 1 of 2 #534
Summary
These files follow the standard set by IBM Security and Carbon on how to import carbon components. More info can found in #534
This commit has no side effects as no files are using these paths yet. This is only to set the base for the following commits that will change how all components import components from carbon-components-react
Why did I split this up into 2 PRs?
After some thought on how best to break this issue up, I have divided the work into 2 PR's. The first PR will be adding the index.js files to each carbon component, and changing the import paths in the main src/index.js. The second PR will change each component's import paths to use relative instead of carbon-components-react.
My reasoning is that if I were to split this task into more PRs, 5 components per PR for example, there would be a mismatch of how components are being imported across the library which could lead to confusion. By changing ALL components at once, per subtask, it helps to keep consistency. I'll add further descriptions in each PR.
Change List (commits, features, bugs, etc)

All Carbon components that are currently used by this Carbon IoT extensions library

Acceptance Test (how to verify the PR)

Check built web app below to ensure the app is still functioning

This PR should not have any side effects as the new paths have not been used. (Part 2 PR will do this)

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Possible solution with cupertinotabbar

Hey,
I'm using a CupertinoTabScaffold with 4 tabs and I've been trying to get this functionality to work with that. Any idea on how to support this feature? The problem I'm having is that the snackbar message is shown on all of the tabs that I have and the users can't exit the app because of that.

i'm not sure i understand the expected behavior. do you want the back button to switch between the tabs instead of closing the app?

I want the back-button to close the app.
The problem is that the snackbar is displayed on all tabs, it doesn't take into consideration which tab is active.

thanks for clarifying the issue :)
this library checks the local history in order to determine whether it should show the snackbar. there are a few tests that check the behavior you mentioned, but using a drawer instead of tabs.
i believe that WillPopScope adds an entry to the local history, so i am not 100% sure the issue is in this library. would you  share a reproducible example of such an issue so i can validate that?


fix: support 'read' operation alias for SQL data sources

Description of changes
Support 'read' operation alias for SQL data sources:
type Todo @model @auth(rules: [{allow: owner, operations: [read]}]) { ... }

This change is enabled by adding an isSqlDataSource option to the getAuthDirectiveRules utility function. That function is exported from the V2 transformer and so changes the API.md, but does not change the customer-facing API.
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

LGTM. Could you double check on the ACM for a sql model by running amplify-dev status api --acm ${modelName}? The expected matrix should be true for get, list, listen and false for sync, search.

ACM support isn't enabled yet. The command line ACM doesn't have any context for knowing the data source, since it operates on the bare schema. We'll have to think about if/how we enable support for specifying a data source in the command line ACM.


❓ [Question] Is a INT8 calibrator specific to a given model or just specific to a dataset?

❓ Question
Is a INT8 calibrator specific to a given model or just specific to a dataset?
INT8 calibrators can be cached to accelerate further usage, which is nice. However, it's not clear from the documentation if the cached calibrator can only be used to calibrate the model it was used for TensorRT conversion or any model that uses the same calibration dataset.
As a practical example, let say that I'm training and comparing two classification neural networks A and B on the same dataset and with the same data preprocessing. I converted network A for TensorRT using INT8 quantization and saved the calibrator cache file. to disk. Can I use this calibrator to convert model B to TensorRT (which otherwise would have used the same calibration dataset as A)?
My intuition is that a calibrator is specific to given dataset and network and it cannot be reused for a different network.

A DatasetCalibrator is specific to a dataset and can be resused, but the cache will be specific a specific model

Thank you!


I lent 588 DoC, but I'm only able to withdraw 21 DoC at a time

Hi,
I Lent 588 DoC, but I'm only able to withdraw 21 DoC at a time

Fixed with v0.1.9

Hi @creed-victor, are you sute this is fixed. I updated sovryn and for me I still can only withdraw 21 DoC. Thanks.

@bitcoinuser thats strange, did app showed you notification asking to update?

@bitcoinuser thats strange, did app showed you notification asking to update?

Yes. I still can only withdraw 21 DoC.

Fixed.


compressor: replace snappy with cramjam

About this change - What it does
Replaces the python-snappy dependency with cramjam.
Why this way
The python-snappy library is no longer maintained (see 1). Cramjam is a drop-in replacement that allows for a considerable speedup both in the compression and decompression tasks. The relevant benchmark for snappy's framed format 2.
Before we accept this PR, we should benchmark cramjam ourselves with realistic workloads.

Not going to pursue this right now, we have higher priority work on our roadmap.


Support filtering by future days/times

We currently have an option to filter the search result by what’s “open now”.
https://foodoasis.la/filters/?open=1
Let’s allow users to choose a day and time in the future, so they can plan a trip to a healthy food location.
A simple way to start might be to add two <select> elements–one with the days of the week (Monday–Sunday), and another with the hours of the day (midnight–11am and noon–11pm).
Here’s a script for the “open now“ feature that we have now…
https://github.com/foodoasisla/site/blob/master/assets/js/helpers.js#L99-L135
Bonus Points: Highlight today’s date in the list of hours for each location, and show a special notice if a location is opening soon, closing soon, or has already closed.

Oops, opened a dupe again! https://github.com/foodoasisla/site/issues/113

Different options for filtering:

@kimhjona got a first version of this working…
https://foodoasis.la/filters/
It supports filtering by a time in the future.
Way to go, Jon!


fix(types): add cancelAllNotifications optional android tag property

cancelAllNotifications signature optional tag property is added. This is useful when we need to delete remote notifications

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

released! https://github.com/invertase/notifee/blob/main/docs-react-native/react-native/docs/release-notes.md#900


Implement : List Interface - boolean addAll(int index, Collection<? extends E> c)

Please assign this issue to me.


Two Sets of Identical Social Media Icons Creating Confusion

The current page layout displays two identical sets of social media icons placed near. This creates confusing user experience, as users may not understand why there are two clickable sections for the same icons so close to each other.

Solution:
To improve clarity and streamline the user experience, we can remove one set of icons and can make changes in designs.so this will reduce confusion and create a cleaner, more focused design.

Please add the label GSSoC'24-Extd. and assign this issue to me. I would like to work on fixing it.

I have completed the changes related to the layout and responsiveness of the social media icons in the contact section. The modifications have been implemented, and I have created a pull request for review.
Link of  PRhttps://github.com/gauravsingh1281/Rentalog.in--Frontend/pull/134


Inconsistent behavior of the Scan operator

The implementation of the Scan operator differs between Ix (both sync and async) and Rx with regards to the first element.
The source code contains a comment explaining the behavior for Ix stating it's compatible with Rx (but that's not actually the case):
// NB: Implementations of Scan never yield the first element, unlike the behavior of Aggregate on a sequence with one
//     element, which returns the first element (or the seed if given an empty sequence). This is compatible with Rx
//     but one could argue whether it was the right default.

This test code demonstrates the issue:
var ob = Enumerable.Range(0, 3).ToObservable();
var ae = Enumerable.Range(0, 3).ToAsyncEnumerable();

var obResult = await ob.Scan((acc, i) => i).ToList(); // 0, 1, 2
var aeResult = await ae.Scan((acc, i) => i).ToListAsync(); // 1, 2

var isSame = aeResult.SequenceEqual(obResult); // false

Furthermore, the implementation of Scan in MoreLINQ yield the first element, adding to the confusion when switching between libraries.
I understand that it's less than ideal to change the behavior of existing operators, but in this case I think it's worth considering due to the current inconsistency.
I would be happy to make a PR if you agree it should be changed.

Just for the record, this is not critical in any way. I'm currently working around the issue by supplying a dummy seed, but it's itchy and I want to scratch it.


Make kill script executable

and just be happy using
$manage execute-agent kill-workflow-in-agent WF_NAME

@ticoann please merge


fix 'months' conversion to dateMath

This PR lets to fix 'months' conversion to dateMath.
Presently, when we define a wizzard watcher, if we choose "Months" in "FOR LAST" option, the result query range is m instead of M.
This PR lets to fix it.

Thanks @sergibondarenko for the merge !

@fbaligand thank you for the contribution


Migrate to cue.Context()

What problem are you facing?
this issue is for tracking migrating this function to use cue.Context() instead of the current implementation of cueCompile
<EMAIL_ADDRESS>How could this Function help solve your problem?
This will allow the base Encode() and the Compile to function off of cue's core apis that are being built currently

Reopening this after speaking with paul jolly


Testimonials card

As the background of the testimonials card for dark is also white. so, modifying the card according to the dark theme will be great and the next and previous buttons color are also not as per the theme they must be of red color

I would like to work on this project. please assign to me.


Standardise :module_already_copied error tuple

The Mimic.Server.mark_to_copy/1 function returns a tuple in the form {:error, {:module_already_copied, module}} whenever the given module has already been copied before, making the function idempotent. However Mimic.copy/1 calls a private ensure_module_not_called/1 function that was previously returning a {:error, :module_not_copied} tuple.
The Mimic.copy/1 function was only handling the version of the tuple that does not contain the module being copied.
This commit updates the code to always use tuple version that contains the module being copied, so that this error type is consistently represented throughout the codebase.

Thanks for the PR! :tada:


Request: Support for VK_EXT_external_memory_host

Having dug around the Metal spec a bit, I discovered that it may be possible to implement the VK_EXT_external_memory_host extension in Molten.
This extension essentially allows you to create a piece of memory that points to some arbitrary pointer in system RAM. This is useful for things such as having multiple GPUs read/write to the same buffer that is backed by "imported" or "external" memory on the host, without needing explicit uploads or downloads.
Is this something that is on the roadmap for Molten?
Further reading
https://developer.apple.com/documentation/metal/mtldevice/1433382-makebuffer

By the way, I think it is also possible to add similar support for device memory, through these constructs:
https://developer.apple.com/documentation/metal/mtlbuffer/2967416-remotestoragebuffer
https://developer.apple.com/documentation/metal/mtlbuffer/2967415-makeremotebufferview
Though adding support for this might be more complex..

Would like to +1 this as well. I use it over on Linux/Windows to avoid having to make redundant copies of memory into a staging buffer.

This enhancement is implement in PR #1854.


Ability to use another routing library rather than the one angular provides

It would be awesome if we could use another library for routing with this library instead of the one angular provides, for example: https://ui-router.github.io/ng2/

It's been a while since this, need any help with a PR?

Hey @Verurteilt, the router is used for getAuthDataFromParams() only. If you can make this function more universal another routing library would work. A PR would be much appreciated 😄 . Currently don't have the time to look for a solution myself.

@neroniaky  It seems to be it's gonna be way more difficult than that because you use CanActivate, and it only works with the Router that comes with Angular 2, what do you think of separating this into a different class?

I need this too. But before I try working on a PR to get angular-2-token working with the Ionic Router, has it already been done anywhere ? (Also, I am starting to wonder what all the ionic apps that use Devise Token Auth are working)

@neroniaky, @Verurteilt
I got basic requests woking with Ionic (not registration etc), just by removing the angular router.
But the other thing is that angular-2-token provides its own set of http methods.
I need to use Restangular, but of course the correct headers would not get sent by Restangular. So I would also need to change the way tokens are stored and used on the client.  With the original ng-token-auth, I think this was done with interceptors.
Its complicated !

Angular 4.3 has interceptors built in.  https://ryanchenkie.com/angular-authentication-using-the-http-client-and-http-interceptors.  So this is a way to store tokens and also to put them back into the http requests.
Although Ionic is not yet using Angular 4.3,  it seems to work by specifying this in package.json.
I'll post here if I get it all working sweetly.

@guy-roberts  It's been a while since we finished the project we we doing with Angular2 (now we are currently doing 1 with React-Redux), I'll try this weekend to give a shot to this Issue and see if I can come up with a PR.


Updated the screenfull package to 5.0.0 version

Fixed the issue #32

This resolves the full-screen issue, and brings the EPUBJS up to date which also has a bunch of fixes.
@intity it seems unlikely this is going to have continued maintenance, since the pull request is over a year old. Might be time to think about maintaining a separate repo of this code ourselves, I have a bunch of other things to create pull requests for if you want to start it?
Flagging @fchasen here in case of any objections to avoid duplication.

This resolves the full-screen issue, and brings the EPUBJS up to date which also has a bunch of fixes.
@intity it seems unlikely this is going to have continued maintenance, since the pull request is over a year old. Might be time to think about maintaining a separate repo of this code ourselves, I have a bunch of other things to create pull requests for if you want to start it?
Flagging @fchasen here in case of any objections to avoid duplication.

Unfortunately I don't have much time to develop epubjs-reader. Initially, my goal was to create a simple chrome browser extension to upload books in epub format by URL or from local storage.

Unfortunately I don't have much time to develop epubjs-reader. Initially, my goal was to create a simple chrome browser extension to upload books in epub format by URL or from local storage.

Unfortunately I don't have much time to develop epubjs-reader. Initially, my goal was to create a simple chrome browser extension to upload books in epub format by URL or from local storage.

Me neither really, but was thinking making it more of a maintenance mode, confirming pull requests and merging. Seems like most of that is done by the community just not merged, and the development is still very active in the epubjs repo which sits at its core.
Hopefully @fchasen will get back on it, and if there are no plans to continue this repo then will look at a forked alternative instead.

Unfortunately I don't have much time to develop epubjs-reader. Initially, my goal was to create a simple chrome browser extension to upload books in epub format by URL or from local storage.

Me neither really, but was thinking making it more of a maintenance mode, confirming pull requests and merging. Seems like most of that is done by the community just not merged, and the development is still very active in the epubjs repo which sits at its core.
Hopefully @fchasen will get back on it, and if there are no plans to continue this repo then will look at a forked alternative instead.


[SvgIcons] Update build

Transpile ES2015 icons
Include src in built package
Add README
Add a .gitignore

[ ] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

@mbrookes great :)

If you could publish, I'll start updating the docs site to use this.

Done https://www.npmjs.com/package/material-ui-icons. I can add you, what's your npm user?

@oliviertassinari Same as here - mbrookes. Thanks for publishing! 👍

You know have push access.


The Unity project reported an error when introducing the compiled neoutils.framework.

There is no problem with neoutils.framework for use in OC and Swift projects. Introduced in the project written in unity language, the compilation is successful but the runtime reports an error. The error message is "runtime/cgo: could not obtain pthread_keys tried xxx". The content screenshot is as follows.

I have checked the related documentation but have not found a solution.  Thank you very much for helping to solve this problem as soon as possible.

I've had no issues linking https://github.com/Ryucoin/neovm-utils to Unity projects for iOS

Thank you for your reply. But this error does happen in the current Test Unity project, and no other SDKs are used in the project. When I delete the SDK -> Link Binary With Libraries in Build Phases and delete the relevant code, the test project will run normally. How can I fix this error that description as "runtime / cgo: unable to get pthread_keys", is there a way to fix it?

@apisit I hope you can help me solve this problem, thank you

Can you share this sample project on github?

You might need to use the build script in https://github.com/O3Labs/neo-utils/pull/45 to generate the framework? Additionally, as mentioned in the neovm-utils repo "The compiled headers created by gomobile should be wrapped in NS_ASSUME_NONNULL macros until this is resolved by gomobile (https://stackoverflow.com/a/36164132/3830876)."

@saltyskip @apisit #45 should be merged into master. You'll be able to use neo-utils in iOS apps without disabling bitcode (which will eventually be required by Apple).

https://jmwu.oss-cn-beijing.aliyuncs.com/SDKXCodeProject.zip
Hello, I uploaded the relevant code, you can click the link to download. I import DappbirdsSDK.framework in the UnityIOSCommunity.m file, and neoutils.framework is used in DappbirdsSDK, so this error occurs.
You can delete DappbirdsSDK.frameWork in this project and just introduce neoutils using #import <neoutils/neoutils.h>. The error in the screenshot above will still appear when the project is running in the Simulator.

Sorry, you need to copy this link: https://jmwu.oss-cn-beijing.aliyuncs.com/SDKXCodeProject.zip and open it in your browser.

@apisit @WyattMufson @saltyskip

I can't download your project via the link.  can you put it on github?

Because the project is too large to upload to github, please provide your email address and I will send it to your email address. Thank you.

I believe github can handle a large project just fine. also I don't think email address can handle large attachment.
how big is the project?

I've had no problem putting Unity projects on Github

https://github.com/raisezhang/UI-Tools/blob/master/SDKXCodeProject.zip
We have uploaded to GitHub, this is the link address, I imported neoutils in the UnityIOSCommunity.m file, the compiler will not report an error, but will report an error when running the emulator.

Sorry to bother you, we urgently need to fix this problem. Can you find the reason for the error, or have any other suggestions?
@WyattMufson @apisit

@chrischen1021213933 I downloaded your project and run it locally. Have the same error.
I tried to edit Architecture settings in Build Settings as I see that you have not set Build architecture correctly but still get the same error. Do you have an empty unity project?

I think we have solved this problem. The reason for this error is that this iOS project is a version of the simulator compiled by Unity. We found an introduction to go mobile on github at https://github.com/golang/go/wiki/Mobile, The iOS Simulator module for this page describes the go project with errors in the iOS simulator.
So we recompile the version running on the iPhone, the project works fine, and no relevant error messages appear.
thank you very much.


Fix show code button style issue in playground

this closes #1885

@maryamhdr
plz review this PR

@maryamhdr
plz re-review this PR 😊


Streamlit site is not working

The error from https://ezancestry.streamlit.app/ is:
streamlit.errors.StreamlitAPIException: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
    exec(code, module.__dict__)
File "/mount/src/ezancestry/streamlit/app.py", line 17, in <module>
    st.set_option("deprecation.showfileUploaderEncoding", False)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/metrics_util.py", line 410, in wrapped_func
    result = non_optional_func(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/config.py", line 116, in set_user_option
    raise StreamlitAPIException(f"Unrecognized config option: {key}") from ke

[sic]

Thanks for reporting the issue @thandal. I pinned the streamlit version in #83 for now.


MySQL charset recommendations

Current documentation still recommends utf8 collation for MySQL DB which can cause 'Incorrect string value' error in MySQL (TW-24086). I propose to recommend utf8mb4 as per this comment.
Also, the 'Incorrect string value' description in common problems gives an impression that existing DB's collation can be changed by editing my.cnf. Let us state explicitly that the existing DB collation still needs to be configured properly. Related slack thread.

Thank you!


Can't create questions

I downloaded the application and the create question feature isn't working at all.
can someone help me?

Hi @dr-teddygenesis,
Could you please add some detail for your error, you can take a screenshot your error or show console detail.

There isn't any error, it seem like it doesn't capture the question to MongoDb.

We need add index for title of post table, please use my demo database or add index for text column in questions table.


fix trials removal

Description
Changes proposed in this pull request:

introduce ratelimiting
improve tracing

Related issue(s)

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

You should update the file README.md with the provider config changes, and also add them to the chart templates and values.


Fix missing console template buildVersion() func

As a side effect, this removes the pathPrefix() function from alert
templates, but that function was never externally documented, nor meant
to be available in alert templates.

Hmm, I can see uses for pathPrefix in alerts and removing it is technically a breaking change.
Maybe pass down a map of additional functions to the template code?

Closing in favour of #2579.


Revert "Added line and column number to ExceptionDetails"

Reverts EverlastingBugstopper/chrome-devtools-rs#46
The line and column numbers returned here seem incorrect. Probably should being using sourcemap

ty


ci: build and run unit tests with bzlmod

In support of https://github.com/aspect-build/rules_js/issues/644
This should close off the bzlmod support for rules_js ticket.
Depends on: https://github.com/aspect-build/bazel-lib/pull/375

Ready for review

Node toolchain fixes are in. This one is ready for another review @gregmagolan @alexeagle.


Added timeout (optional parameter) to zGetMetaFile

The zGetMetaFile method did not have an option to specify a custom timeout value - unlike it's counterpart zGetTextFile. I made this small addition since I happen to need it. The implementation has been copied from zGetTextFile.

Cool. I am merging it in.


Forch

lint changes. error fixes

Seeing if travis lint checks pass

I approved, so if travis passes then you're good to go!  I think you could even submit as long as it doesn't make anything worse (e.g. if it fixes some but not all).

@didovesei PTAL


Issue during session renewal after 4+ hours

We're running into an intermittent issue during the renewal process and I'm wondering if you've seen this before.
SnowflakeException: Renew session failed. Message: Authentication token has expired. The user must authenticate again.
Full stack trace
at Snowflake.Client.SnowflakeClient.QueryRawResponseAsync(String sql, Object sqlParams, Boolean describeOnly)
at Snowflake.Client.SnowflakeClient.QueryInternalAsync(String sql, Object sqlParams, Boolean describeOnly)
at Snowflake.Client.SnowflakeClient.RenewSessionAsync()
SnowflakeException: Renew session failed. Message: Authentication token has expired. The user must authenticate again.

We're using a transient SnowFlakeClient so it should be renewed each time. However it seems like something in the background may be maintaining the session and running into issues when the connection goes idle after some time.
Is the library setting the CLIENT_SESSION_KEEP_ALIVE property? Or is there some other recommended way of getting a new client to recreate the underlying session perhaps? Seems related to this issue perhaps: https://github.com/snowflakedb/snowflake-connector-net/issues/37
The client is created and provides some additional session info:
services.AddTransient((c)=> new SnowflakeClient(
                new AuthInfo(snowflakeConfig.User, snowflakeConfig.Password, snowflakeConfig.Account),
                new SessionInfo
                {
                    Role = snowflakeConfig.Session.Role,
                    Database = snowflakeConfig.Session.Database,
                    Schema = snowflakeConfig.Session.Schema,
                    Warehouse = snowflakeConfig.Session.Warehouse
                }));

Could this constructor have something to do with the renewal issues perhaps? Any recommendations for working around this issue?

Hello Rondel!
Thank you for detailed bug report.
There are two token types which Snowflake API uses for authentication: session token - expires in 1 hour and master token - expires in 4 hours by default. When session token expires method SnowflakeClient.RenewSessionAsync() uses master token to receive new session token. However in your case I believe master token has expired, which should happen only if your session was idle for 4 hours.
Then there is a CLIENT_SESSION_KEEP_ALIVE property which Snowflake sends to API clients, it is false by default. It tells API client whether they should keep session alive or not. So ideally every Snowflake client should respect this option. For example, Python connector spins up a separate "heartbeat" thread which periodically sends some queries to Snowflake to keep session alive. As well as it allows to override this property allowing developer to control it on the client side. What's interesting - official .NET Snowflake Connector don't respect this option - it kinda doesn't need to, because it creates new session for every single request, so it's really hard to come up with some use case when session may expire with this approach. Snowflake.Client is another story - it tries to re-use existing session if possible.
Back to your issue. This is really weird - if client is transient it shouldn't happen at all.

Can you please confirm that SnowflakeException that you are getting has 390114 code (= master token has expired) and is not 390112 (= session token expired)?
Can you please ensure that SnowflakeClient is transient and it is a new instance every time? After making a query you can output SessionId property (SnowflakeClient.SnowflakeSession.SessionId) - it should be different for different instances of SnowflakeClient.

BTW - You can see all your sessions in Snowflake UI: AccountAdmin role > Account > Sessions, look for sessions that has Client Driver = .NET_Snowflake.Client. It can help to understand what's happening.

@rondelward-pf That's great! Thanks!


Does Not Work with Whisper - CUDA 11.8 and CUDA 12.2

Hello
ZLUDA fails to execute Whisper.cpp ( https://github.com/ggerganov/whisper.cpp/releases/tag/v1.5.4 ) I tried with the "whisper-cublas-11.8.0-bin-x64.zip" download.
Error message:
CUDA error: invalid argument
  current device: 0, in function ggml_init_cublas at D:\a\whisper.cpp\whisper.cpp\ggml-cuda.cu:6843
  cuDeviceGetAttribute(&device_vmm, CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, device)
GGML_ASSERT: D:\a\whisper.cpp\whisper.cpp\ggml-cuda.cu:226: !"CUDA error"

Steps to replicate:

Download whisper-cublas-11.8.0-bin-x64.zip from https://github.com/ggerganov/whisper.cpp/releases/tag/v1.5.4
Download the "Samples" and "Models" directories from https://github.com/ggerganov/whisper.cpp
Download a model by running \models\download-ggml-model.cmd e.g. download-ggml-model.cmd tiny.en (you can store the models and samples anywhere, as long as the paths are then specified.)
Call the EXE using ZLUDA e.g. zluda.exe -- T:\whisper-cublas-11.8.0-bin-x64\main.exe -pp -t 8 -m T:\WhisperModels\ggml-medium.en.bin T:\WhisperSamples\jfk.wav

"-pp" = show percent,
"-t 8" = use 8 cores,
"-m" is the model to use,
and then finally the wav file.

I also tried without specifying the percent and threads to use, same result. zluda.exe -- T:\whisper-cublas-11.8.0-bin-x64\main.exe -m T:\WhisperModels\ggml-medium.en.bin T:\WhisperSamples\jfk.wav
In case it matters:

whisper-bin-x64.zip and whisper-blas-clblast-bin-x64.zip work fine.
The Intel Openvino Audacity plugin for Whisper also works fine with my CPU, the integrated graphics on my CPU, and also the RX 6800 XT.

Full output:
T:\zluda>zluda.exe -- T:\whisper-cublas-11.8.0-bin-x64\main.exe -pp -t 8 -m T:\WhisperModels\ggml-medium.en.bin T:\WhisperSamples\jfk.wav
whisper_init_from_file_with_params_no_state: loading model from 'T:\WhisperModels\ggml-medium.en.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab       = 51864
whisper_model_load: n_audio_ctx   = 1500
whisper_model_load: n_audio_state = 1024
whisper_model_load: n_audio_head  = 16
whisper_model_load: n_audio_layer = 24
whisper_model_load: n_text_ctx    = 448
whisper_model_load: n_text_state  = 1024
whisper_model_load: n_text_head   = 16
whisper_model_load: n_text_layer  = 24
whisper_model_load: n_mels        = 80
whisper_model_load: ftype         = 1
whisper_model_load: qntvr         = 0
whisper_model_load: type          = 4 (medium)
whisper_model_load: adding 1607 extra tokens
whisper_model_load: n_langs       = 99
ggml_init_cublas: GGML_CUDA_FORCE_MMQ:   no
ggml_init_cublas: CUDA_USE_TENSOR_CORES: yes
ggml_init_cublas: found 1 CUDA devices:
CUDA error: invalid argument
  current device: 0, in function ggml_init_cublas at D:\a\whisper.cpp\whisper.cpp\ggml-cuda.cu:6843
  cuDeviceGetAttribute(&device_vmm, CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, device)
GGML_ASSERT: D:\a\whisper.cpp\whisper.cpp\ggml-cuda.cu:226: !"CUDA error"

Hardware specs:

i7-6700 non-K
64 GB RAM
RX 6800 XT
AMD Driver 23.12.1
64 GB RAM

I also tried with the CUDA 12.2 build whisper-cublas-12.2.0-bin-x64.zip and it also failed:
ggml_init_cublas: found 1 CUDA devices:
CUDA error: invalid argument
  current device: 0, in function ggml_init_cublas at D:\a\whisper.cpp\whisper.cpp\ggml-cuda.cu:6843
  cuDeviceGetAttribute(&device_vmm, CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, device)
GGML_ASSERT: D:\a\whisper.cpp\whisper.cpp\ggml-cuda.cu:226: !"CUDA error"

Please let me know if you need anything more from me to help resolve this issue.
Thank you
Andrew Jackson

Same issue here, only difference with description above is that I have installed HIP for Windows (since zluda uses it to access to amd gpu) : https://www.amd.com/fr/developer/resources/rocm-hub/hip-sdk.html
But maybe zluda doesn't find it ?

rename or archive these two files inside whisper folder : cublas64_11.dll & cusparse64_11.dll.
Go to your ZLUDA folder, copy these files from your zluda folder into whisper folder, renaming (and overwriting) as such;
cublas.dll ->  cublas64_11.dll
cusparse.dll ->  cusparse64_11.dll
this way it works.

Same issue here, only difference with description above is that I have installed HIP for Windows (since zluda uses it to access to amd gpu) : https://www.amd.com/fr/developer/resources/rocm-hub/hip-sdk.html But maybe zluda doesn't find it ?

rename or archive these two files inside whisper folder : cublas64_11.dll & cusparse64_11.dll.
Go to your ZLUDA folder, copy these files from your zluda folder into whisper folder, renaming (and overwriting) as such; cublas.dll -> cublas64_11.dll cusparse.dll -> cusparse64_11.dll
this way it works.

This works, thanks for the info. You forgot to mention, that you need the fork for this.
https://github.com/lshqqytiger/ZLUDA


C-API for llvm-dialects and generated dialects

It would be awesome if llvm-dialects could use the tablegen definitions to generate a C-API automatically.
But how to do so is probably worth some discussion.
As an example this is the current IRBuilder API:
https://github.com/llvm/llvm-project/blob/7fe29e585723c8a90e798b3d852f2c54efb6f5dd/llvm/include/llvm-c/Core.h#L3742-L3753
But there are also delightful enums like: https://github.com/llvm/llvm-project/blob/7fe29e585723c8a90e798b3d852f2c54efb6f5dd/llvm/include/llvm-c/Core.h#L60

It'd probably end up in a state similar to the LLVM C API where sometimes: the C API is strictly a wrapper around the C++ API and some features may not immediately be available in the C API.
I could imagine this working as a second set of llvm-dialects-tblgen actions: one to generate an .inc file for a C header, and one to generate an .inc file for a C++ source that implements the functions exposed by the C header by referring back to the C++ functions.
Layering it in this way ensures that the two APIs agree about how operands are represented etc.
Not sure about the enums...
In terms of project management: We (AMD) have no use for it, but I'd be happy to accept such a feature as long as it has testing that's roughly comparable with what's there for the C++ API.


Error compiling loss_kernel.cu (CUDA 11.6)

Hi! I have the following log after trying pip install . :
C:\Users\drumk\anaconda3\envs\plenoxel\lib\site-packages\torch\include\pybind11\cast.h(1503): error: too few arguments for template template parameter "Tuple"
          detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]"
(1507): here
2 errors detected in the compilation of "svox2/csrc/loss_kernel.cu".
loss_kernel.cu
error: command 'P:\\Program Files\\CUDA\\DEV\\bin\\nvcc.exe' failed with exit code 1
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Users\drumk\anaconda3\envs\plenoxel\lib\site-packages\colorama\ansitowin32.py", line 59, in closed
    return stream.closed
ValueError: underlying buffer has been detached`

Is it an issue on my side or something is wrong with the code? Thanks.

Hi, I'm having the same issue , do you have any idea to solve it? Thank you!!

Same issue here

Same issue here

Same issue here


EmbeddingData's field are private?

Hi there this crate is simple and great! I'm just wondering why EmbeddingData's fields are private here:
#[derive(Debug, Serialize, Deserialize)]
pub struct EmbeddingData {
	object: Option<String>,
	embedding: Option<Vec<f64>>,
	index: i32,
}

I would like to get the embedding vector directly.
PS: The link to the repo on the crate https://crates.io/crates/openai_api_rust is showing a 404, I think the link is different https://github.com/openai-rs/openapi-api

Thanks! That's my mistake. I have update it in v0.1.7, please check it.

Thanks! I'll close this now.


Update for adding timestamp to JS file name to avoid browser cache.

Coverage increased (+0.007%) to 50.702% when pulling c1c5ba815727bd24d78203d3d16e7b8cb6fc447b on wknet123:dev into cf5420d6e8bf1dbda24840547386fa5330eeedba on vmware:dev.

LGTM