primordic/IssueDupesLite huggingface dataset:
Repository: r0x0r/pywebview

Issue #351: Option to start window centered and disabling scrollbars
Created: 2019-07-17T19:24:07Z
Specification

pywebview version: 3.0
platform / version: Windows 8.1 64-bits

Description
Describe your issue
The PyWebView window starts with a random position on the screen, I'd like to start it centered but it seems PyWebView doesn't have such feature. It'd be appreciated if this could be added.
I've seen a similar issue here: #158 , but the owner of the issue closed it immediately.
NOTE: It will be even better if we can set the X and Y position, so we can do like position=(0, 0) to center the window, instead of position="centered"
Also there should be an option to disable scrollbars as well, I currently disable them using CSS and JavaScript in HTML itself, but it'd be better if this can be disabled in the window through an option like scrolling=False.

Duplicate issue #356: Is there a way to create a window on custom location?
Created: 2019-07-27T07:44:42Z
I want to create a window at the center or somewhere of my screen, is there a way to do that?
webview.create_window(title, url='', html='', js_api=None, width=800, height=600, x=1000, y=1000)
# x,y is the top left location of window in my screen

  
    
      pywebview/webview/platforms/cocoa.py
    
    
        Lines 419 to 421
      in
      f76b028
    
  
  
    

        
          
           # Keep the top left of the window in the same place 
        

        
          
           frame.origin.y += frame.size.height 
        

        
          
           frame.origin.y -= height

Closing comment (2019-07-27T08:29:14Z): No, but if anyone to tackle this, you are most welcome.
Also a duplicate of #351.
Repository: r0x0r/pywebview

Issue #323: pywebview object not available by the time onload event fires
Created: 2019-03-30T11:31:19Z
I found a partial workaround for this issue that will allow you to mimic a redirect. You may be able to modify this to work for a refresh as well.
Before I had a button that triggered a redirect from '/' to '/home', and the pywebview variable disappeared on the '/home' page, as you've noted.
The fix was instead of redirecting from '/' to 'home', I would AJAX fetch the content of '/home' from '/' and then call document.write() on the '/' page with the response from '/home'. This keeps the location at '/' but allows me to display the content of '/home' while still having access to the pywebview variable. Hope that helps.
Originally posted by @jrr8 in #238 (comment)
I'm trying to make this work for my own script but I'm not sure how to do it. I'm trying to trigger JavaScript by using this (instead of a onclick button trigger):
    window.addEventListener("load", function() { showChart(); });
This should then trigger this:
    function showChart() { pywebview.api.getData().then( function(result) { drawChart(result.price,result.mountain,result.profit,result.title); } ); }
It gives me the following error, just like the one in the reference above:

Any help would be appreciated!

Duplicate issue #336: Pywebview fails to load js_api sometimes
Created: 2019-05-19T09:17:02Z
Specification

pywebview version: 3.0
platform / version: Linux Manjaro

Description
Pywebview running cef fails to load js_api sometimes, both on Linux (tested with 2 different computers) and Windows 10.
Windows 10 loads the js_api most of the times while Linux appears to fail every time.
This is the error displayed on the browser console:

Unhandled Promise Rejection: ReferenceError: Can't find variable: pywebview

Closing comment (2019-05-21T18:41:42Z): Yes I was working with the latest pywebview-3 branch.
Turns out my problem is the same as #323, so i just did a polling like system and now it works like a charm.
Thank you a lot anyway!
Repository: r0x0r/pywebview

Issue #545: Most controls aren't accessible to blind users via screen readers like NVDA
Created: 2020-06-12T14:49:37Z
Specification

pywebview version:
3.2
platform / version:
Windows 10 Pro 64-Bit, version 2004

Description
Dear developers,
Having used the latest r0x0r/pywebview, I noticed that with screen readers for the visually impaired like NVDA, navigation via arrow keys is virtually impossible. That is, with NVDA enabled, pressing Arrow keys doesn't move the focus, and one can navigate around only via Tab and SHIFT+Tab. Even these key strokes don't land on many controls. Equally problematic is the fact that once one returns to r0x0r/pywebview, via ALT+Tab, NVDA faces difficulty giving it the proper focus, meaning even Tab and SHIFT+Tab fail to work as expected. To take care of these, I suggest the following for proper screen reader access:

Pywebview should allow screen readers to navigate via Up, Down, Left and Right arrows -- like what is possible with any HTML/Chromium environment. Full Arrow-key access is of utmost importance in order to see and interact with essential sections and areas of any app which uses  Pywebview.
Tab and SHIFT+Tab should land on many more controls.
Returning focus to the environment via ALT+Tab or ALT+SHIFT+Tab should properly give screen readers the focus needed to interact with all environment controls.

Thanks for your efforts.
Cheers
Practicalities

YES/NO I am willing to work on this issue myself.
I'm not a developer.
YES/NO I am prepared to support this issue financially.
Sadly I can't do it myself.

Duplicate issue #565: Screen reader accessibility is missing
Created: 2020-07-07T20:11:43Z
Specification

pywebview version:
platform / version:

Description
Describe your issue
What the title says, I can run the example app just fine, however my screen reader can't focus on anything that appears on the app screen.
Practicalities


YES/NO I am willing to work on this issue myself.


YES/NO I am prepared to support this issue financially.

Closing comment (2020-07-14T16:52:22Z): Duplicate #545
Repository: r0x0r/pywebview

Issue #253: Hide A Window
Created: 2018-09-13T03:12:18Z
Specification

Platform: Windows
Version: 10

Description
I'm looking for a way to hide the webview GUI but I find no parameter or anything. Could you maybe add this or is their a feature that I can't find?

Duplicate issue #245: Need pywebview to start minimized
Created: 2018-08-22T12:50:30Z
Specification

Platform: MacOS High Sierra
Version: 2.0.3

Description
Need pywebview window to start minimized. Cannot find a way to do it.

Closing comment (2019-08-07T17:39:19Z): agree with @shivaprsdv, but if:

the title should be read as Need pywebview to start hidden and not
minimized

then this could be considered a duplicate of #253
Repository: r0x0r/pywebview

Issue #15: Add support for CEF
Created: 2015-11-03T22:05:09Z
Chrome Embedded Framework (CEF) could be a great alternative to IE based renderer on Windows systems. There are Python bindings for CEF found here https://github.com/cztomczak/cefpython, as well as some examples on how embed CEF with various GUI toolkits.

Duplicate issue #387: Support for Blink
Created: 2019-10-03T20:10:54Z
Specification

pywebview version: latest
platform / version: MacOS

Description
Chromium / Chrome changed render engines to Blink a while ago, a fork from Webkit. Is it possible to enable one to choose the render engine and add support for Blink (it looks like that if OS is Mac, then it forces Webkit)?

Closing comment (2019-10-29T13:20:50Z): Duplicate of #15
Repository: racket/racket

Issue #1282: eval bug
Created: 2016-03-20T13:07:20Z
The following code sample produces a error while running on my racket 6.4 and 6.3 installations. But not on 6.2.1.
#lang racket/base

(require racket/class
         racket/draw)

(define-namespace-anchor anchor)
(define ns (namespace-anchor->namespace anchor))
(eval '(new object%) ns)
(is-a?/c bitmap-dc%)

Error message:
lifted.0.0: undefined;

Duplicate issue #1284: lifted.0.0 undefined when using dict-ref! in racket-mode.
Created: 2016-03-22T20:26:27Z
I have the following module:
#lang racket
dict-ref!

When I run this module in emacs mode, and then type dict-ref! in the repl, I get an error:
test.rkt﻿> dict-ref!
; lifted.0.0: undefined;
;  cannot reference an identifier before its definition
;   in module: "/Users/leif/src/racket-compiler2/test.rkt"

However, the next time I type it in everything is fine:
test.rkt﻿> dict-ref!
#<procedure:dict-ref!>

If I take dict-ref! out of the file, it also works fine. Also, this same issue also occurs for many other functions in the dict library.
This problem doesn't seem to happen when I'm using DrRacket, so I'm not sure if this is a bug in the contract that dict-ref! is using, or in racket-mode itself.

Closing comment (2016-03-26T11:29:23Z): I have no justification for this, but I believe this is related to #1282, and going deeper with one or the other will solve both.
Repository: racket/racket

Issue #2675: Error in test in racket-r7rs in RackerCS
Created: 2019-06-02T21:20:11Z
There is only one remainder error in the test of racket-r7rs when they are run in RacketCS: racket-r7rs/r7rs-tests.rkt#L1878-L1881 Something like:
#lang r7rs
(define-syntax test ...)
(test #t
  (let* ((out (open-output-string))
         (r (begin (newline out) (get-output-string out))))
    (or (equal? r "\n") (equal? r "\r\n"))))

Approximately one half of the times it fails with "newline: output port is closed" and the other half of the times it fails with "invalid memory reference.  Some debugging context lost". I expected that it would have been fixed by  40846e3 "racket/system: add some missing synchronization" but it is still failing.
It is strange because the test with newline fails every time, but the other test with write-string, display, don't fail.

Duplicate issue #2677: memory corruption on racketcs with reencode-output-port
Created: 2019-06-03T16:53:32Z
This program:
#lang racket/base
(require scheme/port)
(define-struct transcoder (codec eol-style error-handling-mode))
(define-struct codec (enc))
(define utf-8 (make-codec "utf-8"))
(define-struct textual-output-port (port transcoder)
  #:property prop:output-port 0)

(define utf8-transcoder
  (make-transcoder utf-8 'none '?))
(define (transcode-output p t)
  (reencode-output-port p
                        (codec-enc (transcoder-codec t))
                        #f
                        #t
                        (object-name p)
                        #f
                        #f))

(let-values (((out) (make-textual-output-port (transcode-output (open-output-string) utf8-transcoder) utf8-transcoder)))
  (let-values
             (((r) (begin (newline out) #;(get-output-string out))))
  #t))

causes an "invalid memory reference" error on racketcs, but works correctly on racket.

Closing comment (2019-06-03T16:54:22Z): Originally reported in #2675.
Repository: racket/racket

Issue #1386: `match` generates unhelpful log message about non-linear patterns
Created: 2016-07-22T17:04:07Z
In one of my programs I get the log message "non-linear pattern used in match with ... at" (which seems to be logged with log-error).
The docs don't mention anything about non-linear patterns, so I'm not sure what I should do about it (or if I should care about it at all.)

Duplicate issue #2152: match syntax error when pattern identifier appears twice with ellipses the second time
Created: 2018-06-26T16:00:00Z
In a recent pre-release for Racket 7, and in Racket 6.12, minimal example:
(match 0 [`(,t ,t ...) 0])
t10: unbound identifier; also, no #%top syntax transformer is bound in: t10

Removing the ellipses, or using ellipses with both, or putting the ellipses usage first, are all fine.

Closing comment (2018-06-26T23:41:26Z): This is related to #1386, which was opened two years ago and is still open. @samth, could you make the relevant change to the documentation to help avoid this confusion?
Repository: racket/racket

Issue #2680: Report offending file for invalid require
Created: 2019-06-04T15:22:06Z
It's always been a surprise to me that Racket only says that it couldn't require X, but doesn't say where X is required, making it difficult to find the problem and fix it.
E.g.,
;; a.rkt

#lang racket

(require "b.rkt")

;; b.rkt

#lang racket

(require "c.rkt")

(c.rkt doesn't exist)
Running a.rkt, I get:
../../Applications/Racket v7.3/share/pkgs/gui-lib/mred/private/snipfile.rkt:324:2: open-input-file: cannot open module file
  module path: c.rkt
  path: c.rkt
  system error: no such file or directory; rktio_err=3
  no package suggestions are available .

I expect that b.rkt shows up in the error message so that users know that it should be fixed there.

Duplicate issue #2855: The error message of `require`-ing a non-existent file is not helpful
Created: 2019-10-10T18:03:32Z
Version
Racket 7.4 on Debian 9.
How to reproduce
Save this in a.rkt.
#lang racket/base
(require b)

Run racket -t a.rkt.
The problem: The error message does not mention a.rkt.
What is expected
The error message should also mention the path of the offending source (a.rkt).

Closing comment (2020-04-22T23:41:38Z): Duplicate of #2680
Repository: racket/racket

Issue #1795: provide/contract-struct-expandsion-info-id-constraint: identifier's binding is ambiguous context......le types 0) #(-446223515921999567 macro) in: provide/contract-struct-expandsion-info-id-constraint
Created: 2017-09-02T13:41:40Z
provide/contract-struct-expandsion-info-id-constraint: identifier's binding is ambiguous context......le types 0) #(-446223515921999567 macro) in: provide/contract-struct-expandsion-info-id-constraint

?

Duplicate issue #2469: multiple levels of `contract-out` for structs produces ambigous binding
Created: 2019-02-13T20:29:01Z
This program produces an ambiguous binding error.
#lang racket/base

(module stream racket/base
  (require racket/contract/base)
  (struct stream ())
  (provide (contract-out (struct stream ()))))

(require racket/contract/base)
(require (submod "." stream))
(provide (contract-out (struct stream ())))

Error message:
provide/contract-struct-expandsion-info-id-stream: identifier's binding is ambiguous
  in: provide/contract-struct-expandsion-info-id-stream
  context...:
   #(411 module main2) #(429 module stream) #(1084 macro) #(1400 macro)
   #(1451 local) #(1452 intdef)
  matching binding...:
   #(provide/contract-struct-expandsion-info-id-stream.1 #<module-path-index=(submod 'main2[2582] stream)> 0)
   #(429 module stream) #(1084 macro)
  matching binding...:
   #(provide/contract-struct-expandsion-info-id-stream.1 #<module-path-index='main2[2582]> 0)
   #(411 module main2) #(1400 macro)
  context...:

cc @dvanhorn @camoy who found this

Closing comment (2019-02-13T20:44:38Z): May be related to #1795.
Repository: racket/racket

Issue #2469: multiple levels of `contract-out` for structs produces ambigous binding
Created: 2019-02-13T20:29:01Z
This program produces an ambiguous binding error.
#lang racket/base

(module stream racket/base
  (require racket/contract/base)
  (struct stream ())
  (provide (contract-out (struct stream ()))))

(require racket/contract/base)
(require (submod "." stream))
(provide (contract-out (struct stream ())))

Error message:
provide/contract-struct-expandsion-info-id-stream: identifier's binding is ambiguous
  in: provide/contract-struct-expandsion-info-id-stream
  context...:
   #(411 module main2) #(429 module stream) #(1084 macro) #(1400 macro)
   #(1451 local) #(1452 intdef)
  matching binding...:
   #(provide/contract-struct-expandsion-info-id-stream.1 #<module-path-index=(submod 'main2[2582] stream)> 0)
   #(429 module stream) #(1084 macro)
  matching binding...:
   #(provide/contract-struct-expandsion-info-id-stream.1 #<module-path-index='main2[2582]> 0)
   #(411 module main2) #(1400 macro)
  context...:

cc @dvanhorn @camoy who found this

Duplicate issue #2676: all-defined-out doesn't seem to work well with macro
Created: 2019-06-03T14:19:05Z
When running the following a.rkt, I get the expected result:
#lang racket

(provide module++)
(require syntax/parse/define)

(define-simple-macro (module++ name base xs ...)
  (module name base
    (provide (all-defined-out))
    xs ...))

(module++ bar racket/base
          (define a 2))

(require 'bar)
a ;=> 2

However, running b.rkt, which uses module++ in a.rkt, fails.
#lang racket

(require my/a)

(module++ foo racket/base
          1)

provide: identifier's binding is ambiguous
  context...:
  matching binding...:
  matching binding...:
  matching binding...: in: provide

Closing comment (2019-06-03T14:19:28Z): Possibly related to #2469?
Repository: racket/racket

Issue #4978: Release Regressions for 8.13
Created: 2024-04-19T17:53:16Z
Build Failures

 clang https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/clang.txt
Caused by racket/typed-racket#1367.
Can be fixed by merging wargrey/digimon#3
 digimon https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/digimon.txt Caused by racket/typed-racket#1367. Can be fixed by merging wargrey/digimon#3
 odysseus https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/odysseus.txt Caused by #4917. Could be addressed by merging prozion/odysseus#2 or by reverting the change by merging #4973.

Test Failures

 crypto-test https://plt.cs.northwestern.edu/release-pkg-build/server/built/test-fail/crypto-test.txt Error is perhaps caused by different C libraries.
 peg-parser https://plt.cs.northwestern.edu/release-pkg-build/server/built/test-fail/peg-parser.txt Test timeout, likely unrelated to changes in Racket.
 struct-defaults https://plt.cs.northwestern.edu/release-pkg-build/server/built/test-fail/struct-defaults.txt Perhaps caused by an error message change. Can be fixed by merging tonyg/racket-struct-defaults#1

Other Failures

 video-v0-0 This is a continuing issue caused by the way the video-* packages are structured and not a regression.

Duplicate issue #4980: Release Regressions for 8.13
Created: 2024-04-23T16:19:25Z
Current Release vs Next Release

========================================



fetching https://pkg-build.racket-lang.org/summary.rktd
fetching https://plt.cs.northwestern.edu/release-pkg-build/summary.rktd



Build Failures

 YACP https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/YACP.txt
 clang https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/clang.txt
 digimon https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/digimon.txt
 odysseus https://plt.cs.northwestern.edu/release-pkg-build/server/built/fail/odysseus.txt

Test Failures

 struct-defaults https://plt.cs.northwestern.edu/release-pkg-build/server/built/test-fail/struct-defaults.txt

Dependency Failures
Other Failures

 video-v0-0

Closing comment (2024-04-23T16:20:31Z): This is a duplicate of #4978, FWIW.
Repository: rails/rails

Issue #5554: #count doesn't honor distinct attributes in select clause
Created: 2012-03-22T22:37:46Z
Calling count on an ActiveRecord::Relation with more than 1 distinct attribute in the select clause doesn't honor the select conditions.  For example, this works:
User.select('distinct username').all    #=> SELECT distinct username FROM "users"
User.select('distinct username').count  #=> SELECT COUNT(distinct username) FROM "users"
However, the distinct clause disappears from the count SQL when another distinct attribute is specified:
User.select('distinct username, email').all     #=> SELECT distinct username, email FROM "users"
User.select('distinct username, email').count   #=> SELECT count(*) FROM "users"
Same thing with distinct users.*:
User.select('distinct users.*').all     #=> SELECT distinct users.* FROM "users"
User.select('distinct users.*').count   #=> SELECT count(*) FROM "users"
That means for a relation with multiple distinct columns, relation.count is not necessarily the same as relation.all.count.
For distinct users.*, count(:distinct => true) works (it generates SELECT COUNT(DISTINCT "users"."id") FROM "users"), but that won't work for distinct username, email.
I've verified this behavior on Postgres and SQLite.

Duplicate issue #7818: Problem with count when selecting DISTINCT on multiple columns
Created: 2012-10-02T09:36:49Z
The count method returns the wrong queries when selecting DISTINCT on multiple columns:
The following example is wrong:
Advertisement.select("DISTINCT(id), advertisements.id").count # SELECT COUNT(*) FROM `advertisements`
It should return  SELECT COUNT(DISTINCT(id, advertisements.id)) FROM `advertisements`
The following example is right:
Advertisement.select("DISTINCT(id)").count #  SELECT COUNT(DISTINCT(id)) FROM `advertisements`
A temporary fix is, because the method all executes the query ;):
Advertisement.select("DISTINCT(id), advertisements.id").all.count
Currently I doesn't have the time to fix this issue. Hope to do it in the next couple of days. If somebody else will fix it, please drop a line below ;)

Closing comment (2013-03-12T15:07:47Z): Please use ``` to format your messages (I edited your message). Also it seems that this is a duplicate of #5554. I'm closing this issue even though it's older because the other one has more related discussion.
Repository: rails/rails

Issue #9134: Add cryptographic signatures for each gem
Created: 2013-01-31T17:40:43Z
In light of the recent Rubygems security issues, I think it would be prudent to add a signature to the gem and include it in releases. This isn't something I can issue a PR for, since the project owner would need to own the cert files.
The how-to is here:
http://docs.rubygems.org/read/chapter/21
TL;DR:


gem cert --build your@email.com


Copy the private key somewhere safe


Add the public key to the repo (git add gem-public_cert.pem)


Update the gemspec with something like:
s.signing_key = '/home/chris/.gemcert/gem-private_key.pem'
s.cert_chain  = ['gem-public_cert.pem']


Push and rake release


While this would be a self-signed certificate, the presence of the pubkey in the canonical repo will allow people verify that the gem they installed from Rubygems (or where ever) was signed by the project maintainer, and has not been altered.

Duplicate issue #9708: Sign future gems with PGP
Created: 2013-03-13T22:21:29Z
Please sign your future gem releases with PGP, as described at https://www.rubygems-openpgp-ca.org. This allows attackers who forge Rails releases to be easily detected. We at Phusion are already signing all our gems.
I realize that you may not necessarily trust this CA, but that is fine. By signing with PGP users can still verify files from your key directly, and if rubygems.org ever starts an official CA they can sign your keys without requiring actions from your side.

Closing comment (2013-03-13T22:23:47Z): This is a duplicate of #9134.
Repository: rails/rails

Issue #20666: ActionController::UnknownFormat should return HTTP 406
Created: 2015-06-22T19:28:00Z
From what I can tell, we are supposed to rescue this by default and return a 406 (Not Acceptable). At least on Rails 4.1 and 4.2 this doesn't seem to be the case – I generated a fresh Rails app with a scaffold resource and ran Rails server in production. curl -H "Accept: text/xml" http://localhost:3000/posts and curl http://localhost:3000/posts.xml both gives me a 500 instead.
Would be great if someone can look into this 😉

Duplicate issue #22853: Unknown format should return 404 rather than 204
Created: 2015-12-30T17:41:35Z
In Rails 5.0.0.beta1.  When I have a PiratesController, with a show action and I run:
$ curl -I http://localhost:3000/pirates/1.foobar
HTTP/1.1 204 No Content

It seems that a 404 response is more appropriate in this case.

Closing comment (2015-12-30T17:50:26Z): Actually this is due to #19036 and this is a dup of #20666
Repository: rails/rails

Issue #10658: Scopes defined on Abstract ActiveRecord classes are missing table names when called from subclasses
Created: 2013-05-17T01:24:05Z
If a scope is defined on an abstract active record class, when it is called by one of its subclasses the sql generated is missing a table name.
class AbstractCompany < ActiveRecord::Base
  self.abstract_class = true

  scope :abstract_company_scope, ->{ order('id') }
end

class Company < AbstractCompany
end

Company.abstract_company_scope #=> ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: : SELECT  "".* FROM ""   ORDER BY id LIMIT 1
Test has been added at lsylvester/rails@c64023b

Duplicate issue #11366: scopes defined in abstract_class model fails to compute the table_name
Created: 2013-07-08T11:46:38Z
In AR 4.0 and master, having an "abstract_class" model that doesn't have a table, and it's child without a "type" column";
class AbstractModel < ActiveRecord::Base
  self.abstract_class = true
  scope :foo, -> { where '1=1' }
end

class User < AbstractModel
end
a scope defined in the parent class fails to compute the table_name.
% rails r 'puts User.all.to_sql'
SELECT "users".* FROM "users"

% rails r 'puts User.foo.to_sql'
SELECT "".* FROM ""  WHERE (1=1)

I know that this is not an intended way of using abstract_class but this code is actually in our production code, and was working under past versions of ActiveRecord.
@jonleighton Could this be fixed?

Closing comment (2013-07-24T15:05:00Z): Duplicate of #10658
Repository: rails/spring

Issue #88: Issues with factory_girl
Created: 2013-02-28T21:45:36Z
I'm seeing two issues with factory_girl:

I'm getting AssociationTypeMismatch:

       Account(#70230659454740) expected, got Account(#70230618066520)


Fixtures aren't being reloaded between test runs.

Am I missing something?
—P

Duplicate issue #120: Spring causes is_a? to return incorrectly with models created by FactoryGirl
Created: 2013-04-09T01:50:09Z
I have a model PersonalProfile. The following spec fails when run with spring but not with just normal rspec:
it 'should return true for a is_a? call' do
  a = FactoryGirl.create :personal_profile
  puts a.class
  puts PersonalProfile
  a.should be_a PersonalProfile
end
  1) Spring should return true for a is_a? call
     Failure/Error: a.should be_a PersonalProfile
       expected #<PersonalProfile _id: 51637281b244efc643000002, _type: "PersonalProfile", ...> to be a kind of PersonalProfile
     # ./spec/thing_spec.rb:8:in `block (2 levels) in <top (required)>'

Not sure it matters, but PersonalProfile inherits from another model Profile (mixed object collection with Mongo.)

Closing comment (2013-06-21T15:30:33Z): Closing as this is a dupe of #88. As I just explained there, I think this is fixed by the latest release. Please try it.
Repository: rails/spring

Issue #70: Pry and ruby-debug19 causes spring to hang
Created: 2013-02-22T09:01:24Z
When I use this gems in a project, spring won't start (no error, just hangs).
Removing them from Gemfile and spring works normally.
Any ideas on what's going on?
Thanks!

Duplicate issue #71: Console doesn't display prompt in OS X
Created: 2013-02-22T09:40:30Z
Running bin/console loads the console but it's not displayed properly as you can see in the image below. Also I can't tell if it's a pry console:

A proper console would look something like this (this is what I get by rails console):

I'm on OS X Mountain Lion and I have pry-rails in my Gemfile.

Closing comment (2013-02-22T15:05:19Z): This is a dupe of #70.
Repository: rails/spring

Issue #305: Env is not correct when preloading
Created: 2014-05-06T21:26:07Z
When a new Spring::Application is created it calls preload first. However, it does this with the ENV settings from when the Spring server was first started.
This can cause preloading to fail if you are trying to set your database connection string using a DATABASE_URL.
If you first started spring in a RAILS_ENV that did not require DATABASE_URL to be set, because it is in the database.yml file. Then you try to start a console in another RAILS_ENV that requires a DATABASE_URL, the preload fails because it does not have DATABASE_URL set when doing the preload.

Duplicate issue #490: Spring doesn't reload when passing ENV vars in the command line
Created: 2016-08-22T15:33:06Z
In Rails 5, when I start rails console with an ENV var i.e. another DATABASE_URL (like DATABASE_URL=postgres://... rails c) , this is not picked up by spring and therefore ignored.
After typing spring stop the ENVs are picked up and the ENVs are taken into consideration.
This is pretty dangerous when choosing another database or rails env. Before rails 5 this worked as expected.

Closing comment (2020-04-13T20:15:43Z): Duplicate of #305
Repository: rails/spring

Issue #34: Issues with readline on OS X
Created: 2013-01-27T18:26:50Z
When I run spring console I don't see the characters I type. I can still execute the entered command and it will print the response but I don't see anything while typing.

Duplicate issue #70: Pry and ruby-debug19 causes spring to hang
Created: 2013-02-22T09:01:24Z
When I use this gems in a project, spring won't start (no error, just hangs).
Removing them from Gemfile and spring works normally.
Any ideas on what's going on?
Thanks!

Closing comment (2013-02-22T11:33:08Z): Are you using OS X? I think this issue is the same as #34, but I'm gonna keep this one and close that one as this one has a more descriptive title.
Repository: rails/spring

Issue #150: Blank response
Created: 2013-05-28T07:34:39Z
My rails environment is on a Linux VirtualBox hosted on a Windows 8 machine, and have the app code on the Windows 8 host. I have therefore set the SPRING_TMP_PATH to be withinin the linux server and Spring starts fine.
However, if I run spring rspec . it waits a while and then return to the command line without returning any test information

Duplicate issue #160: `spring rake spec` fails silently
Created: 2013-06-16T19:13:17Z
It starts the background spring processes, but shows no output, at all.
I've tried some things mentioned in other bugs (do not require "spec/autorun" and set RAILS_ENV to test in spec_helper, prepend the command with RAILS_ENV=test), but they didn't change anything.
spring 0.0.9
rails 3.2.13
rspec 2.14.0.rc1 and 2.13.0
spring rspec, rake spec and [bundle exec] rspec work fine.

Closing comment (2013-06-21T14:20:06Z): This seems to be a dupe of #150.
Repository: rails/spring

Issue #485: Rails 5 compatibility
Created: 2016-07-07T08:12:48Z
One nice feature of rails 5 - "rails" utility can execute rake commands. So instead of "rake db:migrate" one can use "rails rb:migrate". But currently spring can't detect this case and those commands pass beside spring.
I'm using spring 1.7.2 and rails 5.0.0.rc2

Duplicate issue #553: `rails` command is not using spring, even when instrumented (`rake` does)
Created: 2018-02-01T17:55:10Z
Possibly related to #544.
The rake command is leveraging spring, but the rails command does not.
2.5.0:rails-5.2 % spring stop
Spring stopped.

2.5.0:rails-5.2 % ./bin/rails routes
Prefix Verb URI Pattern Controller#Action
  root GET  /           pages#root

2.5.0:rails-5.2 % ./bin/rake routes
Running via Spring preloader in process 42529
Prefix Verb URI Pattern Controller#Action
  root GET  /           pages#root

2.5.0:rails-5.2 % ./bin/rails routes
Prefix Verb URI Pattern Controller#Action
  root GET  /           pages#root

Checking out bin/rails shows that it's instrumented for spring...
#!/usr/bin/env ruby
begin
  load File.expand_path('../spring', __FILE__)
rescue LoadError => e
  raise unless e.message.include?('spring')
end
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'

But for some reason, spring isn't triggered.

Closing comment (2018-02-05T19:57:31Z): I think this is a duplicate of #485.
This apparently has been a problem ever since Rails 5.0 was introduced. 😞
Repository: rails/spring

Issue #109: Support configuring files/directories to be ignored by the watcher
Created: 2013-03-29T11:18:26Z
Is there a way to setup custom list of files/directories to be ignored by watcher?
We are using custom script for starting rails console which runs svn update before each start, which causes spring to restart environment, since .svn folders are changed on each update.
Thanks in advance.

Duplicate issue #140: Need a way to skip watching certain files or directories
Created: 2013-05-08T11:12:24Z
Is there a way to skip watching .git and tmp/spring directories?
Freebsd kqueue would return Operation not supported error when tmp/spring/spring unix socket file is watched.  Right now I'm using SPRING_TMP_PATH=/tmp bin/spring to work around this problem.
/rvm/gems/ruby-2.0.0-p0/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/file.rb:19:in 'initialize': Operation not supported - Failed to open file /projects/bigapp/tmp/spring/spring: File type not supported. (Errno::EOPNOTSUPP)

But I still need a way to skip watching .git directory which contains lots of object files and gives me Too many open files in system error when starting spring.
/rvm/gems/ruby-2.0.0-p0/gems/rb-kqueue-0.2.0/lib/rb-kqueue/watcher/file.rb:19:in 'initialize': Too many open files in system - Failed to open file /projects/bigapp/.git/objects/fe: System file table is full. (Errno::ENFILE)```

Closing comment (2013-06-21T14:53:54Z): Closing this as a dupe of #109.
Repository: rails/spring

Issue #318: rails console on production uses spring
Created: 2014-07-01T05:42:53Z
I have been using spring since rails 4.1 released and I really like it. Yesterday we found that there's spring processes running on our production servers. We traced down and found that spring was started when we used rails console with command bundle exec rails console production. We don't want it to be used on production.
Regards your comment on this at rails/rails#12958 (comment)

It's already handled by the fact that spring is in the development group of the gemfile. So it's not installed on the server. If it's not installed, the binstub just bypasses spring and runs the underlying command.

What we have experienced is different, spring is installed on our production servers even though it's in :development group.
I'm curious, do you expect us to run bundle install with --without development on production servers? We haven't had need for --without development parameter. We have been using only bundle install --deployment so far.
Maybe we should update the documentation for this?

Duplicate issue #353: ActiveSupport::Concern::MultipleIncludedBlocks error raised when running spring.
Created: 2014-09-13T15:23:30Z
This only happens when running in production mode.
I have spring in the development group of my Gemfile.  When I do rails c production (not having done bundle install --without development), then this error is raised:
/Users/justin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activesupport-4.1.6/lib/active_support/concern.rb:126:in `included': Cannot define multiple 'included' blocks for a Concern (ActiveSupport::Concern::MultipleIncludedBlocks)

When I remove spring from the bundle, then rails c production works fine.
I think this might be user error (activating spring in production mode), but it is an easy mistake to make, and the error received this isn't clear.  Should spring issue a big warning when starting in production mode?

Closing comment (2014-09-13T15:28:06Z): Duplicate of #318
Repository: ray-project/kuberay

Issue #1290: [Bug] Incorrect payload doc for creating ray jobs in apiserver
Created: 2023-08-03T14:13:43Z
Search before asking

 I searched the issues and found no similar issues.

KubeRay Component
apiserver
What happened + What you expected to happen
https://github.com/ray-project/kuberay/tree/master/apiserver#create-ray-job-in-a-given-namespace
https://ray-project.github.io/kuberay/components/apiserver/#create-ray-job-in-a-given-namespace
I believe the documented payload for creating ray jobs is actually the response for getting ray jobs.
Reproduction script
N/A
Anything else
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #1408: [Feature] Document apiserver request examples for EPHEMERAL and Ingress
Created: 2023-09-09T08:41:05Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
These http request examples should be documented otherwise people may have hard time
Create EPHEMERAL volume #1312 (review)
Enable ingress #1312 (comment)
Use case
No response
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Closing comment (2023-09-14T10:49:43Z): @tedhtchang, I think this is a duplicate #1290.
Repository: ray-project/kuberay

Issue #1291: [Feature] Allow RayCluster Helm chart to specify different images for different worker groups
Created: 2023-08-03T18:20:32Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
https://ray-distributed.slack.com/archives/C02GFQ82JPM/p1690936864376519
Use case
No response
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #200: [Feature] Run different worker types with different images
Created: 2022-03-18T06:30:10Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
I would like to run multiple worker groups with individual docker images, e.g. one general-purpose CPU worker using the same image as head (rayproject/ray:latest), and one GPU worker using the rayproject/ray-ml:latest-gpu image.
In the current ray helm chart, one can specify an arbitrary number of worker types. I modified that helm chart to allow individual images per worker type.
I wasn't able to find documentation on how to achieve multiple worker types (with multiple docker images) using the kuberay chart: there is only one worker entry.
Use case
My concrete use-case of values for the ray helm chart:
image: rayproject/ray:1.11.0
namespacedOperator: true
podTypes:
  rayHeadType:
    memory: 1Gi
    CPU: 1
  rayWorkerType:
    memory: 1Gi
    CPU: 1
    minWorkers: 0
    maxWorkers: 4
  rayWorkerTypeGPU:
    image: rayproject/ray-ml:1.11.0-gpu
    GPU: 1
    memory: 15Gi  # g4dn.xlarge has 16GiB and 4vCPU
    CPU: 3800m    # kube-system daemonsets reserve 200m on each node
    rayResources: # trick Ray into still using all 4 cores (as long as cpu.limits is disabled ref https://github.com/ddelange/ray/blob/ce528d4d/deploy/charts/ray/templates/raycluster.yaml#L70)
      CPU: 4      # for kuberay equivalent see #167
    minWorkers: 0
    maxWorkers: 4
    nodeSelector:
      kops.k8s.io/gpu: "1"
    tolerations:
    - effect: NoSchedule
      key: nvidia.com/gpu
      operator: Exists
Related issues
A similar use case (multiple workers with multiple images) but different feature request: #167
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Closing comment (2023-08-18T23:32:40Z): Same as #1291. Close this one.
Repository: ray-project/kuberay

Issue #1944: [Feature] TTL Delete RayJob CRD After Job Termination
Created: 2024-02-27T02:34:13Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
Currently KubeRay enables the cluster to auto terminate after completion, but there is no mechanism to auto delete the Ray Job instance (owner).
This is beneficial for auto k8s cluster clean up, and behaves similar to a K8s jobs TTL.
Use case
Delete the Ray Job alongside controlled via an additional flag.
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #2187: [Feature] Allow setting `ttlSecondsAfterFinished` for RayJob submitter Job
Created: 2024-06-11T16:12:34Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
The RayJob cluster can be cleaned up by setting spec.shutdownAfterJobFinishes: true, but I can not figure out how to clean up the RayJob itself including the submitter k8s Job.
I am not familiar with Go, but browsing the source code a bit, it seems like this can be realized in createNewK8sJob. The backoffLimit can be set through submitterConfig, perhaps the shutdownAfterJobFinishes field can just be added to that type and used in createNewK8sJob? That would not delete the RayJob resource though.
Use case
I want the RayJob cluster, the RayJob and the submitter k8s Job to be cleaned up automatically.
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Closing comment (2024-06-11T16:59:16Z): Dang, my bad. Thanks. Closing as duplicate of #1944.
Repository: ray-project/kuberay

Issue #475: [Feature] host helm in github static site
Created: 2022-08-15T21:17:40Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
Currently, we ask user to clone the repo and then install helm chart. This is inconvenient and not the best practice for installation. We should use tools like https://github.com/helm/chart-releaser to provide experience like
helm repo add ray-project https://ray-project.github.io/kuberay
helm install kuberay ray-project/kuberay -n ray-system

The tricky thing is we already have docs served in Github gh-pages. https://ray-project.github.io/kuberay/ We can not automatically use it to serve helm static files.
The ideal solution is to create a separate repo to host charts. like ray-project/kuberay-charts or ray-project/ray-charts.
Then we can sync helm update there. We just need to update the chart if we have a release. if it's called ray-charts, then other manifest could be deployed in Kubernetes can be moved there.
Use case
Provide user easier way to install helm chart.
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #260: [Feature] Host KubeRay charts at a public Helm repository
Created: 2022-05-12T02:33:08Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
Host KubeRay charts at a public Helm repository.
Use case
Context:
Corresponding issue for the operator hosted in the Ray repo.
ArgoCD use-case discussed on Ray Slack.
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Closing comment (2022-08-15T21:57:38Z): Duplicate of #475
Repository: ray-project/kuberay

Issue #1890: [Docs] Add example docs of using RayJob and Kueue 
Created: 2024-01-30T15:17:53Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
After discussing with @kevin85421, it would be helpful to have some documentation on how to use RayJob and Kueue for job priority/premption and gang scheduling.
Use case
No response
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #1100: [Feature] Priority Support for rayJob
Created: 2023-05-20T15:03:10Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
Currently, rayJob has no priority class field, but this is important for Job queueing system when enqueueing, e.g. kueue community here kubernetes-sigs/kueue#667 (comment), what I found we can do today is

query the annotation ray.io/priority-class-name as volcano does
use the headGroup's pod priority as rayJob's priority for workerGroups start after headGroup

Or we can add a new priorityClass filed to rayJob and populate it to headGroup and workerGroups.
Use case
Priority is important for Job queueing system.
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Closing comment (2024-02-03T08:38:12Z): @andrewsykim is working on ray-project/ray#42903, and this issue is tracked by #1890. Close this issue.
Repository: ray-project/kuberay

Issue #446: [Feature] need sync for manifests and helm chart 
Created: 2022-08-09T18:31:41Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
In 
  
    
      kuberay/ray-operator/Makefile
    
    
        Lines 49 to 50
      in
      76f96bf
    
  
  
    

        
          
           helm: manifests kustomize ## Sync the CRDs into the Helm chart 
        

        
          
           	$(KUSTOMIZE) build config/crd > ../helm-chart/kuberay-operator/crds/crd.yaml 
        
    
  


we may find there is only crds synced and if there is modification in RBAC, we may forget to sync and may cause some RBAC failure, for example add new rayjobs resource verbs and we forget to update the chart manually.
Use case
we may use make helm to sync all the roles as well as crds.
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #542: [Helm] Auto-sync Helm configuration
Created: 2022-09-07T16:42:17Z
Our build/ci processes do not currently keep Helm chart configuration consistent with KubeBuilder-generated configs outside of Helm.
That should be fixed to avoid having to sync manually, as in #541.

Closing comment (2022-09-07T21:40:07Z): Oops, this is a duplicate of #446.
Repository: ray-project/kuberay

Issue #200: [Feature] Run different worker types with different images
Created: 2022-03-18T06:30:10Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
I would like to run multiple worker groups with individual docker images, e.g. one general-purpose CPU worker using the same image as head (rayproject/ray:latest), and one GPU worker using the rayproject/ray-ml:latest-gpu image.
In the current ray helm chart, one can specify an arbitrary number of worker types. I modified that helm chart to allow individual images per worker type.
I wasn't able to find documentation on how to achieve multiple worker types (with multiple docker images) using the kuberay chart: there is only one worker entry.
Use case
My concrete use-case of values for the ray helm chart:
image: rayproject/ray:1.11.0
namespacedOperator: true
podTypes:
  rayHeadType:
    memory: 1Gi
    CPU: 1
  rayWorkerType:
    memory: 1Gi
    CPU: 1
    minWorkers: 0
    maxWorkers: 4
  rayWorkerTypeGPU:
    image: rayproject/ray-ml:1.11.0-gpu
    GPU: 1
    memory: 15Gi  # g4dn.xlarge has 16GiB and 4vCPU
    CPU: 3800m    # kube-system daemonsets reserve 200m on each node
    rayResources: # trick Ray into still using all 4 cores (as long as cpu.limits is disabled ref https://github.com/ddelange/ray/blob/ce528d4d/deploy/charts/ray/templates/raycluster.yaml#L70)
      CPU: 4      # for kuberay equivalent see #167
    minWorkers: 0
    maxWorkers: 4
    nodeSelector:
      kops.k8s.io/gpu: "1"
    tolerations:
    - effect: NoSchedule
      key: nvidia.com/gpu
      operator: Exists
Related issues
A similar use case (multiple workers with multiple images) but different feature request: #167
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Duplicate issue #1291: [Feature] Allow RayCluster Helm chart to specify different images for different worker groups
Created: 2023-08-03T18:20:32Z
Search before asking

 I had searched in the issues and found no similar feature requirement.

Description
https://ray-distributed.slack.com/archives/C02GFQ82JPM/p1690936864376519
Use case
No response
Related issues
No response
Are you willing to submit a PR?

 Yes I am willing to submit a PR!

Closing comment (2023-08-18T23:32:05Z): Same as #200