Fix issue link rendering in commit messages

Fixes #2870.

Codecov Report

Merging #2897 into master will increase coverage by 0.14%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##           master    #2897      +/-   ##
==========================================
+ Coverage   26.85%   26.99%   +0.14%
==========================================
  Files          89       89
  Lines       17607    17644      +37
==========================================
+ Hits         4728     4763      +35
- Misses      12193    12194       +1
- Partials      686      687       +1

Impacted Files
Coverage Δ

modules/markup/html.go
50.91% <95.23%> (+4.67%)
:arrow_up:

Continue to review full report at Codecov.

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

@lunny fixed

@ethantkoenig is it possible to add so that brackets that are around issue/pr number are not added to commit link?

@lafriks Should be doable

Like in @lunny screenshot in issue. It would look much better if brackets would not be part of any link

@lafriks Done

Nice, LGTM

LGTM


Test abclear

This PR adds tests for the `:abclear' command currently not covered according to codecov:
https://codecov.io/gh/vim/vim/src/958eabe5e53673fc39186432ff98b3656663beeb/src/ex_docmd.c#L5554

Codecov Report

Merging #4292 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4292      +/-   ##
==========================================
+ Coverage   79.86%   79.87%   +0.01%
==========================================
  Files         107      107
  Lines      141589   141589
==========================================
+ Hits       113077   113101      +24
+ Misses      28512    28488      -24

Impacted Files
Coverage Δ

src/gui.c
57.52% <0%> (-0.42%)
:arrow_down:

src/screen.c
80.63% <0%> (-0.03%)
:arrow_down:

src/ex_docmd.c
80.69% <0%> (+0.03%)
:arrow_up:

src/os_unix.c
59.3% <0%> (+0.04%)
:arrow_up:

src/gui_gtk_x11.c
48.82% <0%> (+0.04%)
:arrow_up:

src/term.c
69.15% <0%> (+0.05%)
:arrow_up:

src/ex_cmds2.c
87.31% <0%> (+0.11%)
:arrow_up:

src/ex_cmds.c
82.16% <0%> (+0.24%)
:arrow_up:

src/getchar.c
76.4% <0%> (+0.85%)
:arrow_up:

Continue to review full report at Codecov.

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


Update derelict-util

Hi, would it be possible to update derelict-util to 2.x.y instead of ~>1.9.1
re: https://github.com/DerelictOrg/DerelictCL/issues/1 thanks

i guess. will look into it later today or tomorrow asap

thanks so much

in the meantime you can fix it locally using a fork
On Sat, Jul 11, 2015 at 8:21 PM, Chris Willcocks<EMAIL_ADDRESS>wrote:

thanks so much
—
Reply to this email directly or view it on GitHub
https://github.com/Extrawurst/DerelictImgui/issues/2#issuecomment-120650647
.

v0.5.0 uses DerelictUtil "~>2.0.0" (see https://github.com/Extrawurst/DerelictImgui/commit/147a8b9c0b8d1e5ae4a7dfc221fd2226fc7b3d62)


Fix Account Routing

Description

Fixes account page tab routing
May have been caused by #8118
Should resolve failing e2es

How to test

Test account routing involving /account/*

@HanaXu account/billing/edit isn't a thing in production... Has this ever been a thing?

@bnussman It was added in https://github.com/linode/manager/pull/8118 cc @tiffwong

@bnussman @HanaXu yeah, the URL is needed for the tax banner action item for Japan and Norway

Ah, right... I can work on a fix, but if anyone wants to push directly to this PR, feel free @tiffwong @HanaXu


Enhance AddressBook: Introduce Company Model

Incorporated Company Model to extend AddressBook's capabilities.
Completed tests for most company-related classes; UniqueCompanyListTest remains.
Noted: 'person' model requires further refinement.
Initiated groundwork to adjust storage for company data.

In this commit, the AddressBook, originally designed to store personal details, now begins its transition to also support company information.

Set up the high-level commands (e.g. getFilteredCompanyList etc.) for companies for issue #90


Remove all commented out code from tsconfig.json

https://github.com/MindscapeHQ/raygun4node-aws-lambda/blob/230e9e928158475a420cff6dede94126be8d9de4/tsconfig.json#L4

I'll clean this up.
FYI, the tsconfig.json file is the same as in the raygun4node repo, including all the commented out lines.


Develop some basic scenarios with existing Ballerina as POC for Data Analytics Module

Description:
Implement following scenarios using Ballerina Language.
(Purpose of these tasks are to figure out the better approaches required with new APIs.)

[ ] Load custom DataFrame from CSV
[ ] Add/Update/Delete Column from the DateFrame
[ ] Add/Update/Delete Rows from the DataFrame
[ ] Compute median/mode of a specific column in the DataFrame

PoC content is added to the repository, https://github.com/Maninda/ballerina-pandas


PS friendly commands

PowerShell friendly scripts:  one learner ran this in Windows Terminal and requested Windows-friendly versions of the steps.  This learner also did not have sed installed and had to edit the config scripts manually.

Fix might not be needed if we default to codespace as an only install option

Will not fix.


feat(ethersdb): basic_ref return none  instead of panic

Instead of panicking whenever there's an error fetching the account data, return None. This behavior is similar to the EmptyDB and helpful in unit tests when using the mock provider. The tradeoff here is that any RPC client connection issues can surface as EVM execution revert errors but these can be easily mitigated earlier on in the middleware setup process. If the client connection is established, the behavior is essentially the same for callers.

Silently failing is maybe even worse, as you would just get the wrong result and people wouldn't know if it is revm or connection.
The solution would be to propagate the error and set Database::Error correctly


Added logic to accept common all-day practices

We should accept 00:00 and 24:00 formats, as most people
consider this what should work.
Otherwise we are making it a poor user experience for a developer.
See #139 for more details. This should resolve that.

Hi @Twoody thanks for this PR, but I'm sorry I can't merge that in:

it breaks a simple event rendering using new Date()
it doesn't fix the original issue it will span on 1 less day than it should

I will go back to this issue soon to fix it.


[Feature] get_json_object with char args

What type of PR is this：

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

error message like the picture

run starrocks_clang-format

run starrocks_admit_test

run starrocks_admit_test

run starrocks_clang-format

run starrocks_admit_test

run starrocks_clang-tidy


Support invert dunder method

Supports the following:
a = Tensor([True, False])
b = ~a # a.logical_not()

i think it needs to invert bits and works beyond boolean
also need tests, preferably in test_ops.py

no update in 2 weeks, feel free to reopen with updates


fix: remove error throwing when use setUseProxies(false)

hello, when I use immer on the Android4.3 which does not support Proxy,
setUseProxies(false)

but got an error.
I have to use as bellow
const hasProxies =
	typeof Proxy !== "undefined" &&
	typeof Proxy.revocable !== "undefined" &&
	typeof Reflect !== "undefined"
hasProxies && setUseProxies(false)

ps: for some reason, I have to disable Proxy anyway, for I have code like this
Object.defineProperty(draft, desc);

if enable proxy, this will throw error

so I change the code of setUseProxies
setUseProxies(value: boolean) {
    // if (!hasProxies) {
    //     die(20)
    // }
    this.useProxies_ = value
}

Note that there is no need to explicitly call setUseProxies if your environment doesn't support proxies anyway, it will be done by default.


_curses.error

Trying to run suplemon causes an instant crash on Python 3.2.3:
python3 main.py main.py
Traceback (most recent call last):
  File "main.py", line 490, in <module>
    ui.wrapper(main)
  File "/home/pi/suplemon/ui.py", line 20, in wrapper
    curses.wrapper(func)
  File "/usr/lib/python3.2/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "main.py", line 486, in main
    app.run()
  File "main.py", line 97, in run
    self.load()
  File "main.py", line 86, in load
    self.ui.load()
  File "/home/pi/suplemon/ui.py", line 90, in load
    curses.curs_set(0)
_curses.error: curs_set() returned ERR

Seems fixed on dev branch.

Hi, thanks for the report! :+1:
You're right, the dev branch has a fix, which just try/excepts the error (since the method only hides the default cursor)
I'll be pushing this to master when I review my changes.


Add ALC269VC for Samsung NT550P7C-S65 with subwoofer 2.1ch by Rockjesus

Layoutid=14

Thanks. Merged with minor cosmetic changes. Use layout and platforms names similar to layout-id number in future.


Can't pause a video

After multiple times clicking on the "are you there?" (by the extension) it just locks the video.
This means the following:

the video is playing
the play/pause button is on paused
I can't pause the video; only after reloading the page or by playing the video picture-in-picture

This problem occurs on youtube.com (I don't know if it also occurs on music.youtube.com
I'm using Edge (Chromium based)

Same with Firefox 90.0b12 (64-bit)

Same problem,... I'm unable to pause video as well... need to reload website to be able to pause it. I have this problem on YT Music

@lawfx Is https://github.com/lawfx/YoutubeNonStop/commit/9fdc16c73a00516465015b6a00a82e649ecd3de7 a fix for this problem?

Yes, it's fixed.

Then i will close this issue

I'm running on MS Edge. If YouTube wants to pause the video in the console there normally comes blocked attempted to .... But sometimes I'll get video pause requested but if I get the latest one the play/pause button will be paused and because of the blocked attempt... it will still play the video.
But if I want to manually pause the video inside youtube itself the button wouldn't work (so I have to use the media keys).

well now it happens again.

I have this problem as well on Firefox 96.0.3.  Just downloaded 0.9.1.
I have this version on Chrome as well with no issues.  Been using this plugin forever there on Chrome.


can not execute sh fifo_zlogin_latest

[root@storage01 /opt]# sh fifo_zlogin-latest
cp: cannot access /opt/fifo_zlogin/share/epmd.xml
svccfg: Unable to stat file /opt/custom/smf/epmd.xml.  No such file or directory
What else do you need to dig into it? I used the official install notes.

see: https://gitlab.com/Project-FiFo/FiFo/fifo-zlogin/issues/3


how to get dynamic varible in action chain

I've integrated  stackstorm with alertmanager and opsgenie. I want to fetch the host name dynamically in the action chain for slack and opsgenie action. How can I achieve this, so that it fetch the  hostanames dynamically and send it to slack/opsgenie ?
Rules:
---
    name: "kafka_diskspace_remediation"
    pack: "demo"
    description: "kafka disk  event handler."
    enabled: true

    trigger:
        parameters:
            url: "sample"
        type: "core.st2.webhook"

    criteria:
        trigger.body.alerts[0].labels.alertname:
            type: "startswith"
            pattern : "Disk_usage_kafka"

    action:
        ref: "demo.demo_kafka_chain_meta"
        parameters:
            triggers: "{{ trigger }}"

Action-chain:
---
  chain:
    -
      name: "kafka_demo_disk_action"
      ref: "demo.kafka_demo_disk_action"
      parameters:
        triggers: "{{ triggers }}"
      on-success: "post_success_to_slack"
      on-failure: "opsgenie_escalation"
    -
      name: "post_success_to_slack"
      ref: "slack.post_message"
      parameters:
        channel: "#slo-sli"
        message: Current disk usage in / partition is less than 50% on  {{host}}

    -
      name: "opsgenie_escalation"
      ref: "opsgenie.create_alert"
      parameters:
        message: Current disk usage in / partition is more than 50% on  {{host}}

Achin-chain meta:
---
name: "demo_kafka_chain_meta"
description: "Simple Action Chain workflow for kafka disk alert"
pack: "demo"
runner_type: "action-chain"
entry_point: "chains/demo_kafka_chain.yaml"
enabled: true
parameters:
    triggers:
        type: "string"
        description: "Trigger received"
        required: true

Action:
---
name: "kafka_demo_disk_action"
pack: "demo"
runner_type: "python-script"
description: "On receiving a trigger, ssh into the problematic hosts and perform some action."
enabled: true
entry_point: "kafka_demo_disk_action.py"
parameters:
    triggers:
        type: "string"
        description: "Trigger received"
        required: true
output_schema:
    result:
        type: "string"

when triggering the above action chain, I'm getting below error.
Error:
"error": "Failed to run task \"post_success_to_slack\". Parameter rendering failed.. Failed rendering value for action parameter \"message\" in task \"post_success_to_slack\" (template string=Current disk usage in / partition is less than 50% on {{host}}): 'host' is undefined",
 "traceback": "Traceback (most recent call last):\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/action_chain_runner/action_chain_runner.py\", line 813, in _resolve_params\n    rendered_params = jinja_utils.render_values(\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/util/jinja.py\", line 149, in render_values\n    raise e\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/util/jinja.py\", line 144, in render_values\n    rendered_v = env.from_string(v).render(super_context)\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/jinja2/environment.py\", line 1090, in render\n    self.environment.handle_exception()\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/jinja2/environment.py\", line 832, in handle_exception\n    reraise(*rewrite_traceback_stack(source=source))\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/jinja2/_compat.py\", line 28, in reraise\n    raise value.with_traceback(tb)\n  File \"<template>\", line 1, in top-level template code\njinja2.exceptions.UndefinedError: 'host' is undefined\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/action_chain_runner/action_chain_runner.py\", line 534, in _run_chain\n    liveaction = self._get_next_action(\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/action_chain_runner/action_chain_runner.py\", line 847, in _get_next_action\n    resolved_params = ActionChainRunner._resolve_params(\n  File \"/opt/stackstorm/st2/lib/python3.8/site-packages/action_chain_runner/action_chain_runner.py\", line 825, in _resolve_params\n    raise action_exc.ParameterRenderingFailedException(msg)\nst2common.exceptions.action.ParameterRenderingFailedException: Failed rendering value for action parameter \"message\" in task \"post_success_to_slack\" (template string=Current disk usage in / partition is less than 50% on {{host}}): 'host' is undefined\n"
}

I presume you are wanting the host thay the alert came from.
You will need to investigate what is in the body of the alert from alert manager, to see if it has the hostname as part of its alert.

@amanda11  Yes Exactly.
Below is the trigger payload.
{
"trigger": "core.949b9434-4b8d-4716-951a-13b3889b850c",
"occurrence_time": "2022-05-11T06:58:13.594000Z",
"status": "processed",
"id": "627b5e8520e3d021ee8d8f84",
"payload": {
"headers": {
"Host": "stackstorm-uat.groww.in,stackstorm-uat.groww.in",
"X-Real-Ip": "",
"X-Forwarded-For": "",
"Content-Length": "1615",
"User-Agent": "Alertmanager/0.22.2",
"Content-Type": "application/json",
"X-Request-Id": "ca6efe06-a2fb-4d34-8ef9-76fc4f0c0f51"
},
"body": {
"receiver": "web\.hook",
"status": "firing",
"alerts": [
{
"status": "firing",
"labels": {
"alertname": "Disk_usage_kafka for / partition more than 50%",
"device": "sda1",
"fstype": "ext4",
"host": "test-zookerper-1",
"instance": ":9273",
"mode": "rw",
"monitor": "example",
"path": "/",
"severity": "warning",
"stack": "compute_engine",
"team": "stackstorm"
},
"annotations": {
"description": "Disk_usage_kafka more than 50% for / partition on instance :9273 with current value of 57.62990738891588.",
"summary": "Disk_usage_kafka more than 50% for / partition on instance compute_engine"
},
"startsAt": "2022-05-11T06:54:28.528964753Z",
"endsAt": "0001-01-01T00:00:00Z",
"generatorURL": "http://test-zookerper-1:9090/graph?g0.expr=disk_used_percent{host%3D"test-zookerper-1"%2Cpath%3D"%2F"}+>+50&g0.tab=1",
"fingerprint": "335add2583c555a0"
}
],
"groupLabels": {
"alertname": "Disk_usage_kafka for / partition more than 50%"
},
"commonLabels": {
"alertname": "Disk_usage_kafka for / partition more than 50%",
"device": "sda1",
"fstype": "ext4",
"host": "test-zookerper-1",
"instance": ":9273",
"mode": "rw",
"monitor": "example",
"path": "/",
"severity": "warning",
"stack": "compute_engine",
"team": "stackstorm"
},
"commonAnnotations": {
"description": "Disk_usage_kafka more than 50% for / partition on instance :9273 with current value of 57.62990738891588.",
"summary": "Disk_usage_kafka more than 50% for / partition on instance compute_engine"
},
"externalURL": "http://test-zookerper-1:9093",
"version": "4",
"groupKey": "{}/{team=~"stackstorm"}:{alertname="Disk_usage_kafka for / partition more than 50%"}",
"truncatedAlerts": 0
}
}
}


Supporting Gradle Experimental Plugin

Does it support new Gradle Experimental Plugin? It works well with usual Gradle pugin:
apply plugin: 'com.android.application'
It does not work with new gradle exeprimental plugin.
apply plugin: 'com.android.model.application'
I see such kind of output each time trying to compile:
...
:app:compileDebugJavaWithJavac
An exception has occurred in the compiler (1.8.0_73). Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report.  Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Correct, it is not supported at this time.

So the solution is to revert back to 'com.android.application'?

Yeah for now, pull requests welcome :wink:

But even with 'com.android.application', I am getting this error.  Even after I removed retrolambda...

Is there any chance that you could provide an easy workaround ? I can't rollback to com.android.application because I need NDK integration in Android Studio.

Not that I know of, pull requests welcome.

@evant Is it still the case that

ndk-build does not currently support Application.mk: we expect this to be fixed in the near future

No idea, but it's likely since it was just announced at io.


Is it possible to use this for Django https://github.com/awsdocs/elastic-beanstalk-samples/blob/master/configuration-files/aws-provided/security-configuration/https-redirect/python/https-redirect-python.config

@flexpeace , thanks for your question. We're looking into it.

One of our engineers informed me that this example can't be used with Django. I'll make a note in the example. Thanks for bringing this up!

What should Django users do instead? Besides terminating at the load balancer?


Forward cmdline arguments to file worker

-j, -T, etc...

Alternatively to cmdline arguments, we could use the initializationOptions? field of InitializeParams to pass configuration options in a message.

Fixed in #271

Fixed in #271


Wikipedia page

Dear Maintainers,
My name is Matthew Vita, a programmer in the healthcare industry. I am trying to help build up the high impact "List of open-source health software" Wikipedia page (https://en.wikipedia.org/wiki/List_of_open-source_health_software) and would love to add your software to the list. However, it appears that your project does not have a page on Wikipedia so I ask you to consider the following:

Adding a nice article for your project (see the GNU Health article (https://en.wikipedia.org/wiki/GNU_Health) for a really good example and Ginkgo CADx (https://en.wikipedia.org/wiki/Ginkgo_CADx) for a lightweight, but acceptable example).
Adding said article to "List of open-source health software" Wikipedia page (https://en.wikipedia.org/wiki/List_of_open-source_health_software).

(If you’re already on Wikipedia, my search-fu wasn’t working when I looked you up so please consider doing only step 2 above)
Thanks,
Matthew
(Personal note: I am very inspired by your project)

Dear Maintainers,
I just wanted to follow up with a few words in regards to Conflict of Interest (COI). As you can imagine, I have been reaching out to all kinds of mature, reputable, and active open source healthcare projects to help build up this Wikipedia list. However, some project members have (rightly) reached out to me with concerns about COI, so I wanted to clear this up as best as I can. I should first note that my role in this process is of a neutral party that is solely acting in the interests of Wikipedia readers that wish to learn about open source healthcare solutions.
Wikipedia defines COI as "contributing to Wikipedia about yourself, family, friends, clients, employers, or your financial and other relationships. Any external relationship can trigger a conflict of interest." They also go on to say that organizations writing about themselves is a COI.
If you meet one or more of those criteria, I suggest reaching out to a neutral party in your project's community to put together the article. If you do not meet any of those criteria, I suggest putting together an article with material that places the interest of the encyclopedia and its reader above all else.
Assuming you don't have a COI, I encourage you to do as other open source healthcare projects have done by creating a neutral article about the project with the help of the community (users, developers, and subject matter experts) as well as reliable references.
For whatever it's worth, my personal opinion is that if you don't have a COI, it is rather easy to write up an article talking about the software's features, history, usage, and milestones all while being neutral.
Thanks,
Matthew Vita

@MatthewVita Someone created a page: https://en.wikipedia.org/wiki/OpenAPS

@alistairmcmillan Very cool. Quick question: It says the tech is JavaScript. It's Python, right?

oref0 (the high-level algorithms) is Javascript, and MIT licensed. The openaps toolkit and decocare are Python.
We should probably change the license to MIT to reflect the oref0 and openaps licenses, even though they use some GPL components as well.

@scottleibrand Cool. I just updated the Wiki with this information.
BTW, I am waiting for a response on this https://en.wikipedia.org/wiki/Talk:List_of_open-source_health_software#OpenAPS talk entry

I believe this issue can be closed because the remaining work will be done on the Wikipedia page.


Make Changes to Navbar

Add rounded hover effect to link and center align nav links in mobile view

@Atif0604 share the changes.please send link here

So do I need to share screenshots ?or publish the page and give the link? @soumita1234

https://atif0604.github.io/HelpingHand/
here is the link  @soumita1234


Add Call stack in crash report explainer

@issackjohn, could you please expand on this:
"Just like Error.prototype.stack, information must be omitted about any cross-domain scripts that were not loaded with CORS."
It will be good to have clarity on how/what exactly is the information that is omitted. AFAIU, stack frames mentioning functions found in cross-domain scripts that were not loaded with CORS would be redacted.


Revert "Change directory structure"

Reverts openzipkin/zipkin#3193
in #3193, I renamed components/Common directory to components/common (Common -> common).
I think this case-sensitive change will probably have a bad effect on forks..
Perhaps you can't automatically merge the diffs, or if you can merge, lens won't work..
So revert this PR and I'll think of another method for this.

we can revert this, but we have also done case format correcting work in the past. We don't warranty forks.

Oh.. I see. Thanks.
I'll close this PR 🙇


Uchiwa breaks Sensu API on non-existent client URL request

Expected Behavior
It should just return 404 message.
Current Behavior
If You open Uchiwa dashboard and request details for non-existent client after few seconds it will throw error:
Could not retrieve stashes from datacenter, No healthy APIs available for datacenter
Possible Solution
I got information on Slack that Uchiwa (as of 1.6.0) performs health checks against /info API endpoint on each configured host. if /info is returning non-OK responses for a given API host, the host will be marked as unhealthy and wont be used until it appears healthy again.
I couldn't reproduce this error on Uchiwa 1.5.0
Steps to Reproduce (for bugs)

Open Uchiwa dashboard with non-existent client in URL eg. https://uchiwa:3000/#/client/{Your-Sensu-DC}/unknown-client-id
Wait for a few seconds (~ 10s) and Uchiwa will start throwing error like Could not retrieve stashes from datacenter, No healthy APIs available for datacenter
API will recover only if You leave page with non-existent client.

Context
Uchiwa log:
{"timestamp":"2019-03-28T16:42:10.448265379Z","level":"warn","message":"404 Not Found"}
{"timestamp":"2019-03-28T16:42:10.449883174Z","level":"warn","message":"No healthy APIs available for datacenter: Sensu"}
{"timestamp":"2019-03-28T16:42:15.389876423Z","level":"warn","message":"could not retrieve clients entries from datacenter Sensu: No healthy APIs available for datacenter: Sensu"}
{"timestamp":"2019-03-28T16:42:15.389931196Z","level":"warn","message":"failed to update the datacenter Sensu in 112.023µs"}
{"timestamp":"2019-03-28T16:42:15.389948375Z","level":"warn","message":"stopping aggregates"}
{"timestamp":"2019-03-28T16:42:15.389965638Z","level":"warn","message":"sensu api is unhealthy: http://sensu-api:4567 (datacenter: Sensu)"}
{"timestamp":"2019-03-28T16:42:20.442617545Z","level":"warn","message":"No healthy APIs available for datacenter: Sensu"}
{"timestamp":"2019-03-28T16:42:20.446438639Z","level":"warn","message":"No healthy APIs available for datacenter: Sensu"}
{"timestamp":"2019-03-28T16:42:25.389809968Z","level":"warn","message":"could not retrieve stashes from datacenter Sensu: No healthy APIs available for datacenter: Sensu"}
{"timestamp":"2019-03-28T16:42:25.389891472Z","level":"warn","message":"failed to update the datacenter Sensu in 185.257µs"}
{"timestamp":"2019-03-28T16:42:25.390243239Z","level":"warn","message":"checking health of sensu api http://sensu-api:4567 (datacenter: Sensu)"}
{"timestamp":"2019-03-28T16:42:25.396295793Z","level":"warn","message":"sensu api is healthy again: http://sensu-api:4567 (datacenter: Sensu)"}

Your Environment

Uchiwa version used: 1.6.0
Sensu version used: 1.7.0
Operating System and version (e.g. Ubuntu 14.04): CentOS 7

@mdzidic thanks for opening this issue. Can you please provide Sensu API logs which correspond to the Uchiwa warnings shown in your report?

I am running into the same issue, the default configuration of the API shows no logs whatsoever. I just see 2 requests for /clients/CLIENT_NAME?dc=default and /clients/CLIENT_NAME/history?dc=default that return a 404 every single time because indeed they have been removed

@cwjohnston I can't find anything inside Sensu API logs...

I can confirm this happened recently for me as well, downgrade Uchiwa to 1.5.0 resolved it.

@mdzidic Thanks so much for reporting this issue. Our team has triaged this and will pursue an update with a resolution by early next week. We appreciate your patience!

The problem still persists with for me on Uchiwa 1.5.0 & Sensu 1.7.0-2. Any update on when this fix may be available? It causes our Uchiwa cluster to flap constantly until we find out which user has left a browser window open on non-existent client. Thanks.
BTW, Here is the output that is produced by the sensu-api.log for a 404 client...
{"timestamp":"2019-05-13T15:27:46.640921-0600","level":"info","message":"api response","request":{"request_id":"511f1a8f-aa99-4fc4-b65c-c38f63f139c6","remote_address":"<IP_ADDRESS>","user_agent":"Go-http-client/1.1","method":"GET","uri":"/clients/","query_string":null,"body":""},"status":404,"content_length":0,"time":0.0}

My bad, I guess my version of Uchiwa is at 1.6.0, I double checked the installed RPM. I had mistakenly seen version 1.5.0 (cached) on the Uchiwa info page. I force refreshed and it's 1.6.0 on the info page now.

Hello @mdzidic @toote @oboukili @mylesw42
We've recently released Uchiwa 1.7.0 containing the changes in https://github.com/sensu/uchiwa/pull/817.  We believe these changes will resolve the behavior described in this issue.
At your earliest convenience, would you please test this latest release and share with us your feedback as to whether this issue is resolved?

@cwjohnston I can confirm that the latest release has fixed this issue


Can't get assets to load when deploying to a server (fly.io)

I've reviewed every past issue I can find on the topic.
I've gone back through every step of the installation. Everything works great locally, but for the life of me I can't get the docker / fly.io deployment to load the styling. I reviewed a past issue linking to a working docker file and tested everything I every change.
I'm mostly wondering if anyone found a solution to docker/server deployments. Or if anyone thinks of an obvious solution for me.
Here is a server log showing the GET /assets/app.css
And 404 after. I assume the path is wrong or it's getting created in the wrong spot somehow.

I had the same issue. Fixed it by specifying the app name in the assets.deploy task (before that I had "tailwind default --minify", which resulted in a 404 also). This is what worked for me:
 "assets.deploy": [
  "tailwind real_app_name --minify",
  "cmd --cd assets node build.js --deploy",
  "phx.digest"
]


[TIR] Fix buffer shape and IndexMap indices dtype mismatch

After the PR https://github.com/apache/tvm/pull/13327, I'm getting a dtype-mismatch error at https://github.com/apache/tvm/blob/b6fae9b35eff4ad1f7cc2e83d8d7da5d701d8e44/src/tir/schedule/primitive/layout_transformation.cc#L310, because dim.dtype() is now int64 while virtual_var.dtype() is int32. The dtypes of initial_indices in IndexMap are fixed to int32 (see below), this is in conflict with the above PR which made the dtypes of buffer shapes int64.
https://github.com/apache/tvm/blob/458ca81c01bd85d04ea6428e7cb4bfa021a1d37a/src/tir/ir/index_map.cc#L51
https://github.com/apache/tvm/blob/78b53221f8dd8c1d2bbeff9d34803db33ca254dd/python/tvm/tir/function.py#L395
Since initial_indices is used everywhere to construct loop_var / iter_var / iter_values of For and Block etc, I'm adding a dtype legalization at the beginning of TransformLayout, when the dtypes of the input buffer and initial_indices do not match.
@vinx13 @Lunderberg

Regarding the readability of the unit test, I did some poking around, and the following PrimFunc triggers the same error on main when the layout is transformed using lambda h: [h//8, h%8].
@T.prim_func
def func(A: T.Buffer[T.int64(58), "int32"]):
    for i in T.serial(T.int64(58)):
        with T.block("block"):
            vi = T.axis.remap("S", [i])
            A[vi] = 0

@Lunderberg @vinx13 PTAL, thanks.


error url

https://github.com/quartz-scheduler/quartz/blob/master/docs/cookbook/CreateScheduler.html

Hey for that particular link the correct one is http://www.quartz-scheduler.org/documentation/2.4.0-SNAPSHOT/cookbook/CreateScheduler.html
It looks like you were navigating through the Documentation directly from GitHub repo that's why you get that link. I recommend seeing the documentation from the site http://www.quartz-scheduler.org/documentation/2.4.0-SNAPSHOT/cookbook/


[R-package] suppress Wcast-function-type warning in CMake-based gcc and MinGW builds (fixes #4273)

This PR fixes #4273. It proposes suppressing this warning on CMake-based builds of the R package using gcc or MinGW:
warning: cast between incompatible function types from 'SEXPREC* (*)(LGBM_SE, SEXP, SEXP)' {aka 'SEXPREC* (*)(LGBM_SER*, SEXPREC*, SEXPREC*)'} to 'DL_FUNC' {aka 'void* (*)()'} [-Wcast-function-type]

This PR proposes suppressing this warning specifically for the portion of lightgbm_R.cpp that handles routine registration. The pattern used in {lightgbm} is exactly the same one used in many other R packages on CRAN (https://github.com/search?q=R_CallMethodDef+org%3Acran+filename%3A*.cpp), and the extensive unit tests covering the package give me confidence that this isn't causing any issues.
I think that removing this warning is useful because it remove unnecessary noise from users' logs and might prevent users who are trying to debug installations issues from spending time focused on warnings that are not actually problematic.
Notes for reviewers
See #4273 for more details on this warning.
See https://cran.r-project.org/doc/manuals/r-release/R-exts.html#useDynLib and the description in #4155 for more background information on how routine registration in R packages works.
CRAN does have a rule preventing the of pragmas that suppress warnings, but the pragmas introduced in this PR will be removed when preparing a CRAN package.
https://github.com/microsoft/LightGBM/blob/08d1ce4bbf9391f5cc945f5f015840f4a57774a6/build-cran-package.sh#L94

@jameslamb
Is this PR ready for review or supposed to be revised after the discussion with @david-cortes  in #4273?

I think it can be reviewed. I interpreted the most recent comment in that discussion, https://github.com/microsoft/LightGBM/issues/4273#issuecomment-840198834 , as saying "ok actually it's not related to use or missing use of extern C", so I can't think of other things to try.
Given the wide range of operating system + R version + compiler versions the R package is tested against, I'm fairly confident that this warning can be ignored and that it would improve the user experience to suppress it.

I've checked all CI logs to make sure that proposed if condition doesn't leave uncovered cases.
And I'm OK to ignore this warning.

ok thanks very much!


FIX #2655 Add quotes to the eval cmdline if there are spaces in the path

Signed-off-by: David Gageot<EMAIL_ADDRESS>

LGTM


"uninstalling" theme

How do you removed installed themes from Element desktop on macOS?

Element doesn't have a button to delete them. https://github.com/vector-im/element-web/issues/13221 You need to manually remove it.
Type /devtools in the message composer. Be careful. You can screw up rooms or your account by editing things in here. Click Explore Account Data. Click im.vector.web.settings. Edit the JSON to remove the custom_themes block or the individual theme you want to remove.

Ahh, /devtools that did the trick -- thank you!

Yes it works! Thanks a lot @aaronraimist.


The documentation for writing your own client / testing other systems is unclear

Looking at https://docs.locust.io/en/stable/testing-other-systems.html, it is not very easy to understand (because of all the getattr:s).
But mainly, because the example subclasses ServerProxy (rather than wrapping it), it subtly depends on ServerProxy not actually having any "real" methods defined, which would hijack any calls to the client by that name.
Raising such interesting SO tickets as this one: https://stackoverflow.com/questions/62219054/locust-request-success-fire-does-not-do-anything/62219933?noredirect=1#comment110236686_62219933

There are some additional clients/Users in https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/users.py (and example use cases in https://github.com/SvenskaSpel/locust-plugins/blob/master/examples)


Unable to find the ollama models in the dropdown list

I have used this below configuration for devin and ollama server started and running, on the other terminal using litellm to use the API's.
#########devin################
python -m pip install pipenv
python -m pipenv install -v
python -m pipenv shell
uvicorn opendevin.server.listen:app --port 3000
cd frontend
npm install
npm start
.env or config.toml
export LLM_EMBEDDING_MODEL="ollama/llama2"
export LLM_API_KEY=""
export LLM_MODEL="ollama/llama2"
export WORKSPACE_DIR="./workspace"
export LLM_BASE_URL="http://localhost:8000"
$ litellm --model ollama/llama2 --add_function_to_prompt --drop_params --request_timeout 1000 --debug --max_tokens 5000
INFO:     Started server process [75584]
INFO:     Waiting for application startup.
#------------------------------------------------------------#

'It would help me if you could add...'
https://github.com/BerriAI/litellm/issues/new

#------------------------------------------------------------#
Thank you for using LiteLLM! - Krrish & Ishaan
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
Devin backend server started successfully
$ uvicorn opendevin.server.listen:app --port 3000
INFO:     Started server process [79569]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:3000 (Press CTRL+C to quit)
INFO:     ('<IP_ADDRESS>', 63888) - "WebSocket /ws" [accepted]
INFO:     connection open
INFO:     <IP_ADDRESS>:63890 - "GET /litellm-models HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:63890 - "GET /litellm-models HTTP/1.1" 200 OK
Frontend
$npm start
VITE v5.1.6  ready in 661 ms
➜  Local:   http://localhost:3001/
➜  Network: use --host to expose
➜  press h + enter to show help
🌼   daisyUI 4.9.0
├─ ✔ 1 theme added		https://daisyui.com/docs/themes
╰─ ★ Star daisyUI on GitHub	https://github.com/saadeghi/daisyui
🌼   daisyUI 4.9.0
├─ ✔ 1 theme added		https://daisyui.com/docs/themes
╰─ ❤ Support daisyUI project:	https://opencollective.com/daisyui
while selecting Model from UI, I am unable to see the ollama/llama2 in the given list. Is there any steps I need to follow to display local llm in the given list.

And then I am getting lots of exceptions get choose the right LLM from the list.
Please do the needful. Thanks

It was a bug in LIiteLLM, already discussed and fixed here (it was for Gemini, but should fix other missing entries too).
https://github.com/BerriAI/litellm/pull/2806
I guess it should fix itself as soon the new build of litellm gets released (you will need to update python dependencies too)
Anyway, there are some people wich have already made sone experiments with ollama, so i guess it's possible to just put it in the config.toml. should look like this:
LLM_API_KEY="11111111111111111111"
WORKSPACE_DIR="workspace"
LLM_BASE_URL="http://localhost:11434"
LLM_MODEL= "ollama/llama2"
LLM_EMBEDDING_MODEL="llama2"
You can also use something like KoboldCpp (or anything wich exposes an OpenAI-compatible API) and configure OpenDevin like this:
LLM_API_KEY="."
LLM_MODEL="gpt-4-0125-preview"
LLM_BASE_URL="http://localhost:5001/v1/"
WORKSPACE_DIR="./workspace"

Thanks Davide for the reply, I have used both the LiteLLM and only Ollama, but the both cases I got similar response. However, I will try with these properties in config.toml file. But What Model I need to choose from Devin side to work with my local LLM.

Should be fixed with the latest code

Yes, I just updated to the litellm==v1.34.22, I have selected llama2 from the model list,
but I am getting this error in the litellm side. below are the logs.
INFO:     <IP_ADDRESS>:61419 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61420 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61421 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61422 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61423 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61424 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61425 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61426 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61427 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61428 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61429 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61430 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61431 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61432 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61433 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61434 - "POST /api/embeddings HTTP/1.1" 404 Not Found
INFO:     <IP_ADDRESS>:61435 - "POST /api/embeddings HTTP/1.1" 404 Not Found

Thanks Davide for the reply, I have used both the LiteLLM and only Ollama, but the both cases I got similar response. However, I will try with these properties in config.toml file. But What Model I need to choose from Devin side to work with my local LLM.
curl http://localhost:11434
Ollama is running

Follow my examples. For ollama you should use ollama/{model_name}
While for KoboldCpp or other software wich expose an OpenAI-like API, select gpt-4-0125-preview and just set LLM_BASE_URL

I am using these settings in my config.toml:
LLM_API_KEY="11111111111111111111"
LLM_BASE_URL="http://localhost:11434"
LLM_MODEL= "ollama/llama2"
LLM_EMBEDDING_MODEL="llama2"
WORKSPACE_DIR="./workspace"

I also chose llama2 as Model and MonologueAgent as Agent on the front end.
The backend server is giving this error:
litellm.exceptions.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=llama2

I have made a PR to try and fix this on the backend #689.
I changed the backend llm so that if the user has LLM_API_KEY="ollama" in their config then it will ignore the input that comes from the frontend. This is more of a quick hack since this makes the model dropdown menu essentially useless when you have the api key set to ollama, but its does work.

I have made a PR to try and fix this on the backend #689.
I changed the backend llm so that if the user has LLM_API_KEY="ollama" in their config then it will ignore the input that comes from the frontend. This is more of a quick hack since this makes the model dropdown menu essentially useless when you have the api key set to ollama, but if you are using local most likely you are not using the api. You can also just restart with a new config if you want to use the api.

Can I pull the latest code and try?

I just tested with latest code pull, getting this error while connecting ollama
config.toml
LLM_API_KEY="ollama"
WORKSPACE_DIR="./workspace"
LLM_BASE_URL="http://localhost:4000"
LLM_MODEL="ollama/llama2"
LLM_EMBEDDING_MODEL="llama2"
after backend server starts then I am getting this error, I have selected llama2 and agent is monologueAgent.
$ uvicorn opendevin.server.listen:app --port 3000
INFO:     Started server process [55190]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:3000 (Press CTRL+C to quit)
INFO:     ('<IP_ADDRESS>', 61135) - "WebSocket /ws" [accepted]
INFO:     connection open
INFO:     <IP_ADDRESS>:61136 - "GET /litellm-models HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:61137 - "GET /litellm-agents HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:61138 - "GET /litellm-models HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:61139 - "GET /litellm-agents HTTP/1.1" 200 OK
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 240, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/middleware/errors.py", line 151, in call
await self.app(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/middleware/cors.py", line 77, in call
await self.app(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/routing.py", line 373, in handle
await self.app(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/routing.py", line 96, in app
await wrap_app_handling_exceptions(app, session)(scope, receive, send)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/starlette/routing.py", line 94, in app
await func(session)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/fastapi/routing.py", line 348, in app
await dependant.call(**values)
File "/Users/Kiran/Documents/GitHub/OpenDevin/opendevin/server/listen.py", line 25, in websocket_endpoint
await session.start_listening()
File "/Users/Kiran/Documents/GitHub/OpenDevin/opendevin/server/session.py", line 89, in start_listening
await self.create_controller(data)
File "/Users/Kiran/Documents/GitHub/OpenDevin/opendevin/server/session.py", line 135, in create_controller
llm = LLM(model=model, api_key=api_key, base_url=api_base)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Kiran/Documents/GitHub/OpenDevin/opendevin/llm/llm.py", line 36, in init
self._router = Router(
^^^^^^^
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/litellm/router.py", line 198, in init
self.set_model_list(model_list)
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/litellm/router.py", line 2075, in set_model_list
) = litellm.get_llm_provider(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/litellm/utils.py", line 5733, in get_llm_provider
raise e
File "/Users/Kiran/.local/share/virtualenvs/OpenDevin-N0zELi1b/lib/python3.11/site-packages/litellm/utils.py", line 5720, in get_llm_provider
raise litellm.exceptions.BadRequestError(  # type: ignore
litellm.exceptions.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=llama2
Pass model as E.g. For 'Huggingface' inference endpoints pass in completion(model='huggingface/starcoder',..) Learn more: https://docs.litellm.ai/docs/providers
INFO:     connection closed

@kiran-chinthala my PR never got merged. Someone in the dev team told me that they are working on a better solution than the hack fix I put in my PR. For now I recommend this change as a temporary fix:
in opendevin/llms/llm.py change first line of init to this:
self.model_name = model if model and api_key.lower() != 'ollama' else DEFAULT_MODEL_NAME

hi, i have this configuration:
LLM_MODEL="ollama/llama2:latest" LLM_API_KEY="ollama" WORKSPACE_DIR="./workspace" LLM_BASE_URL="http://localhost:11434" LLM_EMBEDDING_MODEL="local"
but it gives me these errors:
ERROR:
"'action' key is not found in action={'thought': 'How should I structure my calculator program? Should I start with a main function and define functions for each feature, or should I start with a class and implement inheritance?'}"
Traceback (most recent call last):
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/opendevin/controller/agent_controller.py", line 113, in step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/agenthub/monologue_agent/agent.py", line 166, in step
action = prompts.parse_action_response(action_resp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/agenthub/monologue_agent/utils/prompts.py", line 135, in parse_action_response
return action_from_dict(action_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/opendevin/action/init.py", line 26,
in action_from_dict
raise KeyError(f"'action' key is not found in {action=}")
KeyError: "'action' key is not found in action={'thought': 'How should I structure my calculator program? Should I start with a main function and define functions for each feature, or should I start with a class and implement inheritance?'}"
OBSERVATION:
"'action' key is not found in action={'thought': 'How should I structure my calculator program? Should I start with a main function and define functions for each feature, or should I start with a class and implement inheritance?'}"
==============
STEP 2
PLAN:
write a simple calculator in python
ERROR:
"'action' key is not found in action={'thought': 'How should I structure my calculator program? Should I start with a main function and define functions for each feature, or should I start with a class and implement inheritance?'}"
Traceback (most recent call last):
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/opendevin/controller/agent_controller.py", line 113, in step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/agenthub/monologue_agent/agent.py", line 166, in step
action = prompts.parse_action_response(action_resp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/agenthub/monologue_agent/utils/prompts.py", line 135, in parse_action_response
return action_from_dict(action_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/opendevin/action/init.py", line 26,
in action_from_dict
raise KeyError(f"'action' key is not found in {action=}")
KeyError: "'action' key is not found in action={'thought': 'How should I structure my calculator program? Should I start with a main function and define functions for each feature, or should I start with a class and implement inheritance?'}"
OBSERVATION:
"'action' key is not found in action={'thought': 'How should I structure my calculator program? Should I start with a main function and define functions for each feature, or should I start with a class and implement inheritance?'}"
Error sending data to client
INFO:     connection closed
Error sending data to client Cannot call "send" once a close message has been sent.
==============
STEP 3
PLAN:
write a simple calculator in python
ERROR:
AgentThinkAction.init() missing 1 required positional argument: 'thought'
Traceback (most recent call last):
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/opendevin/controller/agent_controller.py", line 113, in step
action = self.agent.step(self.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/agenthub/monologue_agent/agent.py", line 166, in step
action = prompts.parse_action_response(action_resp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/agenthub/monologue_agent/utils/prompts.py", line 135, in parse_action_response
return action_from_dict(action_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/f.ribaldi/progetti/OpenDevin/opendevin/action/init.py", line 31,
in action_from_dict
return action_class(**args)
^^^^^^^^^^^^^^^^^^^^
TypeError: AgentThinkAction.init() missing 1 required positional argument: 'thought'
OBSERVATION:
AgentThinkAction.init() missing 1 required positional argument: 'thought'
Error sending data to client Cannot call "send" once a close message has been sent.
==============
STEP 4
PLAN:
write a simple calculator in python
ACTION:
AgentThinkAction(thought='How should I structure my calculator program?', action='think')
Error sending data to client Cannot call "send" once a close message has been sent.
==============
STEP 5
PLAN:
write a simple calculator in python
ACTION:
AgentThinkAction(thought='How should I structure my calculator program?', action='think')
Error sending data to client Cannot call "send" once a close message has been sent.

@FRibaldiReply llama2 does not really perform well in OpenDevin because it does not have a lot of coding training, I recommend switching to dolphin-mistral:7b-v2.8-q8_0 or something similar if your GPU can support it. Dolphin is specifically trained on coding datasets and it works much better in my experience.

We've updated the docs here, and fixed the model list. I think this one should be covered now

We've updated the docs here, and fixed the model list. I think this one should be covered now

the models list is still wrong. that is not the model list i have loaded in ollama locally. that's just a random list of models that ollama has available.
if the config.toml specifies ollama with local model, the only model available should be the one from ollama that i am currently running.

also in the settings window the model name is just displayed there from config.toml. it's not actually used for anything.

the models list is still wrong. that is not the model list i have loaded in ollama locally. that's just a random list of models that ollama has available.
if the config.toml specifies ollama with local model, the only model available should be the one from ollama that i am currently running.

Let me make sure I understand what you mean. I think the idea of this dropdown to let you choose another model if supported, test it out for the session, see how it works, regardless what you set as your usual model.
Do you mean that since they're local models, you need them installed, otherwise you'll never be able to choose another successfully? I mean, that obviously makes sense. It's a big list displayed all the time, even though at any given time you may need or be able to run only some. I don't know, do you want to open a new issue with a proposal of how a more useful list could look like?
For proprietary models, people usually do want to see all from that provider, since they probably have access to them.


Error communicating with authentication provider  after upgrade to 1.6.17

Rancher versions:
rancher/server or rancher/rancher: 1.6.17
rancher/agent or rancher/rancher-agent:

From what version did you upgrade? What is in the rancher/server logs?


fix: failed on pnpm

it's looks like failed on pnpm

Never used pnpm before, and only tested it with npm. Can you explain your changes?

Never used pnpm before, and only tested it with npm. Can you explain your changes?

in my project, dep-a looks like
{
  "exports": {
    "./package.json": "./package.json",
    "./module": {
        "import": "./es/module.js"
      }
  },
"dependencies": {
    "dep-b": "version"
  }
}

dep-a depends on dep-b, dep-b is also contian conditions-exports, it looks like
{
  "exports": {
    "./package.json": "./package.json",
    "./moduleb": {
        "import": "./es/module.js"
      }
  },
}

in file ./es/module.js under dep-a
import { foo } from 'dep-b/moduleb'

the key is pnpm has special node_module structure
node_modules
  dep_a
    node_modules
      dep-b

require(dep-b/package.json) will throw error.
I have not test on npm project yet...

the key is pnpm has special node_module structure
node_modules
  dep_a
    node_modules
      dep-b

This is standard Node.js structure, just only not doing flatting dependencies. That scheme is fully supported by Node.js, in fact it's how originally worked by default until about npm v5.

require(dep-b/package.json) will throw error. So I try to find dep-b from basedir

Your exports doesn't have defined require entries, only import ones. Are you sure this is not the source issue?

Your exports doesn't have defined require entries, only import ones. Are you sure this is not the source issue?

I update dep-a & dep-b package exports, here is my test case and jest.config.js
// file.spect.ts
import bar from 'dep-a/module'

it('bar', () => {
  // some test code
})

/**
 * @type {import('@jest/types').Config.InitialOptions}
 */

module.exports = {
  roots: ['<rootDir>/src'],
  transform: {
    '^.+\\.tsx?$': 'ts-jest',
  },
  resolver: '<rootDir>/resolver.js',
  testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  moduleNameMapper: {
    // If you defined paths in tsconfig.json
    // you have to define them again here
    // for jest doesn't respect tsconfig.json's paths
    '@lib/(.*)': '<rootDir>/src/$1'
  },
  testEnvironment: 'jsdom',
  globals: {
    'ts-jest': {
      tsconfig: '<rootDir>/tsconfig.test.json',
    },
  }
};

Are you sure this is not the source issue?

maybe is monorepo issue, i will test it later.

resolver: '<rootDir>/resolver.js',

Why do you have a custom resolver instead of using this module? What's its content?

'/resolver.js' is fork version of this repo, same as this pr


Properly report failure to switch to target apartment

If we were unable to switch to a target apartment (either by an explicit co_await apartment_context or implicitly at the completion of  co_await IAsyncInfo), we now report the exception in the co_await'ing coroutine, so it can be caught and handled.
Note that when this error occurs, we are stuck in limbo. We left the original apartment for the MTA, and now we can't get from the MTA to the target apartment. We have no choice but to raise the exception on the MTA, even though the coroutine may not have expected to be running there.
IAsyncAction Trapped()
{
    Object o; // some object with a destructor
    co_await destroyed_ui_context; // throws an exception
}

The destructor for Object will run on the MTA, even though the Trapped coroutine never runs on the MTA under normal conditions.
This is making the best of a bad situation. We need to raise the exception into the coroutine so that the coroutine can enter a failure state and allow the coroutine chain to proceed.
Since the object o already had to be prepared for destruction on the original apartment or the switched-to apartment (in case an exception occurs in either apartment), we know that the object cannot have apartment affinity anyway. So we're probably okay to destruct it on the MTA.
There is still a gotcha: If the co_await completes successfully, but is unable to return to the original apartment, the completed value of the co_await is lost, since the success is transformed to an apartment-switching exception. If the awaited coroutine's return value requires special cleanup, that cleanup will not occur. Example:
IAsyncAction Trapped()
{
    auto lamp = co_await TurnOnAsync();
    auto ensure_off = wil:;scope_exit([&] { lamp.TurnOff(); });
    /* do more stuff with the lamp */
}

If the TurnOnAsync succeeds, but we are unable to return to the original apartment, the lamp is not returned by co_await, which means it never gets turned off. There's not really much we can do about this since co_await cannot both return a value and throw an exception.
One workaround is to do the co_await on the MTA:
IAsyncAction Trapped()
{
    apartment_context original_apartment;
    auto lampAction = TurnOnAsync();
    co_await resume_background();
    auto lamp = co_await lampAction; // await on the MTA
    auto ensure_off = wil:;scope_exit([&] { lamp.TurnOff(); });
    co_await original_apartment;
    /* do more stuff with the lamp */
}

Another is to clean up the lamp in an exception handler.
IAsyncAction Trapped()
{
    auto lampAction = TurnOnAsync();
    Lamp lamp{ nullptr };
    try
    {
        lamp = co_await lampAction;
    }
    catch (...)
    {
        if (lampAction.Status() == AsyncStatus::Completed) lamp = lampAction.GetResults().TurnOff();
        throw;
    }
    auto ensure_off = wil:;scope_exit([&] { lamp.TurnOff(); });
    /* do more stuff with the lamp */
}

Implementation notes
The old code raised the exception on whatever thread happened to notice that something bad happened. Sometimes that's okay, for example if you do a co_await destroyed_ui_context from an MTA thread, in which case the exception is thrown into the coroutine and can be caught, or left uncaught and send the coroutine into an error state.
However, all of the other cases weren't quite so happy. To avoid deadlocks, the apartment switch is routed through the threadpool, and that means that the failure is raised on a threadpool thread. There's nobody around to catch that exception, so the process fails fast.
We solve the problem by having an hresult in the awaiter, which is initialized to 0 (S_OK) and transitions to error when we are about to resume the coroutine on the wrong apartment, so that the error can be propagated during await_resume(), which happens in the context of the awaiting coroutine and therefore can be caught by the coroutine (or sent to unhandled_exception).
This requires apartment_context to have a separate awaiter, rather than being its own awaiter, because we need a place to communicate the apartment switch failure. We can't store it in the apartment_context because we support awaiting a const apartment_context.

nit: the description's scope_exit have typos, :;scope_exit instead of ::scope_exit

So the only drawback here is that, if you have a STA-bound object, the Release and possibly the destructor of the object is not guaranteed to be freed on a STA if the co_await fails. We should at least make sure that in our documentation, we say that objects crossing a co_await need to be agile enough to not fail out if destruction doesn't happen happen on the source STA, if the thread can't be guaranteed by the developer.

@antmor If you have an STA-bound object, you're already in trouble, because it might destruct on the wrong apartment even in the absence of the MTA weirdness.
fire_and_forget Victim()
{
   StaObject object;
   DoSomething1();
   co_await resume_foreground(dispatcher);
   DoSomething2();
}

If DoSomething1() or resume_foreground() raise an exception, then the StaObject destructs on the old apartment. But if the co_await or the DoSomething2() raise an exception, then the StaObject destructs on the new apartment.
So the StaObject needs to be prepared to be destructed in either the old apartment or the new one. In other words, it must already be agile.


Depend on component gems

Nothing[^1] should depend on the rails gem -- we'll need to identify which components are dependencies, and list those explicitly in the gemspec.
[^1]: Anywhere in the ecosystem, but especially in our own stack

Fixed in #21


Add delete section feature

What is the context of this PR?

Added delete button to section titles and implemented the Apollo GraphQL logic to perform the deletion and optimistic re-fetching of data.
If deleting the last section in a questionnaire, then a new section and page combination will be added similar to how page deletion works.
How to review
All tests and automated checks should pass.
Should be able to delete sections without error.
Dependencies
This PR depends on #220 being merged first. This will prevent both the section and page delete buttons being displayed at the same time.

 Delete Section (2)

Can we look at the way transitions work when you delete a section? Currently, it's animating all the other sections back in again and it's pretty confusing.


OperationalError: No such table dbs

I installed on a Ubuntu 14.04 machine.
When I run the server, I can see that the CSS/HTML side seems to work nicely but it don't load the data.

When I click at Source > database I have the following error:
16-04-10 22:28:12,920:INFO:werkzeug:<IP_ADDRESS> - - [10/Apr/2016 22:28:12] "GET /databaseview/list/ HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/views.py", line 365, in list
    widgets = self._list()
  File "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/baseviews.py", line 870, in _list
    page_size=page_size)
  File "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/baseviews.py", line 785, in _get_list_widget
    count, lst = self.datamodel.query(joined_filters, order_column, order_direction, page=page, page_size=page_size)
  File "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/models/sqla/interface.py", line 105, in query
    count = query_count.scalar()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2724, in scalar
    ret = self.one()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2693, in one
    ret = list(self)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2736, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2751, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 914, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
    context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
    exc_info
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
    context)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 450, in do_execute
    cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) no such table: dbs [SQL: u'SELECT count(?) AS count_1 \nFROM dbs'] [parameters: ('*',)]
2016-04-10 22:28:13,194:INFO:werkzeug:<IP_ADDRESS> - - [10/Apr/2016 22:28:13] "GET /databaseview/list/?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 200 -
2016-04-10 22:28:13,225:INFO:werkzeug:<IP_ADDRESS> - - [10/Apr/2016 22:28:13] "GET /databaseview/list/?__debugger__=yes&cmd=resource&f=jquery.js HTTP/1.1" 200 -
2016-04-10 22:28:13,225:INFO:werkzeug:<IP_ADDRESS> - - [10/Apr/2016 22:28:13] "GET /databaseview/list/?__debugger__=yes&cmd=resource&f=debugger.js HTTP/1.1" 200 -
2016-04-10 22:28:13,449:INFO:werkzeug:<IP_ADDRESS> - - [10/Apr/2016 22:28:13] "GET /databaseview/list/?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -
2016-04-10 22:28:13,672:INFO:werkzeug:<IP_ADDRESS> - - [10/Apr/2016 22:28:13] "GET /databaseview/list/?__debugger__=yes&cmd=resource&f=console.png HTTP/1.1" 200 -

Any idea of why it didn't find the dbs table?

@mikebotazzo please check your db connection and follow http://airbnb.io/caravel/installation.html
Also make sure you have followed these steps:
Initialize the database
caravel db upgrade
Create default roles and permissions
caravel init
Load some data to play with
caravel load_examples
After that you can manually check your sqlite db to see if its populated. OperationalError: (sqlite3.OperationalError) no such table: dbs [SQL: u'SELECT count(?) AS count_1 \nFROM dbs'] [parameters: ('*',)] means the expected table is not in the db. So make sure you are pointing to right db settings in config.py

dbs table reference is coming from here: https://github.com/airbnb/caravel/blob/master/caravel/models.py#L294

Yeah it looks like you skipped some of the installation steps.

Is 8088 the default port ?


Why there are show two icon after Installed in the android

Why there are show two icon after Installed in the android

This issue looks like a question that would be best asked on StackOverflow.
StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.
Will close this as this is really a question that should be asked on StackOverflow.


Updated API guide PDF

Problem statement
Before we can get an updated guide on the site, engagement needs a new pdf version to use for onboarding in the meantime.
What you need to know

Edit copy with full suggestions/comment threads from working sessions
Clean copy with edits applied and only design notes/misc in comments
[Mural working space]
...

Acceptance criteria

[x] New edits formatted for PDF readability
[x] Reviewed by engagement
[x] PDF send to eng for upload -- Ticket #8641

For Reference

Old: ReportStream-Programmers-Guide-v2.3-updated.pdf
New: ReportStream-Programmers-Guide-v3.0.pdf

@chris-kuryak this is ready to hand off to be uploaded. how would I go about doing that? would you create a ticket for end?

Created ticket for engineering #8641 . Closing this ticket.


Fixes the SSMS launch issue (#11257)

Fixes the SSMS launch issue

Spelling

This PR fixes #11230

Coverage decreased (-0.05%) to 35.979% when pulling 794a4870a888439f04bed092bdef2e4d30ef505e on amir/releasePort/ssms into 047c2218347e386ac8e047d8607e1d5adaf918fa on release/1.20.


Make docker image lighter

Right now the image is 374MB, it would be very cool to make it lighter to make its use easier

This will be a direct consequence of transforming Cameradar into a Golang library. The docker image will just be able to run golang and will contain the Cameraccess example of use.


Climate-666 - Replace examples with the RCMES script and yaml files

run_RCMES.py, example_package.py and .yaml files replace the old examples.

Merged build triggered. Test Failed.

Merged build started. Test Failed.

Merged build finished. Test Passed.


Errors highlighted when using pipetools module

 Environment data

Language Server version: 2021.9.3
OS and version: darwin x64
Python version (and distribution if applicable, e.g. Anaconda): 3.9.2
python.analysis.indexing: undefined
python.analysis.typeCheckingMode: off

 Expected behaviour
Use of the symbol | to pipe tasks together using the pipe function in the pipetools package causing no highlighted Pylance errors.
 Actual behaviour
Pylance is highlighting an an error with the use of | symbol before a list call when piping tasks together using pipetools. It states that Alternative syntax for unions requires Python 3.10 or newer. The code runs with no issues in Python 3.9.2 as pipetools is imported. This error goes away if Python 3.10 is used, but should not occur for v3.9.2.
 Logs

Python Language Server Log
No log output to provide

 Code Snippet / Additional information

pip install pipetools

from pipetools import pipe, where

odd_sum = (pipe |
            range |
            where(lambda x: x % 2) |    #This pipe symbol shows an error as it is before a `list` call
            list |
            sum)

print(odd_sum (5))

Thanks for the bug report. I agree this is a false positive error. It will be fixed in the next release.

This issue has been fixed in version 2021.9.4, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202194-29-september-2021


tedge cert upload c8y does not respect the c8y.root_cert_path setting

Describe the bug

The c8y.root_cert_path path is not respected by tedge cert upload c8y and also when using a custom config-dir location. This results in the following errors:
Error 1: UnknownIssuer
Uploading the certificate fails due the server certificate not being able to be validated, however the custom cert location is not found:
# mv /etc/ssl/certs /etc/ssl/certs.bak
# tedge config set c8y.root_cert_path /etc/ssl/certs.bak
# tedge cert upload c8y --user myuser.example.com
Enter password:
Error: failed to upload root certificate

Caused by:
    HTTP Connection Problem: invalid peer certificate: UnknownIssuer
    Hint: Server certificate validation error.

Error 2: tedge.toml file is not being found
The config-dir value is not respected when running tedge cert upload c8y, resulting in the tedge command looking for the ca certificate in the incorrect location.
# tedge cert upload c8y --config-dir /data --user<EMAIL_ADDRESS>Enter password:
Error: failed to upload root certificate

Caused by:
    Root certificate path /etc/ssl/certs does not exist

To Reproduce

Use a custom config-dir to store thin-edge.io configuration
tedge --config-dir /data init
tedge --config-dir /data cert create --device-id testname

Move the existing certs
mv /etc/ssl/certs /etc/ssl/certs.bak
tedge config set --config-dir /data c8y.root_cert_path /etc/ssl/certs.bak
tedge config set --config-dir /data c8y.url mytenant.c8y.example.com

Try uploading the device certificate to Cumulocity IoT
tedge cert upload c8y --config-dir /data --user <username>

Expected behavior

The c8y.root_cert_path path should be respected when communicating with Cumulocity IoT via HTTP or MQTT. The setting should be allowed to be set in the default tedge.toml location, or in custom locations as controlled by the --config-dir <path> flag on each of the thin-edge.io binaries.
Screenshots

Environment (please complete the following information):

Property
Value

OS [incl. version]
Alpine Linux v3.18

Hardware [incl. revision]
container

System-Architecture
Linux 0e1925ccd1a0 6.5.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 22:58:57 UTC 2024 aarch64 GNU/Linux

thin-edge.io version
tedge 1.1.2~125+ged0b7fd

Additional context

It looks like that the bug is further reaching than just the tedge cert upload c8y. The mapper seems to be also affects (which makes sense, since the http component is probably shared in the code).

Apologies, I have accidentally overwritten the original ticket description (as I was copying some markdown to create a new ticket, and accidentally posted in the same window!)...I will try to reconstruct the ticket description soon!

Bug is not reproducable anymore


Swift 4 Issues

I've downloaded the iOS 11 preview which includes Swift 4 migration, and some build errors appear for the project.
I'll list any issues I find as I migrate my app to swift 4 here, as well as any solutions I find to any of this.
XWVMetaObject.swift:220:
Collection' requires the types 'XWVMetaObject.Element' (aka '(String, XWVMetaObject.Member)') and '(key: String, value: XWVMetaObject.Member)' be equivalent
XWVMetaObject.swift:220:1:
Requirement specified as 'Self.Element' == 'Self.SubSequence.Element' [with Self = XWVMetaObject]

Compiler errors can be resolved for the above by adding:
    typealias Element = (key: String, value: XWVMetaObject.Member)

    subscript(position: Dictionary<String, XWVMetaObject.Member>.Index) -> (key: String, value: XWVMetaObject.Member) {
        return members[position]
    }

To MetaObject. To be tested if this is actually correct in anyway. I have no idea what I'm doing.
The new SubString type causes issues in a few places which are not handled by the automatic Swift 4 converter:
XWVHttpConnection:254
var value = String(line[line.index(after: colon) ..< line.endIndex])

Required copy back to a string before trim operations can be performed
There are a few different instances of:

Comparing non-optional value of type 'objc_property_t' (aka 'OpaquePointer') to nil always returns true

All of which are in a similar form to
while variable != nil {
    ...
}

I'm not sure what to do with these as they look to be enumerations, maybe the end condition has changed in Swift 4.
Finally, for now,

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and disable Swift 3 @objc inference.

Just a deprecation though.

More stuff with the tests. It seems implicit objc entry points are deprecated and throw in Swift 4. Not a huge deal, @objc just needs to be added in a lot of places to make the objc entry point explicit.

Thanks a lot. Go on please, I'm looking forward your PR 😃
Currently, I have no time and hardware to do this work. Sorry for that.
Any question about the source code, please raise here, and I will help you.
BTW, I suggest that you should try to migrate to 3.2 firstly.

I have a compiling version, that seems to run okay inside my app, but not all tests are passing at the moment. How to fix the remaining issues might be beyond my iOS experience.
I'm happy to put what I've done so far on a branch for others to look at, work on, and use. I do not know how much more time I will be able to put into this.

Thanks for the helpful PR.


DoReCo 1.1

DoReCo version 1.1: Summary of changes
This posts gives an overview of the changes made from DoReCo 1.0 to DoReCo 1.1, released 23 August 2022.
Metadata

Updated word counts on the website and in metadata.csv files. Counts are calculated as follows:

for core files: count all entries on wd tiers for core speakers, minus ''<p:>'' (silent pauses), tokens starting in ''<<'' (labels), and ''****'' (fillers) (#1)
for extended files: count all entries on wd tiers for all speakers

Several corrections to various entries throughout the entire DoReCo corpus

CSV files

Reworked the lang column, which used to sometimes contain ambiguous language names, or entries which didn't belong there. Now the lang column always displays the glottocode
Fixed a bug that caused extra whitespace to appear in some cells
Added a core_extended column that indicates to which set (''core'' or ''extended'') a text belongs to
Added a ph column to the _wd CSV
Added a ph_ID column, in accordance with already existing mb_ID and wd_ID
Changed the formatting of entries in the ID columns to have a leading ''p'', ''m'' or ''w'' according to the tier they refer to, instead of a generic ''a''
Fixed a bug whereby IDs were sometimes not unique within a dataset
IDs are now consistent across the _ph and _wd CSVs

Changes to individual datasets

Fixed a character encoding bug that caused some long vowels to be mapped to sequences of short vowels in the Kakabe dataset
Fixed a bug affecting the ph tier in files from the Pnar dataset
Fixed a bug creating an unbounded ft tier in one file from the Cashinahua dataset (#2)
Added tokenization and morph-level alignment for one Teop file from the core dataset
Fixed a tier metadata mismatch in the Light Warlpiri and Sadu datasets that caused non-tokenized entries from extra tiers to be displayed in the gl column of CSV export files
Fixed a tier metadata mismatch in the Komnzo dataset that caused the contents of the gl tier to not be displayed in CSV export files
Fixed a tier metadata mismatch in the Dalabon dataset that caused wrong tiers to be displayed in CSV export files
Fixed a tier name issue in one file from the Movima dataset
Fixed a rare bug in one file from the Yucatec Maya dataset that resulted from unexpected content in the transcription_conventions mapping file

Global improvements

In DoReCo 1.0, entries on the ph@ tiers sometimes included <notProcessedChunk> and <usb> entries, which could result from faulty input to the MAUS forced aligner. These items occured in almost half of our 51 datasets. For DoReCo 1.1, input files were amended where possible, and most remaining <notProcessedChunk> and <usb> entries were replaced by <<ui>>, the generic placeholder label. We are aware of a few cases of <notProcessedChunk> that still occur in the data, which we will address in a later update.
Removed zero-length intervals.

Contents of the corpus

Six files from the extended set were removed from the corpus due to alignment issues:

doreco_port1286_08-02-13_Neli1
doreco_port1286_08-02-13_Neli2
doreco_port1286_08-21-10_JemisGarden
doreco_port1286_09-03-11_Abel_Germany
doreco_bora1263_vuurihii
doreco_trin1278_37

One file from the core set was removed from the corpus due to alignment issues:

doreco_sout2856_073_cut

Added gloss_abbreviation documentation for Dolgan, Nisvai, and Tabasaran

Website

Added an option to download corpus-level metadata
Added an option to download dataset citations in bulk
Added DOIs and URLs to dataset citations (#3)

Ah, ok. So if I only count words that are referenced in _ph.csv, I'll already limit the count to core speakers, correct?


Initializing data for the landing page not loading correctly on tab "Layout" in admin

PHP Version: 8.2.8   | Shopware Version: <IP_ADDRESS>  | Affected area / extension: Platform(Default)

Expected behaviour:
In the admin I am selecting a landing page and go to the tab "Layout" then I expect to see the overridden data that I had made.
Actual behaviour:
Instead I see data from the layout itself. For example "Lorem Ipsum" text. Not the data that I have overridden in the landing page.
How to reproduce:
Create a landing page with a layout assigned with 2 column text "Lorem ipsum" as a good starting point.
Now override the text in tab "layout".
Now go back to the dashboard and in the sidebar select a random category.

You see that the data is not initialized correctly. It loads data from the Layout itself. Not the overridden data you made.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-38377
[created from NEXT-38377, comment 496494]


Network was not found...

As the image describes I have this problem on my debian based linux running docker.
All packages are update to the latest version and the Conbee II stick is updated the latest version deCONZ_ConBeeII_0x26680700.bin.GCF.
The image of the docker contaier is 2.0.7. On my own raspberry Pi this is running fine. On the client I installed it now I get this error.

I had the same issue yesterday, in the console output I found following error massage: "dev can't create file: /dev/ttyACM0 via
mknod (missing permissions)".
Then I just changed the device from "/dev/ttyUSB0" to "/dev/ttyACM0" in my docker-compose file and after that it was working.

i get this in docker logs
13:58:18:623 dev can't create file: /dev/ttyACM0 via mknod (missing permissions)

Hahahaha forget it...
problem solved... problem was just sitting right in front of the PC!
forgot the dialout usermod thing and to mount the USB device into the docker container.... because I was using portainer (that doesn't support device handling in the gui).

Hahahaha forget it... problem solved... problem was just sitting right in front of the PC!
forgot the dialout usermod thing and to mount the USB device into the docker container.... because I was using portainer (that doesn't support device handling in the gui).

Hey man I'm on the same issue - what do you mean?

Hello siaox,
You have to run this command :
sudo usermod -a -G dialout $USER
See prerequisite  for running the deConz container


Fix writing error if running as regular user

See #24
It fix the writing error and therefore the need for running as root.

This actually worked well for me. Any reason why is this not merged?


Replace echo with printf

Just for consistency

Replaced in https://github.com/nozel-org/freebsd-backupbot/commit/e0c3dd66ab41dfa905a43db00dd5081557fb8183.


Improve JDK 9 compatibility

In JDK 9, org.w3c.dom.ElementTraversal class is provided in JDK by default,
so previous ClassPathUtil.getClasspathForResource would throw NPE.
This PR fixes this issue.
In addition, as an attempt to fix #3317 and #3355 , this PR also
catches the exception to avoid unexpected failures.
@donat I'd appreciate your opinion on this. After looking into #3355 carefully,
I don't think it's a good way to return UnknownVersion because its behaviour is undefined. What's the result of UnknownVersion.isJava8Compatible()? What's the result of UnknownVersion.getMajorVersion()? So I catch the exception and leave a warning there.

@melix Added an integration test. Actually, without the change, almost all TAPI cross version tests would fail on JDK9.

@blindpirate I think JavaVersion.current() should be safe to use everywhere in a way that it's won't break if a new versioning scheme is introduced. There are two approaches: throw a checked exception or return a default value when the parsing fails. Unfortunately, the first option is a breaking change, so that's why I'd go with the second one.
Regarding my proposal: UnknownJavaVersion is compatible with all Java version and it would return  "unknown" for the major version.


3.8.0 - Armor Insurance broken

General information:
Plates are being removed randomly as intended, but the integrated parts on armor are also removed.
In the screenshot attached, the PACA was from account generation, and is now missing all integrated armor parts.
The USEC trooper armor that spawned on an PMC did not spawn with Front and Rear plates (I added them), but the integrated plates were removed on Insurance return.
How to reproduce:

Try running a bunch of raids with PACAs and getting them on insurance return

Log files:
Server: File Validation for global.json stems from changing the Ragfair to unlock at level 1, as I can't buy armor due to out of date traders.
Profile:
You can optionally include your game profile if you think it would help us reproduce the error easily (found in /user/profiles/xxxxxxxxxxxx.json)
The profile id can be found in the top left of the launcher.

Attachments

2024-01-05[03-09] (0).png (1838 KiB)
65954c3b00029ef80e1fdfb3.zip (38 KiB)
server-2024-01-05.log (52 KiB)
2024.01.05_9-00-32_<IP_ADDRESS>.28375 traces.log (54 KiB)
LogOutput.log (6 KiB)

Originally written by Jester_Stacks

I have the same problem. But the plates and built-in parts also disappeared from traders and as quest rewards

Attachments

2024-01-05[15-43] (0).png (2511 KiB)
6595c1a60005e6976c6b7c0a.zip (40 KiB)
server-2024-01-05.log (588 KiB)
2024.01.05_12-31-20_<IP_ADDRESS>.28375 traces.log (50 KiB)
LogOutput.log (7 KiB)

Originally written by spter

Quest rewards and Traders are expected as the Trader assorts and quests have not been updated yet.

Originally written by Jester_Stacks

Adding additional confirmation that gear returning from insurance has a chance for the non-removable inserts to vanish.

Attachments

2024-01-07[15-22] (0).png (1659 KiB)

Originally written by Jester_Stacks

Should be fixed with: https://dev.sp-tarkov.com/SPT-AKI/Server/commit/878284f108a8bcb2f9d87db341ef91e7d384bc05
Give it a try and let me know

Originally written by chomp


Horizontal scrolling support

I have been trying to set the TagsStyleFlowLayout to work with a horizontally scrolling UICollectionView but it seems the layout overrides this and forces it to scroll vertically.
It would be very useful to allow it scroll horizontally as well.

Do we have horizontal scrolling for instagram flow layout?

Hello @fr-josh! We've added horizontal scroll for tags layout. Update the pod to the latest version 0.2.2 and enjoy.
Hi @shuuja. We decided to not implement horizontal scroll for other layouts because there is the implementation of social networks layouts that have vertical scroll only.


Improve hint for CatPhotoApp step 15

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #50705

Closing this pull request as I made changes to espanol and german files too, which is no longer accepted.


[411] Course financial incentives scoped to first subject

Context

This trello ticket

Changes proposed in this pull request

Courses have financial_incentives. While the relationship is correct, we only need to worry about the incentive of the main, or first subject
This PR changes so it only worries about the first financial_incentive (note the lack of pluralisation) on the first, or main subject, rather than checking through each subject for an incentive.

Guidance to review
Checklist

[x] Make sure all information from the Trello card is in here
[x] Attach to Trello card
[x] Rebased master
[x] Cleaned commit history
[x] Tested by running locally

 Ensure the financial incentive is only applied to the first/major subject on a course


Could not install package in .NET 4.5 project

Having a bit of trouble installing into a project that targets .NET 4.5.
I get the following error from the package manager:

Install-Package : Could not install package 'saule <IP_ADDRESS>-beta'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Interesting. I'll take a look later today to see if I can fix this. Do you get the same error with the latest 1.2 release?

Yeah, I have tried it with both the current 1.2 release and the pre-release.
I am using WebApi 5.2.3 targetFramework net45

I noticed Saule was targeting 4.5.1, rather than 4.5 proper. This is likely what caused your trouble. The newest prerelease (<IP_ADDRESS>-beta) should solve this issue for you.
Sorry for the trouble, and thanks for reporting this!

Installed just fine. Thanks for your help!
On Fri, Dec 4, 2015 at 9:33 AM, Jouke van der Maas<EMAIL_ADDRESS>
wrote:

I noticed Saule was targeting 4.5.1, rather than 4.5 proper. This is
likely what caused your trouble. The newest prerelease (<IP_ADDRESS>-beta)
should solve this issue for you.
Sorry for the trouble, and thanks for reporting this!
—
Reply to this email directly or view it on GitHub
https://github.com/joukevandermaas/saule/issues/49#issuecomment-161996902
.


Configuration, docs and integration tests for route sync

This is ready for review, but cannot be merged until the corresponding PR in kubo-release is merged.

@mkjelland Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@mkjelland Thank you for signing the Contributor License Agreement!

I will add NATS credentials to the pipeline

Running tests on current branch pipeline


"has" and "in" for objects are essentially the same, but one needs to search recursively

Suggest that "info has xxx" should be first-level test only, while "xxx in info" should be recursive.  Currently both test first level only.
Update the help page with these notes.

Actually, due to the way "IN" / "WITHIN" works (also with ranges, etc.) this one will have to be first-level only. "HAS" has the opportunity to recursively descend (via a new method in CalcUtil), so ...


elan: 0.10.3 -> 0.11.0

Also adapt the patchelf patch from rustup, since Lean 4 now dynamically links to gmp.

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 117712 at 4efc03fe run on x86_64-linux 1

1 package built successfully:

elan

1 suggestion:

warning: missing-patch-comment
Please add a comment on the line above, explaining the purpose of this patch.
Near pkgs/applications/science/logic/elan/default.nix:29:5:
   |
29 |     (runCommand "0001-dynamically-patchelf-binaries.patch" {
   |     ^


Video to audio converter

Description
A python script to convert video to audio.
Fixes #429
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have created a helpful and easy to understand README.md
[x] My documentation follows Template for README.md
[x] My changes generate no new warnings

@avinashkranjan There is confusion here. Issue #321 was assigned to @kshittijagrawal for which he made PR #481.
But another issue #429 with the same task was assigned to @smriti1313 for which this PR was made.
Both have implemented with the same library with different approaches. (P.S: @smriti1313 code with minor bug fix which I did locally will work for all file types but @kshittijagrawal code is restricted to some file types only. Kindly suggest the next step

Hi @smriti1313,
As there was a confusion of Scripts, the final decision is that both: your and @kshittijagrawal contribution will be considered.
Now the important change you need to make is that rename this script folder to Video-To-Audio(CLI-Ver). Rest of the changes are mentioned below:

@kaustubhgupta Thank you so much for this. I will make all the necessary changes by afternoon~evening. Thank you☀

Hi, I have made the necessary changes. Kindly review it and let me know if it is lacking something or not.
Thank you

@smriti1313 you pushed the latest Repo changes as commits in this PR which can't be merged. You only need to push your code and not any other changes. To successfully get the changes without merge conflicts, you should have pulled all the changes via upstream. Now kindly remove other files.

Hi, apologies for what happened. I will send one more PR with proper commits and stuff.
Thank you.


Respect exception context in RollbarLogger

When using the PSR-3 LoggerInterface implementation \Rollbar\RollbarLogger directly in a class to log certain exceptions, Rollbar doesn't respect the exception array key in the context parameter, the exception has to be passed as message to see the pretty stack trace in the Rollbar web interface.
Although technically this is ok, because PSR-3 states that Every method accepts a string as the message, or an object with a __toString() method. and  the Exception (and Throwable) class has a __toString() method, it would be nice to also be able to pass the exception via the $context['exception'] key and use a string as $message. PSR-3 defines that behavior explicitly.
So the following code snippets should log the same thing in Rollbar:
/**
 * @var \Psr\Log\LoggerInterface $logger
 * @var \Throwable $e
 */
$logger->error($e); // current
$logger->error($e->getMessage(), ['exception' => $e]); // suggested

Thanks :)

This has been resolved and will be releases in the new v4.0.0 release.


Optimize Help Command, revert ChatColor to "§".

This pull request...

[X] Improves an existing feature

Description
This PR optimises the class of the Help command.
Purpose
The message has been modified to replace ChatColours with their equivalent "§" symbol, so as not to complicate life with the famous REGEX. Addition of a List#String containing help messages, use of the REGEX to remove symbols when sending to the console.
Notice
REGeX tested and operational. Server-side verification required. The code should work perfectly as is.

I'd like to point out that the code is extremely clean and not subject to any problems, there isn't a single "static" and that's remarkable. Don't take this rework as something bad, but as a fresh look at a way of dealing with this kind of situation.
Honestly, I congratulate you, the code is almost perfect! I'm running out of time otherwise I'd have caught up on a few other things left and right that tickle my fancy, but as it stands. It's extremely well done.