Command Set not added

Category

[X] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Expected or Desired Behavior
Have created a command set extension that works fine on our dev tenant but not on another non-dev tenant. It targets a document libraries (RegistrationId 101). What could be wrong? Could it be that the spfx extension functionality hasn't rolled out to the non-dev tenant yet?
Observed Behavior
Developer tenant:
Javascript file loaded and onInit() function gets triggered. Command set working. Following messages displayed in console:

Initialized ClientSideExtensionHelper
Defined clientSidePlaceholders: DialogContainer,Top,Bottom
Client-side host application loaded on SPO app
Added 1 custom actions to RibbonList
Added 1 custom actions to RibbonDoc
Finished loading extensions for all custom actions

Other non-dev tenant:
Javascript file loaded but onInit() function doesn't get triggered. No 'Added...' message in console. No error messages displayed about the command set. The command set isn't available. Following messages displayed in console:

Initialized ClientSideExtensionHelper
Defined clientSidePlaceholders: DialogContainer,Top,Bottom
Client-side host application loaded on SPO app

I've installed the command set on another non-dev tenant where it's working as expected.
On the non-dev tenant where it isn't working the example command set from Build your first ListView Command Set extension isn't working either. I can see that the custom action is returned from the _api/web/GetList(@a1)/CustomActionElements request and that the javascript file is loaded, but the command set buttons never appear in the UI.
Any ideas on what the problem might be? Is it possible that the GA release of extensions isn't available in the tenant or that it's blocked somehow? Is there a way to check this without adding an actual app/extension?

If no one has an answer to the issue is there a prefered way to get support for this (maybe this is not the Place)?

After Reading Another issue it is clear that this is because of undocumented limitations for command sets in modern lists/libraries in a Classic site that has publishing (https://github.com/SharePoint/sp-dev-docs/issues/945). Tested this and it works if you create a normal team-site but not if you try and use it on a publishing site. This issue can be closed and the other thread used instead.


Filter directories outside SimpleCov.root that have it as a prefix

Given project directory /foo/app and BUNDLE_PATH /foo/app_cache,
ensure the latter is filtered out correctly by the default root filter,
since it's outside of SimpleCov.root.
Otherwise you'll see all those gem files in your coverage report, with
nonsensical paths like ._cache/ruby/2.4.0/gems..., unless you add a
nonsensical /^_cache/ filter
Also add some test coverage for the default filters

Paths are hard, I fixed essentially the same bug in bundler a while back 😂  ... https://github.com/bundler/bundler/pull/4715


Change the sorting order for CLs

Gerrit-monitor sometimes shows new CLs in the middle or at the end of my list of "incoming CLs requiring your attention." This isn't ideal for me because I have some CLs in that list that I don't expect will be cleared any time soon (the authors probably won't pursue these CLs further, but that's aside from the point). It would work better for me if gerrit-monitor sorted by last-modified timestamp (more-recently modified CLs are at the top, stale CLs are at the bottom), so I could work from top to bottom (and stop when I get to the stale CLs).
I should also mention I use several gerrit instances. I'm not sure if this kind of sorting is already being applied within each gerrit instance, but I would prefer for it to be applied across all instances (ex. I don't want fresh chromium CLs to be sorted below stale Android CLs).

I'll +1 the first part: I just noticed today for the first time that the order wasn't predictable. I had 2 new cr's: first I clicked the one in the first slot, and then immediately opened the window again and clicked the item in the second slot, but it was the same review.

Currently the CLs are grouped by host, and for each host, the CLs are sorted in the order returned by the query with the host. I agreed that sorting them should probably be a good idea. I'll see what I can do about that. Sorting by "last modification date" may not work for @loadedsith use case as the order may change between two access to the popup (if someone just commented between the two accesses) but it looks like what @nfischer is asking. In fact, I think this is already the order used by the server when they return the list of CLs.
I'm wondering whether the "attention set" support added with #30 could help with initial request by @nfischer (as you can remove yourself from the "attention set" for CLs that you think are stale). Then we can sort the CLs by (host, id) tuple which will be stable between all access to the popup.
Would "attention set" + stable order work for both of your requests?

FWIW I’m at a new company and no longer use this extension or Gerrit at all. Have at it. I’m gonna unsub too, have a good one!

Ah, I didn't realize the attention set support shipped! I just turned it on and it's a big improvement for my case.
I think sorting by last modification date would still help me work through CLs in a reasonable order, but it's not high priority if it's difficult to implement.


feat(connector): [Square] Use connector_request_reference_id as reference to connector.

Type of Change

[ ] Bugfix
[x] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description
Using connector_request_reference_id as reference to the connector. This PR closes #2318.
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

square.rs
transformers.rs
Motivation and Context

How did you test it?

Checklist

[ ] I formatted the code cargo +nightly fmt --all
[ ] I addressed lints thrown by cargo clippy
[ ] I reviewed the submitted code
[ ] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

Hi @Ln11211
Please update the branch to fix failing spell check and run cargo +nightly fmt to fix failing formatting check

@srujanchikke I had merge conflicts and while trying to resolve them, I accidently had to reset my branch and close the PR, I'm opening a new PR.


⚠ Bofrost.lu has degraded performance

In d6d27a4, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1013 ms

Resolved: Bofrost.lu performance has improved in edcd3d1 after 27 minutes.


Private scene component

hi
I couldn't handle onEnter with #3283 solution
I want to create PrivateSeen component if the user didn't authorize, it redirects them to login scene
can you give me an example, please?

Many solutions to this have been shown in this repository for auth protecting scenes. One example: #1668

Thank you, @LeviWilliams


Replace Black/White list with Allow/Block list

Background
Inclusive language is nice
Changes

Search and replace whitelist/ blacklist for allowlist/ blocklists

Testing

This should contain no logical changes, Ran unit tests and all still pass

I dont think anything would have changed with this that would impact how the rules engine interacts with the rules but PLEASE double check me

Testing this in internal repo first to ensure changes do not cause unexpected isses


The file explorer didn't recognize the right filetype

Newsboat version (copy from newsboat -v): b59ef97d
The file explorer didn't recognize the right filetype, regular file and directory is working, but nothing else.

Some reproduction steps would've helped; I only understood what the issue was about once I read the code in #185.
Anyway, I came up with these while checking #185:

make sure you have a directory with at least one of each: a regular file, a directory, a symlink;
make sure you have at least one article in Newsboat;
open an article and press s to save it;
in filebrowser dialog that opens, note the leftmost column: it starts with - for regular files, and with d for everything else, including symlinks.

The expected behaviour is that for symlinks, the leftmost column starts with l.


Initial LISAv3 via Pytest review

I created the branch pytest/main and enabled branch protections on it so all code goes through review. This PR supersedes #1044 which was an initial demo. There are TODOs throughout, which I'd like to work with @lpereira to prioritize and work-on to finish this proof-of-concept, but I'd like to get what does exist reviewed before it goes any further. I have attempted to document design decisions and alternatives considered in pytest/README.md, and have setup some basic CI with a self-test.

Dang it, wrong target branch.


Enabled builds on travis-ci and coverage reports on coveralls

Changes Unknown when pulling 1bc420608b9653a5771b5b3a4192d15f575f4c16 on feature/travis-ci into ** on master**.


Use GetConnectedDevice directly to get device proxy

Instead of using find_or_establish_case_session use the GetConnectedDevice API directly to get a device proxy for attribute reads. This has the advantage that it runs in a single node lock. With that we no longer will try to establish a case session multiple times though.

@agners what's the status of this PR, can it move forward ?

@agners what's the status of this PR, can it move forward ?

The Matter SDK allows to set attemptCount with FindOrEstablishSession. Ideally I would like to add that first. then we even have the retry mechanism in all cases where a session is required.

In the read this is fine as then we are already (pretty much) certain there should be a handle to the device.
For commissioning and node_setup its not as there we can run into race conditions with resolving (so then we need the retries).

Yeah I think that is a good point, in read there is really less incentives to do a retry. The read is currently mostly (only?) used by the attribute polling, which will poll again anyways. We also have the subscription alive for all devices. So the device will eventually get offline and then the node_setup would kick in, which still has the retry logic.
So I think this is good to go as is :+1:


clamp* inconsistency when min > max

Godot version
v4.0.alpha7.official [3e9ead05f]
System information
Kubuntu 21.10
Issue description
I noticed that clamp and clampi/clampf give different results if max > min:
print(clamp(-5, 10, 0)) # 0
print(clampi(-5, 10, 0)) # 10

The difference is because clamp doesn't use the CLAMP template:
https://github.com/godotengine/godot/blob/cbdc33bcf73090962e60c1cf5ee50a21b29e4bad/core/typedefs.h#L125-L128
https://github.com/godotengine/godot/blob/cbdc33bcf73090962e60c1cf5ee50a21b29e4bad/core/variant/variant_utility.cpp#L348-L386
I believe the inconsistency should be fixed and the behavior of the functions when min > map should be documented. Also the docs should mention the alternatives:
min(max(min_value, value), max_value) # max_value is more important
max(min_value, min(value, max_value)) # min_value is more important

What values should be returned here is a matter for discussion.
print(clamp(-5, 10, 0))
print(clamp( 5, 10, 0))
print(clamp(15, 10, 0))

Possible options:

Minimum value priority.
Maximum value priority.
Swap min and max if min > max.
Display warning/error.

Steps to reproduce
@tool
extends EditorScript

func test(v: int, a: int, b: int) -> void:
    printt(
        clamp(v, a, b),
        clampi(v, a, b),
        clampf(v, a, b),
        a if v < a else (b if v > b else v),
        mini(maxi(a, v), b),
        maxi(a, mini(v, b)),
    )

func _run() -> void:
    test(-5, 0, 10) # 0   0   0   0   0   0
    test( 5, 0, 10) # 5   5   5   5   5   5
    test(15, 0, 10) # 10  10  10  10  10  10

    print()

    test(-5, 10, 0) # 0   10  10  10  0   10
    test( 5, 10, 0) # 0   10  10  10  0   10
    test(15, 10, 0) # 0   0   0   0   0   10

Minimal reproduction project
No response

Example:
var hp = 100:
    set(value):
        hp = max(min_hp, min(value, max_hp))

var min_hp = 0:
    set(value):
        min_hp = max(0, value)
        hp = hp

var max_hp = 100:
    set(value):
        max_hp = max(0, value)
        hp = hp

Swap min and max if min > max.

I feel like this one is the most sensible solution. No matter how I look at it, getting 10 from a range between 0 and 10 if the value is 5 feels way too out there.

This will require additional runtime validation, which may have some performance impact. Whereas the warning (option 4) can only occur in debug builds.
For me, option 3 is non-obvious behaviour. In most cases, min < max. If this is not the case, then the user should be warned about this. So now I think option 4 is more correct.


Geo target list does not contain all targets

When downloading a GeographicPerformanceReport, it will contain geo targets that are not available in the list of geo targets provided through the API, although this is not stated anywhere in the docs.
For example, our report contains the State La Paz with location ID 645. This location is not available in that list of targets. This makes it impossible to map them to the actual targets in our database.
Please clarify if them missing is intended, and if so, how we would go forward in properly mapping these targets.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a20ceb04-fa33-bfb4-60f2-00093a8c3cc9
Version Independent ID: bf87d489-1bf2-a70e-c7d1-9b98aa02b6b1
Content: GeographicPerformanceReportColumn Value Set - Reporting - Bing Ads
Content Source: BingAds/bingads-13/reporting-service/geographicperformancereportcolumn.md
Service: bing-ads-reporting-service
GitHub Login: @eric-urban
Microsoft Alias: eur

@raalderink I confirmed this is currently by design, and we do not support a performance report that always map location IDs directly to the targeted locations. We'll update the documentation to clarify. The team is investigating whether/when to prioritize the request, so now is a great time to add your vote here. Thank you.


Type definitions are missing a lot of the documentation that exist in the JS files

This has lead to me digging through bucket.js just to figure out if the pathString parameter is for specifying the local file or the cloud storage file.
Environment details

OS: Ubuntu 20.04
Node.js version: 12.8.1
npm version: 6.10.2
@google-cloud/storage version: 5.7.2

Steps to reproduce

View the upload function in bucket.js at line 2967
View the upload function's type definition in bucket.d.ts at line 565

The upload function is just one example of documentation that isn't available in the type definitions. There will be cases where the documentation isn't as useful, but in this particular instance, I needed the documentation to make sure I was passing the correct data to the function.
Maybe it's worth having a script that can identify functions and their corresponding locations in the type definitions (possibly by using a marker in a comment) and can copy the documentation from the functions into the type definition files. As it stands, there's no way to view that documentation without diving into the npm package and browsing the source code (can get time-consuming very quickly)

Thank you for taking the time to report this issue. I believe we are working towards merging these to overcome our current documentation strategy that requires duplication.
@bcoe do you know if this is currently being worked on?

Thank you for taking the time to report this issue. I believe we are working towards merging these to overcome our current documentation strategy that requires duplication.
@bcoe do you know if this is currently being worked on?

It's been nearly 2 weeks without any activity. Is there any update on documentation plan?

@JamesYeoman this is something we're actively working on, but we don't have a timetable for when it will be resolved.

@JamesYeoman does this page have the information you were looking for? https://googleapis.dev/nodejs/storage/latest/Bucket.html#upload

I believe the page linked above has the information requested by this issue. Please reopen if this is not the case.


5/7 Publish

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/includes/virtualmachines-samples.md
:white_check_mark:Succeeded
View (azure-node-latest)

docs-ref-conceptual/node-samples-services-compute.md
:white_check_mark:Succeeded
View (azure-node-latest)

docs-ref-mapping/reference.yml
:white_check_mark:Succeeded

docs-ref-services/cognitive-services.md
:white_check_mark:Succeeded
View (azure-node-latest)

docs-ref-services/eventgrid.md
:white_check_mark:Succeeded
View (azure-node-latest)

docs-ref-services/mysql.md
:white_check_mark:Succeeded
View (azure-node-latest)

docs-ref-services/virtualmachines.md
:white_check_mark:Succeeded
View (azure-node-latest)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Is there a way to add to shadow at the end of circular progress component?

@

Like in green circle. If fill>100% I need to show shadow and gradient

Maybe this issue:
https://github.com/bgryszko/react-native-circular-progress/issues/41
and implementation will help you:
https://github.com/fdnhkj/react-native-conical-gradient

Closing this issue as inactive. Please open a new one if there is a new issue with the library.
BR,
Markus


API Limit Keeps getting hit

Version of the custom_component

2023.11.1
Configuration
I am running HA on a Raspberry Pi 5 using docker (as I have other integrations working on my pi).
I have 10 lights that I am controlling, they are:

8xH6008 (Govee Smart Light Bulbs, Color Changing Light Bulb, Work with Alexa and Google Assistant, 16 Million Colors RGBWW, WiFi & Bluetooth LED Light Bulbs, Music Sync, A19, 800 Lumens)
1xH605C (Govee Envisual TV LED Backlight T2)
1xH7021 (Govee Smart Outdoor String Lights H7021, RGBIC Warm White 96ft (2 Ropes of 48ft) LED Bulbs, WiFi Patio Lights Work with Alexa, Google, APP Control, IP65 Waterproof)

My set up of the lights looks like this:

Bedroom: 2xH6008s (both in a helper light group called Bedroom)
Kitchen: 3xH6008s (all in a helper light group called Kitchen)
Living Room: 2xH6008s (both in a helper light group called Living Room), 1xH605C (not in helper light group)
Entry Way: 1xH6008
Patio: 1xH7021

Here are the settings I have with it:

Describe the bug
The API limit of 10000 requests every 24 hours keeps being initialized. However this only happens when I assign my lights to an automation. If I leave my lights just as their own then I typically don't have issues besides the odd disconnect. I decided today would be a good day to test out an automation for turning on my lights if my home state changes from 0 to 1 person coming home. Then I hit the API limit.
What is the point of having Govee on HA if every time I try to do anything somewhat smart with HA it just hits the limit and I can no longer use it. It has less functionality currently than my Google Home and that thing is absolutely brutal.
Debug log

2024-11-21 16:30:07.707 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-21 16:30:07.707 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration govee which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-11-21 16:30:09.702 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7ffe9abfb6d0>, '/usr/local/lib/python3.12/site-packages/certifi/cacert.pem', None, None) inside the event loop by custom integration 'govee' at custom_components/govee/__init__.py, line 53: hub = await Govee.create( (offender: /usr/local/lib/python3.12/ssl.py, line 708: context.load_verify_locations(cafile, capath, cadata)), please create a bug report at https://github.com/LaggAt/hacs-govee/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component
    result = await _async_setup_component(hass, domain, config)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in _async_setup_component
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in <genexpr>
    create_eager_task(
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task
    return Task(coro, loop=loop, name=name, eager_start=True)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 783, in async_setup_locked
    await self.async_setup(hass, integration=integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 546, in async_setup
    await self.__async_setup_with_context(hass, integration)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/govee/__init__.py", line 53, in async_setup_entry
    hub = await Govee.create(

2024-11-21 16:30:10.029 WARNING (MainThread) [custom_components.govee] API is back online.
2024-11-21 16:30:10.030 WARNING (MainThread) [govee_api_laggat.api] Rate limit exceeded, check if other devices also utilize the govee API
2024-11-21 16:30:10.030 WARNING (MainThread) [custom_components.govee] Could not connect to Govee API: API: API-Error 429: {"message":"rate limited! the limit is 10000 requests every 24 hours. X-RateLimit-Reset in Http Response Header shows the reset time."}
2024-11-21 16:30:10.030 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry govee for govee
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/govee/__init__.py", line 67, in async_setup_entry
    await hub.rate_limit_delay()
          ^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Govee' object has no attribute 'rate_limit_delay'. Did you mean: 'rate_limit_reset'?
2024-11-21 16:30:13.281 ERROR (Thread-6) [pychromecast.socket_client] [Bedroom TV(<IP_ADDRESS>):8009] Failed to connect to service MDNSServiceInfo(name='Chromecast-51579980351f5acc98270a4eb03d1e61._googlecast._tcp.local.'), retrying in 5.0s

I am having this same issue. Any resolution?

I just started using HA and added this to it and got the same thing. How do I know what constitutes an API call? I have all govee light bulbs at this point and want to use them in automation.

I'm also having the same issue

For those wondering this is still an issue. Even with no automations I still will get the API limit hit.
Something that has helped reduce it a ton with automations is using Google Assistant SDK 'Send text command'. It's completely out

I ended up trying https://github.com/Beshelmek/govee_ble_lights and haven't had a single rate limit yet. Been about a week now. I don't have any more govee entities set to trigger automations, but I was getting rate limited even with no automations before I switched.

Same issue here

I ended up trying https://github.com/Beshelmek/govee_ble_lights and haven't had a single rate limit yet. Been about a week now. I don't have any more govee entities set to trigger automations, but I was getting rate limited even with no automations before I switched.

How did you end up installing this? There isn't an installation guide on it

I ended up trying https://github.com/Beshelmek/govee_ble_lights and haven't had a single rate limit yet. Been about a week now. I don't have any more govee entities set to trigger automations, but I was getting rate limited even with no automations before I switched.

How did you end up installing this? There isn't an installation guide on it

Okay, so you have to have HACS. You go into that, click the three dots in the top right and select "Custom repositories" and put in the URL for the github. It'll be available as an integration then.

I ended up trying https://github.com/Beshelmek/govee_ble_lights and haven't had a single rate limit yet. Been about a week now. I don't have any more govee entities set to trigger automations, but I was getting rate limited even with no automations before I switched.

How did you end up installing this? There isn't an installation guide on it

Okay, so you have to have HACS. You go into that, click the three dots in the top right and select "Custom repositories" and put in the URL for the github. It'll be available as an integration then.

Do I need to have this?

For Direct BLE Control:
Before you begin, make certain HomeAssistant can access BLE on your platform. Ensure your HomeAssistant instance is granted permissions to utilize the Bluetooth Low Energy of your host machine.

Or will I be fine without it. I am running HA on a Pi5 in Docker

It should give you an option to use API or BLE when you configure it. Use API like you did with the hacs-govee one.

It doesn't work for me. I've added it via the Custom repositories, but it doesn't seem to add anything. It also gets removed if I restart the server, as it doesn't appear in the Custom repositories anymore.


Language versions in VSCode?

Could be good to document this workflow. AKA, how to support Julia 0.6.2 and Julia 0.7, or Python 2.7 and Python3.

(I guess this doesn't matter so much for students taking courses, but it could for RAs or grad students working on packages).

I think we basically want to wait until 0.7 is sufficiently stable, and then update to support it... Or let the vscode guy do it. Python should always be 3.6

OK. What do you recommend for this workflow in the time being? My current strategy is to write the package locally and use Travis to test it, which isn't great.

I don't understand. Stay on v0.6 for now? Wait until v0.7 is ready and
other people have documented it
On Fri, Jun 29, 2018, 1:53 PM Arnav Sood<EMAIL_ADDRESS>wrote:

OK. What do you recommend for this workflow in the time being? My current
strategy is to write the package locally and use Travis to test it, which
isn't great.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ubcecon/computing_and_datascience/issues/54#issuecomment-401443034,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMf-ITV63Txks68XFGKdu_5FRHpPh3sjks5uBneQgaJpZM4U9auG
.

The use case here was submitting a PR to a repo that's already been moved to v0.7.


InteractiveImage not loading in Jupyter Lab

Description
When running one of the example notebooks, the InteractiveImage output renders fine in Jupyter Notebook but not in Jupyter Lab. For the latter, Out appears but all that is displayed is a blank line. Static plots render fine in Jupyter Lab.
Your environment
Windows 10 (64-bit)
Google Chrome 64 (64-bit)
Python (conda) 3.6.4

Jupyter Lab 0.31.12
Bokeh 0.12.14
Bokeh jupyterlab plug-in
Datashader 0.6.5

Unfortunately, Bokeh's JupyterLab extension doesn't support the two-way communication that we would need  to be able to update the Python plot ranges on zooms and pans as they get generated in JavaScript.  The (about to be released) HoloViews JupyterLab extension does support the required comms, but if you're using HoloViews already, you don't need InteractiveImage, which is just a poor replica of holoviews' datashade command.  And I don't think we'd ever want to invest in the maintenance burden involved in having a special Datashader JupyterLab extension just to get InteractiveImage working; InteractiveImage is just a useful shortcut and is nothing like the capability offered by HoloViews+Datashader.  So I'll change the title of this issue to indicate that we need to document this limitation.  Thanks for bringing it to my attention!


Cannot paste after writing image to clipboard (on Windows)

The problem | 问题描述
After writing image to clipboard on Windows, I cannot paste the image in other applications.
Release version | 版本
0.1.5
Operating system | 操作系统
Win11
Logs | 日志
No response

Issue first mentioned in https://github.com/CrossCopy/tauri-plugin-clipboard/issues/21

https://github.com/ChurchTao/clipboard-rs/pull/20


[Feature Request] Using the terminal prompt instead Powershell

Is your feature request related to a problem? Please describe.
Maybe the option is already here but I dont find it. Is it possible to use the terminal prompt instead of of the powershell prompt into Lapce ?
Describe the solution you'd like
Using the terminal prompt
Describe alternatives you've considered
Additional context
I can't use some command into PS

Just look at too fastly. Adding C:\Windows\System32\cmd.exe into Set your terminal shell.
Sorry !


Build request failed: Unexpected server error

Summary
Builds stopped working on our expo team account (after Feb 2, 2024). It has the odd name "codegewerk " (yes, with a space character in the end).
It happens on new projects, too: With my personal account "d.ermel", I can create and build a new project. On our team account "codegewerk ", it does not work (any more).
Expected behavior: eas build --platform android creates a build
What is actually happening:
Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, report the issue.
Request ID: 03fd5af7-e395-40ec-a179-26b8b71f1a3a
Error message: Unexpected server error (Expo error ID: 03fd5af7-e395-40ec-a179-26b8b71f1a3a).

What platform(s) does this occur on?
Android, iOS
SDK Version
51.0.9
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.6.1 - /opt/homebrew/bin/node
npm: 10.4.0 - /opt/homebrew/bin/npm
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 15.4/15F31d - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.9 => 51.0.9
expo-router: ~3.5.14 => 3.5.14
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
react-native-web: ~0.19.10 => 0.19.12
npmGlobalPackages:
eas-cli: 9.1.0
Expo Workflow: managed
Minimal reproducible example
Create and install new project

Create new project "Test" on expo.dev (e.g. in our case https://expo.dev/accounts/codegewerk /projects).

Run the line that gets shown to you in the browser:

npm install --global eas-cli && npx create-expo-app test && cd test && eas init --id <your-new-project-id>

Try eas build

Run the steps from https://docs.expo.dev/build/setup/:

eas build:configure
eas build --platform android

@dominikermel it should be fixed now

Thanks a lot. Builds work again! 💪


Voice Kit - assistant demo not working?

I'm a total newbie here. I'm a teacher, and have been trying to work through setting up the AIY Voice Kit with a few of my Intro to CS students this week. We made it through all the set up instructions online, the speaker and microphone tests worked fine. When we get to the step to "run the assistant demo", however, it did not run. It would error messages about lines of code. I didn't screenshot it at the time, but it wasn't too dissimilar from the error messages we are getting now (see below).
We had to leave it for the day, and this morning I loaded it up and the kit wouldn't connect - so I reflashed the SD card by downloading the image from the aiyprojects website, and I used Etcher.io to write the new image on the SD card.
I went through the logging in steps again - I was able to connect, I ran the tests for microphone and speakers successfully.
Back to the step to run the assistant demo.
I typed the command line: src/examples/voice/assistant_grpc_demo.py
It runs for a while, then returns the following message:
pi@raspberrypi:~/AIY-voice-kit-python $ src/examples/voice/assistant_grpc_demo.py
Traceback (most recent call last):
File "src/examples/voice/assistant_grpc_demo.py", line 57, in
main()
File "src/examples/voice/assistant_grpc_demo.py", line 49, in main
language_code=args.language)
File "/opt/aiy/projects-python/src/aiy/assistant/grpc.py", line 205, in init
super().init(language_code, volume_percentage)
File "/opt/aiy/projects-python/src/aiy/assistant/grpc.py", line 64, in init
credentials = auth_helpers.get_assistant_credentials()
File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 132, in get_assistant_credentials
return _try_to_get_credentials(credentials_file)
File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 123, in _try_to_get_credentials
credentials = _credentials_flow_interactive(client_secrets)
File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 70, in _credentials_flow_interactive
scopes=[_ASSISTANT_OAUTH_SCOPE])
File "/usr/local/lib/python3.5/dist-packages/google_auth_oauthlib/flow.py", line 172, in from_client_secrets_file
client_config = json.load(json_file)
File "/usr/lib/python3.5/json/init.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 1 (char 2)
What can we do to make this work? My students, and myself, are feeling frustrated - but I'm using this as  a lesson in problem solving and persistance!
We are expecting step 93 - give permission "You’ll see a message about going to a URL to authorize your application." That doesn't happen - just the above messages.
Any and all help is greatly appreciated! (remembering I'm a newbie to raspberry pi). Thank you in advance!

i am having a similar issue, but i checked the quotes and didnt seem to have the same problem there- any ideas why the assistant.json file might not be working?


Loading spaceline-all-the-icons takes a long time

On my machine requiring and calling (spaceline-all-the-icons-theme) takes ~3 seconds, which is a lot longer than e.g. (spaceline-spacemacs-theme).
Would it perhaps be possible to optimize spaceline-all-the-icons so that its impact on init is reduced?

Hi @spatz, I had a brief look into this a while ago, and I think the biggest performance hit comes from projectile-project-root - Looking at this comment suggests that there have been some performance improvements made to projectile which could be beneficial?
I'll have another look when I get some spare time and see if this is improved.
The other idea I had was to investigate how spaceline handles enabled/disabled segments, and the when predicates... As most of my segments are enabled by default but perform constant checks for the :when predicate.. Perhaps it would perform better if I disable most segments by default and have users enable the ones they want?
I'll post any findings back here 👍

Not sure if this is related to projectile as the problem for me is not at runtime, but the call to spaceline-compile for spaceline-all-the-icons, which happens once on load.
While runtime performance improvements are welcome, this issue is specifically for (spaceline-all-the-icons-theme).

That's not exactly true, it's all based on how spaceline-compile/spaceline-install works, and considering it's building every segment at once any inefficiency of projectile-project-root will show up, especially considering it's used a fair amount in my segments.
Also, the main all-the-icons theme is made up of 51 segments, where as spaceline-emacs-theme and spaceline-spacemacs-theme are made up of 32 and 34 segments respectively..
Benchmarking shows that

spaceline-all-the-icons-theme takes ~3.6s
spaceline-emacs-theme takes ~0.8s
spaceline-spacemacs-theme takes ~0.8s

So yes, it does seem there's something slowing down the compilation... It's worth remembering that a lot of the segments are richer in content, but I'll do some investigation to see if I can find which segments are slow

I have same performance issues when I use a huge amount of files in file tree (> 200 files in dir)

Has there been any progress here?


Added 'squash' as a parameter to nfs-ganesha.

Set the default to 'Root_Squash' - which is the default from ganesha.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?


Drag and drop on Upload page is buggy in Safari

After dropping one card on another in the Upload page, the window scrolls down to the bottom of the page instead of staying where you are. This doesn't happen in Firefox and Chrome.

Ah ha! I tried this a bunch of different ways, with different adblockers and extensions installed and uninstalled. None of that made a difference.
However, adding a species is what affects things. I can drag and drop cards onto each other fine until I add a species name to an observation - either with suggestions or when I type it in. Once I do that, dragging cards onto each other results in the page scrolling down to the bottom.
@kueda can you replicate?

I can replicate but I haven't been able to figure it out. To be slightly more specific, when you add a taxon to any card in Safari, dragging any card onto any other card causes the drag-and-drop area to scroll to the bottom.

Not seeing this behavior anymore, so will close the issue.


can't get clangd to respect config.yaml flags

I'm having trouble getting clangd to respect my config.yaml flags.
CompileFlags:
  Add: [-std=c++20]
  Compiler: /usr/local/bin/clang++

I[00:46:17.936] clangd version 15.0.0 (https://github.com/llvm/llvm-project.git a6f2c2291ede82777fb3b92c6f2ea78d56e97aca)
I[00:46:17.939] Features: mac+xpc
I[00:46:17.939] PID: 58890
I[00:46:17.939] Working directory: /Users/alexi
I[00:46:17.939] argv[0]: /usr/local/bin/clangd
I[00:46:17.939] Starting LSP over stdin/stdout
I[00:46:17.940] <-- initialize(0)
I[00:46:17.954] --> reply:initialize(0) 13 ms
I[00:46:18.018] <-- initialized
I[00:46:18.018] <-- textDocument/didOpen
I[00:46:18.019] --> textDocument/publishDiagnostics
I[00:46:18.019] Failed to find compilation database for /Users/alexi/Work/Catch2/tt/t.cpp
I[00:46:18.019] ASTWorker building file /Users/alexi/Work/Catch2/tt/t.cpp version 1 with command clangd fallback
[/Users/alexi/Work/Catch2/tt]
/usr/local/bin/clang++ -std=c++20 -resource-dir=/usr/local/lib/clang/15.0.0 -- /Users/alexi/Work/Catch2/tt/t.cpp
I[00:46:18.022] --> textDocument/clangd.fileStatus
I[00:46:18.030] <-- clangd/inlayHints(1)
I[00:46:18.318] --> workspace/semanticTokens/refresh(0)
I[00:46:18.318] --> textDocument/clangd.fileStatus
I[00:46:18.319] <-- reply(0)
I[00:46:18.335] --> textDocument/publishDiagnostics
I[00:46:18.335] --> reply:clangd/inlayHints(1) 304 ms
I[00:46:18.335] --> textDocument/clangd.fileStatus

It seems to take the compiler directive, and correctly use the one that I built and installed to /usr/local/bin/clang++,
but I can't get -std=c++20 to have any effect.
I also tried putting the flag in compile_flags.txt and clangd.fallbackFlags.
It only seems to work when I have compile_commands.json, but this is exactly the reason I need to use the config file, that I shouldn't need to use a compile commands database.
I[00:56:58.356] ASTWorker building file /Users/alexi/Work/Catch2/tt/t.cpp version 3 with command
[/Users/alexi/Work/Catch2/tt]
/usr/local/bin/clang++ --driver-mode=g++ -std=c++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -o CMakeFiles/tt.dir/t.cpp.o -c -std=c++20 -resource-dir=/usr/local/lib/clang/15.0.0 -- /Users/alexi/Work/Catch2/tt/t.cpp
I[00:56:58.357] --> textDocument/clangd.fileStatus
I[00:56:58.373] --> reply:clangd/inlayHints(4) 17 ms
I[00:56:58.373] Skipping rebuild of the AST for /Users/alexi/Work/Catch2/tt/t.cpp, inputs are the same.
I[00:56:58.374] --> textDocument/publishDiagnostics
I[00:56:58.374] --> textDocument/clangd.fileStatus
I[00:56:58.433] --> $/progress
I[00:57:11.538] <-- textDocument/documentHighlight(5)
I[00:57:11.538] --> reply:textDocument/documentHighlight(5) 0 ms
I[00:57:11.538] --> textDocument/clangd.fileStatus

I think this is a MacOS related issue.
If I unset SDKROOT, it doesn't complain about C++20 features, but then I end up with other problems.
I am going to close this now.


SDK Release Cadences

Hi, I am currently working on a project that is using both the .NET and Javascript SDKs. Unfortunately, the .NET SDK is at v0.5 (released in May) whereas the Javascript SDK is at 0.6 (released in June). What is the release process regarding SDKs? Can I expect the SDK's to be updated together in the future and is there a roadmap in place for releases?
Thanks

Hi @BnSmth, you can expect the SDKs to be released together in the future, once we get the iOS, Android and UWP renderers in "beta" with the v1.0 schema, which should be around the end of September. We'll definitely be sharing the roadmap in the next few weeks. Thanks for your patience while we get our big rocks in order.
Regarding .NET, are you using it just for the object model, or are you using the WPF/.NET HTML renderers?

On a similar note...
As there are plans to implement AdaptiveCards into parts of the Windows Shell - will additions to the Schema, Rendering (at least for UWP and XAML) be reliant on the Windows twice yearly update cycle?
If not, how will Windows support new additions between OS updates?  Is it a Windows Update thing, or something in the Windows Store?  Has there been any thought on keeping it decoupled with fallback for those not up to date with Windows updates?

Adaptive Cards will be supported in the Windows Shell but the renderer will be tied to a particular OS build for now. We will provide a mechanism for app developers to query which version is supported so they can craft the most appropriate card for the user

@matthidinger Good to know.  And checking the docs for what is supported where, will be important.

Hi folks, we've shipped a few updates to the .NET packages lately and plan to improve this consistency over the coming weeks, thanks for your patience!


feat: add document viewer widget

Description

document view widget add

Fixes #3358
Type of change

Bugfix (non-breaking change which fixes an issue)

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented on my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:green_circle: Total coverage has increased
// Code coverage diff between base branch:release and head branch: feature/new-document-viewer

Status
File
% Stmts
% Branch
% Funcs
% Lines

:green_circle:
total
55.04 (0)
36.97 (0.04)
33.79 (0.01)
55.53 (0.01)

:sparkles: :new:
app/client/src/widgets/DocumentViewerWidget/constants.ts
100
100
100
100

:sparkles: :new:
app/client/src/widgets/DocumentViewerWidget/index.ts
100
100
100
100

:sparkles: :new:
app/client/src/widgets/DocumentViewerWidget/component/index.tsx
40.37
45.65
16.67
42.11

:sparkles: :new:
app/client/src/widgets/DocumentViewerWidget/widget/index.tsx
96.77
100
80
96.67

Checked out the deploy preview and the changes as per the discussion seem to reflect

@jsartisan the button is part of the browser default, we are using iframe from the PDF, you are right that its not in our control, We can leave it as it is.

@techbhavin is the documentation done for this widget

Document is update Here
cc: @somangshu

@techbhavin as mentioned, can you check if We could use the file-picker to upload the PDF and use the base64 format. Basically need the base64 URL to work here

@somangshu  @Nikhil-Nandagopal
Current Implementation is supported base64  URL

@techbhavin how will a user know that URL supports base64? Please change the field name and placeholder like in the image widget

@vibhandikyash merge the latest changes here and see if the icon is still valid, We will get in touch with design again otherwise
@vivekverma2312 this widget is done, Can we test this out

@techbhavin Tested this PR and please find the observations below,
Issue 1 : The Icon of Document viewer in entity explorer is not visible clearly

Issue 2 : The Expected Structure should be URL instead of String in the - Document link field

Issue 3 : Passing some of the sample pdf url does not load
Url that doesn't load:
http://www.africau.edu/images/default/sample.pdf
http://www.pdf995.com/samples/pdf.pdf

Issue 4 : PDF uploaded via file picker and binded with document viewer does not work
https://www.loom.com/share/f76fdaaf19db418ab5dc149f7f6bf32d
Issue 5: Some of the pdf urls are 'refused to connect' not sure if this is an expected behaviour
https://github.com/tpn/pdfs/blob/master/A Brief Tutorial on Database Queries%2C Data Mining%2C and OLAP (hamel-197-manuscript-final).pdf

Suggestion 1 : To have Widget wise download toggle - Though we have page wise download option we can have download toggle from widget level
Suggestion : To have search toggle - so that user will be able to search content from the PDF
Suggestion 3 : To have 'Pop up and Text notes' so that whenever user select some text - with the help of pop up user can highlight particular content on the PDF and add notes
Suggestion 4 :

@YogeshJayaseelan this is document viewer which mean its can also load docx, xlsx, ppt. Do check them out

@techbhavin looks like there is a related test case also failing

@techbhavin - Tested this PR and found issue 6 is still not working
New issue:
Issue 7 - By editing the document url to any single character - Appmsith page is loaded inside Document viewer widget
https://www.loom.com/share/575267f7d1744409a1cac7d602c1d9f8

/ok-to-test sha=166bd84

https://github.com/appsmithorg/appsmith/actions/runs/1434479479

/ok-to-test sha=ddb6294

https://github.com/appsmithorg/appsmith/actions/runs/1444044157

/ok-to-test sha=02ebede

/ok-to-test sha=5697d66

https://github.com/appsmithorg/appsmith/actions/runs/1452231048

/ok-to-test sha=5697d66

@techbhavin retested all the issues again. Here are the few things noticed.
Issue6 :  CSV, PPT, files are uploaded via file picker and binded with Document viewer - does not load the files
Currently only pdf, doc and xlxs files are supported.
For PPT
https://loom.com/share/44e5cfb0924e46bf981c0e0eb67ddb15
For CSV
https://www.loom.com/share/c856c6b1d53747d2a180677b87864bfb
Issue 7: Still exists
https://www.loom.com/share/fe0ab983afee4ae985b8c68085d1a21a
New Issue
Issue 8: When visible is Enabled it becomes greyed out again disable it and the document viewer doesnt appear bold, only when the user clicks on the canvas the widget appears (refer video)
https://loom.com/share/4c05c74aa7a84a84bf11473796d2a5b6

@YogeshJayaseelan this is document viewer which mean its can also load docx, xlsx, ppt. Do check them out

@somangshu Can you please re-confirm all the supported files. Currently only pdf, doc and xlxs files are supported. CSV and PPT are not supported.

@shwetha-ramesh they should still be supported with the URL format, Maybe base64 can be a problem.
@techbhavin for issue 7 listed above, I think we should handle it, Could the widget can show that its an invalid URL?

/ok-to-test sha=d43323b

@techbhavin could you check the failing tests

/ok-to-test sha=d43323b

/ok-to-test sha=04a9e96

@wmdev0808 related test is failing, check this out

@NandanAnantharamu Asked nandan about the change. If the tests are working fine, then it's okay.

@techbhavin Please find the testing status
QA Comment
Issue 1 - Fixed
Issue 2 -Not in Scope for now
Issue 3 - Agreed that http is not allowed and only https are considered
Issue 4 - Verified with the right syntax Filepicker1.files[0].data and working as expected
Issue 5 - Invalid URL
Issue 6 - Still CSV and PPT are not supported - Can you help us with CSV and PPT url link?
Issue 7 - Issue still exists
7.A) - Removing the // next to https or removing https still loads the appmsith site
https://www.loom.com/share/1d5f4cb185ff424db57c7b8977781cc9
Issue 8 - Fixed

@techbhavin Please find the updated status
QA Comment
Issue 1 - Fixed
Issue 2 -Not in Scope for now
Issue 3 - Agreed that http is not allowed and only https are considered
Issue 4 - Verified with the right syntax Filepicker1.files[0].data and working as expected
Issue 5 - Invalid URL
Issue 6 - PPT is supported with the following url you have provided
https://roteemealplancover.s3.ap-south-1.amazonaws.com/sample/2038800838373569079sample.ppt
**But ppt file uploaded via file-picker and binded with document viewer is not supporting
CSV - Not is scope now**
Issue 7 - Issue still exists
7.A) - Removing the // next to https or removing https still loads the appmsith site
https://loom.com/share/1d5f4cb185ff424db57c7b8977781cc9
Issue 8 - Fixed

/ok-to-test sha=1ac9646

/ok-to-test sha=51b5d0c

/ok-to-test sha=d4f31b1

/ok-to-test sha=a1f6882

@techbhavin Verified the fix of rissue 7 and please find the status below,
QA Comment
Issue 1 - Fixed
Issue 2 -Not in Scope for now
Issue 3 - Agreed that http is not allowed and only https are considered
Issue 4 - Verified with the right syntax Filepicker1.files[0].data and working as expected
Issue 5 - Invalid URL
Issue 6 - PPT is supported with the following url you have provided
https://roteemealplancover.s3.ap-south-1.amazonaws.com/sample/2038800838373569079sample.ppt
But ppt file uploaded via file-picker and binded with document viewer is not supporting
CSV - Not is scope now
Issue 7 - Fixed
Issue 8 - Fixed

/ok-to-test sha=4cb2d73

app/client/cypress/fixtures/DocumentViewerDsl.json

You guys keep mute when j needs you


docs bug: disappearing navigation

When opening any item on the left from the navbar, the complete navigation disappears and only the items from that category are visible. To see the whole navigation, the user needs to return to homepage.
Screenshots home page:

Screenshot example FAQ page (nav on the left not visible anymore)

cc @ccamel @JulienMassonnat

Still relevant @AnjaMis?

no, this has been done!


Implement pairwise sum

When NumPy's sum function is called, it is actually a pairwise sum implementation, which is supposed to be more stable: https://en.wikipedia.org/wiki/Pairwise_summation

Actually, according to this, the pairwise sum doesn't seem to perform much better in terms of accuracy
https://github.com/nschloe/accupy
which questions if we should implement it. I vote for no (except we want to be 100% true to numpy).

https://github.com/rust-ndarray/ndarray/pull/577/files


Add useTimeline hook for tracking multiple previous values

Motivation
usePrevious (#18) can be used to retrieve the last single previous value of a variable. A useTimeline hook would make it possible to track the last N different values of a given value, useful for keeping a log of changes.
Basic example
function Counter() {
  const [count, setCount] = useState(0);
  const prevCounts = useTimeline(count);
  return
Now: {count}, history: {prevCounts}
;
}

After increasing the count variable 3 times, the result would be:
Now: 3, history: [0, 1, 2]

The difference between useTimeline and usePrevious is that the value of useTimeline changes only when there was no bailout of a state update.
Details
In order to avoid storing too much values, useTimeline should have a parameter to limit the amount of stored values, defaulting to Number.MAX_SAFE_INTEGER.

Instead of useHistory, I think the name of the hook should be useTimeline to prevent ambiguity with the History API.

The initial implementation has been added by dc12d09ca6784e3a790f0c30f0a806aa8a175620. Docs and tests are yet to be made.


Unable to query, if one of the index is available and few index not available?

Hi ,
I have a scenario, where there are 3 index's,
1st index it not available,
2nd index available,
3rd not available.
Query is failing with error, "index not found".
If there a way to get results since, 2nd index is available ignoring the 1st and 3rd.
I tried something like given example below.
ctx1 := context.Background()
    res, err := client.Search().
            Index(indexList...).
            //IgnoreUnavailable(true).
            Query(query).
            FetchSourceContext(fetchContext).
            Explain(false).
            FilterPath(
                    "hits.total",
                    "hits.hits._id",
                    "hits.hits._source",
                    "hits.hits._index",
            ).
            From(startIndex).
            Size(limit).
            Do(ctx1)

Can you let me know if any correction's required here ?

I tried using the following api to filter out the index not available and maintain a list "indexList" which has valid index.
Still the output list shows the index which are not valid. (i.e) I was able to find 1 index out of the 3 which was shown to be valid in kibana using "GET _cat/indices"
exists, err := client.IndexExists("twitter").Do(context.Background())
if err != nil {
// Handle error
}
if !exists {
// Index does not exist yet.
}

Also, I tried using IgnoreUnavailable(true).  during query, that too didn't help.
I'm I missing something out in the query ?

The way to go is documented here.
The IgnoreUnavailable should work for your use case exactly, as documented. Can you post a runnable, reproducible code snippet for me to illustrate the bug?


Register a new package

@JuliaRegistrator branch=master

An unexpected error occurred during registration.

@JuliaRegistrator branch=master

An unexpected error occurred during registration.

An unexpected error occurred during registration.

An unexpected error occurred during registration.

An unexpected error occurred during registration.

@JuliaRegistrator register branch=master

Registration pull request created: JuliaRegistries/General/69351
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" 2f56db7e03fd0b2d3513160cb9f79655ef7d0846
git push origin v0.1.0

@RexWzh Looks like you missed the register 😆


Use tunnel to enable web console

@kargakis @pweil- this is ready for review / merge

there's more to do here but with this PR the webconsole works and that's a step forward

lmk your view on checking the tunnel implementation code into this repo - I'm agnostic

tunnel code added to pr, merging


thenFollow and thenFollowAll still expect a complete response object

thenFollow and thenFollowAll still expect a complete response object as first argument instead of only the data itself.

Fixed on master (v0.6.1).


allow multiple paths per script

added a new paths variable that can be used in each script instead of path to allow people to specify multiple paths in 1 script without breaking backwards compatibility.

This seems to work for me. A test would be cool tho.

This pull request a duplicate of https://github.com/nickhammond/ansible-logrotate/pull/17, albeit that it doesn't overload the path property (a new paths property is defined instead).
@nickhammond: It would be great if one of these requests was merged :).

Planning on merging in this one, just need to add a test for it as @otakup0pe mentioned.

@nickhammond I tried adding a test, let me know if it's good

@ryanpineo this looks great, I'll get this merged in this weekend and then bump the version. Thanks for keeping backwards compatibility as well!

Merged and tagged as v0.0.5, thanks!


Would like a new release which contains the commit which allows Symfony 3.*

I wish to use the 1.1.3 tag, but in it, the allowance of Symfony 3.0 has been removed (since it went from >= to ~), this commit adds it again: https://github.com/henrikbjorn/GravatarBundle/commit/1a35eefa0ec358fe3c547f5f962ed3c67ae743f6
Could you release a new tag where, at the bare minimum, it would contain that commit?
Thanks!

:+1:

:+1:

Done.


resolve relative paths in Shell.mkdirp()

Closes #755
(I ran tests in Firefox only as I didn't have ChromeHeadless installed)

Codecov Report

Merging #756 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #756   +/-   ##
=======================================
  Coverage   86.88%   86.89%
=======================================
  Files          16       16
  Lines        1739     1740    +1
=======================================
+ Hits         1511     1512    +1
  Misses        228      228

Impacted Files
Coverage Δ

src/shell/shell.js
88.37% <100.00%> (+0.04%)
: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 4aae538...806ce5c. Read the comment docs.


guest-package-build bugfixes

rename inject steps for oslogin build
correct ash-supported shell arithmetic in generate-package-version
correct reference to gcloud/alpine image

/cc zmarano

lgtm

/lgtm


freecad: add ifc support

Description of changes
This PR adds optional ifc support with ifcopenshell.
It depends on #312381 (fix ifcopenshell build)

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Just a heads up

#343592

Thanks, we shouldn't step too much into each other shoes hopefully ;-)

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 330190

x86_64-linux

This is now ready. I took the opportunity to document the different options so that they appear in https://search.nixos.org/ (I hope it's the correct way, if it is, I think all packages should just do that).

I think all packages should just do that

All packages can't do that. Indeed no package can do that.
This "configuration via input parameters" is too unstable and prone to errors.
#324199
Atemu is experimenting with the module system in #312432 to provide a better experience.

@gebner @AndersonTorres what you guys think about this now?

Rebase.

Rebase.

Done.


SAMOA-59: add an adapter for Apache Gearpump

Hi,
This PR is referenced to SAMOA-59. And how to execute SAMOA with Apache Gearpump, you can follow the README file.
Thanks.

Thanks for your work @pangolulu @manuzhang.
The code looks quite neat.
However I didn't manage to run SAMOA on Gearpump by following the tutorial.
The topology starts but it doesn't produce any output.
I tried with the latest version (0.8.0), probably I should have used an older version?

@gdfm I upgraded gearpump version to 0.8.1-SNAPSHOT which includes critical bug fixes and package renaming although that requires manual build. Hopefully we'll release gearpump 0.8.1 soon.

@manuzhang was there any update from your end on the version of gearpump that we can test Samoa?

@nicolas-kourtellis updated to latest release 0.8.1. Note this is a source release so you have to build gearpump from source.

@nicolas-kourtellis any updates on this PR ?

Hi manuzhang,
I was trying to test the adapter in local mode but realized that I am having difficulties compiling the gearpump 0.8.1 from source. I installed scala, sbt, etc., following the instructions I found here
http://gearpump.incubator.apache.org/releases/latest/get-gearpump-distribution.html
but it keeps complaining for some things and the build fails. Is it possible you make available the binary version of 0.8.1 so that I can use it directly? Or are you guys planning to make it available for the public soon?
Thanks!
Nicolas

@nicolas-kourtellis We haven't made a binary release yet so the binary for 0.8.1 is temporarily hosted at our old github repo https://github.com/gearpump/gearpump/releases/tag/0.8.1

Hi @manuzhang,
I managed to get the adapter working. Here are some notes that I would ask you take into consideration:

There are some inherent difficulties compiling gearpump from source. It would be good to have a compiled version to use directly.

Assuming this is given (which was my case because @manuzhang provided a compiled version), I managed to get samoa to compile/package with gearpump and run the package.

However, it would be good for the adapter to be upgraded to the new version of samoa in incubation, which is 0.5.0. But it should be fairly straightforward. This will allow us to test it with some more generators and ML methods added in the recent past.

Feedback when executing VHT:
=> The engine seems to continue executing the topology long after it has been created, used for the task and finished. Is there any way to pass a signal at the end of the execution to shut it down? (note: not the engine itself, but the topology). It was occupying resources on my computer for no reason at full CPU consumption. I found a manual way to kill it using the command "gear kill -appid X" with X being the id of the task, but I wonder if there is a more automatic way.
=> After I killed the jobs manually, the java processes that were created for the execution (I will assume they are the containers of the topologies) were still alive, just not consuming much resources. Shouldn't they have been terminated and removed? Is there a way to do that?
=> When I run new tasks, they just keep getting added on the engine (which is logical), even though I had killed the other ones earlier.
=> Multiple executions of the same experiment with the same seed for the random generator using the parameter -r which should yield the same random tree, perform differently with respect to accuracy. Is that expected?
=> Using a different seed for the random tree generator (r=1,...,5), the performance of the execution of VHT on local GearPump is fairly low (average over 5 different seeds: 65.39% accuracy) in comparison to running the topology on local Storm (84.046% accuracy). Any explanation why so much reduction in performance?

@nicolas-kourtellis Thanks for the detailed review. I'll look into each item and get back to you.

@manuzhang  We are planning a new release, any news on this?

@abifet It's good to see this project going again. Since it's been quite a while, it will take some time for me to redo the PR so this will probably miss the release.

Thanks @manuzhang! No problem!


brew tests infinite loop on svn_spec

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

[x] ran brew update and can still reproduce the problem?
[x] ran brew doctor, fixed all issues and can still reproduce the problem?
[x] ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)
Run brew tests.
What happened (include command output)
Running brew tests results in an infinite loop and does not end. I narrowed down the problem to svn_spec.rb (which is also a part of utils_spec.rb), and running either brew tests --only=utils/svn or  brew tests --only=utils does not end, requiring a manual abort. The output of both commands with --verbose and --debug are shown below.
I believe this may be a Catalina-only problem, possibly related to this issue. I have verified that installing svn via brew with brew install svn solves this brew tests issue (see below).

Command output

-bash-5.0.17- /Users/miccal (31) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 2803
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 2803 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
^C
Took 300 seconds
Tests Failed

Command output

-bash-5.0.17- /Users/miccal (31) [> brew tests --only=utils --verbose --debug
Randomized with seed 27117
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 27117 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils_spec.rb test/utils/tty_spec.rb test/utils/popen_spec.rb test/utils/curl_spec.rb test/utils/fork_spec.rb test/utils/bottles/bottles_spec.rb test/utils/bottles/collector_spec.rb test/utils/bottles/bintray_spec.rb test/utils/git_spec.rb test/utils/analytics_spec.rb test/utils/github_spec.rb test/utils/svn_spec.rb test/utils/shell_spec.rb test/utils/user_spec.rb
8 processes for 14 specs, ~ 1 specs per process
................................*.
Pending: (Failures listed here are expected and do not affect your suite's status)

GitHub::get_artifact_url fails to find a nonexistant workflow
Requires network connection.
./test/utils/github_spec.rb:46

GitHub::get_artifact_url gets an artifact link
Requires network connection.
./test/utils/github_spec.rb:58

GitHub::get_artifact_url fails to find artifacts that don't exist
Requires network connection.
./test/utils/github_spec.rb:52

GitHub::search_code queries GitHub code with the passed parameters
Requires network connection.
./test/utils/github_spec.rb:7

GitHub::search_issues queries GitHub issues with the passed parameters
Requires network connection.
./test/utils/github_spec.rb:35

Finished in 0.1059 seconds (files took 4.62 seconds to load)
10 examples, 0 failures, 5 pending
................................
.
Finished in 0.16434 seconds (files took 4.64 seconds to load)
10 examples, 0 failures
.
Finished in 0.16043 seconds (files took 4.65 seconds to load)
16 examples, 0 failures
*...
Finished in 0.21058 seconds (files took 4.62 seconds to load)
10 examples, 0 failures
.................*...
Finished in 0.31558 seconds (files took 4.65 seconds to load)
28 examples, 0 failures
.........
Pending: (Failures listed here are expected and do not affect your suite's status)

Utils::git_remote_exists? when git is available returns true when git remote exists
Requires network connection.
./test/utils/git_spec.rb:133

Finished in 1.61 seconds (files took 4.61 seconds to load)
17 examples, 0 failures, 1 pending
..
Finished in 1.78 seconds (files took 4.58 seconds to load)
11 examples, 0 failures
^C
102 examples, 0 failures, 6 pendings
Took 300 seconds (1:43)
Tests Failed

What you expected to happen
brew tests to finish.
Step-by-step reproduction instructions (by running brew commands)
brew tests --only=utils/svn
Output of brew config and brew doctor commands

-bash-5.0.17- /Users/miccal (31) [> brew config
HOMEBREW_VERSION: 2.4.0-93-g634c457
ORIGIN: https://github.com/Homebrew/brew
HEAD: 634c4571299b5165110eac083dd5c2ae3f84331c
Last commit: 16 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 4bce00ad7b5a2f4ec589ae55cbeec5c72b58bfd5
Core tap last commit: 49 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_DEVELOPER: set
HOMEBREW_EDITOR: /usr/bin/open -e -W
HOMEBREW_FORCE_BREWED_CURL: set
HOMEBREW_FORCE_BREWED_GIT: set
HOMEBREW_FORCE_VENDOR_RUBY: set
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ANALYTICS: set
CPU: octa-core 64-bit icelake
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
Clang: 11.0 build 1103
Git: 2.27.0 => /usr/local/opt/git/bin/git
Curl: 7.70.0 => /usr/local/opt/curl/bin/curl
macOS: 10.15.5-x86_64
CLT: 1<IP_ADDRESS>
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11

-bash-5.0.17- /Users/miccal (31) [> brew doctor
Your system is ready to brew.

@miccal Can you pin down exactly what line is causing this (either we some debugging output or --debug)? Thanks!

@MikeMcQuaid the output of the commands I gave above were both passed with the --verbose and --debug flags, so that is all the output I get unfortunately.

Also, I can confirm that running brew install svn fixed the problem:
-bash-5.0.17- /Users/miccal (30) [> which svn
/usr/local/bin/svn
-bash-5.0.17- /Users/miccal (30) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 29859
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 29859 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
..*.

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Utils#self.svn_remote_exists? when svn is available returns true when remote exists
     # Requires network connection.
     # ./test/utils/svn_spec.rb:35

Finished in 0.10646 seconds (files took 1.53 seconds to load)
4 examples, 0 failures, 1 pending

4 examples, 0 failures, 1 pending

Took 1 seconds
-bash-5.0.17- /Users/miccal (30) [> brew remove svn
Uninstalling /usr/local/Cellar/subversion/1.14.0_1... (234 files, 30.6MB)
-bash-5.0.17- /Users/miccal (30) [> which svn
/usr/bin/svn
-bash-5.0.17- /Users/miccal (30) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 37738
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 37738 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
^C

Took 300 seconds
Tests Failed

I could reproduce this before I did brew install svn, as could @samford. I haven't yet had a chance to dig into why, and I'm unlikely to get time soon.

This is the same problem I encountered back in April and I came to the same conclusions as @miccal. When we discussed this internally, there was talk that it may be related to the svn shim (i.e., Library/Homebrew/shims/scm/svn) and Catalina not providing svn.
You can reliably reproduce this in a fresh Catalina VM without the subversion formula installed. I don't have the time to investigate this further at the moment but I at least wanted to mention this.

Catalina not providing svn.

Command Line Tools provides svn, though:

Is there some other way I can provide more information beyond running the command brew tests --only=utils/svn --verbose --debug?

Yes, you can add a , :focus to the relevant test e.g.:
diff --git a/Library/Homebrew/test/utils/svn_spec.rb b/Library/Homebrew/test/utils/svn_spec.rb
index 04492e9fe..d82944ba8 100644
--- a/Library/Homebrew/test/utils/svn_spec.rb
+++ b/Library/Homebrew/test/utils/svn_spec.rb
@@ -8,7 +8,7 @@ describe Utils do
       described_class.clear_svn_version_cache
     end

-    it "returns svn version if svn available" do
+    it "returns svn version if svn available", :focus do
       if File.executable? "/usr/bin/svn"
         expect(described_class).to be_svn_available
       else

Yeh, this is likely an issue with the SVN shim but we can definitely work around it. I don't have access to a fresh VM.

@MikeMcQuaid I modified svn-spec.rb as per you suggestions, and:
-bash-5.0.17- /Users/miccal (29) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 26361
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 26361 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
^C
RSpec is shutting down and will print the summary report... Interrupt again to force quit.

Took 300 seconds (5:00)
Tests Failed

and I am not sure about this summary report?

@miccal now you have the focus and have it pinned down to a specific test: could you try to add puts around the codebase until you narrow down exactly what line is hanging? Thanks!

@MikeMcQuaid I believe the line that is hanging is:
expect(described_class).to be_svn_available

@miccal Perfect, thanks! What does bash -x $(brew --repo)/Library/Homebrew/shims/scm/svn --version output or do on your machine? What does /usr/bin/svn --version do/output?

@MikeMcQuaid ah, interesting -- both commands hang and require a manual abort. So it seems that the svn shipped with the CLT's on Catalina is completely broken.

@miccal What does the bash -x ... version output, if anything? What does file /usr/bin/svn output`?

file /usr/bin/svn outputs what you would expect:
-bash-5.0.17- /Users/miccal (29) [> file /usr/bin/svn
/usr/bin/svn: Mach-O 64-bit executable x86_64

as does:
-bash-5.0.17- /Users/miccal (29) [> test -x /usr/bin/svn && echo true || echo false
true

The bash -x ... output is long, and hangs:

Command output

-bash-5.0.17- /Users/miccal (29) [> bash -x $(brew --repo)/Library/Homebrew/shims/scm/svn --version

set +o posix

SCM_FILE=svn
++ realpath /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ local path=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ local dir
++ local dest
+++ absdir /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
+++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ pwd -P
++ dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ dirbasepath /usr/local/Homebrew/Library/Homebrew/shims/scm /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
+++ local dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ local base=svn
+++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ path=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ [[ -L /usr/local/Homebrew/Library/Homebrew/shims/scm/svn ]]
+++ readlink /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ dest=git
++ [[ git = /* ]]
++ path=/usr/local/Homebrew/Library/Homebrew/shims/scm/git
+++ absdir /usr/local/Homebrew/Library/Homebrew/shims/scm/git
+++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ pwd -P
++ dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ dirbasepath /usr/local/Homebrew/Library/Homebrew/shims/scm /usr/local/Homebrew/Library/Homebrew/shims/scm/git
+++ local dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ local base=git
+++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/git
++ path=/usr/local/Homebrew/Library/Homebrew/shims/scm/git
++ [[ -L /usr/local/Homebrew/Library/Homebrew/shims/scm/git ]]
++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/git

SCM_REAL=/usr/local/Homebrew/Library/Homebrew/shims/scm/git
++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
++ cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
++ pwd -P

SCM_DIR=/usr/local/Homebrew/Library/Homebrew/shims/scm

[[ --version = --homebrew=* ]]

case "$(lowercase "$SCM_FILE")" in
++ lowercase svn
++ echo svn
++ tr '[:upper:]' '[:lower:]'

[[ -n '' ]]
++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/../../../../../bin
++ pwd -P

brew_prefix_version=/usr/local/bin/svn

safe_exec /usr/local/bin/svn --version

local arg0=/usr/local/bin/svn

executable /usr/local/bin/svn

local file=/usr/local/bin/svn

[[ -f /usr/local/bin/svn ]]

return
++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/../../../../bin
++ cd /usr/local/Homebrew/Library/Homebrew/shims/scm/../../../../bin
++ pwd -P

brew_repo_version=/usr/local/Homebrew/bin/svn

safe_exec /usr/local/Homebrew/bin/svn --version

local arg0=/usr/local/Homebrew/bin/svn

executable /usr/local/Homebrew/bin/svn

local file=/usr/local/Homebrew/bin/svn

[[ -f /usr/local/Homebrew/bin/svn ]]

return

IFS='
'
++ type -aP svn

for path in $(type -aP "$SCM_FILE")

[[ /usr/bin/svn != /\u\s\r/\b\i\n/\s\v\n ]]

unset IFS

executable /usr/bin/xcode-select

local file=/usr/bin/xcode-select

[[ -f /usr/bin/xcode-select ]]

[[ -x /usr/bin/xcode-select ]]
++ /usr/bin/xcode-select -print-path

xcode_path=/Library/Developer/CommandLineTools

[[ -z /Library/Developer/CommandLineTools ]]

[[ -z '' ]]

[[ /Library/Developer/CommandLineTools != / ]]
++ /usr/bin/xcrun -find svn

path=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn

safe_exec /usr/local/Homebrew/Library/Homebrew/shims/scm/svn --version

local arg0=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn

executable /usr/local/Homebrew/Library/Homebrew/shims/scm/svn

local file=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn

[[ -f /usr/local/Homebrew/Library/Homebrew/shims/scm/svn ]]

[[ -x /usr/local/Homebrew/Library/Homebrew/shims/scm/svn ]]
++ lowercase /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ tr '[:upper:]' '[:lower:]'

[[ /usr/local/homebrew/library/homebrew/shims/scm/svn = \s\v\n ]]
++ realpath /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ local path=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ local dir
++ local dest
+++ absdir /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
+++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ pwd -P
++ dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ dirbasepath /usr/local/Homebrew/Library/Homebrew/shims/scm /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
+++ local dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ local base=svn
+++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ path=/usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ [[ -L /usr/local/Homebrew/Library/Homebrew/shims/scm/svn ]]
+++ readlink /usr/local/Homebrew/Library/Homebrew/shims/scm/svn
++ dest=git
++ [[ git = /* ]]
++ path=/usr/local/Homebrew/Library/Homebrew/shims/scm/git
+++ absdir /usr/local/Homebrew/Library/Homebrew/shims/scm/git
+++ quiet_safe_cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ cd /usr/local/Homebrew/Library/Homebrew/shims/scm/
+++ pwd -P
++ dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ dirbasepath /usr/local/Homebrew/Library/Homebrew/shims/scm /usr/local/Homebrew/Library/Homebrew/shims/scm/git
+++ local dir=/usr/local/Homebrew/Library/Homebrew/shims/scm
+++ local base=git
+++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/git
++ path=/usr/local/Homebrew/Library/Homebrew/shims/scm/git
++ [[ -L /usr/local/Homebrew/Library/Homebrew/shims/scm/git ]]
++ echo /usr/local/Homebrew/Library/Homebrew/shims/scm/git

[[ /usr/local/Homebrew/Library/Homebrew/shims/scm/git = /\u\s\r/\l\o\c\a\l/\H\o\m\e\b\r\e\w/\L\i\b\r\a\r\y/\H\o\m\e\b\r\e\w/\s\h\i\m\s/\s\c\m/\g\i\t ]]

return

path=/Applications/Xcode.app/Contents/Developer/usr/bin/svn

safe_exec /Applications/Xcode.app/Contents/Developer/usr/bin/svn --version

local arg0=/Applications/Xcode.app/Contents/Developer/usr/bin/svn

executable /Applications/Xcode.app/Contents/Developer/usr/bin/svn

local file=/Applications/Xcode.app/Contents/Developer/usr/bin/svn

[[ -f /Applications/Xcode.app/Contents/Developer/usr/bin/svn ]]

return

path=/usr/bin/svn

[[ -z '' ]]

safe_exec /usr/bin/svn --version

local arg0=/usr/bin/svn

executable /usr/bin/svn

local file=/usr/bin/svn

[[ -f /usr/bin/svn ]]

[[ -x /usr/bin/svn ]]
++ lowercase /usr/bin/svn
++ echo /usr/bin/svn
++ tr '[:upper:]' '[:lower:]'

[[ /usr/bin/svn = \s\v\n ]]
++ realpath /usr/bin/svn
++ local path=/usr/bin/svn
++ local dir
++ local dest
+++ absdir /usr/bin/svn
+++ quiet_safe_cd /usr/bin/
+++ cd /usr/bin/
+++ pwd -P
++ dir=/usr/bin
+++ dirbasepath /usr/bin /usr/bin/svn
+++ local dir=/usr/bin
+++ local base=svn
+++ echo /usr/bin/svn
++ path=/usr/bin/svn
++ [[ -L /usr/bin/svn ]]
++ echo /usr/bin/svn

[[ /usr/bin/svn = /\u\s\r/\l\o\c\a\l/\H\o\m\e\b\r\e\w/\L\i\b\r\a\r\y/\H\o\m\e\b\r\e\w/\s\h\i\m\s/\s\c\m/\g\i\t ]]

[[ '' = \p\r\i\n\t-\p\a\t\h ]]

exec /usr/bin/svn --version
^C

Last one I think: output/behaviour of /Library/Developer/CommandLineTools/usr/bin/svn --version? I think we probably need to just never call /usr/bin/svn on Catalina 😬

@MikeMcQuaid you have nailed it -- it seems svn is no longer shipped in either Xcode or CLT:
-bash-5.0.17- /Users/miccal (29) [> /Library/Developer/CommandLineTools/usr/bin/svn --version
-bash: /Library/Developer/CommandLineTools/usr/bin/svn: No such file or directory

Also:
-bash-5.0.17- /Users/miccal (29) [> /usr/bin/svnlook --version
svnlook: error: The subversion command line tools are no longer provided by Xcode.

-bash-5.0.17- /Users/miccal (29) [> /usr/bin/svnversion --version
svnversion: error: The subversion command line tools are no longer provided by Xcode.

I see it in /Library/Developer/CommandLineTools/usr/bin/svn --version and it works as expected on my machine. I suspect if that's missing then /usr/bin/svn goes 💥 on Catalina.

@miccal What's your output of /usr/bin/svnversion --version?

@MikeMcQuaid as above:
-bash-5.0.17- /Users/miccal (29) [> /usr/bin/svnversion --version
svnversion: error: The subversion command line tools are no longer provided by Xcode.

It's a strange issue because I was in the same situation as @miccal in April (where brew tests would hang and I had to have the subversion formula installed to avoid it) but now I'm inexplicably in the same position as @MikeMcQuaid.
A fresh install of Catalina with the Command Line Tools installed is identical to @miccal's output above. For whatever reason, I now have working subversion binaries in /usr/bin and /Library/Developer/CommandLineTools/usr/bin/ and brew tests predictably works without the subversion formula installed.
I did a fresh install of macOS 10.15 when it was released, so somewhere in the last few months my situation changed and I have no idea what led to the difference.

I did a fresh install of macOS 10.15 when it was released, so somewhere in the last few months my situation changed and I have no idea what led to the difference.

Probably installing the CLT and/or a CLT update?

Probably installing the CLT and/or a CLT update?

I imagine it must have been a CLT update because I had the CLT installed back in April.
I uninstalled the Command Line Tools and reinstalled them just now and I'm back in the same boat as @miccal again, for what it's worth.

This issue first appeared (to my knowledge) in homebrew-cask-fonts and at that stage I did not have this issue, but I guess it may be because sometimes I have to force an update of CLT via:
sudo rm -r -f /Library/Developer/CommandLineTools; sudo xcode-select --install

@miccal @samford I've opened a PR for this in https://github.com/Homebrew/brew/pull/7814. If you could test it out that'd be wonderful.

@MikeMcQuaid:
-bash-5.0.17- /Users/miccal (29) [> brew tests --only=utils/svn --verbose --debug
Randomized with seed 32898
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 32898 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
F..*

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Utils#self.svn_remote_exists? when svn is available returns true when remote exists
     # Requires network connection.
     # ./test/utils/svn_spec.rb:35

Failures:

  1) Utils#self.svn_available? returns svn version if svn available
     Failure/Error: expect(described_class).to be_svn_available
       expected `Utils.svn_available?` to return true, got false
     # ./test/utils/svn_spec.rb:13:in `block (3 levels) in <top (required)>'
     # ./test/spec_helper.rb:185:in `block (2 levels) in <top (required)>'
     # ./vendor/bundle/ruby/2.6.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
     # ./vendor/bundle/ruby/2.6.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
     # ./vendor/bundle/ruby/2.6.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
     # ./vendor/bundle/ruby/2.6.0/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # ./vendor/bundle/ruby/2.6.0/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
     # ./vendor/bundle/ruby/2.6.0/gems/rspec-wait-0.0.9/lib/rspec/wait.rb:46:in `block (2 levels) in <top (required)>'

Finished in 0.15305 seconds (files took 1.91 seconds to load)
4 examples, 1 failure, 1 pending

Failed examples:

rspec ./test/utils/svn_spec.rb:11 # Utils#self.svn_available? returns svn version if svn available

4 examples, 1 failure, 1 pending

Took 2 seconds
Tests Failed

@miccal So: it's failing but not blocking forever? That seems like progress!

@MikeMcQuaid progress indeed :)
Why not just require brew install svn for Catalina -- that would fix this issue as well?

@MikeMcQuaid progress indeed :)

@miccal Can you try again? Now the shim is working as expected for you I'd fixed the test code accordingly.

Why not just require brew install svn for Catalina -- that would fix this issue as well?

That's what the shim does. If it doesn't fix the Cask issue: Cask should be updated to always use the Homebrew shim instead of Subversion directly.

@MikeMcQuaid:
-bash-5.0.17- /Users/miccal (29) [> brew tests --only=utils/svn --verbose --debug

Randomized with seed 64512
bundle exec parallel_rspec --nice -- -I /usr/local/Homebrew/Library/Homebrew/test --seed 64512 --color --require spec_helper --format NoSeedProgressFormatter --format ParallelTests::RSpec::RuntimeLogger --out /Users/miccal/Library/Caches/Homebrew/tests/parallel_runtime_rspec.log --tag ~needs_linux -- test/utils/svn_spec.rb
1 processes for 1 specs, ~ 1 specs per process
...*

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Utils#self.svn_remote_exists? when svn is available returns true when remote exists
     # Requires network connection.
     # ./test/utils/svn_spec.rb:35

Finished in 0.17601 seconds (files took 1.51 seconds to load)
4 examples, 0 failures, 1 pending

4 examples, 0 failures, 1 pending

Took 1 seconds

@miccal Hooray, fixed! Once I get it working in CI I'll merge. Thanks for all the help ❤

@MikeMcQuaid don't thank me, you did all the work! Thank you :)

@MikeMcQuaid may I trouble you with a (probably) dumb question -- what is the easiest way to test an open PR locally?

@miccal Not dumb! hub checkout $URL.

@MikeMcQuaid nice, that is easy, thank you.

Not that it matters much, but just to add that /usr/bin/svn is now gone in Big Sur.

All fixed, thanks again @MikeMcQuaid.

Command output

-bash-5.0.17- /Users/miccal (29) [> brew tests
Randomized with seed 54182
8 processes for 282 specs, ~ 35 specs per process
.*.*.......*.............*................................................................................*****......................................................................................................................................................*...............................................................................................................................................................................................................................................................................................................................................................................................................*.**...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 1 minute 32.38 seconds (files took 4.37 seconds to load)
376 examples, 0 failures
...............................................................................................................................................................................................................................................*...................
Pending: (Failures listed here are expected and do not affect your suite's status)

UnpackStrategy::Subversion #extract
subversion not installed.
./test/unpack_strategy/shared_examples.rb:12

UnpackStrategy::Subversion is correctly detected
subversion not installed.
./test/unpack_strategy/shared_examples.rb:6

UnpackStrategy::Subversion when the directory name contains an '@' symbol #extract
subversion not installed.
./test/unpack_strategy/shared_examples.rb:12

Finished in 2 minutes 7 seconds (files took 4.4 seconds to load)
311 examples, 0 failures, 3 pending
.......................................................................................................................................................................................................................................................................................................................................................................................................*............
Pending: (Failures listed here are expected and do not affect your suite's status)

brew bundle check checks if a Brewfile's dependencies are satisfied
Requires network connection.
./test/cmd/bundle_spec.rb:5

brew cask list returns a list of installed Casks
Requires network connection.
./test/cmd/cask_spec.rb:5

Bintray::package_exists? detects a package
Requires network connection.
./test/bintray_spec.rb:20

Bintray::file_published? detects a published file
Requires network connection.
./test/bintray_spec.rb:8

Bintray::file_published? fails on a non-existant file
Requires network connection.
./test/bintray_spec.rb:13

Language::Java::overridable_java_home_env returns java_home path without version if version is not specified
Java not installed.
./test/language/java_spec.rb:36

Language::Java::java_home returns valid JAVA_HOME if version is specified
Java not installed.
./test/language/java_spec.rb:7

Language::Java::java_home returns valid JAVA_HOME if version is not specified
Java not installed.
./test/language/java_spec.rb:12

Language::Java::java_home_env returns java_home path without version if version is not specified
Java not installed.
./test/language/java_spec.rb:24

Finished in 2 minutes 28.9 seconds (files took 4.35 seconds to load)
355 examples, 0 failures, 9 pending
...
Pending: (Failures listed here are expected and do not affect your suite's status)

Cask::Cmd::Info can run be run with a url twice and returns analytics
Requires network connection.
./test/cask/cmd/info_spec.rb:143

Finished in 2 minutes 31.6 seconds (files took 4.41 seconds to load)
264 examples, 0 failures, 1 pending
.............................................................................................................................................................................................................
Pending: (Failures listed here are expected and do not affect your suite's status)

GitHub::search_code queries GitHub code with the passed parameters
Requires network connection.
./test/utils/github_spec.rb:7

GitHub::get_artifact_url fails to find artifacts that don't exist
Requires network connection.
./test/utils/github_spec.rb:52

GitHub::get_artifact_url gets an artifact link
Requires network connection.
./test/utils/github_spec.rb:58

GitHub::get_artifact_url fails to find a nonexistant workflow
Requires network connection.
./test/utils/github_spec.rb:46

GitHub::search_issues queries GitHub issues with the passed parameters
Requires network connection.
./test/utils/github_spec.rb:35

brew search falls back to a GitHub tap search when no formula is found
Requires network connection.
./test/cmd/search_spec.rb:11

Finished in 2 minutes 51.1 seconds (files took 4.39 seconds to load)
291 examples, 0 failures, 6 pending
...........................................................................................................
Finished in 3 minutes 37.2 seconds (files took 4.43 seconds to load)
291 examples, 0 failures
....................................................................................................................................................................................................................................................................................................................................
Pending: (Failures listed here are expected and do not affect your suite's status)

brew services allows controlling services
Requires network connection.
./test/cmd/services_spec.rb:4

Utils#self.svn_remote_exists? when svn is available returns true when remote exists
Requires network connection.
./test/utils/svn_spec.rb:35

Utils::git_remote_exists? when git is available returns true when git remote exists
Requires network connection.
./test/utils/git_spec.rb:133

Finished in 4 minutes 43.3 seconds (files took 4.48 seconds to load)
613 examples, 0 failures, 3 pending
...........................................................*......................................................................................................
Pending: (Failures listed here are expected and do not affect your suite's status)

brew pull fetches a patch from a GitHub commit or pull request and applies it
Requires network connection.
./test/dev-cmd/pull_spec.rb:10

Tap #private?
HOMEBREW_GITHUB_API_TOKEN is required
./test/tap_spec.rb:186

Finished in 12 minutes 14 seconds (files took 4.29 seconds to load)
279 examples, 0 failures, 2 pending
2780 examples, 0 failures, 24 pendings
Took 738 seconds (12:18)


Connect SMCE to the prototype app

We will be continuously connecting the application to the SMCE simulator and have multiple tasks where we will be connecting different parts of the application to the simulator.