You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/04/17 17:33:55 UTC

[GitHub] [lucenenet] mjebrahimi opened a new issue #470: lucene-cli exception on starting

mjebrahimi opened a new issue #470:
URL: https://github.com/apache/lucenenet/issues/470


   I installed the cli using the following command.
   ```ini
   > dotnet tool install --global lucene-cli --version 4.8.0-beta00014
   ``` 
   
   I received the following exception while starting the cli using `lucene` command.
   
   ```ini
   Unhandled exception. System.IO.FileNotFoundException: The configuration file 'appsettings.json' was not found and is not optional. The physical path is 'C:\Users\Ebrahimi\.dotnet\tools\.store\lucene-cli\4.8.0-beta00014\lucene-cli\4.8.0-beta00014\tools\netcoreapp3.1\any\appsettings.json'.
      at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
      at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
      at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
      at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
      at Lucene.Net.Cli.Program.Main(String[] args) in D:\a\1\s\src\dotnet\tools\lucene-cli\Program.cs:line 27
   ```
   
   I solved the problem by manually downloading the https://github.com/apache/lucenenet/blob/master/src/dotnet/tools/lucene-cli/appsettings.json file and putting it in the path `C:\Users\Ebrahimi\.dotnet\tools\.store\lucene-cli\4.8.0-beta00014\lucene-cli\4.8.0-beta00014\tools\netcoreapp3.1\any\`.
   
   But basically this error should not have happened.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] laimis closed issue #470: lucene-cli exception on starting

Posted by GitBox <gi...@apache.org>.
laimis closed issue #470:
URL: https://github.com/apache/lucenenet/issues/470


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] laimis commented on issue #470: lucene-cli exception on starting

Posted by GitBox <gi...@apache.org>.
laimis commented on issue #470:
URL: https://github.com/apache/lucenenet/issues/470#issuecomment-821861608


   This was fixed here: https://github.com/apache/lucenenet/pull/455 and will be available with 4.8.0-beta00015 release. Your workaround is the way to get around this issue until the release with the fix goes out.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org