LoginSignup
1
1

More than 5 years have passed since last update.

IntelliJでGo標準ライブラリの入力補完が効かなくなった

Last updated at Posted at 2017-07-15

IntelliJをアップデートしたり色々やっていたら、fmtとか標準ライブラリの補完が効かなくなった。新規にプロジェクト生成したら効いたので、{プロジェクト名}.imlファイルを比較してみたら、jdkの項目が抜けていたので手動で追加したら直りました。

<?xml version="1.0" encoding="UTF-8"?>
<module type="GO_MODULE" version="4">
  <component name="Go">
    <option name="vendoring" value="YES" />
    <buildTags>
      <option name="customFlags">
        <array>
          <option value="debug" />
        </array>
      </option>
    </buildTags>
  </component>
  <component name="NewModuleRootManager" inherit-compiler-output="true">
    <exclude-output />
    <content url="file://$MODULE_DIR$" />
    <!-- ↓これ -->
    <orderEntry type="jdk" jdkName="Go 1.7.5" jdkType="Go SDK" />
    <!-- ↑これ -->
    <orderEntry type="sourceFolder" forTests="false" />
    <orderEntry type="library" name="GOPATH &lt;webapp&gt;" level="project" />
  </component>
</module>
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1