primordic/IssueDupesLite huggingface dataset:
Repository: facebookarchive/WebDriverAgent

Issue #639: Xcode 9 Support
Created: 2017-07-10T10:08:20Z
Time to start working on Xcode 9 :). Please raise any issues here. I'll keep updating todo list to reflect known, left issues.


 WDA is not building


  _parentElement selector is missing


  appWithPID: selector is missing


 rect request fails to wrap NSNumber


 testSimpleScroll - Scrolling seems to work, but this test fails what seems to be change on how touch events are handled


 XCUIDeviceRotationTests - Rotation works, but orientation property is not being updated,


 testInvisibleDescendantWithXPathQuery - searched element is now considered visible.


 source is slow


 performance is much worse


 WebView subviews are not visible

Duplicate issue #754: iOS 11 is too slow
Created: 2017-10-12T21:31:02Z
Running against iOS 11 seems to be 10x slower than iOS 10.3.
First time user; following the directions here:
https://github.com/facebook/WebDriverAgent and here:
https://github.com/facebook/WebDriverAgent/wiki/Starting-WebDriverAgent; running the webdriveragent from xcode in simulator.
I'm following the very basic directions, and doing this:
curl -X POST $JSON_HEADER -d "{\"using\":\"link text\",\"value\":\"label=Sign Up\"}" 
 $DEVICE_URL/session/$SESSION_ID/elements
curl -X POST $JSON_HEADER -d "" $DEVICE_URL/session/$SESSION_ID/element/<ELEMENT>/click

The /click method takes about 1 second on iOS 10.3, and about 10 seconds or more against iOS 11.
Is there anything I'm doing wrong? I'm just following the basic directions at https://github.com/facebook/WebDriverAgent/wiki/Queries.

Closing comment (2017-10-23T10:51:48Z): Duplicate of #639
Repository: facebookarchive/WebDriverAgent

Issue #639: Xcode 9 Support
Created: 2017-07-10T10:08:20Z
Time to start working on Xcode 9 :). Please raise any issues here. I'll keep updating todo list to reflect known, left issues.


 WDA is not building


  _parentElement selector is missing


  appWithPID: selector is missing


 rect request fails to wrap NSNumber


 testSimpleScroll - Scrolling seems to work, but this test fails what seems to be change on how touch events are handled


 XCUIDeviceRotationTests - Rotation works, but orientation property is not being updated,


 testInvisibleDescendantWithXPathQuery - searched element is now considered visible.


 source is slow


 performance is much worse


 WebView subviews are not visible

Duplicate issue #712: Tests running time very high due to some blockage #9020
Created: 2017-09-12T07:28:33Z
The problem
Every time I run a test at the same step / point, Appium seems to be stucked for like 3 minutes.
Before this i'm looking for an element over and over, until it gets displayed and when that label is found the 200 response seems to kill the WDA and it gets stuck for a period(~ 3 minutes) then the test continue to run.
Environment
Appium: 1.6.5
macOS Sierra: 10.12.6
Node.js: 8.1.4
Mobile platform/version under test: iPhone 6 Real Device, iOS version 10.3
xCode: 8.3.3
Link to Appium logs
https://gist.github.com/andreiaionitoaiesv/047c2c2b25b022b7671bcd115561faa6
appium/appium#9020
Any ideas?

Closing comment (2017-10-23T10:41:05Z): Duplicate of #639
Repository: facebookarchive/WebDriverAgent

Issue #639: Xcode 9 Support
Created: 2017-07-10T10:08:20Z
Time to start working on Xcode 9 :). Please raise any issues here. I'll keep updating todo list to reflect known, left issues.


 WDA is not building


  _parentElement selector is missing


  appWithPID: selector is missing


 rect request fails to wrap NSNumber


 testSimpleScroll - Scrolling seems to work, but this test fails what seems to be change on how touch events are handled


 XCUIDeviceRotationTests - Rotation works, but orientation property is not being updated,


 testInvisibleDescendantWithXPathQuery - searched element is now considered visible.


 source is slow


 performance is much worse


 WebView subviews are not visible

Duplicate issue #711: PageSource is extremely slow on combination of iOS 11 + Xcode 9 beta 6 + Appium 1.7.0 beta
Created: 2017-09-11T17:05:21Z
The problem
PageSource retrieval is extremely slow on iOS 11 + Xcode 9 beta 6 (had issue on previous betas as well) + Appium 1.7.0 beta (Also had issues on previous 1.6.6 betas)
Got the page source of the Settings app (com.apple.Preferences) and looped it 5 times to get the total time as shown below for the various combinations:
iOS 11 beta 9 + 1.7.0 beta + xcode 9 beta 6 -> 1 min 53 sec, Appium Log with Device logs here
iOS 10.2.1 + 1.7.0 beta + xcode 9 beta 6 -> 0 min 14 sec, Appium Log with Device logs here
iOS 10.2.1 + 1.6.5 + xcode 8.3.3 -> 0 min 6 sec, Appium Log with Device logs here
Pagesource on iOS10 device performs twice as quickly on Appium 1.6.5 when compared to Appium 1.7.0 beta.
iOS 11 + Appium 1.7.0 beta combination is much more slower.
I understand that PageSource should not be used for local processing, and that Xpath can be terribly slow as well. However, in this case, we use it to log PageSource when the test runs into failures for debugging later.
Environment

Appium version (or git revision) that exhibits the issue: 1.7.0 beta and above
Last Appium version that did not exhibit the issue (if applicable): 1.6.5
Desktop OS/version used to run Appium: mac OS Sierra 10.12.6
Node.js version (unless using Appium.app|exe): 8.1.4
Mobile platform/version under test: 11.0 beta 9
Real device or emulator/simulator: real device
Appium CLI or Appium.app|exe: Appium CLI

Closing comment (2017-10-23T10:40:55Z): Duplicate of #639
Repository: facebookarchive/WebDriverAgent

Issue #639: Xcode 9 Support
Created: 2017-07-10T10:08:20Z
Time to start working on Xcode 9 :). Please raise any issues here. I'll keep updating todo list to reflect known, left issues.


 WDA is not building


  _parentElement selector is missing


  appWithPID: selector is missing


 rect request fails to wrap NSNumber


 testSimpleScroll - Scrolling seems to work, but this test fails what seems to be change on how touch events are handled


 XCUIDeviceRotationTests - Rotation works, but orientation property is not being updated,


 testInvisibleDescendantWithXPathQuery - searched element is now considered visible.


 source is slow


 performance is much worse


 WebView subviews are not visible

Duplicate issue #744: /source command very slow on real device
Created: 2017-10-07T06:01:42Z
The source command always very slowly on real ios devices for ios11,and the wda will crash when i request the command for 6~7 times.

Closing comment (2017-10-23T10:49:15Z): Duplicate of #639
Repository: facebookarchive/WebDriverAgent

Issue #632: /inspector endpoint not loading properly
Created: 2017-06-29T16:08:01Z
I get the following JS error when trying to load the /inspector endpoint on an active WDA session. As a result, the inspector page remains blank.
Uncaught TypeError: Super expression must either be null or a function, not undefined
    at _inherits (inspector.js:23267)
    at inspector.js:23278
    at Object.hasOwn (inspector.js:23352)
    at __webpack_require__ (inspector.js:20)
    at Object.defineProperty.value (inspector.js:23093)
    at __webpack_require__ (inspector.js:20)
    at Object.<anonymous> (inspector.js:91)
    at __webpack_require__ (inspector.js:20)
    at Object.<anonymous> (inspector.js:47)
    at __webpack_require__ (inspector.js:20)

Duplicate issue #632: /inspector endpoint not loading properly
Created: 2017-06-29T16:08:01Z
I get the following JS error when trying to load the /inspector endpoint on an active WDA session. As a result, the inspector page remains blank.
Uncaught TypeError: Super expression must either be null or a function, not undefined
    at _inherits (inspector.js:23267)
    at inspector.js:23278
    at Object.hasOwn (inspector.js:23352)
    at __webpack_require__ (inspector.js:20)
    at Object.defineProperty.value (inspector.js:23093)
    at __webpack_require__ (inspector.js:20)
    at Object.<anonymous> (inspector.js:91)
    at __webpack_require__ (inspector.js:20)
    at Object.<anonymous> (inspector.js:47)
    at __webpack_require__ (inspector.js:20)

Closing comment (2017-07-11T13:36:56Z): Duplicate of #632
Repository: facebookarchive/WebDriverAgent

Issue #639: Xcode 9 Support
Created: 2017-07-10T10:08:20Z
Time to start working on Xcode 9 :). Please raise any issues here. I'll keep updating todo list to reflect known, left issues.


 WDA is not building


  _parentElement selector is missing


  appWithPID: selector is missing


 rect request fails to wrap NSNumber


 testSimpleScroll - Scrolling seems to work, but this test fails what seems to be change on how touch events are handled


 XCUIDeviceRotationTests - Rotation works, but orientation property is not being updated,


 testInvisibleDescendantWithXPathQuery - searched element is now considered visible.


 source is slow


 performance is much worse


 WebView subviews are not visible

Duplicate issue #723: Failed to fetch hit point for ***
Created: 2017-09-18T09:26:57Z
XCElementSnapshot (FBHitPoint)   When the page elements in the outside of the screen, call the [self fb_hitPoint] method will appear memory usage surge problem, performance is a serious problem, the Logs:Failed to fetch hit point for * *, is there a better solution?

Closing comment (2017-10-23T10:42:04Z): Duplicate of #639
Repository: facebookarchive/caffe2

Issue #2282: "cannot open db" while running MNIST.ipynb
Created: 2018-03-16T07:51:28Z
The db could be found by code in cell 2,
"lmdb test db found!
Looks like you ran this before, so we need to cleanup those old files...
training data folder:/home/henry/caffe2_notebooks/tutorial data/mnist
workspace root folder:/home/henry/caffe2_notebooks/tutorial files/tutorial_mnist"
But got code run error in cell14,
"RuntimeError: [enforce fail at db.h:206] db_. Cannot open db: /home/henry/caffe2_notebooks/tutorial_data/mnist/mnist-train-nchw-lmdb of type lmdb Error from operator: ..."

Duplicate issue #2328: db_. Cannot open db:
Created: 2018-03-20T12:36:34Z
I am learning the Tutorials -- MNIST - Create a CNN from Scratch as https://caffe2.ai/docs/tutorial-MNIST.html#main_wrap
when I run the code as follow:

there is an error .

and my file path is right:

Who knows how to solve this problem?Thanks a lot .
My platform:caffe2+anaconda3+cmake3+vs2017

Closing comment (2018-03-21T18:01:28Z): This is a duplicate of #2282
I will close this issue. Please follow #2282
Repository: facebookarchive/caffe2

Issue #1415: [Windows/VS]Building issues in Windows 10 related to linking
Created: 2017-11-01T08:39:57Z
My machine is Windows 10, CUDA 9.0, CuDNN 7.0, Visual Studio 2017 RTM, with latest version of source codes from GitHub.
When building Caffe2, I proceeded according to the official installation guide, and built GFLAGS and GLOG with the help of CMake. I used /MD for both dependencies. Then, when I was building Caffe2, I left USE_STATIC_RUNTIME checked, BUILD_SHARED_LIBS unchecked, and CMake automatically used /MD for all projects. However, I encountered numerous linking errors. I changed options for several times, trying to mix up with different choices, but it still didn't work.
I have followed the instructions of #1042 and modified all required files. I also think this is related to my previously submitted issue #1390 , although they may have different appearances.
Before I give more details, I'd like to ask: Should I use /MT or /MD when building Caffe2 and its dependencies?
@willyd I'm sorry to disturb you again, but I need help.

Duplicate issue #1421: Syntax error building in Windows
Created: 2017-11-02T21:56:09Z
I am trying to build in Windows 10 (VS 2017).  I did a clean clone from the repo today.  I ran build_host_protoc.bat, which completed with no issues.  However, when I run build_windows.bat, I get the following error(s):
"E:\Projects\NeuralNets\caffe2\build\ALL_BUILD.vcxproj" (default target) (1) ->
"E:\Projects\NeuralNets\caffe2\build\caffe2\caffe2.vcxproj" (default target) (5) ->
(ClCompile target) ->
E:\Projects\NeuralNets\caffe2\caffe2\core\plan_executor.cc(147): error C2059: syntax error: 'template' [E:\Projects\NeuralNets\caffe2\build\caffe2\caffe2.vcxproj]
E:\Projects\NeuralNets\caffe2\caffe2\core\plan_executor.cc(148): error C2039: 'global_ws_id_blob': is not a member of 'caffe2::Tensorcaffe2::CPUContext' [E:\Projects\NeuralNets\caffe2\build\caffe2\caffe2.vcxproj]
E:\Projects\NeuralNets\caffe2\caffe2\core\plan_executor.cc(148): error C2059: syntax error: 'template' [E:\Projects\NeuralNets\caffe2\build\caffe2\caffe2.vcxproj]

Closing comment (2017-11-03T19:59:33Z): Related to #1415
Repository: facebookarchive/caffe2

Issue #1802: "Caffe2 built successfully" on windows10 but where is caffe2_pybind11_state.dll???
Created: 2018-01-24T18:27:59Z
If this is a build issue, please fill out the template below.
System information

Operating system: Windows10
Compiler version: VS2017
CMake version: 3.10.2
CMake arguments: None
Relevant libraries/versions (e.g. CUDA): None

CMake summary output
******** Summary ********
<please paste summary output here>

Duplicate issue #1889: where is caffe2_pybind11_state.dll
Created: 2018-02-05T13:17:28Z
Trying to complete 'Python Configuration' step at https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile so that I can get Detectron running on my computer and then hopefully my app (boy installing this stuff takes ages - been at this for a whole day but have no background). Problem now is i can't find the .dll file (not searchable) and i don't appear to have a /Release folder
Says the file ("where is caffe2_pybind11_state.dll") should be at \caffe2\build\caffe2\binaries\Release however i don't have a release folder. Any suggestions on what to do?
Screen shot of what i have here:

Been following this tutorial:
https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile
Taken me 4 hours to get this far and still have not completed the basic starting point to begin with https://github.com/facebookresearch/Detectron so would really appreciate any help/guidance.
Thanks

Operating system: windows 10
Compiler version:
CMake version: 3.10.2
CMake arguments:
Relevant libraries/versions (e.g. CUDA):

Closing comment (2018-02-06T15:51:17Z): HI @Roman3k - depending on your use case, I would say a local machine with Ubuntu (dual boot if you still need Windows) would be your best bet. You could then do tethered or not tethered with the HMD. Good luck!
I'm going to close as a duplicate of #1802 at this point. We'll be looking to update the Windows documentation in the near future. Stay tuned.
Repository: facebookarchive/caffe2

Issue #1559: Loading Pretrained Models tutorial fails when running prediction
Created: 2017-12-02T19:03:46Z
In caffe2/caffe2/blob/master/caffe2/python/tutorials/Loading_Pretrained_Models.ipynb fails with:
RuntimeError                              Traceback (most recent call last)
<ipython-input-4-2e7dda059c39> in <module>()
      9 
     10 # run the net and return prediction
---> 11 results = p.run([img])
     12 
     13 # turn it into something we can play with and examine which is in a multi-dimensional array

RuntimeError: [enforce fail at tensor.h:671] i < dims_.size(). 0 vs 0. Exceeding ndim limit Error from operator: 
input: "data" input: "conv1_w" input: "conv1_b" output: "conv1" type: "Conv" arg { name: "stride" i: 2 } arg { name: "pad" i: 0 } arg { name: "kernel" i: 3 } device_option { } engine: ""
** while accessing input: data

$ ls -l /usr/local/caffe2/python/models/squeezenet/
total 6048
-rw-r--r-- 1 root root 6180983 Dec  2 20:00 init_net.pb
-rw-r--r-- 1 root root    6385 Dec  2 20:00 predict_net.pb

Duplicate issue #1836: tutorials Loading Pre-Trained Models: RuntimeError: [enforce fail at tensor.h:675]
Created: 2018-01-29T11:31:00Z
all the code above in Loading Pre-Trained Models is OK until:
initialize the neural net
with open(INIT_NET) as f:
init_net = f.read()
with open(PREDICT_NET) as f:
predict_net = f.read()
p = workspace.Predictor(init_net, predict_net)
run the net and return prediction
results = p.run([img])
turn it into something we can play with and examine which is in a multi-dimensional array
results = np.asarray(results)
print "results shape: ", results.shape
The error message is:
RuntimeError                              Traceback (most recent call last)
 in ()
9
10 # run the net and return prediction
---> 11 results = p.run([img])
12
13 # turn it into something we can play with and examine which is in a multi-dimensional array
RuntimeError: [enforce fail at tensor.h:675] i < dims_.size(). 0 vs 0. Exceeding ndim limit Error from operator:
input: "data" input: "conv1_w" input: "conv1_b" output: "conv1" type: "Conv" arg { name: "stride" i: 2 } arg { name: "pad" i: 0 } arg { name: "kernel" i: 3 } device_option { } engine: ""
** while accessing input: data

Closing comment (2018-01-29T21:44:01Z): yes It is Duplicate of #1559,but no solution till now
Repository: facebookarchive/draft-js

Issue #850: Add atomic block without prepending with empty line
Created: 2016-12-07T17:52:22Z
For example, when editor is empty and I add image, I will get an empty line, then image (atomic block rendered) and then another empty line. Same thing happens on Facebook Notes editor.
Is it possible to prevent draft from prepending with empty line?

And after adding an image there is an empty line before image.

Duplicate issue #1182: New line after and before IMMUTABLE.
Created: 2017-04-27T10:25:54Z
Hi,
How to get rid of a break after and before every IMMUTABLE object in editor.
When I add image for example.
const contentStateWithEntity = contentState.createEntity(
            "image",
            "IMMUTABLE",
            { src: urlValue }
        );

I place cursor where the red mark is and add image, I got line break after and before.

Same with custom entity, I am not abble to even place cursor to the right of the icon (red square), how to fix that?

Closing comment (2018-06-14T22:06:46Z): This is a duplicate of #850 (and #327 in a sense).
Repository: facebookarchive/draft-js

Issue #985: Down arrow stops working after inserting link in Firefox
Created: 2017-01-31T09:38:45Z
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When inserting a link in Firefox, the down arrow key stops working temporarily until a new selection has been made. Up, right and left arrow keys work as expected.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
https://jsfiddle.net/m6z0xn4r/116/

Insert a few blank lines
Add some text to the first line, and make it a link.
Immediately after clicking 'Add Link', click the down arrow.

What is the expected behavior?
Cursor to move down to the next line.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
I'm able to reproduce this issue in Draft.JS 0.10.0 and 0.9.1 in Firefox (53.0). I've tested on Mac OS 10.12.3.

Duplicate issue #1450: Broken down-arrow key in 'link' example on Firefox
Created: 2017-10-24T16:43:09Z
Do you want to request a feature or report a bug?
A bug!
What is the current behavior?
In the "link" example, if you add a link, you can no longer use the down-arrow key to move down to the next line. Tabbing to another tab and returning to the example tab fixes it.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.

Open the 'link' example'
write some text on the first line, and create a link somewhere in the text.
Hit 'enter' to create a new line, enter some text, and create a link in that text. Use the arrow keys to move the cursor after you create the link, rather than the mouse. Move the cursor up to the line above.
Try hitting the down arrow key. It won't move back down to the below line.

No errors are logged in the console.
What is the expected behavior?
The 'down arrow' key should always allow you to move down one line.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
This appears in the newly released 0.10.4 and the previous version, 0.10.3. I didn't test any earlier versions.
I saw this on Firefoxon MacOSX. Also tested on Chrome on MacOSX, and Edge on Windows, and it was not present in those two browsers. Only in Firefox.

Closing comment (2017-12-06T23:39:00Z): This seems like a duplicate of #985
Repository: facebookarchive/draft-js

Issue #631: HandleBeforeInput doesn't work when typing in Japanese.
Created: 2016-09-04T11:59:08Z
HandleBeforeInput doesn't work when typing in Japanese. For other languages (En, Ru) it works fine.
Used DraftJS v.0.7.0, Firefox 48.0.2\Chrome 52.0.2743.116, Win7\Darwin
In the DraftJS v.0.8.1 also doesn't work.
handleBeforeInput: function (chars) {
    console.log('Checking handleBeforeInput...', chars);
    return true;
},

render() {
        const {editorState} = this.state;
        return (
            <div>
                <Editor
                        editorState={editorState}
                        onChange={this.onChange}
                        handleBeforeInput={this.handleBeforeInput}
                        spellCheck
                        ref="editor"/>
            </div>
        );
    }

Duplicate issue #819: handleBeforeInput is not trigger when input using an IME
Created: 2016-11-28T09:13:56Z
feature
handleBeforeInput is not triggered when using an IME. I wonder if it's possible to add some code to trigger something act like handleBeforeInput in resolveComposition.

Closing comment (2017-10-24T23:08:33Z): Closing this as a duplicate of #631
Repository: facebookarchive/draft-js

Issue #392: Tweet example freezes browser tab after typing "a@a" and pressing ←←→
Created: 2016-05-13T15:42:29Z
Steps to reproduce

Open Tweet example in Google Chrome
Type the following text in the editor: "a@a" without spaces
Press the following buttons on your keyboard: left (←), left (←), right (→)

Actual Result

Browser tab freezes and you can't edit text anymore

Expected Result

You can continue typing and navigation via keyboard

Test Environment

Framework: Draft.js version 0.7.0 (pulled from latest master 325421d)
Browser:

Chrome version 50.0.2661.102 (64-bit)
Safari version 9.1 (11601.5.17.1)
Not reproduced in Firefox version 46.0.1


OS: OS X El Capitan version 10.11.4

Duplicate issue #411: Tweet example freeze after moving cursor
Created: 2016-05-23T07:06:49Z
Type #@a in tweet example, move cursor to the left most and then press right, the browser will freeze.
Can reproduce this issue on both Chrome and Safari. Firefox does not have this problem.

Closing comment (2016-05-23T17:54:22Z): Dupe of #392. I reported it as a browser bug upstream.
Repository: facebookarchive/draft-js

Issue #542: Composing decorators
Created: 2016-07-16T17:21:25Z
Hey there. big fan 🙌
I'm writing a small that implements a markup language that resembles to Markdown using decorators:

*text* => <Em>{ text }</Em>
~text~ => <Strike>{ text }</Em>

It was all fine and worked great, until I tried to compose them one inside of the other:

I can't really declare if its a bug or a feature, but it leads me to my question:
Is there a way of making decorators components composable? Or - is there another way of solving this problem?
Decorators keep the code declarative and awesome, the only real struggle will be to handle char arrays or to get children instead of text.. but I don't really care in my specific use case.
Thank you!
Technical stuff:

Chrome Canary 54.0.2791.0 on OS X El Capitan
Draft.js 0.7.0

Duplicate issue #896: CompositeDecorators does not work for adjacent ContentBlocks
Created: 2016-12-22T12:34:39Z
Do you want to request a feature or report a bug?
Bug
So I was trying to add two consecutive hashtags using draft-js composite decorator example.
something like #try#this
But this does not work.
I have more use cases similar like this.
After some digging I found out in composite decorator callback we check if matching range is already occupied by another decorator. https://github.com/facebook/draft-js/blob/master/src/model/decorators/CompositeDraftDecorator.js#L63
Is there some specific reason to do this?

Closing comment (2016-12-28T07:18:31Z): hi @prashantagarwal - thanks for opening up this issue. Were you referring to this file: https://github.com/facebook/draft-js/blob/master/examples/draft-0-9-1/tweet/tweet.html#L85 when you referenced the "composite decorator example" ?
I think this is just a case where the regular expression for the decorator is just overly simplistic - it is just looking for the initial '#' character and then continues until it doesn't have a character it can parse. Your other use cases, though, may be different.
As for why we check if the matching range is already occupied by another decorator - this is because we don't currently support nested decorators. This is something that has been discussed though (see #542 or search "nested decorators")
That said, is this issue a dupe of #542 ? Is this issue basically an ask for nested decorators?
Repository: facebookarchive/draft-js

Issue #2280: Issue with updated https://draftjs.org/ demo editor
Created: 2019-12-07T22:10:28Z
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The draftjs.org website was recently updated. The new demo editor on the site has a bug with pasting.
Steps to reproduce:

Go to https://draftjs.org/
Copy and then paste something like "test" into the editor at the bottom of the page
Type the left arrow once so the cursor should be before the final "t". E.g. "tes|t" (note do not click, the bug is shown when you use keyboard navigation).
Paste again.

The paste will incorrectly be placed at the end of the "test", not at the cursor's location. The results will be "testtest" rather than "testestt".
The old demo editor behaved correctly and did not have this issue.
Running this on the latest version of Chrome.

Duplicate issue #2315: Homepage demo broken
Created: 2020-01-30T16:32:36Z
Nothing works expect writting.
Tested on Chrome (MacOS), Firefox

Closing comment (2020-01-31T01:40:30Z): Found the other issue, closing as duplicate.
#2280
Repository: facebookarchive/draft-js

Issue #1105: Some emoji gets partially deleted when pressing backspace
Created: 2017-03-29T22:57:42Z
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
Press backspace will partially delete some emoji character, for example 🙅‍♂️ (no_good_men) will become 🙅 (no_good_woman)
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started:
Paste this emoji in any draftjs editor, press backspace several times will see the emoji changes to another one
What is the expected behavior?
The emoji should be deleted as a whole.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
All version of draftjs, all browser, only tried on MacOS.

Duplicate issue #1167: Some emoji cannot delete once
Created: 2017-04-23T08:51:15Z
Try this emoji: ♥️ , and delete it, you will saw a black heart.
Unicode is: \u2764\ufe0f
Can pick this emoji form macOS's input method.

Closing comment (2017-04-25T16:48:58Z): This is a duplicate of #1105
Repository: facebookarchive/draft-js

Issue #194: in regard to the use of NWJS
Created: 2016-03-11T07:20:25Z
due to global NWJS under the Node Context

HACK: Monkey-patch
(function () {
    global.getSelection = window.getSelection.bind(window);
}());

see http://nwjs.io/
see https://github.com/facebook/draft-js/search?utf8=%E2%9C%93&q=global.getSelection&type=Code

Duplicate issue #2154: draft-js issues when webpack target set to `node-webkit`
Created: 2019-08-05T05:41:07Z
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When compile draft-js with default webpack target (web in this case) everything works. Issue starts when we set target to node-webkit. I am using NW.js and to get node modules work with it, i need to set target to node-webkit. Otherwise some native modules are not working. If I give web then Draft.js works but this time i lost access to native modules.
When I render Draftjs in React, I get this error immediately:
IndexSizeError: Failed to execute 'getRangeAt' on 'Selection': 0 is not a valid index.

http://localhost in addFocusToSelection at line 3004
http://localhost in setDraftEditorSelection at line 3004
http://localhost in DraftEditorLeaf._setSelection at line 3004
http://localhost in DraftEditorLeaf.componentDidMount at line 3004
http://localhost in commitLifeCycles at line 3004
http://localhost in commitAllLifeCycles at line 3004
http://localhost in HTMLUnknownElement.callCallback at line 3004
http://localhost in Object.invokeGuardedCallbackDev at line 3004

What is the expected behavior?
Draft.js should work when webpacker set to node-webkit
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.11.0
See: #1106. This works. However, there are more issues:
When apply this fix, I successfully get draft-js working on my end. However, writing is become very slow. With each state update, editor goes much more slower and cursor jumps to start. In the end (after few typings) i cannot type anymore. No issue with target: web.
Any suggestion?
Update: It not just slowness, its horrible. When I do Ctrl+A (select-all) and delete then type something. State keeps both data (previous deleted + new typed).

Closing comment (2019-09-19T17:09:35Z): This looks similar to #194
Repository: facebookarchive/draft-js

Issue #1660: convertFromRaw requires at least one block
Created: 2018-02-20T17:25:07Z
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
convertFromRaw({
  "blocks": [],
  "entityMap": []
})

Running the above code throws a new exception in 0.10.5 because the duck-typing for tree nodes assumes there is at least one block. Previously, convertFromRaw would not throw an error and just return an empty content state.
What is the expected behavior?
The current functionality might be expected behavior but it seems odd that it throws because of a feature flag.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
0.10.5 (It looks like it was first introduced in 93df36d)

Duplicate issue #2175: convertFromRaw() function fails to convert raw datastructure with no blocks
Created: 2019-09-06T03:31:00Z
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
A TypeError is thrown: TypeError: contentState.getBlockMap(...).first(...) is undefined
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.
Repro (you'll have to open your browser console to see the error): https://jsfiddle.net/wkxjL730/
What is the expected behavior?
No exception to be thrown
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Version this breaks on: 0.11.0
Version this works on: unknown
Browsers this breaks on: Chrome, Firefox (I bet it's others but I do not have access to test them)

Closing comment (2019-09-07T22:28:59Z): This is a duplicate of #1660.
Repository: facebookarchive/draft-js

Issue #2061: Wrong entity range displayed when content has surrogate Unicode chars
Created: 2019-04-22T09:51:30Z
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Wrong entity range displayed when content has surrogate Unicode chars.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/.
https://jsfiddle.net/m35qtbgd/
    const text = 'abc 𨨧雨門 xyz';
    console.log(text.substr(9, 3));
    const contentState = convertFromRaw({
      blocks: [{
        text: text,
        inlineStyleRanges: [{ offset: 9, length: 3, style: 'BOLD' }],
        type: 'unstyled'
      }],
      entityMap: {}
    });
    this.state = {
      editorState: EditorState.createWithContent(contentState)
    };
In the output, only "yz" gets bolded:

While:
console.log('abc 𨨧雨門 xyz'.substr(9, 3));
console.log(text.substr(9, 3));
=> xyz
What is the expected behavior?
"xyz" is bolded.
Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?
Draft.js 0.10.5
Chrome 73 on Linux

Duplicate issue #2552: Wrong length of emoji
Created: 2020-08-05T11:55:14Z
Wrong length for some of emojis
Overview
Here is the example strings 😀 🏖️ ❤️ test. So, the length of emojis are:

😀 - has length 1
🏖️ - has length 2
❤️ - has length 2

here is a screenshot:

The problem
I need to calculate the mention position inside a text, but during my calculation all emojis are 1 char length (I'm using https://github.com/sallar/stringz).
Question
How can I calculate the position of test inside a 😀 🏖️ ❤️ test?
sallar/stringz - returns 6
indexOf - returns 10
draft-js - calculates it like 8

Closing comment (2020-08-08T13:55:59Z): Related to #2061 and #1969 , check those threads for even more issues they are related to.
I suggest using ContentBlock#findEntityRanges() to obtain the offsets you should be using, that's the intended way.
Repository: facebookresearch/fairseq

Issue #1510: Levenshtien Transformer ideal Hyperparameters
Created: 2019-12-16T17:47:58Z
Hey can you please suggest appropriate hyperparameters for training on 4 GPUs,with both normal and FP-16 Version.
Also what would be the parameters if I am using SIngle GPU and FP-16 to achieve same accuracy,should they be same as Base or should they be changed.
@myleott @MultiPath @kahne

Duplicate issue #1511: Hyperparameters for Levenshtien Transformer
Created: 2019-12-16T17:57:39Z
Hi I am getting CUDA ERROR :OUT OF MEMORY.
I am using 4 V100 GPUS.KIndly please suggest appropriate parameters
(base) ubuntu@ip-172-31-8-60:~/fairseq$ fairseq-train     data-bin/org     --save-dir checkpoints/lv     --ddp-backend=no_c10d     --task translation_lev     --criterion nat_loss     --arch levenshtein_transformer     --noise random_delete     --share-all-embeddings     --optimizer adam --adam-betas '(0.9,0.98)'     --lr 0.0005 --lr-scheduler inverse_sqrt     --min-lr '1e-09' --warmup-updates 10000     --warmup-init-lr '1e-07' --label-smoothing 0.1     --dropout 0.3 --weight-decay 0.01     --decoder-learned-pos     --encoder-learned-pos     --apply-bert-init     --log-format 'simple' --log-interval 100     --fixed-validation-seed 7     --max-tokens 8000     --save-interval-updates 10000
| distributed init (rank 3): tcp://localhost:12081
| distributed init (rank 2): tcp://localhost:12081
| distributed init (rank 1): tcp://localhost:12081
| distributed init (rank 0): tcp://localhost:12081
| initialized host ip-172-31-8-60 as rank 3
| initialized host ip-172-31-8-60 as rank 2
| initialized host ip-172-31-8-60 as rank 1
| initialized host ip-172-31-8-60 as rank 0
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/bin/fairseq-train", line 11, in 
load_entry_point('fairseq', 'console_scripts', 'fairseq-train')()
File "/home/ubuntu/fairseq/fairseq_cli/train.py", line 329, in cli_main
nprocs=args.distributed_world_size,
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 171, in spawn
while not spawn_context.join():
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 118, in join
raise Exception(msg)
Exception:
-- Process 3 terminated with the following error:
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap
fn(i, *args)
File "/home/ubuntu/fairseq/fairseq_cli/train.py", line 296, in distributed_main
main(args, init_distributed=True)
File "/home/ubuntu/fairseq/fairseq_cli/train.py", line 35, in main
args.distributed_rank = distributed_utils.distributed_init(args)
File "/home/ubuntu/fairseq/fairseq/distributed_utils.py", line 91, in distributed_init
dist.all_reduce(torch.zeros(1).cuda())
RuntimeError: CUDA error: out of memory

Closing comment (2019-12-16T18:00:18Z): Duplicate of #1510
Repository: facebookresearch/fairseq

Issue #2789: Unable to compute the gradient of the wav2vec encoder
Created: 2020-10-24T17:43:22Z
Before asking:
I found one closed issue on the gradient, but with no follow-up.
What is your question?
I cannot backprop the gradient through the wav2vec encoder. I have isolated that using the wav2vec encoder no longer backprops the gradient.
Code
Here is the code I run:
import os
import torch
import torch.tensor as T
from fairseq.models.wav2vec import Wav2VecModel

MODEL = "wav2vec_small.pt"
fname = MODEL
os.system("wget -c https://dl.fbaipublicfiles.com/fairseq/wav2vec/%s" % MODEL)
cp = torch.load(fname)
model = Wav2VecModel.build_model(cp['args'], None)
model.load_state_dict(cp['model'], strict=False)
model.eval()

time = torch.linspace(0.0, 2.5, 64000)
def sine(f0):
  return T(0.5) * torch.cos(f0 * 2.0 * 3.14 * time)

def extractor(x):
  return model.feature_extractor(torch.tensor(x.view(1, -1)))
def wav2vecdist(x, y):
  return torch.mean(torch.abs(extractor(x) - extractor(y)))

ft = T(440.0)
# If you enable GPU, you have to add 'device="cuda"'
with torch.enable_grad():
  fp = T(660.0, requires_grad=True)
  fp.retain_grad()
  dist = torch.mean(torch.abs(extractor(sine(ft)) - extractor(sine(fp))))
  print(dist)
  dist.backward(retain_graph=False)
  print(fp.grad)

As you can see, the extractor in wav2vec is not passing a gradient and I'm not sure why.
A minimal google colab is here: https://colab.research.google.com/drive/1l61syPS7GO7O-S0o8cWnv8R0JwzVq58T?usp=sharing
What have you tried?
I have tried to remove as much exterior code as possible.
I have tried fiddling with .train() and .eval() on the wav2vec model.
What's your environment?

fairseq Version (e.g., 1.0 or master): master
PyTorch Version (e.g., 1.0): 1.6.0+cu101
OS (e.g., Linux): Ubuntu 18.04.5 LTS
How you installed fairseq (pip, source): source
Build command you used (if compiling from source): !pip install -q --editable ./
Python version: 3.6.9
CUDA/cuDNN version: 10.1
GPU models and configuration: Tesla P100
Any other relevant information: Google Colab

Duplicate issue #2842: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
Created: 2020-11-04T00:34:09Z
🐛 Bug
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
To Reproduce
Do any training from ModernMT on a 3090 with CUDA 11.1.
Environment

fairseq 0.7.1
PyTorch Version 1.7.0
OS (e.g., Linux): Ubuntu 18.02
How you installed fairseq: pip3 install
Python version: 3.6.9
CUDA/cuDNN version: 11.1
GPU models and configuration: eVGA 3090 RTX

Closing comment (2020-11-27T15:31:24Z): This is possibly related to #2789
Repository: facebookresearch/fairseq

Issue #2865: how to handle iterative datastes dataloader for large datastes 
Created: 2020-11-07T15:48:36Z
Hi
I have some large datasets in TFDS format, and they are iterative, I am not sure how the is an efficient way to handle them in PyTorch, does your library provide dataloaders which can work in distributed training on TPUs/multiple gpus for iterative datasets? thanks

Duplicate issue #2866: multiple tasks dataloaders 
Created: 2020-11-07T17:37:39Z
Hi,
I want to train a seq2seq model, but over multiple tasks, and the datasets are large, is there any implementation of such dataloader handling multiple tasks your could point me to. I appreciate your input on this.
thanks.
Best
Rabeeh

Closing comment (2020-11-07T19:39:59Z): Duplicate of #2865
Repository: facebookresearch/fairseq

Issue #1297: The latest commit is broken
Created: 2019-10-24T02:48:46Z
Sync to the latest master branch (5a2f76e ) and find it cannot run.
error msg:
ModuleNotFoundError: No module named 'fairseq.models.fb_tracing_transformer'
https://github.com/pytorch/fairseq/blob/5a2f76ede044b4904af9461e18253f2929cfc5a4/fairseq/models/levenshtein_transformer.py#L19

Duplicate issue #1296: Master is broken
Created: 2019-10-24T02:48:31Z
The latest commit makes master unable to run (it doesn't pass the unit tests) because fb_tracing_transformer is missing.

Closing comment (2019-10-24T18:07:53Z): Duplicate of #1297. Closing because problem is fixed in latest workaround commit.
Repository: facebookresearch/fairseq

Issue #983: Why is bias default to be off for attentive LSTM?
Created: 2019-08-06T20:53:53Z
https://github.com/pytorch/fairseq/blob/e75cff5f2c1d62f12dc911e0bf420025eb1a4e33/fairseq/models/lstm.py#L346

Duplicate issue #983: Why is bias default to be off for attentive LSTM?
Created: 2019-08-06T20:53:53Z
https://github.com/pytorch/fairseq/blob/e75cff5f2c1d62f12dc911e0bf420025eb1a4e33/fairseq/models/lstm.py#L346

Closing comment (2019-08-07T00:09:22Z): Similar to #983, this is meant to match the original Luong et al. code. Happy to take a PR that makes this configurable :)
Repository: facebookresearch/fairseq

Issue #2738: noisechannel code issue
Created: 2020-10-16T02:52:49Z
🐛 Bug
For reproducing noisechannel code, I just executed the Example usage Script. But I saw some errors.
'FileNotFoundError: [Errno 2] No such file or directory:
'/home/compu/GAN/fairseq/examples/noisychannel/rerank_data/wmt17/nbest_10_subset_test_fw_name_model_ex_shard_0_of_1/rescore_data_new_bpe.en' '
In my guess, the Latest code is not uploaded. So, I hope to see the latest code.
Environment

fairseq Version (e.g., 1.0 or master): master
PyTorch Version (e.g., 1.0) : torch 1.4
OS (e.g., Linux): Ubuntu 18.04
How you installed fairseq (pip, source): pip install --editable ./
Python version: Python 3.8
CUDA/cuDNN version: CUDA 11.0
GPU models and configuration: NVIDIA TITAN RTX
Any other relevant information:

Additional context

Duplicate issue #2213: ImportError: cannot import name 'rerank'
Created: 2020-06-05T06:46:49Z
I executed examples/noisychannel/rerank_tune.py following the noisy channel example and get   File "examples/noisychannel/rerank_tune.py", line 12, in <module> from . import rerank, rerank_options ImportError: cannot import name 'rerank' or
  File "examples/noisychannel/rerank_tune.py", line 93, in <module>
    cli_main()
  File "examples/noisychannel/rerank_tune.py", line 89, in cli_main
    random_search(args)
  File "examples/noisychannel/rerank_tune.py", line 60, in random_search
    best_lenpen, best_weight1, best_weight2, best_weight3, best_score = rerank.rerank(rerank_args)
  File "/media/kalle/Sprachdaten/noisy/fairseq/examples/noisychannel/rerank.py", line 262, in rerank
    rerank_score_lm.score_lm(args)
  File "/media/kalle/Sprachdaten/noisy/fairseq/examples/noisychannel/rerank_score_lm.py", line 44, in score_lm
    args.source_lang, prefix_len=args.prefix_len)
  File "/media/kalle/Sprachdaten/noisy/fairseq/examples/noisychannel/rerank_utils.py", line 619, in lm_scoring
    preprocess.main(input_args)
  File "/media/kalle/Sprachdaten/noisy/fairseq/fairseq_cli/preprocess.py", line 259, in main
    make_all(args.source_lang, src_dict)
  File "/media/kalle/Sprachdaten/noisy/fairseq/fairseq_cli/preprocess.py", line 241, in make_all
    make_dataset(vocab, args.trainpref, "train", lang, num_workers=args.workers)
  File "/media/kalle/Sprachdaten/noisy/fairseq/fairseq_cli/preprocess.py", line 237, in make_dataset
    make_binary_dataset(vocab, input_prefix, output_prefix, lang, num_workers)
  File "/media/kalle/Sprachdaten/noisy/fairseq/fairseq_cli/preprocess.py", line 169, in make_binary_dataset
    100 * sum(replaced.values()) / n_seq_tok[1],
ZeroDivisionError: division by zero

Closing comment (2020-10-19T07:14:33Z): This issue is probably related to #2738
Repository: factor/factor

Issue #382: TUPLE: literal syntax ignores initial: sometimes
Created: 2011-11-10T06:05:49Z
IN: scratchpad TUPLE: foo ;
IN: scratchpad TUPLE: bar { a foo initial: f } ;
IN: scratchpad bar new describe
bar
a T{ foo }
The a slot in bar can't be an f because the type is foo.

Duplicate issue #383: initial slots being ignored?
Created: 2011-11-10T06:07:39Z
If I try to give an initial value to a typed slot:
IN: scratchpad TUPLE: foo ;
IN: scratchpad TUPLE: bar { a foo initial: f } ;
IN: scratchpad bar new
I should probably get at least a "bad store to specialized slot", if not an error when defining bar... but I get neither.

Closing comment (2011-11-10T06:08:35Z): Duplicate of #382.
Repository: factor/factor

Issue #692: google is indexing docs.factorcode.org:8080
Created: 2012-09-21T05:18:49Z
Probably we shouldn't run a webserver on 8080 and probably google shouldn't be indexing it.
Try searching for "complex shuffle" factor, first result.

Duplicate issue #1992: http://paste.factorcode.org gives links to http://paste.factorcode.org:8080
Created: 2018-04-24T12:11:36Z
It should use http://docs.factorcode.org/content/article-http.server.remapping.html instead to give links without the port.
there's the same problem on http://docs.factorcode.org/search?search=port%20remapping

Closing comment (2018-06-23T18:42:45Z): Duplicate of #692
Repository: factor/factor

Issue #1095: imap random failure
Created: 2014-07-08T00:01:17Z
Unit test failures

resource:extra/imap/imap-tests.factor
Details:
==== resource:extra/imap/imap-tests.factor

resource:extra/imap/imap-tests.factor: 35

Unit Test: {
    [ t ]
    [
        \ imap-settings
        get-global
        [
            10 random-ascii
            [ create-folder "*" list-folders length 0 > ]
            [ delete-folder ] bi
        ]
        with-imap-settings
    ]
}

imap4-error
ind  "NO"
data "System Error (Failure)"
[Traceback]

Duplicate issue #1169: imap tests need timeout
Created: 2014-10-23T23:14:16Z
Unit Test: {
    [ 0 ]
    [
        \ imap-settings
        get-global
        [
            "örjan" test-folder
            [ create-folder ] [ select-folder ]
            [ delete-folder ] tri
        ]
        with-imap-settings
    ]
}
Unit Test: {
    [ t ]
    [
        \ imap-settings
        get-global
        [
            10 random-ascii
            [ create-folder "*" list-folders length 0 > ]
            [ delete-folder ] bi
        ]
        with-imap-settings
    ]
}
Unit Test: {
    [ t t f f ]
    [
        \ imap-settings
        get-global
        [
            10 random-ascii {
                [ create-folder ]
                [
                    [
                        "(\\Seen)" now sample-mail append-mail
                        drop
                    ] curry 10 swap times
                ]
                [
                    select-folder drop "ALL" "" search-mails
                    5 sample "(RFC822)" fetch-mails
                    [ [ string? ] all? ] [ length 5 = ] bi
                    "SUBJECT" "afternoon" search-mails
                    empty? "(SINCE \"01-Jan-2014\")" ""
                    search-mails empty?
                ]
                [ delete-folder ]
            } cleave
        ]
        with-imap-settings
    ]
}
Launcher error:
Process was killed as a result of a call to
kill-process, or a timeout

Launch descriptor:

T{ process
    { command { "./factor" "-run=mason.test" } }
    { environment H{ } }
    { environment-mode +append-environment+ }
    { stdin +closed+ }
    { stdout "../test-log" }
    { stderr +stdout+ }
    { group +new-group+ }
    { timeout T{ duration { hour 4 } } }
    { status T{ signal { n 15 } } }
    { killed t }
}```

Closing comment (2014-11-08T22:10:46Z): Not necessary anymore, the tests will fix themselves. Related to #1095.