question

RaduPopescu-1029 avatar image
0 Votes"
RaduPopescu-1029 asked ·

PowerShell ISE Cannot Run Shell

PowerShell ISE 5.1 on Windows 10. I run a shell command, e.g. >fauna shell my_db, and the result is an unresponsive window such that the prompt is dead. I do get a confirmation 'Connected to https://xyz,' and Type Ctrl+D to exit, but the prompt is not responsive; I cannot even paste into this window.

If I run the same command in PowerShell.exe, the result is the normal shell expected.

Any ideas? Am I confused and the ISE widow cannot turn itself into a shell? Therefore, would I need to allow a shell to be spawned from here?

FYI, execution policy is unrestricted while trying this.
Thanks in advance.

windows-server-powershell
· 4
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If I try >fauna shell my_db I get an error > : The term '>' is not recognized as the name of a cmdlet, function, script file, or operable program.

I don't get any confirmation about connecting to a web site.

How about disclosing what you're actually trying to execute, and the actual code you use to do it?

0 Votes 0 ·

I installed the npm packages to develop with FaunaDB, per their config; nothing special there as far as I can tell.

Here is the behavior using straight up PowerShell:

PS C:\Users\radup> fauna shell my_db
Starting shell for database my_db
Connected to https://db.fauna.com
Type Ctrl+D or .exit to exit the shell
my_db>

Here is the behavior using PowerShell ISE:

PS C:\windows\system32> fauna shell my_db
Starting shell for database my_db
Connected to https://db.fauna.com
Type Ctrl+D or .exit to exit the shell


For ISE, the command prompt is not there. I have to Ctrl+c out of this to regain the ISE prompt, but outside the shell that I need.

0 Votes 0 ·

Does this work differently in another IDE? VS Code? Visual Studio?

If the fauna program is trying to replace the existing shell with itself then it's going to run into problems with the IDE environment, especially in the area console input.

You should know that the ISE is no longer a supported product. It still runs and works for most things, but it won't run PowerShell versions above 5 without a lot of modification work.

1 Vote 1 ·
Show more comments
RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered ·

I use two extensions: PowerShell (version 2021.2.2) and PowerShell Pro Tools. You should be able to find both in the Extensions (View -> Extentions) by entering "PowerShell" in the search box. Unless you're a serious developer, using the free version of PowerShell Pro Tools should be sufficient.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaduPopescu-1029 avatar image
0 Votes"
RaduPopescu-1029 answered ·

@RichMatheisen-8856 , can you tell me what extension to use for managing PowerShell in VSCode, such as autocompletion? I can't find an official PowerShell Extension in VSCode.
Thanks.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.