Error initializing lean CLI

Expected Behavior
Following the Lean CLI install, expected it to work
Actual Behavior
'lean.json' not found
Traceback (most recent call last):
  File "/Users/frankcastellucci/signal/lean-play/env/bin/lean", line 5, in <module>
    from lean.main import main
  File "/Users/frankcastellucci/signal/lean-play/env/lib/python3.9/site-packages/lean/main.py", line 95, in <module>
    from lean.commands import lean
  File "/Users/frankcastellucci/signal/lean-play/env/lib/python3.9/site-packages/lean/commands/__init__.py", line 23, in <module>
    from lean.commands.gui import gui
  File "/Users/frankcastellucci/signal/lean-play/env/lib/python3.9/site-packages/lean/commands/gui/__init__.py", line 18, in <module>
    from lean.commands.gui.start import start
  File "/Users/frankcastellucci/signal/lean-play/env/lib/python3.9/site-packages/lean/commands/gui/start.py", line 18, in <module>
    import tkinter
  File<EMAIL_ADDRESS>line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

Potential Solution
Just starting out with this, I could only guess without any insight
Reproducing the Problem
mkdir lean-play && cd lean-play
python3 -m venv env
source env/bin/activate
pip install lean
lean init

This produces the error above
System Information
macos BigSur 11.6.2
python: 3.9.9
Checklist

[x] I have completely filled out this template
[ ] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

Hey @FrankC01! Have you taken a look at https://github.com/QuantConnect/lean-cli/pull/46/files ?


{% data foo.bar.meaning_of_life %}  {% data foo.bar.nested.values.too %}

Looks like a test or spam, so closing.


Does not support paste of monetary values

When pasting input that contains a prefix currency symbol (e.g., $5), the display shows "Invalid input". We should not treat this as invalid input, but instead trim away prefix currency symbols and treat them as numerical values.

Hi I can take this one but can you clarify which currency symbols should be trimmed away? Should all world currency symbols be trimmed and if so is there an official world currency list that should be used for reference?

Awesome! Thanks for taking a look. At a minimum, I think we should support trimming the currency symbols supported by the Windows keyboard:

yen or yuan (¥)
unspecified currency sign (¤)
Ghanaian cedi (₵)
dollar or peso ($)
colón (₡)
won (₩)
shekel (₪)
naira (₦)
Indian rupee (₹)
pound (£)
euro (€)

It should also trim commas, ex. 123,456.78.

I believe commas are already trimmed but are then formatted back in at some point. I'm having troubles finding where that is done at the moment. For example if you type in 1000 it will get formatted to 1,000.

@grochocki, I have a question about the behavior here.  When pasted into Currency Converter, it feels like the units should be switched to the same monetary unit.  Separate issue or same?

@danbelcher-MSFT I like the idea, but let's treat that as a separate issue.


Starting containers should not be considered for load balancing on service upscaling

Output of docker version:
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:
 OS/Arch:      linux/amd64
 Experimental: true

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:
Containers: 58
 Running: 3
 Paused: 0
 Stopped: 55
Images: 41
Server Version: 1.12.1
Storage Driver: devicemapper
 Pool Name: docker-8:1-524491-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 1.275 GB
 Data Space Total: 107.4 GB
 Data Space Available: 106.1 GB
 Metadata Space Used: 4.481 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.143 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: active
 NodeID: REDACTED
 Is Manager: true
 ClusterID: REDACTED
 Managers: 1
 Nodes: 1
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: REDACTED
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.10.0-327.28.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 5.671 GiB
Name: REDACTED
ID: REDACTED
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 58
 Goroutines: 162
 System Time: REDACTED
 EventsListeners: 3
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-ip6tables is disabled
Experimental: true
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):
VPS (KVM)
Steps to reproduce the issue:

Create a Dockerfile for a slow-starting container image, e.g. with sleep (or a Java + Spring application), with a running HTTP server, exposed port, and health check (picked dockercloud/hello-world here):
FROM dockercloud/hello-world

RUN apk add --update curl && \
    rm -rf /var/cache/apk/*

HEALTHCHECK --interval=1m --timeout=3s \
    CMD curl -f http://<IP_ADDRESS>:80/ || exit 1

CMD sleep 20 && php-fpm -d variables_order="EGPCS" && (tail -F /var/log/nginx/access.log &) && exec nginx -g "daemon off;"

...and create the slow-container image:
# docker build -t slow-container .

Create a slow-service:
# docker service create --publish 8080:80 --name slow-service --replicas=1 slow-container
ev070x9sh8el7frmqw57v97ts

You may want to ensure that the health check is working properly, which indicates container as starting first:
# docker ps
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS                            PORTS               NAMES
91cc5a672b24        slow-container:latest                       "/bin/sh -c 'sleep 20"   2 seconds ago       Up 1 seconds (health: starting)   80/tcp              slow-service.1.cqupqtrfeiw9xyhumr6q5za6w

The status becomes healthy after some time:
# docker ps
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS                    PORTS               NAMES
91cc5a672b24        slow-container:latest                       "/bin/sh -c 'sleep 20"   2 minutes ago       Up 2 minutes (healthy)    80/tcp              slow-service.1.cqupqtrfeiw9xyhumr6q5za6w

Ensure service is responding properly to HTTP requests:
# while true; do curl -s --show-error -I http://<IP_ADDRESS>:8080 | head -n 1; sleep 1; done
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
^C

Scale the service to two nodes:
# docker service scale slow-service=2
slow-service scaled to 2

Ensure the new container is in starting state (# docker ps) and run the HTTP check against the slow-service again:
# while true; do curl -s --show-error -I http://<IP_ADDRESS>:8080 | head -n 1; sleep 1; done
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
curl: (7) Failed connect to <IP_ADDRESS>:8080; Connection refused
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
^C

Finally, ensure the new container is healthy now (# docker ps).

Describe the results you received:
Obviously, the new container (created due to upscaling) was considered for load balancing immediately after it was created. This behavior causes failures of every 2nd connection to the service on consumer side.
Accordingly, upscaling from 1 to 5 tasks would cause failures in 4 of 5 requests.
Describe the results you expected:
When HEALTHCHECK is defined in Dockerfile, new containers should not participate on load balancing as long as their status is starting.
Additional information you deem important (e.g. issue happens only occasionally):
The issue can be reproduced on every upscaling. Might be related to #25464.

cc @dongluochen

Seems related to https://github.com/docker/swarmkit/issues/1328

+1. This issue also happens when updating a service with a new image version. I imagine the temporary work around is to set the --endpoint-mode to dnsrr and use a third-party load-balancer such as HAProxy or Nginx to do the health-check trick.

Looks like related / duplicate of https://github.com/docker/docker/issues/26067

Er, I meant https://github.com/docker/docker/issues/24092

Great, seems to be fixed in 1.13.0-rc1. Will double check with final release once again and close the ticket. Thanks @dongluochen!

Tested with 1.13.0-rc6 and it works as expected!

Great, thanks all!

I just downloaded the master for linux
https://master.dockerproject.org/linux/amd64/docker
Docker version 1.14.0-dev, build a7c3389
when scaling containers with status starting are still shown with
dig tasks.service

@krasi-georgiev I cannot reproduce the issue you reported. Can you show how to reproduce your issue?
$docker service scale test2=8
test2 scaled to 8

$ docker service ps test2
ID            NAME     IMAGE                      NODE               DESIRED STATE  CURRENT STATE               ERROR  PORTS
qvcx08gd459a  test2.1  dongluochen/simpleweb:2.0  ip-172-19-147-51   Running        Running about a minute ago
fidf3dfc2wrc  test2.2  dongluochen/simpleweb:2.0  ip-172-19-241-146  Running        Running about a minute ago
lvtximi2juvt  test2.3  dongluochen/simpleweb:2.0  ip-172-19-241-146  Running        Starting 5 seconds ago
ui6qmz6s9lh0  test2.4  dongluochen/simpleweb:2.0  ip-172-19-241-145  Running        Starting 5 seconds ago
ue85v2fka8e9  test2.5  dongluochen/simpleweb:2.0  ip-172-19-147-51   Running        Starting 6 seconds ago
bx0wz4fn4yoc  test2.6  dongluochen/simpleweb:2.0  ip-172-19-241-145  Running        Running 38 seconds ago
r8fqnii28fel  test2.7  dongluochen/simpleweb:2.0  ip-172-19-241-146  Running        Starting 5 seconds ago
yl7vmbjglbdp  test2.8  dongluochen/simpleweb:2.0  ip-172-19-241-145  Running        Starting 5 seconds ago

-- docker exec on a different container in the same network
/ # nslookup tasks.test2
nslookup: can't resolve '(null)': Name does not resolve

Name:      tasks.test2
Address 1: <IP_ADDRESS> test2.6.bx0wz4fn4yoc77qgs0rgxye18.tnet1
Address 2: <IP_ADDRESS> test2.2.fidf3dfc2wrcine0b6lqj1pr3.tnet1
Address 3: <IP_ADDRESS> test2.1.qvcx08gd459axzw9rjtc2swe1.tnet1

$ docker service ps test2
ID            NAME     IMAGE                      NODE               DESIRED STATE  CURRENT STATE                   ERROR  PORTS
qvcx08gd459a  test2.1  dongluochen/simpleweb:2.0  ip-172-19-147-51   Running        Running about a minute ago
fidf3dfc2wrc  test2.2  dongluochen/simpleweb:2.0  ip-172-19-241-146  Running        Running about a minute ago
lvtximi2juvt  test2.3  dongluochen/simpleweb:2.0  ip-172-19-241-146  Running        Running 1 second ago
ui6qmz6s9lh0  test2.4  dongluochen/simpleweb:2.0  ip-172-19-241-145  Running        Running less than a second ago
ue85v2fka8e9  test2.5  dongluochen/simpleweb:2.0  ip-172-19-147-51   Running        Running 2 seconds ago
bx0wz4fn4yoc  test2.6  dongluochen/simpleweb:2.0  ip-172-19-241-145  Running        Running 43 seconds ago
r8fqnii28fel  test2.7  dongluochen/simpleweb:2.0  ip-172-19-241-146  Running        Running less than a second ago
yl7vmbjglbdp  test2.8  dongluochen/simpleweb:2.0  ip-172-19-241-145  Running        Running 1 second ago

/ # nslookup tasks.test2
nslookup: can't resolve '(null)': Name does not resolve

Name:      tasks.test2
Address 1: <IP_ADDRESS> test2.4.ui6qmz6s9lh0j3jmcijiiueqv.tnet1
Address 2: <IP_ADDRESS> test2.2.fidf3dfc2wrcine0b6lqj1pr3.tnet1
Address 3: <IP_ADDRESS> test2.6.bx0wz4fn4yoc77qgs0rgxye18.tnet1
Address 4: <IP_ADDRESS> test2.5.ue85v2fka8e9sg0q8509brjl9.tnet1
Address 5: <IP_ADDRESS> test2.7.r8fqnii28felg77o8cqyydavi.tnet1
Address 6: <IP_ADDRESS> test2.1.qvcx08gd459axzw9rjtc2swe1.tnet1
Address 7: <IP_ADDRESS> test2.3.lvtximi2juvt4l9r65eohhech.tnet1
Address 8: <IP_ADDRESS> test2.8.yl7vmbjglbdp7jsqcujicc7yz.tnet1

strange in my setup it does it every time
Linux debian8Dev 4.8.0-0.bpo.2-amd64 #1 SMP Debian 4.8.11-1~bpo8+1 (2016-12-14) x86_64 GNU/Linux
debian 8.6
look at the video
https://screencast.com/t/g0QPmB5CT1o

There could be a difference between dig and nslookup though; http://unix.stackexchange.com/questions/93808/dig-vs-nslookup

ok I will test it with nslookup ,
dig +short is so convenient as it returns a clean output and no need to parse it.

There still may be an issue at hand, but it would be interesting to see if it occurs only with dig (and not with nslookup 👍

I use dig and get the same result. Containers in starting state are not added to DNS rotation. I use a monitor on the same network as the target service to run dig, and scale my service up/down to validate.
@krasi-georgiev Just want to validate that you run docker daemon at 1.14.0-dev, build a7c3389. You can find that with docker version and look at Server. If you are running 1.14.0-dev, can you send use output from docker inspect #container-id#, where container-id is a container in starting state but shown up in DNS rotation.

@dongluochen  thanks for the smart pointer , the problem was that I was following this tutorial and completely forgot that the docker daemon is now separate to only upgraded the docker client.
https://docs.docker.com/v1.5/contributing/devenvironment/
I will open a pull request to update the docs

just now I realised that I was looking at the wrong docs for the older docker version.


Update Blazor Identity scaffolding guidance

Fixes #32351
Notes ...

There were a couple of NITs on the RCL naming: It should be all caps ("Razor Class Library") only when referring directly to the project template. Otherwise, it appears with a proper adjective for "Razor" and lowercase "class library" ("Razor class library") ... and the acronym "RCL" after first mention is fine. This is per DR's instructions ... I lost the argument on it 🙈😆.
For Blazor, the Identity components are all just dumped into the app. There's no further pick-and-choose scaffolding. Therefore, there's only a Scaffold Identity into a Blazor project section being added here.
Prior Blazor coverage for <8.0 is fine in its present form.
The lead-in remarks for 8.0+ must change for Blazor, so I created a pair of sections at the top of the article. It might be possible to combine them, but perhaps this is OK like this. See what you think.
DR asked me to use the Connected Services UI for EF Core database migrations in the upcoming Blazor tutorial, not the CLI/PS commands. I did that here, but I only did it for the Blazor section. Would you like me to copy-paste that for the 8.0+ RP/MVC coverage?
Because this article doesn't have VSC coverage, I didn't add that. If this article ever gets RP/MVC VSC coverage, I can supply the text for the 8.0+ BWA scenario. I'll be 👂 for a ping if the article ever adopts VSC coverage.

Internal previews

📄 File
🔗 Preview link

aspnetcore/razor-pages/ui-class.md
Create reusable UI using the Razor class library project in ASP.NET Core

aspnetcore/security/authentication/scaffold-identity.md
Scaffold Identity in ASP.NET Core projects

@Rick-Anderson ... I think all that I needed to do was update the migrations.md INCLUDE file with the Connected Services UI steps, using the migration name that you had there (CreateIdentitySchema).
I'm going to sleep 🛌💤 on this and make a final edit pass in the morning.


[Bug]: "The requested resource could not be found" on video upload And does not return video info on success

Version
1.2.3
Environment that reproduces the issue
Device: Pixel 5 mobile and emulator
Flutter version: 3.22.1
Is it reproducible in the example application?
Not tested
Reproduction steps

select a video
upload it using "ApiVideoUploader.uploadPart" or "ApiVideoUploader.upload"
script used to upload video

 ApiVideoUploader.setApiKey('API_KEY');
  ApiVideoUploader.setChunkSize(1024 * 1024 * 5); // 5mb chunk size
   final session = ApiVideoUploader.createProgressiveUploadSession(
        _generateRandomString(10),
      );
      final video = await session.uploadPart(
        videoPath,
        onProgress: (progress) {
          EasyLoad.progress(
            percentage: progress,
            message: 'Uploading ${(progress * 100).toStringAsFixed(2)}%',
          );
        },
      );
 print(video)

Expected result

There should not be any error like that
On success, it should return video info

Actual result

on success, you see an error message in console "Error: PlatformException(java.lang.UnsupportedOperationException, Not Found: The requested resource could not be found., java.lang.UnsupportedOperationException: Not Found: The requested resource could not be found."
I do not get the uploaded video info

Additional context
No response
Relevant logs output
Full error message:
[log] LOG => _uplaodVideoToAPiVideo() Error: PlatformException(java.lang.UnsupportedOperationException, Not Found: The requested resource could not be found., java.lang.UnsupportedOperationException: Not Found: The requested resource could not be found.
at video.api.flutter.uploader.UploaderModuleImpl$uploadPartAndObserve$4.invoke(UploaderModuleImpl.kt:346)
at video.api.flutter.uploader.UploaderModuleImpl$uploadPartAndObserve$4.invoke(UploaderModuleImpl.kt:333)
at video.api.flutter.uploader.utils.LiveDataExtensionsKt$observeTillItFinishes$4.onChanged(LiveDataExtensions.kt:36)
at video.api.flutter.uploader.utils.LiveDataExtensionsKt$observeTillItFinishes$4.onChanged(LiveDataExtensions.kt:20)
at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
at androidx.lifecycle.LiveData$1.run(LiveData.java:93)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7839)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
, null)

Hi,
Your upload token might not be valid. Could you double check it?
See https://docs.api.video/reference/resource-not-found for reference.

From what I understand from your stack trace, your are trying to upload by part and not with uploadWithUploadToken. Could you provide the real code sample?

Hi,
Your upload token might not be valid. Could you double check it? See https://docs.api.video/reference/resource-not-found for reference.

It is valid. I copied it from api.video dashboard and the selected video does gets uploaded to the videos section in api.video. It just does not return any response and shows that error in console

From what I understand from your stack trace, your are trying to upload by part and not with uploadWithUploadToken. Could you provide the real code sample?

THis is the exact code i am using

From what I understand from your stack trace, your are trying to upload by part and not with uploadWithUploadToken. Could you provide the real code sample?

Thank you @ThibaultBee, that error was on .upload and .uploadPart functions.
But still
the "video info in return" issue is in the .uploadWithUploadToken too.
final video = await ApiVideoUploader.uploadWithUploadToken(
        'UPLOAD_TOKEN',
        pickedVideoPath,
        onProgress: (progress) {
          EasyLoad.progress(
            percentage: progress,
            message: 'Uploading ${(progress * 100)}%',
          );
        },
      );
 print(video)

About your first question, the reason is because the videoId you provide to createProgressiveUploadSession is incorrect. VideoId are given by api.video platform.
To create a videoId, see https://docs.api.video/reference/api/Videos#create-a-video-object
Also, it is not secure to store an API key in an application, see https://docs.api.video/sdks/security
Using an upload token is a better practice but it should not be store in your app as you won't be able to renew if needed.
For your uploadWithUploadToken snippet, could you provide the exact stacktrace?

Here is the stacktrace for upload with token
I/OpenGLRenderer(12078): Davey! duration=21895ms; Flags=1, FrameTimelineVsyncId=25294, IntendedVsync=14184051429411, Vsync=14184051429411, InputEventId=0, HandleInputStart=14184052154706, AnimationStart=14184052155378, PerformTraversalsStart=14184052155623, DrawStart=14184052476069, FrameDeadline=14184084762743, FrameInterval=14184052149916, FrameStartTime=16666666, SyncQueued=14184053850563, SyncStart=14184054098675, IssueDrawCommandsStart=14184055248219, SwapBuffers=14184066646980, FrameCompleted=14205947674899, DequeueBufferDuration=1163905, QueueBufferDuration=848550, GpuCompleted=14205947674899, SwapBuffersCompleted=14184074171773, DisplayPresentTime=4294967295,
I/ExoPlayerImpl(12078): Init 39001dc [AndroidXMedia3/1.3.1] [emulator64_x86_64_arm64, sdk_gphone64_x86_64, Google, 31]
I/DMCodecAdapterFactory(12078): Creating an asynchronous MediaCodec adapter for track type video
I/Codec2Client(12078): Available Codec2 services: "default" "software"
I/CCodec  (12078): setting up 'default' as default (vendor) store
I/CCodec  (12078): Created component [c2.android.mpeg4.decoder]
I/CCodecConfig(12078): query failed after returning 9 values (BAD_INDEX)
I/MediaCodec(12078): MediaCodec will operate in async mode
I/MediaCodec(12078): [c2.android.mpeg4.decoder] setting surface generation to 12367873
I/CCodecConfig(12078): query failed after returning 9 values (BAD_INDEX)
I/CCodecBufferChannel(12078): [c2.android.mpeg4.decoder#812] Created output block pool with allocatorID 18 => poolID 60 - OK
I/DMABUFHEAPS(12078): Using DMA-BUF heap named: system
I/DMCodecAdapterFactory(12078): Creating an asynchronous MediaCodec adapter for track type audio
I/CCodec  (12078): setting up 'default' as default (vendor) store
I/CCodec  (12078): Created component [c2.android.aac.decoder]
I/CCodecConfig(12078): query failed after returning 19 values (BAD_INDEX)
I/MediaCodec(12078): MediaCodec will operate in async mode
I/CCodecConfig(12078): query failed after returning 19 values (BAD_INDEX)
I/CCodecBufferChannel(12078): [c2.android.aac.decoder#823] Created output block pool with allocatorID 16 => poolID 61 - OK

Have you set videoId parameter? Leave to null or don't set if you don't have a videoId.

When i dont set videoId, I dont get the error. still not getting the video response
Stacktrace:
I/OpenGLRenderer(12078): Davey! duration=326459ms; Flags=1, FrameTimelineVsyncId=26613, IntendedVsync=14304968091241, Vsync=14304968091241, InputEventId=127232446, HandleInputStart=14304969795673, AnimationStart=14304969796549, PerformTraversalsStart=14304969796855, DrawStart=14304995569777, FrameDeadline=14305001424573, FrameInterval=14304969770203, FrameStartTime=16666666, SyncQueued=14304995963994, SyncStart=14304996412770, IssueDrawCommandsStart=14304996545587, SwapBuffers=14304997319128, FrameCompleted=14631428487287, DequeueBufferDuration=2027509, QueueBufferDuration=741862, GpuCompleted=14631428487287, SwapBuffersCompleted=14305000684932, DisplayPresentTime=0,
I/ExoPlayerImpl(12078): Init 9d896f8 [AndroidXMedia3/1.3.1] [emulator64_x86_64_arm64, sdk_gphone64_x86_64, Google, 31]
I/DMCodecAdapterFactory(12078): Creating an asynchronous MediaCodec adapter for track type video
I/CCodec  (12078): setting up 'default' as default (vendor) store
I/CCodec  (12078): Created component [c2.android.mpeg4.decoder]
I/CCodecConfig(12078): query failed after returning 9 values (BAD_INDEX)
I/MediaCodec(12078): MediaCodec will operate in async mode
I/MediaCodec(12078): [c2.android.mpeg4.decoder] setting surface generation to 12367876
I/CCodecConfig(12078): query failed after returning 9 values (BAD_INDEX)
I/CCodecBufferChannel(12078): [c2.android.mpeg4.decoder#115] Created output block pool with allocatorID 18 => poolID 66 - OK
I/DMCodecAdapterFactory(12078): Creating an asynchronous MediaCodec adapter for track type audio
I/CCodec  (12078): setting up 'default' as default (vendor) store
I/CCodec  (12078): Created component [c2.android.aac.decoder]
I/CCodecConfig(12078): query failed after returning 19 values (BAD_INDEX)
I/MediaCodec(12078): MediaCodec will operate in async mode
I/CCodecConfig(12078): query failed after returning 19 values (BAD_INDEX)
I/CCodecBufferChannel(12078): [c2.android.aac.decoder#227] Created output block pool with allocatorID 16 => poolID 67 - OK
I/WM-Processor(12078): Moving WorkSpec (2df38861-53f3-42e7-bac7-1ebe12c3d029) to the foreground
I/WM-SystemFgDispatcher(12078): Started foreground service Intent { act=ACTION_START_FOREGROUND cmp=com.livevibe.apps.dev/androidx.work.impl.foreground.SystemForegroundService (has extras) }
I/WM-WorkerWrapper(12078): Worker result SUCCESS for Work [ id=2df38861-53f3-42e7-bac7-1ebe12c3d029, tags={ video.api.uploader.api.work.workers.UploadWorker, android-video-uploader, (token=to4OCXhjTB2lfrzqmF3swNih) } ]
I/WM-SystemFgDispatcher(12078): Stopping foreground service

Exact code i am using
void _uploadVideoToAPiVideo(String videoPath) async {
    try {

      final video = await ApiVideoUploader.uploadWithUploadToken(
        'UPLOAD_TOKEN',
        videoPath,
        onProgress: (progress) {
          EasyLoad.progress(
            percentage: progress,
            message: 'Uploading ${(progress * 100)}%',
          );
        },
      );
      log('LOG => _uplaodVideoToAPiVideo() Success: ${video.videoId} | ${video.assets?.mp4} | ${video.assets?.player}');
    } on Exception catch (e) {
      log('LOG => _uplaodVideoToAPiVideo() Exception: $e');
    } catch (e) {
      log('LOG => _uplaodVideoToAPiVideo() Error: $e');
    } finally {
      EasyLoad.dismiss();
    }
  }

Do you have anything after I/WM-SystemFgDispatcher(12078): Stopping foreground service?
Could you test on the provided example?

Stopping foreground service is the last line

the example seems to return the video object in response

when i use the same upload code inside my function _uploadVideoToAPiVideo, it does not print out the video

I put your code in the example. I get:
I/WM-SystemFgDispatcher(23622): Stopping foreground service
[log] LOG => _uplaodVideoToAPiVideo() Success: viXXXXX | https://vod.api.video/vod/viXXXXX/mp4/source.mp4 | https://embed.api.video/vod/viXXXXX

So it works.

let me check that again

even after removing the EasyLoad part, it does not seem to log the video info in my code

Is there something in your application that could unregister workmanager observer, live data or play for livecycle?
As it works with the example, there is definitely something in your application that changes the behavior of the uploader, thus it is almost impossible to assist you with this issue.


Timestamps & total time

Current
Quened

Pending

Pending

InProgress

Succeeded

Proposed:
[11:36] Queued
[11:37] Pending
[11:38] Pending
[11:39] InProgress
[11:40] Succeeded

Total Time: 4 minutes, 30 seconds.

Needs to occur on all output, but output from commands is direct to console. Should re-route calls to a formatting function before outputting, as well as check start time and end time in main.go, and output the difference once the command is finished executing.

Todo:

remove file list from deploy
convert all errors printed to use color
change all printlines to use timestamp
total time from start of command to end of command

Resolved by https://github.com/massmep/env/commit/63bb86582326cc031144400f5d63d428cd7deebf


WARNING: unable to extract html5 player;

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--list-format', 'https://www.youtube.com/watch?v=zh0CiZ4ZGJI']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.8
[debug] Proxy map: {}
[youtube] Setting language
[youtube] zh0CiZ4ZGJI: Downloading webpage
[youtube] zh0CiZ4ZGJI: Downloading video info webpage
[youtube] zh0CiZ4ZGJI: Extracting video information
[youtube] zh0CiZ4ZGJI: Encrypted signatures detected.
WARNING: unable to extract html5 player; please report this issue on http://yt-dl.org/bug
[youtube] {22} signature length 42.43, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'/yts/jsbin/player-vflZ_L_3c/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'/yts/jsbin/player-vflZ_L_3c/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 170, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 860, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 489, in _decrypt_signature
u'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'/yts/jsbin/player-vflZ_L_3c/en_US/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

You are using an outdated version of youtube-dl. Read this FAQ entry if you have troubles updating.


Adding tm_scope for REBOL language and removing REBOL from LICENSE_WHITE...

...LIST as now is license available in the Sublime-REBOL project.

This would probably need Grammar submodule update to pass the test. The license is in the project now: Oldes/Sublime-REBOL@102402f

Could you update it in this pull request?

What do you mean with the: "Could you update it in this pull request?" ?

I mean could you update the submodule for the Rebol grammar?
Otherwise, it should be updated with the next release :-)

Unfortunately I don't know how to do it.. To be honest, I was not even able to pull the project with submodules on my Windows, because of file names used in many submodules (I had to exclude submodules).

:+1: thanks @Oldes.

Thank you!


FIX: ISSUE NO 343

Skipping the tasks related to hipersocket when installation_type is not lpar

#343

@AmadeusPodvratnik yes #342  is the same as issue #343
This fix will help to overcome

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


[RFC] Adopts readonly BaggageContext (Meh for composition)

This is a "minimal changes" adoption of Context.
It is sub optimal I believe, and we should rather adopt: https://github.com/swift-server/swift-aws-lambda-runtime/pull/167
I post both so they can be compared. The CoW style implementation in #167 is much better and I believe we should adopt that, AND the Context library should adopt get/set on the Context.baggage. See that issue for more details.


The IBAN parser evaluates the bank code incorrectly for Finland (FI)

Describe the bug
The IBAN parser evaluates the bank code incorrectly for Finland (FI)
To Reproduce
IBAN: FI4017453000182859 result bank code is 174
IBAN: FI2840554920113105 result bank code is 405
Expected behavior
IBAN: FI4017453000182859 result bank code is 174530
IBAN: FI2840554920113105 result bank code is 405549
IbanNet library/version
IbanNet 5.16.0
.NET runtime
.NET Framework 4.6.2
Operating system
Windows 10
Additional context

So this is yet another case of the official registry being wrong (for more than 4yrs no less), kinda depressing... 🙈
I'm just loading the information from their spec but have run into issues such as this countless of times.
Anyway, should be an easy fix via a record patch during code gen.


How does this library differ from Veux State

@acrolink , as far as I know, Vuex State help you pass data more easily without bussing or creating properties or other ugly process that makes your code very unreadable and hard to follow. When you refresh that data you stored with Vuex gets reseted to the default value. vue-cookie goal is to help you store data that is needed to persist throughout the session. Other approach you can use without using the vue-cookie is to use the vue-resource and play with the urls, like:
url/:id
and when you refresh you can fetch that :id and do something with it.
I'm sorry if I give you the wrong information. This is my best answer I can provide you.

@juanr2001 One limitation I had noticed with Vuex State is lack of data persistence on page navigation (between pages). As you said, using cookies solves that issue. So, would you recommend using this library to store say shopping cart items before checkout on a commerce site?


angular 4 plugin is available?

Hi,
I am working on angular 4 project. I like angular-pdfjs-viewer , Now i need to do the same with angular 4 is there is any way i can easily migrate and use this plugin.

+1

+1

+1

Rather than waiting for an update, I created an angular 2+ (Version 2 to version 6) plugin. Meanwhile, feel free to use it. Url is ng2-pdfjs-viewer.


terminal.integrated.accessibleViewPreserveCursorPosition: false still setting cursor position

Testing #196124

set terminal.integrated.accessibleViewPreserveCursorPosition: false
alt-f1, then navigate to the middle of the text.
escape, then alt-f1 again.
Cursor position persists from last time. :bug:

I also notice that the default cursor position is at the beginning:

I get this when I navigate to another accessibility menu and back to the original. Since the TPI said the accessible view always opens with the cursor on the last line of the buffer when cursor position is not preserved, does that mean that the default position should be at the end of the text?

Sorry that this was unclear. Maybe I should tweak the setting description as this only applies to the terminal accessible view - not the accessible help dialog.

I think the setting description is clear already here that it's the terminal's accessible view - not the terminal help dialog.


ord indexing error

Getting a error when indexing blocks:
ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214

Ah yeah I had the same and now it's
ord git:(master) ✗ cargo run wallet inscribe inscription/galoisfield.btc.txt
    Finished dev [unoptimized + debuginfo] target(s) in 1.84s
     Running `target/debug/ord wallet inscribe inscription/galoisfield.btc.txt`
error: JSON-RPC error: transport error: Couldn't connect to host: Broken pipe (os error 32)

Obviously my bitcoind is running it's since more than 1 week I can't finish indexing for these both reasons !!
I hope that we will find solutions

getting the same error
Getting a error when indexing blocks:
ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214

root@docker-desktop:~/ord/target/release# ./ord --rpc-url <IP_ADDRESS> --cookie-file ~/ord/.cookie --index ~/.local/share/ord/index0.5.1.redb info

[indexing blocks] 767429/778345[2023-02-26T11:36:53Z ERROR ord::index::updater] Couldn't receive txs error trying to connect: tcp connect error: Connection refused (os error 111)
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214

Hitting this too.

You need to specify the port for rpc-url as well. By default it's 8332, so it would be <IP_ADDRESS>:8332

That fixed the issue, thanks

Howdy, similar issue here (same tx ID), but not an RPC connection issue described above.
Running a fully synced Bitcoin Core v22.0.0 on Ubuntu. Compiled ord 0.5.1 from source. Began indexing, ran up to 765k block fast and without errors, then bombed (I didn't catch the exact message, but it was similar to this one).
Started researching, turned txindex=1, then rest=1 on for bitcoind - same error. After googling by tx ID found this thread ;-)
The block it originally bombed on was 767430 (same as here) and same tx ID a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
Turned debug on, went past block 767430, now bombed on 767433 trying to fetch the same tx ID. When rerunning the same command keep getting the error on the same tx ID, but each time claiming a different [prior] block that supposedly had already been indexed.
Tried looking up this tx via ordinals.com explorer - it finds it, but not clear [to me ;-)] what block it really belongs to.
My hunch is maybe either the ord index got corrupt when being built or somehow my local copy of the blockchain is corrupt (how's that possible?! - bitcoind continues interacting with peers fine). But what a coincidence ord needing to fetch more info on exactly the same tx and not finding it!
Anyhow, here are some logs. Appreciate any hints!
[2023-02-27T18:47:06Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockhash [767429]
[2023-02-27T18:47:06Z INFO  ord::index::updater] Block 767428 at 2022-12-14 20:12:25 UTC with 0 transactions…
[2023-02-27T18:47:06Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-27T18:47:06Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockheader ["00000000000000000002b35aef66eb15cd2b232a800f75a2f25cedca4cfe52c4",false]
[2023-02-27T18:47:06Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockhash [767430]
[2023-02-27T18:47:06Z INFO  ord::index::updater] Block 767429 at 2022-12-14 20:21:27 UTC with 0 transactions…
[2023-02-27T18:47:06Z INFO  ord::index::updater] Wrote 0 sat ranges from 0 outputs in 0 ms
[2023-02-27T18:47:06Z DEBUG bitcoincore_rpc] JSON-RPC request: getblock ["000000000000000000029730547464f056f8b6e2e0a02eaf69c24389983a04f5",0]
[2023-02-27T18:47:07Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockhash [767431]
[2023-02-27T18:47:07Z DEBUG bitcoincore_rpc] JSON-RPC request: getblock ["0000000000000000000098ecdd4b0d5dd45351e15ca25865a52278d6826483b9",0]
[2023-02-27T18:47:07Z INFO  ord::index::updater] Block 767430 at 2022-12-14 20:32:00 UTC with 2332 transactions…
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connecting to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG hyper::client::connect::http] connected to <IP_ADDRESS>:8332
[2023-02-27T18:47:07Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockhash [767432]
[2023-02-27T18:47:07Z DEBUG bitcoincore_rpc] JSON-RPC request: getblock ["00000000000000000001b471a4b9aa32de5cb794d15eb663ad05db6c848cbd04",0]
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 4209 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG hyper::proto::h1::io] flushed 5672 bytes
[2023-02-27T18:47:07Z DEBUG bitcoincore_rpc] JSON-RPC request: getblockhash [767433]
[2023-02-27T18:47:09Z DEBUG hyper::proto::h1::io] parsed 3 headers
[2023-02-27T18:47:09Z DEBUG hyper::proto::h1::conn] incoming body is content-length (8028 bytes)
[2023-02-27T18:47:09Z DEBUG hyper::proto::h1::conn] incoming body completed
[2023-02-27T18:47:09Z DEBUG hyper::client::pool] pooling idle connection for ("http", <IP_ADDRESS>:8332)
[2023-02-27T18:47:09Z DEBUG hyper::proto::h1::io] parsed 3 headers
[2023-02-27T18:47:09Z DEBUG hyper::proto::h1::conn] incoming body is content-length (8028 bytes)
[2023-02-27T18:47:09Z DEBUG hyper::proto::h1::conn] incoming body completed
[2023-02-27T18:47:09Z DEBUG hyper::client::pool] pooling idle connection for ("http", <IP_ADDRESS>:8332)
[2023-02-27T18:47:09Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
0: ord::index::updater::inscription_updater::InscriptionUpdater::index_transaction_inscriptions
1: ord::index::updater::Updater::update_index
2: ord::index::updater::Updater::update
3: ord::subcommand::index::run
4: ord::subcommand::Subcommand::run
5: ord::main
6: std::sys_common::backtrace::__rust_begin_short_backtrace
7: std::rt::lang_start::{{closure}}
8: core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/ops/function.rs:606:13
std::panicking::try::do_call
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:483:40
std::panicking::try
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:447:19
std::panic::catch_unwind
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panic.rs:137:14
std::rt::lang_start_internal::{{closure}}
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/rt.rs:148:48
std::panicking::try::do_call
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:483:40
std::panicking::try
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panicking.rs:447:19
std::panic::catch_unwind
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/panic.rs:137:14
std::rt::lang_start_internal
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/rt.rs:148:20
9: main
10: __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
11: __libc_start_main_impl
at ./csu/../csu/libc-start.c:392:3
12: _start
catson@fubar:~$ unset RUST_LOG RUST_BACKTRACE
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767421/778548[2023-02-27T18:48:46Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767319/778548[2023-02-27T18:48:52Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767412/778548[2023-02-27T18:48:58Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767426/778548[2023-02-27T18:49:03Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767361/778548[2023-02-27T18:49:17Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767276/778548[2023-02-27T18:49:23Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767359/778548[2023-02-27T18:49:27Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767341/778548[2023-02-27T18:49:30Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767381/778548[2023-02-27T18:49:32Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767338/778548[2023-02-27T18:49:34Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767421/778548[2023-02-27T18:49:38Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214
catson@fubar:~$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767293/778548[2023-02-27T18:49:47Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214

Update:
Tried removing and recreating ord index. Went through very fast (less than 1/2 hr), bombed on block 767365 with the same tx ID.
I thought "well, maybe 767365 is where the transaction whose input was a2df...bd1214's input but no - that transaction (ae692be4fa337daf7dd4e351e6dccd5de0e05fe7cfe8106d1793d3b62dfa278c) is in 767419.
catson@fubar:~/.local/share/ord$ mv index.redb index.redb.bad
catson@fubar:~/.local/share/ord$ ord index
[indexing blocks] ██████████████████████████████████████████████████████████████████████████████████████████████░░ 767365/778555[2023-02-27T20:23:41Z ERROR ord::index::updater] Couldn't receive txs Failed to fetch raw transaction: code -5 message No such mempool transaction. Blockchain transactions are still in the process of being indexed. Use gettransaction for wallet transactions.
error: failed to get transaction for a2df039d22ce84803de677328efe3a2fe82b0102d66c32f899715608babd1214

It says in the error message Blockchain transactions are still in the process of being indexed.. Run bitcoin-cli getindexinfo and wait until it says synced: true.

Gotcha, noobie mistake! I didn't realize that even though the core is in sync with the network, txindex didn't finish building because I just recently turned that flag on. Thanks, Andrew!

when i run command bitcoin-cli getindexinfo it show empty just this : {
}

You need to run bitcoind with txindex=1.

i run bitcoind in the background

how to do that pls ?

Run butcoind -txindex

in any folder ?

i run it on daemon folder and i got this

Yes, it says in the log it is syncing txindex now.

thank you it's running right now the sync has started i just will wait tell it says true that my balance can be showing is that right

I just solve this problem
In addition to the solutions mentioned by others, here's my own key point
1.make sure sync data and bitcoincore in the same folder
2.keep bitcoind.exe running and open a new tab for other command like "ord.exe wallet balance"
then everything goes fine.
hope this help.


Adds font-weight-medium to font weight classes

added font-weight-medium class as requested in Feature Request: Additional Font Weight Classes #23969

Hey there!
Just a heads up, you should be targetting the v4-dev branch and not master

Yeah, try again later with the proper upstream branch.


Issue #473 - Add support for ':missing' modifier within chained search and whole-system search

Issue #473 - Adds support for the ':missing' modifier to be used in chained search and whole-system search.
 Ready to merge.

The token_values_v should be given an alias:
SELECT COUNT(DISTINCT R.LOGICAL_RESOURCE_ID)
FROM Patient_LOGICAL_RESOURCES LR
JOIN Patient_RESOURCES R ON R.RESOURCE_ID = LR.CURRENT_RESOURCE_ID
AND R.IS_DELETED = 'N' WHERE NOT EXISTS (SELECT 1
FROM Patient_TOKEN_VALUES_V WHERE (Patient_TOKEN_VALUES_V .PARAMETER_NAME_ID = 1008
AND Patient_TOKEN_VALUES_V .LOGICAL_RESOURCE_ID = LR.LOGICAL_RESOURCE_ID))
;
It avoids ambiguity if the query is reused/embedded in other queries.
Also, there's a space after the token_values_v name which is possibly there because it should be an alias instead.

The token_values_v should be given an alias:
SELECT COUNT(DISTINCT R.LOGICAL_RESOURCE_ID)
FROM Patient_LOGICAL_RESOURCES LR
JOIN Patient_RESOURCES R ON R.RESOURCE_ID = LR.CURRENT_RESOURCE_ID
AND R.IS_DELETED = 'N' WHERE NOT EXISTS (SELECT 1
FROM Patient_TOKEN_VALUES_V WHERE (Patient_TOKEN_VALUES_V .PARAMETER_NAME_ID = 1008
AND Patient_TOKEN_VALUES_V .LOGICAL_RESOURCE_ID = LR.LOGICAL_RESOURCE_ID))
;
It avoids ambiguity if the query is reused/embedded in other queries.
Also, there's a space after the token_values_v name which is possibly there because it should be an alias instead.

Hmm... this isn't code I changed, so it was already that way.  But I'll look into it.

Now the token_values_v is given an alias:
SELECT COUNT(DISTINCT R.LOGICAL_RESOURCE_ID)
FROM Patient_LOGICAL_RESOURCES LR
JOIN Patient_RESOURCES R ON R.RESOURCE_ID = LR.CURRENT_RESOURCE_ID
AND R.IS_DELETED = 'N'  WHERE  NOT  EXISTS (SELECT 1
FROM Patient_TOKEN_VALUES_V  AS param0 WHERE (param0.PARAMETER_NAME_ID = 1180
AND param0.LOGICAL_RESOURCE_ID = LR.LOGICAL_RESOURCE_ID))

Additional comments addressed. Ready to merge.


Exposed fields update

I've gone through all the fields and my suggestions are as follows:

[x]  remove the following fields from responses as they provide no usable information:

authored
confirmed
contentType
country
fileAttached
groupId
hidden
privatePublication
profileId
read
searchable
starred
userContext

[ ] investigate source of this field, because it's unclear to me

gbifRegion

[x] rename the following fields in responses

accessed -> discovered
created -> added
createdAt -> published
updatedAt -> modified

@dnoesgaard What's wrong with the gbifRegion field?

I just don't know what it means or what it's based on. It must be derived by the content-crawler somehow...

I hope @fmendezh or @MortenHofft can help us

The gbifRegion field is derived thru the link we have to the "Vocabulary: Countries" content model

But data from Mendeley is it based on?

But what data from Mendeley is it based on?

Sorry, I  reviewed the contentful crawler, not the Mendeley one :)
The region is interpreted from the Mendeley tags, it seems that we tag elements with something like "country_biodiversity" or something similar, and we derived the region from that country

Ok. I don't think this was ever used for anything, but it does seem consistent, e.g. http://api.gbif.org/v1/literature/search?q=cc612d90-460e-3dc9-9cb6-0418de9839dc has two different regions.
We can leave it, if you think it makes sense.


Change Primary Administrator Account

Hi Jay, what is the command to change primary admin account? Been trying to find with no success.
Thanks

This area is for issues / bugs. Please post howto questions to the discussion group:
https://groups.google.com/forum/#!forum/google-apps-manager


Documentation: document the process of adding a custom precompile

SP1 is built to be easily customizable, with the ability for developers to add custom precompiles. The documentation around this is scarce and it would be helpful for there to be better docs around the process of adding a precompile and what steps need taken.

also interested in precompiles, thank you


Script crash when terminal does not support color

When using the script to install all tools using ansible(winrm), the script crash without dowloading.
the exeption is cause because $defaultColor is $null
Cannot convert null to type "System.ConsoleColor" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "Black;DarkBlue;DarkGreen;DarkCyan;DarkRed;DarkMagenta;DarkYellow;Gray;DarkGray;Blue;Green;Cyan;Red;Magenta;Yellow;White".

this si caused by following line (line 232) that could set TestColor to $null
https://github.com/EricZimmerman/Get-ZimmermanTools/blob/c40e8ddc8df5a210c5d9155194e602a81532f23d/Get-ZimmermanTools.ps1#L232-L240
to fix the issue, the condition (line 233) must be change by:
if ($TestColor -eq -1 -or $null -eq $TestColor )

@FormindAPE have you tested this?
FYI, I made a PR with this change so please advise when you can - https://github.com/EricZimmerman/Get-ZimmermanTools/pull/6

please let us know and if its working i can get it signed and deployed.
thanks

This works like a charm !!


Where is the method "get_price_by_type", I can't find it,And where is the "ConnectorBase" Class

Feature Suggestion
Where is the method "get_price_by_type", I can't find it
Impact
Where is the method "get_price_by_type", I can't find it
Additional context
Where is the method "get_price_by_type", I can't find it

And where is the "ConnectorBase" Class

Please refrain from opening tickets not related to feature or enhancement


Add defaultProvider

Closes #154
Description

add defaultProvider

The code LGTM!
However, I think we should add a bit more to the docs to let people know what this feature does. It may be self explanatory, but a bit more would probably be good! However, ill leave this to @BracketJohn to decide!


Cannot link image to something else

Problem
The current markdown -> html doesn't allow link on images.
[![alt text](/storage/assets/Diagram_2_Page_10_thumb.jpg)](/storage/assets/diagram.pdf#10)
is a valid markdown syntax to insert an image, then make a link around it. When doing this, the preview in pagekit will only show a link symbol and not the image.

![alt text](storage/assets/Diagram_2_Page_10_thumb.jpg)

is a workaround, but
![alt text](storage/assets/Diagram_2_Page_10_thumb.jpg)

is not
Technical Details

Pagekit version: 1.0.8
Webserver: nginx
Database: mysql
PHP Version: 7

I think the Markdown isn't the issue here. I quickly tested it on my system, and I can use links on images with Markdown syntax.
What I think is happening is that url rewriting fails because you are using absolute path (indicated by the leading slash. Try to remove the leading slash and see if it works:
[![alt text](storage/assets/Diagram_2_Page_10_thumb.jpg)](storage/assets/diagram.pdf#10)

No result either, I only get the link icon (no alt text, and no the image).
I really think the issue comes from the translation from markdown to html.
here is the markdown/html results I get when trying different options:
Option 1:

![alt text](storage/meetings/Diagram_2_Page_01_thumb.jpg)

translates to

Option 2:
![alt text](storage/meetings/Diagram_2_Page_01_thumb.jpg)

leads to:

    <image-preview index="0"></image-preview>

Option 3:
[![alt text](storage/meetings/Diagram_2_Page_01_thumb.jpg)](storage/meetings/all_meetings.pdf#1)

leads to

    <image-preview index="1"></image-preview>

So what I think happens is that it cannot convert properly the preview image, then link something around it.

Oh, my bad. I have only checked the frontend. There, it works (does it work in the frontend for you?). But you are right, in the editor, this seems to be broken. Apparently, the Markdown renderers that we are using in PHP and JS are diverging...

I did not even checked in front and.. indeed, it works as expected :)
So yes, I presume the difference lies between the Preview renderer and the front renderer.
Thanks!


Add basic HOOMD version check python decorator

This branch has been floating around. Not sure if it is useful or not, so wanted to put it up as a PR and we can decide if we want to merge or close.
Related to #10

When we move to v3, we will be making a clean break in azplugins (major version bump), so we would not need a maximum version check at that point. I think the purpose of this decorator was to stop someone from trying to use a feature in azplugins that was not supported in an older version of HOOMD, but we could also extend it to enforce a max version as well (e.g., if a feature gets deprecated).
I honestly forget why I even wrote this in the first place. My feeling is that it is not going to be that useful, so I would vote to close the PR.


Swift 4 Support

I'm using EPSignature 1.0.3 as a dependency of my private Cocoa Pod.
I've got several other dependencies in my pod spec file, all supporting Swift 4.
I cannot get my pod spec through lint validation if I include EPSignature as a dependency.
I'm getting the following errors when running pod spec lint command:
  - ERROR | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:42:117: error: argument of '#selector' refers to instance method 'onTouchCancelButton()' that is not exposed to Objective-C     - NOTE  | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:103:10: note: add '@objc' to expose this instance method to Objective-C     - ERROR | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:46:113: error: argument of '#selector' refers to instance method 'onTouchDoneButton()' that is not exposed to Objective-C     - NOTE  | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:108:10: note: add '@objc' to expose this instance method to Objective-C     - ERROR | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:48:115: error: argument of '#selector' refers to instance method 'onTouchClearButton()' that is not exposed to Objective-C     - NOTE  | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:144:10: note: add '@objc' to expose this instance method to Objective-C     - ERROR | [iOS] xcodebuild:  EPSignature/Pod/Classes/EPSignatureViewController.swift:60:123: error: argument of '#selector' refers to instance method 'onTouchActionButton' that is not exposed to Objective-C
These errors are related to Swift 3 to Swift 4 conversion.
Is there any expected time for EPSignature to support Swift 4?
Thanks and congrats on your work

Now the library is updated with swift4 in the version 1.0.6. Kindly update your pods. Apologies for late update. 😔


Support In-Context-Learning (ICL) in agents

Scenario: Interactive example selection. More specifically, theAssistantAgent can ask for examples anytime during the interaction with the UserProxyAgent
### Tasks
- [x] Review PR https://github.com/microsoft/FLAML/pull/1056
- [x] Write user code example for the above scenario
- [x] Enable exmaple selection (could start with a vanilla example selection method, e.g., random) in `UserProxyAgent`.

### Tasks: June.10-12
- [ ] Conduct manual initial experiments to verify whether the LLM can request new examples as planned. The hypothesis is that the LLM can use triggers and prompts to evaluate and request examples on its own. We need to determine whether the LLM possesses this capability.
- [ ] Keep in mind and not urgent: We need to consider whether to add the ICL as a "skill" in the AssistantAgent, aligning it with the UserProxyAgent's skills. One possible solution is to include a prompt in the system message when the UserProxyAgent is detected to be working on ICL.

Is the ICL_SYSTEM_MESSAGE a system message for AssistantAgentICL or ICLAgent?

Here is a new design to integrate the ICL into the ProxyAgent.
We first define a function which takes the message (or a list of message) as the input and return a str.
def additional_info(message): # may need history
    return "the content including the exemplars ..."

Then we feed the function and a trigger to the UserProxyAgent.
user = UserProxyAgent(
    name="user",
    human_input_mode="NEVER", # can be automated
    is_termination_msg=lambda x: x.rstrip().endswith("TERMINATE") or x.rstrip().endswith('"TERMINATE".'),
    work_dir="test",
    max_consecutive_auto_reply=10,
    use_docker=False,  # set to True if you are using docker
    augmented_info_provider = additional_info,
    info_trigger = "more_info",
)

Then we build a AssistantAgent with the System Message including the trigger. For example,
ICL_SYSTEM_MESSAGE = """You are a binary classifier.
User will give you one question and two answers. If sol1 is correct, the label is 0. If sol2 is correct, the label is 1.
    I can provide you some train instances with correct answer.
    If you think more information is helpful, please return "more_info".
    If you are sure about the answer, return your label (just 0 or 1, Do not explan) and "stop".
    """

LLMAssistant = AssistantAgent(name="LLMAssistant",
        system_message=ICL_SYSTEM_MESSAGE,
        request_timeout=600, seed=42, config_list=config_list)

LLMAssistant.receive(
    context_str,
    user,
)

Through early experiments, there are several issues:

GPT-4 could follow the instruction of system message, but GPT-3.5 sometimes lost.
The interactive between agents cannot stop until the rounds end.

Other thoughts:

We can consider the ICL as a skill and incorporate the relevant prompt within the AssistantAgent itself.
Considering that the LLM may not always follow instructions, an alternative approach could be to determine whether to introduce new content by processing the messages in different ways, eliminating the need for triggers.

New Method
I propose utilizing a trigger, i.e. "more_info," to prompt the Language Model (LLM) to request the desired exemplars. The prompt is

 +  Besides, I can give you some similar poetry and their authors to help your reasoning, called exemplars.
Case 1: If you are not confident about your answer, or think having more information could help your reasoning, please (1) tell me what kind of exemplars or information do you need (3)  "more_info"
Case 2: If you are very sure about your answer, please (1) explain and (2) put the answer in \boxed{}

When the LLM say  "more_info", we can feed the exemplars, or ask

What kind of exemplars do you like to know? For example, ?

However, it is worth noting that for certain tasks such as math problem-solving, piqa, and others, the LLM often provides an answer without requesting additional information, even when it is unable to arrive at the correct solution.
Findings:
I explored more datasets, and had the following findings.

GPT-4 is more likely to know its confidence and request for more_info than GPT-3.5
GPT models are inclined to seek more information or exemplars in situations where the dataset falls into the category of OOD/private and there is a lack of necessary information required for reasoning.

I found a dataset in OpenEval which elicit the ideal behavior  https://chat.openai.com/share/195c8a66-0734-4977-988d-0dc22fc03cc2. However, this task can be easily solved by asking for the search engine.
Now, we urgently require new datasets that meet the following criteria, preferably before Tuesday:

The current prompt should be able to prompt the LLM to request the new exemplars.
The datasets should be advantageous in terms of providing exemplars.
Utilizing search engines like Bing or Google will not yield satisfactory results.

If we cannot find good use case, we need to change the method then.
I would appreciate if anyone could help to think of the potential datasets these days. @qingyun-wu @LittleLittleCloud @sonichi @levscaut @tongwu2020


vscode搜索功能不好用

搜索没有webstorm的搜索体验好，比如webstorm搜索引入的依赖只需要ctrl鼠标点击就会跳转到这个依赖定义的地方，但是vscode就不行

automatic translation:
"Vscode search function is not good"
"Searching for a search experience without webstorm is good. For example, the dependency introduced by webstorm search only needs ctrl mouse click to jump to the location of this dependency definition, but vscode will not work."
@ydCao Sorry I don't understand what your issue is. Can you please explain clearly?

兄弟还是自己翻译下吧.
vscode本质是个编辑器.要强大的功能找找相关语言的扩展吧.

Sorry, we need to stick with using English in our issues. Please start a new issue in English.


Added test case for a borrowed str

In the code there was a test struct with a &'a str field, but during the derive implementation we must've forgotten to re-enable it

Codecov Report

Merging #441 (e26bd3a) into trunk (f4b4a5d) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            trunk     #441      +/-   ##
==========================================
+ Coverage   61.74%   61.80%   +0.05%
==========================================
  Files          46       46
  Lines        3338     3343       +5
==========================================
+ Hits         2061     2066       +5
  Misses       1277     1277

Impacted Files
Coverage Δ

tests/derive.rs
100.00% <100.00%> (ø)

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 f4b4a5d...e26bd3a. Read the comment docs.


wavebox: 4.5.3 -> 4.5.5

Motivation for this change
Updates to latest version (4.5.5) and cleans up the dependencies.
Things done

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

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

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

@GrahamcOfBorg build wavebox

@rawkode If you make another pr in the future please be sure to use correct commit msg's.
I can see you corrected your pr title but not the actual commit to wavebox: 4.5.3 -> 4.5.5

Will do, @worldofpeace :+1:


bulk collect into and outer apply badly formatted

When formatting a below block I get the following:
declare
  l_array my_array_tab;
begin
  select t.a,
         t.b,
         t.c,
         n.stuff bulk collect
    into l_array
    from some_table s outer apply ( s.nested_tab ) n;
end;
/

I would expect to get:
declare
  l_array my_array_tab;
begin
  select t.a,
         t.b,
         t.c,
         n.stuff
    bulk collect
    into l_array
    from some_table s
    outer apply ( s.nested_tab ) n;
end;
/

or:
declare
  l_array my_array_tab;
begin
  select t.a,
         t.b,
         t.c,
         n.stuff
    bulk collect
      into l_array
    from some_table s
    outer apply ( s.nested_tab ) n;
end;
/

or:
declare
  l_array my_array_tab;
begin
  select t.a,
         t.b,
         t.c,
         n.stuff
    bulk collect into l_array
    from some_table s
    outer apply ( s.nested_tab ) n;
end;
/

I agree, adding a line break before bulk collect would be a simple solution.

I agree, adding a line break before bulk collect would be a simple solution.


meta discussion: jitclass inferred constructor

This is a discussion thread for exploring ideas for inferred contructor for jitclass.
Thus, making the following code or variant of the following possible:
@numba.jitclass   # no need for type spec.
class Shrubbery:
    def __init__(self, x, y):
        self.x = x
        self.y = y

To help start the discussion, it seems likely that we can @overload(Shrubbery) as a callable to make it return a specialized version of Shrubbery instances. For instance, the typing logic in the overload can be analyzing the type needed for attributes x and y.
Another possibility is to require a special method to help with typing, something that is like __new__():
@numba.jitclass
class Herring:
    def __infer__(cls : numba.types.Type, x: numba.types.Type, y: numba.types.Type):
        return specialize_herring_type_for(x, y) # -> Herring type instance

    def __init__(self, x, y):
        ...

ping @hameerabbasi

@sklam Can you tell me briefly what parts of the code this will touch and I'll try to figure it out from there.

I prefer a hybrid approach, __infer__ when asked, otherwise automatic. The reason is that someone may want to store some information (e.g. dtype, compile-time constants) in the type and other information in the actual data.

Apologies for the delay, pretty much all of jitclass is in here: https://github.com/numba/numba/tree/master/numba/experimental/jitclass, base.py is where most of the work is done.


💡[Feature]: Add example for features

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
I would like to add examples and pathways for the feature sub sections.
Use Case
This helps users to quickly go through all the required steps.
Benefits
No response
Add ScreenShots

Priority
Medium
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

I would like to work on this issue i have understood the problem statement and will provide the optimal solution for it


Implement selectionRange request

This allows this VSCode feature to work. I think it might be particularly useful for editing math in Typst.

Thank you!


Inspector error when click on component has percentage styles

React Native 0.43.4

Inspector
Sometimes I inspect iOS app with Inspector for seeking some View.
But when I tapped in some components has percentage style like marginTop: '7%', it has error.
Did anyone have this?

Not sure it percents are allowed. What makes you think they are? Also have you tried upgrading to 0.44.0
npm install --save<EMAIL_ADDRESS>Plus this is really more a react version issue perhaps than native. Check that you have latest version of react installed as well or at least what is in package.json
if not try
npm install --save<EMAIL_ADDRESS>or whatever actually specified in package.json
Let us know if this helps, but I don't know that % is supported.

Thanks.
I'm going to try upgrade React Native 0.44 later because my prj used Navigator but in 0.44, its be deleted and replaced by react-navigation.
Do you have latest version of react native installed ? Any you don't have any trouble when inspect Component with percentage style? like margin, padding with value is %.

I have this issue as well with a percentage on padding when using the inspector. Version 0.45

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.


Support union type literal inheritance

declare type ForegroundColor =
	| 'black'

declare type BackgroundColor =
	| 'bgBlack'

declare type Color = ForegroundColor | BackgroundColor;

should translates to
[<StringEnum>] [<RequireQualifiedAccess>]
type ForegroundColor =
    | Black

[<StringEnum>]
[<RequireQualifiedAccess>]
type BackgroundColor =
    | BgBlack

[<StringEnum>]
[<RequireQualifiedAccess>]
type Color =
    | Black
    | BgBlack

ts2fable generates somethings like:
[<StringEnum>] [<RequireQualifiedAccess>]
type ForegroundColor =
    | Black

[<StringEnum>]
[<RequireQualifiedAccess>]
type BackgroundColor =
    | BgBlack

[<StringEnum>]
[<RequireQualifiedAccess>]
type Color =
    U2<BackgroundColor, ForegroundColor >

But I don't think this is right. For example, in Chalk they exposed the Color type from the package which means user can do:
chalk.Color.Black
// or
chalk.Color.BgBlack

and U2<BackgroundColor, ForegroundColor > doesn't allow that.


[FIX] Added install_script.sh"

add install_script for quick install pypipe -> ppp and update to readme

Thank you for the pull request!
Personally, I believe that an installation script for pypipe is not necessary, as installing pypipe is already very straightforward. I think it's best for users to have the freedom to install pypipe wherever they prefer. What do you think?

Thank you for your feedback.
The current approach is indeed very straightforward, and users should have the freedom to install pypipe in their preferred manner. I agree with your point that this script may not be necessary. Thank you for the work you've done on this interesting repo.


:art: rename action types

[x] review
[x] build
[ ] publish

Coverage remained the same at 100.0% when pulling 667bbdae7ed78798e0e7a6ae643a22f8c5613e69 on events-name into 63e2ba18a91fed3fdd38564421b06766d711718c on master.


fix: Change replicator timestamp to timestamptz

Motivation
This PR changes all timestamp fields in the postgres-replicator example to timestamptz, which preserves the timezone of the timestamp
Saving timestamps without timezones can lead to very tricky and unintended consequences trying to query, especially when developing on localhost
Change Summary
All timestamp postgres types have been replaced with timestamptz. You can see these changes in both migrations
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[ ] PR has a changeset
[x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.
[x] All commits have been signed

Additional Context
This change will require a database wipe and re-index

PR-Codex overview
This PR focuses on updating the data types of timestamp columns in the PostgreSQL schema.
Detailed summary

Updated createdAt, updatedAt, deletedAt, prunedAt, revokedAt, and timestamp columns in various tables from timestamp to timestamptz data type.
Updated created_at, updated_at, deleted_at, pruned_at, revoked_at, and timestamp columns in the README file from timestamp without time zone to timestamp with time zone data type.

The following files were skipped due to too many changes: packages/hub-nodejs/examples/replicate-data-postgres/README.md

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Thank you!