primordic/IssueDupesLite huggingface dataset:
Repository: steveicarus/iverilog

Issue #208: c=1?$signed(a)>>>1:a>>1 appears miscompiled
Created: 2018-09-23T02:27:42Z
This is a dramatically reduced test case (the original looks nothing like this).
module t;
reg z=1;always#5z=!z;reg[31:0]a=0,b=0,c,d;
always@(*)begin
  c=1?$signed(a)>>>1:a>>1;
  d=$signed(a)>>>1;
end
always@(posedge z)begin{b,a}<={b,a}+'h1000;if(d!=c)$display("F");end
endmodule

In my understanding this should never print anything, but it does for me.
I'll try to rebuild from git, but Mac Brew is up to date.

Duplicate issue #207: https://sourceforge.net/tracker/?group_id=149850 doesn't exist
Created: 2018-09-23T02:23:19Z
I just wanted to report a bug.  I spent hours narrowing it down to a bug in Icarus 10.1 and 10.2 (Linux and Mac) and produced a minimal repro case.  The BUGS.txt tells me to research all previous bugs on the above link to see if it already exists, but that link doesn't work (I get a Page not found error).
I'll try to build from git and see if I can reproduce it there.

Closing comment (2018-09-24T22:19:17Z): Was this related to #208?
Repository: steveicarus/iverilog

Issue #464: SV: interface as port item is not supported
Created: 2021-01-02T08:12:34Z
Hi,
While SV interface seems to work in Icarus as local elements, passing it via port list is not working. Is this a known limitation? Sounds not too hard to support especially since driving interface signals seems to work (didn't check waves, but log I did).
Below is a test:
interface apb_if (input bit pclk);
   logic        psel;
endinterface : apb_if

module m (apb_if if_0);
endmodule : m 

Log:
apb_if.sv:6: syntax error

Duplicate issue #1081: The sv_interface test is not implemented
Created: 2024-01-21T03:03:35Z
This test is marked as NI since is generates compiler errors. The test is in ivtest/ivltests/sv_interface.v.
steve@icarus:~/icarus/eda/devel/verilog/ivtest> cat log/sv_interface-iverilog-stderr.log 
ivltests/sv_interface.v:119: syntax error
ivltests/sv_interface.v:1: Errors in port declarations.
ivltests/sv_interface.v:151: syntax error
ivltests/sv_interface.v:1: Errors in port declarations.

Closing comment (2024-01-23T02:21:06Z): This is a duplicate of #464 so closing this and adding the test to the previous PR
Repository: steveicarus/iverilog

Issue #827: Ternary operator with constants to $display()
Created: 2022-12-22T14:50:53Z
Below is a test case.
module test();
   reg expected = 1;
   initial begin
      $display("Const Positive %s", 1 ? "yes" : "NO");
      $display("Const Negative %s", !1 ? "yes" : "NO");
      $display("Var Positive %s", expected ? "yes" : "NO");
      $display("Var Negative %s", !expected ? "yes" : "NO");
      $finish;
   end
endmodule


I am using the WSL2 with Ubuntu 20.04 release of the iverilog and vvp.
$ iverilog -V | head -n 1
Icarus Verilog version 10.3 (stable) ()
Unable to get version from "/usr/lib/x86_64-linux-gnu/ivl/ivlpp -V"
Unable to get version from "/usr/lib/x86_64-linux-gnu/ivl/ivl -V -C"/tmp/ivrlh337f554a" \
    -C"/usr/lib/x86_64-linux-gnu/ivl/vvp.conf""
$ iverilog -Wall -g2005-sv test.v
$ vvp a.out
Const Positive yes
Const Negative
Var Positive yes
Var Negative  NO

The Const Negative line does not supply the string 'NO'.  If the constants are verilog defines, then the use case becomes more apparent.

Duplicate issue #879: Ternary operator with constants 
Created: 2023-03-07T08:43:24Z
consider this code：
module top();
reg expected = 1;
initial begin
$display("Const Positive %s", 1 ? "Yes" : "NO");
$display("Const Negative %s", 0 ? "Yes" : "NO");
  $finish;

end
endmodule
when I am using the  Ubuntu 20.04 release of the iverilog and vvp ，The Const Negative line does not supply the string 'NO'.
$ iverilog -v
Icarus Verilog version 10.3 (stable) ()
Copyright 1998-2015 Stephen Williams
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
$ iverilog -Wall -g2005-sv 1.v
$ vvp a.out
Const Positive Yes
Const Negative

Closing comment (2023-03-07T09:02:42Z): Duplicate of #827. This is fixed in the master branch.
Repository: steveicarus/iverilog

Issue #886: Website `http://iverilog.icarus.com/` not working
Created: 2023-03-21T12:40:15Z
Address http://iverilog.icarus.com/ redirects to the Google account login screen.

Duplicate issue #914: No site found for link in ReadMe http://iverilog.icarus.com/
Created: 2023-05-03T19:13:17Z
http://iverilog.icarus.com

Closing comment (2023-05-03T22:56:43Z): Duplicate of #886.
Repository: steveicarus/iverilog

Issue #1074: Arithmetics after a flip-flop causes wrong runtime value in specific circumstances
Created: 2024-01-16T18:21:14Z
Hi there!
Thank you for your contributions with Icarus, it is extremely valuable.
I stumbled into another runtime error with Icarus, where the output of a flip-flop, this time, is wrong after consumed by an arithmetic operator.
Verilator produces the value that one would expect. To the  best of my knowledge, there is no structural race condition in this circuit.
Here is a repository to reproduce the issue.
I'm using Icarus Verilog version 13.0 (devel) (s20221226-331-g77d7f0b8f).
I would expect this to be related to #1073.
Please let me know if you need any more information.
Thank you!
Flavien

Duplicate issue #1083: The sv_parameter_type test hangs
Created: 2024-01-21T03:07:35Z
This test is marked as NI since it hangs at run time. The test is here: ivtest/ivltests/sv_parameter_type.v

Closing comment (2024-01-23T02:24:25Z): This is the same as #1074. We have a partially driven 2-state vector and the undriven bits are 'z instead if '0 and then we get 'x as the result of any operation on them.
Repository: steveicarus/iverilog

Issue #1074: Arithmetics after a flip-flop causes wrong runtime value in specific circumstances
Created: 2024-01-16T18:21:14Z
Hi there!
Thank you for your contributions with Icarus, it is extremely valuable.
I stumbled into another runtime error with Icarus, where the output of a flip-flop, this time, is wrong after consumed by an arithmetic operator.
Verilator produces the value that one would expect. To the  best of my knowledge, there is no structural race condition in this circuit.
Here is a repository to reproduce the issue.
I'm using Icarus Verilog version 13.0 (devel) (s20221226-331-g77d7f0b8f).
I would expect this to be related to #1073.
Please let me know if you need any more information.
Thank you!
Flavien

Duplicate issue #1073: Runtime error after a xor of concatenations after a latch
Created: 2024-01-16T18:07:44Z
Hi there!
I stumbled into a runtime error with Icarus, where the output of a latch is wrong after consumed by a xor.
Verilator produces the value that one would expect. To the  best of my knowledge, there is no structural race condition in this circuit.
Here is a repository to reproduce the issue.
I'm using Icarus Verilog version 13.0 (devel) (s20221226-331-g77d7f0b8f).
Please let me know if you need any more information.
Thank you!
Flavien

Closing comment (2024-01-18T01:57:19Z): Thanks for all the bug reports.
This is same as #1074. xor with 'x and then the result is 'x and gets converted to 0. Easy to see when changing the type of celloutsig_3z to logic.
Fix will be the same as for #1074. We can probably close this one as a duplicate.
Repository: steveicarus/iverilog

Issue #483: $bits on item in a generate block fails when used in a constant expression
Created: 2021-02-09T00:23:20Z
module top;
	parameter ENABLE = 1;
	if (ENABLE) begin : blk
		wire [7:0] w;
	end
	wire [7:0] x;
	wire [$bits(blk.w)-1:0] y;
	wire [$bits(x)-1:0] z;
	initial begin
		$display("blk.w: %b (%0d bits)", blk.w, $bits(blk.w));
		$display("x: %b (%0d bits)", x, $bits(x));
		$display("y: %b (%0d bits)", y, $bits(y));
		$display("z: %b (%0d bits)", z, $bits(z));
	end
endmodule
When simulating the above test case, most tools produce:
blk.w: zzzzzzzz (8 bits)
x: zzzzzzzz (8 bits)
y: zzzzzzzz (8 bits)
z: zzzzzzzz (8 bits)

However, iverilog (both version 11.0 and the latest master) produces:
blk.w: zzzzzzzz (8 bits)
x: zzzzzzzz (8 bits)
y: xx (0 bits)
z: zzzzzzzz (8 bits)

Notice that $bits(blk.w) correctly evaluates to 8 in the $display call, but not in the declaration of y.

Duplicate issue #1097: Array depth defined with the num method of an enum where the variable name is identical to part of the enum instance name causes an error
Created: 2024-02-08T03:10:14Z
The title is a bit of a mouthful, hopefully an example will make it clear:
module test_mod ();
 
    typedef enum logic [4:0] {ENUM_ELEM1, ENUM_ELEM2} test_enum_t;

    test_enum_t test_mem_addr_e;
    logic test_mem [test_mem_addr_e.num()];
    logic test_mem_int [test_mem_addr_e.num()];

endmodule 
Running iverilog on the above throws the following error:
test2.sv:8: error: No function named `test_mem_addr_e.num' found in this context (test_mod).
test2.sv:8: error: Dimensions must be constant.
test2.sv:8       : This size expression violates the rule: test_mem_addr_e.num()
2 error(s) during elaboration.

If you append any text to test_mem, as long as does not match test_mem_addr_e, no error is generated.
I tested this using 2948e9a.

Closing comment (2024-02-08T03:28:47Z): This is effectively the same as #483. There is currently no support for referencing a variable or wire as part of the dimension specification of another variable or wire. Will keep this open since it provides another example of how this can fail.
Repository: steveicarus/iverilog

Issue #521: Error when using loop index in outer dimension of multi-dimensional packed arrays
Created: 2021-06-07T15:57:00Z
The code below sets bit 3 of all members of array a.  I should print '8888' (tested with vcs).
However, I got this error running with "iverilog -g2012"

mda.v:8: error: A reference to a wire or reg (`i') is not allowed in a constant expression.
mda.v:8: error: Array index expressions must be constant here.

module test;

  logic [3:0][3:0] a;

  initial begin
    a = 0;
    for (int i=0; i<4; i++)
      a[i][3] = 1;
    $display("%h", a);
    $finish;
  end

endmodule

Duplicate issue #995: for loop in always block and multi-dimension packed array
Created: 2023-08-30T19:55:25Z
I have a failure trying to use 2 for loop trying to index a multi dimension packed array :
$ iverilog -g2012  test.sv 
test.sv:10: error: A reference to a wire or reg (`i') is not allowed in a constant expression.
test.sv:10: error: Array index expressions must be constant here.
2 error(s) during elaboration.

module test;

    reg [1:0][1:0] v;

    initial
    begin
        integer i,j;
        for (i=0; i<2; i=i+1)
            for (j=0; j<2; j=j+1)
                v[i][j] = 0;
    end

endmodule

Closing comment (2023-08-31T01:32:26Z): This is a duplicate of #521.
In Verilog it was forbidden to have non-const indices for any but the last dimension. In SystemVerilog it is allowed for all dimensions, but it hasn't been implemented yet.
Repository: strapi/strapi

Issue #18293: Multiselect closes the whole modal
Created: 2023-10-04T13:06:43Z
Bug report
Required System information





Node.js version:  v18.17.1
NPM version: 9.63
Strapi version: 4.14.2
Operating system: Sonoma 14.0
Browser: Arc 1.10.1 (Chromium Engine Version 117.0.5938.132)
Is your project Javascript or Typescript: TypeScript


Describe the bug
When selecting options inside a multiselect that is inside a modal, clicking outside of the multi box closes the modal altogether. No matter if I click inside of the modal to fill in other fields, this will close the modal.
I also didn't figure out other ways to close the options list without closing the modal. Focusing back to the modal feels impossible.
Steps to reproduce the behavior
The place I found a modal is on the Users settings page, not sure where else are they.

Go to Settings > Users
Click on Invite new user
Select options in User's roles
Exit the options list

Expected behavior
A click outside of the options list, inside the modal should close just the list. Esc key press as well, I believe (?)
Screenshots

Code snippets
n/a
Additional context
n/a

Duplicate issue #19409: When I click off a dropdown, it closes the whole admin modal with unsaved data
Created: 2024-02-01T12:51:01Z
Admin Modals close without warning when forms have unsaved data which leads to data loss.
We're using Strapi V4.14.15 and Node V18.19.0
Is there any woraround for this?

  
    
    

    clicking-outside-modal.mp4

Closing comment (2024-02-09T17:02:44Z): duplicate: #18293
Repository: strapi/strapi

Issue #15053: 4.5.3 does not support custom fields inside components
Created: 2022-12-01T12:25:19Z
Bug report
Required System information



Node.js version: latest LTS
Strapi version: 4.5.3

Describe the bug
4.5.3 shows "not supported" for custom fields that are part of a component type.
Custom fields in collection / singleton types still works.
This was no issue on 4.5.2
Steps to reproduce the behavior
Create a custom field with a plugin
Add this custom field to a component type
Use the component type in a collection / singleton
Expected behavior
Custom fields should work in component types as they did in 4.5.2

Duplicate issue #15089: plugin-color-picker not supported on version 4.5.3
Created: 2022-12-06T07:17:35Z
Bug report
Required System information

Node.js version: v16.14.2
NPM version: 8.5.0
Strapi version: 4.5.3
Database: mysql
Operating system: MacOS

Describe the bug
Color picker plugin not working when updating strapi from 4.5.2 to 4.5.3.
Steps to reproduce the behavior

After update to 4.5.3 from 4.5.2
Go to the Content Manager page and select the page where the color picker plugin is used.

Expected behavior
The color picker UI is displayed.
Screenshots

Closing comment (2022-12-06T07:27:44Z): Duplicate of #15053 This issue will be fixed by the next version. Thank you for reporting it!
Repository: strapi/strapi

Issue #1114: Deleting/Updating content-type doesn't drop/migrate the database
Created: 2018-05-04T09:32:06Z
Informations

Node.js version: 9.9.0
npm version: 5.6.0
Strapi version: 3.0.0-alpha 12.1.2
Database: MySQL
Operating system: Windows 10

What is the current behavior?
Deleting a content-type does not drop the database table in MySQL, & when I navigate to roles & permissions, I can still see the deleted content-type and edit its permissions. When i create a new user role however, it only shows the non-deleted content-types. So for some reason, the content-types don't get deleted from the memory of existing user roles
Steps to reproduce the problem

create content-type
add a string field to it
save
delete content-type
content-type is not in the list of content-types anymore but the database table still exists + the reference to the content-type remains in the roles & permissions folder of a user role, when editing permissions.

What is the expected behavior?
deleting a content-type should remove all references of this content-type ever existing + drop its database automatically. Dropping the database manually still doesn't make the reference to the content-type in roles & permissions disappear. Dropping the whole database and re-creating it does however fix the problem
Suggested solutions
N.A.

[ x ] I'm sure that this issue hasn't already been referenced

Duplicate issue #3529: Content type builder not deleting removed content types in PostgreSQL
Created: 2019-06-25T19:34:02Z
Strapi 3.0.0-beta 6 / PostgreSQL 10.8
When i remove content type, for example "Page", the table still remains in a database, which causes lots of issues, like null is already taken when trying to create a new content.

Closing comment (2019-06-25T20:58:17Z): Duplicate: #1114
Also @heihachi88 please ensure you use the bug report templates, issues created without using a template are closed.
Repository: strapi/strapi

Issue #16125: [URGENT] All files inside folder gets DELETED when the folder moved.
Created: 2023-03-17T16:56:33Z
Bug report
We have lost nearly 10000 images and files from and cloudinary by just cleaning up the fodlers inside strapi interface.
Required System information



Node.js version: v14.21.3
NPM version:
Strapi version: v4.6.0
Database: Mysql
Operating system: Centos
Is your project Javascript or Typescript: JS

Describe the bug
In media Library, if the folder containing files moved to another folder, all contents get deleted, and new folder is empty.
We use Cloudinary Provider.
Steps to reproduce the behavior

Move Any folder with files to another folder.
Cry that files lost, from both cloudinary and strapi.

Expected behavior
Not to delete files.
Additional context
I am not sure, how does something like that is not tested.

Duplicate issue #16734: Media library folders and files can get unintentionally deleted
Created: 2023-05-16T07:22:12Z
Bug report
Required System information

Node.js version: 16.17.0
NPM version: 8.15.0
Strapi version: 4.10.5
Database: SQLite
Operating system: macOS Monterey
Is your project Javascript or Typescript: JavaScript

Describe the bug
Critical issue in remove logic for folders in media library. The first folder that's created in root get a path of "/1", the second get path of "/2". At some point we have created enough folders to reach double digits, with path "/10", "/11" and so on. If we delete the first folder with path "/1" then folders with path "/10-/19" gets deleted as well.
The SQL queries uses startsWith and path "/10-/19" all starts with "/1":
https://github.com/strapi/strapi/blob/main/packages/core/upload/server/services/folder.js#L54-L70
Might be related to #16125
Steps to reproduce the behavior

Setup a new project
Create 10-20 folders in media library root
Remove the first folder that was created
Observe that other folders that has a path starting with "/1" will be removed as well

Expected behavior
To not remove folders and files that was not intentional
Screenshots

  
    
    

    bug-report.mp4

Closing comment (2023-05-17T09:51:54Z): Hello, indeed this is probably related to #16125 . I will start working on this asap.
Repository: strapi/strapi

Issue #1281: Strapi new project command freezes on database connection setting portion of CLI wizard on Windows
Created: 2018-05-27T05:22:31Z
Informations

Node.js version: 10.2.1
npm version: 6.2.1
Strapi version: 3.0.0-alpha.12.2
Database: 3.6.5
Operating system: Windows Server 2016

What is the current behavior?
When selecting the database type (Mongodb in this case), the options for logging on do not appear.  The command prompt sticks and freezes in session.  I have also attempted to run the strapi installer attempting to connect with MySQL, only ending in the same result
Steps to reproduce the problem
npm install strapi -g
strapi new testapi
*Selected MongoDB

What is the expected behavior?
strapi asks for the MongoDB login configuration.
Suggested solutions
Unknown at this time.  Request diagnosis steps.

Duplicate issue #1998: strapi new does not work
Created: 2018-09-21T08:53:06Z
Informations

Node.js version: Node: 10.11
npm version: NPM: 6.4.1
Strapi version: v3 alpha 14.1.1
Database: mongo 4.0
Operating system: windows

What is the current behavior?
When entering strapi new , the project creation do not go over "project name" assignation
Steps to reproduce the problem
What is the expected behavior?
Project creation should run properly
Suggested solutions
Please help ^^



What is the expected behavior?

Closing comment (2018-09-23T19:01:52Z): Duplicate: #1281
Recommend closing
Repository: strapi/strapi

Issue #2166: Respect relation items order
Created: 2018-10-18T18:17:14Z
NOTE: This a duplicate of this (closed) issue that was not submitted with a proper template:
#2134
Informations

Node.js version: 10.12.0
npm version: 6.4.1
Strapi version:  3.0.0-alpha.14.3
Database: MongoDB (4.0.0)
Operating system: Mac OS 10.13.2

(NOTE: also seeing same behavior on server configured as follows)

Node.js version: 9.9.0
npm version: 5.6.0
Strapi version:  3.0.0-alpha.14.2
Database: MongoDB (4.0.0)
Operating system: Ubuntu 16.04.4

What is the current behavior?
Relations do not retain ordering on save.
Steps to reproduce the problem

Create a new strapi

strapi new testProject3
# (accept defaults)
cd testProject3
strapi start


Open admin
Create two Content Types (foo & bar), each with a name (string) field.
Create a oneToMany relation from bar to foo.
Create three foos with name values 'foo1', 'foo2', and 'foo3'
Create a bar with name 'bar1'
Add each foo to the oneToMany relation in bar1; order them 'foo3', 'foo2', 'foo1'
Save bar1
Reopen bar1

The oneToMany relation UI now shows items in order 'foo1', 'foo2', 'foo3'.
NOTE: this is also true with many-to-many relations, as shown in these screenshots.
Before save:

After save:

What is the expected behavior?
The oneToMany items retain their ordering.
Suggested solutions
None at this point.
Thanks!

Duplicate issue #11147: [v4] Make re-orderable UI elements available for relations again
Created: 2021-09-29T20:47:02Z
Feature Request
Describe the feature request
This could arguably also be a feature request, but it feels more like a regression...
In v3 Relation fields would use a re-orderable UI element. Even though re-ordering was not supported out of the box, it could be implemented like e.g. so: https://forum.strapi.io/t/save-relation-items-order-issue-2166/332/43
Expected behavior
I would like to at have at least an option to show the re-orderable UI element for Relation fields as in v3.
Screenshots
The UI element in v3:

In v4 beta:

Closing comment (2022-03-24T22:02:01Z): duplicate: #2166
Repository: strapi/strapi

Issue #7454: Unable to access array fields of a component in a dynamic zone
Created: 2020-08-13T11:07:26Z
Describe the bug
We have got a single type Home with a dynamic zone field Content where it is possible to add custom components like displaying several projects (set up as a relation). These projects do have some array fields like MetaData, MetaTags or TeaserImages (see first screenshot), but these are not showing in the response for the Home query (see second screenshot).
Expected behavior
It is possible to see and access the array fields.
Screenshots
/projects request

/home request

System

Node.js version: v13.7.0
NPM version: 6.13.7
Strapi version: 3.1.3
Database: postgres
Operating system: MacOS 10.15.6

Duplicate issue #10778: Cannot access nested component data inside a relationship stored inside a dynamic zone of a component. 
Created: 2021-08-23T10:12:48Z
I've come across a strange issue when making relations, and was looking for some guidance.
I have a collection type in which I've stored a dynamic zone. The dynamic zone has a component that holds a relationship to another component. The other component holds a nested component, while primitive data fields such as text, rich text etc are available. The problem I'm facing is that when I query the component, I'm able to get all the data except the nested component inside that relation.
Below are some images for reference
This is the main blog page model I've created, it has a dynamic zone with a component that has a relation field.

This is an instance of the blog page type, where I have connected the relation with relevant post/section

This is the FAQ content model type, within this I have another repeatable component called questionList.

This is the instance of the FAQ content model

When I query the blog pages, I only the primitive data types inside the faq data, I can't seem to acccess the list elements

I need to be able to access the list elements inside the faq data. Any ideas or suggestions?

Closing comment (2021-08-23T22:17:20Z): duplicate: #7454
Repository: strawberry-graphql/strawberry

Issue #843: Private fields don't work as forward references
Created: 2021-04-12T15:49:07Z
this is currently broken as "strawberry.Private[str]" becomes a string
from __future__ import annotations

import strawberry

@strawberry.type
class T:
    name: str
    instance: strawberry.Private[str]

Duplicate issue #917: Add docs for Private fields
Created: 2021-05-06T13:30:52Z
https://github.com/strawberry-graphql/strawberry/blob/main/tests/schema/test_private_field.py#L11

Closing comment (2021-05-20T10:57:57Z): @jkimbo I think the issue is the same as #843

Ah yeah that looks like it might be whats going on. What can we do to fix that issue?
Repository: strawberry-graphql/strawberry

Issue #834: Support GET requests for queries?
Created: 2021-04-11T12:46:57Z
Apollo client supports using GET instead of POST for GraphQL queries.
As far as I can tell strawberry doesn't seem to support this (at least in the ASGI wrapper). Am I missing something? Is there already a plan to do so?

Duplicate issue #1584: Support GET for fetching queries when GraphiQL is turned off (FastAPI)
Created: 2022-01-19T14:07:24Z
The official documentation lists best practices for serving over HTTP here.
In particular, it mentions support of GET requests to fetch queries.
Strawberry does not currently support this (at least not in the FastAPI integration, unsure about others), and will simply return 404 when GraphiQL is turned off.
I think it should! For the FastAPI integration, we probably need something along the lines of how POST requests are handled, cf. 
  
    
      strawberry/strawberry/fastapi/router.py
    
    
        Lines 111 to 123
      in
      b021481
    
  
  
    

        
          
           async def get_graphiql() -> Response: 
        

        
          
               if not self.graphiql: 
        

        
          
                   return Response(status_code=status.HTTP_404_NOT_FOUND) 
        

        
          
               return self.get_graphiql_response() 
        

        
          
            
        

        
          
           @self.post(path) 
        

        
          
           async def handle_http_query( 
        

        
          
               request: Request, 
        

        
          
               response: Response, 
        

        
          
               context=Depends(self.context_getter), 
        

        
          
               root_value=Depends(self.root_value_getter), 
        

        
          
           ) -> Response: 
        

        
          
               actual_response: Response

Closing comment (2022-02-01T20:41:32Z): (Related to #834)
Repository: strawberry-graphql/strawberry

Issue #112: Mutation level permissions
Created: 2019-07-19T15:16:29Z
It would be great to have a way to specify permissions for a mutation, something similar to what we did for the fields

Duplicate issue #213: mutation
Created: 2019-11-16T15:42:12Z
It would be great to have a way to specify permissions for a mutation, something similar to what we did for the fields

Closing comment (2019-11-16T19:42:24Z): Hey @musavirchukkan! This looks like a duplicate of #112, so I'm going to close it for now. Please have a look at the solution proposed there and let me know if that works for you.
Repository: strawberry-graphql/strawberry

Issue #1929: @strawberry.field(args...) decorator gives 'untyped decorator makes function .. untyped'
Created: 2022-05-26T05:38:01Z
Describe the Bug
Using @strawberry.field as a decorator is nifty, but it seems like its type annotations only work great if it's called without arguments. If it's called like @strawberry.field(name="whatever"), mypy considers the decorator untyped and thus gives 'untyped decorator makes function .. untyped' errors in strict mode.
For instance, adjust test_all_field_usage in test_fields.yml to use strict mode:
modified   tests/mypy/test_fields.yml
@@ -40,6 +40,8 @@
     reveal_type(Example.d)
     reveal_type(Example.e)
     reveal_type(Example.f_resolver)
+  mypy_config: |
+    strict = true
   out: |
     main:22: note: Revealed type is "builtins.str"
     main:23: note: Revealed type is "builtins.str"
There's a whole much of output, but the key lines are towards the end (just before the real Revealed type output):
E     main:14: error: Untyped decorator makes function "e" untyped  [misc] (diff)
...
E     main:18: error: Untyped decorator makes function "f_resolver" untyped  [misc] (diff)
...

This is easily squashed by # type: ignore[misc] annotations, but it'd be neat if we could avoid them 😄
If the test is additionally edited to remove the arguments to field, there's no complains about untyped decorators:
modified   tests/mypy/test_fields.yml
@@ -26,11 +26,11 @@
         c: str = strawberry.field(name="c", resolver=some_resolver)
         d: str = strawberry.field(resolver=some_resolver)
 
-        @strawberry.field(description="ABC")
+        @strawberry.field
         def e(self, info: Info) -> str:
             return ""
 
-        @strawberry.field(name="f")
+        @strawberry.field
         def f_resolver(self, info) -> str:
             return ""
System Information

Operating system: macOS
Strawberry version (if applicable): main (a382872)

Additional Context
As always, thanks for strawberry! 🍓

Duplicate issue #3611: Untyped decorator makes function "hello" untyped
Created: 2024-09-02T17:05:07Z
import strawberry

from strawberry.permission import BasePermission, PermissionExtension
from typing import Any


class IsAuthenticated(BasePermission):
    def has_permission(self, *arg: Any, **kwargs: Any) -> bool:
        return True


@strawberry.type
class ABC:
    @strawberry.mutation(name="hello")
    def hello(self) -> str:
        return "world"
➜ uv run mypy --strict app.py
app.py:14: error: Untyped decorator makes function "hello" untyped  [misc]
Found 1 error in 1 file (checked 1 source file)

Closing comment (2024-12-17T20:56:10Z): dupe #1929 ?
Repository: strawberry-graphql/strawberry

Issue #1921: Generic types with scalars use the python type name.
Created: 2022-05-21T16:51:02Z
Describe the Bug
Generic types follow a naming convention of prepending the variable name to the type name. But when the variable is a builtin scalar, it's using the name of the python class, instead of the corresponding GraphQL scalar.
@strawberry.type
class Output(Generic[T]):
    data: T

Output[str] # resolves to StrOutput instead of StringOutput
System Information
0.113

Duplicate issue #2954: Regression using interfaces with generic types.
Created: 2023-07-15T00:28:25Z
Describe the Bug
If a generic type implements an interface, and is registered as an extra type, it is not being recognized in the schema.
from typing import Generic, TypeVar
import strawberry

T = TypeVar('T')

@strawberry.interface
class Abstract:
    x: str = ''

@strawberry.type
class Real(Generic[T], Abstract):
    y: T

@strawberry.type
class Query:
    @strawberry.field
    def real(self) -> Abstract:
        return Real[int](y=0)

schema = strawberry.Schema(Query, types=[Real[int]])
print(schema.execute_sync('{ real { __typename } }'))
raises Abstract type 'Abstract' was resolved to a type 'Real' that does not exist inside the schema..
System Information

Operating system: not applicable
Strawberry version (if applicable): 0.195

Additional Context
This worked prior to v0.195. IntReal is present in the schema, but the error references type Real.

Closing comment (2023-08-01T02:19:47Z): v0.198.0 caused another breaking change: the subtype workaround ⬆️ no longer works.
Ironically, the new resolve_type method presents another potential workaround, for a concrete type to return its name as well. But it's hack-y, because how to get the GraphQL name of a generic is opaque. To support all 3 cases

non-generic type
generic with scalar wrapper
generic with python scalar (related to #1921)

requires something like:
    @classmethod
    def resolve_type(cls, obj, *args, **kwargs) -> str:
        if not hasattr(obj, '__orig_class__'):
            return type(obj).__name__
        (scalar,) = obj.__orig_class__.__args__
        name = scalar.__name__ if hasattr(scalar, '__name__') else scalar._scalar_definition.name
        return name.title() + obj.__orig_class__.__name__
Whatever the long-term fix, being able to determine the GraphQL name of a generic type would also be helpful. #2291, #2131, and #1921 are all related to the same issue.
Repository: strawberry-graphql/strawberry

Issue #1892: Allow to_pydantic to take in **kwargs to pass to pydantic constructor
Created: 2022-05-08T17:48:59Z
Feature Request Type

 Core functionality
[x ] Alteration (enhancement/optimization) of existing feature(s)
 New behavior

Description
Currently this goes boom because the pydantic model will be missing a required field passsword
from pydantic import BaseModel
import strawberry


class MyModel(BaseModel):
    email: str
    password: str


@strawberry.experimental.pydantic.input(model=MyModel)
class MyModelStrawberry:
    email: strawberry.auto


MyModelStrawberry(email="").to_pydantic()
We add the kwargs param in to_pydantic
  def to_pydantic(self, **kwargs) -> PydanticModel:
      ...
and pass it to the constructor
Also since we can tell when the strawberry type doesn't have all the fields required for pydantic at mypy type check time. we can enhacne the mypy plugin to error when to_pydantic is called with a missing required field. I have a draft mr for that which i will submit soon

Duplicate issue #1967: Ability to set additional fields in `to_pydantic` for `@strawberry.experimental.pydantic`
Created: 2022-06-24T17:30:32Z
I've been using the experimental pydantic convertors (@strawberry.experimental.pydantic.). When the model is an input - I usually have two models, StrawberryInput and ServiceInput where the ServiceInput almost always has just one additional field (customer_id) since we get that from the context. I should be able to do .to_pydantic(customer_id=customer_id).
Discussed in Discord.


Feature Request Type

 Core functionality
 Alteration (enhancement/optimization) of existing feature(s)
 New behavior

Description

Closing comment (2022-07-13T13:00:49Z): same as #1892, pushing my fix now
Repository: strawberry-graphql/strawberry

Issue #1325: Error when converting pydantic classes with nested subclasses to strawberry types
Created: 2021-10-10T14:23:46Z
Hi,
when the strawberry.experimental.pydantic.type decorator tries to convert a Pydantic class to a strawberry type, an error occurs if one of the attributes of the Pydantic class is a nested subclass that has not yet been converted.
# pydantic.py 
# my two pydantic classes

from pydantic import BaseModel, Field

class User(BaseModel):
    id: int
    username: str
    name: Optional[str]
    surname: Optional[str]
    age: Optional[int]
    sex: Optional[str]
    posts: Optional[List["Post"]] = Field(default_factory=list)


class Post(BaseModel):
    id: int
    user: Optional["User"]
    create_date: datetime = Field(default_factory=datetime.utcnow)
    message: str
# graphql.py
# my two strawberry type classes

from .pydantic import Post, User

@strawberry.experimental.pydantic.type(model=Post, fields=[
    'id',
    'user',
    'create_date',
    'message',
])
class PostType:
    ...


@strawberry.experimental.pydantic.type(model=User, fields=[
    "id",
    "username",
    "name",
    "surname",
    "age",
    "sex",
    "posts",
])
class UserType:
    ...
Error:
strawberry.experimental.pydantic.exceptions.UnregisteredTypeException: Cannot find a Strawberry Type for <class 'api_gateway.model.pydantic.User'> did you forget to register it?
Cause:
The problem is that the decorator doesn't wait until all the conversions are done and check again at the end.
It also doesn't matter in which order I write the statements, because each time the other class is not yet converted.

Duplicate issue #1413: experimental pydantic support for nested pydantic models?
Created: 2021-11-10T21:56:07Z
hi, I am trying out the experimental support of pydantic models. When I do this:
@strawberry.experimental.pydantic.type(model=Project, all_fields=True)
class ProjectType:
    pass

I get the following error:
TypeError: ProjectType fields cannot be resolved. Field type must be an output type.
Is this intended behavior for security reasons?  it works if I leave out the all_fields=True
and declare the class with strawberry.auto fields...
@strawberry.experimental.pydantic.type(model=Project)
class ProjectType:
    uuid: strawberry.auto
    name: strawberry.auto

would be great do be able to use the al_fields=True flag ;).
EDIT: I am realizing that this happens, because I am actually using nested pydantic classes:
class User(pydantic.BaseModel):
    uuid: uuid.UUID
    type: str


class Project(pydantic.BaseModel):
    uuid: uuid.UUID
    name: str
    project_type: str
    owner: User

@strawberry.experimental.pydantic.type(model=Project) decorator doesn't seem to convert nested hirarchies into strawberry models..  Is this already possible? I am I missing something here? Any way around this?

Closing comment (2021-11-14T10:05:55Z): Duplicate of #1325
Repository: strawberry-graphql/strawberry

Issue #3539: feat: Excluding a field from a type by making it private
Created: 2024-06-14T21:09:11Z
Describe the Bug/Feature
How to exclude a field from a type?
@strawberry.type(name="File")
class FileType(DjangoFileType):
    path: strawberry.Private[str]
Current: The path field still shows up in the schema.
Expected: No more path field exposed.

Duplicate issue #3438: Unable to hide field in derived type
Created: 2024-04-05T09:39:39Z
Based on Discord discussion here: https://discord.com/channels/689806334337482765/1225406859926704188
Basically I have a type which derives from another. I want to exclude a field in my derived type. Marking as strawberry.Private in the derived class doesn't do anything.
@strawberry.type
class Foo:
    value: int = strawberry.field(description="foo")

@strawberry.type
class Bar(Foo):
    value: strawberry.Private[int]
I would expect the value field not to be exposed on type Bar in the schema.

Closing comment (2024-10-07T18:18:20Z): Related/Duplicate: #3539
Repository: strawberry-graphql/strawberry

Issue #601: Cannot decorate @field method
Created: 2020-11-26T20:12:04Z
This code will fail with this error:
Cannot query field 'itemCreate' on type 'Query'.

#
from strawberry import type, field, Schema
#
from .item import Item, ItemType, ItemInput
#
item = Item()

def printStarDecorator(func):
    def inner(*args: str, **kwargs: int):
        print("*" * 30)
        result = func(*args, **kwargs)
        print("*" * 30)
        return result
    return inner

@type
class Query:
    @printStarDecorator
    @field
    def itemCreate(self, info, new: ItemInput) -> ItemType:
        return item.create(info, new)

#
schema = Schema(query=Query)
#
Removing the printStarDecorator makes it work as expected:
@type
class Query:
    @field
    def itemCreate(self, info, new: ItemInput) -> ItemType:
        return item.create(info, new)
Did I make something wrong ?

Duplicate issue #600: Cannot decorate @field method
Created: 2020-11-26T20:12:02Z
This code will fail with an error: Cannot query field 'itemCreate' on type 'Query'.
``

from strawberry import type, field, Schema

from .item import Item, ItemType, ItemInput

item = Item()
def printStarDecorator(func):
def inner(args: str, **kwargs: int):
print("" * 30)
result = func(args, **kwargs)
print("" * 30)
return result
return inner

@type
class Query:
@printStarDecorator
@field
def itemCreate(self, info, new: ItemInput) -> ItemType:
return item.create(info, new)

schema = Schema(query=Query)

``

Closing comment (2020-11-26T20:23:11Z): Closing as duplicate of #601 🙂
Repository: streamlink/streamlink-twitch-gui

Issue #502: Make hotkeys configurable
Created: 2017-09-20T22:12:11Z
Checklist

 This is a bug report.
 This is a feature request.
 I understand the difference between Streamlink and Streamlink Twitch GUI.
 I tried solving my issue by reading the project's wiki first.
 I have read the contribution guidelines und used the search function to find already existing threads.

Description
Make a config file or an option menu to configure shorcuts/hotkeys
Expected / Actual behavior
Shorcuts/Hotkeys are hardcoded and can be neither changed nor disabled
Reproduction steps
Trivial
Environment details
Operating system and version: GNU/Linux OpenSUSE Leap 42.3
Streamlink Twitch GUI version: 1.3.1
Streamlink version: 0.7.0
Configuration details: no changes
Comments, logs, screenshots, etc.
none

Duplicate issue #562: Keyboard navigation
Created: 2018-05-02T14:36:48Z
Hello, thak you for your grat app! It Functions great and i had almost no problems with it. There is one issue that i find lacking. This is keyboard control. The only keys that seem to do anything are esc and F5, while any other operations hfve to be done manually using mouse. Could you please add an option of navigating the streams using keyboard? Even just tabbing between streams within opened page and opening with enter would be very appreciated.

Closing comment (2018-05-03T17:54:46Z): Vim-like

You can already focus the search bar via / 😅
On a more serious note, I'm not sure if this would interfere with any of the current hotkeys and their bindings. This is all related to #502...
But as I've said, I don't want to spend time implementing any of this right now. If one desperately needs keyboard controls, there are other applications and Streamlink wrappers available.
Repository: streamlink/streamlink-twitch-gui

Issue #237: Relative path for livestreamer/video player executable & settings for portable setup
Created: 2016-04-13T15:21:51Z
Tried creating a portable version of the GUI by moving livestreamer + video player into the gui folder.
Expected vs. Actual behavior
Set relative paths to livestreamer in Executable location & Videoplayer and expected everything to work as intended. Instead of launching a video player it throws errors about missing dependencies/executables and thus watching streams only works with absolute paths to the required files.
Reproduction steps

Set Executable location and/or Videoplayer paths to be relative to the Livestreamer GUI executable/folder (without modifying PATH system variable)

Error: Livestreamer could not be found
Error: Invalid player

error: Failed to start player <relative path to video player .exe> ([Error 2] Can't find file)




Change locations to executables to be absolute paths and everything works as intended

Environment details (operating system/video players)

Windows 7, GOM Player/MPC-HC
Unmodified System & Environment variables related to $PATH

Other
For a true portable GUI having the option to move %LOCALAPPDATA%\livestreamer-twitch-gui inside the Livestreamer GUI folder so you don't have to log in to Twitch when switching devices would also be neat.

Duplicate issue #253: Portable? feature reques
Created: 2016-05-24T22:01:01Z
hey. Since you can run and download livestreamer and gui via zip archives on windows, why can't you make it portable? Maybe somekind a simple solution for that? I've tried to set custom location for live streamer in settings "%CD%\livestreamer-v1.12.2", but it doesn't work. I think i need to do something else and run it via bat..
Portable apps are popular now days so as twich is. A simple yet portable solution would be awesome. Can we except something like that?
Sorry for my bad English.

Closing comment (2016-05-24T22:17:57Z): Duplicate of #237
Repository: streamlink/streamlink-twitch-gui

Issue #706: Stream lists are empty
Created: 2020-02-21T20:39:42Z
Bug report

 I understand the difference between Streamlink and Streamlink Twitch GUI.
 This is a bug report and I have read the contribution guidelines.

Environment details
Operating system and version:
Windows 10
Streamlink Twitch GUI version:
1.9.1
NW.js: 0.42.3
Architecture: x64
Streamlink version:
streamlink 1.3.1
Configuration details:
I just upgraded from 1.9.0 to 1.9.1 to see if the error was fixed but the error occures in both versions
Description
When I open Streams in the left menu, all I get is:

Top Streams
The returned list of top streams is empty.

When I open Games, I can see the list of all games being streamed.
However, if I open any of them, I get the same result:

Dota 2
The returned list of streams of this game is empty.

Any stream under Featured works correctly.
Two days ago, everything worked smoothly with the previous versions Streamlink Twitch GUI 1.9.0 and Streamlink 1.3.0 so I suspect it's an API change from Twitch.
Expected / Actual behavior
I expect to see all streams under Streams and all related streams when selecting a game under Games
See description above for actual behaviour.
Reproduction steps

Open Streamlink Twitch GUI
Click Straems in the left menubar under Browse
See empty list

Log output
[2020-02-21T20:37:46.752Z][debug][Application]
Parameters
{
    "_": [],
    "tray": false,
    "hide": false,
    "hidden": false,
    "max": false,
    "maximize": false,
    "maximized": false,
    "min": false,
    "minimize": false,
    "minimized": false,
    "reset-window": false,
    "versioncheck": true,
    "version-check": true,
    "logfile": true,
    "loglevel": "debug",
    "l": "debug",
    "launch": "",
    "goto": ""
}

Additional comments, screenshots, etc.

Duplicate issue #724: Language filter appears to not work at all
Created: 2020-05-21T10:20:48Z
Bug report

 I understand the difference between Streamlink and Streamlink Twitch GUI.
 This is a bug report and I have read the contribution guidelines.

Environment details
Operating system and version:
Windows 10
Streamlink Twitch GUI version:
1.9.1 (Set to German)
Streamlink version:
1.3.1
Description
The language filter is not being applied to streams. (Language fading is working correctly.)
Streams with languages that are not selected are being shown.
Expected / Actual behavior
Streams with languages that are not selected don't get shown in the streamlist.
Reproduction steps

Go to Options.
Set Language Filter to 'Filter'
Select 'German' and 'English' only.
Apply Settings
Go to Streams
Spanish and Korean streams appear in the list.

Additional comments, screenshots, etc.

Closing comment (2020-05-21T10:28:50Z): Duplicate of #706
See the changelog:
https://github.com/streamlink/streamlink-twitch-gui/blame/master/CHANGELOG.md#L14
Repository: streamlink/streamlink-twitch-gui

Issue #487: stopped working
Created: 2017-07-10T20:38:42Z
http://i.imgur.com/zulXHUz.png

Duplicate issue #586: no longer works
Created: 2018-07-01T23:55:48Z
When I open the streamlink-twitch-gui I get this screen
https://i.imgur.com/QLT3mqC.png
Still worked just yesterday. I'm using this release
https://github.com/streamlink/streamlink-twitch-gui/releases/download/v1.5.0/streamlink-twitch-gui-v1.5.0-win32.zip

Closing comment (2018-07-02T00:04:52Z): This looks like it's an issue with the config/cache folder of NW.js.
Probably the same as #487.
Please try and delete the %LOCALAPPDATA%\streamlink-twitch-gui folder.