We have had this problem with all versions of intellij right up to 14.1.3.
When you click on
Grails->Synchronize Grails Settings
nothing happens. Nothing is executed, the cursor does not change, and, importantly, there is no way to get Intellij to recognize that your configuration has changed (e.g. if you change the version of an existing plugin defined in your buildConfig.groovy).
This is a huge problem.
Interestingly, it works on a MAC with identical project, intellij and java version version.
I don't expect an answer or resolution - but if anyone else gets the same problem, it would be nice to know we are not the only ones.
The grails project consists of the application, and a number of exploded plugins. Everything else works fine.
Project structure:
mainApp
grails-app
:
plugin1
grails-app
:
plugin2
It was imported into intellij by doing a "grails integrate-with --intellij" in the mainApp dir, then simply opening the resultant ipr file in intellij.
Try this
Select the module which has dependency issue.
Click F4 (module settings)
Click on modules in left side (project settings)
Click on dependencies tab on right side
Verify all the inline plugin modules that your module depends on are there in dependencies, if not, add them by clicking + and selecting module dependency
Related
"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)
I'm developing a Grails application with IntelliJ. Many time happens this: When i try to find a file by this shortcut :
Ctrl+Shift+N
IntelliJ find the source file and the 'compiled' (same) file (Because grails plugin imported into a grail app, copy entirelly his folder).
There is a way to hide project-files from "Navigation File" functionality?
Thanks
You can right click the plugin folder in the project tree and mark it as "Excluded":
Whenever I try to use a build configuration named other than 'Debug' or 'Release', Xcode suddenly cannot find my Swift frameworks. The configurations are the exact same other than their name (in fact, the new configuration was duplicated from the working 'Debug' configuration).
Xcode reports 'No such module'
This seems like a really strange bug. Surely someone has come across this before? My Google search yielded no results. Does anyone have any idea what may be causing this issue? I'm pretty sure I added the framework correctly.
I've created a short screencast to show you exactly what I'm doing: http://www.screencast.com/t/zpgZ5ZYgvH
Bottom line:
Make sure project currently builds using third-party Swift frameworks
Select the project in the project/file navigator
Select the project above Targets in the editor left sidebar and make sure you are on the Info tab
Duplicate the current configuration (likely 'Debug') by clicking the + button below the list of configurations and selecting 'Duplicate XXX Configuration'
Modify your scheme to use the new configuration by going to Product (menu) > Scheme > Edit Scheme...
Select Run in the left sidebar
Select your new configuration under Build Configuration
Attempt to build again
You can also download the sample project: http://s000.tinyupload.com/?file_id=48797763216274271820
I'm running Xcode 6.0.1 (6A317) and Yosemite 10.10 (14A361c).
Add the following Framework Search Path in the Build Settings of your target:
$(SYMROOT)/Release$(EFFECTIVE_PLATFORM_NAME)
and make it non-recursive
In my case this was for Alamofire, which was added to my project as a git submodule.
The framework was being built correctly which can be seen in the build logs, but I assume the default framework search path is derived from the scheme name. The Alamofire framework & dSYM file are in Release-iphoneos/ Release-iphonesimulator.
This should work work with any Swift framework as long as it's scheme names are default. If not, check the build logs and adjust the framework search path accordingly.
I had this issue as well and fixed it by adding the same configuration names to the included Alamofire project.
My build schemes in my main project:
And the build schemes inside the Alamofire project:
Note:
Also, make sure your iOS deployment target is the same in both projects.
If you are using CocoaPods, try pod install this will generate some .xcconfig files with your configuration name. Clean your build folder and build again.
If you have a modular structure (e.g. the App uses frameworks to decouple UI, Services or Business Logic from the application's main module) then add the new Build Configuration to each subproject that builds these frameworks.
In this case if the author had, let's say, Services Framework in his workspace then he had to add a Debug Original configuration to it too. And then run pod install, of course.
This is how I fixed my issue.
I generated a jar that contain the class which I use in my application, but I add this jar into the project following these steps:
right click in the project.
properties
Build
Libraries
Add external jars or add jars
ok
I can use these libraries as I write my code, but when I'm loading my project in the emulator or device it said that my library "NOT FOUND".
Please help, what is the correct way to use an external jar in blackberry projects?
please try following step:
right click in the project.
properties
Build
Libraries
Add external jars
select order and export tab
check mark true which .jar file you add
click ok
From the BlackBerry developer docs:
In the Package Explorer view, right-click the project that you want to add a dependency to.
Click Build Path > Configure Build Path .
Click the Libraries tab.
Complete one of the following tasks:
Click Add JARS if the .jar file is in the current workspace.
Click Add External JARS if the .jar file is not in the current workspace.
Select the .jar file that you want this project to depend on. The .jar file must be generated by a Java® application project. You cannot add a BlackBerry® application project of the Library type in this manner.
Click OK.
Pay close attention to the two different options in step 4. above, choosing the one that applies to your situation (where your .jar file is located).
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.