fixed empty data crash when indicator is shown #125

This happened after update to latest version, cause method
    @Override     public Character getCharacterForElement(int element) {     } receives index 0 instead of -1 in earlier versions, when data is empty. Per Java implementation used in Android in case of 0, empty list throws IndexOutOfBoundsException instead of ArrayIndexOutOfBoundsException
    /**
     * Returns the element at the specified position in this list.
     *
     * @param  index index of the element to return
     * @return the element at the specified position in this list
     * @throws IndexOutOfBoundsException {@inheritDoc}
     */
   public E get(int index) {
        if (index >= size)
            throw new IndexOutOfBoundsException(outOfBoundsMsg(index));

        return (E) elementData[index];
    }

It's unclear to me what exactly the error is and why this PR would fix it. Could you provide more detail?

Our implementation of getCharacterForElement is
    @Override
    public Character getCharacterForElement(int position) {
                String code = items.get(position).getCode();
                return TextUtils.isEmpty(code) ? ' ' : code.charAt(0);
    }

After upgrade to latest version from v13.2.3, this code leads to crash. Before the upgrade in empty list case, position received as parameter was -1 and exception in that case was ArrayIndexOutOfBoundsException, which you handle. After upgrade position passed in case of empty list is 0, which leads to IndexOutOfBoundsException, which you don't handle

IndexOutOfBoundsException is parent class of ArrayIndexOutOfBoundsException, so we should handle it

Any updates?

getCharacterForElement should probably not be getting any calls when the RV is empty. I'll need to test things out and get back to you. I'm unfortunately swamped with university work, but I'll work to get this done as soon as I can manage.

That's another question, but in this context suggested solution works pretty well. Ok, will wait for your response.

In what circumstance is the indicator being shown that's causing the error other than the list being empty? Could you provide the stacktrace?

2019-03-12 09:44:47.612 3356-3356/com.armsoft.mtrade.dev E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.armsoft.mtrade.dev, PID: 3356
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.get(ArrayList.java:437)
        at com.armsoft.mtrade.ui.directory.item.ItemsAdapter.getCharacterForElement(ItemsAdapter.java:81)
        at com.turingtechnologies.materialscrollbar.AlphabetIndicator.getTextElement(AlphabetIndicator.java:34)
        at com.turingtechnologies.materialscrollbar.AlphabetIndicator.getTextElement(AlphabetIndicator.java:25)
        at com.turingtechnologies.materialscrollbar.Indicator.setText(Indicator.java:141)
        at com.turingtechnologies.materialscrollbar.ScrollingUtilities.scrollHandleAndIndicator(ScrollingUtilities.java:73)
        at com.turingtechnologies.materialscrollbar.MaterialScrollBar.onLayout(MaterialScrollBar.java:309)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at androidx.drawerlayout.widget.DrawerLayout.onLayout(DrawerLayout.java:1231)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at androidx.slidingpanelayout.widget.SlidingPaneLayout.onLayout(SlidingPaneLayout.java:710)
        at com.mikepenz.crossfader.view.CrossFadeSlidingPaneLayout.onLayout(CrossFadeSlidingPaneLayout.java:101)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
        at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
        at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
2019-03-12 09:44:47.613 3356-3356/com.armsoft.mtrade.dev E/AndroidRuntime:     at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
        at com.android.internal.policy.DecorView.onLayout(DecorView.java:753)
        at android.view.View.layout(View.java:20684)
        at android.view.ViewGroup.layout(ViewGroup.java:6194)
        at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2801)
        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2328)
        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1468)
        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7208)
        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1004)
        at android.view.Choreographer.doCallbacks(Choreographer.java:816)
        at android.view.Choreographer.doFrame(Choreographer.java:751)
        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6694)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Any updates?

Hi @turing-tech. It has been a long time since you last updated on this issue. We're still waiting for merge or any other solution.

@androideveloper Hi, I am unfortunately experiencing the same problem. Did you or @turing-tech
find a solution?
Great library btw!

@khecha This PR should resolve the issue when merged

@khecha This PR should resolve the issue when merged

Thanks, I hope it can be merged soon.
Do you have any quick fixes while I wait for the merge?

@khecha I don't think so, it's already a year since I've opened the PR. You can just catch that exception in your code until fixed.

Hi @turing-tech.  I am experiencing the same problem, and waiting for the PR to merge. When can we have update on this issue?

Merged


Template Studio configured in IIS as website is not showing anything on launch page.

Hi,
I am trying to configure template studio project into the IIS 8. Gave the "...\template-studio\src" path into the site physical path.
Node.js other projects are working fine on my machine via IIS. But "template-studio" is not working correctly. Only white page with "Contribute on GitHub" label is visible.
When I run this project via "npm run start" project runs successfully at localhost:8080.
I am running Windows 8.1 x64
Internet Information Services 8.5.9600.16384
Can someone please help me in configurations?

Hi @MuhammadBilal1 , thanks for opening an issue.
Template Studio is a ReactJS app and needs to be built before being used by a web-server. Please try running:
npm run build
Then use the dist directory as the path for IIS

Hi @MuhammadBilal1 , thanks for opening an issue.
Template Studio is a ReactJS app and needs to be built before being used by a web-server. Please try running:
npm run build
Then use the dist directory as the path for IIS

Thanks for your response. It worked.
But now there is another issue. (But this issue came when I used the cmd)
Upon page load, I am getting a message "Server did not respond for URL<EMAIL_ADDRESS>and everything is coming null.

I'm glad to see that you're making progress!
Template Studio tries to download the sample templates from the web.
Perhaps this is something to do with the static content feature? https://www.syncfusion.com/kb/8633/how-to-enable-the-static-content-for-a-web-page-site-in-iis
Otherwise, maybe it's a firewall or security issue on your server. Any ideas?

@mttrbrts  Static Content is already there in my IIS.
I don't think any firewall issue is causing this.
I checked the security setting of the directory and found there is no issue in directory rights.
Can you please suggest something else!

@mttrbrts  Actually I found something, this might help me.
I found an error in console. Please see attached Image.

@MuhammadBilal1 Have you tried npm run start instead of npm run build ? the build script is meant for deployment, while (in theory) npm run start runs a local server with development configuration (so the path would be to your local host).

If you do want to run your own server, you will have to setup an appropriate Cross-Origin-Resource-Sharing (CORS) configuration, since template studio tries to access resources on a third-party server (the links at studio.accordproject.org). This configuration can be server-specific.

@jeromesimeon : Yes, I want to run my own server (which is IIS).
Can you please help me with CORS? I am trying to setup, any help will be appreciated.

@MuhammadBilal1 I'm afraid my understanding of CORS is quite limited. You might have better luck asking that question on the Accord Project Slack, or looking for help online.
I found this page with a bit of explanation on CORS:
https://www.keycdn.com/support/cors
Also there seems to be some material on IIS and CORS around, e.g.,
https://stackoverflow.com/questions/19323323/configure-iis-express-8-to-enable-cors

@mttrbrts @jeromesimeon  : The interesting thing in my scenario is:
Server did not respond for URL
This issue is coming even if I am using the CMD "npm run start", but with localhost:8080 URL.
Please see attached images.

@mttrbrts @jeromesimeon Any help will be appreciated.
Still unable to complete configurations with "npm run start" command.

@MuhammadBilal1 I am not entirely sure why, the webpack log clearly shows the helloworld archive being copied to the server. I'm wondering if it might be a Windows related issue, but I don't have an easy way to test at the moment.
Could you let us know if you are able to load from an external URL (e.g.,
<EMAIL_ADDRESS>). After pressing cancel you should be able to try that using the Import ... from URL in the Template menu in the top bar.

Also:

what browser are you using?
could you try and just copy-paste the local URL for the archive directly your browser window<EMAIL_ADDRESS>see if it's working and if the archive is present?

@jeromesimeon  Thanks for you response.
Your first method (Import from templates.accordproject.org) worked.
I am using Google Chrome. But the result is same in IE & FireFox as well.
Copy-paste the<EMAIL_ADDRESS>in browser directly gives no response. Browser keeps circling and gives no response.
Yes, directory exist at place.
Is there any setting related to the type of file we are requesting<EMAIL_ADDRESS>

Thanks @MuhammadBilal1 I think the first method shows that there is no issue loading a template, and that there is a problem when building.
I don't believe there is any setting specific to the file type, but it is using a plugin for webpack which copies files from ./static to an equivalent directory on the server side. The configuration for that is in webpack.config.dev.js:
    new CopyWebpackPlugin([
      { from: 'static', to: 'static' }
    ]),

I'm not sure how to fix this without being able to reproduce it.


Allow messages to be larger than required size

In many cases a message contains variable-length data.  The decode/encode functions should allow callers to pass in the complete message rather than having to understand the details of the message structures that the decode/encode functions are attempting to abstract.
The change here is simply to allow any input buffer that is at least as big as the message size requires.

Gerrit please.

Where are the instructions on how to submit to gerrit?

Where are the instructions on how to submit to gerrit?

https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#submitting-changes-via-gerrit-server-to-openbmc


Uuid support for MySQL

While there's no native UUID type in mysql, we can use either the standard hex-encoded string, or a raw BYTES(16) to represent a UUID.
I think this may still need some more type data setup. The Encode also assumes a binary encoding, but mysql aggregate functions exist to support both the 128-bit encoding, and the hex-encoded string with the dashes, so we ought to be able to encode to both somehow: https://dev.mysql.com/doc/refman/8.0/en/miscellaneous-functions.html#function_uuid .

This is a good start.
Each Rust type needs to pick one SQL type if the format we encode to is different. The mysql crate picks BINARY(16). I believe that's probably fine for the uuid::Uuid type.
Why don't we implement Type as CHAR(36) for https://docs.rs/uuid/0.8.1/uuid/adapter/struct.Hyphenated.html ? That way it's simple for users to do some_uuid.to_hyphenated() and have it sent to MySQL as CHAR(36).
One more thing, Decode does not allow switching between textual and binary types but the encoding format in the protocol. In MySQL, if you make a parameterized query, the returned value is encoded in a binary encoding. If you make a simple query, the returned value is in a textual encoding.
Here is an example of using trait delegation to re-use the impl for &[u8]:
impl Decode<'_, MySql> for Uuid {
    fn decode(value: MySqlValueRef<'_>) -> Result<Self, BoxDynError> {
        // delegate to the &[u8] type to decode from MySQL
        let bytes = <&[u8] as Decode<MySql>>::decode(value)?;

        // construct a Uuid from the returned bytes
        Uuid::from_slice(bytes).map_err(Into::into)
    }
}

@mehcode so that sounds right to me -- where do those BINARY and CHAR types get defined?

@mehcode Alright we've put in support for uuid::adapter::Hyphenated as well. Anything else?


2D rendering issue

Godot version:
2.1.5
OS/device including version:

Windows (only windows user reported it)
NVidia GTX 1080Ti (maybe more I don't all of it yet)

Issue description:
Most of the rendering is blurry on foreground, and get sharp on background.
Minimal project + step to reproduce
https://github.com/xsellier/godot-2.1-render-bug
List of people who are having the same issue
https://steamcommunity.com/app/726840/discussions/0/1651043958646410385/
https://steamcommunity.com/app/726840/discussions/0/1842440600605384185/ (look at the last message for more informations)
https://steamcommunity.com/app/726840/discussions/0/1797403972744401372/
https://steamcommunity.com/profiles/76561198141817886/recommended/726840/

Godot 2.1 doesn't feature DynamicFont oversampling, so if you use the 2d stretch mode, you will have to find another way to get crisp visuals. One way is to use an high "design resolution" in the Project Settings (by setting the width and height to 3840 and 2160, for instance), then set the Test Width and Test Height to lower values when testing the project.

Not related to font oversampling, but thank you.

@xsellier The comment I wrote also applies to other 2D elements, as you basically need to ship higher-resolution assets than what you'd use at most resolutions.

Please, read the issue, please do it:
https://github.com/binogure-studio/city-game-studio-i18n/issues/105

I don't know what could be causing the visual output to change depending on whether the game window is focused or not.
That said, I can see a separate issue on the second screenshot: when you enable filter and mipmaps, Godot will downscale 2D elements using linear filtering, which doesn't look great for heavily downscaled images. Godot 3.1 has an Image method to resize images with trilinear interpolation (which usually looks better), but it can only be called manually. In other words, it can't be used to resize all 2D elements with trilinear interpolation.

You are right, it might be related to downscaling images. However, here is a sprite (so, not a UI element),
On left, application is on background, and on the right application is on foreground:

Just to add a bit more informations about it, the same scene from Godot Engine

And also, this happens only on Windows, I cannot reproduce it on Linux/MacOS.

Here is another tiny issue, I'm not sure that it is a different issue.
On the left, you can see that there is an issue with the rendering. On the right the image is properly rendered. Difference between those 2 images is the camera position. I moved it by 2 pixels on the right.

@xsellier regarding your tiny issue, I think you could try to enable rendering/quality/2d/use_pixel_snap in project settings, so that sub-pixel camera position won't affect rendering, though I'm not sure whether it's present in 2.1.
I think zooming could also somehow interfere with this (mipmaps generation issue)?

@xsellier regarding your tiny issue, I think you could try to enable rendering/quality/2d/use_pixel_snap in project settings, so that sub-pixel camera position won't affect rendering, though I'm not sure whether it's present in 2.1. If not, you could try to manually clamp camera position yourself to "integer" coordinates.
I think zooming could also somehow interfere with this (mipmaps generation issue)?

Nice suggestions. I tried with pixel_snap enabled, it fixes the tiny issue. Since I did not want to use pixel_snap because it breaks some animations (stuttering), I replaced the set_pos function of the camera by something like:
func set_camera_pos(position):
  position.x = int(position.x)
  position.y = int(position.y)

  set_pos(position)

About the main issue, 2D rendering, I've narrowed it to the following conditions:

Windows (from 8 to 10)
Screen resolution above 2560 x 1440
Set Godot Engine to fullscreen
Graphic card: NVidia

So this issue is not related to this windows issue: https://support.microsoft.com/en-us/help/2802799/display-resolutions-higher-than-2048x1152-may-not-display-properly-on
So this is an actual screenshot of the minimal project:

As you can see, the image resolution is 2560 x 1440 but it shows only 2048 x 1152.
The screenshot isn't blurry because the issue cannot be screenshot, meaning if you want to see the issue you need to take an actual picture of your screen.

If you're using scaling above 100% in Windows, try making the Godot executable DPI-aware as explained in https://github.com/godotengine/godot/issues/24922#issuecomment-455479830

@Calinou Thank you, since in v2.1.* High DPI is not implemented for Windows, I had to cherry-pick this commit: https://github.com/godotengine/godot/commit/eb0f9651b3bb12b79db4ee4f8862a3be16a11ea5
Backporting it to v2.1 branch fixes the issue

Fixed by #29550.


In Our Products tab

In Our Products tab start editing and add filter tab like Hard Liquor, Beer, Non Alcoholic stuff. and also put price under it.

almost done with filter. still working on price


Update krita.sh

Current label is broken due to download URL change by the developer. This PR fixes the problem.

2024-04-04 14:41:20 : REQ   : krita : ################## Start Installomator v. 10.6beta, date 2024-04-04
2024-04-04 14:41:20 : INFO  : krita : ################## Version: 10.6beta
2024-04-04 14:41:20 : INFO  : krita : ################## Date: 2024-04-04
2024-04-04 14:41:20 : INFO  : krita : ################## krita
2024-04-04 14:41:20 : INFO  : krita : SwiftDialog is not installed, clear cmd file var
2024-04-04 14:41:20 : INFO  : krita : BLOCKING_PROCESS_ACTION=tell_user
2024-04-04 14:41:20 : INFO  : krita : NOTIFY=success
2024-04-04 14:41:20 : INFO  : krita : LOGGING=INFO
2024-04-04 14:41:20 : INFO  : krita : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2024-04-04 14:41:20 : INFO  : krita : Label type: dmg
2024-04-04 14:41:20 : INFO  : krita : archiveName: krita.dmg
2024-04-04 14:41:20 : INFO  : krita : no blocking processes defined, using krita as default
2024-04-04 14:41:20 : INFO  : krita : name: krita, appName: krita.app
2024-04-04 14:41:21.011 mdfind[71119:2762765] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2024-04-04 14:41:21.011 mdfind[71119:2762765] [UserQueryParser] Loading keywords and predicates for locale "en"
2024-04-04 14:41:21.072 mdfind[71119:2762765] Couldn't determine the mapping between prefab keywords and predicates.
2024-04-04 14:41:21 : WARN  : krita : No previous app found
2024-04-04 14:41:21 : WARN  : krita : could not find krita.app
2024-04-04 14:41:21 : INFO  : krita : appversion:
2024-04-04 14:41:21 : INFO  : krita : Latest version of krita is 5.2.2
2024-04-04 14:41:21 : REQ   : krita : Downloading https://download.kde.org/stable/krita/5.2.2/krita-5.2.2.dmg to krita.dmg
2024-04-04 14:41:24 : REQ   : krita : no more blocking processes, continue with update
2024-04-04 14:41:24 : REQ   : krita : Installing krita
2024-04-04 14:41:24 : INFO  : krita : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ZU02Zs5e2v/krita.dmg
2024-04-04 14:41:29 : INFO  : krita : Mounted: /Volumes/krita 1
2024-04-04 14:41:29 : INFO  : krita : Verifying: /Volumes/krita 1/krita.app
2024-04-04 14:41:38 : INFO  : krita : Team ID matching: 5433B4KXM8 (expected: 5433B4KXM8 )
2024-04-04 14:41:38 : INFO  : krita : Installing krita version 5.2.2 on versionKey CFBundleShortVersionString.
2024-04-04 14:41:38 : INFO  : krita : App has LSMinimumSystemVersion: 10.13
2024-04-04 14:41:38 : INFO  : krita : Copy /Volumes/krita 1/krita.app to /Applications
2024-04-04 14:41:43 : WARN  : krita : Changing owner to kryptonit
2024-04-04 14:41:44 : INFO  : krita : Finishing...
2024-04-04 14:41:47 : INFO  : krita : App(s) found: /Applications/krita.app
2024-04-04 14:41:47 : INFO  : krita : found app at /Applications/krita.app, version 5.2.2, on versionKey CFBundleShortVersionString
2024-04-04 14:41:47 : REQ   : krita : Installed krita, version 5.2.2
2024-04-04 14:41:47 : INFO  : krita : notifying
displaynotification:7: no such file or directory: /usr/local/bin/dialog
2024-04-04 14:41:47 : INFO  : krita : Installomator did not close any apps, so no need to reopen any apps.
2024-04-04 14:41:47 : REQ   : krita : All done!
2024-04-04 14:41:47 : REQ   : krita : ################## End Installomator, exit code 0

There's something going on with this label, so we cannot accept it at this time.
The expectedTeamID is now failing for me with the changes you made. Also, when I look at apps on kde.org for Krita I'm seeing an older version and the old expected TeamID.
Can you explain anything going on with the TeamID and versioning?

There's something going on with this label, so we cannot accept it at this time.
The expectedTeamID is now failing for me with the changes you made. Also, when I look at apps on kde.org for Krita I'm seeing an older version and the old expected TeamID.
Can you explain anything going on with the TeamID and versioning?

Yeah, the label worked when I made the changes, but I recently ran into this discussion which explains why a different TeamID has been used recently:
https://krita-artists.org/t/code-signature-changed/95187
It seems to be a bit of a mess.

I'm going to close this out for now, but hopefully it gets figured out in the future and we can add the label then.


Lookup jobs at session level

In order to optimize the api/<cont_name>/<cont_id>/jobs endpoint, it has been modified to only accept sessions, and returns a json map of acquisitions from the given session and jobs they are associated with.
Example request:
GET /api/sessions/3/jobs?states=pending&states=failed&tags=a&tags=b HTTP/1.1

Example response:
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
{
  "576c17a1ae22e9bc2ba01d8f": [
    {
      "name": "dcm-convert",
      "tags": [
        "dcm-convert"
      ],
      ...
    }
  ],
  "576c1796ae22e9bc2ba01d8e": [
    {
      "name": "dcm-convert",
      "tags": [
        "dcm-convert"
      ],
      ...
    },
    {
      "name": "dcm-convert",
      "tags": [
        "dcm-convert"
      ],
      ...
    }
  ]
}

LGTM and tested on a session in the example dataset.

Thanks @kofalt for his help in writing this. Merging now.


Makefile for wrapmzpotrf.so

fix: this flag is required by  in Ubuntu 22.04
feat: simple Makefile to build wrapmzpotrf.so

fixed in #27


Encoding invoices with empty description and description_hash

Right now encoding invoices with no description or ("" as description) throws
ValueError: Must include either 'd' or 'h'

fixed here. https://github.com/lnbits/bolt11/pull/18


PostgreSQL port not shown in SCP.

Latest 0.8.1 x64 version on Win8.

The new postgresql settings were missing in the default wpn-xm.ini file.
Fixed with this commit https://github.com/WPN-XM/WPN-XM/commit/7f856712f68303d95e3b1e340d5908588ab4f85b#diff-0325fcc7907da19bf1a9ace7ec983941R52

Confirming fixed in 0.8.2. Thanx!

ah, good. finally some progress.


Can't exit command menu via keyboard

With the command menu open (ctrl+g ctrl+g), there doesn't seem to be a way to exit it via the keyboard. i.e. You can click outside of it to exit, but I'd expect "esc" or another "ctrl+g ctrl+g" to close it as well.

Esc should close the menu (and does on my machine). Could you share your OS and browser version so we can try and track down the problem?

Ah, I bet it's Vimium that's trapping the escape key. That always gets me https://github.com/philc/vimium/issues/239
What do you think about a second cntrl+g cntrl+g closing the menu if it's already open?

Yes, that sounds like a natural way to do it.

Looks like this was fixed in vimium a while ago.


Com dbs tables

This PR contains:

New com-db-manage.md
New com-table-manage.md
Revised /com-query/com-query-home
New include file used in manage tables and com
Revised /com-query-home.md with the include file and brief description of query editor and query builder
Revised Nav order

It builds and has been tested for broken links

Fair enough, but they still could come after rewrites. That's iterating. Rewrites first please 🙏 . Go ahead and merge


Obj store through sidecar

What did you have in mind for tests of this behavior specifically. Other than trying to come up with containers that reproduce the original issue, which I'm kind of unsure how to do, it seems like our existing pipeline tests are basically the same as whatever tests I would write.

After a quick offline discussion, I withdraw my objection for testing until such time as we have a better mock object storage client framework for testing.

Renames done.

LGTM


Move inherents to primitives

Next step towards #4099, this PR removes any dependency from client to paint. This is being achieved by moving all inherents into primitives, creating three more super thin crates, that all others then reference. The newly added files, therefore, are just code moves with minor modifications regarding import names.
The new crates are prefixed already with sp- as per the convention that will be following.

looks good - merge when ready @gnunicorn


[WIP] Cuda source cleanup , refactor and fixes

This is a draft Pr for cleanup of cuda kernels, refactor template assignments and fix some AOT issues.
The cuda kernels have some scope of cleanup in terms of redundant code pathways and unused methods.
cc @matthewdouglas , @Titus-von-Koeller
@TimDettmers (pinging for awareness).

Thanks! We actually just recently were discussing some cleanup here so this fits nicely timing-wise!

@abhilash1910
Thanks for the PR, really appreciate the pro-activity in helping us clean things up!
I just had a chat with Tim and he reviewed the PR and said everything looks good to him.
I see you put the PR as draft, are there any more changes coming or can wrap things up?

Hi @Titus-von-Koeller , I am planning to wrap this up in a couple of hours from now.
Will ping you . Thanks


Webreg: Solve Conflicting Class in Calendar

Create and implement UI/UX for the calendar when a user has multiple classes on the same day/time.

Sending your way @chrisqz95
Reference:

I tested the new build 698 in TestFlight, and it seems like we also need to deal with animations in conflicting classes. Currently the animation shows some discontinuity despite the code looks good.
Link to demo video.

This issue is being closed due to platform migration and may be revisited at a later date.


weird kernel dispatch for gradient of 3-interpolate

Hi
From Votenet repository, which uses this implementation of pointnet2, I notice an issue about three_interpolate_grad_kernel_wrapper;
https://github.com/facebookresearch/votenet/issues/36#issue-508854259
It says:'It appears that gradient kernel was never actually used cuz here it's dispatching the same kernel as in forward'
May I ask you implemented intentionally or is it a bug?

Definitely a bug!  Interesting that it doesn't seem to matter for the performance of PointNet++ or votenet as that has been there for a long time.  Deep learning is weird!


Intellisense suddenly stopped working after March update (v1.88)

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

VS Code Version: 1.88
OS Version: Windows_NTx64 10.0.1905

Steps to Reproduce:

VSCode's automatic update upgraded me to v1.88
Intellisense stopped working for intelligent things (such as React Native component prop autocompletion) and only worked for super basic things (such as string function param value options such as "Hi" | "Hello" using JSDoc)
I downgraded to version 1.87.2 on April 5th, 2024
Intellisense started working again
But now I have to stay in an old version

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

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

The issue happened because I used the latest version

It is possible that the issue you experienced in 1.88 was fixed in 1.88.1,so please try it.

It is possible that the issue you experienced in 1.88 was fixed in 1.88.1,so please try it.

Alright, I'll try

Hey @mjbvz, this issue might need further attention.
@Proman4713, you can help us out by closing this issue if the problem no longer exists, or adding more information.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


rpc error: code = Unknown desc = unimplemented

What went wrong? Settings?
quay.io/go-skynet/local-ai:master-cublas-cuda11
request:
{
    "model": "llama-7b-hf",
    "messages": [
        {
            "role": "user",
            "content": "Hello! What is your name?"
        }
    ]
}

response:
{
    "error": {
        "code": 500,
        "message": "rpc error: code = Unknown desc = unimplemented",
        "type": ""
    }
}

log:
@@@@@
Skipping rebuild
@@@@@
If you are experiencing issues with the pre-compiled builds, try setting REBUILD=true
If you are still experiencing issues with the build, try setting CMAKE_ARGS and disable the instructions set as needed:
CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF"
see the documentation at: https://localai.io/basics/build/index.html
Note: See also https://github.com/go-skynet/LocalAI/issues/288
@@@@@
CPU info:
model name      : Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 invpcid_single intel_ppin intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts
CPU:    AVX    found OK
CPU:    AVX2   found OK
CPU: no AVX512 found
@@@@@
ESC[90m5:38AMESC[0m ESC[33mDBGESC[0m no galleries to load
ESC[90m5:38AMESC[0m ESC[32mINFESC[0m Starting LocalAI using 4 threads, with models path: /llm-model-volume
ESC[90m5:38AMESC[0m ESC[32mINFESC[0m LocalAI version: 12fe093 (12fe0932c41246914e455c4175269a431fb8cf60)
ESC[90m5:38AMESC[0m ESC[33mDBGESC[0m Extracting backend assets files to /tmp/localai/backend_data

 ┌───────────────────────────────────────────────────┐
 │                   Fiber v2.48.0                   │
 │               http://<IP_ADDRESS>:8080               │
 │       (bound on host <IP_ADDRESS> and port 8080)       │
 │                                                   │
 │ Handlers ............ 32  Processes ........... 1 │
 │ Prefork ....... Disabled  PID ................ 14 │
 └───────────────────────────────────────────────────┘

6:21AM DBG Request received:
6:21AM DBG Configuration read: &{PredictionOptions:{Model:llama-7b-hf Language: N:0 TopP:0.7 TopK:80 Temperature:0.9 Maxtokens:512 Echo:false Batch:0 F16:false IgnoreEOS:false RepeatPenalty:0 Keep:0 MirostatETA:0 MirostatTAU:0 Mirostat:0 FrequencyPenalty:0 TFZ:0 TypicalP:0 Seed:0} Name: StopWords:[] Cutstrings:[] TrimSpace:[] ContextSize:512 F16:false NUMA:false Threads:4 Debug:true Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat: ChatMessage: Completion: Edit: Functions:} MirostatETA:0 MirostatTAU:0 Mirostat:0 NGPULayers:0 MMap:false MMlock:false LowVRAM:false TensorSplit: MainGPU: ImageGenerationAssets: PromptCachePath: PromptCacheAll:false PromptCacheRO:false Grammar: PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: FunctionsConfig:{DisableNoAction:false NoActionFunctionName: NoActionDescriptionName:} SystemPrompt:}
6:21AM DBG Parameters: &{PredictionOptions:{Model:llama-7b-hf Language: N:0 TopP:0.7 TopK:80 Temperature:0.9 Maxtokens:512 Echo:false Batch:0 F16:false IgnoreEOS:false RepeatPenalty:0 Keep:0 MirostatETA:0 MirostatTAU:0 Mirostat:0 FrequencyPenalty:0 TFZ:0 TypicalP:0 Seed:0} Name: StopWords:[] Cutstrings:[] TrimSpace:[] ContextSize:512 F16:false NUMA:false Threads:4 Debug:true Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat: ChatMessage: Completion: Edit: Functions:} MirostatETA:0 MirostatTAU:0 Mirostat:0 NGPULayers:0 MMap:false MMlock:false LowVRAM:false TensorSplit: MainGPU: ImageGenerationAssets: PromptCachePath: PromptCacheAll:false PromptCacheRO:false Grammar: PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: FunctionsConfig:{DisableNoAction:false NoActionFunctionName: NoActionDescriptionName:} SystemPrompt:}
6:21AM DBG Prompt (before templating): Hello! What is your name?
6:21AM DBG Template failed loading: failed loading a template for llama-7b-hf
6:21AM DBG Prompt (after templating): Hello! What is your name?
6:21AM DBG Model already loaded in memory: llama-7b-hf
6:21AM DBG Model 'llama-7b-hf' already loaded
[<IP_ADDRESS>]:43283  500  -  POST     /v1/chat/completions

Deployed in k8s, the GPU has been configured, but it should not take effect
    resources:
      limits:
        cpu: "1"
        memory: 50Gi
        nvidia.com/gpu: "4"
      requests:
        cpu: "1"
        memory: 50Gi
        nvidia.com/gpu: "4"

I have the same problem when running LocalAI in a Docker container. The logs contain numerous lines of the form:
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:33427: connect: connection refused"

FYI: the problem occurs both in local Docker builds and the ":latest" image from go-skynet

Yes same here. used the latest version with GPT4All model and it just gives errors.
Same on Kubernetes and local

If it can help, my (very similar) error message :
curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{
     "model": "ggml-gpt4all-j",
     "messages": [{"role": "user", "content": "How are you?"}],
     "temperature": 0.9
   }'

{"error":{"code":500,"message":"rpc error: code = Unknown desc = unimplemented","type":""}}

I am currently trying to compile a previous release in order to see until when LocalAI worked without this problem. Unfortunately, the Docker build command seems to expect the source to have been checked-out as a Git project and refuses to build from an unpacked ZIP archive...

did you tried running with REBUILD=true? also please attach full logs with DEBUG=true

Ok, so I

checked out the latest version from GitHub,
uncommented REBUILD=true and DEBUG=true in .env,
rebuilt using docker build -t localai . and
started like above using

docker run --rm --name localai \
  -v "/path/to/your/local/models/folder":/build/models \
  -p <IP_ADDRESS>:8080:8080 \
  localai

and tested with

curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json"  -d '{
  "model":"llama-2-13b.ggmlv3.q4_0",
  "messages": [
    {"role":"system", "content":"Perform the instructions to the best of your ability.\n"},
    {"role": "user", "content": "### Instruction: who was Joseph Weizenbaum?\n### Response:"}
  ],
  "temperature": 0.0,
  "max_tokens": 256,
  "stream": false
}'

with the same result as before. Here are the logs (mind the "skipping rebuild")
@@@@@
Skipping rebuild
@@@@@
If you are experiencing issues with the pre-compiled builds, try setting REBUILD=true
If you are still experiencing issues with the build, try setting CMAKE_ARGS and disable the instructions set as needed:
CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF"
see the documentation at: https://localai.io/basics/build/index.html
Note: See also https://github.com/go-skynet/LocalAI/issues/288
@@@@@
CPU info:
CPU: no AVX    found
CPU: no AVX2   found
CPU: no AVX512 found
@@@@@
3:31AM DBG no galleries to load
3:31AM INF Starting LocalAI using 4 threads, with models path: /build/models
3:31AM INF LocalAI version: v1.22.0-19-gdde12b4 (dde12b492b2da4f14d66047a42b66bff80e223af)

 ┌───────────────────────────────────────────────────┐
 │                   Fiber v2.48.0                   │
 │               http://<IP_ADDRESS>:8080               │
 │       (bound on host <IP_ADDRESS> and port 8080)       │
 │                                                   │
 │ Handlers ............ 31  Processes ........... 1 │
 │ Prefork ....... Disabled  PID ................ 14 │
 └───────────────────────────────────────────────────┘

rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:38673: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:41499: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:41677: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:36709: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:37449: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:33973: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:42041: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:45563: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:34759: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:42351: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:44449: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:36327: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:35585: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:45917: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:35687: connect: connection refused"
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp <IP_ADDRESS>:33939: connect: connection refused"

here is my .env
## Set number of threads.
## Note: prefer the number of physical cores. Overbooking the CPU degrades performance notably.
THREADS=4

## Specify a different bind address (defaults to ":8080")
ADDRESS=<IP_ADDRESS>:8080

## Default models context size
CONTEXT_SIZE=4096

## Define galleries.
## models will to install will be visible in `/models/available`
#GALLERIES=[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}, {"name":"huggingface","url":"github:go-skynet/model-gallery/huggingface.yaml"}]

## CORS settings
CORS=true
CORS_ALLOW_ORIGINS=*

## Default path for models
# MODELS_PATH=/models

## Enable debug mode
DEBUG=true

## Specify a build type. Available: cublas, openblas, clblas.
# BUILD_TYPE=metal

## Uncomment and set to true to enable rebuilding from source
REBUILD=true

## Enable go tags, available: stablediffusion, tts
## stablediffusion: image generation with stablediffusion
## tts: enables text-to-speech with go-piper
## (requires REBUILD=true)
#
# GO_TAGS=stablediffusion

## Path where to store generated images
# IMAGE_PATH=/tmp

## Specify a default upload limit in MB (whisper)
# UPLOAD_LIMIT

here is the environment of the running container as reported by Docker (mind the "REBUILD=false")
Environment
PATH
/usr/local/cuda/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

GOLANG_VERSION
1.20.6

GOPATH
/go

BUILD_TYPE

EXTERNAL_GRPC_BACKENDS
huggingface-embeddings:/build/extra/grpc/huggingface/huggingface.py

REBUILD
false

HEALTHCHECK_ENDPOINT
http://localhost:8080/readyz

Mounts
/build/models
/Users/andreas/rozek/AI/models/meta-ai/llama2

Port
8080/tcp
<IP_ADDRESS>:8080

adding to this, same issues here both local docker & EKS via AL2 amd64
I can get through to /v1/models ok, but can't do anything with a model otherwise I get a timeout & various forms of:
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp [::1]:33427: connect: connection refused"

seems it might just be an issue with the localAI image. building from scratch in a container works ok :
`
FROM  public.ecr.aws/amazonlinux/amazonlinux:latest
RUN yum install git -y
RUN yum install golang -y
RUN yum group install "Development Tools" -y
RUN yum install cmake -y
RUN git clone https://github.com/go-skynet/LocalAI.git
WORKDIR /LocalAI
RUN make build
COPY . .
EXPOSE 8080
ENTRYPOINT [ "./local-ai", "--debug", "--models-path", "./models", "" ]
`

@rozek @nabbl @Mer0me  I had precisely the same error message as you had, so our problems may be the same. I inspected the usage of hardware resources by docker containers, and at least in my case, it was the memory limit issue. Docker Desktop (in Ubuntu 22.04) ships with a default memory limit smaller than the size of LLM (gpt4all in my case). About the Docker Desktop's memory limit, see https://stackoverflow.com/a/44533437.
It was difficult to figure out it was the memory limit issue because the error message does not deliver it directly. Also, I don't know well about Docker, nor about LLMs, so it took some time for me to figure out the source of the problem in my machine. I think it will definitely help to include a note about increasing Docker's memory limit enough to have LLM on memory in the getting started page: https://localai.io/basics/getting_started/index.html
Note that I also uncommented REBUILD=true in .env file.

@allenhaozi Also given that your debug log says it failed to load the template, I wonder if it is the issue of (1) the wrong path set to find model template, or (2) not enough memory to load template.

@allenhaozi Also given that your debug log says it failed to load the template, I wonder if it is the issue of (1) the wrong path set to find model template, or (2) not enough memory to load template.

@swoh816 , use quay.io/go-skynet/local-ai:v1.23.2-cublas-cuda11 image, got the following errors
request:
{
    "model": "chatglm2-6b",
    "messages": [
        {
            "role": "user",
            "content": "How are you?"
        }
    ],
    "temperature": 0.9
}

response:
{
    "error": {
        "code": 500,
        "message": "rpc error: code = Unknown desc = unimplemented",
        "type": ""
    }
}

log:
4:07AM DBG Request received:
4:07AM DBG Configuration read: &{PredictionOptions:{Model:chatglm2-6b Language: N:0 TopP:0.7 TopK:80 Temperature:0.9 Maxtokens:512 Echo:false Batch:0 F16:false IgnoreEOS:false RepeatPenalty:0 Keep:0 MirostatETA:0 MirostatTAU:0 Mirostat:0 FrequencyPenalty:0 TFZ:0 TypicalP:0 Seed:0 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0} Name: StopWords:[] Cutstrings:[] TrimSpace:[] ContextSize:512 F16:false NUMA:false Threads:1 Debug:true Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat: ChatMessage: Completion: Edit: Functions:} MirostatETA:0 MirostatTAU:0 Mirostat:0 NGPULayers:0 MMap:false MMlock:false LowVRAM:false TensorSplit: MainGPU: ImageGenerationAssets: PromptCachePath: PromptCacheAll:false PromptCacheRO:false Grammar: PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: FunctionsConfig:{DisableNoAction:false NoActionFunctionName: NoActionDescriptionName:} SystemPrompt: RMSNormEps:0 NGQA:0}
4:07AM DBG Parameters: &{PredictionOptions:{Model:chatglm2-6b Language: N:0 TopP:0.7 TopK:80 Temperature:0.9 Maxtokens:512 Echo:false Batch:0 F16:false IgnoreEOS:false RepeatPenalty:0 Keep:0 MirostatETA:0 MirostatTAU:0 Mirostat:0 FrequencyPenalty:0 TFZ:0 TypicalP:0 Seed:0 NegativePrompt: RopeFreqBase:0 RopeFreqScale:0 NegativePromptScale:0} Name: StopWords:[] Cutstrings:[] TrimSpace:[] ContextSize:512 F16:false NUMA:false Threads:1 Debug:true Roles:map[] Embeddings:false Backend: TemplateConfig:{Chat: ChatMessage: Completion: Edit: Functions:} MirostatETA:0 MirostatTAU:0 Mirostat:0 NGPULayers:0 MMap:false MMlock:false LowVRAM:false TensorSplit: MainGPU: ImageGenerationAssets: PromptCachePath: PromptCacheAll:false PromptCacheRO:false Grammar: PromptStrings:[] InputStrings:[] InputToken:[] functionCallString: functionCallNameString: FunctionsConfig:{DisableNoAction:false NoActionFunctionName: NoActionDescriptionName:} SystemPrompt: RMSNormEps:0 NGQA:0}
4:07AM DBG Prompt (before templating): How are you?
4:07AM DBG Template failed loading: failed loading a template for chatglm2-6b
4:07AM DBG Prompt (after templating): How are you?
4:07AM DBG Model already loaded in memory: chatglm2-6b
4:07AM DBG Model 'chatglm2-6b' already loaded
[<IP_ADDRESS>]:50320  500  -  POST     /v1/chat/completions

I just followed the example have the same issue here with
docker-compose version 1.29.2, build unknown

Increasing the memory as described by @swoh816 is what resolved this error for me.
Additionally, once that was fixed, text generation was extremely slow. The fix for that was to set threads equal to the number of CPU on the Kubernetes node.

Could someone share what configuration this does build and run successfully in?

I followed the example and ran into the same problem here

Another frustrated user here; I can't get anything to work, including the 'Getting started' instructions.  Trying a cublas build with Docker.  I get the feeling the Local.AI architecture is failing to surface errors from the back-end that would tell the problem.  Requested #1416

same issue

Having same issue, nothing helps.

I hit the same issue and managed to reproduce conditions to trigger it and found workaround.
Context:
Kubernetes setup with Nvidia GPU. I have downloaded "tinyllama-chat" model by providing "tinyllama-chat" string as argument for localAI container. This resulted in "/models/25ffd5a5778ba4ed16fce83e1949725f.yaml" config file and "/models/84fe2946ae6893ef8c676f248157ad62" model file for model name "tinyllama-chat".
How to trigger "error 500 rpc error: code = Unknown desc = unimplemented" bug:
Do a fresh restart of localAI container. Send a completion query with "model" field set to "tinyllama-chat", for example as this one
curl https://<address>/v1/chat/completions -H "Content-Type: application/json" -d '{
    "model": "tinyllama-chat",
    "messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
}':

Result: localAI tries to load model with various backends, finally saying that it loaded model with "stablediffusion" backend. This and all further queries on this instance will return error 500.
How to work around this bug:
To avoid triggering this bug, first query after restart needs to have it's "model" field set to model file name (so in my case "84fe2946ae6893ef8c676f248157ad62"), not model name ("tinyllama-chat"). Subsequent queries can correctly use model name without triggering this bug.
So: Do a fresh restart of localAI container. Send a completion query with "model" field set to model file name, so in my case:
curl https://localai.expro.name/v1/chat/completions -H "Content-Type: application/json" -d '{
    "model": "84fe2946ae6893ef8c676f248157ad62",
    "messages": [{"role": "user", "content": "How are you doing?", "temperature": 0.1}]
}'

Result: localAI correctly loads model with "llama.cpp" backend and answers query. All subsequent queries till restart with "model" field set to ""tinyllama-chat" will work correctly.
Summary:
Entire issue hangs on first query for particular model. Model name in query should work correctly every time, but due to bug first query in this fassion bugs out model till next restart.

In case it helps, I was facing similar errors trying to host llama2 model on AWS EKS with A10 gpu.  First we upgraded Nvidia to latest 5.* driver.  Second, I needed to also deploy a model yaml file to set f16/gpu_layers (it wasn't enough just to have those as env params as the helm chart pushes).  The LocalAI API methods below help you do it all easily -- can search for a model via their gallery & push it with the settings you want (here you can also specify the backend, so it doesn't guess):
Model config
Get available from gallery
curl http://localhost:8000/models/available | jq '.[] | select(.name | contains("llama2"))'

Install from gallery
curl http://localhost:8000/models/apply -H "Content-Type: application/json" -d '{
     "id": "thebloke__llama2-chat-ayt-13b-gguf__llama2-chat-ayt-13b.q5_k_s.gguf",
     "overrides": {
        "backend": "llama",
        "f16": true,
        "gpu_layers": 43
     }
   }'

@mudler
https://github.com/mudler/LocalAI/blob/3851b51d98ee6dce4e05aa6b045e53917b39f267/backend/cpp/llama/grpc-server.cpp#L2284-L2369
1 not  unimplemented  grpc::Status Embedding(ServerContext* context, const backend::PredictOptions* request, backend::EmbeddingResult* reply) method.
if  backend =llama-cpp:
{     "error": {         "code": 500,         "message": "rpc error: code = Unknown desc = unimplemented",         "type": ""     } }
Bert.cpp has been integrated into llama.cpp! See https://github.com/ggerganov/llama.cpp/pull/5423 and the discussions
Updated forks: iamlemec/bert.cpp xyzhang626/embeddings.cpp
2 backend/go/llm/llama not used


python310Packages.pytest-describe: 2.0.1 -> 2.1.0

https://github.com/pytest-dev/pytest-describe/releases/tag/2.0.2
https://github.com/pytest-dev/pytest-describe/releases/tag/2.1.0
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 225527 run on x86_64-linux 1

1 package marked as broken and skipped:

netbox_3_3

1 package failed to build:

netbox

20 packages built:

python310Packages.django-graphiql-debug-toolbar
python310Packages.django-graphiql-debug-toolbar.dist
python310Packages.graphene
python310Packages.graphene-django
python310Packages.graphene-django.dist
python310Packages.graphene.dist
python310Packages.graphql-relay
python310Packages.graphql-relay.dist
python310Packages.pytest-describe
python310Packages.pytest-describe.dist
python311Packages.django-graphiql-debug-toolbar
python311Packages.django-graphiql-debug-toolbar.dist
python311Packages.graphene
python311Packages.graphene-django
python311Packages.graphene-django.dist
python311Packages.graphene.dist
python311Packages.graphql-relay
python311Packages.graphql-relay.dist
python311Packages.pytest-describe
python311Packages.pytest-describe.dist

Build failure on target branch.


Pod Install Fails: Value of type 'PointAnnotation' has no member 'isDraggable'

Environment

Dev OS: OSX 13
xcode 14

Steps to reproduce
react-native init sample --version<EMAIL_ADDRESS>cd sample
npm install rnmapbox/maps#main --save
npx pod-install
npx react-native run-ios

@wen-kai are you sure you don't have RNMapboxMapsVersion set to an older version than 10.10?

that was it, thank you!


Broken link to KB

There is a broken link to a KB that no longer exists.
Microsoft Knowledge Base article 902229 linked via https://go.microsoft.com/fwlink/?LinkId=186066 to https://support.microsoft.com/en-us/help/902229 which returns a 404 error.  The original KB was for server 2003, so no big shock that it's been removed.
Here is what that page used to look like per the internet archive:
https://web.archive.org/web/20190110172734/https://support.microsoft.com/en-us/help/902229/preset-values-for-the-windows-time-service-group-policy-settings-are-d
I don't believe that usefully adds to this in any way, so the broken link can probably be removed.   Thanks<EMAIL_ADDRESS>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d4d52178-35e4-18fa-4e0d-3d983278664d
Version Independent ID: b2ef1ce4-2d5f-f4c9-9cd2-577866c30a4d
Content: How the Windows Time Service Works
Content Source: WindowsServerDocs/networking/windows-time-service/How-the-Windows-Time-Service-Works.md
Product: windows-server
Technology: networking
GitHub Login: @dahavey
Microsoft Alias: dahavey

Both documents are in the same folder/directory, so it should be OK to create a PR to fix both pages using the same solution. Thank you for pointing out the issue and the relation between those 2 pages.

I also notice that there is some kind of formatting issue in the See Also section, so that bit would be nice to get cleaned up as well.

https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/how-the-windows-time-service-works#see-also

I will suggest copying the Related topics section from the other page, updated to link the other page instead of itself.

There you go. PR #5498 is now ready for review, comments, and suggestions. ( I had to get my night sleep mid-way through my editing of the PR content. 😉 )

#assign:xelu86

Linked to similar issue that was previously resolved #6445.
#please-close


Update CMake to fit with new C files.

I have tested it on Linux, but as I have not SFML installed on Windows, I have not done it there.

From what I have read, it seems entirely possible that for some reason the order in which the libraries are being included is incorrect. Could you post the command being used to build it? (I am not an SFML or CSFML expert.)


Suggested use of system-wide /usr/share/dbus-1/services/nl.dvdgiessen.dbusapplauncher.service is not recommended.

I'm recommending the change in documention regarding how to use this to not use:
/usr/share/dbus-1/services/nl.dvdgiessen.dbusapplauncher.service
As this is a path intended for packaged system software's defaults, where:
/etc/dbus-1/services/
Is for System Administrators, and for actual users, where this matters the most in this specific situation:
~/.local/share/dbus-1/services/
Which can be created by the user and the same file placed which overrides any system defined service(s) of the same name in /etc or /usr/share directory paths.

Changed the README in 0e2a3cc27d6e9ac98cf087249ac3dbb3502f1e3e. Thanks!


Add SLI plugins

This PR adds support for SLI plugins. SLI plugins will be loaded on the start of the application and SLOs can reference these plugins.
A very simple plugin example would be:
package testplugin

const SLIPluginID = "test_plugin"
func SLIPlugin(meta map[string]string, labels map[string]string, options map[string]string) (string, error) {
  return "rate(my_raw_error_ratio_query{}[{{.window}}])", nil
}

And to reference:
version: "prometheus/v1"
service: "myservice"
slos:
  - name: "some-slo"
    objective: 99.9
    sli:
      plugin:
        id: "test_plugin"
        options:
          something: "something"
    alerting:
#...

Plugins are based on Yaegi. We have implemented some requirements to avoid shooting in our feet and due to Yaegi limitations.

Plugins must be in a single file and use stdlib.
Plugins don't use custom types and avoid interface{} on their signature.

Plugins are supported in all current specs as a new SLI type along with raw and events:

Regular: prometheus/v1
Kubernetes CRD: sloth.slok.dev/v1/PrometheusServiceLevel

Codecov Report

Merging #79 (7ee80e1) into main (67d1e2d) will decrease coverage by 2.21%.
The diff coverage is 61.81%.

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
- Coverage   82.31%   80.09%   -2.22%
==========================================
  Files          14       15       +1
  Lines         701      809     +108
==========================================
+ Hits          577      648      +71
- Misses         88      114      +26
- Partials       36       47      +11

Impacted Files
Coverage Δ

internal/prometheus/sli_plugin.go
48.00% <48.00%> (ø)

internal/k8sprometheus/spec.go
93.33% <85.00%> (+2.10%)
:arrow_up:

internal/prometheus/spec.go
100.00% <100.00%> (+4.54%)
:arrow_up:

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 67d1e2d...7ee80e1. Read the comment docs.

Codecov Report

Merging #79 (cab6719) into main (67d1e2d) will decrease coverage by 2.06%.
The diff coverage is 63.79%.

@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
- Coverage   82.31%   80.24%   -2.07%
==========================================
  Files          14       15       +1
  Lines         701      815     +114
==========================================
+ Hits          577      654      +77
- Misses         88      114      +26
- Partials       36       47      +11

Impacted Files
Coverage Δ

internal/prometheus/sli_plugin.go
51.85% <51.85%> (ø)

internal/k8sprometheus/spec.go
93.33% <85.00%> (+2.10%)
:arrow_up:

internal/prometheus/spec.go
100.00% <100.00%> (+4.54%)
:arrow_up:

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 67d1e2d...cab6719. Read the comment docs.


[FEATURE] Able to dual watch while the radio is on.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem this feature solves.
It is a known issue that described in wiki "known bugs
dual watch is not working while the radio is on, only primary channel interrupts the radio (this was present in previous implementation as well)"
Describe the solution you'd like
Radio able to dual watch while in FM radio.

Yup, this is a known issue and related to the way dual watch is implemented in original firmware.
I tried resolving it, but the code base around the dual-watch was way too complicated.
Moreover during my tests of the dual watch switching during FM reception I was getting audible switching sound. This may or may not be due to the implementation I tried, so perhaps someone will resolve this issue one day. I myself do not intend to fix it.


Feature request: Shortcuts and picker

I might simply be missing something, but it would be nice if the terrain drawing tools had shortcuts that mirrored the default TileMap ones ( Draw tool - D / Line tool - L / Rect tool - R / Bucket tool - B )
A Picker functionality would also be really useful, in the default TileMap it's P or hold Ctrl, in this case it'd select the terrain type the selected tile belongs to

Implemented in latest commit.
The shortcut R for rectangle tends to turn the editor into ruler mode. Unfortunately, the mechanisms by which this happens aren't easily manipulated through GDScript (and even then, the tilemap dock sometimes goes to rule mode instead of selecting rectangles). As such, I added C as alternative.
Picker is available with ctrl-click, but has no individual tool.
Will update addon library version.

Updated asset lib version a while back, so this is complete.


Adding a Weapon

Describe the bug
When I try to add a weapon into the CAD (Admin panel) it doesn't add the weapon. In the CLI, it comes up with the following error: https://i.gyazo.com/ee764704837f9e9e154023fdee500f68.png
https://i.gyazo.com/37511346ddab5d90fb881961eec95c4a.png

Hello!
Just pushed an update! Should be fixed now.
Thanks for reporting.

Thank you!


az storage blob delete-batch ignores --query

Assume you're after deleting all the blobs whose names match a specific pattern. If az storage blob delete-batch is used, there are 2 parameters of interest: --pattern and --query.
Having used recently az storage blob list with the --query parameter, I was expecting a similar functionality, however I was wrong. As such, using the command below would not result in the deletion of only the blobs whose names match the string particle supplied, but of all the blobs within the specified container:
az storage blob delete-batch --container-name <container> --account-name <account> --account-key <key> --query "[?contains(name, `particle`)].{name:name}"

I'm not sure if this is by design or just a bug.
Environment summary
az version: 2.12.0

storage

Hi @luckerby, the output for az storage blob download-batch is different from az storage blob list. az storage blob list is targeted to get blob properties from Azure. az storage blob download-batch is to download blobs from Azure, so we only show file names to customer as below:

I will close the issue because it is by design, and if you have further question, feel free to create a new one.


Not working with iOS

Hi,
I created a project and for android is working well, but with iOS i start reading nfc tags, I see the system window to scan, but nothing happens, its not working and after some seconds I get a time out and the system closes the window.
Could you help me please?
thanks so much

Same issue here :(

Did you find the answer? I have a same issue too :(

Hi, I have found this issue occurs with some types of NFC tags. I have tested it with multiple NFC tag types and some are working, some are not. 😞


[C++][Parquet] Reconcile container size with string size for memory issues

Right now the size can cause allocations an order of magnitude larger then string size limits.
Reporter: Micah Kornfield / @emkornfield
Assignee: Micah<EMAIL_ADDRESS>/ @emkornfield
PRs and other links:

GitHub Pull Request #7465

Note: This issue was originally created as PARQUET-1877. Please see the migration documentation for further details.

Wes McKinney / @wesm:
Issue resolved by pull request 7465
https://github.com/apache/arrow/pull/7465


Long lines are wrapped even though word wrap is turned off

VSCode Version: 1.9.1
OS Version: Windows 10 x64

Steps to Reproduce:

Disable word wrap in the user settings
Create a new file
Enter a very long text line

It appears that VS Code has a column at which it will wrap a line even though word wrap is disabled.
The line wrap doesn't change when I resize the window, it's always wrapped at column 301. This is very annoying when viewing large XML files.

Let's track in #21262, the wrapping settings will get an overhaul

As of version 1.13.0 for Mac and Windows (and 1.14.0-insider for Mac), opening a file with lines extending past 10000 columns causes the lines to be wrapped to the viewport's dimensions even though editor.wordWrap is set to "off" (including the language specific override for markdown).
Additionally, copying and pasting a long line of text into a new document behaves fine (no wrapping), until the file is saved. It then wraps the line.
I was able to test the behavior with version 1.12.2 on Windows and it did not seem to be a problem (did not wrap). However, after updating to version 1.13.0 the wrapping behavior was the same as on my Mac with the same version.
See attached files for examples. The only difference between the two files is that "long_line_wrap.txt" contains one extra character at the end of the line - causing it to be wrapped when opened.
Current work around is to toggle word wrapping using Alt+Z, or the menu.
long_line_no_wrapping.txt
long_line_wrap.txt

@lukas879 Yes, this is a "by design" behaviour to workaround a short-coming we have.

The editor is vertically virtualized (i.e. only the visible lines in the viewport are inserted to the DOM)
However, the editor is not horizontally virtualized (i.e. if a line is visible, it is sent in its entirety to Chromium for painting)

We don't do horizontal virtualization because that would involve us reading the font information, and implementing Unicode layouting + font layouting rules on our side, in our JS runtime, across OSes. Today, we leave it up to the browser to layout the text (think e.g. RTL, bidi text, etc.). Also, any change in the layouting algorithm w.r.t. the painting algorithm would yield many bugs, so we would need to also paint all the characters by ourselves.

So if a long line is visible in the viewport, we give Chromium the entire line. Chromium ofcourse paints only the visible parts, but it has to deal with the entire line. Unfortunately, if the line is very long, this causes Chromium to slightly freeze, which makes it a very bad experience when scrolling around these long lines.
As a workaround, we have implemented a heuristic where we try to identify "minified" files, i.e. files that have very long lines are highly atypical for source code and possibly represent that a resource has been inlined in the source code or that we are dealing with a CSS/JS/etc. minified file.
Our heuristic consists of counting characters that sit on regular lines vs. characters that sit on long lines. A long line is a line with more than 10k characters. If more than 50% of the file's characters sit on long lines, then we consider the file to be a "minified" file.
In the case of such files, which we call "dominated by long lines", we will wrap the file to protect against the freezes I mentioned above. By freezes I mean that sometimes painting a frame in the editor could take more than >20-30ms, which quickly becomes noticeable, as the large line goes outside the viewport or goes inside, but of course depends on the actual line, etc.
The only way to unwrap such a file is current via alt+z or the menu or the special icon that appears next to the editor title area (actions) only in such cases and the unwrapping is temporary for the current window lifecycle.

I'm sorry for the funny experience that looks like a bug, but it is a (perhaps too-involved) workaround to avoid freezes/pauses.

@alexandrudima That's good to know. I was going crazy trying to find a setting I had maybe misconfigured or overlooked. Thanks for the in depth explanation.


Booting to UEFI shell after post.sh

With no changes to the scripts (no variables changed etc.) main, games & server boot to UEFI shell after post.sh.
2 scenarios are likely:

prompt not working (I pressed YES on all 3, will test NO and comment)
(less likely) removable check not working

Unlikely scenarios:

cryptboot not working (Unlikely because I am using it on my current machine 100% fine)
libvirt and the UEFI drivers are messed up (Unlikely because it works before post.sh - without secureboot though)

For tracking down the issue: DIFF

(tested on server)
When not pressing YES, the issue is gone. Prompt itself is working 100% fine.
Conclusions:

Secureboot setup in post.sh is messed up

Now possible scenarios:

my setup is not working
(unlikely) cryptboot not working (Unlikely because I am using it on my current machine 100% fine)
(unlikely) libvirt and the UEFI drivers are messed up (Unlikely because it works before post.sh - without secureboot though)

Next step:

[ ] Test if reproducible on hardware

It is reproducible on hardware (if secureboot is enabled).
After rebooting, enabling secureboot and selecting my removable drive I get an invalid signature error.
Conclusion:

Secureboot setup in post.sh is messed up

Now possible scenarios:

my secureboot setup is not working
(unlikely) cryptboot not working (Unlikely because I am using it on my current machine 100% fine)

If secureboot is disabled after the restart the system works and boots just fine!

This means that the EFI image wasn't signed during the installation.
I'm not sure how, but the invalid header error in picture 2 may be the reason.
Even if that's the case I don't know how that happened. I just recently regenerated my own UEFI keys with cryptboot (latest commit) - only difference is that I didn't do a clean install.

Okay, this seems pretty simple now:

This immage confirms my previous suspicions and gives me the reason why:

I am still using the default paths for signing images. Images now use the changed grub id (/efi/EFI/grub-arch-?/grubx64.efi) and /efi/EFI/BOOT/BOOTX64.efi - on removable media

EFI_PATH_GRUB will have to be changed in /etc/cryptboot.conf and (maybe/maybe only for removable) we have to also sign /efi/EFI/BOOT/BOOTX64.EFI if it exists.

The second folder with BOOT only exists on removable devices

Therefore I will also have to sign /efi/EFI/BOOT/BOOTX64.EFI if it exists.

TODO:

Sign /efi/EFI/BOOT/BOOTX64.EFI if it exists
Change EFI_PATH_GRUB in /etc/cryptboot.conf according to new GRUB_ID

Solving this may take some time (even tho it's simple).
GIGABYTE and a lot of inconsistencies in their firmware are making testing a living hell.

Solving this may take some time (even tho it's simple). GIGABYTE and a lot of inconsistencies in their firmware are making testing a living hell.

This was the case with a lot of hardware testing btw (including the testing for my previous gpu) so I might just give up for today if it doesn't work within the next 30mins

Solution is confirmed working


feat(testkit): add store implementations in ibc-testkit

Closes: #1045
Description

This PR includes basecoin-store crate from basecoin repo inside ibc-testkit. These store implementations are only intended for testing purposes.
We plan to use these implementations to improve the coverage of our IBC tests.

PR author checklist:

[x] Added changelog entry, using unclog.
[x] Added tests.
[x] Linked to GitHub issue.
[ ] Updated code comments and documentation (e.g., docs/).
[ ] Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

[ ] Reviewed Files changed in the GitHub PR explorer.
[ ] Manually tested (in case integration/unit/mock tests are absent).

@Farhad-Shabani maybe we clone this PR without merging ? we decided to use basecoin-store as a remote dependency.


Streaming doesn't seems to work in Cloudflare

Basically the title. It always ends the connection prematurely.
Sometimes it ends before even sending any response
The event stream would look like this
[DONE]

I also encountered the same situation, using GhatGPT Next Web

Up! I also encountered similar issues using Cloudflare. Hope this can be fix.

Thanks to https://github.com/jtsang4/claude-to-chatgpt/pull/27 , you can try it again.


Haptic feedback

Adding Haptic Feedback to iOS and Android

Hello,
Thanks for the PR this looks great. Could you revert some of your changes to the LICENSE, pubspec, README so that we can merge this ? Or do you plan to publish your own package?

Sorry I will do that. I was originally doing a PR for my master but it did yours. I will update the info for the PR to the master branch of yours. I would rather not publish my own since it's so similar. Any other changes needed?
Rody Davis Jr.
Full Stack Mobile Developer
Github | Website | Appstore | LinkedIn
Twitter | Facebook | YouTube
On Jul 10, 2018, 9:29 AM -0400, Clovis NICOLAS<EMAIL_ADDRESS>wrote:

Hello,
Thanks for the PR this looks great. Could you revert some of your changes to the LICENSE, pubspec, README so that we can merge this ? Or do you plan to publish your own package?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Maybe revert the few "com.appleeducate" => "flutter.plugins.vibrate", but the rest of the code looks great to me, i'll just try it on a device later and merge it

@clovisnicolas ok changes made!

So far I have tested with Google Pixel, iPhone X, and Simulator iPhone X.
Important Notes: Haptic Feedback is only available on iOS 10 and later, I fall back to the default vibrate if it is not available. I also added a simulator check because it cannot vibrate there.


Buffer rewrite/encoding

for use in tandem with calvinmetcalf/parseDBF#10

this change brings the size from 60KB to 234KB, almost all of that is for non utf8 encodings

actually more like 260k, and 200k is from iconv lite

gzipped and minified sizes for various options, in bytes
original: 59,172
just utf8: 60,363
all encodings: 236,209

ok if we use the polyfill and require IE users who want other encodings to include a file then we can do it in 65676 bytes, though it's waiting on inexorabletash/text-encoding#70

done


Adding testEnvironmentOptions to supportedKeys for Jest

When upgrading to the latest version of razzle (2.2.0), the tests that are testing automatic injection of script tags in our code are failing. This is due to #656 which upgraded Jest to version 23 which has different defaults.
The new Jest configures JSDOM to not load

@jaredpalmer Thanks for merging this PR.
Do you think you might be able to create a minor release for this?


Wildcard URL param doesn't treat well empty param

Environment

Browser: Chrome 59
Version of service-mocker: 2.0.0

Expected Behavior
Wildcard URL parameters should give an undefined content when empty
Current Behavior
They are instead "undefined" (a string containing the word "undefined")
Steps to Reproduce
// sw.js
import { createServer } from 'service-mocker/server'
const { router } = createServer()
router.get(`/asd/:path*`, (req, res) => {
  const { path } = req.params
  if (path === 'undefined') {
    console.warn(`Path is the string "undefined"!`)
  } else {
    console.log(`Path is "${path}"`)
  }
})

// index.js
window.fetch(`/asd/foo/bar`) // => Log: Path is "foo/bar"
window.fetch(`/asd/`) // => Warning: Path is the string "undefined"!

I don't think "/asd/:path*" is a valid express-style routing. You can't use wildcards in parameter names. Try either "/asd/:path/*" or "/asd/:path".

It is!

Express uses path-to-regexp for matching the route paths; see the path-to-regexp documentation for all the possibilities in defining route paths.

Parameters can be suffixed with an asterisk (*) to denote a zero or more parameter matches. The prefix is taken into account for each match.
var re = pathToRegexp('/:foo*', keys)

https://www.npmjs.com/package/path-to-regexp#zero-or-more

Oh, my mistake. Will fix it soon!

v2.0.1 is out 🎉


Information about the Project Organisation (Board, Community Voting Members) is not up to date

Description

It seems to me the info in the Board and Community Voting Members sections (perhaps other ones?) is not up to date.
It seems that also the name of the OSGEO QGIS voting representative is not mentioned.

Hi @mbernasocchi, have you seen this issue report?

Hi @agiudiceandrea no i hadn't seen it. Thanks for pinging me. Will have a look tomorrow.

@mbernasocchi, any news? Please also have a look at the PSC meetings minutes archive page https://github.com/qgis/QGIS/wiki/PSC-Meetings-archive: the August, September, October and November meetings minutes are missing.

They are now no longer missing after https://github.com/qgis/QGIS/wiki/PSC-Meetings-archive/b04e4ecbae41f9ca84b44bce7a4e66ee6de3afdb

It looks like also the Board section has been updated recently with commit https://github.com/qgis/QGIS-Website/commit/68d74ab27f3c51a12c4119ee7031fc52b99e95c7.
It seems to me the Community Voting Members section is still not up to date.


Adding lint-staged as a dependency to reduce linting time

Is your feature request related to a problem? Please describe.
In issue #1070 , it was mentioned that currently the pre-commit hook runs yarn lint for the entire codebase and not specifically for only the staged files. While working on this issue I came across a npm packaged called lint-staged which does exactly this. By using lint-staged, the lint commands only lints files that have been modified and have been staged for committing.
@joshuarrrr recommended opening this as an issue to get dev feedback on whether or not to add this as a dependency to the project. I would love to hear everyone's thoughts on whether it will be helpful using this dependency.
Describe the solution you'd like
Adding lint-staged would significantly reduce linting time by only checking files that have been modified.
Describe alternatives you've considered
@BSFishy suggested a simple script akin to the current test-staged script. I am currently working on trying to implement this and see if I can create a script that can replicate lint-staged 's features.
Additional context
NPM documentation for lint-staged:
https://www.npmjs.com/package/lint-staged?activeTab=readme

Here is my stance: we should simply create a lint-staged script, which is similar in concept to the test-staged script, running the correct linters only for what has been staged.
My reasoning is as follows:

There is already precedence for using a script rather than package with the test-staged script.
By adding another dependency, even only for development, we're increasing the maintenance surface area far more than if we add another script, because that is another bit of code that is outside of our control. We need to keep up with security updates/updates in general, ensure it continues working with our tooling and any tooling we may decide to switch to in the future, etc. By using a custom script, we own all of the code and can ensure it works will all our tools while simultaneously not having to worry about security updates or the sort.
Another package is additional installation time/larger download and potentially adds additional time to the runtime by doing things we don't need
Creating a lint-staged script should be relatively simple, following the pattern established by test-staged, simpler than the benefit that adding the lint-staged package would have

Basically, I see the lint-staged package adding more burden than pain it's alleviating, but if there is a big selling point of it that I'm missing out on, please let me know

hi @BSFishy ,
Thank you for your input!
The main selling point of lint-staged to me was the ease of use. Install, setup config and its good to go!
However, I agree with the points you brought up regarding the fact the this project currently already uses scripts and that this package might add more surface area for maitenance. You are correct in stating that a script might just be simpler, so I will focus on writing that next.
Cheers!


Include more Owner/Admin powers

Affected files include BaseAdminInteractor and OperationsInteractor.
BaseAdminInteractor

[x] Relinquish ownership of token

[x] Upgrade/Delegate token

OperationsInteractor

[x] Option to reclaim or "sweep" tokens

[x] Option to freeze/pause operations

Included in #18


Implement restoreBlockDOM()

Before submitting a pull request, please make sure the following is done...

Fork the repo and create your branch from master.
If you've added code that should be tested, add tests!
If you've changed APIs, update the documentation.
Ensure that:

The test suite passes (npm test)
Your code lints (npm run lint) and passes Flow (npm run flow)
You have followed the testing guidelines

If you haven't already, complete the CLA.

Please use the simple form below as a guideline for describing your pull request.
Thanks for contributing to Draft.js!

Summary
Fix #1260, #1078 on 0.11.2
I implemented restoreBlockDOM()
This is called when the composition is resolved.

@mrkev Sorry, It's a strange mistake I made.

Alright, lets see (:

@nik72619c
i will resolve conflict.
Just a moment, please.

Fixed conflict.

Please process this commit as it help with typing in many languages like Chinese, Japanese, Vietnamese, etc.
I am currently have to fork just to have this one, but switch back to original draft-js upon this issue get merged.

My Japanese users are also experiencing significant pain when trying to type in Draft Editors, which this commit would fix.

Does this PR try to fix the same issue as #2292 ?

@thith
The meaning of the PR is very similar.

@ghostrick as per my test, the following line is not needed:

Because it always goes here:

So that line is just equivalent to:
editor.update(editorStateWithUpdatedSelection)

@ghostrick @mrkev
Hi, I'm facing same problem, so I hope these commits will be merged.
How about the current status of this PR?
Please tell me if there is anything that I can help with. (ex: resolve conflicts)

@ghostrick
Could you confirm this fix?
@mrkev
I appreciate your updating!

@ogwtkhr What should i do?

@ogwtkhr What should i do?

@ogwtkhr What should i do?

Verry sorry, I made missake reply.

@mrkev
Could you confirm this fix?
@ghostrick
I appreciate your updating!


Improve route price

Move the expected route price to test-data file.
To be able to change all test data at the same place

@hspotlight  In future, if u see the need for ui regression test. Feel free to reach out.


FlutterLogs.exportLogs doesn't return (await hangs) if there are 0 files

My code is FlutterLogs.exportLogs(exportType: ExportType.ALL); as a preparation for exporting all logs. My app has a button the user can tap to export logs. However if there wasn't any logging going on so far (0 files) then the function call doesn't return. I see this in the debug log output:
I/ExportTypes(17208): getLogsForAllInRoot: Path: /storage/emulated/0/Android/data/dev.csaba.track_my_indoor_exercise/files/Logs/Logs/, Files: 0
I either need it to return with some special code or need a function call which tells me if there's anything to export so I can enable / disable the button. Currently the QA testers report this as a bug to me because they are clicking on the button and "nothing is happening". I'd like to display a dialog if there's nothing to export.

I'm trying to debug this. The problem is that when there are no files, then the FlutterLogs.channel.setMethodCallHandler((call) async { handler (see https://github.com/umair13adil/flutter_logs/blob/3ac8a1a9c02f31ca187950e9d5b917c4367b1ec5/example/lib/main.dart#L51) is not fired. The case when there are no files is this:
https://github.com/umair13adil/RxLogs/blob/f199b3c89cf510a15b66307c9bf389af4af6fde1/plog/src/main/java/com/blackbox/plog/pLogs/exporter/LogExporter.kt#L110
            if (filesToSend.isEmpty()) {
                if (!emitter.isDisposed)
                    emitter.onError(Throwable("No Files to zip!"))
            }

In fun compressPackage. I'm not sure yet how to bubble that up to the Dart layer, or why is it not bubbling up right now. There's a throwable generated there but I don't see that in Logcat, so it's swallowed somewhere. If I cannot bubble it up then maybe there could be a new call on the API to check if there are files? That might be more work due to API change and RxLogs need to be changed as well.

There's nothing in Logcat besides I/ExportTypes(20611): getLogsForAllInRoot: Path: /storage/emulated/0/Android/data/dev.csaba.track_my_indoor_exercise/files/Logs/Logs/, Files: 0, and nothing bubbles up.

Maybe the emitter is disposed? (if (!emitter.isDisposed)). I'd expect to see the "No Files to zip!" in the logs to appear somewhere. The control flow doesn't reach this point either https://github.com/umair13adil/flutter_logs/blob/3ac8a1a9c02f31ca187950e9d5b917c4367b1ec5/android/src/main/kotlin/com/flutter/logs/plogs/flutter_logs/FlutterLogsPlugin.kt#L233 (or at least I don't see exportPLogs: PLog Error: log entries either in LogCat.

Running version 2.1.11 on Android, it seems exportLogs never returns no matter what. I have log files, I can see the ZIP file created fine, but onComplete or then never runs:
    FlutterLogs.exportLogs(exportType: ExportType.ALL).then((value) {
      logInfo(message: 'Finished exporting FlutterLogs...');
    });

Haven't tried on iOS yet.


grammar Converter for offline use

may I ask you to avail the grammar converter for download for offline work. thank you in advance

Please find it here.

Can we also get the source code ?

Can we also get the source code ?

Yes, when I am ready to provide it. Not at this time, sorry.

Thank you for reply !
I'm also interested in the REX parser !
Cheers !

REx is not open source at this time, and there is no published documentation available either. Sorry.

many thanks indeed

I landed here also looking for the converter. I've occasionally come round to use the online version, which was okay. Now the site is offline-for-me. Yes I know it is on IPv6, but my ISP isn't routing IPv6 at all and effectively it is offline for me. So I was looking for an offline version, but the tarball you linked is hosted also on the IPv6 only space, so I can't reach that either.

Here https://github.com/GuntherRademacher/rr/releases/tag/v2.1 you can get it .

@mingodad That is unfortunately only the rr part, not the convert part.

Can you mention what kind of grammar (yacc,antlr,...) are you trying to convert ?

In my case I have ABNF (RPC 5234 + RPC 7405) and I want other things such as what rr can render or that I can export to other tooling that doesn't handle ABNF (and perhaps does handle some flavor of EBNF or others).

Maybe @GuntherRademacher  can make it available through github too ?
Let's see when he reply here !

I was able to get onto the https://www.bottlecaps.de site via Tor (which seems to be a great bridge to get around being stuck on an IPv4 only ISPs). I also have access to a server in Europe with proper IPv6 support and have tried command line downloads from there. Lastly I tried checking archive.org and their Internet Archive.
In all cases I struck out on getting the zip file with the convert binary linked above. I tried using the www. subdomain instead of the apex domain as well, but the file does not seem to be there at that link.
@GuntherRademacher It would be lovely if you could release that zip here on GitHub or indeed anywhere current. Of course as others have requested the source would be nice to see too, but even just the existing offline binary would be nice to be able to do local validation/conversion. I realize we're just out here asking for free stuff. I can only point to my FOSS contributions in many other areas including software you've surely used when I say: pretty please?

@alerque Please note that only the latest version is avaible for downloading, that the link includes the version number, which has changed due to my domain name problem. The current link is https://www.bottlecaps.de/convert/download/convert-0.66-java11.zip.
I will publish the source code on GitHub, I am just asking a little more time.  Thanks for using my code.

Thank you, that's fantastic! I can now run it locally instead of trying to fire off requests through Tor!
I see now the current running version is in the footer, but since the file isn't linked anywhere I didn't make that connection before.
Can I make a suggestion towards open sourcing this? I would give it a slightly more unique name so that it can be more easily packaged and integrated in other systems? For example perhaps ebnf-convert or convert-to-ebnf might work. The convert name is pretty definitively tied up by ImageMagick (also a bad choice of name and thankfully dropped in favor of magick convert, but lots of legacy code out there means it won't go away soon).

In fact if you have any naming ideas now even before you do a source release I'd like to put together an AUR recipe (-bin flavor) to make this easier to spin up in CI. I could do this now with a small shell wrapper script (which it needs to run java -jar convert.war anyway) but it would be nice to name it something you approved of and might make official later...

Wow, that's fantastic. I've successfully built it from source on Arch Linux and setup an AUR package so others can run it easily too.
I'm now looking at packaging rr too, and it looks like that name is already staked out by another project not only on Arch Linux but Debian, Ubuntu, Alt Linux, Apertis, Deepin, Duvuan, EPEL, Fedora, Gentoo, Guix, Kali, Nix, openSUSE, Pardus, Void, and many others see repology.
I can rename it in packaging, but again if you would consider either renaming it here or at least suggesting a "sanctioned" alternative name like ebnf-rr, ebnf-railroad (both 100% clear) or perhaps just railroad (a bit sketchy because existing Python and Ruby project exist so package names might still be different with this name but /usr/bin/roalroad would probably be available)? That way any other distros trying to follow suite and documentation about how to run on different platforms could be consistent.


A11y_SQLAzureDataStudioMAC_Notebooks - Create_Keyboard: The user is unable to activate the 'Delete' button using keyboard space or return key associated with '+Code' button and '+Text' control.

GitHubTags: #A11yMAS;#A11yTCS;#A11ySev2;#BM_SQLAzureDataStudioMAC_June2022;#SQL Azure Data Studio;#MAC;#FTP;#DesktopApp;#Keyboard;#AINotInScope;#WCAG2.1.1;
Environment Details:
Application Name: SQL Azure Data Studio
Application Version: Version 1.37.0
Mac Version: macOS Monterey 12.4
Repro Steps:

Please do not close this bug. This bug should only be closed by TCS, C+AI Accessibility tester after verification of the fix.
Launch SQL Azure data studio.
Connect to a server.
Tab to 'File' menu.
Tab to 'New Notebook' and select.
Tab to '+Code' button and select.
Tab to 'Delete' button.
Use keyboard to activate the delete button.

Actual:
The user is unable to activate the 'Delete' button using keyboard space or return key associated with '+Code' button and '+Text' control.
Expected:
The user should be able to activate the 'Delete' button using keyboard using keyboard space or return key.
User Impact:
Keyboard users will difficulty in accessing the controls.
Attachment:

@bbarik06 if a user tabs until the "+" is highlighted, and then uses the arrow keys until hovering over the 'Delete' command, I was able to press either the space or enter button to delete the cell.
Is this sufficient (using arrow keys)?

please let us know if this is not sufficient, the issue is going out of SLA, so closing it.

GithubTags:#Closed;Version 1.36.1


[Relay] softmax, max_pool2d, conv2d, fix 4D memory connections (WIP)

Overview

nn.max_pool2d implementation with test.
nn.conv2d implementation with test.
Fixes to 4D to actually hook in all the appropriate addresses. This includes a runt test, since I missed this bug in an earlier PR.
Fixes #274 .
Improves modularity. Everything that deals with Relay function call -> Dahlia function -> FuTIL lowering is done in a single file dahlia_lowering.py now.
Allows for lowering of VGG Net from Relay IR to FuTIL, i.e. python3 example.py vgg_net. This is by no means fast; lowering MLP Net is faster given the smaller number of instructions. I've also verified the FuTIL output lowers to Verilog in both cases.

TODOs Left

Need to improve nn.softmax to avoid integer underflow for fixed point. Currently, this includes a std_exp operator, however, this operator rounds to the nearest integer because of the following:

            /* verilator lint_off REALCVT */
            out = 2.718281 ** exponent;

Ideally, we'd like that not to occur. I mention this in #299 , though I'm not sure I'll have time to work on this more before Tuesday. I believe this will be easy to do once we can support generalized functions with invoke.

The TODOs left for VGG Net lowering are discussed explicitly in #276. This includes updating nn.softmax to use invoke and adding the correct types rather than defaulting to unsigned. Currently, VGG Net lowers to Verilog. While not a measure of correctness or completeness, it is progress.

@rachitnigam I've removed the unnecessary additions to the primitives library and marked softmax as unimplemented for now. This CL is already pretty large, so I can finish the rest in a follow-up CL.

Are there any tests you want to enable by default in the top-level runt.toml?

Are there any tests you want to enable by default in the top-level runt.toml?

At this time, no. Perhaps after the dat rehaul is finished, or I find that more people are committing. Thanks for the review.


It seems mod doesn't wont to work with Russian language

I'am sorry, can this be fixed? I don’t know much about this, but I would really like to play with this mod.
I have already seen a similar problem with non-English languages, in a issues, but i really don't know how ti fix it
Here is the error in the console:
[Info   :   BepInEx] Loading [Pingprovements 1.5.1]
[Error  : Unity Log] FormatException: Input string was not in a correct format.
Stack trace:
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)
System.Single.Parse (System.String s) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)
System.Array.ConvertAll[TInput,TOutput] (TInput[] array, System.Converter`2[TInput,TOutput] converter) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)
Pingprovements.Extensions.ToColor (System.String colorString) (at <2c90838e5b43455a9dddee7f0b2d3518>:0)
Pingprovements.PingerController..ctor (Pingprovements.Pingprovements plugin) (at <2c90838e5b43455a9dddee7f0b2d3518>:0)
Pingprovements.Pingprovements.Awake () (at <2c90838e5b43455a9dddee7f0b2d3518>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
RoR2.SkinDef:Awake()

I built the changes from PR #5 into a mod. I tried replicating the issue on my system switching to Russian or other languages but I never got the error.
Build of #5: Pingprovements.zip
Could you try running this build on your system and verify that the error doesn't appear anymore? If you leave me feedback, I can properly build and release it on Thunderstore afterwards, if it works!

Yeah, i tested it and now it is working correctly. Thanks!


Service to control the manual charge system

new function for the ChargingService: to read out the current state of the manual start system
new function for the ChargingService: to start a manual charging process

implemented in 0.8.0