Error in Ubuntu when running "Hello World" for the first time in IntelliJ IDEA on Ubuntu 12.04 LTS

117 views
Skip to first unread message

shawn...@gmail.com

unread,
Jul 29, 2013, 6:17:31 PM7/29/13
to gosu...@googlegroups.com
Below is the error I recieved:

ExException in thread "main" java.lang.NullPointerException
at java.io.File.<init>(File.java:239)
at gw.config.AbstractPlatformHelper.isPathIgnored(AbstractPlatformHelper.java:54)
at gw.fs.IDirectoryUtil.allContainedFilesExcludingIgnored(IDirectoryUtil.java:27)
at gw.fs.IDirectoryUtil.allContainedFilesExcludingIgnored(IDirectoryUtil.java:20)
at gw.internal.gosu.parser.FileSystemGosuClassRepository.addTypeNames(FileSystemGosuClassRepository.java:468)
at gw.internal.gosu.parser.FileSystemGosuClassRepository.getAllTypeNames(FileSystemGosuClassRepository.java:180)
at gw.internal.gosu.parser.EnhancementIndex.maybeLoadEnhancementIndex(EnhancementIndex.java:175)
at gw.lang.reflect.gs.GosuClassTypeLoader.getType(GosuClassTypeLoader.java:108)
at gw.lang.reflect.gs.GosuClassTypeLoader.getType(GosuClassTypeLoader.java:30)
at gw.internal.gosu.parser.ModuleTypeLoader.loadType(ModuleTypeLoader.java:640)
at gw.internal.gosu.parser.ModuleTypeLoader.loadTypeAndCacheResult(ModuleTypeLoader.java:546)
at gw.internal.gosu.parser.ModuleTypeLoader.getTypeByFullNameIfValid(ModuleTypeLoader.java:458)
at gw.internal.gosu.parser.TypeLoaderAccess.getByFullNameIfValidImpl(TypeLoaderAccess.java:965)
at gw.internal.gosu.parser.TypeLoaderAccess.getByFullNameIfValid(TypeLoaderAccess.java:956)
at gw.internal.gosu.parser.TypeLoaderAccess.get(TypeLoaderAccess.java:850)
at gw.lang.reflect.TypeSystem.get(TypeSystem.java:67)
at gw.internal.gosu.parser.FrequentUsedJavaTypeCache.init(FrequentUsedJavaTypeCache.java:102)
at gw.internal.gosu.parser.FrequentUsedJavaTypeCache.getHighUsageType(FrequentUsedJavaTypeCache.java:113)
at gw.internal.gosu.parser.TypeLoaderAccess.get(TypeLoaderAccess.java:832)
at gw.lang.reflect.TypeSystem.get(TypeSystem.java:67)
at test.HelloWorld.evaluate(HelloWorld.gsp:1)
at test.HelloWorld.main(HelloWorld.gsp)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

PrProcess finished with exit code 1

Luca Boasso

unread,
Jul 29, 2013, 7:47:51 PM7/29/13
to gosu...@googlegroups.com
By the end of this week or so I'll release a new version of the plugin that will fix that issue.
If meanwhile you want to play with a BETA snapshot of the new plugin, do the following:

Clearing out the old plugin
-Start IDEA
-Open Project Structure (Configure->Project Defaults->Project Structure)
-Go to SDKs on the left
-Delete Default Gosu SDK if it exists
-Close the Project Structure dialog
-Go to Plugins (Configure->Plugins)
-Right-click on the Gosu plugin, if it exists, and Uninstall
-Right-click on the Gosu Debugger plugin, if it exists, and Uninstall
-Close the Settings dialog. Restart IDEA when prompted.

Installing the new plugin
-Download this
-Start IntelliJ IDEA
-Ensure you are using IntelliJ IDEA version 12.1 or later
-Ensure IntelliJ IDEA uses 1.7
-Go to Plugins (Configure->Plugins)
-Click Install plugin from disk...
-Select the zip you downloaded
-Close the Settings dialog. Restart IDEA when prompted





--
You received this message because you are subscribed to the Google Groups "gosu-idea" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gosu-idea+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

shawn...@gmail.com

unread,
Jul 29, 2013, 10:58:09 PM7/29/13
to gosu...@googlegroups.com
Thank you Luca for quick reply!  After implementing the changes you suggested, I am now receiving a "No Gosu SDK found" error message when trying to create a project.  Screenshot of error is attached.
Screenshot from 2013-07-29 22:52:52.png

Luca Boasso

unread,
Jul 29, 2013, 10:59:10 PM7/29/13
to gosu...@googlegroups.com
Select the default gosu sdk and press finish


On Mon, Jul 29, 2013 at 7:58 PM, <shawn...@gmail.com> wrote:
Thank you Luca for quick reply!  After implementing the changes you suggested, I am now receiving a "No Gosu SDK found" error message when trying to create a project.  Screenshot of error is attached.

--

shawn...@gmail.com

unread,
Jul 29, 2013, 11:04:06 PM7/29/13
to gosu...@googlegroups.com
LOL!  I'm embarrassed!  Just a usability enhancement suggestion.  The little blue circle with a "c" inside on the left side of the "Default Gosu SDK..." looks like a selected radio button, so I thought that row was selected by default.  

Thank you again for amazingly fast reply.

Luca Boasso

unread,
Jul 29, 2013, 11:06:32 PM7/29/13
to gosu...@googlegroups.com
That's an Intellij issue, not our fault :)
No problem.
Feel free to give me some feedback so that I can fix potential issues before the official release


On Mon, Jul 29, 2013 at 8:04 PM, <shawn...@gmail.com> wrote:
LOL!  I'm embarrassed!  Just a usability enhancement suggestion.  The little blue circle with a "c" inside on the left side of the "Default Gosu SDK..." looks like a selected radio button, so I thought that row was selected by default.  

Thank you again for amazingly fast reply.

--

shawn...@gmail.com

unread,
Jul 29, 2013, 11:22:40 PM7/29/13
to gosu...@googlegroups.com
When I try to run the hello world example, the run toolbar icon is grayed out.  There are two "Run" menu items in the "Run" menu.  The first one is grayed out.  When I click the 2nd one, I see a dialog asking me if I want to "Edit Configurations".  Any ideas why it isn't just running?

shawn...@gmail.com

unread,
Jul 29, 2013, 11:23:34 PM7/29/13
to gosu...@googlegroups.com
In the IDE, it also says "Groovy SDK is not configured for module..."  Not sure if that is related.

Luca Boasso

unread,
Jul 29, 2013, 11:37:46 PM7/29/13
to gosu...@googlegroups.com
Uhm..quick check.
Do you see a big G at the root of your source project (like in the picture on the left)?
Are you using intellij 12?
Does your project structure have the Default Gosu Sdk as project sdk?
Have you created a gosu program like in my example (Hello.gsp)?
Have you tried to right click on Hello.gsp and press the run menu?

Example.jpg

shawn...@gmail.com

unread,
Jul 30, 2013, 12:13:26 AM7/30/13
to gosu...@googlegroups.com

Do you see a big G at the root of your source project (like in the picture on the left)?
Yes

Are you using intellij 12?
Yes. 12.1.4

Does your project structure have the Default Gosu Sdk as project sdk?
Yes

Have you created a gosu program like in my example (Hello.gsp)?
Yes

Have you tried to right click on Hello.gsp and press the run menu?
No.  There is no "run" item in the right click menu.  Also the screenshot shows that the run toolbar button is grayed out.  
Screenshot from 2013-07-30 00:11:03.png

Luca Boasso

unread,
Jul 30, 2013, 12:19:45 AM7/30/13
to gosu...@googlegroups.com
I think you might have selected by mistake Groovy module when creating a new project.
Try to disable the groovy plugin and restart.
Try also to open this project.


--
HelloWorld.zip

carso...@gmail.com

unread,
Jul 30, 2013, 12:27:12 AM7/30/13
to gosu...@googlegroups.com
Groovy? Like from the toilet?

You want Gosu, the Scripting Mutilator...


<HelloWorld.zip>

Brian Chang

unread,
Jul 30, 2013, 12:28:16 AM7/30/13
to gosu...@googlegroups.com
It's got what IJ craves...

shawn...@gmail.com

unread,
Jul 30, 2013, 12:40:07 AM7/30/13
to gosu...@googlegroups.com
Thank you again!  It worked this time.  The only change I know of is that I disabled Groovy; however, I did create the project from scratch, so maybe I accidentally selected a Groovy module the first time.  But If I did select a Groovy module the first time, would it still have the big G at the root of the source project?

Brian Chang

unread,
Jul 30, 2013, 12:45:34 AM7/30/13
to gosu...@googlegroups.com
You would have seen a G logo in a green circle like in this image (though in a different context):

Luca Boasso

unread,
Jul 30, 2013, 1:25:02 AM7/30/13
to gosu...@googlegroups.com
It works for me with the Groovy plugin enabled so I think you selected by mistake the Groovy module at the beginning.
Let me know otherwise, I'll try to fix that

shawn...@gmail.com

unread,
Jul 30, 2013, 5:46:18 PM7/30/13
to gosu...@googlegroups.com
I think you must be right.  

Thank you again!
Reply all
Reply to author
Forward
0 new messages