Skip to content
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

Changing SDK doesn't work #2851

Open
orian opened this issue Dec 15, 2016 · 3 comments
Open

Changing SDK doesn't work #2851

orian opened this issue Dec 15, 2016 · 3 comments

Comments

@orian
Copy link

orian commented Dec 15, 2016

  • Plugin version (or commit hash): 0.13.1914

  • IDE name and version: IntelliJ IDEA 2016.3.1 ; Build #IU-163.9166.29, built on December 9, 2016

  • Java version: JRE: 1.8.0_112-release-408-b2 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

  • OS name and version: MacOS Sierra

  • What are you trying to do? Change project SDK in Project Structure.

  • What would you expect to happen? A new SDK to be in place.

  • What happens? Old SDK stays.

The file in main directory myproject.iml:

<?xml version="1.0" encoding="UTF-8"?>
<module type="GO_MODULE" version="4">
  <component name="NewModuleRootManager" inherit-compiler-output="true">
    <exclude-output />
    <content url="file://$MODULE_DIR$" />
    <orderEntry type="jdk" jdkName="Go 1.7.4" jdkType="Go SDK" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>

Whereas I expect it to be:

<?xml version="1.0" encoding="UTF-8"?>
<module type="GO_MODULE" version="4">
  <component name="NewModuleRootManager" inherit-compiler-output="true">
    <exclude-output />
    <content url="file://$MODULE_DIR$" />
    <orderEntry type="jdk" jdkName="Go 1.6.3 (appengine-1.9.48)" jdkType="Go SDK" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>

@zolotov
Copy link
Contributor

zolotov commented Dec 15, 2016

  1. it should be myproject.iml
  2. are you sure that myproject module uses Project SDK?

@orian
Copy link
Author

orian commented Dec 15, 2016

  1. Updated the description. Misspelling.
  2. Good question I don't know how to answer. I've created a pure Go project and placed a main.go in the main project directory following some guideline on the first App Engine project. Then I've tried to change the project SDK.

@zolotov
Copy link
Contributor

zolotov commented Dec 15, 2016

Take a look at Project structure | Modules | <your module> | Dependencies | Module SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants