Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when launching an alias #403

Closed
jibedoubleve opened this issue Dec 8, 2023 · 1 comment · Fixed by #434
Closed

Error when launching an alias #403

jibedoubleve opened this issue Dec 8, 2023 · 1 comment · Fixed by #434
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jibedoubleve
Copy link
Owner

What

An error occured when launching an alias

Logs

2023-12-08 13:31:06.7527;DEBUG;ReactiveUI;1;MainViewModel: Command 'ExecuteAlias' or 'SearchAlias' triggered. OnNext: Current alias: 'r:og-bdd-tests-crosschannel';
2023-12-08 13:31:06.7527;DEBUG;ReactiveUI;1;MainViewModel: New results. OnNext: 6 element(s);
2023-12-08 13:31:06.7527;DEBUG;ReactiveUI;1;MainViewModel: Results changed. OnNext: Current alias: 'r:og-bdd-tests-crosschannel';
2023-12-08 13:31:08.0283;TRACE;Lanceur.Views.MainViewModel;1;Selecting next result. [Index: r:og-bdd-tests-xdl];
2023-12-08 13:31:08.0291;DEBUG;ReactiveUI;1;MainViewModel: Navigation occured OnNext: Current alias: 'r:og-bdd-tests-xdl' is INACTIVE;
2023-12-08 13:31:08.1431;DEBUG;ReactiveUI;16;MainViewModel: Query changed. OnNext: 'r:og-bdd-tests-xdl';
2023-12-08 13:31:08.2618;TRACE;Lanceur.Views.MainViewModel;1;Selecting next result. [Index: r:og-connect];
2023-12-08 13:31:08.2618;DEBUG;ReactiveUI;1;MainViewModel: Navigation occured OnNext: Current alias: 'r:og-connect' is INACTIVE;
2023-12-08 13:31:08.3640;DEBUG;ReactiveUI;16;MainViewModel: Query changed. OnNext: 'r:og-connect';
2023-12-08 13:31:08.4686;TRACE;Lanceur.Views.MainViewModel;1;Selecting next result. [Index: r:og-omnichannel-sync];
2023-12-08 13:31:08.4686;DEBUG;ReactiveUI;1;MainViewModel: Navigation occured OnNext: Current alias: 'r:og-omnichannel-sync' is INACTIVE;
2023-12-08 13:31:08.5766;DEBUG;ReactiveUI;16;MainViewModel: Query changed. OnNext: 'r:og-omnichannel-sync';
2023-12-08 13:31:08.8118;INFO;Lanceur.Infra.Managers.ExecutionManager;1;Executing alias 'r:og-omnichannel-sync';
2023-12-08 13:31:08.8393;TRACE;Lanceur.Infra.Managers.ExecutionManager;1;Executing process...;
2023-12-08 13:31:08.8393;DEBUG;Lanceur.Infra.Managers.ExecutionManager;1;Executing 'C:\Users\w129799\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\232.9921.83\bin\rider64.exe' with args ' C:\Projects\og-omnichannel-sync';
2023-12-08 13:31:08.8393;DEBUG;ReactiveUI;1;MainViewModel: ViewModel is busy. OnNext: True;
2023-12-08 13:31:08.8393;ERROR;Lanceur.Ui.UserNotification;1;Cannot execute alias 'r:og-omnichannel-sync: An error occurred trying to start process 'C:\Users\w129799\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\232.9921.83\bin\rider64.exe' with working directory 'C:\Windows\system32'. The system cannot find the file specified.';"System.ApplicationException: Cannot execute alias 'r:og-omnichannel-sync: An error occurred trying to start process 'C:\Users\w129799\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\232.9921.83\bin\rider64.exe' with working directory 'C:\Windows\system32'. The system cannot find the file specified.'
 ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'C:\Users\w129799\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\232.9921.83\bin\rider64.exe' with working directory 'C:\Windows\system32'. The system cannot find the file specified.
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Lanceur.Infra.Managers.ExecutionManager.ExecuteProcess(AliasQueryResult query) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur.Infra\Managers\ExecutionManager.cs:line 109
   at Lanceur.Infra.Managers.ExecutionManager.ExecuteAliasAsync(AliasQueryResult query) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur.Infra\Managers\ExecutionManager.cs:line 79
   --- End of inner exception stack trace ---
   at Lanceur.Infra.Managers.ExecutionManager.ExecuteAliasAsync(AliasQueryResult query) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur.Infra\Managers\ExecutionManager.cs:line 82
   at Lanceur.Infra.Managers.ExecutionManager.ExecuteAsync(ExecutionRequest request) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur.Infra\Managers\ExecutionManager.cs:line 164
   at Lanceur.Views.MainViewModel.OnExecuteAliasAsync(AliasExecutionRequest request) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur\Views\MainViewModel.cs:line 267"
2023-12-08 13:31:08.8505;DEBUG;ReactiveUI;1;MainViewModel: ViewModel is busy. OnNext: False;
2023-12-08 13:31:11.7887;INFO;Lanceur.Views.MainView;1;Window deactivated;
2023-12-08 13:31:11.7887;DEBUG;ReactiveUI;1;MainViewModel: Query is empty, clearing the view. OnNext: '';
2023-12-08 13:31:12.0387;TRACE;Lanceur.Views.MainView;1;Fade out Storyboard completed...;
@jibedoubleve jibedoubleve added the bug Something isn't working label Dec 8, 2023
@jibedoubleve jibedoubleve added this to the 2.5.1 milestone Dec 8, 2023
@jibedoubleve jibedoubleve self-assigned this Dec 8, 2023
@jibedoubleve
Copy link
Owner Author

  • The problem is due to Rider.
  • When updating the IDE, the path can change.
  • After an update, starting the alias crashes because the path has changed and Lanceur cannot find the executable anymore

--> The only way to fix the issue is to add a comprehensive error message

jibedoubleve added a commit that referenced this issue Dec 31, 2023
(#403) Change error message when alias fails to start
jibedoubleve added a commit that referenced this issue Jan 3, 2024
* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#404) Add logging...

* (#408) Fix unit tests

* (#428) Bump to version 2.5.1

* (#428) Update GitVersion.yml

* (#415) Replace CentreMacro with CentreAlias

* (maint) Move ScreenRuler

* (maint) Move AppRestart facility

* (#416) Set default windows position at first boot

* (#416) Fix unit tests

* (#403) Change error message when alias fails to start

* (maint) Rider refactoring advices (#435)

* (#423) Retrieve thumbnails is done a a separate thread (#437)
jibedoubleve added a commit that referenced this issue Feb 18, 2024
* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#404) Add logging...

* (#408) Fix unit tests

* (#428) Bump to version 2.5.1

* (#428) Update GitVersion.yml

* (#415) Replace CentreMacro with CentreAlias

* (maint) Move ScreenRuler

* (maint) Move AppRestart facility

* (#416) Set default windows position at first boot

* (#416) Fix unit tests

* (#403) Change error message when alias fails to start

* (maint) Rider refactoring advices (#435)

* (#423) Retrieve thumbnails is done a a separate thread (#437)

* (maint) Refactoring (#438)

* Issue/412 (#441)

* (#412) Replace NLogger with Serilog

* (maint) Bump version

* (#412) Implements Microsoft.Extensions.Logging

* (#421) Refactor TimeSpan with Humanizer (#443)

* (#431) Fix autocompletion & syntax colouration (#442)

* Issue/439 (#444)

* (#439) Fix empty synonyms when wrongly written

* (#439) Add Unit test

* (#436) Refactore the KeywordViewModel into more Reactive (#446)

* (#436) Refactor the KeywordViewModel into more Reactive

* (maint) Refactor some unit tests

* (#436) Fix InvalidOperationException when updating synonyms (#447)

* Issue/445 (#448)

* (#445) Add cache when querying user packages

* (maint) IThumbnailRefresher is async

* (#364) Show help to create macros (#449)

* Issue/450 (#451)

* (#450) Add logging and measure time

* (#450) Optimise search (execution time)

* (#450) Optimise alias counters

* (maint) Fix unit tests

* Issue/452 (#454)

* (maint) Fix thumbnail manager

* (#452) Rethrow exception when error in transaction

* (maint) Log SQL on error

* Issue/453 (#455)

* (maint) Refactoring

* (#453) Remove SQL query repetition

* (maint) Adding logs in tests and refactoring

* (#450) Remove useless inner joins from SQL

* Isue/456 (#457)

* (#456) Fix warning when executing empty Lua scripts

* (#456) Unit test

* Issue/458 (#459)

* (maint) Change log level

* (#458) Add more logging

* Issue/458 (#462)

* (#458) Add unit test

* (#458) Fix delete of parameters when updating alias

* (#456) Fix Lua scripting when code is null (#464)

* (#456) Fix Lua scripting when code is null

* (#456) Fix unit test

* (#461) Catch error and add logs (#465)

* Issue/466 (#468)

* (maint) Refactoring

* (#466) Add logging to catch slow process executions

* Issue/467 (#469)

* (maint) Refactoring

* (#467) Fix XAML template

* (#470) Execute powershell command with '-noprofile' (#472)

* Issue/471 (#473)

* (#471) Adding log information

* (#471) Fix failure when Lua script returns 'nil'

* (#471) Fix logging (#474)

* (#476) Fix Lua script error (#477)

* (#479) Remove keyword (#480)

* (#482) Increase resilience for UiNotification (#483)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant