Add support of namespace property to support Android Gradle Plugin (AGP) 8

Plugin Version
Latest (3.0.0).
Steps to Reproduce
Upgrade your Android project to use AGP 8. In your build.gradle :
buildscript {
  // ...

  dependencies {
    classpath 'com.android.tools.build:gradle:8.0.1'
    // ...
  }
}

Also don't forget to add a namespace in the android section of app/build.gradle :
android {
  // ...
  namespace 'your.namespace'
}

Then flutter run to an Android device (or even flutter build appbundle).
Expected results:
My app to compile fine.
Actual results:

Stacktrace
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':google_mobile_ads'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

     android {
         namespace 'com.example.namespace'
     }

     If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Running Gradle task 'bundleRelease'...                           2 150ms
Gradle task bundleRelease failed with exit code 1

More info
See https://github.com/flutter/flutter/issues/125181. It shouldn't be too hard to fix (see the PR I've sent here : https://github.com/bluefireteam/audioplayers/pull/1503/files), but since this project seems to use a custom build.gradle, I'm not sure if we can "just" copy and paste it.

Thanks for the report. This issue is reproduced on the latest ads plugin version google_mobile_ads: ^3.0.0 and Flutter stable channel 3.10.0.

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.10.0, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.10.0 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (35 hours ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.78.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 113.0.5672.92

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.11.0-5.0.pre.47, on macOS 13.0.1 22A400 darwin-x64, locale en-VN)
    • Flutter version 3.11.0-5.0.pre.47 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 43b2b658a0 (2 hours ago), 2023-05-11 21:14:09 -0400
    • Engine revision 748ef964b9
    • Dart version 3.1.0 (build 3.1.0-94.0.dev)
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.78.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 113.0.5672.92

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Just submitted a PR that should close this issue.

Is there a workaround for this until this PR is merged?

@nemanja-nisic Feel free to use the fork if you don't want to wait. In your pubspec.yaml :
audioplayers:
  git:
    url: https://github.com/Skyost/googleads-mobile-flutter
    path: packages/google_mobile_ads

We’re closing this issue due to inactivity. If you’re still impacted, please create a new issue via the Developer Forum.

Well yes, I think everyone here is still impacted @huycozy.

Why would you think we are no longer impacted? Anyone who has this in their project cannot upgrade Gradle to version 8+.
There is a fix, it just need to be merged.

@under3415 Thanks for the update. Re-opening the issue since there is a similar report recently.
cc: @malandr2

There is a fix for this. Ww are patiently waiting for it to be merged. So, the lack of activity here is not a sign of resolution, it is just people being polite...
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: huycozy @.>
Sent: Monday, August 7, 2023 11:58:23 PM
To: googleads/googleads-mobile-flutter @.>
Cc: under3415 @.>; Mention @.>
Subject: Re: [googleads/googleads-mobile-flutter] Add support of namespace property to support Android Gradle Plugin (AGP) 8 (Issue #839)
@under3415https://github.com/under3415 Thanks for the update. Re-opening the issue since there is a similar report recently.
cc: @malandr2https://github.com/malandr2
—
Reply to this email directly, view it on GitHubhttps://github.com/googleads/googleads-mobile-flutter/issues/839#issuecomment-1667721433, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA5N3HQK5FMRDLOFECRPWPTXUDJ57ANCNFSM6AAAAAAX5G3W6Q.
You are receiving this because you were mentioned.Message ID: @.***>

I'm also facing same issue.

facing the same issue...

facing the same issue...

facing the same issue

google_mobile_ads: 3.0.0
flutter: 3.13.0
AGP: 8.0.2

Stacktrace
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':google_mobile_ads'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

     android {
         namespace 'com.example.namespace'
     }

     If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1

facing the  same issue but does not get any solution. please help in solving this problem...

Workaround is to reference solution by Skyost in your pubspec.yaml.
And like the initial post, apparently this raises the profile of the issue with the google team. Me too posts are not helping.
google_mobile_ads:
  git:
    url: https://github.com/Skyost/googleads-mobile-flutter
    path: packages/google_mobile_ads

There is a PR addressing the issue, it has been approved but needs to pass all tests before it can be merge in. Thanks.

This is still NOT fixed in version 3.1.0

Right, https://github.com/googleads/googleads-mobile-flutter/pull/843 has not yet been approved and merged in. It will be included in the next release.


Could you implement matismenu?

A matismenu is implemented in the Cassiopea template. This is a very well developed accessible multi-level menu. Could you please implement this menu in your template?

Can do. I tried to make the current menu as lightweight as possible, however I'm not accessibility expert, so assume it has some issues with it. I'll look into metismenu when I get a chance.

Even if it could be integrated with maxi-menu-ck ( https://extensions.joomla.org/extension/maxi-menu-ck/ )
plugin module - it would be very helpful,
I'm currently trying to make the styles & themes compatible with my HiQ  custom (user.css) settings on the template
it's tricky but not impossible, hopefully, I will whip up a script for the Theme ' Css3megamenu '
This theme is largely inspired by the Mega menu tutorial on net.tutsplus.com
and maybe I'll put it ( custom script with HiQ setting compatible style ) up here if anyone else needs it.?

I've been having real trouble trying to replicate the Menu Style of the Nav-Bar above,
as I wanted a similar style in the footer ,but I have been having no luck as the footer container seems to throw the style off,

there are a few menu ccs generators out there I tried after wasting hours of trying different things, but its not easy to replace all the styles to be Hiq friendly , (I got fustrated with the ck maximenu & uninstalled it too)
I hope someone could help me find the (hiq freindly) solution to match the nav-bar style for the footer

You'll probably not find a menu that just fits in with HIQ CSS. Joomla and its extensions are tightly coupled to Bootstrap.
Using Lightning means you'll probably need to create some layout overrides and add some custom CSS.

Then perhaps you will implement [accessible-menu-bootstrap-5](https://github.com/NickDJM/accessible-menu-bootstrap-5)


Update meta.yaml

Ensure that the plugins are in the correct locations

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

Selectors are suggested to take a <two spaces>#<one space>[<expression>] form.see lines [21]

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Add convenience functions to transform between edgedb.Duration and time.Duration

This is meant to improve usability of Duration values and better integrate with the Go ecosystem.
This also makes the unit (micro/nanoseconds) difference  between Duration and time.Duration more obvious, hopefully reducing the likelihood of introducing hard to detect bugs such as:
func ConvertDuration(d edgedb.Duration) time.Duration {
  return time.Duration(int64(d))
  // change from microseconds to nanoseconds representation is not taken care of,
  // and the compiler can not help to prevent this
}

Any last changes before I merge?

released in v0.17.0


Light-weight timeout

Problem
This is performance improvement proposal.
Current implementation uses Timeout::timeout: https://github.com/fluent-plugins-nursery/fluent-plugin-map/blob/b2048ceeac5a58fd6dc8bcbb6f59a3f03e56f6a2/lib/fluent/plugin/map_support.rb#L106
Timeout::timeout is too slow because it launches one Thread per block.
In fluentd core, we implement light-weight timeout for parser plugin.
I think map plugin also uses this approach.
Here is benchmark:
require 'benchmark'
require 'benchmark/ips'

require 'timeout'
require_relative 'lib/fluent/plugin/parser'

checker = Fluent::Plugin::Parser::TimeoutChecker.new(10)
checker.start

def f
  nil
end

Benchmark.ips do |x|
  x.report "timeout" do
    Timeout::timeout(10) {
      f
    }
  end

  x.report "checker" do
    checker.execute {
      f
    }
  end
end

# result
Warming up --------------------------------------
             timeout     5.279k i/100ms
             checker    67.093k i/100ms
Calculating -------------------------------------
             timeout     54.950k (± 3.1%) i/s -    279.787k in   5.096866s
             checker    818.054k (± 1.9%) i/s -      4.093M in   5.004828s

Comparison:
             checker:   818053.9 i/s
             timeout:    54949.9 i/s - 14.89x  slower

Steps to replicate
Don't depend on configuration
Expected Behavior
More better performance
Your environment

OS version: All OS
All fluentd version
Latest version

paste boot log of fluentd or td-agent
paste result of fluent-gem list, td-agent-gem list or your Gemfile.lock

I'll implement this.


Fix tests pulling from wrong server

🦟 Bug fix
Fixes Fuel_tools4 CI and Fuel_tools7 CI
Reference builds:
https://build.osrfoundation.org/job/gz_fuel_tools-ci-ign-fuel-tools4-focal-amd64/41/
https://build.osrfoundation.org/job/gz_fuel_tools-ci-ign-fuel-tools7-focal-amd64/48/
Summary
I don't think this has been reported, but Citadel and Fortress CI has been failing on Linux to run some tests requiring to download some models. The tests fail with timeouts, but the problem is that the server url is not configured properly, and so it's not capable of downloading anything.
I fixed this by using the same configuration as in more recent distributions. This will require a Forward Port to Fortress after it gets merged. FYI @Crola1702
Checklist

[x] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

I installed citadel locally and tested this PR and it fixes the problem, Green CI so I will merge, thanks for the review Nate!


Question about executing project

Hi, I want to run your project in windows.
I try to execute your project by using the manual from your project and original syzkaller.
However, I failed to execute it.
I did this command from original syzkaller
make fuzzer execprog stress TARGETOS=windows
I attempted to execute this command from your project but made compile error.

Would you explain?

syz-stress.exe -executor=syz-executor.exe -logprog true

Hi, Thank you for answering my question :)
I faced another problem when I command syz-stress.exe -executor=syz-executor.exe -logprog true
2023/02/01 05:38:15 unsupported syscall: NeedCurrentDirectoryForExePathA: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: OpenDriver: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: timeKillEvent: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: CertRegisterSystemStore: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: FillPath: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: GetUserDefaultLangID: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: ImmEnumInputContext: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: NCryptGetProperty: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: RpcErrorGetNumberOfRecords: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: RpcSmSetClientAllocFree: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: SetThreadDesktop: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: CharNextExA: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: GetMouseMovePointsEx: not in set of enabled calls
2023/02/01 05:38:15 unsupported syscall: Wow64RevertWow64FsRedirection: not in set of enabled calls
panic: no syscalls enabled and generatable

goroutine 1 [running]:
github.com/google/syzkaller/prog.(*Target).BuildChoiceTable(0xc0000c96c0, {0x0, 0x12, 0x0}, 0x1)
        /home/test/syzkaller/prog/prio.go:212 +0x89b
main.main()
        /home/test/syzkaller/tools/syz-stress/stress.go:83 +0x3d6

C:\Users\user\Desktop\syzkaller\bin\windows_amd64>

Could you give me any advice about this error?

Syz-stress just a test tool. It uses --syscalls to enable syscall sets. You should choose some syscall, then pass it to syz-stress.exe.
syz-stress.exe -executor=syz-executor.exe -syscalls CreateFileA -logprog true

Hi, I passed your command syz-stress.exe -executor=syz-executor.exe -syscalls CreateFileA -logprog true

It looks like it's being executed to me, is this the right execution?

I don't know. It seems that you are fuzzing the GetWindowRgn now, but my command's syscall is CreateFileA.

Ah yes, I ran the system call.
Would I ask something more?
I wonder how to make config.file in windows O/S
I think you made config.file in your project. (based on picture in your project)
How did you do that?
In contrast to Linux, windows do not offer kernel source code and I did not have any idea to make config.file.
Could you give me some advice on that?


deCONZ multiple gateways fixup

Breaking Change:

Description:
Previous PR got finished before a proper review could take place, this resolves @MartinHjelmare comments.
Pull request in home-assistant with documentation (if applicable): home-assistant/home-assistant#22449
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

Thanks!


Fix LdLen operand tags

In the change to defer handling of length field loads until later in the optimizer, the need arose to move from a LdFld on a PropertySym SymOpnd to a StackSym RegOpnd (ldfld a->length to ldlen a). Unfortunately, in this transition a few flags were lost on the operand; the most notable is the isJITOptimized flag, which was causing an assert to be hit a good number of times.

@rajatd @LouisLaf please review

}

BTW, it'd be good to move this whole if() to a separate function in an attempt to make OptInstr() more readable.

Refers to: lib/Backend/GlobOpt.cpp:4949 in 9809b1d. [](commit_id = 9809b1de0c1b1115d9b8c18c6efe79298854ba42, deletion_comment = False)

:shipit:


[Bug]: treesitter.lua:124: str: expected string, got nil

Your minimal.lua config
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- Your CodeCompanion setup
local plugins = {
  {
    "olimorris/codecompanion.nvim",
    dependencies = {
      { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate"},
      "nvim-lua/plenary.nvim",
      "nvim-telescope/telescope.nvim",
      {
        "stevearc/dressing.nvim",
        opts = {},
      },
    },
    config = function()
      require("codecompanion").setup({
        strategies = { -- Change the adapters as required
          chat = "openai",
          inline = "openai",
        },
      })
    end,
  }
}

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- setup treesitter
local ok, treesitter = pcall(require, "nvim-treesitter.configs")
if ok then
  treesitter.setup({
    ensure_installed = "all",
    ignore_install = { "phpdoc" }, -- list of parser which cause issues or crashes
    highlight = { enable = true },
  })
end

Error messages
Error detected while processing User Autocommands for "CodeCompanionRequest":
Error executing lua callback: /usr/share/nvim/runtime/lua/vim/treesitter.lua:124: str: expected string, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        /usr/share/nvim/runtime/lua/vim/treesitter.lua:124: in function 'get_string_parser'
        ...codecompanion.nvim/lua/codecompanion/strategies/chat.lua:246: in function 'run_tools'
        ...codecompanion.nvim/lua/codecompanion/strategies/chat.lua:599: in function '_user_on_exit'
        ...andelwow/.repro/plugins/plenary.nvim/lua/plenary/job.lua:241: in function '_shutdown'
        ...andelwow/.repro/plugins/plenary.nvim/lua/plenary/job.lua:221: in function 'shutdown'
        .../plugins/codecompanion.nvim/lua/codecompanion/client.lua:31: in function <.../plugins/codecompanion.nvim/lua/codecompanion/client.lua:28>
        [C]: in function 'nvim_exec_autocmds'
        ...codecompanion.nvim/lua/codecompanion/strategies/chat.lua:609: in function 'cb'
        .../plugins/codecompanion.nvim/lua/codecompanion/client.lua:115: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Health check output
codecompanion: require("codecompanion.health").check()

codecompanion.nvim report ~
- Log file: /home/bernie/.local/state/nvim/codecompanion.log
- OK plenary.nvim installed
- OK nvim-treesitter installed
- OK telescope.nvim installed
- OK dressing.nvim installed
- WARNING edgy.nvim not found
- OK curl installed
- OK base64 installed

Log output
[DEBUG] 2024-05-25 18:15:52
Stream Request: { "-sSL", "-D", "/run/user/1000/plenary_curl_b9c14a5b.headers", "--compressed", "-X", "POST", "-H", "Authorization: Bearer REMOVED", "-H", "Content-Type: application/json", "--data-raw", '{"top_p":1,"temperature":1,"presence_penalty":0,"frequency_penalty":0,"messages":[{"role":"user"}],"model":"gpt-4o","stream":true}', "--no-buffer", "--silent", "https://api.openai.com/v1/chat/completions" }
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON: {
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON:     "error": {
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON:         "message": "The model `gpt-4o` does not exist or you do not have access to it.",
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON:         "type": "invalid_request_error",
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON:         "param": null,
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON:         "code": "model_not_found"
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON:     }
[DEBUG] 2024-05-25 18:15:52
Couldn't parse JSON: }

Describe the bug
Calling :CodeCompanionChat followed by :w results in the above error.
Tested with nvim built from git head:
NVIM v0.11.0-dev-96+g7994fdba6
Build type: Release
LuaJIT 2.1.1713484068

Also tested with Arch system package:
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202

Reproduce the bug

/usr/bin/nvim --clean -u minimal.lua
:CodeCompanionChat
:w

Final checks

[X] I have made sure this issue exists in the latest version of the plugin
[X] I have tested with the minimal.lua config file above and still get the issue

I think the answer lies in your log output:
The model `gpt-4o` does not exist or you do not have access to it.

I've just tried putting in my own API key with your minimal.lua file and it works as expected. Can you access gpt-4o outside of CodeCompanion?

Topping up my OpenAI account with $10 cured the issue :-)
Can we leave this bug open to report API errors in the UI?

I thought I'd handled that damn out of credit error. It got me last time 😆.
I'll try and handle those other errors better. Thanks for raising this.

It looks like I should have detected we had an error in the response and not allowed the run_tools method to be called.

Closing this as I have been able to confirm this is now handled.


gray image only?

Hi,
Can genalog degrade RGB images?

Unfortunately, some of the degradation effects are currently designed to work with greyscale imagez only.


Make dashboard configuration align with standard .NET configuration

Most configuration in .NET uses Microsoft.Extensions.Configuration, which supports great features such as sections.
Aspire dashboard has a rapidly growing number of configuration options:

Endpoints
Auth
OTLP limits
Logging (built-in config)
Kestrel (built-in config)

Right the config options we've added to Aspire don't follow the .NET naming standard for config or sections. For example, setting OTLP auth mode has a key called DOTNET_DASHBOARD_OTLP_AUTH_MODE instead of something like AspireDashboard__Otlp__AuthMode (double underscores indicates a section delimiter in env vars).
There are pros and cons to each. DOTNET_DASHBOARD_OTLP_AUTH_MODE is optimized for command line and env var usage, but it doesn't match built-in config values, and isn't nested into sections in JSON files.
We should consider consistently using the .NET standard for naming and organizing dashboard configuration.

@davidfowl @drewnoakes What do you think?

Seems reasonable. Not a huge fan of the double-underscore syntax (mostly because it could be mistaken for a single underscore and lead to confusion), but using configuration in the way it was intended wins out for me.

I think we can add top level env variable alternative to commonly used env variables to avoid double underscore but we should default to the normal configuration model.

With two ways to configure the same thing, which would win if both were provided?

We pick one 😄


Replace default curl 7.68 on Ubuntu 20.04 with 7.75+ version to support aws-sigv4

Description
Replace default curl 7.68 on Ubuntu 20.04 with 7.75+ version to support aws-sigv4
Issues Resolved
opensearch-project/opensearch-build#4469
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

https://build.ci.opensearch.org/job/packer-build/94/console


Add support for user origins

Adds support to specify the user origin that will be used when using
cf auth.
Co-authored-by: Gareth Evans<EMAIL_ADDRESS>

Also, could you please link me somewhere where I could see what this origin flag adds? Why do y'all want to add it?

We want to be able to re-use our ASATS (App-Autoscaler acceptance test suite) internally at SAP. However, at SAP the default identity provider is SAP ID service. This means users created by cf create-user  (e.g. created with cf-test-helpers) will be created in the platform UAA, but trying to login via cf auth will lookup users in SAP ID service which does not know users created in some platform UAA.
So, to be able to run the ASATS internally, we need to be able to target the correct identity provider (uaa) in the cf auth step using the --origin flag.
I hope this specific reason is good enough to get this change in, as in the end we just add the ability to support a feature that is already in CF also in tests.


mj-spacer default height not working

In the MJML documentation for mj-spacer, the height default value says it is 20px. Omitting the height attribute results in a 0 height spacer.
Reproduction Steps:

Insert a <mj-spacer /> into your template somewhere between two elements.
Inspect the output HTML for the height and note there are NaN and undefined values set for the spacer.

Expected behavior:
Using a no-attribute <mj-spacer /> should result in a space with 20px between.
Observed behavior:
Without a height attribute defined, there is no space. Looking at the output HTML, this is what happens when the attribute is omitted:

Notice the td height is NaN, height style property is undefined, and there's no height style property set on the inner div. When specifying a height, such as 20px, the following HTML is produced and renders the space correctly:

MJML version:
Whatever is live on https://mjml.io/try-it-live/components/spacer and also reproduced on at least 4.1.0.
Email clients the bug is seen on:
All

Hi @mbaumbach, thanks for reporting this, this will be fixed in the next version

Hi @mbaumbach this has been fixed in the new release mjml4.2-beta, which you can install with npm install mjml, you can check if it solves your problem


[question] Use-cases of default variables

Example zookeeper_default_user
This seems like an Ansible anti-pattern if that default is defined only to be checked in an if-else to be discarded later
Why not just zookeeper_user: <default> and let the user define it themselves in their variables?
Reference: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#role-default-variables

@cricket007 Thanks for the question.  My thoughts are, that this is actually easier for the end user in this form, as we give them a default that they don't have to think about or set, but can override if they wish.  We've had requests from users to be able to set their own users, while we've had others be happy with the defaults.  So to me, this seems like the simplest approach to satisfy both groups.
Perhaps @domenicbove has further thoughts on this?

we give them a default that they don't have to think about or set, but can override if they wish

Right, and having simply zookeeper_user (in either defaults/main.yml or the higher priority variables such as the inventory or cli args) allows for that use case perfectly fine.
My point is that this logic could be simplified
{{ zookeeper_user if zookeeper_user != zookeeper_default_user else '' }}
To simply
{{ zookeeper_user | default() }}
Because the default default value parameter is an empty string
Source: https://github.com/pallets/jinja/blob/8a49e066af3d88d1edb34aa1680b668c959dfcf7/jinja2/filters.py#L267

Hey happy to get advice on this one, there are two variables that need to be set:
zookeeper_user: confluent-kafka
zookeeper_service_overrides:
  LimitNOFILE: 100000
  User: <ideally set to empty string if zookeeper_user remains confluent-kafka>

The logic is this- customer can update zookeeper_user, but only if they do, do i want to update zookeeper_service_overrides.User. The templating for the service override files only writes to the file if the value is a non empty string.
Can we use the default filter to achieve this ^^?

Hey @domenicbove
Related question: What's the benefit of setting an empty string for the user or group in the service?
What permissions/security would that offer?

so if you look at the confluent.zookeeper/templates/override.conf.j2 youll see that it loops over the zookeeper_service_overrides dictionary and only writes to the file the key/values if the value is a non empty string.
Now the use of this overrides.conf file is to override what is in the service unit file for each service. for zookeeper this is /usr/lib/systemd/system/confluent-zookeeper.service and if you were to examine that file there is a line in it:
User=confluent-kafka
Furthermore I do not what to write User=confluent-kafka into /etc/systemd/system/confluent-zookeeper.service.d/override.conf I only want to write customized users into that file

@cricket007 @domenicbove I think the current approach makes sense relative to what we are trying to achieve, and respecting that are not modifying anything unless we have to (override.conf).  Unless there are further suggestions/questions, going to close this out.

I still think there is a way to do it with only one variable and letting the user override that, but when I get time, I'll see if I can work that out.
Thanks for the responses anyway 😄


python3Packages.aiohomekit: 0.6.3 -> 0.6.4

Motivation for this change
Update to latest upstream release 0.6.4
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 wip"
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 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

[x] Fits CONTRIBUTING.md.

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

2 packages built:

python38Packages.aiohomekit
python39Packages.aiohomekit


ntr: Golgi calcium ion transmembrane transport

descendent of
GO:0032472 Golgi calcium ion transport
GO:0070588 calcium ion transmembrane transport
(I'm sure its all probably transmembrane- but currently using 2 terms inconsistently)

can use PMID: 21811607


dateViewer shows up as 00 AM while using 12-hour time setting

I was expecting to see 12 AM in the midnight, but when I set to 12-hour time setting, this happened:

Hey! I just see this issue. I'll add a fix in the next update.
I believe it's valid to use 12 or 00, so probably I'll use a toggle button in settings to change that.

I'm gonna close this issue now, because 1.11 most probably handle this problem.
Let me know if it isn't working. Cheers!


SIGSEGV yami decode MD5 ouput mode (-m -2)

Since the following commit in libyami decode, MD5 output mode (-m -2) segfaults (see stack trace below).
commit a088df6e6f762a27f7b13b8342260ad100920fbf
Author: wudping<EMAIL_ADDRESS>Date:   Thu Mar 30 11:03:07 2017 +0800

    com_unittest: modify over range resolution

    When the width or hight overflows the maxmum value of int,
    guessResolution() returns false.

    Signed-off-by: wudping<EMAIL_ADDRESS>
Starting program: /opt/media/install/bin/yamidecode -i /opt/media/src/media_smoke/media_streams/decodebitstreams/vp9_10bit/basic/vp9_kf_2frm_SplitLvl3_10bit_fastfood_64x64.ivf -m -2 -f P010
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /opt/media/install/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0

Program received signal SIGSEGV, Segmentation fault.
___fprintf_chk (fp=0x5f336c764c74696c, flag=flag@entry=1, format=format@entry=0x417ced "%s\n") at fprintf_chk.c:30
30	fprintf_chk.c: No such file or directory.
(gdb) bt full
#0  ___fprintf_chk (fp=0x5f336c764c74696c, flag=flag@entry=1, format=format@entry=0x417ced "%s\n") at fprintf_chk.c:30
        _IO_acquire_lock_file = 0x5f336c764c74696c
        ap = <error reading variable ap (Attempt to dereference a generic pointer.)>
        done = <optimized out>
#1  0x0000000000406e1d in fprintf (__fmt=0x417ced "%s\n", __stream=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:98
No locals.
#2  DecodeOutputMD5::writeToFile[abi:cxx11](MD5Context&) (this=this@entry=0x6526b0, t_ctx=...) at decodeoutput.cpp:402
        temp = "b6\000"
        result = "i\017\037<\213\206\263u\245/\263\305\303|\224\266"
        strMD5 = "690f1f3c8b86b375a52fb3c5c37c94b6"
#3  0x0000000000408ab5 in DecodeOutputMD5::output (this=0x6526b0, frame=...) at decodeoutput.cpp:429
        frameMD5 = {state = {0, 0, 0, 0}, count = 0, buffer = '\000' <repeats 63 times>}
        frame = <optimized out>
        this = 0x6526b0
#4  0x00000000004047cb in DecodeTest::run (this=this@entry=0x7fffffffdf20) at decode.cpp:83
        fps = {m_frames = 0, m_start = 0, m_netStart = 4287696, static NET_FPS_START = 5}
        src = std::tr1::shared_ptr (count 1, weak 0) 0x6626f0
        count = 0
#5  0x0000000000404061 in main (argc=<optimized out>, argv=<optimized out>) at decode.cpp:106
        decode = {m_output = std::tr1::shared_ptr (count 1, weak 0) 0x6526b0, m_nativeDisplay = std::tr1::shared_ptr (count 2, weak 0) 0x6339c0, m_vppInput =
    std::tr1::shared_ptr (count 1, weak 0) 0x660e90, m_params = {
            inputFile = 0x7fffffffe3ae "/opt/media/src/media_smoke/media_streams/decodebitstreams/vp9_10bit/basic/vp9_kf_2frm_SplitLvl3_10bit_fastfood_64x64.ivf",
            width = 64, height = 64, renderMode = -2, waitBeforeQuit = 1, renderFrames =<PHONE_NUMBER>, renderFourcc = 808530000, outputFile = "./", useCAPI = false,
            temporalLayer = 0, spacialLayer = 0, qualityLayer = 0}}
(gdb)

I am only able to reproduce with HEVC 10 bit and VP9 10 bit streams.  I could not reproduce with other codecs.

m_file is an invalid pointer.... looks like someone forgot to initialize it to NULL.

C++'s std::ofstream would be better for file operations instead of raw C-style FILE* constructs.

Thanks @stripes416 for rising up this issue that I make. I am sorry for that.
Thanks @uartie to fix this.

Hi @wudping , do we have a regression test for -2?

Yes, @xuguangxin, we have.
I have double-checked it on my end.
But @uartie help to fix this bug with the pull request #98.

@xuguangxin and @wudping ... The commit mentioned in the description above did not actually introduce this bug... this bug has always been there.  It was only coincidence since this patch likely changed binary memory layout in a way that exposed the problem.  It's a surprise that the bug never surfaced until now.

Furthermore, uninitialized class member variables get arbitrary values... we've only been lucky until now that the arbitrary value was 0 (NULL) previously.

it's little wired, static scan tool should report issues if we use a uninitialised memory. But it does not report it...


feat: Add Amazon Nova models to Bedrock provider

Add support for three new models in the bedrock provider:

Amazon Nova Micro
Amazon Nova Lite
Amazon Nova Pro

References:

https://docs.aws.amazon.com/nova/latest/userguide/getting-started-schema.html

This is awesome! Thank you so much @vehoalex! I'll test it and get it out in the next release (tomorrow).

Works well for me!  Thanks @vehoalex !


Support multiple frontends and backends

Support multiple frontends and several backends per frontend.
e.g.
routes:
- udp://<IP_ADDRESS>:5050?backend=localhost:5000&backend=localhost:5001

Add metrics


[FEATURE]  invoke tpcds from sql

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Search before asking

[X] I have searched in the issues and found no similar issues.

Describe the feature
using sql extensions to create and run tpcds sql benchmarks
call  spark.system.create_tpcds(sf=10, db='tpcds_sf10', fmt='parquet', parallel=20)
call  spark.system.run_tpcds(db='tpcds_sf10', filter='q1-v2.4')

Motivation
users with no dev background can create and run tpcds datasets
Describe the solution
call  spark.system.create_tpcds(sf=10, db='tpcds_sf10', fmt='parquet', parallel=20)
call  spark.system.run_tpcds(db='tpcds_sf10', filter='q1-v2.4')

Additional context
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

@yaooqinn  if you are okay with this approach, I will spend sometime and contribute a patch

I am OK, can you detail a little about the user behavior, what are we gonna change?

nothing really changes from the user side, it's just they can now issue these control command from the beeline.
implementation side we will introduce store procedure like routines, which I think is perfect for this task.  also more control commands could be supported from this on.

Tips: currently the tpcds moudle can not be ship with the official release because of license, we may need to replace it by a Apache licensed one https://github.com/Teradata/tpcds

we currently support scala operation like spark.sql(...)/ spark.udf., why we need the call prefix

we currently support scala operation like spark.sql(...)/ spark.udf., why we need the call prefix

that's true, now kyuubi is supporting scala code, call is less relevant from a developer context. but at the time of writing, I was more thinking of doing this in pure sql context.

Tips: currently the tpcds moudle can not be shipped with the official release because of license, we may need to replace it by an Apache licensed one https://github.com/Teradata/tpcds

@pan3793 I did remember there are some packages related to tpcds in kyuubi before, seems no longer there anymore? when is it removed?

We have no plan to remove the TPC-DS related classes/modules, but it can NOT be included into the official source/binary release bundle because of the license.


Fix accuracy when topk > num_classes

In order to fix the accuracy RuntimeError from #807, I propose this simple solution. It'll avoid to had lot of changes to train.py file.
In case of topk > num_classes, accuracy will return 100.

@yohann84L thx, tweaked it a bit to not need creating a new tensor, as you'd also have to match the device, etc


webpack injection imrovement

It's not an issue, but just a hint on how you can further slightly improve the way of injecting the reload code.
You can leverage weback's "multi-main entry". Taking your config here:
entry: {
    popup: path.join(srcDir, 'popup'),
    options: path.join(srcDir, 'options'),
    background: isDev ? ['mv3-hot-reload/background', path.join(srcDir, 'background')] : path.join(srcDir, 'background'),
    content: isDev? ['mv3-hot-reload/content', path.join(srcDir, 'content')] : path.join(srcDir, 'content'),
  },

In this case, the reload code will only be injected into the dev build and will not be even available in production. Also, you don't need to add import 'mv3-hot-reload/background' etc. into your scripts.

Looks great! Thanks for your suggestion.


Update Packages Tag v0.2.1

New Packages tag with Cronjob and webhook fixes

/hold

/cherrypick release-0.11

/unhold

/lgtm
/approve


Renaming a field causes a change in code behavior

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

-VS Code Version: 1.88.1
-OS Version: Windows11
-Language：java
Steps to Reproduce:
1.select "j"
2.click “Rename”
3. new name "i"
class A {
void m() {
int i = 0;
class B {
// rename j to i;
int j;
		void k() {
			j = i;
		}
	}
};

}
refactoring result:

/extJava

It looks like this is caused by the Java extension. Please file the issue to the Java extension repository. Make sure to check their troubleshooting instructions and provide relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


most random PR ever

@K-ov you gotta review this crazy PR bro (and also merge it)

nvm it crashes

Crazy


GitHub and Jira Service Desk Integration

While we integrate Jira and GitHub we can see development panel field in Jira Software projects issues, where we do everything.
But in case of Jira Service Desk projects it is not happening.
Is it possible to integrate Jira Service Desk with GitHub? like jira software.

Hi @bhushanrga. I'm from a team at Atlassian that is currently in the process of migrating the ownership over to us from GitHub. As a part of this, we're currently going through the backlog of issues and prs to see what can still be addressed and what should be closed.
I've flagged this with the 'to-triage' label so my team can discuss. We'll keep you posted on the status of this.

@bhushanrga no, sorry. This integration only works for Jira Software.

Hi @bhushanrga. Going to close this issue out. Please let us know if you have any other questions.


ImportError: cannot import name 'initialize_tasks' from 'lm_eval.tasks'

When I run the examples/evaluator. py file, the code runs from awq.evaluation import（
evaluate_perplexity,
eval_librispeech,
eval_mmlu,
eval_humaneval,
eval_kl_divergence,）An ImportError occurred: cannot import name 'initialized tasks' from' lm_ eval. tasks' error. Can you help me?
Here is my environment:
cuda: 12.4
torch: 2.3.1
transformers: 4.42.4
vllm: 0.5.3
lm_eval: 0.4.3

You can pip install -e .[eval] to get the right dependencies


plugins/slate: Lists in importFromHtml not working in Editable

When I use the importFromHtml option in slate in an Editable, list items are not displayed correctly. It works perfectly well, when using HTMLRenderer of the ory-editor-renderer

Code of App.js:
import React, { Component }from 'react'

import Editor, { Editable, createEmptyState } from 'ory-editor-core'
import 'ory-editor-core/lib/index.css'

import { HTMLRenderer } from 'ory-editor-renderer'

import { Trash, DisplayModeToggle, Toolbar } from 'ory-editor-ui'
import 'ory-editor-ui/lib/index.css'
import slate from 'ory-editor-plugins-slate'
import 'ory-editor-plugins-slate/lib/index.css'

require('react-tap-event-plugin')()

const plugins = {
    content: [slate()],
    layout: []
}

const content = {
    id: 1,
    cells: [{
        id: "3fde7b92-fbfe-4b2d-85b3-bad431939df6",
        size: 12,
        content: {
            plugin: {
                name: "ory/editor/core/content/slate",
            },
            state: {
                importFromHtml: "

One

Two

"
            }
        }
    }]
}

const editor = new Editor({
    plugins,
    editables: [content],
})

class App extends Component {
    render() {
        return (

With Editable:

                <Editable editor={editor} id={content.id}/>

With HTMLRenderer:

                <HTMLRenderer state={content} plugins={plugins}/>
                <Trash editor={editor}/>
                <DisplayModeToggle editor={editor}/>
                <Toolbar editor={editor}/>

        );
    }
}

export default App;

Is it possible that that's a style issue?

I don't know, but the code above is from a clear reactjs app (i used create-react-app and only modified the App.js and added the necessary dependencies). So I don't think thats the issue here?

You can inspect the DOM and if there's in fact no ul/li items it's a bug but from here it looks like a broken styles issue.

I'll check the example above again, because I didn't check it there, but in my original code there was an ul tag but with paragraph children instead of li.
I let you know about the example above

Checked it, the DOM structure is wrong in the Editable variant, but correct in HTMLRenderer.
Editable produces the following:

    One

    Two

Whereas HTMLRenderer produces:

One

Two

I am experiencing the same issue. It is also happening in the tech demo https://editor.ory.am/

Can confirm, the slate list plugin itself is broken, the import is probably fine.

Maybe 0.8.0 resolves this: https://www.npmjs.com/package/slate-edit-list

Have there been any updates on this issue? If needed I can look at upgrades and put a PR up.


Surge of Light (SoD)

Request to track Priest's Bracer Rune: Surge of Light
It would probably re-use the Surge of Light effect from Wrath of the Lich King, although trigger conditions and empowerment slightly differ.

Implemented in #202.


Problem with ubiquity-provisioner service in CfC deployment

Dear all,
I have an issue with ubiquity-k8s; ubiquity service runs nice (uniquity-docker as well),
but ubiquity-provisioner service fails ;=(
Here is the output of journalctl:
...
Aug 11 10:32:12 worker1.ibm.edu provisioner[21021]: F0811 10:32:12.107513   21021 semver.go:47] failed to parse semver from
gitversion "cfc-<IP_ADDRESS>+f04cb2d1cde1c7-dirty": Invalid character(s) found in major number "cfc-1"
...
Here is the (manual) output of https://<IP_ADDRESS>:8001/version
{
"major": "1",
"minor": "6",
"gitVersion": "cfc-<IP_ADDRESS>+f04cb2d1cde1c7-dirty",
"gitCommit": "f04cb2d1cde1c7ae8edbb44289529b871e84d541",
"gitTreeState": "dirty",
"buildDate": "2017-04-18T07:25:14Z",
"goVersion": "go1.8",
"compiler": "gc",
"platform": "linux/amd64"
}
Any idea? Is the "-" in "cfc-1" an issue?
Thanks in advance,
Christof

@cwesthues ,
the issues comes from "cfc-<IP_ADDRESS>+f04cb2d1cde1c7-dirty" git version that is not parsable by kuberenetes version parser. A workaround is to hard-code the version in:
https://github.com/IBM/ubiquity-k8s/blob/dev/cmd/provisioner/main/main.go#L111
to "v1.6.1" . Should you do that please comment out these lines as well: https://github.com/IBM/ubiquity-k8s/blob/dev/cmd/provisioner/main/main.go#L91-L94

@cwesthues please open an issue on cfc repo to resolve this issue.
Thanks

can we resolve it in ubiquity?
does it mean that cfc will not work until this fix will take place?
בתאריך 11 באוג׳ 2017 09:17 PM, "Mohamed Mohamed"<EMAIL_ADDRESS>כתב:

@cwesthues https://github.com/cwesthues please open an issue on cfc
repo to resolve this issue.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/IBM/ubiquity-k8s/issues/51#issuecomment-321883620,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABB5YdtCHRLNQVGGQIKj_-oFZqqjzXreks5sXJqngaJpZM4O0ZKE
.

@shay-berman I think that this is not an issue for ubiquity-k8s, but we can add another check, if the original git version fails we use a static one like "v1.6.1" or later ... but if this issue is resolved from cfc side, we don't need to do anything

It doesn't like the hyphen for patch.
ie
this works
v1.6.1-dirty
but not this
v1.6.1.dirty

@macthev  \ @midoblgsm , can we close this issue ?  (since its its CfC issue and not ubiquity)

An override would help. Otherwise okay to close from me.

@macthev  do you know if there is an open issue in CfC about fixing the CfC version number?

I dont think so.

I don-t think this's a ICP/CfC issue; ubiquity-provisioner should not only bind to k8s community version, it's better to be friendly to other distribution.

ubiquity provisioner communicates with the k8s API server.
The fail not cause by ubiquity, the kuberenetes version parser fails to parse the cfc version number since its not standard for k8s parser.
@macthev please confirm that CfC plan to fix this.
@k82cn, any suggestions?

Maybe a warning/error message is enough for end user instead of panic.

Yes that would be sufficient or and override.
On 20 Oct 2017 19:00, "Klaus Ma"<EMAIL_ADDRESS>wrote:

Maybe a warning/error message is enough for end user instead of panic.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IBM/ubiquity-k8s/issues/51#issuecomment-338113684,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdyUTfhh5Zo5OiG0EP1yP2gP_nLleBg5ks5suDbwgaJpZM4O0ZKE
.

just replace panic with logger.Printf :).

Per Matthew Levan, its no longer issue with the latest ICP installation.
So I am closing this ticket.


Make the catalog/canvas divider movable

So that I can resize canvas/catalog as needed.

Depende on the component, might be better to wait after #657.
Create resizable split views


[Event Request] codeunit 827 "Service Post Invoice Events"

Hi,
Is it possible to change code like below?
codeunit 817 "Service Post Invoice" Changes
    procedure PrepareLine(DocumentHeaderVar: Variant; DocumentLineVar: Variant; DocumentLineACYVar: Variant)
    var
        ServiceHeader: Record "Service Header";
        ServiceLine: Record "Service Line";
        ServiceLineACY: Record "Service Line";
        GenPostingSetup: Record "General Posting Setup";
        InvoicePostingBuffer: Record "Invoice Posting Buffer";
        ServCost: Record "Service Cost";
        TotalVAT: Decimal;
        TotalVATACY: Decimal;
        TotalAmount: Decimal;
        TotalAmountACY: Decimal;
        TotalVATBase: Decimal;
        TotalVATBaseACY: Decimal;
        SalesAccount: Code[20]; //***NEW***
        IsHandled: Boolean;
    begin
        ServiceHeader := DocumentHeaderVar;
        ServiceLine := DocumentLineVar;
        ServiceLineACY := DocumentLineACYVar;

        IsHandled := false;
        ServicePostInvoiceEvents.RunOnBeforePrepareLine(ServiceHeader, ServiceLine, ServiceLineACY, IsHandled);
        if IsHandled then
            exit;

        SalesSetup.Get();
        if not ApplicationAreaMgmt.IsSalesTaxEnabled() then
            if (ServiceLine."Gen. Bus. Posting Group" <> GenPostingSetup."Gen. Bus. Posting Group") or
               (ServiceLine."Gen. Prod. Posting Group" <> GenPostingSetup."Gen. Prod. Posting Group")
            then begin
                GenPostingSetup.Get(ServiceLine."Gen. Bus. Posting Group", ServiceLine."Gen. Prod. Posting Group");
                GenPostingSetup.TestField(Blocked, false);
            end;

        InvoicePostingBuffer.PrepareService(ServiceLine);

        TotalVAT := ServiceLine."Amount Including VAT" - ServiceLine.Amount;
        TotalVATACY := ServiceLineACY."Amount Including VAT" - ServiceLineACY.Amount;
        TotalAmount := ServiceLine.Amount;
        TotalAmountACY := ServiceLineACY.Amount;
        TotalVATBase := ServiceLine."VAT Base Amount";
        TotalVATBaseACY := ServiceLineACY."VAT Base Amount";

        if SalesSetup."Discount Posting" in
           [SalesSetup."Discount Posting"::"Invoice Discounts", SalesSetup."Discount Posting"::"All Discounts"]
        then begin
            CalcInvoiceDiscountPosting(InvoicePostingBuffer, ServiceLine, ServiceLineACY, ServiceHeader);
            if (InvoicePostingBuffer.Amount <> 0) or (InvoicePostingBuffer."Amount (ACY)" <> 0) then begin
                InvoicePostingBuffer.SetAccount(
                  GenPostingSetup.GetSalesInvDiscAccount(), TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
                InvoicePostingBuffer.UpdateVATBase(TotalVATBase, TotalVATBaseACY);
                if ServiceLine."Line Discount %" = 100 then begin
                    InvoicePostingBuffer."VAT Base Amount" := 0;
                    InvoicePostingBuffer."VAT Base Amount (ACY)" := 0;
                    InvoicePostingBuffer."VAT Amount" := 0;
                    InvoicePostingBuffer."VAT Amount (ACY)" := 0;
                end;
                UpdateInvoicePostingBuffer(InvoicePostingBuffer, ServiceLine);
            end;
        end;

        if SalesSetup."Discount Posting" in
           [SalesSetup."Discount Posting"::"Line Discounts", SalesSetup."Discount Posting"::"All Discounts"]
        then begin
            CalcLineDiscountPosting(InvoicePostingBuffer, ServiceLine, ServiceLineACY, ServiceHeader);
            if (InvoicePostingBuffer.Amount <> 0) or (InvoicePostingBuffer."Amount (ACY)" <> 0) then begin
                InvoicePostingBuffer.SetAccount(
                  GenPostingSetup.GetSalesLineDiscAccount(), TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
                InvoicePostingBuffer.UpdateVATBase(TotalVATBase, TotalVATBaseACY);
                UpdateInvoicePostingBuffer(InvoicePostingBuffer, ServiceLine);
            end;
        end;

    //***OLD***BEGIN
        InvoicePostingBuffer.SetAmounts(
          TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY, ServiceLine."VAT Difference", TotalVATBase, TotalVATBaseACY);

        case ServiceLine.Type of
            ServiceLine.Type::"G/L Account":
                InvoicePostingBuffer.SetAccount(ServiceLine."No.", TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
            ServiceLine.Type::Cost:
                begin
                    ServCost.Get(ServiceLine."No.");
                    InvoicePostingBuffer.SetAccount(ServCost."Account No.", TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
                end
            else
                if ServiceLine."Document Type" = ServiceLine."Document Type"::"Credit Memo" then
                    InvoicePostingBuffer.SetAccount(
                      GenPostingSetup.GetSalesCrMemoAccount(), TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY)
                else
                    InvoicePostingBuffer.SetAccount(
                      GenPostingSetup.GetSalesAccount(), TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
        end;
        InvoicePostingBuffer.UpdateVATBase(TotalVATBase, TotalVATBaseACY);

        ServicePostInvoiceEvents.RunOnPrepareLineOnAfterFillInvoicePostingBuffer(InvoicePostingBuffer, ServiceLine, ServiceLineACY, SuppressCommit);

        UpdateInvoicePostingBuffer(InvoicePostingBuffer, ServiceLine);
    end;
    //***OLD***END

    //***NEW***BEGIN
        IsHandled := false;
        ServicePostInvoiceEvents.RunOnPrepareLineOnBeforeSetAmounts(
            ServiceLine, ServiceLineACY, InvoicePostingBuffer,
            TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY, TotalVATBase, TotalVATBaseACY, IsHandled);
        if not IsHandled then
            InvoicePostingBuffer.SetAmounts(
              TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY, ServiceLine."VAT Difference", TotalVATBase, TotalVATBaseACY);

        ServicePostInvoiceEvents.RunOnPrepareLineOnAfterSetAmounts(InvoicePostingBuffer, ServiceLine);

        SalesAccount := GetSalesAccount(ServiceLine, GenPostingSetup);

        ServicePostInvoiceEvents.RunOnPrepareLineOnBeforeSetAccount(ServiceHeader, ServiceLine, SalesAccount);
        InvoicePostingBuffer.SetAccount(SalesAccount, TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY);
        InvoicePostingBuffer.UpdateVATBase(TotalVATBase, TotalVATBaseACY);

        ServicePostInvoiceEvents.RunOnPrepareLineOnAfterFillInvoicePostingBuffer(InvoicePostingBuffer, ServiceLine, ServiceLineACY, SuppressCommit);

        UpdateInvoicePostingBuffer(InvoicePostingBuffer, ServiceLine);
    end;

    local procedure GetSalesAccount(ServiceLine: Record "Service Line"; GenPostingSetup: Record "General Posting Setup") SalesAccountNo: Code[20]
    var
        ServCost: Record "Service Cost";
        IsHandled: Boolean;
    begin
        IsHandled := false;
        ServicePostInvoiceEvents.RunOnBeforeGetSalesAccount(ServiceLine, GenPostingSetup, SalesAccountNo, IsHandled);
        if not IsHandled then
            case ServiceLine.Type of
                ServiceLine.Type::"G/L Account":
                    SalesAccountNo := ServiceLine."No.";
                ServiceLine.Type::Cost:
                    begin
                        ServCost.Get(ServiceLine."No.");
                        SalesAccountNo := ServCost."Account No.";
                    end;
                else
                    if ServiceLine."Document Type" = ServiceLine."Document Type"::"Credit Memo" then
                        SalesAccountNo := GenPostingSetup.GetSalesCrMemoAccount()
                    else
                        SalesAccountNo := GenPostingSetup.GetSalesAccount();
            end;

        ServicePostInvoiceEvents.RunOnAfterGetSalesAccount(ServiceLine, GenPostingSetup, SalesAccountNo);
    end;
    //***NEW***END

codeunit 827 "Service Post Invoice Events" Changes
codeunit 827 "Service Post Invoice Events"
{
    //***NEW***BEGIN
    procedure RunOnPrepareLineOnBeforeSetAmounts(ServiceLine: Record "Service Line"; ServiceLineACY: Record "Service Line"; var InvoicePostingBuffer: Record "Invoice Posting Buffer"; var TotalVAT: Decimal; var TotalVATACY: Decimal; var TotalAmount: Decimal; var TotalAmountACY: Decimal; var TotalVATBase: Decimal; var TotalVATBaseACY: Decimal; var IsHandled: Boolean)
    begin
        OnPrepareLineOnBeforeSetAmounts(ServiceLine, ServiceLineACY, InvoicePostingBuffer, TotalVAT, TotalVATACY, TotalAmount, TotalAmountACY, TotalVATBase, TotalVATBaseACY, IsHandled);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnPrepareLineOnBeforeSetAmounts(ServiceLine: Record "Service Line"; ServiceLineACY: Record "Service Line"; var InvoicePostingBuffer: Record "Invoice Posting Buffer"; var TotalVAT: Decimal; var TotalVATACY: Decimal; var TotalAmount: Decimal; var TotalAmountACY: Decimal; var TotalVATBase: Decimal; var TotalVATBaseACY: Decimal; var IsHandled: Boolean)
    begin
    end;

    procedure RunOnPrepareLineOnAfterSetAmounts(var InvoicePostingBuffer: Record "Invoice Posting Buffer"; ServiceLine: Record "Service Line")
    begin
        OnPrepareLineOnAfterSetAmounts(InvoicePostingBuffer, ServiceLine);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnPrepareLineOnAfterSetAmounts(var InvoicePostingBuffer: Record "Invoice Posting Buffer"; ServiceLine: Record "Service Line")
    begin
    end;

    procedure RunOnPrepareLineOnBeforeSetAccount(ServiceHeader: Record "Service Header"; ServiceLine: Record "Service Line"; var SalesAccount: Code[20])
    begin
        OnPrepareLineOnBeforeSetAccount(ServiceHeader, ServiceLine, SalesAccount);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnPrepareLineOnBeforeSetAccount(ServiceHeader: Record "Service Header"; ServiceLine: Record "Service Line"; var SalesAccount: Code[20])
    begin
    end;

    procedure RunOnBeforeGetSalesAccount(ServiceLine: Record "Service Line"; GenPostingSetup: Record "General Posting Setup"; var SalesAccountNo: Code[20]; var IsHandled: Boolean)
    begin
        OnBeforeGetSalesAccount(ServiceLine, GenPostingSetup, SalesAccountNo, IsHandled);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeGetSalesAccount(ServiceLine: Record "Service Line"; GenPostingSetup: Record "General Posting Setup"; var SalesAccountNo: Code[20]; var IsHandled: Boolean)
    begin
    end;

    procedure RunOnAfterGetSalesAccount(ServiceLine: Record "Service Line"; GenPostingSetup: Record "General Posting Setup"; var SalesAccountNo: Code[20])
    begin
        OnAfterGetSalesAccount(ServiceLine, GenPostingSetup, SalesAccountNo);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnAfterGetSalesAccount(ServiceLine: Record "Service Line"; GenPostingSetup: Record "General Posting Setup"; var SalesAccountNo: Code[20])
    begin
    end;
    //***NEW***END
}

Hi, any update on this request?

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 49880.


[5.10] [SILGen] Remove mark_uninitialized for if/switch expr branches

5.10 cherry-pick of https://github.com/apple/swift/pull/68705 + https://github.com/apple/swift/pull/68803

Explanation: Fixes a spurious diagnostic that definite initialization would emit for an as? branch of an if/switch expression.
Scope: Affects the use of conditional casts as if/switch expression bodies
Issue: https://github.com/apple/swift/issues/68764
Risk: Low, the fix removes an unnecessary instruction
Testing: Added tests to test suite
Reviewer: Joe Groff

@swift-ci please test


[Visual Search] Additional documentation, add discriminator types, up…

…date example to remove outdated actions
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Can one of the admins verify this patch?

Automation for azure-sdk-for-go

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-node

Automation for azure-sdk-for-java

@shakao please fix the sample:
Validating "examples" and "x-ms-examples" in  specification/cognitiveservices/data-plane/VisualSearch/preview/v1.0/VisualSearch.json:
 error:
operationId: Images_VisualSearch
scenario: Successful visual search
source: request
responseCode: ALL
severity: 0
errorCode: ONE_OF_MISSING
errorDetails:
  code: ONE_OF_MISSING
  params: []
  message: Data does not match any schemas from 'oneOf'
  path: paths//images/visualsearch/post/parameters/12
  description: >-
    The form data is an image binary. The Content-Disposition header's name
    parameter must be set to "image". You must specify an image binary if you do
    not use knowledgeRequest form data to specify the image; you may not use
    both forms to specify an image. You may specify knowledgeRequest form data
    and image form data in the same request only if knowledgeRequest form data
    specifies the cropArea field only  (it must not include an insights token or
    URL).
  inner:
    - code: INVALID_TYPE
      params:
        - file
        - string
      message: Expected type file but found type string
      path: paths//images/visualsearch/post/parameters/12

@hovsepm From previous PRs, I think this is a known issue with specifying "file" as the input type in the sample. Not sure if there's been a fix since, but I'm happy to update if you could point me to documentation on how to specify file inputs in the sample!


Keeping internal and external types in sync

Is your feature request related to a problem? Please describe.
We have internal and external TS types, which are mostly the same but have subtle differences (this issue https://github.com/netlify/netlify-cms/issues/4984 as an example). We need to come up with a way of:

Keeping those types in sync
Avoid types duplication

Describe the solution you'd like
I don't have a solution yet. This issue is merely for discussion.

One solution is simply not having separate types. For example instead of assigning 'file' or 'folder' type to collection at runtime and then accessing it with collection.get('type'), we could use simple selector instead, like getCollectionType(collection).
Same for view_filters and view_groups. Instead of assigning ids to filters and groups in runtime, we could have getViewFilterId(filter) and getViewGroupId(group) selectors.

I don't like the approach we currently having where we add to many things to the user configuration during normalization.
The transformation makes it harder to debug issues.
Selectors sounds like a solid approach.


⚠ Bofrost.de has degraded performance

In 3405ccf, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1861 ms

Resolved: Bofrost.de performance has improved in 88885b3 after 6 minutes.


Add data plane licenses check

This PR adds a check for license headers and creates a file with all third-party licenses.
The plugin adds the inception year instead of the current year. (I think it's not a big deal)
Proposed Changes

Add data plane licenses check
Add third-party licenses file.

/hold

/cc @slinkydeveloper

/unhold


Error compiling the program

I got the following error when running sh ./compile-withcmake.sh in the KaHIP directory:

CMake Error in /home/user_name/workspace/KaHIP/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
Imported target "MPI::MPI_C" includes non-existent path
"/home/user_name/workspace/KaHIP/'/opt/intel/oneapi/mpi/2021.1.1/include'"

in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

The path was deleted, renamed, or moved to another location.

An install or uninstall procedure did not complete successfully.

The installation package was faulty and references files it does not
provide.

What could be my problem here?
I have installed Intel MKL after I installed cmake. Is this what caused the problem? (I have runned the setvars.sh of the MKL to set up the variables each time.)
I am using an Ubuntu 20.04 system.

Hey,
not sure. KaHIP does not need MKL.
It looks to me like your mpi installation is broken.
Best
Christian
On Fri, Dec 11, 2020, 20:32 JiaweiChenKodomo<EMAIL_ADDRESS>wrote:

I got the following error when running sh ./compile-withcmake.sh in the
KaHIP directory:
`CMake Error in
/home/user_name/workspace/KaHIP/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
Imported target "MPI::MPI_C" includes non-existent path
"/home/user_name/workspace/KaHIP/'/opt/intel/oneapi/mpi/2021.1.1/include'"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

The path was deleted, renamed, or moved to another location.
An install or uninstall procedure did not complete successfully.
The installation package was faulty and references files it does not
provide.
`
What could be my problem here?
I have installed Intel MKL after I installed cmake. Is this what caused
the problem? (I have runned the setvars.sh of the MKL to set up the
variables each time.)
I am using an Ubuntu 20.04 system.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/KaHIP/KaHIP/issues/68, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLP7SUQF6KXC6QL5BN5PP3SUJXU7ANCNFSM4UXECE3Q
.


Build on Cygwin fails due to missing vasprintf

Hi,
At least on Cygwin vasprintf declarations in stdio.h are protected by _GNU_SOURCE so this needs to be added in appropriate places. Attached patch adds the definition it in relevant source files, similar to what's already done for iceprog.cc.
0001-Explicitly-ask-for-vasprintf-where-appropriate.patch.txt

Applied in 8a7a746 and improved in 12b2295.


Add where clause to support mutually recursive function/data definition

Problem
Cannot define mutually recursive functions/data (in a type safe manner).
Prerequisite
Since Roy is a effectful call-by-value language, we need distinguish let and let rec.
Design Choice
Option 1: Adopting let rec
Using let rec, programs will be looks like:
let rec is_even x =
  if x == 0 then
    true
  else
    is_odd (x - 1)

and is_odd x =
  if x == 0 then
    false
  else
    is_even (x - 1)

console.log (is_even 100)

However, let rec will not match Roy's Haskell-like syntax and it will not be familiar to non-ML programmers.
(At least, I don't think it is sweet.)
Option 2 Adopting Haskell's where clause
Using where clause, programs will be looks like:
let main () =
  console.log (is_even 100)
where
  is_even x =
    if x == 0 then
      true
    else
      is_odd (x - 1)

  is_odd x =
    if x == 0 then
      false
    else
      is_even (x - 1)

main ()

This looks nice to me; less noise, consist with Haskell, and top-down order.
Though we still cannot define mutually recursive functions at top-level, we might define an object creating macro:
let create_foo_module () =
  create_object bar buz // => {'bar': bar, 'buz': buz}
where
  bar x = ...
  buz x = ...

exports.foo = create_foo_module()

I propose the option 2, adopting where clause.
Implementation
I modified the lexer to suppress the TERMINATOR token if OUTDENT is followed by a keyword 'where'.
This is necessary since jison is a LALR(1) parser generator, so that we need know whether there is a where clause or not at OUTDENT token only with next token.
The type analysis is extended to allow mutually recursive functions.
First, assign monomorphic temporary types to all functions in a where clause.
Second, the types of each functions are inferred.
Finally, the types are qualified with forall.
Data definitions are analyzed prior to function definitions.

Absolutely amazing. :+1:


An error occurred. Please try again in a few moments. Error message: Cannot find package 'og-chatgpt-api' imported from /api/app/clients/bingai.js

When I ask a question using BingAI, the message in the title is displayed and the process does not work properly
The docker log is below
The text is in Japanese and the token is XXXXXX
chat-clone     | ask log {
chat-clone     |   userMessage: {
chat-clone     |     messageId: '9a695535-b07e-4a17-8c67-0991fd079057',
chat-clone     |     sender: 'User',
chat-clone     |     text: '????????????',
chat-clone     |     parentMessageId: '00000000-0000-0000-0000-000000000000',
chat-clone     |     conversationId: '1a060147-21f0-4c54-9dce-e1918bcb9ea7',
chat-clone     |     isCreatedByUser: true
chat-clone     |   },
chat-clone     |   endpointOption: {
chat-clone     |     jailbreak: false,
chat-clone     |     systemMessage: null,
chat-clone     |     context: null,
chat-clone     |     conversationSignature: null,
chat-clone     |     clientId: null,
chat-clone     |     invocationId: 1,
chat-clone     |     toneStyle: 'fast',
chat-clone     |     token: 'XXXXXX'
chat-clone     |   },
chat-clone     |   conversationId: '1a060147-21f0-4c54-9dce-e1918bcb9ea7'
chat-clone     | }
chat-clone     | Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'og-chatgpt-api' imported from /api/app/clients/bingai.js
chat-clone     |     at new NodeError (node:internal/errors:399:5)
chat-clone     |     at packageResolve (node:internal/modules/esm/resolve:794:9)
chat-clone     |     at moduleResolve (node:internal/modules/esm/resolve:843:20)
chat-clone     |     at ESMLoader.defaultResolve (node:internal/modules/esm/resolve:1058:11)
chat-clone     |     at ESMLoader.resolve (node:internal/modules/esm/loader:323:32)
chat-clone     |     at ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38)
chat-clone     |     at ESMLoader.import (node:internal/modules/esm/loader:276:22)
chat-clone     |     at importModuleDynamically (node:internal/modules/cjs/loader:1205:37)
chat-clone     |     at importModuleDynamicallyWrapper (node:internal/vm/module:428:21)
chat-clone     |     at importModuleDynamically (node:internal/vm:105:46) {
chat-clone     |   code: 'ERR_MODULE_NOT_FOUND'
chat-clone     | }

I was able to recreate your issue by simply trying to run docker as normal after an update
I solved it by deleting the chatgpt-clone container, then deleting the node-api image, and running docker-compose up again. This will not delete your data.
This is easy with Docker Desktop but using terminal (make sure you stop the container first):
docker stop chatgpt-clone
docker rm chatgpt-clone

or
docker rmi --force node-api
You can also try from root of your clone, run:
docker-compose build then: docker-compose up

I did the following but got the same error
root@ubuntu:~/chatgpt-clone# docker rmi --force node-api
Untagged: node-api:latest
Deleted: sha256:91042f85a7a77f5a94a440dc313aa71b2d7ace584e29fbd04f373dd88dd9a95c
root@ubuntu:~/chatgpt-clone# docker-compose build
mongodb uses an image, skipping
meilisearch uses an image, skipping
Building api
[+] Building 0.9s (16/16) FINISHED
=> [internal] load .dockerignore                                                                                0.0s
=> => transferring context: 64B                                                                                0.0s
=> [internal] load build definition from Dockerfile                                                                              0.0s
=> => transferring dockerfile: 1.22kB                                                                                0.0s
=> [internal] load metadata for docker.io/library/node:19-alpine                                                                 0.8s
=> [internal] load build context                                                                                0.0s
=> => transferring context: 14.30kB                                                                                0.0s
=> [react-client 1/6] FROM docker.io/library/node:19-alpine@sha256:013a0703e961e02b8be69a548f2356ae5b17bc5b8570f1cdd4b97650200b  0.0s
=> CACHED [node-api 2/6] WORKDIR /api                                                                                0.0s
=> CACHED [node-api 3/6] COPY /api/package*.json /api/                                                                           0.0s
=> CACHED [node-api 4/6] RUN npm ci                                                                                0.0s
=> CACHED [node-api 5/6] COPY /api/ /api/                                                                                0.0s
=> CACHED [react-client 2/6] WORKDIR /client                                                                                0.0s
=> CACHED [react-client 3/6] COPY /client/package*.json /client/                                                                 0.0s
=> CACHED [react-client 4/6] RUN npm ci                                                                                0.0s
=> CACHED [react-client 5/6] COPY /client/ /client/                                                                              0.0s
=> CACHED [react-client 6/6] RUN npm run build                                                                                0.0s
=> CACHED [node-api 6/6] COPY --from=react-client /client/dist /client/dist                                                      0.0s
=> exporting to image                                                                                0.0s
=> => exporting layers                                                                                0.0s
=> => writing image sha256:91042f85a7a77f5a94a440dc313aa71b2d7ace584e29fbd04f373dd88dd9a95c                                      0.0s
=> => naming to docker.io/library/node-api
root@ubuntu:~/chatgpt-clone# docker-compose up
WARNING: Found orphan containers (chatgpt-clone_client_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Starting chat-meilisearch ... done
Starting chat-mongodb     ... done
Starting chat-clone       ... done
Attaching to chat-meilisearch, chat-mongodb, chat-clone


Add [Movey] service

Description
This request is to add a badge for Movey (Movey.net)
A crates.io-style repository of Move packages.
This badge will show the latest version of a package on Movey and its download counts.
We also provide data for any other versions and their perspective download count too.
https://img.shields.io/badge/Movey-v1.0.0-green
<EMAIL_ADDRESS>Data
Movey will be publishing a public badge endpoint at https://www.movey.net/api/v1/packages/%package%/badge
As of right now we do not have any plan to add apikey or rate limit this api just yet.
The API will return:
example
{
    "package_name": "rand",
    "total_download_counts": 100000,
    "latest_version": "1.1.0",
    "versions": [
        {
            "versions": "1.0.0",
            "download_counts": 0
        },
        {
            "versions": "1.1.0",
            "download_counts": 11111
        }
    ]
}

Motivation
As we aim to be the Move language package repository, having a badge so that package owners can show off their statistics on their repos and let user know they are hosted on Movey would be tremendous

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @ea-open-source!

  Generated by :no_entry_sign: dangerJS against 100ad938740956cded5b38096027707b9067bbfe

Thank you for the PR. I won't speak for any of the other maintainers, but I've never heard of Move nor Movey and don't know anything about it.
We don't strictly require that issues/requests be open to a PR, but in a case where the engagement starts with a PR it's still best to provide some of the same data points we request as part of the new badge issue form:
<!--
A clear and concise description of the new badge.

- Which service is this badge for e.g: GitHub, Travis CI
- What sort of information should this badge show?
  Provide an example in plain text e.g: "version | v1.01" or as a static badge
  (static badge generator can be found at https://shields.io)
-->

:link: **Data**

<!--
Where can we get the data from?

- Is there a public API?
- Does the API requires an API key?
- Link to the API documentation.
-->

:microphone: **Motivation**

<!--
Please explain why this feature should be implemented and how it would be used.

- What is the specific use case?
-->

Additionally, it would be helpful to get some more info about the prevalence/adoption of the service and the size of its user base, what the communication channels are for reporting outages/bugs/requests., whether there are any rate limits, etc.

Thank you for your speedy response.
About Movey, we are a new service which aims to be the Move programming language package repository like Rubygems.org or Crates.io.
As for user base, we are a new service and hope it will consist of most Move developers.
The project is still in development and we are working with the language developers to release the first version.
We have edited the PR to satisfy the new badge form but do let us know if you think anything is missing.
For requests, support or reports please contact us at<EMAIL_ADDRESS>

Thanks! This is definitely the type of service we'd like to provide badges for, but to be fully transparent, it might not make sense for us to pull this in at this time because you seem to be pretty early on in the process.
When we natively add dynamic badges for a new service/provider, we really like to see that they have some established documentation (doesn't have to be anything terribly formal, we've accepted swagger docs in the past) and to be fully up and running.
My vote would be that we put this on hold until you all are a bit farther along, but will wait to hear thoughts from some of the other maintainers.

@ea-open-source would it make sense to close this for now, or do you think you all are on the verge of having API documentation published in the near future?

@ea-open-source would it make sense to close this for now, or do you think you all are on the verge of having API documentation published in the near future?

Sorry for the late reply and while we are close to releasing (Most PRs got merged to Move) you can go ahead and close this PR. We will reopen it when we have the documentation for our site ready.


tests: add prop test for encoding/decoding of Meta

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#580  👈 (View in Graphite)
#579
#578
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Nov 29, 10:54 AM EST: A user started a stack merge that includes this pull request via Graphite.


Clean some cruft

This slave-controller-lock-id has never done anything since my first commit where it appeared. Javadoc says it "is used to group several slave requuests onto one DC request" but there aren't several slave requests.

Core - Full Integration Build 2613 outcome was FAILURE using a merge of f00f6985d3104373dfca052606674ec6ffb20249
Summary: Exit code 1 (new) Build time: 00:01:38

Full integration - Windows Build 1041 outcome was FAILURE using a merge of f00f6985d3104373dfca052606674ec6ffb20249
Summary: Exit code 1 (new) Build time: 00:01:56

Linux Build 3544 outcome was FAILURE using a merge of f00f6985d3104373dfca052606674ec6ffb20249
Summary: Tests passed: 1660, ignored: 42; exit code 1 (new) Build time: 00:03:10

Windows Build 2991 outcome was FAILURE using a merge of f00f6985d3104373dfca052606674ec6ffb20249
Summary: Tests passed: 1660, ignored: 42; exit code 1 (new) Build time: 00:04:15


Finished feeding skeleton data

BEFORE MAKING THIS AN OFFICIAL PR:
0) Wait for Jack to enable access to APIs

Get the ids of all categories using https://developers.arcgis.com/rest/places/categories-get/
Ensure data works and is feed correctly

Ensure that for a new branch ensuring-data-feed


Lighthouse Score

👏 This is looking good!

Can't see where that Layout Shift is coming from in the Experience, did you spot it @logan-anderson  🤔

@DirtyF I was already on it 😆  It should be fixed now 🤞

Nice work!

Great work Logan, remaining issues are related to styles (image ratio) and colour contrast and should be easily fixed.

I think @spbyrne said that he would take a look at those issues when he got a chance.

I'm busy this morning but I took a look last night and have some contrast improvements I'll push up later; we can merge this as-is; it's a significant improvement!


[REQUEST] Publish cmdlets to powershell gallery

It would be really convenient to have the cmdlets on PowerShell Gallery:
https://www.powershellgallery.com/
...so we can Install-Module from the gallery similar to:
https://www.powershellgallery.com/packages/Microsoft.Xrm.Data.Powershell/

Good suggestion, this is already in progress. Will let you know once it is there.

https://www.powershellgallery.com/packages/Xrm.Framework.CI.PowerShell.Cmdlets


Using ImageIndexed doesn't allow alpha values

Goost and Godot version:
Godot: 3.2
Issue description:
I created an ImageIndexed with a texture with transparencies. When applying a palette, it doesn't show the correct alpha values anymore.
Steps to reproduce:
func load_land_tile(path : String):
    var image = ImageIndexed.new()

    image.load(path)
    image.convert(Image.FORMAT_RGBA8)

    if not image.has_palette():
        image.generate_palette(1)

    image.set_palette_color(0, Color.green)
    image.apply_palette()

it doesn't show the correct alpha values anymore

Do you say that the alpha values are somewhere near zero but not completely zero?
Can you try this:
var with_alpha = true
image.generate_palette(1, ImageIndexed.DITHER_NONE, with_alpha)

Now I see the problem. I needed to include an extra color in the palette for the transparent color. Thanks for the suggestion!

Yeah, when you think in [0, 1] range, this can be easy to interpret as 2 colors, especially if this has to do with palette size.


Show population aged 5 years and above by literacy status

This is part of number 2 in the data pipeline


Usage not showing up

I want to :
add
a new branch
This usage is not showing up for these selections.

I have updated the project with the latest dependencies, so could you please pull from the latest master branch, push the code, and resolve the merge conflicts?

Yeah sure


Minor refactorings

Fix spelling error
use Object.assign
use white highlight for version display
remove .js from require calls
extract time functions
use common modal methods for visibility

lgtm


python311Packages.awkward-cpp: 25 -> 26

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.awkward-cpp is: CPU kernels and compiled extensions for Awkward Array
meta.homepage for python311Packages.awkward-cpp is: https://github.com/scikit-hep/awkward
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 26 with grep in /nix/store/dvmq2b9r0kjg1iqk8gfvp9r61vnkihl5-python3.11-awkward-cpp-26
found 26 in filename of file in /nix/store/dvmq2b9r0kjg1iqk8gfvp9r61vnkihl5-python3.11-awkward-cpp-26

Rebuild report (if merged into master) (click to expand)

16 total rebuild path(s)

16 package rebuild(s)

First fifty rebuilds by attrpath
python310Packages.awkward
python310Packages.awkward-cpp
python310Packages.coffea
python310Packages.correctionlib
python310Packages.dask-awkward
python310Packages.mplhep
python310Packages.uproot
python310Packages.vector
python311Packages.awkward
python311Packages.awkward-cpp
python311Packages.coffea
python311Packages.correctionlib
python311Packages.dask-awkward
python311Packages.mplhep
python311Packages.uproot
python311Packages.vector

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/dvmq2b9r0kjg1iqk8gfvp9r61vnkihl5-python3.11-awkward-cpp-26 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.awkward-cpp https://github.com/r-ryantm/nixpkgs/archive/95edabb6aaedfa16fa81831e0bde03c67b691788.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/95edabb6aaedfa16fa81831e0bde03c67b691788#python311Packages.awkward-cpp

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/dvmq2b9r0kjg1iqk8gfvp9r61vnkihl5-python3.11-awkward-cpp-26
ls -la /nix/store/dvmq2b9r0kjg1iqk8gfvp9r61vnkihl5-python3.11-awkward-cpp-26/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

16 packages built:

python310Packages.awkward
python310Packages.awkward-cpp
python310Packages.coffea
python310Packages.correctionlib
python310Packages.dask-awkward
python310Packages.mplhep
python310Packages.uproot
python310Packages.vector
python311Packages.awkward
python311Packages.awkward-cpp
python311Packages.coffea
python311Packages.correctionlib
python311Packages.dask-awkward
python311Packages.mplhep
python311Packages.uproot
python311Packages.vector

Maintainer pings
cc @veprbl for testing.

@GrahamcOfBorg build
python3Packages.awkward

@GrahamcOfBorg build python3Packages.awkward


Ci/calm code climate

This PR handles code quality by:

embedding new eslint rules from @okp4/eslint-config
disabling CodeClimate [maximum number of lines for a function] rule to let eslint take care of code quality

:tada: This PR is included in version 1.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


onPress in production build (Next)

Describe the bug
When using a Button from tamagui with onPress everything works in dev mode, but building and then running the event is not triggered. I found out that using swcMinify: true is the reason.
To Reproduce
enable: swcMinify: true
add a button
build project
start
System Info (please complete the following information):
System:
OS: macOS 12.0.1
CPU: (8) x64 Apple M1
Memory: 23.15 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
Yarn: 4.0.0-rc.13 - ~/.nvm/versions/node/v16.15.1/bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Browsers:
Chrome: 104.0.5112.101
Safari: 15.1

Great catch. I'll check into why, guessing names are getting mangled somewhere they shouldn't.

Can confirm it now works with the latest Next.js version and swcMinify set to true.


ValueError: Unsupported nproc_per_node value: 4(x2)

Hi,
I wanted to use multiple nodes to train Sockeye but I getting ValueError: Unsupported nproc_per_node value: 4(x2).  My slurm cluster sets SLURM_TASKS_PER_NODE='4(x2)'.
Environment Variables
Here are relevant environment variables.
SLURM_CPUS_ON_NODE=32
SLURM_CPUS_PER_TASK=6
SLURM_JOB_CPUS_PER_NODE='32(x2)'
SLURM_JOB_GRES=0,1,2,3
SLURM_JOB_NUM_NODES=2
SLURM_MEM_PER_NODE=98304
SLURM_NNODES=2
SLURM_NODEID=0
SLURM_NPROCS=8
SLURM_NTASKS=8
SLURM_TASKS_PER_NODE='4(x2)'
SLURM_TASK_PID=438

Stack Trace
ERROR:torch.distributed.elastic.multiprocessing.errors.error_handler:{
  "message": {
    "message": "ValueError: Unsupported nproc_per_node value: 4(x2)",
    "extraInfo": {
      "py_callstack": "Traceback (most recent call last):\n  File \"/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/dis
      "timestamp": "1649095601"
    }
  }
}
Traceback (most recent call last):
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/distributed/run.py", line 564, in determine_local_world_size
    return int(nproc_per_node)
ValueError: invalid literal for int() with base 10: '4(x2)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/bin/torchrun", line 33, in <module>
    sys.exit(load_entry_point('torch==1.10.0', 'console_scripts', 'torchrun')())
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 3
    return f(*args, **kwargs)
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/distributed/run.py", line 719, in main
    run(args)
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/distributed/run.py", line 709, in run
    config, cmd, cmd_args = config_from_args(args)
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/distributed/run.py", line 617, in config_from_args
    nproc_per_node = determine_local_world_size(args.nproc_per_node)
  File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.1.0/lib/python3.8/site-packages/torch/distributed/run.py", line 582, in determine_local_world_size
    raise ValueError(f"Unsupported nproc_per_node value: {nproc_per_node}")
ValueError: Unsupported nproc_per_node value: 4(x2)

SLURM's Documentation
As per sbatch's documentation, SLURM_TASKS_PER_NODE='4(x2)' should be a valid string representing the number of task/proc per node.
SLURM_JOB_CPUS_PER_NODE
Count of CPUs available to the job on the nodes in the allocation, using the format CPU_count[(xnumber_of_nodes)][,CPU_count [(xnumber_of_nodes)] ...]. For example: SLURM_JOB_CPUS_PER_NODE='72(x2),36' indicates that on the first and second nodes (as listed by SLURM_JOB_NODELIST) the allocation has 72 CPUs, while the third node has 36 CPUs. NOTE: The select/linear plugin allocates entire nodes to jobs, so the value indicates the total count of CPUs on allocated nodes. The select/cons_res and select/cons_tres plugins allocate individual CPUs to jobs, so this number indicates the number of CPUs allocated to the job.
Sockeye Version
I'm using sockeye==3.1.0

It looks like this conversation moved to #1039.