[latest] v0.16.2
ede72ef [release] 0.16.2 release CHANGELOG
d5f86b6 [release] goLanguageServer: attach gopls version to issue reports
60a00ed [release] src/testUtils.ts: fix parsing of the compiler error file expansion
354ea27 [release] src/testUtils.ts: always run test in package list mode
903ccc7 [release] package.json: allow additional properties for alternateTools
Change-Id: I696f3ae38aa089e0d8056297e315c70afd6f5b44
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0edd6b3..b7f311a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,14 @@
+## v0.16.2 - 2nd Sep, 2020
+
+### Fixed
+
+- Fixed the compile error message parsing bug that prevented correct file name expansion in test output. ([Issue 522](https://github.com/golang/vscode-go/issues/522)).
+- Fixed the regression that caused to run tests in the local directory mode and
+ result in more verbose output than the package list mode. ([Issue 528](https://github.com/golang/vscode-go/issues/528)).
+- Fixed `"go.alternateTools"` settings to accept any tool names without
+ settings.json diagnostics warning. ([Issue 526](https://github.com/golang/vscode-go/issues/526)
+
+
## v0.16.1 - 5th Aug, 2020
### Fixed
diff --git a/package-lock.json b/package-lock.json
index 001259c..1afb504 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "go",
- "version": "0.16.1",
+ "version": "0.16.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 480cf68..db480b5 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "go",
"displayName": "Go",
- "version": "0.16.1",
+ "version": "0.16.2",
"publisher": "golang",
"description": "Rich Go language support for Visual Studio Code",
"author": {
@@ -1899,7 +1899,7 @@
"description": "Alternate tool to use instead of the guru binary or alternate path to use for the guru binary."
}
},
- "additionalProperties": false
+ "additionalProperties": true
}
}
},
diff --git a/src/goLanguageServer.ts b/src/goLanguageServer.ts
index b1d783e..0ab98aa 100644
--- a/src/goLanguageServer.ts
+++ b/src/goLanguageServer.ts
@@ -987,8 +987,12 @@
errKind = 'initialization';
break;
}
+ const usersGoplsVersion = await getLocalGoplsVersion(latestConfig);
const title = `gopls: automated issue report (${errKind})`;
- const body = `ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
+ const body = `
+gopls version: ${usersGoplsVersion}
+
+ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
diff --git a/src/testUtils.ts b/src/testUtils.ts
index cd00956..99f82fd 100644
--- a/src/testUtils.ts
+++ b/src/testUtils.ts
@@ -293,6 +293,7 @@
let pkgMapPromise: Promise<Map<string, string> | null> = Promise.resolve(null);
if (testconfig.isMod) {
+ getCurrentPackagePromise = getCurrentPackage(testconfig.dir);
// We need the mapping to get absolute paths for the files in the test output.
pkgMapPromise = getNonVendorPackages(testconfig.dir, !!testconfig.includeSubDirectories);
} else { // GOPATH mode
@@ -485,7 +486,7 @@
function expandFilePathInOutput(output: string, cwd: string): string {
const lines = output.split('\n');
for (let i = 0; i < lines.length; i++) {
- const matches = lines[i].match(/\s+(\S+.go):(\d+):\s+/);
+ const matches = lines[i].match(/\s*(\S+\.go):(\d+):/);
if (matches && matches[1] && !path.isAbsolute(matches[1])) {
lines[i] = lines[i].replace(matches[1], path.join(cwd, matches[1]));
}