primordic/IssueDupesLite huggingface dataset:
Repository: lit/lit

Issue #45: bindings in <template> not working
Created: 2017-08-11T17:27:35Z
const who = 'world';
render(html`<template id="res">hello ${who}</template>`, document.body);

// `hello {{}}` instead of `hello world` :(
console.log(document.getElementById('res').innerHTML);

Duplicate issue #324: template tag with on-handler attribute regex throws error
Created: 2018-05-16T21:38:04Z
a template tag, when combined with the on-click handler, throws an error as detailed below
source excerpts:
import { LitElement, html } from '@polymer/lit-element/lit-element.js';
import { repeat } from '@polymer/lit-element/node_modules/lit-html/lib/repeat.js';


class ThisProblem extends LitElement{
	_render(){
		return html`
<template>
	${ repeat([{name:'asdf',title:'As Df'}], (i, index) => index, (i, index) => html`<span>${i.title}</span>`) }
</template>
<button class="menu-btn" title="Menu" on-click="${(e) => this._clickHandler(e)}">${this._name}</button>
`;
	}
then:
lit-html.js line 251 throws error:
// Find the attribute name
                    const attributeNameInPart = lastAttributeNameRegex.exec(stringForPart)[1];

error
lit-html.js:251 Uncaught TypeError: Cannot read property '1' of null
    at new Template (lit-html.js:251)
    at shady-render.js:29
    at render (lit-html.js:117)
    at render (shady-render.js:35)
    at HTMLElement._applyRender (lit-element.js:182)
    at HTMLElement._propertiesChanged (lit-element.js:132)
    at HTMLElement._flushProperties (properties-changed.js:335)
    at HTMLElement._flushProperties (lit-element.js:142)
    at HTMLElement.ready (properties-changed.js:179)
    at HTMLElement.ready (lit-element.js:70)

npm ls excerpt
─┬ @polymer/lit-element@0.5.1
│ ├── @polymer/polymer@3.0.2 deduped
│ └── lit-html@0.10.0
── @webcomponents/webcomponentsjs@2.0.0

Closing comment (2018-05-21T20:04:09Z): This is a dupe of #45. I'll get to that soon.
Repository: lit/lit

Issue #351: render argument order
Created: 2018-06-01T17:02:04Z
I realise this is really bike-sheddy, but the arguments to render feel like they're in the wrong order.
For instance:
el.addEventListener('click', event => {
  // …
});
The above works, because the long argument is last. addEventListener's third arg kinda gets lost, because the callback takes all the space.
render(html`
  // …
`, document.body);
Similarly, it feels like the above is in the wrong order. It'd be better if the target element was first, then the likely-longer template can be the final argument.

Duplicate issue #428: Reverse order of first two parameters of render function
Created: 2018-08-09T00:56:43Z
Can first parameter of render be container? This would help with currying. I am more likely to know the render target first.

Closing comment (2018-08-23T18:48:21Z): Dupe of #351, which is also closed.
The current ordering is consistent with React and Reactalikes, and reads (to me, of course) like "render this template to this container".
Note, you can in effect do currying with:
const myRender = (template) => render(template, container);
Repository: lit/lit

Issue #1550: [lit-html] Sauce testing on IE & Safari routinely flaky with `testsStartTimeout` error
Created: 2021-01-19T19:33:02Z
Description
Safari 13 often fails on CI (Sauce) with the following error (flaky):
Browser tests did not start after 120000ms You can increase this timeout with the testsStartTimeout option. Check the browser logs or open the browser in debug mode for more information.

Initial debugging indicates it is a failure that occurs when startSession() (called from @web/test-runner-mocha/dist/standalone.js) in an html test is not acknowledged by the test runner.
Browsers Affected


 Chrome
 Firefox
 Edge
 Safari 13
 Safari 10
 IE 11

Duplicate issue #1915: IE11 tests usually fail by timing out after running all tests
Created: 2021-05-20T20:31:12Z
Description
The IE11 tests on the main branch usually fail by timing out at the very end, even if all of the tests themselves pass. (The main branch commit history page shows most recent commits as having failed.) This makes it easier to accidentally merge IE11-specific bugs because the pass/fail indication displayed on the PR page doesn't currently align with what we consider passing. We need to figure out what's causing these timeouts so that the action will report the correct result.
Acceptance criteria
The IE11 tests on the main branch should correctly indicate their pass/fail state when reported to the PR's checks (and they should pass).

Closing comment (2021-05-20T21:49:01Z): Closing as dupe of #1550
Repository: lit/lit

Issue #78: Allow injection of static content into templates
Created: 2017-08-29T21:58:25Z
As discussed in this thread, it would be useful to have some way of injecting static content into the templates that would be used at compile time of the templates, but not change per-render.
Potential syntax that come out of that thread would be using a utility function to demarcate static content:
import { html, unsafeStatic } from 'lit-html'
import SomeElement from 'some-element';

const elementName = unsafeStatic(SomeElement.is);
let dynamicTagTemplate = html`<${elementName}>Hello</${elementName}>`
/cc @justinfagnani let me know if I misinterpreted that syntax you suggested

Duplicate issue #1054: Dynamic tags: Impossible?
Created: 2020-01-09T15:05:22Z
Can anyone tell me why I cannot use variables within lit-html's html method?
const h1 = 'h1';
return html`
  <${h1} class="a-heading ${classes}">
    <slot></slot>
  </${h1}>
`;

If I replace ${h1} with h1 that works without problems.

Closing comment (2020-01-09T17:04:35Z): Yeah, this is a dupe of #78
Until we can do static bindings safely by relying on spec-compliant template literal implementations (which should be after we stop supporting classic Edge) we can't really support this. The performance cost is too much.
Repository: lit/lit

Issue #1007: Conditional `repeat` directive not removed from DOM
Created: 2019-09-12T18:23:18Z
Description
When using a repeat directive that is based on a condition, and if that condition changes such that the repeat directive will not be rendered anymore, the elements previously generated by repeat are not removed from the DOM.
Steps to Reproduce
Put a repeat directive behind a condition.
Live Reproduction Link
https://stackblitz.com/edit/u25pbw-jjbfqw (open console)
Expected Results
Repeat DOM disappears when condition changes to false.
Actual Results
Repeat DOM does not disappear.

Duplicate issue #1109: Replacing a TemplateResult with a repeat does not clear the existing content
Created: 2020-03-05T19:28:39Z
Description
In certain circumstances, the repeat directive isn't clearing out previously rendered content.
Steps to Reproduce

Write this code

import { html, LitElement } from "lit-element";
import { repeat } from "lit-html/directives/repeat";

class RepeatBug extends LitElement {
  static properties = {
    hasFirstUpdated: { type: Boolean }
  };
  hasFirstUpdated = false;

  renderContent() {
    if (this.hasFirstUpdated) {
      return repeat([1], () => {
        return html`
          <div>I'm in the repeat</div>
        `;
      });
    }
    return html`
      <div>I'm in the fallback content</div>
    `;
  }

  render() {
    // re-render with the repeat directive
    setTimeout(() => {
      this.hasFirstUpdated = true;
    }, 1000);

    return html`
      ${this.renderContent()}
    `;
  }
}
customElements.define("repeat-bug", RepeatBug);

See this output...

Live Reproduction Link
https://stackblitz.com/edit/lit-element-wxn6xq?file=src%2Findex.js
Expected Results
The text I'm in the fallback content is rendered, then is replaced by I'm in the repeat
Actual Results
The text I'm in the fallback content is rendered, then the text I'm in the repeat is appended

Closing comment (2020-03-05T23:41:09Z): Closing as dupe of #1007
Repository: lit/lit

Issue #3158: [labs/ssr]  A way for client code to check if running in server (isSsr)
Created: 2022-07-21T18:58:43Z
Which package is this a feature request for?
Lit Core (lit / lit-html / lit-element / reactive-element), SSR (@lit-labs/ssr)
Description
It would be useful for lit to provide a way to detect if code is running in the server like isSsr so it can be utilized when authoring components to intentionally skip, or provide alternatives for, code that utilizes browser DOM APIs or otherwise are incompatible with SSR.
This is a better alternative to adding no-op DOM shims to alleviate errors during SSR.
Idea for implementation would be to utilize conditional exports to provide a module that will only be available/truthy in node.
cc @aomarks
Alternatives and Workarounds
if (typeof process !== 'undefined'), if(typeof window === 'undefined') 😬 , optional chaining, or relying on no-op DOM shims.

Duplicate issue #3257: [labs/ssr] Create an isSsr function + package
Created: 2022-08-31T18:13:09Z

Closing comment (2022-08-31T18:15:43Z): Dupe of #3158
Repository: lit/lit

Issue #2272: [lit] Static build for CDN distribution
Created: 2019-03-07T01:08:56Z
Per a F2F conversation with @justinfagnani, wanted to capture agreement to add a single, modern-browser-exclusive build of LitElement and the most frequently used lit-html directives to the distributed NPM module. The goal is to enable easy inclusion of LitElement from a single source file.
Rationale
LitElement, when built, is tiny! That isn't apparent when using it from, e.g., unpkg. The need for the Polymer CLI tools also increases the friction to getting started with the edit/compile cycle that historically makes web development so much fun.
Instead of trying to boil the whole ocean by providing every build variant, or having to compromise on size to accomodate legacy, the idea here is to get developers started quickly while providing an easier path to "real" LitElement usage via local builds.
Part of this approach might need to add guards to the build to give up when loaded in the presence of existing LitElement (to prevent over-inclusion) and console logging to flag that this isn't the most efficient approach.

Duplicate issue #2408: Does the module system have to be that complicated?
Created: 2022-01-15T13:48:34Z
Description
Getting started with lit is very annoying due to the module system and common circumstances that make it even harder to get started.
npm i lit works but for some reason all import statements are without correct relative paths.
Imports pointing to just the folder are als prone to errors since its quite some work to setup servers to make that work out of the box
Its just a bad experience for an otherwise great product.
How about the option on lit.dev to create a good old fashioned minifed version including everything needed (maybe configurable) that can be simply included as normal js and thats it on top of utilizing the hell out of the cumbersome module system?

Closing comment (2022-02-10T20:30:13Z): Closing as dupe of #2272. The work of creating a minified bundle on each release available on a CDN or for download is done, and will roll out from our next release.
Repository: lit/lit

Issue #187: Render to a stream
Created: 2017-11-14T14:35:25Z
For demos, prototyping and SSR use-cases, it would be useful if lit-html supported rendering to a string. For example:
import {html, render} from 'lit-html';

const helloTemplate = (name) => html`<div>Hello ${name}!</div>`;

// This returns <div>Hello Steve!</div>
render(helloTemplate('Steve'));

Duplicate issue #1053: Proposal: allow server side rendered templates
Created: 2020-01-05T17:30:18Z
To allow server side rendered templates we need to be able to create a template result from existing template tags.

Closing comment (2020-01-23T23:45:19Z): Duplicate of #187
Repository: lllyasviel/Fooocus

Issue #1536: **When downloading in cmd stuck at 100%**
Created: 2023-12-21T08:52:18Z
When downloading in cmd stuck on 100%

i left it for a day and still nothing and tried it twice same problem

Duplicate issue #1734: Stuck on download?
Created: 2024-01-03T17:19:57Z
Hello! I have been trying to complete the installation but I am stuck here for a while now after the download was complete. It's the second time I download the models and it's stuck for quite some time now.

I can also see "partial download" on my files:

Is this something related to my machine? I have 16GB RAM and a 1660Ti.

Closing comment (2024-01-03T23:30:39Z): If it's stuck you can also manually try to download the checkpoint and put it in Fooocus/models/checkpoints. Please make sure you have enough storage though. Duplicate of #1536.

Ok, this worked perfectly well, thank you! About the storage, I had about 15GB left on my 250GB SSD. When I ran the .bat file and the image was being generated, my storage went to about 1GB left, is this what you meant by "enough storage"? Will storage be allocated like this every time I try to generate a new image?
Repository: lllyasviel/Fooocus

Issue #897: TensorRT support
Created: 2023-11-10T00:59:34Z
Is your feature request related to a problem? Please describe.
SDXL is slow, we can speed up the process using TensorRT
Describe the idea you'd like
Please support tensorRT, it can reduce the generation time by at least 2x
reference: Stable Diffusion WebUI TensorRT
https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT
Thank you

Duplicate issue #941: TensorRT
Created: 2023-11-13T20:43:16Z
I know it's not easy but is there a change that you add TensorRT support for Fooocus?

Closing comment (2023-12-31T00:42:27Z): Duplicate of #897
Repository: lllyasviel/Fooocus

Issue #3425: [Bug]: Plz fix A1111 Metadata scheme (with styles and Enhance)
Created: 2024-08-02T12:51:54Z
Checklist

 The issue has not been resolved by following the troubleshooting guide
 The issue exists on a clean installation of Fooocus
 The issue exists in the current version of Fooocus
 The issue has not been reported before recently
 The issue has been reported before but has not been fixed yet

What happened?
If you use styles and try to save metadata using A1111 scheme it saves incorrectly.
Instead of: Style3beg, Style2beg, Style1beg, Main prompt, Style1end, Style2end, Style3end
it saves like this:  Style1beg, Main prompt, Style1end, Style2beg, Main prompt, Style2end, Style3beg, Main prompt, Style3end
also, if you have line breaks in prompt it saves like this:  Style1beg, Line 1 of main prompt, Style1end, Style2beg, Line 2 of main prompt, Style2end, Style3beg, Line 3 of main prompt, Style3end
Also, if you use Enhance, instead of:
Style3beg, Style2beg, Style1beg, Main prompt, Style1end, Style2end, Style3end
Style3beg, Style2beg, Style1beg, Enhance 1 prompt, Style1end, Style2end, Style3end
Style3beg, Style2beg, Style1beg, Enhance 2 prompt, Style1end, Style2end, Style3end
it saves only one last Enhance prompt (and same for negative)
Steps to reproduce the problem
Write prompt, add styles, add Enhance prompt, generate, drag result to metadata window
What should have happened?
Described above
What browsers do you use to access Fooocus?
Google Chrome
Where are you running Fooocus?
Locally
What operating system are you using?
No response
Console logs
I can't find any info about prompt saving in console, except this:
[Fooocus] Saving image 1/1 to system ...
Image generated with private log at: e:\Fooocus_win64_2-5-0\Fooocus\outputs\2024-08-02\log.html

btw, in Log History in Raw prompt tab it also saves data incorrectly the same way as I described above.
Additional information
If you have more than 2 spaces in a row in prompt and use Apply data it will ignore all text after those spaces.

Duplicate issue #3443: [Feature Request]: Plz add an option to export metadata for A1111/Forge/CivitAI 
Created: 2024-08-03T21:26:39Z
Is there an existing issue for this?

 I have searched the existing issues and checked the recent builds/commits

What would your feature do?
Please add an option to save metadata in a format so that the user could automatically import a file with such metadata into A1111/Forge/CivitAi without having to manually copy and merge parts of the metadata.
Proposed workflow
Format example:
Style3beg, Style2beg, Style1beg, Main prompt, Style1end, Style2end, Style3end
Negative prompt: Main negative prompt, NegStyle1, NegStyle2, NegStyle3
Settings
Additional information
No response

Closing comment (2024-08-03T21:46:04Z): Duplicate of #3425
The format of the metadata doesn't change the fact that the prompts used to create the image are in the format
style1beg, prompt, style1end
style2beg, prompt, style2end
...
Adjusting the code as you've suggested will in fact falsify the used prompt and you will be less able to reproduce the image.
Repository: lllyasviel/Fooocus

Issue #92: Expecting value: line 1 column 1 (char 0)
Created: 2023-08-15T02:14:30Z
Expecting value: line 1 column 1 (char 0)

Duplicate issue #1889: Error Expecting value: line 1 column 1 (char 0
Created: 2024-01-12T01:05:29Z
Error
Expecting value: line 1 column 1 (char 0)

Closing comment (2024-01-13T10:56:43Z): Duplicate of #92 and a few more. Please check #92 (comment) and make sure your Websocket connection doesn't break while generating.
Repository: lllyasviel/Fooocus

Issue #879: Masks from Photoshop or anything inpaint.
Created: 2023-11-06T15:49:13Z
Describe the idea you'd like
I hope that inpaint can import masks from Photoshop or anything inpaint, and also hope to support the skeleton diagram of OpenPose.

Duplicate issue #1438: Add a "Mask Image Input" for inpainting feature.
Created: 2023-12-16T05:23:32Z
Add a "Mask Image Input" for inpainting feature.

Closing comment (2023-12-29T00:02:17Z): Duplicate of #879, implemented in PRs #529 and #1126
Repository: lllyasviel/Fooocus

Issue #1889: Error Expecting value: line 1 column 1 (char 0
Created: 2024-01-12T01:05:29Z
Error
Expecting value: line 1 column 1 (char 0)

Duplicate issue #1910: Error Expecting value: line 1 column 1 (char 0)
Created: 2024-01-13T10:42:39Z
E:\Fooocus_win64_2-1-831>.\python_embeded\python.exe -s Fooocus\entry_with_update.py
Already up-to-date
Update succeeded.
[System ARGV] ['Fooocus\entry_with_update.py']
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Fooocus version: 2.1.862
Running on local URL:  http://127.0.0.1:7865
To create a public link, set share=True in launch().
Total VRAM 6144 MB, total RAM 16317 MB
Set vram state to: NORMAL_VRAM
Always offload VRAM
Device: cuda:0 NVIDIA GeForce GTX 1060 6GB : native
VAE dtype: torch.float32
Using pytorch cross attention

Closing comment (2024-01-13T10:55:44Z): Duplicate of #1889, #92 and a few more. Please check #92 (comment)
Repository: lllyasviel/Fooocus

Issue #1835: error when generating 
Created: 2024-01-09T13:09:33Z
Read Troubleshoot
[x] I admit that I have read the Troubleshoot before making this issue.
Describe the problem
I have downloaded everything and done the correct steps for system swap, when I run the software and type any promt and click generate, I instantly get error. Ive tried different browsers but the error is still there.

Full Console Log
Paste full console log here. You will make our job easier if you give a full log.

Duplicate issue #1834: Error when generating
Created: 2024-01-09T13:02:21Z
Read Troubleshoot
[x] I admit that I have read the Troubleshoot before making this issue.
Describe the problem
I have done all neccesary to download the software, but when I try to generate anything it instantly gives me error.
Full Console Log
Paste full console log here. You will make our job easier if you give a full log.

Closing comment (2024-01-09T13:15:25Z): Duplicate of #1835
Repository: lllyasviel/Fooocus

Issue #1031: [Feature Request] Add support for the increasingly popular Stable Video Diffusion (SVD) models.
Created: 2023-11-25T09:41:34Z
As the title says; Add support for the increasingly popular Stable Video Diffusion (SVD) models.

Duplicate issue #1711: Video, Animations
Created: 2024-01-02T08:39:55Z
It would be nice to be able to create mini animations or videos, facial expressions, additional effects etc...

Closing comment (2024-01-02T12:26:57Z): Closing as duplicate of #1031, it (at least) is in the backlog :)
Repository: lllyasviel/Fooocus

Issue #1012: [PR] Fix image paste with Ctrl+V into Gradio image inputs
Created: 2023-11-22T21:23:24Z
This is based on my Extension for AUTOMATIC1111 WebUI:
https://github.com/klimaleksus/stable-diffusion-webui-fix-image-paste
After installing and using Fooocus I found myself annoyed that I cannot just Ctrl+C and Ctrl+V images around!
But this is Gradio, and I already had a solution as a userscript (that in worst case could be just pasted into the browser console to make paste function work right now).
I tested it for Fooocus and it worked! But my script was struggling to paste when image input was overlapped by "drop file here" hint labels inside it.
So, I decided to try to update my code to fix this. I couldn't get it to work in general case, but I've made work at least for Gradio (filtering a few css classes).
New version is working for both WebUI and Fooocus, I've already updated my main extension.
I had forked your repo, but couldn't make a Pull Request here myself; this is the branch ready for merging:
https://github.com/klimaleksus/fork-lllyasviel-Fooocus/tree/fix-image-paste
I have added my JS file as-is, and also added its path to the server UI module.
I did not touch any documentation, because this is a minor and obvious feature that does not need its own description in readme. But it deserves a line in the changelog if you'll decide to merge this!
Also you can just grab JS code directly and put it wherever you want without merging anything, I don't mind:
https://github.com/klimaleksus/fork-lllyasviel-Fooocus/blob/fix-image-paste/javascript/fix-image-paste.js

Duplicate issue #2565: [Feature Request]: Option to place image from clipboard
Created: 2024-03-19T07:16:57Z
Is there an existing issue for this?

 I have searched the existing issues and checked the recent builds/commits

What would your feature do?
On mobile it would be an easier method since you can't drag and drop the picture.
Proposed workflow

Copy the picture from the internet
You press the button to place it in the Image promt, inpaint, ect.

Additional information
No response

Closing comment (2024-03-19T17:37:48Z): Gradio 3.41.2 has no such functionality, at least not by default. What you can already do is to download an image and then insert it again.
Closing as duplicate of #1012
Repository: llvm/circt

Issue #6635: [FIRRTL] InferResets FullAsyncResetAnnotation produces invalid strictconnect
Created: 2024-02-01T21:45:35Z
Input (using firtool CIRCT firtool-1.64.0g20240131_c811e2d):
FIRRTL version 4.0.0
circuit Resets: %[[
{
  "class": "sifive.enterprise.firrtl.FullAsyncResetAnnotation",
  "target": "~Resets|Child>rf_reset"
},
{
  "class": "sifive.enterprise.firrtl.FullAsyncResetAnnotation",
  "target": "~Resets|ResetsC>r"
}
]]
  module Child:
    input rf_reset : Reset

  module Resets:
    input r : AsyncReset

    inst c of ResetsC
    connect c.r, r
    
    
  module ResetsC:
    input r : AsyncReset

    inst c of Child

    wire rr : Reset
    invalidate rr
    connect c.rf_reset, rr
(may not be quite minimal)
Produces bugged strictconnect:
resets.fir:25:5: error: 'firrtl.strictconnect' op failed to verify that operands must be structurally equivalent
    inst c of Child
    ^
resets.fir:25:5: note: see current operation: "firrtl.strictconnect"(%0, %arg0) : (!firrtl.uint<1>, !firrtl.asyncreset) -> ()

The operation is inserted here:

  
    
      circt/lib/Dialect/FIRRTL/Transforms/InferResets.cpp
    
    
         Line 1795
      in
      6212d2e
    
  
  
    

        
          
           builder.create<StrictConnectOp>(instReset, actualReset);

Duplicate issue #5500: [FIRRTL][InferResets] Should report nicely when a synchronous reset is annotated with FullAsyncResetAnnotation
Created: 2023-06-27T22:20:29Z
Example input:
circuit Example : %[[
  {
    "class":"sifive.enterprise.firrtl.FullAsyncResetAnnotation",
    "target":"~Example|Example>bad_reset"
  }
]]
  module Example :
    input sync_reset : UInt<1>
    inst child of Child
    wire bad_reset : Reset
    bad_reset <= sync_reset

  module Child :

gives the following error from the verifier:
./test.fir:9:5: error: 'firrtl.instance' op result type for "bad_reset" must be '!firrtl.asyncreset', but got '!firrtl.uint<1>'
    inst child of Child
    ^
./test.fir:9:5: note: see current operation: %1 = "firrtl.instance"() {annotations = [], moduleName = @Child, name = "child", nameKind = #firrtl<name_kind droppable_name>, portAnnotations = [[]], portDirections = false, portNames = ["bad_reset"]} : () -> !firrtl.uint<1>
./test.fir:13:10: note: original module declared here
  module Child :

Ideally, this would be caught and reported directly by the InferResets pass. Maybe something like:
error: synchronous resets cannot be the target of a FullAsyncResetAnnotation annotation.

Closing comment (2024-04-05T22:33:57Z): Duplicate of #6635, closed by #6674.
Repository: llvm/circt

Issue #1352: [FIRRTL] Add create vector/bundle ops
Created: 2021-06-30T15:15:09Z
As discussed in #1304, constructing a vector or bundle currently requires a temporary firrtl.wire, with subfield/subindex ops and connects. This makes it generally difficult to find out if a vector/bundle is a constant, among other things.
It might make sense to introduce create_vector and create_bundle ops, similar to HW's create_array and create_struct, to generaten aggregate value from fields. It might also make sense to have a create_vector_uniform (after LLHD's array_uniform) which constructs a vector where all elements are the same.

Duplicate issue #2563: [FIRRTL] Vector/Bundle create operation?
Created: 2022-02-02T09:50:23Z
Consider the following fir.
circuit Test :
   module Test :
     input clock: Clock
     input a1 : UInt<1>
     input a2 : UInt<1>
     input a3 : UInt<1>
     input a4 : UInt<1>
     reg c :  UInt<1>[2][2], clock
     c[0][0] <= a1
     c[0][1] <= a2
     c[1][0] <= a3
     c[1][1] <= a4
With MergeConnectionsPass introduced by #2459, we will get something like:
   automatic logic [1:0][1:0] _T = {a4, a3, a2, a1}; 
    c <= _T;
This is because currently FIRRTL dialect doesn't have operations to create vector/bundle from elements. From that reason　#2459 uses concat+bitcast to create aggregate values. As a result, it loses information about structures. If there are firrtl.vector_create or firrtl.bundle_create, we should be able to emit something like:
   automatic logic [1:0][1:0] _T = {{a4, a3}, {a2, a1}}; 
    c <= _T;

Closing comment (2022-02-09T19:15:00Z): Dup of #1352
Repository: llvm/circt

Issue #423: [FIRRTL] Relax or Promote Connect to Partial Connect Semantics
Created: 2021-01-09T21:55:21Z
Chisel currently emits connects between a wider source and a narrower sink. The Scala FIRRTL Compiler accepts these and truncates the source (which is incorrect connect semantics, but correct partial connect semantics). This results in circuits that come out of Chisel which CIRCT won't accept.
Either:

We relax the connection verification checks
We promote connects to partial connects if we see this during parsing

Example circuit:
circuit Foo :
  module Foo :
    input a: UInt<2>
    output b: UInt<1>

    b <= a

The SFC produces:
module Foo(
  input  [1:0] a,
  output       b
);
  assign b = a[0];
endmodule
CIRCT gives us:
firtool Foo.fir
# Foo.fir:6:7: error: destination width 1 is not greater than or equal to source width 2
#    b <= a
#      ^
# Foo.fir:6:7: note: see current operation: "firrtl.connect"(%b, %a) : (!firrtl.flip<uint<1>>, !firrtl.uint<2>) -> ()

Duplicate issue #428: [FIRRTL] (dshl) error
Created: 2021-01-12T00:25:06Z
The following FIRRTL program
circuit top_mod :
  module top_mod :
    input inp_1: UInt<1>
    input inp_2: SInt<5>
    output tmp9: SInt<3>
    tmp9 <= dshl(inp_2, inp_1)
Compiled with firtool --lower-to-rtl gives an error:
a_top_mod.fir:6:10: error: destination width 3 is not greater than or equal to source width 6
    tmp9 <= dshl(inp_2, inp_1)
         ^
a_top_mod.fir:6:10: note: see current operation: "firrtl.connect"(%tmp9, %0) : (!firrtl.flip<sint<3>>, !firrtl.sint<6>) -> ()
Compiled with firrtl-1.4.0 produces this Verilog:
module top_mod(
  input        inp_1,
  input  [4:0] inp_2,
  output [2:0] tmp9
);
  wire [5:0] _GEN_0 = {{1{inp_2[4]}},inp_2};
  wire [5:0] _GEN_1 = $signed(_GEN_0) << inp_1;
  assign tmp9 = _GEN_1[2:0];
endmodule

Closing comment (2021-01-14T17:57:23Z): Further correction: there's nothing wrong with the SFC here. The SFC blindly adds casts in this situation, but only because it already type checked tmp <= dshl(...). I think this is then a duplicate of #423.
Repository: llvm/circt

Issue #2087: [ExportVerilog] Verilator width warning about array_get 
Created: 2021-11-05T06:54:36Z
hw.module @Foo(%array: !hw.array<4xi6>, %c: i1, %d: i2) -> (b: i6) {
    %c0_i2 = hw.constant 0 : i2
    %0 = comb.mux %c, %c0_i2, %d : i2
    %1 = hw.array_get %array[%0] : !hw.array<4xi6>
    hw.output %1 : i6
  }
will be lowered into
module Foo(	// foo.mlir:1:1
  input  [3:0][5:0] array,
  input             c,
  input  [1:0]      d,
  output [5:0]      b);

  assign b = array[c ? 2'h0 : d];	// foo.mlir:2:13, :3:14, :4:12, :5:5
endmodule
Verilator produces the following warnings
%Warning-WIDTH: a.sv:7:22: Operator COND expects 32 or 3 bits on the Conditional True, but Conditional True's CONST '2'h0' generates 2 bits.
                         : ... In instance Foo
    7 |   assign b = array[c ? 2'h0 : d];  
      |                      ^
                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.
%Warning-WIDTH: a.sv:7:22: Operator COND expects 32 or 3 bits on the Conditional False, but Conditional False's VARREF 'd' generates 2 bits.
                         : ... In instance Foo
    7 |   assign b = array[c ? 2'h0 : d];  
      |                      ^

Duplicate issue #3498: [ExportVerilog] Verilator warnings in output
Created: 2022-07-09T18:22:49Z
When compiled with firtool to a SystemVerilog file, verilator --lint-only produces some warnings;
hw.module @Atomics(%x: i2, %y: i2, %io_a_mask: i1, %z: i8) -> (io_data_out: i8) {
    %c0_i8 = hw.constant 0 : i8
    %2 = comb.mux %io_a_mask, %x, %y : i2
    %3 = hw.array_create %c0_i8, %z, %c0_i8, %z : i8
    %4 = hw.array_get %3[%2] : !hw.array<4xi8>
    hw.output %4 : i8
}

%Warning-WIDTH: test.sv:10:39: Operator COND expects 32 or 4 bits on the Conditional True, but Conditional True's VARREF 'x' generates 2 bits.
                             : ... In instance Atomics
   10 |   assign io_data_out = _GEN[io_a_mask ? x : y];  
      |                                       ^
                ... For warning description see https://verilator.org/warn/WIDTH?v=4.214
                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.
%Warning-WIDTH: test.sv:10:39: Operator COND expects 32 or 4 bits on the Conditional False, but Conditional False's VARREF 'y' generates 2 bits.
                             : ... In instance Atomics
   10 |   assign io_data_out = _GEN[io_a_mask ? x : y];  
      |                                       ^
%Error: Exiting due to 2 warning(s)

Closing comment (2022-07-09T20:03:13Z): Probably the same as #2087
Repository: llvm/circt

Issue #4300: [CI] GCC Debug LLVM build not caching
Created: 2022-11-12T02:33:37Z
GCC builds are taking forever because the llvm submodule build isn't being cached.
/usr/bin/tar --posix -z -cf cache.tgz -P -C /__w/circt/circt --files-from manifest.txt

gzip: stdout: No space left on device
/usr/bin/tar: cache.tgz: Wrote only 20[4](https://github.com/llvm/circt/actions/runs/3447357213/jobs/5753291283#step:26:4)[8](https://github.com/llvm/circt/actions/runs/3447357213/jobs/5753291283#step:26:8) of 10240 bytes
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error is not recoverable: exiting now
Warning: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2

sigh

Duplicate issue #4303: CI Cache Misses on GCC Debug Builds
Created: 2022-11-13T21:33:25Z
I'm seeing a lot of unexpected cache misses on GCC Debug builds. E.g.:

This takes 2+ hours: https://github.com/llvm/circt/actions/runs/3456217534/jobs/5768801773 and takes a cache miss
This takes ~10 minutes: https://github.com/llvm/circt/actions/runs/3456217534/jobs/5768801723 and takes a cache hit

Closing comment (2022-11-13T23:39:08Z): Duplicate of #4300
Repository: llvm/circt

Issue #4606: [CalyxToFSM] Add `par` FSM lowering
Created: 2023-01-31T13:25:42Z
CalyxToFSM is currently missing support for lowering the calyx.par control operation to an FSM construct. This is an important construct to support seeing as most SCFToCalyx designs contain it.
For inspiration, the native compilers' implementation of control compilation of the par construct.

Duplicate issue #5154: [lower-scf-to-fsm] error: Operation 'calyx.par' not supported for FSM compilation
Created: 2023-05-08T22:39:20Z
gemm8x8_no_unroll_scf_for.mlir.txt
Hi there,
Thanks for contributing to this open-source agile hardware development tool.
I tried to lower an MLIR of a general 8 times 8 matrix multiplication. I got an error 'Operation 'calyx.par' not supported for FSM compilation' when lowering my calyx dialects to fsm. I wonder is there any solution to address this issue?
Attached please find the MLIR file.
Many thanks!

Closing comment (2023-05-09T15:58:44Z): Closing this since it's a duplicate of #4606. Help is very much appreciated!
Repository: llvm/circt

Issue #1131: [FIRRTL] (andr, orr, xorr) folder missing
Created: 2021-05-24T17:35:32Z
Not a bug, but missing constant folder for andr, orr, xorr operations.
The following FIRRTL program
circuit top_mod :
  module top_mod :
    output tmp62: UInt<1>
    wire tmp42: SInt
    tmp42 <= SInt<13>("o-2562")
    tmp62 <= orr(tmp42)
Compiled with firtool produces this Verilog:
module top_mod(
  output tmp62);

  wire [12:0] tmp42;	// a_top_mod.fir:4:5

  assign tmp42 = 13'h1A8E;	// a_top_mod.fir:5:{11,14}
  assign tmp62 = |tmp42;	// a_top_mod.fir:2:3, :6:14
endmodule
Compiled with firrtl-1.5-SNAPSHOT produces this Verilog:
module top_mod(
  output  tmp62
);
  assign tmp62 = 1'h1;
endmodule

Duplicate issue #1130: [FIRRTL] missing folders for constant/constant Xor and friends
Created: 2021-05-24T17:21:44Z

Closing comment (2021-05-25T14:22:24Z): tracked in #1131
Repository: llvm/circt

Issue #3715: [FIRRTL][Ref] Determine rules about `ref.send` under `when`
Created: 2022-08-12T20:25:29Z
It's strange/nonsensical for the anchor of the dataflow to be conditional (send), it should be unconditional.  resolve does not have this issue.
Example:
firrtl.circuit "xmr" {
  firrtl.module private @Test(in %p: !firrtl.uint<1>, out %x: !firrtl.ref<uint<2>>) {
    firrtl.when %p {
      %zero = firrtl.constant 1 : !firrtl.uint<2>
      %w = firrtl.wire : !firrtl.uint<2>
      %1 = firrtl.ref.send %w : !firrtl.uint<2>
      firrtl.strictconnect %x, %1 : !firrtl.ref<uint<2>>
      firrtl.strictconnect %w, %zero : !firrtl.uint<2>
    }
  }
  firrtl.module @xmr(in %p: !firrtl.uint<1>) {
    %test_in, %test_x = firrtl.instance test @Test(in p: !firrtl.uint<1>, out x: !firrtl.ref<uint<2>>)
    firrtl.strictconnect %test_in, %p : !firrtl.uint<1>
    %x = firrtl.ref.resolve %test_x : !firrtl.ref<uint<2>>
  }
}
A send from within a when should work if the resolve is also in the same when block.
EDIT: previously suggested this should be illegal, I think the above example is okay, if needs some work to make that seem natural.  Only one connect to the output ref port is allowed (already checked), but the above example is rejected due to not fully initializing %x.

Duplicate issue #4334: GrandCentralTaps: ExpandWhen's "not fully initialized"(tapping val under when)
Created: 2022-11-18T18:15:48Z
Another tapping scenario to consider:
circuit Top : %[[
  {
    "class":"sifive.enterprise.grandcentral.DataTapsAnnotation",
    "keys":[
      {
        "class":"sifive.enterprise.grandcentral.ReferenceDataTapKey",
        "source":"~Top|Top>val",
        "sink":"~Top|Top/mid:Middle/leaf:Leaf>tap"
      },
      {
        "class":"sifive.enterprise.grandcentral.ReferenceDataTapKey",
        "source":"~Top|Top/mid:Middle/leaf:Leaf>val",
        "sink":"~Top|Top>tap"
      }
    ]
  }
]]
  module Leaf :
    input c: UInt<1>

    when c:
      wire val : UInt<3>
      val <= UInt(2)

      ; Tap Top's val
      wire tap : UInt<4>
      tap is invalid

  module Middle :
    input c: UInt<1>
    
    when c:
      inst leaf of Leaf
      leaf.c <= c

  module Top :
    input c: UInt<1>
    output o: UInt

    wire val : UInt<3>
    val <= UInt(1)

    inst mid of Middle
    mid.c <= c

    o is invalid

    ; Tap Leaf's val
    when c:
      wire tap : UInt
      tap is invalid
      o <= tap

Produces:
simpler.fir:23:10: error: port "_gen_tap_0" not fully initialized in module "Leaf"
  module Leaf :
         ^
simpler.fir:34:10: error: port "_gen_tap_0" not fully initialized in module "Middle"
  module Middle :
         ^

Closing comment (2022-11-18T22:15:50Z): Arguably duplicate of #3715, but leaving open since this can be encountered from input FIR/annotations, not just crafted MLIR.
Repository: llvm/circt

Issue #3761: [Nightly CI] CCache hit rates have become <1%
Created: 2022-08-22T20:39:41Z
The nightly ccache hit rates used to be -- on average -- pretty good, but they've since dropped to <1%. This has led to every nightly build being 1 to 2 hours.

Duplicate issue #5658: [Workflows] Nightly integrations tests don't have cache hits
Created: 2023-07-21T23:03:27Z
When we set this up, the nightly runs used to hit most of the time. Now, none of the time. We need to investigate why.

Closing comment (2023-08-03T06:10:03Z): Also looks like this is a duplicate of #3761
Repository: localsend/localsend

Issue #1778: Chinese Characters fails to display correctly.
Created: 2024-09-11T15:08:25Z
Describe the bug
I just installed on linux via snap. And all the characters displayed as boxes. The screenshot is below.
To reproduce
Just launch it.
Expected behavior
It should display Chinese characters correncly instead of these boxes.
I haven't seen any other apps having this problem currently.
Screenshots

Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
Potentially useful information:
system Ubuntu 24.04.01 LTS, kernel Linux 6.8.0-1010-raspi
system Locale and Language are set to Chinese (Simplified)
I've just run winetricks cjkfonts and added the lines below in ~/.bashrc to solve the font display issue in wine.
export WINEPREFIX=~/.winehangover
export LC_ALL="zh_CN.UTF8"

Duplicate issue #2186: [Bug report] Simplified Chinese of Localsend cannot be displayed in Fedora Linux
Created: 2025-01-02T07:54:04Z
Describe the bug
Simplified Chinese of Localsend cannot be displayed in Fedora Linux
To reproduce
1 Download Localsend from Flathub on Gnome application store on Fedora 41 Arm version
2 Run Localsend
The Simplified Chinese can't be displayed
Expected behavior
Please fix this Bug.
Screenshots

[

](url)
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
No response

Closing comment (2025-01-02T22:18:53Z): Duplicate of #1778
Repository: localsend/localsend

Issue #510: Localsend consume GPU resources when running in the background
Created: 2023-06-07T02:44:32Z
Describe the bug
Localsend consume GPU resources when running in the background.

To reproduce

Run application in the backgorund.

Expected behavior
Stop using GPU or reduce the GPU usage of the application.
Screenshots
No response
Desktop (please complete the following information)

OS: Windows 11
Version: 22H2 22621.1778

Smartphone (please complete the following information)
No response
Additional context
No response

Duplicate issue #596: High occupancy of independent Graphics card
Created: 2023-07-31T17:47:25Z
Describe the bug
When the rotatable sphere, namely the receiving interface, is minimized to the tray, you can see in the Task manager that the independent video card, RTX 3070, occupies 10% of the total. When I minimize the sending and setting interface to the tray, it will not occupy
To reproduce

Go to '...'
Click on '...'
Scroll down to '...'
See error

Expected behavior
fix bug
Screenshots
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
No response

Closing comment (2023-07-31T17:49:13Z): This is a known bug. You need to switch to the settings tab.
Duplicate of #510
Repository: localsend/localsend

Issue #549: Feature request: Support IPv6
Created: 2023-06-27T14:34:00Z
Is your feature request related to a problem? Please describe.
I have noticed that the LocalSend software does not support IPv6. When I use direct sending, I can use IPv4 addresses and domain names, but when I input an IPv6 address, it displays an "error". Additionally, if the domain name only has AAAA resolution without A resolution, it also displays an "error".
Describe the solution you'd like
I would like LocalSend to work properly when I input an IPv6 address and when I input a domain name with only AAAA resolution.
Additionally, if the domain name has both A and AAAA resolutions, I would like LocalSend to prioritize using the IPv6 address corresponding to the AAAA resolution, and fallback to IPv4 if it fails.
Furthermore, I hope that LocalSend can add support for NetBIOS names, allowing for fast sending within local networks with a large number of devices.
Lastly, I would prefer that LocalSend's network alias defaults to using the device's NetBIOS name.
Describe alternatives you've considered
I believe IPv6 support is irreplaceable. If it's not possible to directly access the address corresponding to the NetBIOS name, this functionality can be abandoned. If it's not possible to obtain the NetBIOS name of the current device, consider allowing the user to manually enter the network alias during the initial startup.
Additional context
None.

Duplicate issue #1932: add ipv6 support please
Created: 2024-10-23T09:39:57Z
Is your feature request related to a problem? Please describe.
It shouldn’t be difficult to add ipv6 support, can you support it?
Describe the solution you'd like
Listen on ipv6 address
Describe alternatives you've considered
No response
Additional context
In some areas, the optical fiber is allocated to intranet ipv4 and public network ipv6. If you monitor the intranet ipv4, you cannot send files to friends, but if you monitor ipv6, you can send files to distant friends.

Closing comment (2024-10-23T12:35:58Z): Duplicate of #549
Repository: localsend/localsend

Issue #271: Add to share sheet on Windows
Created: 2023-03-11T15:29:31Z
Is your feature request related to a problem? Please describe.
No, this feature exists in some platforms ex: Android. But we could extend that feature to windows for example.
There's native share sheet in windows 8/10/11

Describe the solution you'd like
We can implement this feature using share_plus package or native solution.
Describe alternatives you've considered
No response
Additional context
No response

Duplicate issue #1260: Quick sharing shortcuts for context menus
Created: 2024-04-06T00:48:10Z
Is your feature request related to a problem? Please describe.
I'm using this program on Windows 11, and currently you have to open the program and select the files you want to transfer before being able to send them to another device, such as a phone.
Describe the solution you'd like
It would be a big improvement to workflow if this functionality could be better integrated with the right click context menu, perhaps even the "Share" button that is mainly used for Windows Nearby Share. The app can already be assigned to run in the background and on startup, so it would only be natural to extend this "seamless" usability even further.
The most advanced version of this is to implement this as something that feels like it could come pre-installed with the operating system, but this is probably quite difficult and would involve a lot of redesign.
Describe alternatives you've considered
No response
Additional context
No response

Closing comment (2024-05-24T13:05:43Z): Duplicate of #271
Repository: localsend/localsend

Issue #121: Transfer directories preserving structure
Created: 2023-02-04T11:14:09Z
Hello! This is a feature request.
While transferring files one by one is better than nothing, obviously it's not a complete file-transfer solution. There is many cases where one need to transfer directory between devices along with sub-directories preserving structure. Examples are:

Music directory with structure sorted by artist\year\album.
Photos directory with structure sorted by date\place.
Books  directory with structure sorted by author\year.
etc
So  It would be nice to have not only single-file transfer but also a directory-tree transfer feature.
Thanks!

Duplicate issue #359: Sending folders
Created: 2023-04-04T12:39:10Z
Is your feature request related to a problem? Please describe.
Is it possible to send whole folders via the app? I mean, from Windows to Android (as I tested). Because we can send just files.
Dukto can do it, but your SW is better and more perspective.
Describe the solution you'd like
I have no idea how https file transfering works. So, I could give just the idea.
Describe alternatives you've considered
No response
Additional context
No response

Closing comment (2023-04-04T18:55:13Z): Duplicate of #121
Repository: localsend/localsend

Issue #189: [Feature request] Add Wifi direct support with QR
Created: 2023-02-21T14:51:35Z
Is your feature request related to a problem? Please describe.
Sometimes, when I want to share file from my Phone (on mobile data) to PC (on wifi), I had to connect my phone to wifi.
Describe the solution you'd like
Add support of quick "Wifi Direct" generation and detection of the device with network discovery. And connection of the devices with Wifi Direct.
Describe alternatives you've considered
Use of QR code to identify device is also a good way to implement this.
Additional context
Same as Shareit and Xander used to do.

Duplicate issue #1069: Feature request: support wifi direct to accelerate transfer
Created: 2023-12-30T15:54:26Z
Is your feature request related to a problem? Please describe.
like Zapya  ,it use wifi direct , the transmission speed reaches an astonishing 100M/s instead of 10M/s.
Describe the solution you'd like
support wifi direct
Describe alternatives you've considered
No response
Additional context
No response

Closing comment (2024-01-01T21:39:25Z): Wifi Direct is of course better but this is hard to implement (correctly).
Duplicate of #189
Repository: localsend/localsend

Issue #121: Transfer directories preserving structure
Created: 2023-02-04T11:14:09Z
Hello! This is a feature request.
While transferring files one by one is better than nothing, obviously it's not a complete file-transfer solution. There is many cases where one need to transfer directory between devices along with sub-directories preserving structure. Examples are:

Music directory with structure sorted by artist\year\album.
Photos directory with structure sorted by date\place.
Books  directory with structure sorted by author\year.
etc
So  It would be nice to have not only single-file transfer but also a directory-tree transfer feature.
Thanks!

Duplicate issue #222: Feature request
Created: 2023-03-01T10:58:33Z
Is your feature request related to a problem? Please describe.
Sending some files one by one, its terrible.
Describe the solution you'd like
I hope a feature that can send a directory that comprise some files
Describe alternatives you've considered
No response
Additional context
No response

Closing comment (2023-03-05T13:04:29Z): Duplicate of #121
Repository: localsend/localsend

Issue #11: Headless mode (CLI)
Created: 2023-01-05T19:15:16Z
Run this app without a GUI.
localsend --headless
or
localsend_cli

Duplicate issue #1758: Feature request 希望在macOS上能支持用shell命令直接发送文件或目录
Created: 2024-09-09T03:00:48Z
Is your feature request related to a problem? Please describe.
希望在macOS上能支持用shell命令直接发送文件，由于工作需求频繁需要切换与win、mac、ubuntu，目前主力是win，大部分时间使用都是在win上的命令窗口ssh登入mac和Ubuntu进行相关操作，这就导致需要经常频繁切换鼠标键盘来拖拽或者找寻相对应的文件或者目录来发送文件。
Describe the solution you'd like
希望在macOS上能支持用shell命令直接发送文件
Describe alternatives you've considered
No response
Additional context
No response

Closing comment (2024-09-10T14:36:24Z): Duplicate of #11
Currently you can use:
open -a "LocalSend" ~/Downloads/image.jpg

See also: https://github.com/schollz/croc