Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bd2ee3

Browse files
authored
Release candidate (microsoft#17159)
* Update version * Update change logs * Update TPN
1 parent bee8d3b commit 6bd2ee3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+265
-387
lines changed

CHANGELOG.md

+223
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,228 @@
11
# Changelog
22

3+
## 2021.9.0-rc (30 August 2021)
4+
5+
### Enhancements
6+
7+
1. Added commands to select and run a set of tests.
8+
([#3652](https://github.com/Microsoft/vscode-python/issues/3652))
9+
1. Fix for tests should be re-discovered after switching environment.
10+
([#5347](https://github.com/Microsoft/vscode-python/issues/5347))
11+
1. Remove the testing functionality from the status bar.
12+
([#8405](https://github.com/Microsoft/vscode-python/issues/8405))
13+
1. Automatically detect new test file in test explorer.
14+
([#8675](https://github.com/Microsoft/vscode-python/issues/8675))
15+
1. Search test names in test explorer.
16+
([#8836](https://github.com/Microsoft/vscode-python/issues/8836))
17+
1. Added a command for displaying the test explorer.
18+
([#9026](https://github.com/Microsoft/vscode-python/issues/9026))
19+
1. Make "run all tests" icon gray instead of green.
20+
([#9402](https://github.com/Microsoft/vscode-python/issues/9402))
21+
1. Use VS Code's test UI instead of code lenses above tests.
22+
([#10898](https://github.com/Microsoft/vscode-python/issues/10898))
23+
1. Added command to run last executed test.
24+
([#11864](https://github.com/Microsoft/vscode-python/issues/11864))
25+
1. Fix for PyTest discovery can fail but not give any clue as to what the problem is.
26+
([#12043](https://github.com/Microsoft/vscode-python/issues/12043))
27+
1. Add shortcut to run the current test (at cursor position).
28+
([#12218](https://github.com/Microsoft/vscode-python/issues/12218))
29+
1. Run all tests in a multi-root workspace without prompting.
30+
([#13147](https://github.com/Microsoft/vscode-python/issues/13147))
31+
1. Plug into VS Code's Test UI.
32+
([#15750](https://github.com/Microsoft/vscode-python/issues/15750))
33+
1. Show notification to join insiders after 5 mins.
34+
([#16833](https://github.com/Microsoft/vscode-python/issues/16833))
35+
1. Update Simplified Chinese translation. (thanks [FiftysixTimes7](https://github.com/FiftysixTimes7))
36+
([#16916](https://github.com/Microsoft/vscode-python/issues/16916))
37+
1. Added Debug file button to editor run menu.
38+
([#16924](https://github.com/Microsoft/vscode-python/issues/16924))
39+
1. Cache last selection for debug configuration when debugging without launch.json.
40+
([#16934](https://github.com/Microsoft/vscode-python/issues/16934))
41+
1. Improve display of default interpreter and suggested interpreter in the interpreter selection quick pick.
42+
([#16971](https://github.com/Microsoft/vscode-python/issues/16971))
43+
1. Improve discovery component API.
44+
([#17005](https://github.com/Microsoft/vscode-python/issues/17005))
45+
1. Add a notification about Python 2.7 support, displayed whenever a tool is used or whenever debugging is started.
46+
([#17009](https://github.com/Microsoft/vscode-python/issues/17009))
47+
1. Add caching debug configuration behind experiment.
48+
([#17025](https://github.com/Microsoft/vscode-python/issues/17025))
49+
1. Do not query to get all interpreters where it's not needed in the extension code.
50+
([#17030](https://github.com/Microsoft/vscode-python/issues/17030))
51+
1. Add a warning prompt for the Microsoft Python Language Server deprecation.
52+
([#17056](https://github.com/Microsoft/vscode-python/issues/17056))
53+
1. Update to latest jedi-language-server.
54+
([#17072](https://github.com/Microsoft/vscode-python/issues/17072))
55+
56+
### Fixes
57+
58+
1. Fix for test code lenses do not disappear even after disabling the unit tests.
59+
([#1654](https://github.com/Microsoft/vscode-python/issues/1654))
60+
1. Fix for code lens for a test class run under unittest doesn't show overall results for methods.
61+
([#2382](https://github.com/Microsoft/vscode-python/issues/2382))
62+
1. Fix for test code lens do not appear on initial activation of testing support.
63+
([#2644](https://github.com/Microsoft/vscode-python/issues/2644))
64+
1. Fix for "No tests ran, please check the configuration settings for the tests".
65+
([#2660](https://github.com/Microsoft/vscode-python/issues/2660))
66+
1. Fix for code lenses disappear on save, then re-appear when tabbing on/off the file.
67+
([#2790](https://github.com/Microsoft/vscode-python/issues/2790))
68+
1. Fix for code lenses for tests not showing up when test is defined on line 1.
69+
([#3062](https://github.com/Microsoft/vscode-python/issues/3062))
70+
1. Fix for command 'python.runtests' not found.
71+
([#3591](https://github.com/Microsoft/vscode-python/issues/3591))
72+
1. Fix for navigation to code doesn't work with parameterized tests.
73+
([#4469](https://github.com/Microsoft/vscode-python/issues/4469))
74+
1. Fix for tests are not being discovered at first in multiroot workspace.
75+
([#4848](https://github.com/Microsoft/vscode-python/issues/4848))
76+
1. Fix for tests not found after upgrade.
77+
([#5417](https://github.com/Microsoft/vscode-python/issues/5417))
78+
1. Fix for failed icon of the first failed test doesn't changed to running icon when using unittest framework.
79+
([#5791](https://github.com/Microsoft/vscode-python/issues/5791))
80+
1. Fix for failure details in unittest discovery are not always logged.
81+
([#5889](https://github.com/Microsoft/vscode-python/issues/5889))
82+
1. Fix for test results not updated if test is run via codelens.
83+
([#6787](https://github.com/Microsoft/vscode-python/issues/6787))
84+
1. Fix for "Run Current Test File" is not running tests, just discovering them.
85+
([#7150](https://github.com/Microsoft/vscode-python/issues/7150))
86+
1. Fix for testing code lenses don't show for remote sessions to a directory symlink.
87+
([#7443](https://github.com/Microsoft/vscode-python/issues/7443))
88+
1. Fix for discover test per folder icon is missing in multi-root workspace after upgrade.
89+
([#7870](https://github.com/Microsoft/vscode-python/issues/7870))
90+
1. Fix for clicking on a test in the Test Explorer does not navigate to the correct test.
91+
([#8448](https://github.com/Microsoft/vscode-python/issues/8448))
92+
1. Fix for if multiple tests have the same name, only one is run.
93+
([#8761](https://github.com/Microsoft/vscode-python/issues/8761))
94+
1. Fix for test failure is reported as a compile error.
95+
([#9640](https://github.com/Microsoft/vscode-python/issues/9640))
96+
1. Fix for discovering tests immediately after interpreter change often fails.
97+
([#9854](https://github.com/Microsoft/vscode-python/issues/9854))
98+
1. Fix for unittest module invoking wrong TestCase.
99+
([#10972](https://github.com/Microsoft/vscode-python/issues/10972))
100+
1. Fix for unable to navigate to test function.
101+
([#11866](https://github.com/Microsoft/vscode-python/issues/11866))
102+
1. Fix for running test fails trying to access non-existing file.
103+
([#12403](https://github.com/Microsoft/vscode-python/issues/12403))
104+
1. Fix for code lenses don't work after opening files from different projects in workspace.
105+
([#12995](https://github.com/Microsoft/vscode-python/issues/12995))
106+
1. Fix for the pytest icons keep spinning when run Test Method.
107+
([#13285](https://github.com/Microsoft/vscode-python/issues/13285))
108+
1. Test for any functionality related to testing doesn't work if language server is set to none.
109+
([#13713](https://github.com/Microsoft/vscode-python/issues/13713))
110+
1. Fix for cannot configure PyTest from UI.
111+
([#13916](https://github.com/Microsoft/vscode-python/issues/13916))
112+
1. Fix for test icons not updating when using pytest.
113+
([#15260](https://github.com/Microsoft/vscode-python/issues/15260))
114+
1. Fix for debugging tests is returning errors due to "unsupported status".
115+
([#15736](https://github.com/Microsoft/vscode-python/issues/15736))
116+
1. Removes `"request": "test"` as a config option. This can now be done with `"purpose": ["debug-test"]`.
117+
([#15790](https://github.com/Microsoft/vscode-python/issues/15790))
118+
1. Fix for "There was an error in running the tests" when stopping debugger.
119+
([#16475](https://github.com/Microsoft/vscode-python/issues/16475))
120+
1. Use the vscode API appropriately to find out what terminal is being used.
121+
([#16577](https://github.com/Microsoft/vscode-python/issues/16577))
122+
1. Fix unittest discovery. (thanks [JulianEdwards](https://github.com/bigjools))
123+
([#16593](https://github.com/Microsoft/vscode-python/issues/16593))
124+
1. Fix run `installPythonLibs` error in windows.
125+
([#16844](https://github.com/Microsoft/vscode-python/issues/16844))
126+
1. Fix for test welcome screen flashes on refresh.
127+
([#16855](https://github.com/Microsoft/vscode-python/issues/16855))
128+
1. Show re-run failed test button only when there are failed tests.
129+
([#16856](https://github.com/Microsoft/vscode-python/issues/16856))
130+
1. Triggering test refresh shows progress indicator.
131+
([#16891](https://github.com/Microsoft/vscode-python/issues/16891))
132+
1. Fix environment sorting for the `Python: Select Interpreter` command.
133+
(thanks [Marc Mueller](https://github.com/cdce8p))
134+
([#16893](https://github.com/Microsoft/vscode-python/issues/16893))
135+
1. Fix for unittest not getting discovered in all cases.
136+
([#16902](https://github.com/Microsoft/vscode-python/issues/16902))
137+
1. Don't show full path in the description for each test node.
138+
([#16927](https://github.com/Microsoft/vscode-python/issues/16927))
139+
1. Fix for no notification shown if test framework is not configured and run all tests is called.
140+
([#16941](https://github.com/Microsoft/vscode-python/issues/16941))
141+
1. In experiments service don't always `await` on `initialfetch` which can be slow depending on the network.
142+
([#16959](https://github.com/Microsoft/vscode-python/issues/16959))
143+
1. Ensure 2.7 unittest still work with new test support.
144+
([#16962](https://github.com/Microsoft/vscode-python/issues/16962))
145+
1. Fix issue with parsing test run ids for reporting test status.
146+
([#16963](https://github.com/Microsoft/vscode-python/issues/16963))
147+
1. Fix cell magics, line magics, and shell escaping in jupyter notebooks to not show error diagnostics.
148+
([#17058](https://github.com/Microsoft/vscode-python/issues/17058))
149+
1. Fix for testing ui update issue when `pytest` parameter has '/'.
150+
([#17079](https://github.com/Microsoft/vscode-python/issues/17079))
151+
152+
### Code Health
153+
154+
1. Remove nose test support.
155+
([#16371](https://github.com/Microsoft/vscode-python/issues/16371))
156+
1. Remove custom start page experience in favor of VSCode's built-in walkthrough support.
157+
([#16453](https://github.com/Microsoft/vscode-python/issues/16453))
158+
1. Run auto-selection only once, and return the cached value for subsequent calls.
159+
([#16735](https://github.com/Microsoft/vscode-python/issues/16735))
160+
1. Add telemetry for when an interpreter gets auto-selected.
161+
([#16764](https://github.com/Microsoft/vscode-python/issues/16764))
162+
1. Remove pre-existing environment sorting algorithm and old rule-based auto-selection logic.
163+
([#16935](https://github.com/Microsoft/vscode-python/issues/16935))
164+
1. Add API to run code after extension activation.
165+
([#16983](https://github.com/Microsoft/vscode-python/issues/16983))
166+
1. Add telemetry sending time it took to load data from experiment service.
167+
([#17011](https://github.com/Microsoft/vscode-python/issues/17011))
168+
1. Improve reliability of virtual env tests and disable poetry watcher tests.
169+
([#17088](https://github.com/Microsoft/vscode-python/issues/17088))
170+
171+
### Thanks
172+
173+
Thanks to the following projects which we fully rely on to provide some of
174+
our features:
175+
176+
- [debugpy](https://pypi.org/project/debugpy/)
177+
- [isort](https://pypi.org/project/isort/)
178+
- [jedi](https://pypi.org/project/jedi/)
179+
and [parso](https://pypi.org/project/parso/)
180+
- [jedi-language-server](https://pypi.org/project/jedi-language-server/)
181+
- [Microsoft Python Language Server](https://github.com/microsoft/python-language-server)
182+
- [Pylance](https://github.com/microsoft/pylance-release)
183+
- [exuberant ctags](http://ctags.sourceforge.net/) (user-installed)
184+
- [rope](https://pypi.org/project/rope/) (user-installed)
185+
186+
Also thanks to the various projects we provide integrations with which help
187+
make this extension useful:
188+
189+
- Debugging support:
190+
[Django](https://pypi.org/project/Django/),
191+
[Flask](https://pypi.org/project/Flask/),
192+
[gevent](https://pypi.org/project/gevent/),
193+
[Jinja](https://pypi.org/project/Jinja/),
194+
[Pyramid](https://pypi.org/project/pyramid/),
195+
[PySpark](https://pypi.org/project/pyspark/),
196+
[Scrapy](https://pypi.org/project/Scrapy/),
197+
[Watson](https://pypi.org/project/Watson/)
198+
- Formatting:
199+
[autopep8](https://pypi.org/project/autopep8/),
200+
[black](https://pypi.org/project/black/),
201+
[yapf](https://pypi.org/project/yapf/)
202+
- Interpreter support:
203+
[conda](https://conda.io/),
204+
[direnv](https://direnv.net/),
205+
[pipenv](https://pypi.org/project/pipenv/),
206+
[poetry](https://pypi.org/project/poetry/),
207+
[pyenv](https://github.com/pyenv/pyenv),
208+
[venv](https://docs.python.org/3/library/venv.html#module-venv),
209+
[virtualenv](https://pypi.org/project/virtualenv/)
210+
- Linting:
211+
[bandit](https://pypi.org/project/bandit/),
212+
[flake8](https://pypi.org/project/flake8/),
213+
[mypy](https://pypi.org/project/mypy/),
214+
[prospector](https://pypi.org/project/prospector/),
215+
[pylint](https://pypi.org/project/pylint/),
216+
[pydocstyle](https://pypi.org/project/pydocstyle/),
217+
[pylama](https://pypi.org/project/pylama/)
218+
- Testing:
219+
[pytest](https://pypi.org/project/pytest/),
220+
[unittest](https://docs.python.org/3/library/unittest.html#module-unittest)
221+
222+
And finally thanks to the [Python](https://www.python.org/) development team and
223+
community for creating a fantastic programming language and community to be a
224+
part of!
225+
3226
## 2021.8.3 (23 August 2021)
4227

5228
### Fixes

0 commit comments

Comments
 (0)