Commit graph

5554 commits

Author SHA1 Message Date
Damien Elmes
9f3659a1d3 use QtMultimedia for recording instead of PyAudio
The unmute-on-first-duration-change approach is to try to prevent
clicks/pops that can happen at the start of recordings. If it doesn't
solve the problem, we may need to drop down to the lower-level
QAudioInput().

Closes https://github.com/ankitects/help-wanted/issues/23

May fix https://forums.ankiweb.net/t/anki-crashes-periodically-after-clicking-record-audio-button/5824,
which I suspect was caused by processEvents()
2020-12-16 19:33:25 +10:00
Damien Elmes
9d1362d69e fix deprecation error on startup on Windows 2020-12-16 15:56:10 +10:00
Damien Elmes
6f5f0787d2 Merge pull request #850 from cecini/warn
fix float to int conversion DeprecationWarning
2020-12-16 15:40:35 +10:00
Damien Elmes
42f583f8a1 fix some warnings on startup 2020-12-16 15:38:24 +10:00
Damien Elmes
f37fcf950d ignore pickle.dumps() warning 2020-12-16 15:38:11 +10:00
Damien Elmes
5f424d1283 bump pickle proto to v4; change column type to blob 2020-12-16 15:38:07 +10:00
Damien Elmes
42eb607d07 mention requirements.txt in editing docs 2020-12-16 15:38:02 +10:00
Damien Elmes
fc6f7d45f5 enable Python warnings when running 2020-12-16 14:59:04 +10:00
Damien Elmes
3778d343b1 don't catch DeprecationWarnings in the GUI 2020-12-16 14:25:11 +10:00
Damien Elmes
2f4ebe11e5 add some code editing/completion docs 2020-12-16 14:16:08 +10:00
Damien Elmes
15c41b008c fix path to anki lib in ts/ when editing 2020-12-16 14:15:49 +10:00
Damien Elmes
d75ef92a01 Merge pull request #851 from hgiesel/cardtypeprobs
Remove unicode isolation from card type names
2020-12-16 13:37:44 +10:00
Damien Elmes
32a71c5418 remove conditional rsbackend_gen import
It causes PyCharm to think methods are missing on col.backend, and
should not be needed with the move to Bazel.
2020-12-16 13:30:54 +10:00
Damien Elmes
c28885d191 add type stub for _rsbridge to make PyCharm happy 2020-12-16 13:13:42 +10:00
Henrik Giesel
eb1ddefa42 Remove unicode isolation from card type names 2020-12-16 03:09:33 +01:00
Damien Elmes
985124f470 add missing '-' to section marker 2020-12-16 12:02:49 +10:00
Damien Elmes
9563d0d2a1 remove set -x from Buildkite scripts 2020-12-16 12:01:21 +10:00
Damien Elmes
724b6cd1c8 add section markers to Buildkite 2020-12-16 11:59:07 +10:00
Damien Elmes
5c93898e32 symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
Damien Elmes
94ff0f53b1 fix reposition not being applied in browser sort order
https://forums.ankiweb.net/t/reposition-function-not-working/5817

Also changed id->cid in the non-sorting case, as otherwise when
using all_searched_cards() on a sorted list, the results will be wrong.
2020-12-16 10:58:46 +10:00
Damien Elmes
75a97d75ee add ability to specify an individual Python test 2020-12-16 10:40:29 +10:00
cecini
8be949e0d5 fix float to int conversion DeprecationWarning 2020-12-15 13:10:12 +00:00
Damien Elmes
0f497045c0 tweak graphs search error msg 2020-12-15 20:40:58 +10:00
Damien Elmes
4404324ac0 update to latest cargo-raze 2020-12-15 20:28:10 +10:00
Damien Elmes
7ebedb26c9 Merge pull request #848 from cecini/rslibdep
Update Rust deps, and nom to v6
2020-12-15 20:04:02 +10:00
Damien Elmes
7b3bd8c75c Merge pull request #847 from cecini/pb
Update protobuf repo to 3.14.0
2020-12-15 20:00:34 +10:00
Damien Elmes
6ac9865d7a Merge pull request #849 from cecini/updatepy
fix update.py for compatible
2020-12-15 20:00:07 +10:00
Damien Elmes
56cad4c73f Merge pull request #846 from abdnh/dupe-decode-entities
Fix duplicate check not decoding entities
2020-12-15 19:58:13 +10:00
cecini
77a94c8a45 Update rslib dep nom 2020-12-15 08:19:52 +00:00
cecini
f8a4b2ea84 fix update.py for compatible 2020-12-15 08:09:11 +00:00
cecini
4cdd058d9d Update protobuf repo to 3.14.0
update
2020-12-15 07:18:11 +00:00
abdo
45d07275e5 Fix duplicate check not decoding entities
This is a regression introduced in 35bfd20240

See https://forums.ankiweb.net/t/bug-duplicates-not-detecting-on-paste/5753
2020-12-14 15:13:00 +03:00
Damien Elmes
3973266596 plural rules and decimal separator should use bundle's language
Instead of providing the list of languages in preferred order, when
creating a bundle we need to specify the bundle language as the first
language, so that the correct plural rules are used. Fluent's docs
are misleading here; I will submit a PR to fix them.

The old behaviour caused:
https://forums.ankiweb.net/t/bug-in-review-intervals-for-some-languages-in-number-of-cards/5744
2020-12-14 14:23:49 +10:00
Damien Elmes
5ab1b06ddb avoid distributing BUILD.bazel in js/vendor 2020-12-12 10:35:01 +10:00
Damien Elmes
5eca1d3308 disable worker when building wheels
Will override a user.bazelrc setting, except if it's specified
for a specific OS (eg build:windows)
2020-12-12 10:27:18 +10:00
Damien Elmes
f7b87bb716 minor doc updates 2020-12-11 22:37:12 +10:00
Damien Elmes
11ac38d27b document worker and disable it by default 2020-12-11 21:04:06 +10:00
Damien Elmes
471682df89 mention clang 2020-12-11 20:56:08 +10:00
Damien Elmes
7a95d7e189 remove unwanted leading '/' in wheel records 2020-12-10 23:02:18 +10:00
Damien Elmes
880a9d2241 remove obsolete docker instructions 2020-12-10 20:34:48 +10:00
Damien Elmes
558d12849d add note about ccache
https://forums.ankiweb.net/t/building-with-ccache/5677
2020-12-10 20:28:33 +10:00
Damien Elmes
51635ff7e4 simplify wheel building 2020-12-10 20:27:21 +10:00
Damien Elmes
65bc8046c8 tidy up .gitignore 2020-12-10 20:26:41 +10:00
Damien Elmes
256146703a set the minimum ease to 131% for now
https://forums.ankiweb.net/t/force-sync-triggers-2-1-34-ease-fixup-behaviour/5632/
2020-12-10 15:46:22 +10:00
Damien Elmes
45b5b7cc3a update rules_rust + persistent_worker 2020-12-10 15:35:37 +10:00
Damien Elmes
9d3b876429 add disk and repo cache to Linux CI 2020-12-10 08:49:37 +10:00
Damien Elmes
1b1f77ee99 Merge pull request #845 from hgiesel/answerfix
Switch back to fadeTo rather than fadeIn/fadeOut
2020-12-10 00:06:17 +10:00
Henrik Giesel
6fb80a78bf Switch back to fadeTo rather than fadeIn/fadeOut 2020-12-09 14:19:45 +01:00
Damien Elmes
ae742417a1 fix filtered decks not honoring sort order
https://forums.ankiweb.net/t/2-1-36-filtered-decks-bug/5649/
2020-12-09 22:50:49 +10:00
Damien Elmes
ef3f9dd306 move author check to top; add hint about GitHub UI 2020-12-09 21:15:38 +10:00