Home > other >  [for] vsCode can't read the workspace in the secondary directory. The mod
[for] vsCode can't read the workspace in the secondary directory. The mod

Time:11-20

VsCode a problem, environment is ubantu 20.04, as recently updated, vsCode can't read the workspace in the secondary directory. The mod, for example, false I have a test in the work zone folder, I go in the folder mod init, then go. The mod in the test, and complains; But if I go outside in the test folder mod init, namely go. Mod directly in the workspace directory, and then, according to the normal

CodePudding user response:

This error is suggest you do not have a main module, in the test. You go in and package the main try

CodePudding user response:

reference 1st floor qybao response:
this error is suggest you do not have a main module, plus package in you in the test. Go try main

Add the all package main,,,
  • Related