IntelliJ, Grails - I deleted a file and nothing works anymore - grails

I need help with IntelliJ, my project isnt starting anymore, I googled but cant find a solution. It started when I deleted a newly created file, a grails Service file.
First, the grails view disappeared. Adding new Framework Support to the project and get the view back via tool windows didnt work.
I also have no "grails" option in the tool menu anymore.
When I run the project (I had to re-setup the run configuration, it was all sort-of-deleted too), the console shows me this error:
Application expects grails version [1.2.3], but GRAILS_HOME is version [1.3.7].
All my Team memebers use 1.3.7 too, so I dont know why this should work.
Can somebody help me please.
Please let me know if you require more information to help me!
thanks a lot in advance!
daniel

how much modules can you see in the project view? there must be one for your grails application named and one for your grails plugins -grailsPlugins. maybe you accidentally deleted one of those intellj modules. the modules files are located under your project root and named as follows: .iml. in intellij go to file -> project structure -> modules. there you can add a existing module by clicking the + symbol and select your existing module for importing.

If the file was compiled at least once then I guess one can open the .class file with intellij and see the code. However all coments will be remove of course.

Related

nocache.js not found in Vaadin project

"Requested resource [/VAADIN/widgetsets/AppWidgetset/AppWidgetset.nocache.js] not found.." I get this when I'm including new addons, either from a JAR file or through Maven. Sometimes, if I've added the dependency in Maven, adding the JAR file as well to the build path fixes it, sometimes it's the other way around, other times compiling the widgetset and/or theme fixes it, and there are even times when nothing helps. This type of behavior seems to me more random than scientific.
I would love to know how to properly add dependencies to the project so that I can avoid this problem.
Select the UI project and goto Properties - Deployment Assembly. Check if you already have widgetset.jar file. If the widgetset.jar is missing then Click on Add -> Maven Project and select widgetset (make sure the jar file naming convention follows backend project like WEB-INF/lib/qqq-widgetset-1.0-SNAPSHOT.jar and WEB-INF/lib/qqq-backend-1.0-SNAPSHOT.jar)

Add a jar file to my Xamarin project

I am wanting to add the "universal-image-loader jar" file to my Xamarin project and am not sure what I need to do. I have had a look at this resource but would still like some help please: itexico.com/blog/bid/100447/Android-Wear-Developer-Preview-Using-Xamarin-Jar-Binding
Here is what I have done so far:
Downloaded https://github.com/nostra13/Android-Universal-Image-Loader
Created a folder called "Jars" in the root folder of my Xamarin project
I have added the "universal-image-loader-1.9.2-with-sources.jar" file to the "Jars" folder
I have set the build action to "embedded resource" for the "universal-image-loader-1.9.2-with-sources.jar" file
I have successfully build the project
I still cannot use the ImageLoaderobject in my application. I cannot resolve a ImageLoaderobject and am not sure what else I need to do.
May I please have some help?
Thanks in advance
I'd suggest you use Java Bindings Library for that.
What you need to do is to add a project to your solution of type "Android Java Bindings Library" you DON'T need to create Jars folder it is created in the new project by itself. Add your jars there. On your startup project click on references and add the java binding project you have just created as a reference. build it and try accessing your assembly either by adding it in the using section or by it's fully qualified name.
Good luck!

Crashlytics Framework not recognizing

When i imported the framework into my delegate file it is not recognising it giving ".h file not found" error. I followed the same procedure before for my another application and it is working fine. Any help would be appreciated.
Make sure the Crashlytics.framework is added to the solution. Follow the instructions of the "Crashlytics" application...
Normally the "Crashlytics.framework" directory is added to directory containing your *.xcodeproj project file. Try adding $(SRCROOT) to the Framework Search Path.
If you're experiencing this issue on a build server (e.g. Team City) make sure that you've selected Automatically on agent (if supported by VCS roots) for your VCS Checkout mode in your Version Control Settings.
I have reinstalled the framework, which only takes 2-3 minutes and . The problem might be caused by that you have relocated the Crashlytics.framework to another subfolder from the root directory or 64 bit transition as Martin stated.
See https://stackoverflow.com/a/28048098/936957 for details.

missing of domain and controller under grails-app in GGTS 2.2.1

suddenly there is a missing of domain, controller and someother folders in my project in GGTS 2.2.1 my imported project looks like following folder
https://issuetracker.springsource.com/secure/attachment/13369/After%20Import%20followed%20by%20Update%20Project%20Configuration.jpg
As I understand the problem is that you don't see some folders (eg domain, controllers, ...) in project explorer. This happend to me once too.
The problem was that the imported projected didn't have .classpath file and when you were importing the project grails made one for you.
The solution is to copy-paste the original .classpath file or if you don't have the original try to create it from another project.

following tutorial but not giving me the options it should

i'm following the http://skywalkersoftwaredevelopment.net/blog/writing-an-orchard-webshop-module-from-scratch-part-3 tutorial word for word but there is no option for me to enable or disable SkyWalker.Webshop.
I have done as it asks, created the 'Skywalker.Webshop' folder inside the 'modules' folder. delete the class1.cs file and add the Module.text file.
However when I load the application there is no option in the modules/features page that allows me to enable or disable webshop (why does it not appear)
anyone have any idea as to why?
Thanks
according to what mentioned in the tutorial :
Orchard requires that your module exists physically in the Modules directory.
make sure you have supplied right directory when creating class library, cause visual studio uses most recent directory supplied for project of type class library when you attempt to add new class library to orchard solution.
hope this help you out.
Maybe try it in another way:
Using command line tool (Orchard.exe under bin folder)
type the following
feature enable Orchard.CodeGeneration
Then,
codegen module Pluralsight.Movies /IncludInSolution:true
Hints:
use "help commends", "help codegen module"
to help you understand the command line.

Resources