text:
Cabana: support live streaming

support live streaming from a panda or c3.
cabana will only cache settings.cached_segment_limit * 60 seconds data in the memory to prevent memory exhaustion in living mode. you can change this setting in the option dialog : menu->files->settings->Cached segment limit
usage:
receive msgq messages:
cabana --stream
receive zmq messages:
cabana --stream --zmq="127.0.0.1"
Currently, there are some restrictions in the live streaming mode.

no video
can't disable dynamic mode in historylog (the "dynamic mode" checkbox is disabled)
can't zoom-in/zoom-out charts
can't pause, or seekto a positon

I'll try to remove some of these restrictions in the future.
Kazam_screencast_00048.webm

This will be amazing for new car ports or general debugging, thanks deanlee!!

Conflict with https://github.com/commaai/openpilot/pull/26970. temporarily convert to draft to wait  for  https://github.com/commaai/openpilot/pull/26970 to be merged first.

Looks like fading of the colors broke in this PR. In https://github.com/commaai/openpilot/pull/26970 the red/cyan slowly fade out.

That looks correct!

Probably best to keep these extra color changes separate from the streaming PR. There is no need to abstract it into a class to be able to merge this.

ok,I'll remove these changes

@adeebshihadeh this pr is ready. many later works depends on this. It's getting harder to fix it's conflicts with the master.

@sshane can you test a bit and merge?

I also have code for an AbstractStream implementation that connects to a panda directly. Can submit a PR if you're interested (and this PR is merged).

that's great!!

I also have code for an AbstractStream implementation that connects to a panda directly. Can submit a PR if you're interested (and this PR is merged).

Any reason not to use boardd? I think sendcan/can are already a nice abstraction if people want to use other CAN tools.

I'm trying to get cabana to run on Windows as well, not requiring any messaging makes the setup much simpler 😅. It uses the same Panda class as boardd, so it's only a few lines different from @deanlee's livestream.
No worries if you're not interested in maintaining it!

I'm trying to get cabana to run on Windows as well, not requiring any messaging makes the setup much simpler sweat_smile. It uses the same Panda class as boardd, so it's only a few lines different from @deanlee's livestream.

Should be fine if it's a small change. Maybe <20 lines?

Seems to be working well on my desk with a C3!

Thanks @deanlee! I'll do some more testing in a car with a real use and lyk if I see any issues. Pausing the way PlotJuggler handles it with live streaming would be nice 😄

authors: adeebshihadeh deanlee pd0wm sshane


text:
Suggestion - Support List values as well as IEnumerable values

It would be helpful to allow List as well as IEnumerable as the type for Value args. This is because in almost every case we must convert the IEnumerable to a List (or array) in order to process it full (like validate how many there are etc).
IEnumerable is fine but unwieldy and it's unlikely the sequence would ever need to be an IEnumerable, it will always be a small set of values.
Thx

some code pointers maybe? 😄

Enumerable<T> can be converted  to List<T>   using Linq.

source: gharchive/issue

authors: Korporal moh-hassan noamyogev84

repo: commandlineparser/commandline

license: MIT

license_type: permissive

license_source: github-api


text:
Add GHC 9.2.5 global hints

Based on ghc-pkg list on a Windows system, plus terminfo-0.4.1.5 and unix-2.7.2.2.
Also compared with https://downloads.haskell.org/~ghc/9.2.5/docs/html/users_guide/9.2.5-notes.html#included-libraries. However, the GHC User's Guide does not refer to ghc-bignum-1.2 which is listed by ghc-pkg list. I assume the latter is accurate. Also, this https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history - which only covers GHC 9.2.x up to GHC 9.2.2 - indicates that ghc-bignum is a boot library of the GHC 9.2.x series.

I cross-checked and it looks good to me, thanks

@juhp, many thanks!

source: gharchive/pull-request

authors: juhp mpilgrem

repo: commercialhaskell/stackage-content


text:
Any way to set an arbitrary view begin and end date?

I want to set the  chart display to start one week back from now and finish one month ahead from now - and then zoom and scroll will show me any outside events - but the JS takes the range from the overall event dates.
Any ideas?

The starting zoom level is set by the minDt and maxDt variables, which are declared on line 11 & 12 of the timeline-chart.js file. Simply change these two lines:
let minDt = d3.min(allElements, this.getPointMinDt);
let maxDt = d3.max(allElements, this.getPointMaxDt);

to the following:
let minDt = new Date().setDate(new Date().getDate() - 7);
let maxDt = new Date().setDate(new Date().getDate() + 31);

Hope this helps,

I believe @maxnelson is correct.
Just FYI: This library is a bit old and needs a good rewrite using newer d3 library so I'm welcoming PRs on that direction

I'll close the issue for now. Please reopen if necessary.

Just need to say a massive thanks to Max Nelson ! Perfect - I'd tried setting that but got it wrong.
This is the best timeline of the several similar ones around so great to keep it going.
(There's some oddities with custom class as it seems incomplete but not hard to adapt)

authors: cretace grillorafael maxnelson

license: mit

license_source: bigquery


text:
[Bug]: Regular expression exposed when uploading files

Summary
Regular expression exposed when uploading files
Steps to reproduce

Open Wikipedia Commons app (https://play.google.com/store/apps/details?id=fr.free.nrw.commons)
Upload` a file to Wikipedia Commons

Expected behaviour

No regular expression exposed.

Actual behaviour
Regular expression exposed in information box.

Device name
ASUS Zenfone 6
Android version
Android 10
Commons app version
3.1.1
Device logs
No response
Screen-shots
No response
Would you like to work on the issue?
No response

@koala0090 can you please tell me the language in which you are using the app , because this is a language-specific issue and doesn't happens in all other languages

@Rishavgupta12345 Traditional Chinese

@Nikerabbit

Please ping @translatewiki in the future to get attention from our support team.
Looks like one translator has used $ in place of %. I have filed https://phabricator.wikimedia.org/T304043 to prevent it from happening again.

We've added a validator to ensure that these variables cannot be skipped in translations.

Thanks for fixing this. :)

repo: commons-app/apps-android-commons


text:
[Bug]: Don't show nominate for deletion / edit category and edit depicts for logged out users

Summary
It seems like we're showing the "Nominate for deletion" button and edit category and edit depicts buttons to the logged out users.
Steps to reproduce

Open the app using the "Skip login" option
Open an image from the "Explore" screen
Observe the "Nominate for deletion" button, edit category and edit depicts buttons shown for the image.

Expected behaviour
It should not be possible for users who are not logged in to "Nominate for deletion" button, edit category and edit depicts buttons shown for the image.
Actual behaviour
We show the option to "Nominate for deletion" button, edit category and edit depcits buttons but it won't work. Nominate for deletion results in an app crash. Trying to edit the image results in a indefinite spinning loader that then goes away.
Device name
OnePlus Nord
Android version
12
Commons app version
5.0.1
Device logs
Crash log when "Nominate for deletion" is hit

Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java:1082)
at android.app.ContextImpl.startActivity(ContextImpl.java:1058)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:421)
at fr.free.nrw.commons.auth.LoginActivity.startYourself(LoginActivity.java:418)
at fr.free.nrw.commons.auth.SessionManager.forceLogin(SessionManager.java:120)
at fr.free.nrw.commons.delete.ReasonBuilder.checkAccount(ReasonBuilder.java:96)
at fr.free.nrw.commons.delete.ReasonBuilder.fetchArticleNumber(ReasonBuilder.java:66)
at fr.free.nrw.commons.delete.ReasonBuilder.getReason(ReasonBuilder.java:51)
at fr.free.nrw.commons.media.MediaDetailFragment.onDeleteClickeddialogtext(MediaDetailFragment.java:1242)
at fr.free.nrw.commons.media.MediaDetailFragment.lambda$onDeleteButtonClicked$22(MediaDetailFragment.java:1187)
at fr.free.nrw.commons.media.MediaDetailFragment.$r8$lambda$xhyCexNuF3zrc2K-l2yuaiumOfQ(MediaDetailFragment.java:0)
at fr.free.nrw.commons.media.MediaDetailFragment$$ExternalSyntheticLambda25.run(R8$$SyntheticClass:0)
at fr.free.nrw.commons.utils.DialogUtil.createAndShowDialogSafely$lambda$6$lambda$3$lambda$2(DialogUtil.kt:179)
at fr.free.nrw.commons.utils.DialogUtil.$r8$lambda$ECLVYheIYrcn9r0orhEVOej1iq8(DialogUtil.kt:0)
at fr.free.nrw.commons.utils.DialogUtil$$ExternalSyntheticLambda0.onClick(R8$$SyntheticClass:0)
at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:191)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8212)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)

Screen-shots
No response
Would you like to work on the issue?
None

Hey there @sivaraam wanted to take this on as my first contribution. Can I take this up?

@djbloop It is yours, thanks!

Hi @nicolas-raoul , I wanted to clarify the expected behaviour of the delete button. Should the button be disabled if the user skips the login, or should it disappear entirely? I wanted to ask as I've disabled the function but I wanted to get some clarification.

I'm also unaware of the wording of "edit the image" as I'm unable to reproduce it. I can see that the metadata is editable but not the image itself.

Should the button be disabled if the user skips the login, or should it disappear entirely?

We're accustomed to hiding the buttons that are not relevant to the logged out user in other places. So, doing the same here would be ideal.

I'm also unaware of the wording of "edit the image" as I'm unable to reproduce it. I can see that the metadata is editable but not the image itself.

Sorry about that. There isn't any edit image button. The description was just trying to refer to the edit category and edit depcits buttons shown for the image. I've updated the description accordingly to avoid confusion.

I'm wondering how I'm supposed to run a unit test. But I can't find any documentation on it in "commons-app-documentation".

I'm wondering how I'm supposed to run a unit test. But I can't find any documentation on it in "commons-app-documentation".

Figured it out.

authors: djbloop nicolas-raoul sivaraam


text:
HTTPS support

Hi, and thank you for this nice project!
I was wondering if support for calling the API over HTTPS is planned in the future?
Currently, calling http://api.commonstandardsproject.com/api/ from an HTTPS website results in an error:
Mixed Content: The page at 'https://mywebsite.com' was loaded over HTTPS,
but requested an insecure XMLHttpRequest endpoint
'http://api.commonstandardsproject.com/api/v1/standard_sets/...'.
This request has been blocked; the content must be served over HTTPS.

I believe this is now fixed!

authors: anisabboud scottmessinger

repo: commonstandardsproject/api


text:
deCONZ install process say - checksum mismatch / unable to create CT

Please verify that you have read and understood the guidelines.
yes
A clear and concise description of the issue.
Two Attempts and both times
checksum mismatch
What settings are you currently utilizing?

[ ] Default Settings
[X] Advanced Settings

Which Linux distribution are you employing?
Debian 12
If relevant, including screenshots or a code block can be helpful in clarifying the issue.
Using Advanced Settings
Using Distribution: debian
Using debian Version: 12
Using Container Type: 0
Using Root Password: ********
Container ID: 905197
Using Hostname: deconz
Using Disk Size: 4
Allocated Cores: 2
Allocated RAM: 1024
Using Bridge: vmbr0
Using IP Address: dhcp
Using Gateway IP Address: Default
Using APT-Cacher IP Address: Default
Disable IPv6: no
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server IP Address: Host
Using Vlan: Default
Enable Root SSH Access: yes
Enable Verbose Mode: yes
Creating a deCONZ LXC using the above advanced settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 \checksum mismatch: got '6380325b78369288c00a830092111adb277bb41aa8a25a184193aa73a898d0fbee8752e1829c85d9279a4195d056f5b85835e6e2478299de7bf1416eb3f408dd' != expect '39f6d06e082d6a418438483da4f76092ebd0370a91bad30b82ab6d0f442234d63fe27a15569895e34d6d1e5ca50319f62637f7fb96b98dbde4f6103cf05bff6d'
 ✓ Downloaded LXC Template
 \unable to create CT 905197 - command 'mkfs.ext4 -O mmp -E 'root_owner=0:0' /dev/pve/vm-905197-disk-0' failed: exit code 1
 |bash: line 182: exit: A problem occured while trying to create container.: numeric argument required

Please provide detailed steps to reproduce the issue.
in proxmoxve  shell
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/deconz.sh)"

checksum error - low speed network connection!
changed the connection to the Internet but still
default setting
Using Default Settings
Using Distribution: debian
Using debian Version: 12
Using Container Type: 0
Using Root Password: Automatic Login
Using Container ID: 101
Using Hostname: deconz
Using Disk Size: 4GB
Allocated Cores 2
Allocated Ram 1024
Using Bridge: vmbr0
Using Static IP Address: dhcp
Using Gateway IP Address: Default
Using Apt-Cacher IP Address: Default
Disable IPv6: No
Using Interface MTU Size: Default
Using DNS Search Domain: Host
Using DNS Server Address: Host
Using MAC Address: Default
Using VLAN Tag: Default
Enable Root SSH Access: No
Enable Verbose Mode: No
Creating a deCONZ LXC using the above default settings
 ✓ Using local for Template Storage.
 ✓ Using local-lvm for Container Storage.
 ✓ Updated LXC Template List
 /unable to create CT 101 - command 'mkfs.ext4 -O mmp -E 'root_owner=0:0' /dev/pve/vm-101-disk-0' failed: exit code 1
bash: line 182: exit: A problem occured while trying to create container.: numeric argument required```

Work fine for me:

The error what you post is an proxmox error. it cant be create an new LXC.
There are several possibilities where the problem is:

no sudo rights
hard disk full
the Debian template file is broken (pveam update)
your system is too old? Which Proxmox version?
e2fsprogs is to old: apt update && apt install --only-upgrade e2fsprogs

repo: community-scripts/ProxmoxVE


text:
direct streaming via HTTP headers

it appears android will let you stream audio by specifying headers so it would be much faster using this way

fixed with 1d9963e486e2ef15275f0ae85483594d23817347

fixed with 1d9963e486e2ef15275f0ae85483594d23817347

repo: compactd/compactd


text:
IDVA6-1986: Updated PATCH endpoint to enable API Key requests to remove memberships for ceased ACSPs.

Short description outlining key changes/additions
Updated PATCH endpoint to enable API Key requests to remove memberships for ceased ACSPs.
JIRA Ticket Number
IDVA6-1986
Type of change

[ ] Bug fix
[x] New feature
[x] Breaking change
[ ] Infrastructure change

Pull request checklist

[x] I have added unit tests for new code that I have added
[x] I have added/updated functional tests where appropriate
[x] The code follows our coding standards

An exhaustive list of peer review checks can be read here

CI: No security warnings found

CI: No security warnings found

authors: ch-code-analysis krishna-patel-ch

repo: companieshouse/acsp-manage-users-api


text:
enforce utf-8 encoding

JIRA link
https://companieshouse.atlassian.net/browse/UAR-1594
Change description
Work checklist

[ ] Tests added where applicable

Merge instructions
We are committed to keeping commit history clean, consistent and linear. To achieve this, this commit should be structured as follows:
<type>[optional scope]: <description>

and contain the following structural elements:

fix: a commit that patches a bug in your codebase (this correlates with PATCH in semantic versioning),
feat: a commit that introduces a new feature to the codebase (this correlates with MINOR in semantic versioning),
BREAKING CHANGE: a commit that has a footer BREAKING CHANGE: introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type,
types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
footers other than BREAKING CHANGE: <description> may be provided.

CI: No security warnings found

authors: ch-code-analysis foman-ch

repo: companieshouse/overseas-entities-api


text:
feat(driver,iour): add large sqe & cqe support

Use squeue::Entry128 and cqueue::Entry32 behind the feature gate. It could be enabled on Ubuntu 22.04 but not Ubuntu 20.04
Closes #191

Do we need to split sqe128 and cqe32?

repo: compio-rs/compio


text:
What can be the key in big map?

I can not find equivalent  of " map<[address,nat],offer>" (ligo) in archetype.
Is is possible to create such key definitions? At the end Archietype would just hash it, right?

yes it is possible to have a tuple as key:
variable mymap : map<address * nat, offer> = []

then:
const o = mymap[(caller, 0)]

Usually we use asset instead of map : it is the fusion of map and record.

ok, thx. I am closing that topic :)

repo: completium/archetype-lang


text:
How do I know when the modal bottom sheet is dismissed?

Not an actual issue, but in general Compose question
So I have created custom bottom sheet which uses composable-core's ModalBttomSheet and I have added onDismiss callback to it which gets called from LaunchedEffect when currentDetent is SheetState.Hidden
The problem is that onDismiss callback is getting called even before I show the bottom sheet, obviously it will because it's in LaunchedEffect and currentDetent 's first value is SheetState.Hidden
So I just wanted to ask if I want some callback like onDimiss or onCollapse, how do I achieve something like that?
Minimum reproducible example
@Composable
fun MyCustomBottomSheet(
    sheetState: ModalBottomSheetState,
    onDismiss: () -> Unit,
    content: @Composable () -> Unit
) {
    LaunchedEffect(sheetState.currentDetent) {
        if (sheetState.currentDetent == SheetDetent.Hidden) {
            onDismiss()
        }
    }

    ModalBottomSheet(state = sheetState) {
        Sheet {
            DragIndication()
            content()
        }
    }
}

@Composable
fun MyCustomBottomSheetUsage() {
    val sheetState = rememberModalBottomSheetState(initialDetent = SheetDetent.Hidden)
    Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
        Button(onClick = { sheetState.currentDetent = SheetDetent.FullyExpanded }) {
            Text(text = "Expand")
        }
    }

    MyCustomBottomSheet(
        sheetState = sheetState,
        onDismiss = {
            // This callback is getting called even if I just run the code and don't expand the bottom sheet at all
        }
    ) {
        Box(
            modifier = Modifier
                .height(500.dp),
            contentAlignment = Alignment.Center
        ) {
            Button(onClick = { sheetState.currentDetent = SheetDetent.Hidden }) {
                Text(text = "Dismiss")
            }
        }
    }
}

You are almost there. The state has a isIdle property which tells you if the sheet has stopped moving.
Try this:
    LaunchedEffect(state.isIdle) {
        if (state.targetDetent == SheetDetent.Hidden) {
               onDismiss()
        }
    }

No @alexstyl it didn't work, still facing same issue

my bad @mddanishansari. I misunderstood what you were trying to do.
There is no built-in way to tell if the sheet has 'just' been dismissed or shown.
You would need to keep track of the last idled state manually. When the state changes to hidden and the previous was not hidden, then call your onDismiss() function.

@alexstyl Here's some dirty hack but this is what worked for me
var isInitialRun by remember { mutableStateOf(true) }
LaunchedEffect(sheetState.currentDetent) {
	if (sheetState.isIdle && sheetState.currentDetent == SheetDetent.Hidden) {
		if (isInitialRun) {
			isInitialRun = false
		} else {
			onDismiss()
		}
	}
}

Use-case is that in our app there is certain bottom sheet which has to be shown only once per session, so I need to toggle some flag once the bottom sheet is shown for the first time and then hidden.
I can toggle that flag when bottom sheet is shown but the bottom sheet appearance itself depends on that flag, so if I do that bottom sheet will appear and immediately disappear. I hope my explanation makes sense.

You can now use ModalBottomSheet(onDismiss = {} callback for this.

Thank you, I can finally get rid of the workaround from my project. Will the official documentation be updated mentioned onDismiss feature?

The docs now mention the callback

authors: alexstyl mddanishansari

repo: composablehorizons/compose-unstyled


text:
Update vulcan to 1.6.0

Updates com.github.fd4s:vulcan from 1.2.0 to 1.6.0.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.fd4s", artifactId = "vulcan" } ]

labels: library-update, semver-minor

Superseded by #175.


text:
Update cats-effect to 3.2.8

Updates org.typelevel:cats-effect from 3.2.3 to 3.2.8.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-effect" } ]

labels: library-update, semver-patch

Superseded by #218.


text:
Scrolling is not working

Hi team,
Thanks for a wonderful project.
Everything is working except scrolling. It would be great if someone provide an example with scroll working.
I believe the problem related to differentiating onLongPress and scroll?
Thanks,
Mohammed

What do you mean "scrolling is not working"? Can you provide an example?

What do you mean "scrolling is not working"? Can you provide an example?

Ik think he means that inside a  the list is not scrollable. So if you have a long list of items you can't reach the bottom. I have the same issue, looking for a solution

I looked into it a bit and found a possible solution. The issue is the PanGestureHandler. If it's enabled={true} the parent ScrollView is not working. So maybe if we make it enabled true only before we start draggin or something end false again at the end of dragging. I tried this a bit but I could not get it 100% stable.

So this is issue is with nested vertical scrollable elements? I.e. a DraggableFlatlist inside a parent scrollview?

So this is issue is with nested vertical scrollable elements? I.e. a DraggableFlatlist inside a parent scrollview?

Exactly. When I remove the ScrollView the vertical scroll from the DraggableFlatlist kicks in, but I would like to use the scroll from the parent ScrollView which seems to be blocked by the PanGestureHandler

closing in favor of https://github.com/computerjazz/react-native-draggable-flatlist/issues/184 as it has the issue template filled out


text:
Optional username/channel treated differently on different OSes

We attempt to use Github Actions + CPT in Conan-Center-Index fork. Most of recipes there use new convention with optional username and channel for packages, and it seems CPT is not quite ready for this:

if we specify CONAN_REFERENCE as simply lib/ver, CPT on Linux fails with this:

Traceback (most recent call last):
  File "/home/iivanov/git/conan-center-index/build.py", line 6, in <module>
    builder = ConanMultiPackager()
  File "/home/iivanov/.local/lib/python3.8/site-packages/cpt/packager.py", line 211, in __init__
    self.reference = ConanFileReference(name, version, self.username, self.channel)
  File "/home/iivanov/.local/lib/python3.8/site-packages/conans/model/ref.py", line 164, in __new__
    raise InvalidNameException("Specify the 'user' and the 'channel' or neither of them")
conans.errors.InvalidNameException: Specify the 'user' and the 'channel' or neither of them

This seems to happen due to channel being set to testing automatically in CPT innards.

if we change it to lib/ver@/, CPT works fine on Linux, but will fail on Mac

Traceback (most recent call last):
  File "../../../build.py", line 8, in <module>
    builder.run()
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/cpt/packager.py", line 541, in run
    self.run_builds(base_profile_name=base_profile_name)
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/cpt/packager.py", line 633, in run_builds
    r.run()
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/cpt/runner.py", line 121, in run
    self._results = self._conan_api.create(self._conanfile, name=name, version=version,
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/conans/client/conan_api.py", line 81, in wrapper
    return f(api, *args, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/conans/client/conan_api.py", line 341, in create
    new_ref = cmd_export(self.app, conanfile_path, name, version, user, channel, keep_source,
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/conans/client/cmd/export.py", line 80, in cmd_export
    ref = ConanFileReference(conanfile.name, conanfile.version, user, channel)
  File "/Users/runner/hostedtoolcache/Python/3.8.1/x64/lib/python3.8/site-packages/conans/model/ref.py", line 164, in __new__
    raise InvalidNameException("Specify the 'user' and the 'channel' or neither of them")
conans.errors.InvalidNameException: Specify the 'user' and the 'channel' or neither of them

if, however, we specify envvars CONAN_USERNAME=_ and CONAN_CHANNEL=_, then Linux fails, yet Mac works

Traceback (most recent call last):
  File "/opt/pyenv/versions/3.6.7/bin/run_create_in_docker", line 11, in <module>
    load_entry_point('conan-package-tools==0.31.1', 'console_scripts', 'run_create_in_docker')()
  File "/opt/pyenv/versions/3.6.7/lib/python3.6/site-packages/cpt/run_in_docker.py", line 53, in run
    runner.run()
  File "/opt/pyenv/versions/3.6.7/lib/python3.6/site-packages/cpt/runner.py", line 127, in run
    update=self._update_dependencies)
  File "/opt/pyenv/versions/3.6.7/lib/python3.6/site-packages/conans/client/conan_api.py", line 81, in wrapper
    return f(api, *args, **kwargs)
  File "/opt/pyenv/versions/3.6.7/lib/python3.6/site-packages/conans/client/conan_api.py", line 343, in create
    ignore_dirty=ignore_dirty)
  File "/opt/pyenv/versions/3.6.7/lib/python3.6/site-packages/conans/client/cmd/export.py", line 80, in cmd_export
    ref = ConanFileReference(conanfile.name, conanfile.version, user, channel)
  File "/opt/pyenv/versions/3.6.7/lib/python3.6/site-packages/conans/model/ref.py", line 164, in __new__
    raise InvalidNameException("Specify the 'user' and the 'channel' or neither of them")
conans.errors.InvalidNameException: Specify the 'user' and the 'channel' or neither of them
Traceback (most recent call last):
  File "/home/iivanov/git/conan-center-index/build.py", line 8, in <module>
    builder.run()
  File "/home/iivanov/.local/lib/python3.8/site-packages/cpt/packager.py", line 547, in run
    self.run_builds(base_profile_name=base_profile_name)
  File "/home/iivanov/.local/lib/python3.8/site-packages/cpt/packager.py", line 673, in run_builds
    r.run(pull_image=not pulled_docker_images[docker_image],
  File "/home/iivanov/.local/lib/python3.8/site-packages/cpt/runner.py", line 304, in run
    raise Exception("Error building: %s" % command)

The current working solution for us is to specify CONAN_REFERENCE for Linux builds and CONAN_CHANNEL+_USERNAME for Mac builds, but this is rather cumbersome.
Environment Details

Conan Package Tools Version: 0.31.1
Operating System: Linux / Mac
Conan version: conan 1.22.2

On a side note, it also seems that when no CONAN_STABLE_CHANNEL is provided, CPT will substitute it for stable. I am unsure if this needs any correction, since omitting username and channel have not yet become a widespread practice.

Also, with CONAN_STABLE_CHANNEL=_ one will also get an error saying
 >> Branch detected
   >> trassir-ci
 >> Info
   >> Redefined channel by CI branch matching with 'trassir-ci', setting CONAN_CHANNEL to '_'
Traceback (most recent call last):
...
conans.errors.InvalidNameException: Specify the 'user' and the 'channel' or neither of them

So I did some more digging and turns out the problem is not Linux-specific, but Docker-specific. The issue was CONAN_USERNAME being discarded instead of forwarding to Docker. I made a PR fixing this.

Fixed by #522
Should be available on CPT 0.35.1

authors: Artalus uilianries

repo: conan-io/conan-package-tools


text:
nothing

Signed-off-by: Uilian Ries uilianries@gmail.com

WHAT?

@SSE4 Just trying to trigger Jenkins, but something is not right. It says I don't have permission.

repo: conan-io/meta-conan


text:
Research: Code highlighting via template string literals

The component API uses code snippets passed as string in some props. Since there's no highlighting for these snippets, it's easy to forget closing parens/closing tags/write otherwise syntactically incorrect code.
Template string literals are one solution for this problem. With that implemented, we could do something like
const jsx = ??? // this is the tag that triggers the syntax highlighting

const Components = {
  '/src/ui-lib': {
    Image: {
      // ...
      variants: {
        // ...
        code: jsx`<Image src="..." size='large' />`
    }
  }
}

export default Components

The closest I found was https://github.com/mjbvz/vscode-lit-html plus some similar options that were less well documented. JSX/JS code highlighting in template literals doesn't seem to be a thing. Since lit-html and co. are implemented as extensions, and VSCode can do code highlighting for js/jsx out of the box, I assume there wasn't really a use case for syntax highlighting inside the already syntax highlighted code.

repo: concrete-utopia/utopia


text:
Product variations hard-coded to maximum of 50

I can understand the need for a limit on the maximum number of product variations (e.g. exceeding maximum number of inputs when posting the product page), but we need to support more than the hard-coded limit of 50. Could this be changed to a config setting instead, with a default of 50, so we can override if required?

I'm quite open to this being configurable, it makes a lot of sense.
I think it held off doing this after adding the ability to remove options from being part of variations, whilst still being able to adjust the price. My thoughts were that if you had that number of variations that there's a strong likelihood that products should be managed a differently and split up... but everyone has different use cases!
I'm naturally open to a pull request on this, or I can add it to my todo list (which I'll be looking at soon-ish)

This has been already implemented in #680, isn't it?

Yeah - looks like it. Thanks to everyone who got that one written, tested and merged 👍

authors: Mesuva markbennett1973 mlocati


text:
Error when assing file to set v9 and php 8

Affected Version of Concrete CMS
9.x
Description
When working on the 2 different sites v9 and switching to php 8.x when assigning a transferred file to a set in the file manager an error pops up: "/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Entity/File/File.php:371 array_pop(): Argument #1 ($array) must be passed by reference, value given (2)" In php 7.4.x all work correct. Testet in PHP 8.0.13 and 8.0.16.
How to reproduce
In C5 9.0.2 (and php 8.0.13-16) try to add file to file manager and try assing file to new set.
Possible Solution
No response
Additional Context
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Entity/File/File.php(371): Whoops\Exception\ErrorException->null
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Entity/File/File.php(371): null->array_map
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Entity/File/File.php(382): Concrete\Core\Entity\File\File->getFileSetIDs
/home/srv35013/domains/serwername/public_html/foldername/concrete/controllers/dialog/file/bulk/sets.php(114): Concrete\Core\Entity\File\File->getFileSets
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Controller/AbstractController.php(318): Concrete\Controller\Dialog\File\Bulk\Sets->submit
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Controller/AbstractController.php(318): null->call_user_func_array
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Routing/ControllerRouteAction.php(64): Concrete\Core\Controller\AbstractController->runAction
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/RouteDispatcher.php(37): Concrete\Core\Routing\ControllerRouteAction->execute
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\RouteDispatcher->dispatch
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\DispatcherDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/DefaultDispatcher.php(127): Concrete\Core\Http\Middleware\MiddlewareStack->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/DefaultDispatcher.php(60): Concrete\Core\Http\DefaultDispatcher->handleDispatch
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\DefaultDispatcher->dispatch
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/FrameOptionsMiddleware.php(39): Concrete\Core\Http\Middleware\DispatcherDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\FrameOptionsMiddleware->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/StrictTransportSecurityMiddleware.php(36): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\StrictTransportSecurityMiddleware->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/ContentSecurityPolicyMiddleware.php(36): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ContentSecurityPolicyMiddleware->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/CookieMiddleware.php(35): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\CookieMiddleware->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/ApplicationMiddleware.php(29): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ApplicationMiddleware->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Http/DefaultServer.php(85): Concrete\Core\Http\Middleware\MiddlewareStack->process
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Foundation/Runtime/Run/DefaultRunner.php(125): Concrete\Core\Http\DefaultServer->handleRequest
/home/srv35013/domains/serwername/public_html/foldername/concrete/src/Foundation/Runtime/DefaultRuntime.php(102): Concrete\Core\Foundation\Runtime\Run\DefaultRunner->run
/home/srv35013/domains/serwername/public_html/foldername/concrete/dispatcher.php(45): Concrete\Core\Foundation\Runtime\DefaultRuntime->run
/home/srv35013/domains/serwername/public_html/foldername/index.php(2): null->require

This has been fixed in develop and will be in 9.1.0


text:
Avoid having an empty value as page name in page selector attribute

This PR adds some improvements to the Page class :

Use "(No Title)" instead of an empty value for the page name in the getJSONObject() method, this avoids having an empty page name in the page selector
Avoid core aliases
Avoid core facades

I had to use use Collection; instead of use Concrete\Core\Page\Collection\Collection; to fix the tests...
I don't understand why the tests don't pass with the fully qualified classname, if anyone have an idea ?

This is too much in one pull request. Can you break this out into just pull requests that address the specifics here? It'd be trivial to approve just the change described in this request, and leave some of the code cleanup issues to be separate.

Thanks!

authors: aembler marvinde


text:
[ci skip] adding user @xiki-tempula

Hi! This is the friendly automated conda-forge-webservice.
I've added user @xiki-tempula as instructed in #19.
Merge this PR to add the user. Please do not rerender this PR or change it in any way. It has [ci skip] in the commit message to avoid pushing a new build and so the build configuration in the feedstock should not be changed.
Please contact conda-forge/core to have this PR merged, if the maintainer is unresponsive.

@xiki-tempula can you please confirm via comment that you are willing to act as a maintainer/code owner for the alchemlyb feedstock?

I'm willing to be a maintainer.

authors: conda-forge-admin orbeckst xiki-tempula

repo: conda-forge/alchemlyb-feedstock


text:
@conda-forge-admin, please add user @pinin4fjords

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
N/A
Installed packages
N/A

Environment info
N/A

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added user @pinin4fjords in conda-forge/cheetah3-feedstock#14.