primordic/IssueDupesLite huggingface dataset:
Repository: GoogleChrome/lighthouse-ci

Issue #92: Custom GitHub status check URL for enterprise setups
Created: 2019-11-15T05:26:40Z
In order to use status checks on internal enterprise editions, the status check URL needs to be configurable.

Duplicate issue #61: Status checks not set properly when using Github Actions
Created: 2019-11-11T23:31:50Z
Hey,
I use Github Actions as CI. I set up a Github Token through secrets, everything works well except setting status, it fails with Invalid repo slug "undefined", skipping.
lgci autorun logs:
✅  .lighthouseci/ directory writable
✅  Ancestor hash determinable
Healthcheck passed!

Automatically determined ./public as `staticDistDir`.
Set it explicitly in lighthouserc.json if incorrect.

Started a web server on port 33093...
Running Lighthouse 3 time(s) on http://localhost:33093/index.html
Run #1...done.
Run #2...done.
Run #3...done.
Done running Lighthouse!

Uploading median LHR of http://localhost:33093/index.html...success!
Open the report at https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1573513709814-41442.report.html
GitHub token found, attempting to set status...
Invalid repo slug "undefined", skipping.
Done running autorun.

Closing comment (2019-12-12T16:37:35Z): @ReddytoRumble are you using a private GitHub instance by chance? The status check won't work with anything other than public GitHub right now (private GH tracked by #92)
Also since you're using Jenkins we don't automatically know what the repo is yet (tracked by same work as #88) so you'd need to manually tell lhci what it is.
example:
export LHCI_BUILD_CONTEXT__GITHUB_REPO_SLUG=GoogleChrome/lighthouse-ci
Repository: GoogleChrome/lighthouse-ci

Issue #112: feature request: View Trace button
Created: 2019-11-22T20:10:45Z
We could collect the traces and show a View Trace button in the compare view (or, maybe in core allow a way to view the trace).
Can leverage the new tracing app (https://docs.perfetto.dev/#/) I suspect it should have a way to postMessage a trace file.
This came up when demo'ing LHCI to a user - was a big want.

Duplicate issue #605: Passes Support - for collecting Traces
Created: 2021-05-12T14:03:36Z
Is your feature request related to a problem? Please describe.
It would be helpful if we collect traces along with the reports. I've not quite thought ahead on storing these but it would be pretty handy. We tend to use these already and would be good to keep the same functionality.
Describe the solution you'd like
Pass the Passes object to the lighthouse runner - https://github.com/GoogleChrome/lighthouse-ci/blob/main/packages/cli/src/collect/collect.js#L80.
Describe alternatives you've considered
I don't think there are any alternatives.

Closing comment (2021-05-12T16:41:33Z): I wasn't aware of the --save-assets flag 😮 does this get passed into settings ?

Yes you can. lhci collect -n=1 --settings.saveAssets --url=https://example.com will dump the trace and devtools log in the current working directory. If you just want to process them yourself, you're done :)
The challenge with LHCI is organizing these traces and storing them with upload (tracked by #112)
Repository: GoogleChrome/lighthouse-ci

Issue #86: Add project management UI
Created: 2019-11-15T05:18:47Z
Create project page
 Edit project settings
 Delete project

The second two would require authentication to be added to the server (blocked on #85)

Duplicate issue #126: How to delete project created by wizard command
Created: 2019-12-02T04:35:38Z
I run lighthouse CI in Kubernetes, how to delete project created by wizard command? I can edit the lhci.db in Kubernetes persistent volume to delete the project, is there another official ways?

Closing comment (2019-12-02T14:44:42Z): I can edit the lhci.db in Kubernetes persistent volume to delete the project, is there another official ways?

That's the only way right now. UI to manage projects is tracked by #86, so I'm going to go ahead and close this as a duplicate, but feel free to add any additional information there!
Repository: GoogleChrome/lighthouse-ci

Issue #343: Add friendly names to URLs
Created: 2020-06-04T15:13:57Z
Split from #342 (comment).
It'd be great if you could assign friendly names to the URLs that are stored in LHCI projects. A urlToNameMap per project as Paul suggests might work nicely.

Duplicate issue #349: Add a configurable display name for URLs
Created: 2020-06-17T17:25:49Z
split from discussion on #342 (comment)
It'd be neat to have a project-wide configuration of friendly URL labels like "Homepage (desktop)" or "Checkout" instead of the full ugly query string URL.

Closing comment (2021-02-11T23:42:16Z): is this a dupe of #343 ? 😛
Repository: GoogleChrome/lighthouse-ci

Issue #994: Many new assertion errors giving score 0
Created: 2023-12-18T13:43:15Z
Describe the bug
I haven't changed my assertions and I haven't made any drastic changes to our code and suddenly I get many assertion failures in my tests even though according to the report they are okay.
To Reproduce

Run Lighthouse with preset: lighthouse:no-pwa
npx --yes --package=@lhci/cli@latest -- lhci autorun

Expected behavior
Passed asserts
Logs/Screenshots

Note: Unused javascript has been changed from the preset and it used to pass.
This is the report generated which shows the assets should pass.

Here's the exact same config/code running on 0.12:

Environment (please complete the following information):

OS: Linux
Browser Chrome
Version 11.4.0

Duplicate issue #1001: total-byte-weight started failing but only on the CLI
Created: 2023-12-24T17:30:46Z
FAQ

 Yes, my issue is not about variability or throttling.
 Yes, my issue is not about a specific accessibility audit (file with axe-core instead).

URL
https://othello-rust.web.app/
What happened?
recently the lhci autorun command began giving the following error
       ✘  total-byte-weight failure for minScore assertion
       Avoids enormous network payloads
       https://developer.chrome.com/docs/lighthouse/performance/total-byte-weight/

        expected: >=0.9
           found: 0
      all values: 0, 0, 0

config:
ci:
  collect:
    autodiscover-url-blocklist: /privacy-policy.html
  upload:
    target: "temporary-public-storage"
  assert:
    preset: "lighthouse:recommended"
    assertions:
      csp-xss: "off"
      bf-cache: "warn"
What did you expect?
I would expect the CLI to pass because I do not get an error about "Avoid enormous network payloads" anywhere else. including in the HTML report generated by the CLI
What have you tried?
using the lighthouse inside of chrome and using the lighthouse inside of page speed insights
How were you running Lighthouse?
CLI
Lighthouse Version
0.13.0
Chrome Version
120.0.6099.129
Node Version
v18.12.1
OS
Windows 11 23H2
Relevant log output
https://github.com/nstringham/othello-web-app/actions/runs/7315817257/job/19929865498

Closing comment (2024-05-06T16:20:14Z): Seems very related to #994
Repository: GoogleChrome/lighthouse-ci

Issue #411: Is there a way to get build diff url?
Created: 2020-08-12T15:59:58Z
I would like to post the build diff url to our slack after a build complete, but I either need the build diff url or the build.id to construct the url myself.  Is there a way to get that information?
https://github.com/GoogleChrome/lighthouse-ci/blob/master/packages/cli/src/upload/upload.js#L456

Duplicate issue #412: build diff url
Created: 2020-08-12T16:00:21Z
I would like to post the build diff url to our slack after a build complete, but I either need the build diff url or the build.id to construct the url myself.  Is there a way to get that information?
https://github.com/GoogleChrome/lighthouse-ci/blob/master/packages/cli/src/upload/upload.js#L456

Closing comment (2020-08-12T16:01:29Z): duplicate #411
Repository: GoogleChrome/lighthouse-ci

Issue #119: ☂️👣 Breaking Changes for 0.4.0
Created: 2019-11-27T00:17:55Z
A comprehensive list of changes that are being saved for a breaking 0.4.0 version.
Last 0.3.x release

 CLI healthcheck for hitting incompatible server
 visual cue for version change in timeline
 visual cue in build view for version change
 reset project token wizard
 fix issue with dashboard choosing bad URL by default

Must Have

 change default minScore to 0.9 #295 (comment)
 move dom-size audit out of recommended preset
 remove old dashboard design
 upgrade to lighthouse 6.0 🎉

 transferSize of budgets
 graphs for LCP & TBT
 support subRows
 support source-location details
 update presets with 6.0 audits
 upgrade the actual collection to 6.0
 ???


 replace _average statistics with _median
 require project token for all created builds
 recursive search and limit 5 with static-dist-dir by default (ref #95)

Docs to update

 0.3.x references
 timing budgets to add

Not really breaking, for next release

support a "root token" requirement to create new projects #323
PSI runner #251
PSI cron job support in server projects

Punt
Churn without a ton of benefit.

 move upload options into objects nested by target type (for clarity and to resolve fact that wizard and upload have overlapping keys #200 (comment))

Duplicate issue #95: Only files in staticDistDir root are collected
Created: 2019-11-15T13:00:17Z
Using autorun against a static site, only the files in the root of the directory are tested.
e.g. If I have a static site with the following structure:
.
|____news
| |____articles.html
|__index.html

then only index.html is collected.

Closing comment (2019-11-27T00:39:45Z): So we can't truly make this recursive by default without a breaking change since it might cause previously succeeding builds to start failing as new URLs are included, but manual support has been introduced in 93b6742. We'll make sure this recursive support gets into 0.4.0 tracked by #119 👍
Once 93b6742 is released you'd solve the issue above with
lhci autorun --collect.static-dist-dir=./ \
  --collect.url=/news/articles.html \
  --collect.url=/index.html
Repository: GoogleContainerTools/kaniko

Issue #1100: Kaniko should allow to pass a certificate for a self-signed registry
Created: 2020-03-03T20:17:09Z
Just like options --skip-tls-verify-registry,  or --skip-tls-verify, kaniko should allow user to pass a certificate for a given registry
This could be something like --registry-certificate my.registry.url=/path/to/the/certificate.cert

Duplicate issue #1106: Client Certificate Authentication
Created: 2020-03-04T18:41:41Z
Does Kaniko support the concept of authenticating to a secure registry using client TLS certificates?
For reference, looking for something similar to this: https://docs.docker.com/engine/security/certificates/

Closing comment (2020-03-07T05:13:16Z): @rbkaspr @antechrestos did some great work to add a new flag -registry-certificate
#1037
I am going to get this in next release v0.19.0
I am going to mark this as duplicate of  #1100
Repository: GoogleContainerTools/kaniko

Issue #720: error building image: error building stage: gzip: invalid header
Created: 2019-07-23T08:18:39Z
Actual behavior
The dockerfile command RUN and USER will lead to "unpack rootfs", which causing "error building image: error building stage: gzip: invalid header".
But the error only happens in some specific images.
Expected behavior
It should work fine.
To Reproduce
Steps to reproduce the behavior:
build the image with kaniko.
Additional Information

Dockerfile works wrong

FROM myimage

USER root
RUN chmod 1777 /tmp

ADD test.txt /tmp/

Dockerfile works right

FROM myimage

ADD test.txt /tmp/

log

INFO[0000] Executing 0 build triggers
INFO[0000] Unpacking rootfs as cmd RUN chmod 1777 /tmp requires it.
error building image: error building stage: gzip: invalid header

Kaniko Image  v0.10.0

Duplicate issue #1691: failed to get filesystem from image when parent image is pulled from private insecure registry
Created: 2021-07-09T17:08:01Z
Actual behavior
While using a parent image hosted in an HTTP registry, any Dockerfile with any step would result in the following error:
error building image: error building stage: failed to get filesystem from image: gzip: invalid header



A Dockerfile like this doesn't work

FROM private-reg:5000/busybox
RUN ls /

A Dockerfile like this works

FROM busybox
RUN ls /

A Dockerfile like this also works (but is useless)

FROM private-reg:5000/busybox
CMD ["/bin/sh"]
Expected behavior
That all of the above Dockerfiles work the same, regardless of registry.
To Reproduce
Steps to reproduce the behavior:

Push any image to private local http registry
Run kaniko with this Dockerfile

FROM private-registry:5000/<any_image>
RUN ls /
Additional Information

Dockerfile

FROM private-registry:5000/busybox
RUN ls /

Build Context
None
Kaniko Image (fully qualified with digest)

gcr.io/kaniko-project/executor:latest sha256:6ecc43ae139ad8cfa11604b592aaedddcabff8cef469eda303f1fb5afe5e3034
gcr.io/kaniko-project/executor:debug sha256:fcccd2ab9f3892e33fc7f2e950c8e4fc665e7a4c66f6a9d70b300d7a2103592f
gcr.io/kaniko-project/executor:debug-v0.21.0 sha256:bce20d5d4a2d84d1cfd231ea0a3eca073c010b4f98fcdd844e4e4b88384dee59
gcr.io/kaniko-project/executor:v0.21.0 sha256:fee59f1fc71e70b3a0f4d93be747ff94a81e8079dcccef735005a29890b18a5e

Triage Notes for the Maintainers
 



Description
Yes/No




Please check if this a new feature you are proposing
 


Please check if the build works in docker but not in kaniko
 


Please check if this error is seen when you use --cache flag
 


Please check if your dockerfile is a multistage dockerfile
 



EDIT: This issue does not happen when using an https registry (so without the insecure-pull but with skip-tls-verify-pull option).

Closing comment (2021-08-02T10:01:41Z): duplicate of #720
Repository: GoogleContainerTools/kaniko

Issue #772: Add kaniko version command
Created: 2019-09-16T16:32:02Z
Add kaniko version to expose version of the image.

Duplicate issue #741: Checking Kaniko version
Created: 2019-08-16T23:13:21Z
Is it possible to check which version of Kaniko I'm running?
I'd expect something like
docker run --rm -it --entrypoint=/busybox/bash gcr.io/kaniko-project/executor:debug kaniko --version

Closing comment (2019-09-27T21:23:33Z): closing as dupe of #772
Repository: GoogleContainerTools/kaniko

Issue #1366: Docker image has wrong kaniko version
Created: 2020-07-30T23:36:13Z
Actual behavior
Running kaniko version in docker container produces Kaniko version :  v0.23.0
Expected behavior
Expected to see Kaniko version :  v0.24.0
To Reproduce
Steps to reproduce the behavior:

docker run --rm gcr.io/kaniko-project/executor:v0.24.0 version
docker run --rm gcr.io/kaniko-project/executor:debug-v0.24.0 version

Triage Notes for the Maintainers
 



Description
Yes/No




Please check if this a new feature you are proposing
 


Please check if the build works in docker but not in kaniko
 


Please check if this error is seen when you use --cache flag
 


Please check if your dockerfile is a multistage dockerfile

Duplicate issue #1380: Executor v0.24.0 reports its version as v0.23.0
Created: 2020-08-13T05:35:43Z
The executor docker image for v0.24.0 reports its version as v0.23.0. As a result, I'm not sure if I'm using the newest release or not.
docker run gcr.io/kaniko-project/executor:v0.22.0 version returns Kaniko version :  v0.22.0 ✅
docker run gcr.io/kaniko-project/executor:v0.23.0 version returns Kaniko version :  v0.23.0 ✅
docker run gcr.io/kaniko-project/executor:v0.24.0 version returns Kaniko version :  v0.23.0 ❌

Closing comment (2020-08-13T05:37:30Z): Oops, closing as a duplicate of #1366.
Repository: GoogleContainerTools/kaniko

Issue #1298: --target does not support upper case chars
Created: 2020-06-05T08:12:53Z
Actual behavior
When using targets with upper case characters kanoko fails with
error building image: Error finding target stage: BaseSystem is not a valid target build stage

When using lower case stages everything is fine.
Docker works fine.
Expected behavior
Detect target with upper case chars correctly.
To Reproduce
Steps to reproduce the behavior:

Create image with multiple stages where the stages have upper case names
Run kaniko with --target

Additional Information
I can build a MWE on request.
Triage Notes for the Maintainers
 



Description
Yes/No




Please check if this a new feature you are proposing
 


Please check if the build works in docker but not in kaniko
 


Please check if this error is seen when you use --cache flag
 


Please check if your dockerfile is a multistage dockerfile

Duplicate issue #1965: Problem with capital case letters in FROM...AS image name
Created: 2022-03-05T16:47:21Z
Actual behavior
When i use CAPITALIZED image name in from..as section (in multi-stage builds) kaniko fails to build image. When i lower image name it works perfectly.
Expected behavior
Same behavior in capitalized and lower forms.
To Reproduce
Dockerfile1 (capitalized):
FROM nginx as BUILD

from python
copy --from=BUILD /etc/nginx /etc/

results to:
INFO[2022-03-05T16:33:58Z] Retrieving image manifest BUILD              
error building image: could not parse reference: BUILD

Dockerfile2 (lower):
FROM nginx as build

from python
copy --from=build /etc/nginx /etc/

kaniko builds this.
build commad:
/kaniko/executor   --context=dir://. --dockerfile=./Dockerfile \
        --context-sub-path . --cache --log-timestamp=true --skip-unused-stages \
         --destination=mysite.com/x/test-build:0bb431d5 \
         --destination=mysite.com/x/test-build:main \
         --push-retry=3  --use-new-run -v=info ;

Additional Information

Kaniko Image : kaniko:v1.6.0-debug

Closing comment (2022-04-19T08:39:17Z): Duplicate of #1298 ?
Repository: HaishinKit/HaishinKit.swift

Issue #248: Crash after streaming for a while
Created: 2017-06-21T01:55:15Z
Hi,
I ran the Example iOS and after turning on the streaming for awhile (no connected client yet), the app will crash with:
Example iOS(4515,0x16de93000) malloc: *** error for object 0x10c538000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
The error line is on the last line of 'NetSocket.swift'
    func deinitConnection(isDisconnected:Bool) {
        inputStream?.close()
        inputStream?.remove(from: runloop!, forMode: .defaultRunLoopMode)
        inputStream?.delegate = nil
        inputStream = nil
        outputStream?.close()
        outputStream?.remove(from: runloop!, forMode: .defaultRunLoopMode)
        outputStream?.delegate = nil
        outputStream = nil
        buffer?.deallocate(capacity: windowSizeC) <---- this line
    }

Duplicate issue #252: NetSocket - double deallocate
Created: 2017-06-28T15:44:36Z
in NetSocket the buffer is allocated in initConnection and deallocated in deinitConnection.
In my setup it happened that case Stream.Event.errorOccurred is caught in stream delegate, what inherently invokes deinitConnection, but the same happens a bit later from the timeoutHandler and the app crashes.
It appears that either

deinitConnection should be made reentrant (and thread safe)
on Stream.Event.errorOccurred the timeout handler should be removed (thread safe again)

... just ideas, not sure what is better.

Closing comment (2017-06-28T15:48:07Z): possibly related to #248
Repository: HaishinKit/HaishinKit.swift

Issue #252: NetSocket - double deallocate
Created: 2017-06-28T15:44:36Z
in NetSocket the buffer is allocated in initConnection and deallocated in deinitConnection.
In my setup it happened that case Stream.Event.errorOccurred is caught in stream delegate, what inherently invokes deinitConnection, but the same happens a bit later from the timeoutHandler and the app crashes.
It appears that either

deinitConnection should be made reentrant (and thread safe)
on Stream.Event.errorOccurred the timeout handler should be removed (thread safe again)

... just ideas, not sure what is better.

Duplicate issue #248: Crash after streaming for a while
Created: 2017-06-21T01:55:15Z
Hi,
I ran the Example iOS and after turning on the streaming for awhile (no connected client yet), the app will crash with:
Example iOS(4515,0x16de93000) malloc: *** error for object 0x10c538000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
The error line is on the last line of 'NetSocket.swift'
    func deinitConnection(isDisconnected:Bool) {
        inputStream?.close()
        inputStream?.remove(from: runloop!, forMode: .defaultRunLoopMode)
        inputStream?.delegate = nil
        inputStream = nil
        outputStream?.close()
        outputStream?.remove(from: runloop!, forMode: .defaultRunLoopMode)
        outputStream?.delegate = nil
        outputStream = nil
        buffer?.deallocate(capacity: windowSizeC) <---- this line
    }

Closing comment (2017-06-28T15:48:26Z): possibly related to #252
Repository: HaishinKit/HaishinKit.swift

Issue #611: HLS example not working
Created: 2019-11-07T08:47:14Z
Describe the bug
When I run example on macOS with HLS. Stream not display with version 1.0.0
To Reproduce
Steps to reproduce the behavior:

Start macOS demo
Select HLS
Start publishing
Open url on safari/vlc

Expected behavior
Display stream from camera
Screenshots
https://gyazo.com/46b142bbe9aef2ea0aa4b43c331a7de9
Desktop (please complete the following information):

OS: macOS
Browser safari
Version 1.0.0

Duplicate issue #622: HLS example with error
Created: 2019-12-07T17:40:43Z
I run HLS sample on macos.
(https://github.com/shogo4405/HaishinKit.swift/tree/master/Examples/macOS). i get error "SocketStream write error [0x0]: 1 60." There is a solution any?

Closing comment (2020-02-09T08:19:39Z): Close as duplicate. #611
Repository: HaishinKit/HaishinKit.swift

Issue #147: Video autorotation
Created: 2016-12-13T14:43:45Z
Video is automatically rotated, but in player its always scaled up to full screen - in landscape this is correct behavior but after rotation to portrait I believe black area should appear on left and right so portrait video is showing in full size scaled down to fit size.
Could you please correct me if I understand autorotation wrong? Thanks.

Duplicate issue #715: Orientation always portrait when streaming
Created: 2020-07-10T20:27:30Z
Using the orientation as described in the issues ie:
DispatchQueue.main.async {
            if let orientation = DeviceUtil.videoOrientation(by:  UIApplication.shared.statusBarOrientation) {
                self.rtmpStream.orientation = orientation
                print(String(format:"Orient %d", orientation.rawValue))
            }
            self.rtmpConnection.connect(self.url ?? "frog")
        }
However I am still seeing it output always in portrait mode on the streaming side. Is there something else I need to do here?
RUnning this on ios using 1.0.10 version of hashinkit
Expected behavior, when looking at the feed in the streaming playback it is rotated to match the orientation on the screen.  It always stays as portrait.  From what I can tell you just need to put some metadata into the feed, looking in the code I couldn't figure out if this is happening or not? vs doing a physical rotation of the bits.

Closing comment (2020-07-11T03:08:26Z): Close issue as duplicate #147.
Repository: HaishinKit/HaishinKit.swift

Issue #104: Switching Cameras - Delay mirroring image
Created: 2016-09-16T14:54:08Z
Sometimes when I switch the camera using:
        let position:AVCaptureDevicePosition = currentPosition == .Back ? .Front : .Back

        rtmpStream!.attachCamera(DeviceUtil.deviceWithPosition(position))

        currentPosition = position`
the image is shown in the wrong position (as mirror) and after a time (about 30 secs) it becomes normal.
Did you find this issue?
I'm using lf (0.4.1)

Duplicate issue #98: Build error in 0.4.1
Created: 2016-09-09T16:37:07Z
I got an build error in this Line:
stream.attachCamera(AVMixer.deviceWithPosition(.Back))
says  'Use of unresolved identifier AVMixer'
I have tried with DeviceUtil..deviceWithPosition(.Back) and it compiles but sometimes it shows a black screen. Also flipping the camera make the app frozen.

Closing comment (2016-09-29T12:27:46Z): close as duplicate #104
Repository: HaishinKit/HaishinKit.swift

Issue #265: Can't connect to Periscope.
Created: 2017-07-25T15:09:24Z
hello,
i'm trying to use this lib on my iphone 6S but i keep getting this error "inSourceFormat > nil" of the AACEncoder.swift .
what should i do?

Duplicate issue #267: unable to connect to Periscope
Created: 2017-07-30T14:03:42Z
hello,
I'm trying to use this lib to connect to periscope with failure.
Any help?
i've tried to change the port and the stream name on the original code but it still dont work.

Closing comment (2017-07-31T14:35:31Z): Close issue. Reason duplicate #265
Repository: HaishinKit/HaishinKit.swift

Issue #503: How to display 2 HKViews (from one camera) on screen for one RTMPStream?
Created: 2019-03-05T16:50:06Z
Dear @shogo4405, I would say this sdk is awesome and really appreciate your contribution so far. So I'm using this for my project and I need to display 2 HKViews (from front camera)  on screen for one RTMPStream but I can't do it, although I tried by initializing 2 HKViews then attachStream but it doesn't work. Can you help me with some suggestions? It would be great if there is some sample code. Thank you in advance.

Duplicate issue #534: AttachStream to multiple instance of GLHKView 
Created: 2019-05-06T15:01:28Z
Hello,
I'm trying to attach a stream's preview to 2 différents GLHKView, but I can't find how to do it.
It is possible ?
Use case : the root screen which contains the mini preview, and a second detail screen with a full screen preview (displayed on tap on the first mini preview).
Thanks for your work

Closing comment (2019-05-13T15:00:23Z): I have the same issue here. Seems to be a duplicate of #503
Repository: Hammerspoon/hammerspoon

Issue #1567: hs.menubar.new(false) appearing in system menubar?
Created: 2017-10-03T14:55:05Z
I have a hs.menubar "attached" to a hs.chooser, so that when I right click on the hs.chooser it pops up the menubar. I've noticed though, that ever now and again, even though I'm using hs.menubar.new(false), the menubar will appear in the system menubar. It doesn't have any text value or icon, so you'd only notice if you click up there, or if another application has something in the menubar and you notice the weird space between the icons - but it's a little... odd.
Possibly related to #1566?

Duplicate issue #1899: hs.menubar.new(false) does show up in menubar
Created: 2018-07-06T08:05:37Z
I tried to experiment with popups and it seams there is a bug in the menubar.new function
menu = hs.menubar.new(false):setMenu({{title='1'},{title='2'}}):popupMenu(hs.mouse.getAbsolutePosition())
This does show up with a popup at the mouse position, but it also inserts a menu in the top right of the screen. It is not visible to the eye, but you can click it and open the same popup.
A menu:delete() deletes it, but the small space will be occupied, till you restart or login again. You see the problem if you do it multiple times and then reload the hammerspoon configuration or load another program which adds an icon in the menu bar.
Documentation states here https://www.hammerspoon.org/docs/hs.menubar.html#new that false will be hiding the menu item in the menu bar.
I think this is now an error ;) Has anyone an idea to fix this?
Hammerspoon Version 0.9.66 (0.9.66)
MacOs High Sierra 10.13.5 (17F77)
MacBook Pro 15" 2017

Closing comment (2018-07-06T09:02:08Z): Duplicate of #1567
Repository: Hammerspoon/hammerspoon

Issue #2858: With the latest BigSur update  (11.3 20E232) hs.eventtap.keyStrokes no longer works on web forms in password protected fields
Created: 2021-04-30T16:51:45Z
This works in a text editor, but not if the cursor focus is in a password protected HTML input box.
hs.eventtap.keyStrokes("foo")

I suspect Apple made this change intentional, but I am not sure how.

Duplicate issue #2880: Modal hotkey binds not working in password fields since macOS 11.3.1
Created: 2021-05-19T09:40:30Z
I have the same issue as described in #2864.
More specifically, modal:bind() for single keys does not work in password fields. Named keys, e.g. space do still work, and single key binds do work outside password fields. Rebooting does not help.
This is with macOS 11.3.1 and Hammerspoon 0.9.90 (6030)

Closing comment (2021-11-04T15:59:28Z): Presumably same as #2858, linking for visibility.
Repository: Hammerspoon/hammerspoon

Issue #1385: Missing values in hs.eventtap.event.types
Created: 2017-05-01T22:50:00Z
The following event types are described in the documentation for hs.eventtap.event, but aren't actually present in the hs.eventtap.event.types table:

otherMouseDown
otherMouseUp
otherMouseDragged

Duplicate issue #1468: Mouse click event in 6 button mouse
Created: 2017-06-21T17:11:28Z
Hi,
I'm trying to setup callbacks for mouse button clicks other than left and right buttons.
According to the API[0], there are events :
otherMouseDown -- Specifies a mouse down event with one of buttons 2-31.
otherMouseUp -- Specifies a mouse up event with one of buttons 2-31.

which correspond to button clicks other than left and right. Am I right ?
If yes, when I register for these events, my callback function doesn't called on those button clicks.
leftMouseDown -- Specifies a mouse down event with the left button.
leftMouseUp -- Specifies a mouse up event with the left button.
rightMouseDown -- Specifies a mouse down event with the right button.
rightMouseUp -- Specifies a mouse up event with the right button.

I tried using it for left and right mouse events^, it works fine.
Any suggestions ?
I'm trying it on Logitech G102 gaming mouse.
[0] http://www.hammerspoon.org/docs/hs.eventtap.event.html
Thanks!

Closing comment (2017-06-30T08:15:27Z): Closing as a dupe of #1385
Repository: Hammerspoon/hammerspoon

Issue #2394: BUG? hs.application.find("window title") returns window object in results
Created: 2020-06-11T20:55:13Z
Reading the documentation for hs.application.find, it sounds like hs.application.find should only return application objects or nil/nothing
When I invoke it with a partial window title, I get the window object as the first return value and the application as the second.
Even if it is supposed to return the window object (in which case, update the documentation), the application object should be the first value(s) as this is what one expects from hs.application.find. If I wanted the window object (first), I'd be using hs.window.find.

Duplicate issue #3536: `hs.application.get` sometimes returns `hs.window`
Created: 2023-09-17T17:40:54Z
Is it expected that hs.application.get sometimes returns an hs.window?
For example:


Make sure Terminal.app is fully closed


Open a webpage with "Terminal" somewhere in the title (e.g., Wez's Terminal Emulator API)


Run this in the Hammerspoon console:
> hs.application.get('Terminal')
hs.window: Full Config & Lua Reference - Wez's Terminal Emulator (0x600003562f78)



The docs only mention hs.application or nil as possible returns:

Returns an hs.application object for a running application that matches the supplied search criterion, or nil if not found



Hammerspoon 0.9.100
macOS 13.5.2

Closing comment (2023-09-19T06:21:53Z): It looks like this is probably a duplicate of #2394. (That one is about hs.application.find, but get is just a wrapper for find.)
Edit: What you're seeing is actually a combination of two things:

hs.application.find will fall back to checking window titles if it can't find any app names/IDs that match. get inherits this behavior, although it isn't documented as doing so. (And I'm not sure it's supposed to. See also #3447.)
However, find currently has a bug that causes it to return the windows themselves in addition to their applications. get discards all but the first return value from find, so it ends up only returning the window and not the app.

For now, you can use hs.application.find('Terminal', true) instead, setting the exact parameter to true. That will keep it from ever looking at window titles. (If you want to be extra-careful, you can do hs.application.applicationsForBundleID('com.apple.Terminal')[1] instead.)
Repository: Hammerspoon/hammerspoon

Issue #337: feature request, general: user interface input elements
Created: 2015-06-24T07:10:22Z
maybe as several separate modules, maybe as combination of existing modules or extensions of such...
initial suggestions, add more here:

basic text input, one line and multi line
chooser from among a list

https://github.com/sdegutis/choose has been suggested
pop-up menu
multiple selection support from a selection box?


dialog box with N buttons

defaults OK, Cancel, etc.
other arbitrary labels?


checkboxes/radio buttons?
combine multiple types into a more generic form object?
will adding support for WebView instead of just NSView and NSTextView to hs.drawing help here?  Or should it be a separate module?

Some thoughts:

Should be as generic as possible, not targeted to just a handful of specific uses, for easy re-use.
Should support multiple layers/hierarchy (e.g. a button in a dialog causes another dialog to pop up for more specific input, rather than just closing out the initial one)
Should hs.drawing allow full screen rectangle that captures, rather than passes through, input, so we can create modal views similar to those in some web sites where the background greys out and the input area is focused "on top"?
Use callbacks attached to dialogs/input displays rather than stop lua/Hammerspoon processing until user responds?

Duplicate issue #675: Add ability to pop up box for user text input
Created: 2015-12-10T19:42:24Z
This would look like:

Keybinding or some other event
Pop open a text box (kind of like Alfred)
return the text that was entered by the user to hammerspoon call on enter

This could also involve suggestions in a dropdown, or the ability to call prewritten functions.

Closing comment (2017-02-10T14:03:21Z): (closing this issue because it's a duplicate of #337 - people can subscribe to that one for updates as and when we get to adding more dialogs)
Repository: Hammerspoon/hammerspoon

Issue #1082: Key Repeat is slow since 0.9.49
Created: 2016-11-16T10:45:10Z
Key Repeat is much slower since 0.9.49. The rate still changes if I move the slider in System Preferences - Keyboard. But shortcuts bound to hammerspoon repeat much slower than other keys. Downgrading to 0.9.48 fixes it for me.

Duplicate issue #1087: hs.hotkey and hs.hotkey.modal bind method's repeatfn is delayed feeling laggy
Created: 2016-11-20T23:43:56Z
function repeatfn()
  hs.eventtap.keyStroke({}, 'right')
end

hs.hotkey.bind({}, 'l', nil, nil, repeatfn)

Hammerspoon: v 0.9.49 && 0.9.50
OS: MacOS Sierra
The repeatfn is called very slowly and the rate at which it is called does not seem to be influenced by the System Preferences > Keyboard > Key Repeat && Delay Until Repeat. Identical problem with hs.hotkey.modal.
The issue appears in 0.9.49. The behavior appears to have been correct in 0.9.48.

Closing comment (2016-11-21T16:14:26Z): This is a duplicate of #1082 - we put in a short delay for reliability reasons, but it'll be possible to override it in the next release. A short term workaround is to use this code in a function of your own:
function myKeyStroke(modifiers, character)
    hs.eventtap.event.newKeyEvent(modifiers, string.lower(character), true):post()
    hs.eventtap.event.newKeyEvent(modifiers, string.lower(character), false):post()
end
(which is all our keyStroke() function does, just with a sleep between the two event posts).
Repository: HangfireIO/Hangfire

Issue #705: Recurring job that runs on a non default queue is retried on default
Created: 2016-10-21T11:21:36Z
When a recurring job that is scheduled to run on a non default queue fails it is retried on the default one:
The job is scheduled this way:
app.UseHangfireServer(new BackgroundJobServerOptions { Queues = new[] { "WEB" } })
In hangfire console, the job shows the following:
Enqueued
Triggered by DelayedJobScheduler
Queue:
DEFAULT
Failed
An exception occurred during performance of the job.
Enqueued
Triggered by recurring job scheduler
Queue:
WEB
Is this a bug? Seems to me, a job should be retried on the same queue as it was originally scheduled.

Duplicate issue #704: Recurring Job Queues
Created: 2016-10-21T10:16:14Z
I've got 2 applications both with their own recurring jobs and I need them to both run on the same SQL database. I've tried assigning queues to the jobs and I've set the BackgroundJobServerOptions.Queues to the queue names I want each app to work from, however both apps are picking up every recurring job and there doesn't seem to be anything in the actual queues (all jobs go into DEFAULT)
This is on app 1:
        RecurringJob.AddOrUpdate<IJob>("Job_app_1", job => job.Run(), Cron.Hourly, TimeZoneInfo.Local, "app_queue_1");
        app.UseHangfireServer(new BackgroundJobServerOptions
        {
            Queues = new [] { "app_queue_1" }
        });

This is on app 2:
        RecurringJob.AddOrUpdate<IJob>("Job_app_2", job => job.Run(), Cron.Hourly, TimeZoneInfo.Local, "app_queue_2");
        app.UseHangfireServer(new BackgroundJobServerOptions
        {
            Queues = new [] { "app_queue_2" }
        });

Closing comment (2017-01-03T18:21:49Z): This could be related to #705.
Repository: HangfireIO/Hangfire

Issue #181: Allow creating any job with a specific job id
Created: 2014-08-21T21:44:39Z
My current need is a way to associate jobs running in Hangfire to certain objects in our system. We do this using Quartz.NET by setting the JobKey to an Id of an object in our system so we can reference it in the future (for cancelling or rescheduling the job). Would be awesome if there was a way to do this in HangFire. It is the only holding us back from using this in our system.

Duplicate issue #298: Feature request: BackgroundJob.ScheduleIfNotExists
Created: 2015-02-01T15:01:26Z
Add ability to specify custom ID for BackgroundJob to exclude duplicates

Closing comment (2015-02-02T11:35:19Z): This is a duplicate of #181
Repository: HangfireIO/Hangfire

Issue #2202: Update to newer Newtonsoft or switch to System.Text.json
Created: 2023-05-04T13:03:41Z
The version of Newtonsoft referenced has known vulnerabilities.  Anyone referencing this has to also reference a newer version of Newtonsoft to clear security scans.  My solution is Newtonsoft free and I'd rather not add packages for my dev teams to accidentally use.  If possible I think it would be better to switch to System.Text.Json or extract serialization in a similar fashion to how database was done.
Thanks
Vulnerability info:
GHSA-5crp-9r3c-p9vr

Duplicate issue #2318: Warning for dependency Newtonsoft.Json 11.0.1
Created: 2023-11-10T14:32:00Z
GHSA-5crp-9r3c-p9vr

Closing comment (2023-11-13T08:59:02Z): Duplicates #2202
Repository: HangfireIO/Hangfire

Issue #2290: Queue names longer than 50 characters are cut off
Created: 2023-09-01T10:31:35Z
The Queue column of the JobQueue table only allows for 50 characters.
If a name with more than 50 characters is given, the remaining characters are just cut off by the SQL Server without any exception or warning.
This results in Jobs getting into a queue that no server is listening for, because the servers are listening for the full queue name which might be longer than 50 characters.

Duplicate issue #950: Queue Name length greater than 20 characters -> silently fails to run
Created: 2017-07-24T16:54:23Z
When we give Hangfire a queue name that is longer than 20 characters:

Hangfire will not execute that queue.
Hangfire will not provide any error message regarding the queue name length.

Expected behavior:

Hangfire gives error message when long queue name is provided

Note: Different Hangfire versions and storage mechanisms may support different queue name lengths (see #369 and #376)
Hangfire.Core 1.6.12
Hangfire.PostgreSql 1.4.3
Our setup looks like:
PostgreSqlBootstrapperConfigurationExtensions.UsePostgreSqlStorage(
    (GlobalConfiguration)GlobalConfiguration.Configuration,
    "primaryConnection");
GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 2 });
GlobalJobFilters.Filters.Add(new QueueAttribute(importQueueName));
GlobalJobFilters.Filters.Add(new QueueAttribute(exportQueueName));
GlobalJobFilters.Filters.Add(new RaygunLogger());

_backgroundJobServer = new BackgroundJobServer(new BackgroundJobServerOptions
{
    Queues = new[] { importQueueName, exportQueueName}
});
var importChron = ConfigurationManager.AppSettings["importScheduleCron"];
RecurringJob.AddOrUpdate<JobRunner>("ImportProcessorJob", j => j.Execute(),
    importChron,
    queue: importQueueName,
    timeZone: TimeZoneInfo.Local);

var exportChron = ConfigurationManager.AppSettings["exportScheduleCron"];
RecurringJob.AddOrUpdate<ExportRequestProcessor>("ExportProcessorJob", j=> j.Execute(),
    exportChron,
    queue: exportQueueName,
    timeZone: TimeZoneInfo.Local);

Closing comment (2024-02-12T09:35:43Z): Related to #2290
Repository: HangfireIO/Hangfire

Issue #947: Getting warning messages about Newtonsoft.Json 5.0.0
Created: 2017-07-20T15:47:17Z
Since i have updated to the latest version i am getting warning messages in VS saying that Hangfire.Core depends on Newtonsoft 5.0.0 and this cannot be resolved

Any reason why you are using such as old version of newtonsoft as well??

Duplicate issue #973: Newtonsoft.Json dependency warning
Created: 2017-08-19T11:27:21Z
I'm using newest Hangfire + Hangfire/AspNetCore packages and on build I get strange warning:
warning NU1603: Hangfire.Core 1.6.15 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved.
I have Newtonsoft.Json 10.0.3, so why the warning?

Closing comment (2017-10-25T04:41:33Z): I think this is a duplicate of #947.
There are some workarounds listed there, but not @squirmy's fix suggestion.
Repository: HangfireIO/Hangfire

Issue #1022: Asp Net Core non stop service
Created: 2017-10-10T18:48:07Z
Guys, how's doing?
I'm trying to make my Hangfire application always run, but I'm using Asp.Net Core and this link won't work.
http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html
What should I do?
I appreciate any help.
Thanks.

Duplicate issue #1085: Keep HangFire Server always running in IIS
Created: 2017-12-29T16:24:41Z
Hi everyone,
I dont see many questions about this. How do we keep HangFire server always running in IIS?
I have tried many ways with IIS configuration but does not seem to work.
There is a documentation at
http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html
But How to setup these things on .Net Core version?
Thanks

Closing comment (2018-04-08T22:18:45Z): Duplicate of #1022.
Repository: HangfireIO/Hangfire

Issue #457: What causes multiple servers under 1 app pool?
Created: 2015-10-02T10:53:41Z
I noticed sometimes my production site will have multiple servers at various times. Mostly its one but sometimes two or three. I know its not really a problem but .. is it a misconfiguration on my side or could be a potential problem with something else.. or just normal, unavoidable behaviour as app pools restart?

Duplicate issue #665: Job server started on multiple pools
Created: 2016-09-12T10:34:51Z
We met a serious issue when deploying our ASP.net web application on a integration server.
The IIS on server host multiple applications pool and multiple web applications. We are deploying only one web application with a embeded hangfire server. We follow the recommendations from this page : http://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html
Deployement is ok, but when we go to the dashboard, we see that there is not one server that is running but four servers ! The number in the server name is the identifier of the process hosting the server.
One Hangfire server is executed on the good application pool, but also on three others applications pools ! There was 6 running applications pools.
If I stop and restart the pool of my application, the Hangfire is well restarted (whitout creating additional server). If I stop one of the 3 others application pool, one Hangfire is also stopped.
This is very curious and worrying that a Hangfire server can be executed on the application pool of others web applications.
Some screenshort of this case :


May be a important point : the deployment is automated using Powershell / DSC. During this deployment, a DSC resource updates (if necessary) the applicationHost.config file of IIS.

Closing comment (2016-09-13T09:10:04Z): Duplicates #457, please see the #457 (comment) answer. Please use that topic for comments. In short, there is a bug in ASP.NET, when we turning the autostartproviders feature on – appdomain may be created multiple times during the deploys, and no events will trigger on shutdown for that appdomains, because they aren't fully started yet, and will never be started. And we have no better alternative for auto-starting an application.
I've created Hangfire.AspNet for handling this issue.
Repository: HaxeFoundation/haxe

Issue #5105: @:native metadata on typedef fields
Created: 2016-04-12T09:32:27Z
I'm trying to use the @:native metadata on a typedef field:
typedef MyStruct = {
    var field01 : String,
    @:native('package') var pack : Dynamic
}
But the @:native metadata doesn't seem to work on typedef fields... That would be very useful in js when interfacing with extern libs...

Duplicate issue #10338: [js]@:native meta not work in Generic Class.
Created: 2021-08-01T14:10:59Z
here is test code 
typedef PromiEvent2<T> = {
	@:native("catch")
	function Catch(d:Dynamic):Void;//gen code will be Catch instead of catch
};

extern class JS<T> {
	function new(a:T);

	function to(e:Dynamic):PromiEvent2<T>;
}

class Test {
	public static function main() {
		new js.Promise(function(re, rj) {
			try {
				new JS(1).to(1).Catch(function(e) {});//gen code is wrong .should be catch but Catch.
				re(1);
			} catch (e) {
				trace(' $e');
				re(0);
			}
		});
	}
}

Closing comment (2021-08-05T09:49:09Z): Currently @:native meta does not work on typedefs.
Duplicates #5105
Repository: HaxeFoundation/haxe

Issue #2684: abstract @:op(A = B) not work
Created: 2014-02-28T12:33:16Z
Why?
ps: This need for bindings

Duplicate issue #3620: Overload of '=' does not work
Created: 2014-11-26T16:28:55Z
I am trying to overload '=' operator:
class Test {
    static function main() {
        trace("Haxe is great!");

        var a:Value<String> = new Value<String>('str');

        a.setValue("dhb23bdiasdas");

        a= "j90j0j093e";
    }
}

abstract Value<T>(T) from T to T
{
    public inline function new(value:T) this = value;

    @:op(A=B)
    public inline function setValue(rhs:T):Value<T>
    {
        this = rhs;

        trace("hello assignment");

        return new Value<T>(rhs);
    }
}

And that's the js code I get:
(function () { "use strict";
var Test = function() { };
Test.main = function() {
    console.log("Haxe is great!");
    var a = "str";
    a = "dhb23bdiasdas";
    console.log("hello assignment");
    "dhb23bdiasdas";
    a = "j90j0j093e";
};
Test.main();
})();
I use haxe 3.1.3.

Closing comment (2014-11-26T16:36:36Z): This is a duplicate of #2684. Just add a from/@:from cast.