FullyQualifiedErrorId : CommandNotFoundException

Posted 7 months ago by Guy-Armand Kamendje

Post a topic
Un Answered
G
Guy-Armand Kamendje

Hello, 
On windows 11, after installing and activating dsim I am not able to run it from the cmd shell. 

PS > dsim -version

dsim : The term 'dsim' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the    

path is correct and try again.

At line:1 char:1

+ dsim -version

+ ~~~~

    + CategoryInfo          : ObjectNotFound: (dsim:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException


Everything works as expected when I use VSC and connect to WLS2 (Ubuntu 22.04 in my case) althougth I have to restart VSC for the activation to work. Without restart it will complain that the dsim could not be found. 

0 Votes


9 Comments

Sorted by
K

Kareem Sultan posted 7 months ago Admin

@Guy-Armand Kamendje There shouldn't be an issue with using DSim Desktop with WSL2. It's in fact how I use it mainly. 

What I can't tell from your screenshot is if that's using WSL or not. 

The output from your first post shows a Powershell shell. That won't work in WSL. 


Things to confirm if using WSL. 

1. DSim Desktop is installed in WSL

2. In the DSim Desktop settings, the shell is set to Default or a shell valid for your OS.

3. You installed a DSim build for the corresponding OS in WSL. 

4. Testing the install (dsim -version) is done from a DSim Desktop terminal.


If none of that resolves the issue, let us know. 

0 Votes

S

Shaun Luong posted 7 months ago Admin

Can you confirm your sequence of events were as follows?

1. Install Visual Studio Code (VSC) on Windows 11 machine

2. Install DSim Desktop extension on same machine

3. Install DSim 202400422.0.0 for Windows on same machine

4. From the VSC Terminal Launch Profile menu, you selected DSim Desktop

5. You got the error notification from your screenshot

0 Votes

S

Shaun Luong posted 7 months ago Admin

0 Votes

G

Guy-Armand Kamendje posted 7 months ago

Yes I am able to run other terminals (powershell, cmd, wsl etc)

0 Votes

S

Shaun Luong posted 7 months ago Admin

Are you able to launch any other terminal shell? If not, something is wrong with your Visual Studio Code installation.

0 Votes

G

Guy-Armand Kamendje posted 7 months ago

As can be seen in the screenshot below, I am not able to launch the DSim desktop terminal shell when running in Windows 11

0 Votes

S

Shaun Luong posted 7 months ago Admin

0 Votes

G

Guy-Armand Kamendje posted 7 months ago

I am using the DSim Desktop terminal shell. 

It works if I start VSC and connect to WSL 2 (Ubuntu 22.04). However, after installing DSim Desktop within WSL 2 restarting VSC is required to get it working.

Despite restarting VSC a couple of time I could not get it working when not connecting to WSL2

  

0 Votes

S

Shaun Luong posted 7 months ago Admin

What terminal shell are you using? Everything should work using the DSim Desktop terminal shell from within DSim Desktop:

https://metrics-help.freshdesk.com/support/solutions/articles/154000147738-tour-of-dsim-desktop#dsim-desktop-terminal

0 Votes

Login to post a comment