text:
Count-min Sketch prototype

First iteration of Count-min Sketch prototype

I've done some testing using current implementation of BoundedCounter (Count-min sketch) using wikipedia.
I've counted all the bigrams and unigrams exactly (using disk for bigrams, and a python dictionary for unigrams).
Then I've filled a count-min sketch structure using width 67 108 864 (2^26), depth 4 and logcounter1024. The ratio of different bigrams (179 413 989) to width is 2.67:1
Finally, I've used scoring from the phraser algorithm (using min_count=50 and threshold=10.0) and compared the exact score (using exact bigram count and exact unigram count) with the estimated score (using the count-min sketch structure and the exact unigram count).
This is the summary:
Processed 179413989 bigrams
179403089 ok, 316920 true positives, 179086169 true negatives, 10853 false positives, 47 false negatives
Precision 0.966889, Recall 0.999852, F1: 0.983094
In the attached file you can view the miscategorized bigrams with their scores.
compare_10.txt

That looks great! Awesome results. Too bad for škoda favorit and "english literature", but the errors seem understandable and all fairly close.
Can you add some info on:

the structure size in MB (the main matrix size)
the same analysis for different sizes (different ratio)

We'll need some hints as to what error levels should the users expect, for a given MB size and ratios (the ratios are always expected rough estimates -- true bigram count is unknown).
Btw, can this structure also report the number of unique elements in it?

Good news! I was able to come up with a conservative-update equivalent for the probabilistic counter version. This offers better precision for the counter, and particularly for the low values (where it's most significant)! I'm running tests on Wiki data set now, will post results when I have them.
I also added hyperloglog from here. That is used to report the number of distinct elements in the structure.
Finally, I've added some additional documentation (readme).

authors: isamaru piskvorky


text:
Support for page objects

Selenium knows the concept of page objects. This allows to map an object to a HTML page. Each property of the class to map must be extended with the FindsBy attribute:
[FindsBy(How = How.CssSelector, Using = ".items .item")]
public IList<IWebElement> Items { get; set; }

Would be cool if the jQuery selector could be used there to. In order to do this, it must inherit from By and implement it correctly. The code would then look like this:
[FindsBy(CustomFinderType = typeof(jQuerySelector), Using = ".items item"]
public IList<IWebElement> Items { get; set; }

I've added the support for Page Objects that will be released with V2 of the extensions library.
One important thing you need to keep in mind while using this feature that if you are using CustomFinderType you still need to provide How parameter, or it will not work. So in the example you've given the actual code would have to be:
[FindsBy(How = How.Custom, CustomFinderType = typeof(jQuerySelector), Using = ".items item"]
public IList<IWebElement> Items { get; set; }

source: gharchive/issue

authors: RaYell yannisgu

repo: RaYell/selenium-webdriver-extensions

license_type: permissive

license_source: bigquery


text:
RAC-5040:  Convert CentoOS 6.5 to FIT

Add payload
Bring down verbosity to 4 in run_tests.py call.
Disable smoke tests
Re-enable all tests
Deleted 'test.sh'

BUILD on-build-config #403 : FAILURE

BUILD on-build-config #403  Error Logs  ▼Test Name: test13_load_ucs_manager_config
Error Details:
-------------------- >> begin captured logging << --------------------
infra.run: DEBUG: relaying set_test((None,)) to all trackers {}
test.run: DEBUG: handle_after_test pluggin progression for  test=test12_check_pollers (test.deploy.rackhd_stack_init.rackhd_stack_init)
test.run: DEBUG: handle_after_test pluggin progression for  test=test12_check_pollers (test.deploy.rackhd_stack_init.rackhd_stack_init)
root: INFO: +1.13 - STARTING TEST: [test13_load_ucs_manager_config (test.deploy.rackhd_stack_init.rackhd_stack_init)]
infra.run: DEBUG: relaying set_test((Test(),)) to all trackers {}
test.run: DEBUG: handle_start_test pluggin progression for  test=test13_load_ucs_manager_config (test.deploy.rackhd_stack_init.rackhd_stack_init)
test.run: DEBUG: handle_start_test pluggin progression for  test=test13_load_ucs_manager_config (test.deploy.rackhd_stack_init.rackhd_stack_init)
--------------------- >> end captured logging << ---------------------
Stack Trace:   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/home/jenkins/workspace/on-build-config/RackHD/test/deploy/rackhd_stack_init.py", line 321, in test13_load_ucs_manager_config
    self.assertTrue(handle.login(), 'Failed to log in to UCS Manager!')
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucshandle.py", line 119, in login
    return self._login(auto_refresh, force)
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucssession.py", line 538, in _login
    response = self.post_elem(elem)
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucssession.py", line 258, in post_elem
    response_str = self.post_xml(xml_str)
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucssession.py", line 209, in post_xml
    response_str = self.post(uri=ucsm_uri, data=xml_str, read=read)
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucssession.py", line 191, in post
    response = self.__driver.post(uri=uri, data=data, read=read)
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucsdriver.py", line 207, in post
    response = opener.open(request)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/home/jenkins/workspace/on-build-config/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/ucsmsdk/ucsdriver.py", line 57, in https_open
    return self.do_open(TLS1Connection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
'\n-------------------- >> begin captured logging << --------------------\ninfra.run: DEBUG: relaying set_test((None,)) to all trackers {}\ntest.run: DEBUG: handle_after_test pluggin progression for  test=test12_check_pollers (test.deploy.rackhd_stack_init.rackhd_stack_init)\ntest.run: DEBUG: handle_after_test pluggin progression for  test=test12_check_pollers (test.deploy.rackhd_stack_init.rackhd_stack_init)\nroot: INFO: +1.13 - STARTING TEST: [test13_load_ucs_manager_config (test.deploy.rackhd_stack_init.rackhd_stack_init)]\ninfra.run: DEBUG: relaying set_test((Test(),)) to all trackers {}\ntest.run: DEBUG: handle_start_test pluggin progression for  test=test13_load_ucs_manager_config (test.deploy.rackhd_stack_init.rackhd_stack_init)\ntest.run: DEBUG: handle_start_test pluggin progression for  test=test13_load_ucs_manager_config (test.deploy.rackhd_stack_init.rackhd_stack_init)\n--------------------- >> end captured logging << ---------------------'

source: gharchive/pull-request

authors: JenkinsRHD johren

repo: RackHD/on-build-config

license_source: github-api


text:
Add options to allow console redirect in ESXi bootstrap

In many rack mount servers or customized servers, there is no monitor connected, UART port are usually used as console. VMware ESXi use VGA card as console. User need pass VM kernel To support this use, I add three options: "gdbPort","logPort","debugLogToSerial".
VMware ESXi referrence
To support this , 'on-http/data/templates/esx-boot-cfg', 'on-http/data/templates/esx-ks'(This PR) and 'on-tasks/lib/task-data/tasks/install-esx.js'(in another PR for on-tasks) are changed.
The default value of those options keep console in VGA as it does before. User can customize the console redirect setting in the OS bootstrapping payload.
Jenkins depends on https://github.com/RackHD/on-tasks/pull/443

@pengz1 @iceiilin @anhou @yyscamper

BUILD on-http #117 : FAILURE

BUILD on-tasks #74 : FAILURE

BUILD on-tasks #74  Error Logs  ▼Test Name: install-esxi-spec.js schema negative set testing should violate the schema if gdbPort="ttys0"
Error Details: expected schema violation, but get conformity.
Stack Trace: Error: expected schema violation, but get conformity.
    at validateData (spec/lib/task-data/schemas/schema-ut-helper.js:81:20)
    at SchemaUnitTestHelper._validate (spec/lib/task-data/schemas/schema-ut-helper.js:134:17)
    at Context.<anonymous> (spec/lib/task-data/schemas/schema-ut-helper.js:214:26)
Test Name: install-esxi-spec.js schema negative set testing should violate the schema if debugLogToSerial="3"
Error Details: expected schema violation, but get conformity.
Stack Trace: Error: expected schema violation, but get conformity.
at validateData (spec/lib/task-data/schemas/schema-ut-helper.js:81:20)
at SchemaUnitTestHelper._validate (spec/lib/task-data/schemas/schema-ut-helper.js:134:17)
at Context.<anonymous> (spec/lib/task-data/schemas/schema-ut-helper.js:214:26)

Test this please

authors: JenkinsRHD nortonluo pengz1

repo: RackHD/on-http


text:
Unable to install PyRadiomics via PIP (ADDITIONAL INFO NEEDED)

Why i can't download the pyradiomics sucessfully? Could you help me?
I have upgraded the PIP, and installed the Python 3.6, however,there is no success. Thanks a lot.

So people can help you better, please describe the steps you too, any error messages, your OS, etc.

I've probably met the same problem, which is still unsolved. Let me show my steps and hope anyone can help.
I use Python 3.8.3 and pip 20.1.1, run "pip install pyradiomics", when I met the description
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
when pip detected my PyWavelets is 1.1.1 and wants to downgrade it. I've tried installing the Visual C++ Building Tools, but it doesn't work. Sorry that I didn't record the error information befor I've uninstalled the toolkit.
I know that using Anaconda to install pyradiomics is a safer way, and I've succeeded in that. But I need to build a .whl file to transfer the packages into other offline machines which doesn't have Anaconda in it, so pip freeze and install is a better way. And I don't know whether the file can work in Linux (e.g. CentOS 7) if I build a .whl in Windows 10.

Your error is caused by the fact that you don't have a c compiler configured on windows. This is needed to build the c extensions in PyRadiomics when building from source (wheels distributed on pypi come with precompiled extensions, but these are platform and python version specific). Currently python3.8 is not included in the regular distributions, so your pip actually gets the source code and tries to compile.
In some of the older closed issues in PyRadiomics you can find some pointers on how to set this up. However, as I mentioned, compiling is also platform specific, so compiled wheels on windows don't work for linux. Fortunately, linux comes with preconfigured c compilers, so it's likely the pip install will work on a linux machine.

Additionally, when configuring visual studio build tools (of the correct version!), ensure it is also added to the correct environment variables (smth like VS140COMNTOOLS)

Thanks, I just pip installed PyRadiomics on  Linux, and I'll try to compile it on Windows later when I have time to.

@yszhong I tried installing pyradiomics using Anaconda but gives the following error. Also, when I search for pyradiomics in the navigator, it doesn't give out any results. Please guide me on the same.

authors: 2019lili JoostJM mohdsinad pieper yszhong

repo: Radiomics/pyradiomics


text:
PropTypes Issue

Can you change from 'React.PropTypes' to 'PropTypes'?
// src/index.js
export default class InfiniteAnyHeight extends Component {
  static displayName = 'InfiniteAnyHeight';

  static propTypes = {
    heights: PropTypes.array,
    heightsUpdateCallback: PropTypes.func,
    list: PropTypes.node,
    scrollContainer: PropTypes.object,
    useWindowAsScrollContainer: PropTypes.bool
  };

It's already in progress. :)

Are they using react in korea now because most korean websites are really ugly

Too busy

authors: jcgertig totaldesigner

repo: Radivarig/react-infinite-any-height

license: mit


text:
[FR]: Way to ignore some files from the database. Similar to Obsidian Projects plugin.

Contact Details
azadkshitij08302001@gmail.com
Present your request
I want a way to ignore files I don't want to include in my database.

For which platform do you request this request??
Desktop

Hello @AzadKshitij , you can use the dbfolder filters. In your case a filter with "tags is not empty" could be enough

authors: AzadKshitij RafaelGB

repo: RafaelGB/obsidian-db-folder

license: MIT


text:
Downloading: An Important Note About A Cloud Guru and Linux Academy Courses ...

Executing for https://linuxacademy.com/cp/modules/view/id/432

Trying to log in ... *
←[92m~ Logged in! ~←[0m
Getting lesson links...
Course name detected as Managing Microsoft Azure Applications and Infrastructure with Terraform
Enumerating links and sources ...
Commencing download ...
Downloading: An Important Note About A Cloud Guru and Linux Academy Courses ...
ERROR: Unsupported URL: https://linux
academy.com/cp/ssologin
ERROR: Unsupported URL: https://linuxacademy.com/cp/ssologin
Downloading failed. Perhaps, the cookies have expired.

I already did the mentioned solution but still occurs for every course I download

Hello , I get the same error, looks like you can only down the courses which you have either purchased or part of community courses..

Sorry for the late response. I think your right, that is the last day of my subscription in Linux Academy. I might have not seen it prior to downloading.

authors: PrynsTag TroubleshooteRJ

repo: RahulShaw/LinuxAcademy-DL


text:
Not allow identities

Hello friends,
Thanks for the great rainloop development.
I would like to disallow Ami identities or accounts extras like I can disable this option.
I want to disable all menu settings "accounts"
thanks

OK

Done (1.9.1 version)

I have 1.9.1 version, and I still appears, the menu accounts.
How I can do to disable this option?

thanks

Login into the admin area (append ?admin to your Rainloop URL) and disable the creation of additional accounts/identities in the General tab.

authors: RainLoop megadr01d programacion-web

repo: RainLoop/rainloop-webmail


text:
Plugin dev documentation needed

No I develop custom plugin to change passwords.
Due to my system requrements, i need meake two functions:

I need to be able display custom messages if new password not valid
And most importatnt! After succesfuly password change, i need to logout user and display some additional informations

Now after two days of serachin in code and google, i decide to write to You for help, because i cant found any documentation to plugin development.
THX

Thanks for your commit! Could you add some documentation on how to write a plugin to let the user change his/her password?

Hello. I cant write full doc, because, i wrote plugin based on example stored in:
https://github.com/RainLoop/rainloop-webmail/tree/master/plugins/change-password-example
I'll search more on code and google to add functionality described in topic, but not found any. so i wrote this topic.
Some plugin write without this function are simply based on example code.
To change password i simply exec system bash script to do the rest.
Due to specification of mail mail system, the password change are little delayed, so after change, rainloop cant access mailbox, so simplest solution is to logout this user for few seconds.
Ant this fuction i cant find in any place. Rest are simple.

Hello,
any hope for documentation?
I see that there is still no documentation at https://www.rainloop.net/docs/plugins/
I run into several questions about the process of displaying error messages in a proper way that would be portable between current and future new versions. As I'm trying to integrate rainloop webmail interface with custom server infrastructure and the way it handles error messaging (which somewhat differs from examples from rainloop repository and above example by @lucas-net-pl ). So far I have no reasons to believe that any results of code analysis that would be performed on existing codebase may be used to develop such plugin. So is the lack of documentation caused by just a lack of time and volunteers? Or the topic of plugin development may be the subject of rapid changes between branches/versions making the whole process of writing such documentation not worth the whole effort due to possible changes in code architecture? If it's the only matter of lack of manpower - what would be the proper way of doing so?

authors: IDoProgramming lucas-net-pl raphaelh


text:
🛑 RSOS服务控制面板 is down

In 8f2dbb8, RSOS服务控制面板 (https://$US_SITE) was down:

HTTP code: 530
Response time: 289 ms

Resolved: RSOS服务控制面板 is back up in 8934c74 after 6 minutes.

repo: RainThings/uptime


text:
🛑 RSOS服务控制面板 is down

In d362cdd, RSOS服务控制面板 (https://$US_SITE) was down:

HTTP code: 502
Response time: 301 ms

Resolved: RSOS服务控制面板 is back up in 29c0ee9 after 23 minutes.


text:
🛑 HK区服 is down

In 41957ae, HK区服 (https://$HK_SERVER) was down:

HTTP code: 0
Response time: 0 ms

Resolved: HK区服 is back up in 3be5327.


text:
Bug: making sure elements exist

On load, the console shows it can't find a specific element... easy way to fix is to check if the element exist before attempting to alter the classList !
https://github.com/RainbowJM/real-time-web/blob/672e50144667d2b8ea743eb7646ef94c54828a6f/public/js/script.js#LL192C9-L192C21

Fixed it

authors: RainbowJM noyamirai

repo: RainbowJM/real-time-web


text:
Implement Dark Theme for the website

Prerequisites

[X] I am an Open Source Contributor
[X] I checked to make sure that this issue has not already been filed

Description
Enhancement of Homepage of beautiify  by creating Toggle for dark and light mode #Intermediate/Beginner Issue
Any swoc contributor can work!
Screenshots
No response
Code of Conduct

[X] I follow Contributing Guidelines of this project.

Hey @Rakesh9100 I am a contributor in SWOC . I can work on this issue!!!!
In the dark mode the Website can be look like this

This is the project Beautiify not CalcDiverse. Pls work accordingly if you want to @IamSudhir-Kumar

Sorry for that mistake please assign this issue to me !!! I want to work on this @Rakesh9100

It can be look like these But I can make more changes on navbar section

Okay, start working!! Give your best, will see how it goes @IamSudhir-Kumar

Is it okay? Or should I make some changes

hello @Rakesh9100 , I would like to work on this issue under JWOC.

Go ahead @thatguywhocode

Hey @Rakesh9100 , I have solved issue and created pr under JWOC.

I wanted to work on this issue .Pls assign this issue to me . @Rakesh9100

hello @Rakesh9100  , I would like to work on this issue

Go ahead @Parth4git

You want to work for which open source program @Parth4git

Hey @Rakesh9100 , i'll look for the errors and solve it under JWOC.

@Parth4git Do you want to work

I wanted to work on this issue .Pls assign this issue to me . @Rakesh9100

@Parth4git Do you want to work

yes I want to work on this issue under JWOC

Proceed @Parth4git

Pls assign me this issue @Rakesh9100 under 'JWOC'

@Rakesh9100 do you want dark mode toggle button only on home page or at every pages .
Update of work -- All the work is almost done

Each and every page @Parth4git
Can you show the screenshot at which place are you placing the button?

@Rakesh9100 does it look all right

Make sure to update your forked repo locally and then make your changes and open PR @Parth4git
Place it down the navbar!!

where I did not understand . please mark the point @Rakesh9100

@Parth4git

PR update @Parth4git

I am working on things you mention yesterday .updating location of button on every page and updated css accordingly @Rakesh9100

@Rakesh9100 kindly look through it and tell anything required or not
https://github.com/Rakesh9100/Beautiify/assets/99666524/2953dbe1-4fc3-4279-a373-a0fb34214ce0

authors: IamSudhir-Kumar PARKER-X Parth4git Rakesh9100 branihat thatguywhocode vishapraj


text:
Expand on the use of {*} with proto

The problem
The documentation on proto was not as clear as I needed. I tried several times to understand it, but failed.
I got it nearly right when I asked on perl6-users.
Crucially '{*}' is a special token without whitespace - this needs to be noted.
The extra example combines the proto declaration with methods that use it.
Solution provided
Added a note and a longer example

In addition to the curlies comment above, please add "newclass" to xt/code.pws (sorted) so the spellcheck test passes. There is also some trailing whitespace that should be removed.
Thanks!

@coke amended as suggested

(I accidentally pushed a commit to this branch post-merge, instead of master, apologies)

authors: coke finanalyst

repo: Raku/doc


text:
README/GitHubCompanies: Amazon Archives

Is your feature request related to a problem? Please describe.
Additional Amazon GitHub
Describe the solution you'd like
|Amazon Archives|
Describe alternatives you've considered
Additional context

README

References

Company GitHub

|Amazon Archives|

#1299 closes #1835

repo: RalphHightower/RalphHightower


text:
Envio de E-mail Desnecessário ao Editar OS

Descrição
Problema detectado ao editar qualquer ordem de serviço existente, assim que a edição é realizada um e-mail desnecessário é adicionado a lista de e-mail pendentes para envio, causando possível spam na caixa de entrada do receptor.
Reprodução

Vá para ordens de serviço.
Clique em editar ordem de serviço.
Altere os campos se desejar ou apenas salve sem alterar.
Vá para "Configurações -> E-mails".

Comportamento Esperado
Ao editar qualquer ordem de serviço, recomenda-se que não envie e-mail.
Ambiente

Sistema Operacional: Windows 10 Pro 1909 (18363.720)
Navegador: Google Chrome
Versão: 80.0.3987.149 64 Bits

Essa questão é muito relativa, isso foi justamente implementado pois alguns usuários estavam pedindo para enviar e-mail automático quando a OS fosse criada/editada.
Creio então que o que pode ser feito é adicionar uma opção em Configurações >> Sistema para desativar/ativar essse envio automático.
Portanto não é um bug.


text:
Does anyone else think Hyphenation needs some tweaking?

This is my first contribution here; I’m reviving an old support request I made back in 2020 which nothing ever came of, but I maintain is an issue.
I’ll preface this by saying I am not a programmer and do not understand the underlying frameworks and technologies behind what I’m about to discuss.
But from a user point of view, the way hyphenation works in NetNewsWire has always felt broken to me. I’m frequently seeing hyphens used in more than 40% of the paragraph lines, which feels like far too many. I’ve attached an example from my morning read where 12 out of 19 visible lines were hyphenated, that’s 63%.

Do others share this concern? If so, I would propose making the following changes/conditions:

No consecutive hyphens (2 or more in lines above/below each other)
No hyphens near the beginning or end of words (should be a 70:30 split at most, and never leave less than 3 letters on one line)
No hyphens in headings, captions, or quotes.

One last request would be to have the option to disable hyphens all together as I feel they’re often unnecessary on modern devices.
Curious to hear other people’s thoughts on this, and grateful for the app and its community as always!

The hyphenation is outside of our control — it’s provided by WebKit, which does all the rendering for the article views.
I think, though I’d have to check, that one could turn off hyphenation by making a custom theme out of our standard themes — and just edit the CSS file to turn off hyphenation. I’m not positive of this, since I haven’t tried it, but it sounds possible.

Thanks for following up Brent. Appreciate the suggestion too, I'll look into it!

Just following up — I have zero knowledge or experience programming but managed to do exactly what Brent suggested in 2 minutes. If anyone would like to do the same, you can download this modified version of the default theme here.

There's also a hyphenate-limit-chars property which WebKit doesn't (yet) support, but it does have -webkit-hyphenate-limit-before and -webkit-hyphenate-limit-after (which AIUI are being replaced by the former one).

authors: Wevah brentsimmons chriswrightau

repo: Ranchero-Software/NetNewsWire


text:
Add Node Access Controls Limits

Currently the code only validates that you're a valid user with current membership.  Need to add support for limiting access to certain nodes (possibly at certain times).

Features added and working.  Still need to create unit test to ensure all the potential corner case bugs for these features work properly, but since the code seems to be working from a high level inspection. I am closing this issue.  Was first working with commit 068881ed9b20da1f0976674b899bebeffe6ea270

repo: RandomWireTechnologies/ctrl-o-node


text:
Add self mute/deaf to User. closes #73.

Check lines 42 and 51. Will codeclimate complain about this? Should user state sending be wrapped?

Think it should be wrapped given we still need the set() method that is able to set multiple flags with a single UserState message as I believe it makes a difference from UI perspective whether the mute and deafen happen at the same time.
And no idea about code climate. Given it complains about everything short of your syntax highlighting colors, I guess it will - but we can entertain it later for that. :)
But neither of these aspects affects the API, etc. so we can go with this for now.

it complains about everything short of your syntax highlighting colors

"F - your solarized theme sucks"

I'm convinced that is an actual CodeClimate warning.

authors: Rantanen tjhorner

repo: Rantanen/node-mumble


text:
Incorrect typing for socket.address()?

Description
Typing for TcpSocket.address() seems to be different from what the library returns at runtime.
Steps to reproduce
Steps to reproduce the behavior:

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

Or code:
// Your code

Current behavior
Calling TcpSocket.address() returns an object that resembles: {family: 'IPv4', port: 54014, address: '192.168.200.143'}
Expected behavior
According to the type definitions, TcpSocket.address() should just be a string: '192.168.200.143'
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant information

OS
?

react-native
?

react-native-tcp-socket
?

@ericleb010, you are right! Thanks for the feedback, working on a fix.

repo: Rapsssito/react-native-tcp-socket


text:
feat (Add tailwind): Redesign dashboard with tailwind css

Remove antd react package and related icons package.
Include tailwind css, also include custom icons

Please note: The icons are different from the given design, we will replace it later.

@sanathkr Renamed Pages/Index to Pages/Program 👍

I have extracted out some of the lengthy classnames as .module.css, the UI needs bit of polishing, would get to it, once this base is ready.

Making good progress!

Why is this PR closed?

Why is this PR closed?

There is another P.R which is an extension of this P.R
On Tue, Jan 5, 2021 at 9:28 PM Sanath Kumar Ramesh notifications@github.com
wrote:

Why is this PR closed?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/RareCamp/RareCamp/pull/13#issuecomment-754725444, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALYZMMN4CG3NY23L53YCSH3SYMZJVANCNFSM4VG6DZVQ
.

There is another P.R which is an extension of this P.R
On Tue, Jan 5, 2021 at 9:28 PM Sanath Kumar Ramesh notifications@github.com
wrote:

Why is this PR closed?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/RareCamp/RareCamp/pull/13#issuecomment-754725444, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ALYZMMN4CG3NY23L53YCSH3SYMZJVANCNFSM4VG6DZVQ
.

authors: pipesorter sanathkr

repo: RareCamp/RareCamp


text:
scenarios selected from list

Scenarios for main task (not onboarding or "pre-ready" description) are selected from a list.

Thanks for submitting a pull request 🚀 @dakshvar22 will take a look at it as soon as possible ✨

authors: Shikib sara-tagger

repo: RasaHQ/ParlAI


text:
ValueError: 684830 exceeds max_map_len(32768)

Rasa NLU version: 0.13.8
Operating system (windows, osx, ...): Ubuntu
Content of model configuration file:
language: "en"

pipeline: spacy_sklearn

Issue:
This is the full stack trace below from trying to train
2018-12-03 06:45:39 INFO     rasa_nlu.utils.spacy_utils  - Trying to load spacy model with name 'en'
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/train.py", line 184, in
num_threads=cmdline_args.num_threads)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/train.py", line 148, in do_train
trainer = Trainer(cfg, component_builder)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/model.py", line 155, in init
self.pipeline = self._build_pipeline(cfg, component_builder)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/model.py", line 166, in _build_pipeline
component_name, cfg)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/components.py", line 441, in create_component
cfg)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/registry.py", line 143, in create_component_by_name
return component_clz.create(config)
File "/usr/local/lib/python3.6/dist-packages/rasa_nlu/utils/spacy_utils.py", line 73, in create
nlp = spacy.load(spacy_model_name, parser=False)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/init.py", line 15, in load
return util.load_model(name, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 112, in load_model
return load_model_from_link(name, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 129, in load_model_from_link
return cls.load(**overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/data/en/init.py", line 12, in load
return load_model_from_init_py(file, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 173, in load_model_from_init_py
return load_model_from_path(data_path, meta, **overrides)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 156, in load_model_from_path
return nlp.from_disk(model_path)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/language.py", line 653, in from_disk
util.from_disk(path, deserializers, exclude)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/language.py", line 641, in
self.vocab.from_disk(p) and _fix_pretrained_vectors_name(self))),
File "vocab.pyx", line 380, in spacy.vocab.Vocab.from_disk
File "vectors.pyx", line 391, in spacy.vectors.Vectors.from_disk
File "/home/ampm/.local/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "vectors.pyx", line 369, in spacy.vectors.Vectors.from_disk.load_key2row
File "vectors.pyx", line 370, in spacy.vectors.Vectors.from_disk.load_key2row
File "/home/ampm/.local/lib/python3.6/site-packages/msgpack_numpy.py", line 205, in unpack
return _unpack(stream, **kwargs)
File "/home/ampm/.local/lib/python3.6/site-packages/msgpack/init.py", line 57, in unpack
return unpackb(data, **kwargs)
File "/home/ampm/.local/lib/python3.6/site-packages/msgpack_numpy.py", line 214, in unpackb
return _unpackb(packed, **kwargs)
File "msgpack/_unpacker.pyx", line 187, in msgpack._cmsgpack.unpackb
ValueError: 684830 exceeds max_map_len(32768)

Workaround is to freeze msgpack at 0.5.6.

This fixed it for me python -m pip install "msgpack<0.6.0"

When building a docker image via Dockerfile, you can add below to the end of file.
RUN pip install --upgrade msgpack==0.5.6
Possibly, you are loadding the model with a different version of Rasa from which version you use for training the model.

Getting the below error after i downgraded the msgpack version to 0.5.6
Rasa NLU version: 0.12.3
msgpack-python==0.5.6
Operating system : Macos
Content of model configuration file:
language: "en"
pipeline: spacy_sklearn
Full stacktrace below:
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/training_data/training_data.py:194: UserWarning: Entity 'people' has only 1 training examples! minimum is 2, training may fail.
self.MIN_EXAMPLES_PER_ENTITY))
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/training_data/training_data.py:194: UserWarning: Entity 'price' has only 1 training examples! minimum is 2, training may fail.
self.MIN_EXAMPLES_PER_ENTITY))
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/utils/init.py:236: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
return yaml.load(read_file(filename, "utf-8"))
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:521: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:522: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "nlu_model.py", line 21, in
train_nlu('./data/data.json', 'config_spacy.json', './models/nlu')
File "nlu_model.py", line 12, in train_nlu
trainer = Trainer(config.load(config_file), builder)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/model.py", line 149, in init
self.pipeline = self._build_pipeline(cfg, component_builder)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/model.py", line 160, in _build_pipeline
component_name, cfg)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/components.py", line 420, in create_component
cfg)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/registry.py", line 140, in create_component_by_name
return component_clz.create(config)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rasa_nlu/utils/spacy_utils.py", line 73, in create
nlp = spacy.load(spacy_model_name, parser=False)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/init.py", line 15, in load
return util.load_model(name, **overrides)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/util.py", line 112, in load_model
return load_model_from_link(name, **overrides)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/util.py", line 129, in load_model_from_link
return cls.load(**overrides)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/data/en/init.py", line 12, in load
return load_model_from_init_py(file, **overrides)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/util.py", line 173, in load_model_from_init_py
return load_model_from_path(data_path, meta, **overrides)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/util.py", line 156, in load_model_from_path
return nlp.from_disk(model_path)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/language.py", line 653, in from_disk
util.from_disk(path, deserializers, exclude)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/language.py", line 649, in
deserializers[name] = lambda p, proc=proc: proc.from_disk(p, vocab=False)
File "pipeline.pyx", line 643, in spacy.pipeline.Tagger.from_disk
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spacy/util.py", line 511, in from_disk
reader(path / key)
File "pipeline.pyx", line 626, in spacy.pipeline.Tagger.from_disk.load_model
File "pipeline.pyx", line 627, in spacy.pipeline.Tagger.from_disk.load_model
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/thinc/neural/_classes/model.py", line 352, in from_bytes
copy_array(dest, param[b'value'])
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/thinc/neural/util.py", line 48, in copy_array
dst[:] = src
ValueError: could not broadcast input array from shape (96) into shape (128)

authors: VickySrinivas libindavis mvollrath richwednesday

repo: RasaHQ/rasa


text:
URL in documentation page is broken

Hello,
The link to external-events-and-reminders page is broken in the following page: https://rasa.com/docs/rasa/core/responses/#proactively-reaching-out-to-the-user-with-external-events
The docs page on this topic hyperlink refers to this page (https://rasa.com/docs/rasa/core/external-events-and-reminders) which is wrong, the correct page is (https://rasa.com/docs/rasa/core/reminders-and-external-events/)
Screenshot for reference:

thanks @abhayana24 ! would you be open to creating a pull request to fix this?

Sure @amn41

O/
This issue is already fixed.
Can we get the issue closed?
Thanks :smile:


text:
Improve the suggested pipelines

See feedback in Notion.
Currently, doing pip install rasa==2.0.0a1 and then rasa init fails because the suggested pipeline includes spaCy, which is not installed by default. Also, the suggested pipeline doesn't match what we recommend in our docs.
A potential solution would be to include conveRT in the default installation, except on Windows (where tensorflow-text isn't supported yet), and then suggest the following pipelines:
If language: en and not on Windows, suggest
pipeline:
  - name: ConveRTTokenizer
  - name: ConveRTFeaturizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100

else suggest
pipeline:
  - name: WhitespaceTokenizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100

Does it make sense for the rasa init command to install complex pipeline components? I certainly appreciate ConveRT is a good component for the English language but it might cause a "cognitive overload" to somebody who is trying to learn Rasa.
Since the rasa init command is used so often by beginners in workshops I might argue that the command should be tailored to beginner users. Another downside is that during a workshop you'd prefer everyone to have the same pipeline independent of what platform they are working on.

I've discussed this point in our internal slack and I now feel that ConveRT might be fine. My worry was for beginner Rasa users but a beginner Rasa user should be more focussed on the CDD part of the assistant than on the config.yml.

hotfixed as part of https://github.com/RasaHQ/rasa/pull/6433 but needs a proper resolution

authors: chkoss koaning tmbo


text:
Update botframwork button to re-enable cards

Update botframwork button to re-enable cards:
According to MS Teams documentation, in order to make button clickable and some metadata need to be passed such as the type of the action button and the text need to be sent to Rasa once clicked on the button.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Abdulrahman Alshawakri seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant abdulshawakri


text:
UserUtteranceReverted event incorrectly replays actions

Rasa Core version:
master (5a0f0ea445da8f6cbfe53402aa70b1900fd23f66)
Python version:
3.6.3
Operating system (windows, osx, ...):
OSX 10.13.2
Example
Sample project illustrating the error:
https://github.com/twineai/rasa_core-1/tree/rewind_error/examples/rewindbot

Issue
In the example above, the do_inconsequential_thing action issues a UserUtteranceReverted event. After the event is applied, the bot predicts the next actions to be the actions that were previously ran, whereas I'd expect the bot's state to be simply as if the utterance never occurred at all.
Diagnosis
I believe it's the result of the following:
Prior to utterance
Tracker Event History =
   - ActionExecuted(Listen)
   - UserUttered(do_destructive_thing)
   - ActionExecuted(do_destructive_thing_one)
   - ActionExecuted(do_destructive_thing_two)

At this moment, the bot is in the process of listening
Now the utterance comes in, and the next action runs (the one which yields the UserUtteranceReverted)
Tracker Event History =
   - ActionExecuted(Listen)
   - UserUttered(do_destructive_thing)
   - ActionExecuted(do_destructive_thing_one)
   - ActionExecuted(do_destructive_thing_two)
   - ActionExecuted(listen)
   - UserUttered(do_inconsequential_thing)
   - ActionExecuted(do_inconsequential_thing)

The UserUtteranceReverted then rewinds the second UserUttered, yielding a state like this:
Tracker Event History =
   - ActionExecuted(Listen)
   - UserUttered(do_destructive_thing)
   - ActionExecuted(do_destructive_thing_one)
   - ActionExecuted(do_destructive_thing_two)
   - ActionExecuted(listen)

Then the policy looks at the state and says "what do I do in this situation", the model sees the last completed action (this is important) being the listen, and tries to recommend an action. This queries the last message for the intent (do_destructive_thing in this case), and then runs the associated actions.
I believe the UserUtteranceReverted should also rewind the ActionExecuted(listen) that occurs immediately prior to the user utterance, so that the model always predicts the next action as being listen, thus making the bot behave as if the utterance never occurred (barring side effects from the actions, of course).
Config
Content of domain file:
intents:
  - do_destructive_thing
  - do_inconsequential_thing

actions:
  - actions.ActionDoInconsequentialThing
  - actions.ActionDoDestructiveThingOne
  - actions.ActionDoDestructiveThingTwo

Content of stories:
## greet
* do_destructive_thing
    - action_do_destructive_thing_one
    - action_do_destructive_thing_two

## do thing
* do_inconsequential_thing
    - action_do_inconsequential_thing

Content of actions:
class ActionDoDestructiveThingOne(Action):
    def name(self):
        return 'action_do_destructive_thing_one'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message("Doing destructive thing one")
        return []

class ActionDoDestructiveThingTwo(Action):
    def name(self):
        return 'action_do_destructive_thing_two'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message("Doing destructive thing two")
        return []

class ActionDoInconsequentialThing(Action):
    def name(self):
        return 'action_do_inconsequential_thing'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message("Doing an inconsequential thing that shouldn't be remembered")
        return [UserUtteranceReverted()]

I think we resolved that as part of #194.

authors: jctrouble tmbo


text:
train_nlu restarts the whole python script

Rasa Core version: 0.9.0a5
Python version: 3.6
Operating system (windows, osx, ...): ubuntu 18.04
Issue: train_nlu seems to completely start the whole python script new (realized that after upgrade to 0.9.0a5)
Content of domain file (if used & relevant):
def train_nlu():
    from rasa_nlu.training_data import load_data
    from rasa_nlu import config
    from rasa_nlu.model import Trainer

    training_data = load_data('data/georgebot_nlu.md')
    trainer = Trainer(config.load("georgebot_nluconfig.yml"))
    trainer.train(training_data)
    model_directory = trainer.persist('models/nlu',
                                      fixed_model_name="current")

    return model_directory

what do you mean with it starts the whole python script new?

I do not use your scripts (need more flexibility) and have my own “bot.py” so to say. And the whole bot.py starts again a second time (can see that on the various print’s that I do) shortly before the end/at the end of “train_nlu” ...

Can you share that script? I am not sure why it would do that. Would be good to take a look at the log as well if you dont mind.

Sure ... be warned - I load a lot of packages/libraries ;-) which wasn't an issue until 0.9.0a3 (no double starts until then)
and the DEBUG Infos that I can see on the screen. The Line "['account_opening.txt', 'short_selling.txt']" indicates the start of the python script...
gb.zip
logfile.zip

Interesting new insight after further testing:
It is NOT the train_nlu, but the train_dialogue and it is NOT restarting the .py script, it "merely" prints the previous print statements (only the first 2, still don't know why) again in the following code:
def train_dialogue(domain_file="georgebot_domain.yml",
                   model_path="models/dialogue",
                   training_data_file="data/georgebot_stories.md"):
    fallback = FallbackPolicy(fallback_action_name="utter_default",
                      core_threshold=0.25,
                      nlu_threshold=0.25)
    agent = Agent(domain_file, policies=[MemoizationPolicy(max_history=6), KerasPolicy(), fallback])
    training_data=agent.load_data(training_data_file)
    agent.train(
            training_data,
            epochs=700,
            batch_size=10,
            validation_split=0.2)

    agent.persist(model_path)
    return agent

and it is that line agent = Agent(domain_file, policies=[MemoizationPolicy(max_history=6), KerasPolicy(), fallback]) and subsequently in the agent.py init the following line:
self.domain = self._create_domain(domain)

Mhm no, I really don't know why that would be the case. All of the code is using the logging system, so not really using any print statements. I am not sure how that could happen.

The print statements came from me ... I further tested and realised that the printed information is also shown, when I even commented the respective print statements (sic!).
It seems that the outputs of (former) print statements are “stored“ somewhere and then shown when run again (at the same code snippet shown above).
Can it have something to do with the logging? Will continue to test it on a different machine/environment.

can reproduce that in a docker container (still ubuntu 18.04) ... am I'm the only one experiencing that?


text:
Allow components to restrict themselfs to certain languages

A component should be able to specify that it can only handle certain languages (e.g. there is a Chinese tokenizer in the pipeline that wouldn't make much sense added to a pipeline trained on english sentences).
During pipeline validation it should be checked whether all components support the specified language.

implemented.


text:
[FR] Add more icon sets

Hi @RavenHogWarts, if you want to add more icon sets, not just the Lucide icon set, perhaps the IconicFonts repository would be helpful for your plugin. It has over 55,000 icons from 43 different sets, available as a single font or separate fonts per set.

Hi @RavenHogWarts, if you want to add more icon sets, not just the Lucide icon set, perhaps the IconicFonts repository would be helpful for your plugin. It has over 55,000 icons from 43 different sets, available as a single font or separate fonts per set.

Hi there! Thanks for the suggestion. The IconicFonts repository sounds like a great resource for expanding the icon options available in the plugin. I'll definitely consider integrating it to offer a broader variety of icons. Cheers!

authors: RavenHogWarts mdSlash

repo: RavenHogWarts/obsidian-custom-icons


text:
【Bug】运行每日任务脚本 报错

版本号：（请贴出你的版本号，请确认是否已通过升级到最新版来解决当前问题？）
qinglongV2.12.2
运行环境：（请贴出运行环境，比如是Actions或docker或本地？是Win还是Linux？）
树莓派4B docker运行qinglong容器
问题描述：（提issue前请先确认没有其他人已提过相同的议题，请清晰的描述所您所遇到的问题。）
启动每日任务，脚本报错

日志信息：（如果可以，请贴出Debug级别的日志信息，以便更高效的确定和解决问题。）
repo目录: /ql/data/repo
bili仓库目录: /ql/data/repo/raywangqvq_bilibilitoolpro
System.ComponentModel.Win32Exception (8): An error occurred trying to start process '/ql/data/repo/raywangqvq_bilibilitoolpro/src/Ray.BiliBiliTool.Console/bin/Debug/net6.0/Ray.BiliBiliTool.Console' with working directory '/ql/data/repo/raywangqvq_bilibilitoolpro'. Exec format error
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Microsoft.DotNet.Cli.Utils.Command.Execute(Action`1 processStarted)
at Microsoft.DotNet.Cli.Utils.Command.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
at Microsoft.DotNet.Tools.Run.RunCommand.Run(String[] args)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
执行结束... 2022-10-17 20:04:12 耗时 79 秒

https://user-images.githubusercontent.com/31154238/201953749-b46509de-c906-4cf8-94c5-af33048cd999.png
试试这个

authors: RayWangQvQ While-Shark

repo: RayWangQvQ/BiliBiliToolPro


text:
about the demo

Dear author, I encountered some problems while running the {demo](https://raymanng.github.io/3D-Wind-Field/demo/).

why the demo can't run?

I run the demo in vscode, the effect is as follows

I can not reproduce your problems on my computer

Probably you browser is still downloading the NetCDF file, please check your network speed of the connection to GitHub

Did you clone the latest code? Are you using your own data file?

maybe my network speed is too slow.
the code is latest and data file is 20180916_0000_000. Sometimes the effect is normal, but sometimes abnormal.

------------------ 原始邮件 ------------------
发件人:                                                                                "RaymanNg/3D-Wind-Field"                                                                                <notifications@github.com>;
发送时间: 2020年9月29日(星期二) 晚上8:52
收件人: "RaymanNg/3D-Wind-Field"<3D-Wind-Field@noreply.github.com>;
抄送: "Albert.Ejiestein"<1510342484@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [RaymanNg/3D-Wind-Field] about the demo (#43)
I can not reproduce your problems on my computer
Probably you browser is still downloading the NetCDF file, please check your network speed of the connection to GitHub
Did you clone the latest code? Are you using your own data file?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

What did you do before you got the abnormal result?

I didn’t do anything, it’s the abnormal effect when I started running, but it’ll be fine in a while. I feel very strange.
Another question, the globeLayer "WorldTerrain" is invalid, the demo can't load terrain.

What is your browser and GPU?
Now Cesium requires access token of Cesium ION to access the WorldTerrain data, you can register an account to acquire a token, and use it according to the document.

chrome and GPU is GTX 1050.
Access token is right, my code is as follows:

Cesium.Ion.defaultAccessToken = "xxx";

If you are sure that your access token is correct, then you may need to check your network connection to Cesium Ion

authors: AlbertEjiestein RaymanNg


text:
collection progression chart shows I lost cards. pic attached

not sure why this happened

It's ok, see explanation here:
https://www.reddit.com/r/MTGArenaPro/comments/aauuf0/tracking_mayhem/?utm_source=reddit-android

repo: Razviar/mtga-pro-tracker


text:
[BUG] Issues when using the tooltip with react-router-dom

Describe the bug
If I add a tooltip to an element within a NavLink (i.e. a link to another route within a React app) and I tap the element, I go to the linked route (as expected) but the tooltip then appears in the top left corner of the screen. Presumably in the top left as the element that triggered the tooltip is no longer on the page.
It'd probably be good if tooltips didn't show if the trigger element no longer exists on the page. Or if tooltips disappeared after navigating to a new page. Or if there was a manual way to instantly hide all tooltips, that we could implement ourselves after navigating to a new page. Or perhaps if there was an optional attribute to disable a tooltip on touch, if we know it's inside of a link.
Essentially I want the tooltip on hover on desktop, but on touch screens where hover doesn't exist, I simply want the NavLink to work without triggering the tooltip.
Thanks for any help.
Version of Package
v5.8.3
To Reproduce
Add tooltip attributes to a div or other element within a NavLink.
Expected behavior
I would expect the tooltip to simply not show if instantly navigating to a new route after tapping an element.
Smartphone (please complete the following information if possible or delete this section):

Device: iPhone 12
OS: iOS 16.3.1
Browser: Safari
Frameworks: react 18.2.0, react-router-dom 5.3.4

I would expect the tooltip to simply not show if instantly navigating to a new route after tapping an element.

We don't support that behavior natively, but you could achieve something like that by using the delayShow with a small value (100~150 ms), or by simply disabling the tooltip on mobile.

It'd probably be good if tooltips didn't show if the trigger element no longer exists on the page.

This should already be the case, it definitely looks like a bug. Do you mind setting up a CodeSandbox or a small sample project reproducing the problem? It would help a lot with debugging.

Thanks for the quick response!
Unfortunately adding a delay doesn't solve the issue, and disabling on mobile isn't ideal as tablets and laptops with input devices can also have touchscreens.
Here is a CodeSandbox that reliably creates the issue for me. Notably here it doesn't happen on the very first link tap, but it does on subsequent taps when toggling between the 2 routes a few times.
In fact I have noticed it happens here on desktop Chrome also, if you manage to click the link before the delay finishes (try extending the delay to replicate more)
https://codesandbox.io/s/react-tooltip-i388xj?file=/src/Home.js
Screenshot attached of the tooltip appearing in the top left of the screen.

Yep, definitely a bug. Thought it would be an easy fix, but it seems it will take some investigating.
For now, you can work around the issue by setting the key prop for the tooltip component to the location key, which will force a re-render when the location changes. You should also be able to remove the delayShow and have it work fine on mobile,
though the tooltip will still show if you touch and hold the link instead of simply clicking it. If this behavior is not desired, we can suggest some alternatives around it.
Personally it doesn't feel super hacky, so it should be fine.
import { Route, Switch, useLocation } from "react-router-dom";
import { Tooltip } from "react-tooltip";
import Home from "./Home";
import About from "./About";

import "./styles.css";
import "react-tooltip/dist/react-tooltip.css";

export default function App() {
  const location = useLocation();
  return (
    <>
      <Switch>
        <Route path="/" exact render={(props) => <Home />} />
        <Route path="/about" render={(props) => <About />} />
      </Switch>
      <Tooltip
        // set tooltip key
        key={location.key}
        id="primaryTooltip"
        place="top"
      />
    </>
  );
}

Thanks for the update, I can confirm that using key={location.key} does successfully work around the issue.

Finally got around to it. react-tooltip@5.10.5-beta.996.1 should fix this.
Soon we'll do an official release and using key={location.key} will no longer be necessary.

Fixed on the official release react-tooltip@5.10.5.

repo: ReactTooltip/react-tooltip


text:
is the Match render prop superfluous (v4)?

I think we can just pass a functional component as the Match component prop.
<Match pattern="..." render={props => <div />} />

// same effect
<Match pattern="..." component={props => <div />} />

Great question! There is a subtle difference.
When you use <Match component>, we call React.createElement for you. If you're using an inline function (that you define on each render) instead of an actual component, React thinks that we're using a different component each time. It would be as if we were doing this:
// first render
React.createElement(<A/>)

// second render
React.createElement(<B/>)

// and so on...

So React will actually go through the lifecycle on each render. In contrast, the render prop makes it a little more obvious that you're the one responsible for creating the elements, because it's just a function that we call at render time.
We could feasibly get rid of the component prop and just tell people who want to render a specific component to do render={() => <TheComponent/>}. But it's such a common use case that we give you your own prop for it.
Hope that helps!

authors: mjackson mking-clari

repo: ReactTraining/react-router


text:
Trailing slash + exactly

Hi there,
Apologies up front if this is the wrong place for this - wasn't quite sure what category this issue falls into so I figured I'd start here. Also, sorry if I've missed something obvious in my search for a solution or to see if this had already been answered elsewhere.
Basically, I'm starting a new project with version 4.0.0-alpha.5 and have just a few routes right now:
<Match exactly pattern="/" component={Dashboard} />
<Match exactly pattern="/users/:id" component={User} />
<Match exactly pattern="/login" component={LoginForm} />
<Miss component={NotFoundError} />

I'm using exactly pretty liberally because I want to be able to navigate to /users/lol and get the user lol's page, but I don't want to navigate to /users/lol/cats and get the user lol's page (rather, a 404), which is the behavior without exactly. So, this works well for my current use case.
However, I do want to be able to go to /users/lol/ with the trailing slash and have it show me the user lol's page. As it stands now, the only way I can get it to work is to add another <Match>:
<Match exactly pattern="/" component={Dashboard} />
<Match exactly pattern="/users/:id" component={User} />
<Match exactly pattern="/users/:id/" component={User} />
<Match exactly pattern="/login" component={LoginForm} />
<Miss component={NotFoundError} />

It could be that I'm just missing an obvious way to make this work, whether that be with some regex pattern or otherwise, but this is the only way I could get the behavior I'm looking for.
I have also downloaded the path-to-regexp package separately and been able to reproduce the behavior I want with this code:
const pathToRegexp = require('path-to-regexp');
const keys = []
const re = pathToRegexp('/users/:id', keys, { end: true, strict: false });

From what I can tell, the difference between this code and React Router v4 is the strict option being set to false.
Thanks in advance for any help or feedback!

Just want to chime in here quickly - I'm running into the same issue without including the 'exactly' directive. Further, the issue is compounded by the fact that if I go to /About -> it takes me my About component. If I go to /doesnotexist -> it takes me to the Miss component and my 404 page. BUT if I go to /About/ then it takes me to none of the above :/.

I second that this seems to be caused by the strict flag being sent to path-to-regexp. I cloned the repo and was experimenting with it. Setting strict to false breaks two of the unit tests, but on cursory glance, it seems to fix the problem.

For those looking for a work around for now, I'm using this:
const RemoveTrailingSlash = ({location}) => {
  const {pathname} = location;

  if (pathname.substr(-1) === '/') {
    return <Redirect to={pathname.substr(0, pathname.length - 1)} />;
  } else {
    return null;
  }
};

<Router>
  <Match pattern="/" render={RemoveTrailingSlash} />
  ...
</Router>

I work around by creating the route object twice, and change one of them with pattern empty string, then add both them into routes
# PositionListRoute
export default (store) => {
  return {
    exactly: true,
    pattern : '/',
    component: PositionListContainer
  }
}

This is returns the routes array
export const createRoutes = (store) => {
  const indexRoute = PositionListRoute(store)
  indexRoute.pattern = ''
  return {
    routes : [
      indexRoute,
      PositionListRoute(store)
    ]
  }
}

@pdhoopr Can you use <Match exactly pattern="/users/:id/?" component={User} /> (or, with the current v4 branch <Route exact path="/users/:id/?" component={User} />) to make the trailing slash optional?
I still need more practice with the path-to-regexp API, but seems like it could work.

@mjackson Thanks for the suggestion, just tried the following real quick:
<Match exactly pattern="/login/?" component={Login} />
This actually made it so the login component was never rendered; both /login and /login/ ended up hitting the <Miss /> component instead.

I had this problem also, it's a pity, but found a way to work arround it

Match _url_/season and _url_/season/

<Match pattern={`${pattern}/season(/)?`} exactly component={SeasonList} />

Match _url_/season/add, _url_/season/add/ and _url_/season/add/32

<Match pattern={`${pattern}/season/add(/)?:seasonId(\\d+)*`} exactly component={SeasonAdd} />

Match _url_/season/32

<Match pattern={`${pattern}/season/:seasonId(\\d+)`} exactly component={SeasonContainer} />

According to the path-to-regex docs, the way to match a trailing / is by setting the strict flag to false. So @mjackson I think the solution is in how you implement path-to-regex in react-router.
In the mean time, this works for me:
<Switch>
  <Route exact path="/:userid" component={UserProfile} />
  <Route exact path="/:userid/:postid" component={Post} />
  <Route render={({ history }) => (
    (history.location.pathname.slice(-1) === '/') ?
      <Redirect to={history.location.pathname.slice(0, -1)} /> :
      <PageNotFound />
  )} />
</Switch>

Seconded the above. strict:false seems to be the way to go. Seems to be the normal Express-like behavior from using their express route tester
Maybe there's a good reason to deviate from it, but optional trailing slash seems to be a very very common requirement, and should at a minimum be configurable, but I think it should be the default.

I'd be grateful if someone would make a PR that sets strict: false and see what breaks. I seem to recall having a specific reason for using strict: true, but can't put my finger on it right now... :/
In any case, seems like there's definitely something that needs to change here.

@mjackson It would probably make sense to add a strict prop to <Route> to let users control this.
<Route path='/foo/' strict={false} component={Foo} />

@mjackson I created a pull request that adds a strict boolean prop to Route (if the strict prop is omitted it defaults to true). See #4357
// this will match both /foo and /foo/
<Route exact path="/foo" strict={false} component={foo} />

Thanks, @rafrex! Let's follow up in #4357

If you got here looking to remove the trailing slash at the end of all URLs in React Router 4, this comment might help you:
https://github.com/ReactTraining/react-router/issues/4841#issuecomment-349096723

authors: Phoenixmatrix Skilgarriff dictions leite08 mjackson pdhoopr porfirioribeiro pshrmn rafrex rlovato shendepu


text:
react-router-redux Redirects no longer trigger an action to the reducer

Version
react-router-redux@5.0.0-alpha.7 & react-router-redux@5.0.0-alpha.8
Summary
Redirects in a route nolonger trigger an action to the reducer.
Steps to reproduce
My routes setup.
const Routes = ({store}) => (
  <CoreLayout>
    <Switch>
      <Route exact={true} path='/' render={Routes.homeRedirect} />
      <Route path='/photos/:folder*' component={PhotoView} />
    </Switch>
  </CoreLayout>
)

Routes.homeRedirect = () => (
  <Redirect to='/photos' />
)

Expected Behavior
In version alpha.6 both the initial page load and the redirect are sent to the reducer.
{
  type: '@@router/LOCATION_CHANGE',
  payload: {
    pathname: '/',
    search: '',
    hash: ''
  }
}

{
  type: '@@router/LOCATION_CHANGE',
  payload: {
    pathname: '/photos',
    search: '',
    hash: '',
    key: 'mswocw'
  }
}

Actual Behavior
With version alpha.7 and 8 the only initial page load is sent to the reducer
{
  type: '@@router/LOCATION_CHANGE',
  payload: {
    pathname: '/',
    search: '',
    hash: ''
  }
}

Other than build tooling updates and a relaxed React peer dep, nothing was changed between alpha.6 and alpha.8. Was anything changed in your app when upgrading?

I know I had a look look through the commits to see if I could pinpoint the
problem.
If I downgrade to alpha.6 then I get the expected result, upgrading results
in the problem surfacing again.
I'll try to put together an example tonight to reproduce the problem.
On 24 Oct. 2017 10:08 pm, "Tim Dorr" notifications@github.com wrote:
Other than build tooling updates and a relaxed React peer dep, nothing was
changed between alpha.6 and alpha.8. Was anything changed in your app when
upgrading?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ReactTraining/react-router/issues/5655#issuecomment-339002548,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC7AoQ70VR-ZKWEqlxtsvKMklZH0-OKtks5sve9egaJpZM4QEbav
.

Experiencing this issue as well.
Connected Router beings listening to history in componentDidMount and react-router Redirect performs the history push in componentDidMount as well. Because componentDidMount is called on children before the parent, there is a moment where a Redirect pushes a new history but the Connected Router is not yet listening to history.

I have the similiar problem.
In my case, action @@router/LOCATION_CHANGE triggered twice with different pathname in wrong order: first, with pathname that is equals to Redirect to property, and then with pathname that equals Redirect from property. So reducer receives wrong last location.
P.S. i using React 16 and alpha.8 version of react-router-redux. Maybe this problem caused by new React version?

Can confirm moving this.unsubscribeFromHistory = history.listen(this.handleLocationChange);  from ConnectedRouter componentDidMount to componentWillMount fixes this issue

Or moving  this.handleLocationChange(history.location); to componentDidMount

The same issue in 5.0.0-alpha.7 and 5.0.0-alpha.8.

@sturzynski Can't do that because of #5203, which solves an SSR memory leak. We have to keep listening in cDM.
@boba-keyost That seems like it might also be wrong, as we want to have the redux state ready for the component before it renders the rest of the tree. cWM lets us set this ahead of time, since we're near the top of the tree at this point.
I'm not sure what a good solution would be here. Can we get a repro together on codesandbox.io?

Maybe you need to check if loaction was changed between cWM and cDM and if so, trigger location change action.
It would make sense because location was changed.

@timdorr Issue is reproduced there https://codesandbox.io/s/kmyj73qrr7

@sturzynski why u use ConnectedSwitch? Default Switch works fine.
I have same trouble - Redirect changle path, but not trigger action => not rerender component. I solve it by wrap every component when i have routing to Route.
@NorfAlrin try to replace  to

A similar problem.
After it rolled back to 5.0.0-alpha.6 there is no problem

I have the same problem too. LOCATION_CHANGE action isn't triggered when using Redirect.
my version is 5.0.0-alpha.8.
Please any new fix or walk around?

joining in. upgrading to alpha.7 or 8 breaks my UI. downgrading back to 6 solves the issue.
without delving into what changed I can see that the location change dispatch happens too late compared to how it was in the previous version.

Plus one's aren't helpful, but me too. This is preventing our migration to react 16, since it's an invalid peer dependency.

Tried to downgrade from alpha 8 to 6, but the problem still exists, I never see the new LOCATION_CHANGE in middleware

Downgraded alpha8 to alpha6 and still exists same problem.
How can we detect redirect route in server side?

Downgrading to alpha.6 did fix the issue for me.
For those who it did not work for, just ensure you don't have your version set to still grab alpha.8, in your package.json, "react-router-redux": "5.0.0-alpha.6" instead of "react-router-redux": "^5.0.0-alpha.6" (not the ^)

I have also just come across this issue and downgrading to alpha.6 also worked for me.
As a workaround you could also add in a nasty hack to push the new route after a timeout:
componentDidMount () {
    setTimeout(() => {
      this.props.redirectToLogin()
    }, 200)
  }

I removed BrowserRouter from ConnectedRouter and dispatch works well again! Maybe it will helps somebody.

Alpha 9 is up. We'll get this right at some point...

yes that was problem with version

authors: EdwardSalter Iuriy-Budnikov NorfAlrin RyotaSugawara artalar boba-keyost codler eKazim elitenoire jpeyper maxbates sturzynski talhamuhammadashraf timdorr valentin93 yoavniran


text:
decouple start_with from observable

Decoupled start_with from observable, added tests.
Please review...
Thank you,
Grigoriy

It seems I bumped into the same problem with VC2013 again:
fatal error C1045: compiler limit : linkage specifications nested too deeply
Will need some time to figure it out...

slightly changed the implementation, hope it fixes msvc2013.
The error fatal error C1045: compiler limit : linkage specifications nested too deeply is quite painful.. :disappointed:

Yes, I know. When I rewrite rxcpp I will use at least c++14 and vs2013 will not be supported!

Thank you!
Perhaps I should poll on twitter for vs2013 usage?

Perhaps I should poll on twitter for vs2013 usage?

Guess, there is no need if the next major version won't use it anyway...
There might be some issues with vs2013 in v2, but I don't think they will be the show-stoppers..
I've seen the v3 in your repo. What stops making it the next major version? Or is that thing is a pure experiment?

Some parts of v3 need another pass (context and scheduler) the rest I am pretty happy with.
I think that the observable decoupling will be the last big transform in the v2 code. Hopefully v3 can be polished up and put into the official repo as the eventual replacement during this year.

authors: gchudnov kirkshoop

repo: Reactive-Extensions/RxCpp


text:
Further AppKit additions

This PR further fleshes out Bond's AppKit support by adding drastically improved support for NSButton.
If the changes in this PR are appropriate, I'd be happy to walk through and flesh out the other classes, as well as adding anything that I think is important.
Should I be using DynamicSubject this much? I don't want to over complicate your library.

Current coverage is 68.46% (diff: 100%)

Merging #358 into master will not change coverage

@@             master       #358   diff @@
==========================================
  Files            49         49
  Lines          2267       2267
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1552       1552
  Misses          715        715
  Partials          0          0

Powered by Codecov. Last update 1733659...ee9a2b6

Is AppKit KVO compatible? :)
What's the reason behind having all these as DynamicSubjects instead of Bonds?

Most all of AppKit is, yes (unlike UIKit). I made these DynamicSubjects because Bonds are set-only, aren't they?

Following our conversation on Gitter, I've changed all of the DynamicSubjects into Bonds, and exposed willChangeSelection/didChangeSelection on NSTableView.
I get it now 🙄 😀

This looks great - merging :)

authors: codecov-io srdanrasic tonyarnold

repo: ReactiveKit/Bond


text:
TypeScript complains about DOM types when compiling for Node

rxjs version: ^5.0.0-beta.12
typescript version: 2.0.2
I have such errors:
node_modules/rxjs/observable/FromEventObservable.d.ts(11,39): error TS2304: Cannot find name 'EventTarget'.
node_modules/rxjs/observable/FromEventObservable.d.ts(11,104): error TS2304: Cannot find name 'NodeList'.
node_modules/rxjs/observable/FromEventObservable.d.ts(11,115): error TS2304: Cannot find name 'HTMLCollection'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(16,23): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(75,59): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(80,13): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(95,20): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(96,10): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(106,32): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(106,44): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(117,10): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(122,39): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(130,22): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(10,29): error TS2304: Cannot find name 'MessageEvent'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(11,33): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(12,34): error TS2304: Cannot find name 'CloseEvent'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(15,63): error TS2304: Cannot find name 'WebSocket'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(26,13): error TS2304: Cannot find name 'WebSocket'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(27,32): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(28,33): error TS2304: Cannot find name 'CloseEvent'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(31,63): error TS2304: Cannot find name 'WebSocket'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(34,23): error TS2304: Cannot find name 'MessageEvent'.

Why do I have this error? Because I haven't added "dom" to the "lib" section of the "compilerOptions". Why I haven't added it? Because I don't need dom, Im using rxjs in the backend, I don't need browser stuff.

This issue should note this is a TypeScript compilation error, and not an actual bug with the JavaScript.

Actually no. DOM doesn't exist in Node, so the referenced types don't exist either. But the supplied RxJS artifacts refer to dom types that don't exist on Node.
RxJS should provide two libs, one with dom dependencies and one without. My own solution has to been rip references to Ajax/Event/Element out of the supplied Rx.d.ts and Rx.js and check these into version control.
But its a pain.

This is because until TypeScript 2.0 the dom definitions were included regardless of the actual runtime environment.  Now that the standard library can slimmed down, this is why we're seeing this issue today.
It may be make sense to reinvestigate an rx-dom or similar library when we move over to TS2.0, but we have not yet moved over to TS 2.0, so the easiest way to interop is either...

include the dom types
create a local set of interfaces that match the interfaces being requested.

@david-driscoll is there a resolution for this issue?

NOTE: This does add fuel to the fire for moving the DOM stuff to a different package.

One solution may be as @david-driscoll said include dom types within rxjs. It seems already to be a commonly used practice, for example in sinon and node definitions

Nobody need to use browser-specific functions in non-browser environments. For those who used it accidentally probably need to add platform-support check and throw exception in the case of it (using document or something else?)

@blesh

We could exclude the dom types, and instead create our own that mirror those.
This limits our ability to expand on the types such as offering string typing based on the event string, such as mapping mouseover -> MouseEvent automatically.

We could exclude the dom types from the default export Rx.ts and instead create another dom.ts, which then exports the defaults from Rx.   This is very similar to what we had before with Rx.Dom.ts.  This would allow a user that needs the dom methods to do import * as Rx from 'rxjs/dom' / require('rxjs/dom').

Create a separate rxjs-dom package which is basically like #2 except an explict new dependency.

I'm thinking #2 is a good compromise for the time being.

any solution to the issue as I am also having the problem of:
C:\msweb\studioDashboard\node_modules\rxjs\observable\dom\AjaxObservable.d.ts
Error:(1, 1) TS2688:Cannot find type definition file for 'chai'.
Error:(15, 26) TS2304:Cannot find name 'Subscriber'.
Error:(19, 43) TS2304:Cannot find name 'Observable'.
Error:(20, 41) TS2304:Cannot find name 'Observable'.
Error:(21, 54) TS2304:Cannot find name 'Observable'.
Error:(22, 53) TS2304:Cannot find name 'Observable'.
...

solved it by upg to rxjs 5.0 rc

Upgrading to 5.0.1 did not fix this for me. Unless I am missing something.

Please everyone who found this issue, report which version of TypeScript you are using.

2.1.4

2.1.1

tsc 2.1.4, rxjs 5.0.1
node_modules/rxjs/observable/FromEventObservable.d.ts(11,39): error TS2304: Cannot find name 'EventTarget'.
node_modules/rxjs/observable/FromEventObservable.d.ts(11,104): error TS2304: Cannot find name 'NodeList'.
node_modules/rxjs/observable/FromEventObservable.d.ts(11,115): error TS2304: Cannot find name 'HTMLCollection'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(16,23): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(75,59): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(80,13): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(95,20): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(96,10): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(106,32): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(106,44): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(117,10): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(122,39): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/AjaxObservable.d.ts(130,22): error TS2304: Cannot find name 'XMLHttpRequest'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(10,29): error TS2304: Cannot find name 'MessageEvent'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(11,33): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(12,34): error TS2304: Cannot find name 'CloseEvent'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(15,63): error TS2304: Cannot find name 'WebSocket'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(26,13): error TS2304: Cannot find name 'WebSocket'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(27,32): error TS2304: Cannot find name 'Event'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(28,33): error TS2304: Cannot find name 'CloseEvent'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(31,63): error TS2304: Cannot find name 'WebSocket'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(34,23): error TS2304: Cannot find name 'MessageEvent'.

workaround
add --lib dom to command line args or {"compilerOptions": {"lib": ["dom"]}} to tsconfig.json project file.
ideal solution
I'd like to be able to npm install a package of rxjs which does not use any DOM types so I don't need to include the dom lib in my typescript flags.
Thanks!

@jsdnxx
This this work around doesn't work in a web worker environment. The lib for dom and worker conflict.
I know the OP stated Node, but it's an issue with web workers.

typescript@2.2.1
rxjs@5.2.0
Still seeing the same issue.

@david-driscoll
Something approaching #2ish would be nice to have. It's very unfortunate that I have to put on the 'dom' lib and confuse the hell out of my developers if I want to use RxJS.
I would like to see a patch approach, similar to how we can patch lite.
import * as Rx from 'rxjs' // Gets me me lite.
import 'rxjs/add/dom' // Patch lite with dom stuff.
Or:
import * as Rx from 'rxjs/Rx'  // Gets me everything that's platform agnostic
import 'rxjs/Rx/add/dom'  //  Patch on things that work in the browser alone.
I like this approach because it already goes with the flow of RxJS deployment. We are used to patching stuff. Another advantage is that it's extensible. If RxJS wants to add node-only functionality you can make another patch for it. Another advantage is that it's granular. Maybe I don't want all the dom stuff. Maybe there are logically smaller units of dom stuff and I just want need one of them.

cc @benlesh @kwonoj @staltz we should probably discuss this at the next meeting.

Has there been any update on this?
I'm still having this issue.
rxjs@5.4.0
typescript@2.3.2

Experiencing the same issues as @warnersean.
For now @jsdnxx 's workaround works, but as everyone said, splitting the typings would be the best solution.

I just had a nasty bug while I referenced the dom types to fix the compilation and ridiculously enough there's a constant called 'name' in there. Meaning if you type name as a function parameter, the compiler will swallow it and there will be a runtime error. So the workaround is a time bomb.

So what I did is to create a file dom.workaround.d.ts in the project root with following content:
/**
 * These are fake dom type definitions that rxjs depends on
 */
interface EventTarget { }
interface NodeList { }
interface HTMLCollection { }
interface XMLHttpRequest { }
interface Event { }
interface MessageEvent { }
interface CloseEvent { }
interface WebSocket { }

My workaround was to set skipLibCheck to true in compilerOptions. Is there a good reason for me not to do that?

skipLibCheck required with --strictFunctionTypes see https://github.com/ReactiveX/rxjs/issues/3031

I still face this issue. any work arounds?

I tried this with v6 and compiler (tsc3) so far only complains if actually try to import some of dom-related (ajax mostly), which is expected. Does anyone still experiences this compilation error

did not import any ajax related
compiler still complains dom type is not provided?

Can confirm, 6.3.2 is clean from this.

Thanks, let me close this issue. If anyone still experiences with lib type issues

did not import any ajax related
compiler still complains dom type is not provided

please feel freely create new issue with some repro steps.

authors: DanielJoyce YLivay blesh born2net caffeinelogic david-driscoll dooreelko durilka ebeloded jsdnxx kwonoj masonk pleerock prolink007 shura-v soncodi staltz stephanos subramn warnersean

repo: ReactiveX/rxjs


text:
You must provide a root Epic to createEpicMiddleware

Bug Report
Current Behavior
Error: Property 'run' does not exist on type 'EpicMiddleware<Action<any>, {}, any, Action<any>>'
OR
Error: You must provide a root Epic to createEpicMiddleware
Reproduction
const epicMiddleware = createEpicMiddleware({
    dependencies: { ... }
});

let middleware: Middleware[] = [];
middleware.push(epicMiddleware);
...

export const configureStore = (initialState: object): Store<IStore> => {
    const store = createStore(
        rootReducer,
        initialState,
        applyMiddleware(...middleware)
    );

    epicMiddleware.run(rootEpic);

    return store;
};

This is the error I am getting,
Property 'run' does not exist on type 'EpicMiddleware<Action<any>, {}, any, Action<any>>'.
When I change the type of epicMiddleware to any, then it throws a runtime error, You must provide a root Epic to createEpicMiddleware
P.S. I am using the latest version of redux-observable (1.0.0)

I believe this should be reported in redux-observable, as those interfaces are provided by redux-observable, not rxjs.

Yes, sorry I had few tabs open, and I thought I was in redux-observable.

authors: kwonoj temurih