Error when trying to activate PredictionMode
See original GitHub issueHello,
When i try to activate PredictionMode, i ran into an error saying that the mode cannot be activated.
Environment
PSReadline version: 2.1.0
os: 6.3.9600.16384 (winblue_rtm.130821-1623)
PS file version: 10.0.14409.1005 (rs1_srvoob.161208-1155)
HostName: ConsoleHost
BufferWidth: 170
BufferHeight: 500
Exception report
Set-PSReadLineOption : The predictive suggestion feature cannot be enabled because the console output doesn’t support virtual terminal processing or it’s redirected. Au caractère Ligne:1 : 1
- Set-PSReadLineOption -PredictionSource History
-
+ CategoryInfo : NotSpecified: (:) [Set-PSReadLineOption], ArgumentException + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.SetPSReadLineOption
Steps to reproduce
Set-PSReadLineOption -PredictionSource History
Expected behavior
Actual behavior
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How do I set PredictionMode.SSL in antlr4 JavaScript runtime
It suggests a two-stage parsing strategy, first setting the error strategy to BailErrorStrategy and using PredictionMode.
Read more >Getting Expected Tokens from Error
I tried setting the prediction mode in JavaScript as follows: parser._interp.predictionMode = antlr4.
Read more >Get help with Windows activation errors
Learn how to troubleshoot Windows activation errors. Browse common activation errors and learn what you can do to fix them.
Read more >Stable diffusion medvram performance. 512x512 @ 20 steps
I'm just trying to get the hang of it and I was trying to sanity-check my setup by using examples off the Intertubes....
Read more >PredictionMode (ANTLR 4 Runtime 4.13.0 API)
The SLL(*) prediction mode. This prediction mode ignores the current parser context when making predictions. This is the fastest prediction mode, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A more complex version:
Basically, a powershell version of the check used by PSReadLine here
The profile file should look: