Open hattpa opened 7 years ago
I'm getting the same issue. The error I've found in the event manager is as follows:
Application: Plak.Windows.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException at System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack) at System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[]) at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[]) at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object[], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef) at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean) at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType) at System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean) at System.AppDomain.GetTargetFrameworkName()
Sorry that it's all inline. Also, I don't know anything about .NET actually attempt to fix via a PR...sorry.
Thanks for responding. For now I've installed Xming (http://www.straightrunning.com/XmingNotes/) on Windows 10, so from the bash prompt I can access the Windows clipboard using xclip.
I haven’t tested after Creators Update. According to this post by @bitcrazed wcopy
calls can now be replaced by clip.exe
calls:
Using interop in Creators Update you can pipe command output to, for example, clip.exe:
$ ls -afg | clip.exe
For the reverse direction, paste.exe
may be useful. I haven’t tried yet, but if that’s true this makes plak
redundant since it’s probably a less efficient implementation.
Sander,
I can assure you that plak is useful to me. I use multiple kitty (9bis) sessions to different hosts and don't want to run an x server just to give it access to the clipboard. This is the only app I've seen that can both paste and copy from the network and allows different apps to interact with it.
The main problem is that it's missing a very important dll. As you know, this app is written in F#, and it needs the main core dll to function. I found this out from running process monitor and it was looking for FSharp.Core.dll
If you could package this dll with it in the releases section or at least link to it, that would be great.
Thank you for the feedback @tech128. Glad to hear Plak can still be useful.
Just to better understand your use case: Does KiTTY’s own copypaste solution not suffice for this use case? Do you use Plak as a local server to copypaste with multiple remote hosts? Plak was designed to only support incoming HTTP connections from localhost
, did you use an SSH tunnel or some other mechanism to make it available?
It’s been long ago since I’ve used F# or even Windows for development. My last experience was the first Plak build in 2016. So I am unsure about current best practices for packaging or otherwise referring to FSharp.Core. Ideally the project would be released using continuous integration (GitHub Actions) in a way that can be validated – pull requests for that are welcome. For now, I have added some instructions to the README: https://github.com/sander/plak/compare/124ce6f4a1e31598c62b4e26629141d956a5b7f0...bad3382749be636100f4e9d0e0bdc470ed8b0548.
Sander,
No unfortunately kitty's own copy / paste does not work well, it only works for 1 page at a time at the most + it copies line numbers or other items on the screen that it's not supposed to.
When I use the native selection modes in micro / nano / tmux it doesn't work at all unless X is forwarded so I had to write a wrapper for xclip that decides what to do based upon the environment it's currently in.
I run a copy of plak on each windows machine and then use tunnels to tunnel back to its port.
I just have to remember to setup different port forwardings for each client otherwise the first client to connect will get clipboard access and the rest will not.
There's other clipboard sync programs out there now that can work over the internet but I'd rather not rely on those as my main solution since I prefer local solutions where possible.
I'd like to also have pcopy and clipto working as additional support when I can integrate them.
Thanks for your interest.
I'm trying to use Plak on Windows 10, Surface Pro 3. Created start menu shortcut with port 8080. When double clicking to launch the shortcut, cursor briefly shows activity, but Plak doesn't appear in Task Manager. Also testing from within the bash environment (.bashrc contains necessary Plak commands), no copy or paste appears to work.