Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

tests don't run anymore after updating to vscode 1.26.0 #1844

Closed
pierrre opened this issue Aug 14, 2018 · 8 comments
Closed

tests don't run anymore after updating to vscode 1.26.0 #1844

pierrre opened this issue Aug 14, 2018 · 8 comments

Comments

@pierrre
Copy link

pierrre commented Aug 14, 2018

Steps to Reproduce:

  1. upgrade to vscode 1.26.0
  2. run Go tests, nothing happens

"automatic test on save" doesn't work anymore too.

With vscode 1.25 it works.

@pierrre pierrre changed the title tests don't anymore after updating to vscode 1.26.0 tests don't run anymore after updating to vscode 1.26.0 Aug 14, 2018
@benweissmann
Copy link

I'm also seeing this intermittently after upgrading to 1.26.0. Sometimes, the "run test"/"debug test" buttons disappear, and the "Go: Run tests" action stops working. Restarting sometimes helps, but the issue comes back after a few minutes.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Aug 14, 2018

  • Do you see any errors in the console? Help -> Toggle Developer Tools -> Console ?
  • Does running tests manually work? Try running Go: Test File from the command pallet
  • @benweissmann Do you also see this working as expected in 1.25 like @pierrre ?

@nboughton
Copy link

nboughton commented Aug 15, 2018

Build on save functionality is completely broken for me in 1.26. Every time I save I get the following in the console:

mainThreadExtensionService.ts:43 [ms-vscode.Go]ENOENT: no such file or directory, uv_os_get_passwd e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43 e._doInvokeHandler @ rpcProtocol.ts:261 e._invokeHandler @ rpcProtocol.ts:246 e._receiveRequest @ rpcProtocol.ts:192 e._receiveOneMessage @ rpcProtocol.ts:174 (anonymous) @ rpcProtocol.ts:107 (anonymous) @ rpcProtocol.ts:303 e.fire @ event.ts:140 a @ ipc.net.ts:104 n._socketDataListener @ ipc.net.ts:133 emitOne @ events.js:116 emit @ events.js:211 addChunk @ _stream_readable.js:263 readableAddChunk @ _stream_readable.js:250 Readable.push @ _stream_readable.js:208 onread @ net.js:594 mainThreadExtensionService.ts:44 Error: ENOENT: no such file or directory, uv_os_get_passwd at Object.goBuild (/home/nick/.vscode/extensions/ms-vscode.go-0.6.87/out/src/goBuild.js:71:102) at Object.check (/home/nick/.vscode/extensions/ms-vscode.go-0.6.87/out/src/goCheck.js:75:45) at runBuilds (/home/nick/.vscode/extensions/ms-vscode.go-0.6.87/out/src/goMain.js:334:15) at vscode.workspace.onDidSaveTextDocument.document (/home/nick/.vscode/extensions/ms-vscode.go-0.6.87/out/src/goMain.js:347:9) at e.fire (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:98:218) at e.$acceptModelSaved (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:728:141) at e._doInvokeHandler (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:671:983) at e._invokeHandler (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:671:701) at e._receiveRequest (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:670:767) at e._receiveOneMessage (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:670:536) at /opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:669:452 at /opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:672:575 at /opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:903 at e.fire (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:98:218) at a (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:162:713) at Socket._socketDataListener (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:162:932) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at Pipe.onread (net.js:594:20)

Attempting to use the command pallet to build the current workspace also fails with the following error:

notificationsAlerts.ts:39 Error: Running the contributed command:'go.build.workspace' failed.
at e._executeContributedCommand (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:713:87)
at e.$executeContributedCommand (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:713:479)
at e._doInvokeHandler (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:671:983)
at e._invokeHandler (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:671:701)
at e._receiveRequest (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:670:767)
at e._receiveOneMessage (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:670:536)
at /opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:669:452
at /opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:672:575
at /opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:903
at e.fire (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:98:218)
at a (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:162:713)
at Socket._socketDataListener (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:162:932)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)`

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Aug 15, 2018

@nboughton I've created a new issue for your case. See #1850

@pierrre
Copy link
Author

pierrre commented Aug 16, 2018

I see the same error message in the developer console.

When I try to run the tests manually, it displays a popup:

No tests found. Current file is not a test file.

(even if I've got a test file)

I confirm that a downgrade to 1.25 fixes the issue.

@ramya-rao-a
Copy link
Contributor

@pierrre

I see the same error message in the developer console.

Do you mean the error about uv_os_get_passwd. If yes, then please follow #1850 (comment) to get the fix for that

No tests found. Current file is not a test file.

For Go: Test File or Go: Test Function At Cursor, a test file should be open in the active editor. Can you open a test file and click on one of the "run test" codelens?

@pierrre
Copy link
Author

pierrre commented Aug 16, 2018

Do you mean the error about uv_os_get_passwd. If yes, then please follow #1850 (comment) to get the fix for that

Yes, #1850 fix is working for me, thanks !

For Go: Test File or Go: Test Function At Cursor, a test file should be open in the active editor. Can you open a test file and click on one of the "run test" codelens?

This bug is also solved with #1850 fix

@ramya-rao-a
Copy link
Contributor

That's good to know, thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants