-
Notifications
You must be signed in to change notification settings - Fork 24
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
Key processing issues #6
Comments
which OS are you building for? |
Windows 8 x64 From: Ollie Riches [mailto:[email protected]] which OS are you building for? — |
Also if I paste a command into the terminal with a CR-LF it seems to work. I hope that helps. From: Ollie Riches [mailto:[email protected]] which OS are you building for? — |
I presume the OS is patched with the latest hotfixes via windows update. Can you tell me the versions of the PresentationCore.dll, PresentationFramework.dll & System.Windows.Interactivity.dll referenced in the project? |
Yes – the Win8 x64 OS is set to auto-update per our network policy. PresentationCore.dll: 4.0.30319.18402 I will set my program up on a Win7 machine and report back the results. BTW- I really like this library you created! -John From: Ollie Riches [mailto:[email protected]] I presume the OS is patched with the latest hotfixes via windows update. Can you tell me the versions of the PresentationCore.dll, PresentationFramework.dll & System.Windows.Interactivity.dll referenced in the project? — |
I setup my application via click-once to run on a Win7 SP1 x64 laptop and I get the same result. Lines will appear via device/databinding but when I type into Terminal at the cursor and press enter, the HandleEnter event fires but consistently returns an empty line as a parameter. I’ve attached the related view/viewmodels from my application. Perhaps I have Terminal configured wrong… From: Ollie Riches [mailto:[email protected]] I presume the OS is patched with the latest hotfixes via windows update. Can you tell me the versions of the PresentationCore.dll, PresentationFramework.dll & System.Windows.Interactivity.dll referenced in the project? — |
Where are the attachments, I'm not seeing them? |
I’ve attached them again to this email. I wonder since we’re communicating via github it’s stripping off the attachments? Here’s a pic of the original email w/ attachments I sent before: [cid:[email protected]] From: Ollie Riches [mailto:[email protected]] Where are the attachments, I'm not seeing them? — |
I'm still not seeing them, can you paste the xaml & code direct into a comment? |
I just created a small sample app reproducing the problem with Terminal that you can download from our ftp server: ftp://ftp.ptagis.org/Utilities/TerminalTest.zip Here’s what the xaml looks like:
From: Ollie Riches [mailto:[email protected]] I'm still not seeing them, can you paste the xaml & code direct into a comment? — |
Here’s the accompanying ViewModel code:
From: Ollie Riches [mailto:[email protected]] I'm still not seeing them, can you paste the xaml & code direct into a comment? — |
I've created an example WPF using the control and added it to github. Could you download the zip of the code base and tell me if it works for you? |
Same behavior: I type in the word TEST and hit RETURN and nothing is added to the output. I put in a breakpoint in the ExampleViewModel.AddItem and the item parameter is an empty string. From: Ollie Riches [mailto:[email protected]] I've created an example WPF using the control and added it to github. Could you download the zip of the code base and tell me if it works for you? — |
Okay, I've managed to get your code working, but there are a couple of mistakes.
public class MainViewModel : ViewModelBase
} |
Could you take the screen shot of the loaded modules again and order them by Path for me so I can compare and look for any differences? thanks Ollie. |
ASLO: I fixed the mistakes in my sample but still getting empty string passed in as command parameter... |
sorry, could you do it again, order by Path but expand the version column so I can see the full version of the assembly :) |
Ollie: I had my colleague download and try the example - he gets the same behavior has me. Since It's getting late on your side of the pond this can wait if need be. |
I've put the debug output here: ftp://ftp.ptagis.org/Utilities/TerminalDebugOutput.txt. Looking at your screenshot above, shouldn't the 'some text' have been added to the output above the prompt after the ENTER key was pressed and then the prompt would be cleared? That's my understanding of how Terminal executes commands. |
Added more debugging to help investigate issue #6
I've updated the debugging in Terminal.cs, can you re-run the test and paste the debug output. It looks like there isn't an instance of an Inline class after the Prompt Inline is inserted. |
Updated with a possible fix for issue #6 - it wasn't adding an empty Inline after the prompt of some systems, added code to explicitly add it
I've updated Termiinal.cs again with a possible fix for the issue. Can you test and paste the debug output. |
I think it’s closer. I’ve gone ahead and updated the debug output from the last ftp link I sent you. First ENTER after ‘TEST’ doesn’t seem to work, but subsequent typing and ENTER does. It still appears the backspace/delete keys are not working however. |
Updated Terminal.cs again, can you test and paste the debug output. |
Done – see debug output on ftp. |
running out of ideas - it appears something to do with the FlowDocument inside the RichTextBox and the CaretPosition. I've made another subtle change, can you test and paste the debug output. |
OK – I updated the debug file and tested with a pasted line from the Clipboard. No problem dropping this. I’m not that familiar with FlowDocument/RichTextBox. When I get some time (one day?) I’ll brush up and see if I can come up with something. I truly appreciate the effort! |
When I hit an enter key after typing a command the HandleEnterKey does not seem to capture the line. AggregateAfterPrompt() seems to always return an empty line.
I've installed the latest from NUGET version 1.29 and setup a sample similar to the examples you demonstrated. Seems to be the same problem as the last comment entered here: http://awkwardcoder.blogspot.co.uk/2014/01/simple-f-repl-in-wpf-part-4.html
The text was updated successfully, but these errors were encountered: