Open daniilshevelev opened 6 years ago
Hi. I dont' know how it is supposed to run in IntelliJ console but what is your output using gradlew bootRun (cf readme)?
@lgrignon I tried the following in PowerShell:
.\gradlew.bat bootRun -Dgrails.env=dev -Dserver.port=8082 --info
And got this error:
Task '.env=dev' not found in root project 'grails3-quick-start'.
When running the same command in IDEA I got this errors:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.createCrossBuildFileHashCache().
...
BUILD FAILED in 0s
Failed to create parent directory 'C:\Windows\System32\.gradle' when creating directory 'C:\Windows\System32\.gradle\4.0\fileHashes'
12:24:16 PM: Tasks execution finished 'bootRun -Dgrails.env=dev -Dserver.port=8082 --debug'.
Hi again. You do not need the PowerShell environment. Please try again using a regular command line tool.
I will take a look sooner or later for running into IntelliJ, but it was not the original purpose of this repo :)
That error comes from Gradle and not from PowerShell. Getting the same error in Windows cmd.
That is very strange. I confirm that it works on my machine from a fresh install. This command line is definitively supposed to work.
Could you please try on another machine/shell just to collect more clues
Hello. Any update on this.?
@dashingly move following code from /conf/application.groovy to runtime.groove then it works fine.
import org.apache.lucene.analysis.core.LowerCaseFilterFactory
import org.apache.lucene.analysis.ngram.NGramFilterFactory
import org.apache.lucene.analysis.standard.StandardTokenizerFactory
grails.plugins.hibernatesearch = {
rebuildIndexOnStart false
throwOnEmptyQuery false
// fullTextFilter name: "reserveContext", impl: ReserveContextFullTextFilterFactory, cache: 'none'
analyzer( name: 'ngram', tokenizer: StandardTokenizerFactory ) {
filter LowerCaseFilterFactory
filter(NGramFilterFactory) {
param 'minGramSize', 3
param 'maxGramSize', 3
}
}
}
Thanks @pantbinod , I will give it a try next week.
Note : the quick start have been updated this week, please try again with the new version and tell me if it works better.
Thanks @pantbinod if your solution works with the new version
Hi I try to run the project in IntelliJ IDEA and get this errors: