Thursday, July 3, 2008

Eclipse ${project_loc} errors during Grails development

In your Grails development with Eclipse, if you have ever used the Run Launch configuration provided by Grails or followed Add domain classes etc. instructions on the Grails Eclipse IDE Integration wiki page, you may have received the Eclipse error message “Variable references empty selection: ${project_loc}”.

This is caused by the fact that certain actions can cause Eclipse to loose focus of the current project. To resolve the issue, simply select your current project in the Package Explorer or Navigator and repeat task that caused the error. This can get annoying so another alternative is to replace ${project_loc} with ${workspace_loc}\project_name if your project in your workspace directory.

9 comments:

Wolfgang Schell said...

Hi Chris!

I often encountered this problem as well and it's quite annoying.

Thanks for the solution!

Wolfgang

board tc said...

That helped! Thanks for posting.

board tc said...
This comment has been removed by the author.
Martí Cabré said...

Nice! Thanks for the tip.

Connor said...

I started using ${build_project} instead.

"Returns the absolute file system path of the project currently being built, or the absolute file system path of the resource identified by an optional argument interpreted as a path relative to the project currently being built."

spume said...

Good tip, thanks!

Anonymous said...

Oh , thanks, it's nice tip !

Unknown said...

THANK YOU!

Anonymous said...

The amount of time it can be detected increases with repeated heavy usage. Alcohol and nicotine use is also detected through blood tests. A hair test is used to determine whether or not a person has used the drug previously. Hair tests can show drug use from a quarter of a year to five days before the test is taken. The concept behind hair drug testing is that drug metabolites penetrate the blood vessels of the scalp, where they are filtered and stored as a permanent record of a person’s drug consumption by the hair. Once you have mixed the powdered urine, you can check its temperature with the help of the temperature strip

AWS EC2 Hibernate Java SDK v2 Example

I recently wanted to automate the creation of developer VMs in AWS using EC2 instances. To improve the developer experience (DX), I didn'...