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

Skip to content

2018.6.0 final release #2020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 2018.6.0-beta 11 June 2018)
## 2018.6.0 (20 June 2018)

### Thanks

Expand Down Expand Up @@ -53,17 +53,39 @@ part of!

### Enhancements

1. Add setting for auto run test discovery on save, `python.unitTest.autoTestDiscoverOnSaveEnabled`.
1. Add setting to control automatic test discovery on save, `python.unitTest.autoTestDiscoverOnSaveEnabled`.
(thanks [Lingyu Li](http://github.com/lingyv-li/))
([#1037](https://github.com/Microsoft/vscode-python/issues/1037))
1. Add `gevent` launch configuration option to enable debugging of gevent monkey patched code.
(thanks [Bence Nagy](https://github.com/underyx))
([#127](https://github.com/Microsoft/vscode-python/issues/127))
1. Add support for the `"source.organizeImports"` setting for `"editor.codeActionsOnSave"` (thanks [Nathan Gaberel](https://github.com/n6g7)); you can turn this on just for Python using:
```json
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
```
([#156](https://github.com/Microsoft/vscode-python/issues/156))
1. Added Spanish translation.
(thanks [Mario Rubio](https://github.com/mario-mra/))
([#1902](https://github.com/Microsoft/vscode-python/issues/1902))
1. Add a French translation (thanks to [Jérémy](https://github.com/PixiBixi) for
the initial patch, and thanks to [Nathan Gaberel](https://github.com/n6g7),
[Bruno Alla](https://github.com/browniebroke), and
[Tarek Ziade](https://github.com/tarekziade) for reviews).
([#1959](https://github.com/Microsoft/vscode-python/issues/1959))
1. Add syntax highlighting for [Pipenv](http://pipenv.readthedocs.io/en/latest/)-related
files (thanks [Nathan Gaberel](https://github.com/n6g7)).
([#995](https://github.com/Microsoft/vscode-python/issues/995))

### Fixes

1. Modified to change error message displayed when path to a tool (`linter`, `formatter`, etc) is invalid.
([#1064](https://github.com/Microsoft/vscode-python/issues/1064))
1. Improvements to the logic used to parse the arguments passed into the test frameworks.
([#1070](https://github.com/Microsoft/vscode-python/issues/1070))
1. Ensure navigation to definitons follows imports and is transparent to decoration.
(thanks [Peter Law](https://github.com/PeterJCLaw))
([#1638](https://github.com/Microsoft/vscode-python/issues/1638))
Expand All @@ -74,25 +96,37 @@ part of!
1. Fix to display all interpreters in the interpreter list when a workspace contains a `Pipfile`.
([#1800](https://github.com/Microsoft/vscode-python/issues/1800))
1. Use file system API to perform file path comparisons when performing code navigation.
(thanks to [bstaint](https://github.com/bstaint) for the initial patch)
(thanks to [bstaint](https://github.com/bstaint) for the problem diagnosis)
([#1811](https://github.com/Microsoft/vscode-python/issues/1811))
1. Automatically add path mappings for remote debugging when attaching to the localhost.
([#1829](https://github.com/Microsoft/vscode-python/issues/1829))
1. Change keyboard shortcut for `Run Selection/Line in Python Terminal` to `Shit+Enter`.
([#1875](https://github.com/Microsoft/vscode-python/issues/1875))
1. Fix unhandled rejected promises in unit tests.
([#1919](https://github.com/Microsoft/vscode-python/issues/1919))
1. Fix debugger issue that causes the debugger to hang and silently exit stepping over a line of code instantiating an ITK vector object.
([#459](https://github.com/Microsoft/vscode-python/issues/459))

### Code Health

1. Add telemetry to capture type of python interpreter used in workspace.
([#1237](https://github.com/Microsoft/vscode-python/issues/1237))
1. Enabled multi-thrreaded debugger tests for the `experimental` debugger.
([#1250](https://github.com/Microsoft/vscode-python/issues/1250))
1. Log relevant environment information when the existence of `pipenv` cannot be determined.
([#1338](https://github.com/Microsoft/vscode-python/issues/1338))
1. Use [dotenv](https://www.npmjs.com/package/dotenv) package to parse [environment variables definition files](https://code.visualstudio.com/docs/python/environments#_environment-variable-definitions-file).
([#1376](https://github.com/Microsoft/vscode-python/issues/1376))
1. Move from yarn to npm.
([#1402](https://github.com/Microsoft/vscode-python/issues/1402))
1. Fix django and flask debugger tests when using the experimental debugger.
([#1407](https://github.com/Microsoft/vscode-python/issues/1407))
1. Capture telemetry for the usage of the `Create Terminal` command along with other instances when a terminal is created implicitly.
([#1542](https://github.com/Microsoft/vscode-python/issues/1542))
1. Add telemetry to capture availability of Python 3, version of Python used in workspace and the number of workspace folders.
([#1545](https://github.com/Microsoft/vscode-python/issues/1545))
1. Ensure all CI tests (except for debugger) are no longer allowed to fail.
([#1614](https://github.com/Microsoft/vscode-python/issues/1614))
1. Capture telemetry for the usage of the feature that formats a line as you type (`editor.formatOnType`).
([#1766](https://github.com/Microsoft/vscode-python/issues/1766))
1. Capture telemetry for the new debugger.
Expand All @@ -113,21 +147,33 @@ part of!
([#1842](https://github.com/Microsoft/vscode-python/issues/1842))
1. Add better exception handling when parsing responses received from the Jedi language service.
([#1867](https://github.com/Microsoft/vscode-python/issues/1867))
1. Resolve warnings in CI Tests and fix some broken CI Tests.
1. Resolve warnings in CI Tests and fix some broken CI tests.
([#1885](https://github.com/Microsoft/vscode-python/issues/1885))
1. Reduce sample count used to capture performance metrics in order to reduce time taken to complete the tests.
([#1887](https://github.com/Microsoft/vscode-python/issues/1887))
1. Ensure workspace information is passed into installer when determining whether a product/tool is installed.
([#1893](https://github.com/Microsoft/vscode-python/issues/1893))
1. Add JUnit file output to enable CI integration with VSTS.
([#1897](https://github.com/Microsoft/vscode-python/issues/1897))
1. Log unhandled rejected promises when running unit tests.
([#1918](https://github.com/Microsoft/vscode-python/issues/1918))
1. Add ability to run tests without having to launch VS Code.
([#1922](https://github.com/Microsoft/vscode-python/issues/1922))
1. Fix rename refactoring unit tests.
([#1953](https://github.com/Microsoft/vscode-python/issues/1953))
1. Fix failing test on Mac when validating the path of a python interperter.
([#1957](https://github.com/Microsoft/vscode-python/issues/1957))
1. Display banner prompting user to complete a survey for the use of the `Experimental Debugger`.
([#1968](https://github.com/Microsoft/vscode-python/issues/1968))
1. Use a glob pattern to look for `conda` executables.
([#256](https://github.com/Microsoft/vscode-python/issues/256))
1. Create tests to measure activation times for the extension.
([#932](https://github.com/Microsoft/vscode-python/issues/932))





## 2018.5.0 (05 Jun 2018)

Thanks to the following projects which we fully rely on to provide some of
Expand Down
2 changes: 0 additions & 2 deletions news/1 Enhancements/1037.md

This file was deleted.

1 change: 0 additions & 1 deletion news/1 Enhancements/127.md

This file was deleted.

8 changes: 0 additions & 8 deletions news/1 Enhancements/156.md

This file was deleted.

2 changes: 0 additions & 2 deletions news/1 Enhancements/1902.md

This file was deleted.

4 changes: 0 additions & 4 deletions news/1 Enhancements/1959.md

This file was deleted.

1 change: 0 additions & 1 deletion news/1 Enhancements/995.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1064.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1070.md

This file was deleted.

2 changes: 0 additions & 2 deletions news/2 Fixes/1638.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1721.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1759.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1800.md

This file was deleted.

2 changes: 0 additions & 2 deletions news/2 Fixes/1811.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1829.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1875.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/1919.md

This file was deleted.

1 change: 0 additions & 1 deletion news/2 Fixes/459.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1237.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1250.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1338.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1376.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1402.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1407.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1542.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1545.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1614.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1766.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1767.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1770.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1803.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1815.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1817.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1821.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1833.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1842.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1867.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1885.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1887.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1893.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1897.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1918.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1922.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1953.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1957.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/1968.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/256.md

This file was deleted.

1 change: 0 additions & 1 deletion news/3 Code Health/932.md

This file was deleted.

57 changes: 33 additions & 24 deletions news/announce.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,20 @@
def NewsEntry(issue_number, description, path):
"""Construct a data object for a news entry."""
# TODO: replace with a dataclass in Python 3.7.
return types.SimpleNamespace(issue_number=issue_number,
description=description, path=path)
return types.SimpleNamespace(
issue_number=issue_number, description=description, path=path
)


def news_entries(directory):
"""Yield news entries in the directory."""
for path in directory.iterdir():
if path.name == 'README.md':
if path.name == "README.md":
continue
match = FILENAME_RE.match(path.name)
if match is None:
raise ValueError(f'{path} has a bad file name')
issue = int(match.group('issue'))
raise ValueError(f"{path} has a bad file name")
issue = int(match.group("issue"))
entry = path.read_text("utf-8")
yield NewsEntry(issue, entry, path)

Expand All @@ -48,15 +49,17 @@ def sections(directory):
"""Yield the sections in their appropriate order."""
found = []
for path in directory.iterdir():
if not path.is_dir() or path.name.startswith('.'):
if not path.is_dir() or path.name.startswith("."):
continue
position, sep, title = path.name.partition(' ')
position, sep, title = path.name.partition(" ")
if not sep:
print(f'directory name {path.name!r} is missing ranking; skipping',
file=sys.stderr)
print(
f"directory {path.name!r} is missing a ranking; skipping",
file=sys.stderr,
)
continue
found.append(SectionTitle(int(position), title, path))
return sorted(found, key=operator.attrgetter('index'))
return sorted(found, key=operator.attrgetter("index"))


def gather(directory):
Expand All @@ -70,17 +73,19 @@ def gather(directory):
def entry_markdown(entry):
"""Generate the Markdown for the specified entry."""
enumerated_item = "1. "
indent = ' ' * len(enumerated_item)
issue_url = f'https://github.com/Microsoft/vscode-python/issues/{entry.issue_number}'
issue_md = f'([#{entry.issue_number}]({issue_url}))'
indent = " " * len(enumerated_item)
issue_url = (
f"https://github.com/Microsoft/vscode-python/issues/{entry.issue_number}"
)
issue_md = f"([#{entry.issue_number}]({issue_url}))"
entry_lines = entry.description.strip().splitlines()
formatted_lines = [f'{enumerated_item}{entry_lines[0]}']
formatted_lines.extend(f'{indent}{line}' for line in entry_lines[1:])
formatted_lines.append(f'{indent}{issue_md}')
return '\n'.join(formatted_lines)
return ENTRY_TEMPLATE.format(entry=entry.description.strip(),
issue=entry.issue_number,
issue_url=issue_url)
formatted_lines = [f"{enumerated_item}{entry_lines[0]}"]
formatted_lines.extend(f"{indent}{line}" for line in entry_lines[1:])
formatted_lines.append(f"{indent}{issue_md}")
return "\n".join(formatted_lines)
return ENTRY_TEMPLATE.format(
entry=entry.description.strip(), issue=entry.issue_number, issue_url=issue_url
)


def changelog_markdown(data):
Expand All @@ -96,9 +101,12 @@ def changelog_markdown(data):

def git_rm(path):
"""Run git-rm on the path."""
status = subprocess.run(['git', 'rm', os.fspath(path.resolve())],
shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
status = subprocess.run(
["git", "rm", os.fspath(path.resolve())],
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
try:
status.check_returncode()
except Exception:
Expand Down Expand Up @@ -126,12 +134,13 @@ def main(run_type, directory):
data = gather(directory)
markdown = changelog_markdown(data)
if run_type != RunType.dry_run:
# XXX This can lead to mojibake; hopefully Python 3.7 will resolve this.
print(markdown)
if run_type == RunType.final:
cleanup(data)


if __name__ == '__main__':
if __name__ == "__main__":
arguments = docopt.docopt(__doc__)
for possible_run_type in RunType:
if arguments[f"--{possible_run_type.name}"]:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "python",
"displayName": "Python",
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.",
"version": "2018.6.0-beta",
"version": "2018.6.0",
"publisher": "ms-python",
"author": {
"name": "Microsoft Corporation"
Expand Down