question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MacOS server does not seem to work

See original GitHub issue

I downloaded the MacOS binary and put it in ~/.local/bin/marksman. echo hi | marksman server yields an ugly error.

[14:02:02 INF] <LSP Entry> Starting Marksman LSP server: {}
Unhandled exception: System.AggregateException: One or more errors occurred. (Header does not end with expected 
 character sequence: hi)
 ---> StreamJsonRpc.BadRpcHeaderException: Header does not end with expected 
 character sequence: hi
   at StreamJsonRpc.HeaderDelimitedMessageHandler.ReadHeadersAsync(CancellationToken cancellationToken)
   at StreamJsonRpc.HeaderDelimitedMessageHandler.ReadCoreAsync(CancellationToken cancellationToken)
   at StreamJsonRpc.MessageHandlerBase.ReadAsync(CancellationToken cancellationToken)
   at StreamJsonRpc.JsonRpc.ReadAndHandleRequestsAsync()
   --- End of inner exception stack trace ---
   at Ionide.LanguageServerProtocol.Server.startWithSetup[client](FSharpFunc`2 setupRequestHandlings, Stream input, Stream output, FSharpFunc`2 clientCreator, FSharpFunc`2 customizeRpc) in /Users/runner/work/marksman/marksman/LanguageServerProtocol/LanguageServerProtocol.fs:line 179
   at Ionide.LanguageServerProtocol.Server.start@268-2.Invoke(FSharpFunc`2 customizeRpc)
   at Marksman.Program.startLSP(Int32 verbosity, Boolean waitForDebugger) in /Users/runner/work/marksman/marksman/Marksman/Program.fs:line 58
   at Marksman.Program.lspCommand@87.Invoke(Tuple`2 tupledArg)
   at FSharp.SystemCommandLine.CommandBuilders.SetHandlerInt@207-2.Invoke(InvocationContext ctx)
   at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext )
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
artempyanykhcommented, Dec 23, 2022

@keynmol great! I’m going to push a new release now. (I think I nailed the meme 😅) l022ux9vti781

1reaction
keynmolcommented, Dec 23, 2022

It does fix it 😃 image

Read more comments on GitHub >

github_iconTop Results From Across the Web

If your Mac can't connect to another computer
Check your network connection​​ Your Mac may be disconnected from the network. To check your connection, choose Apple menu > System Settings, then...
Read more >
macOS Server is not compatible with macOS…
Hi,. I updated my M1 Mac mini to 12.0.1 (Monterey) and I have macOS Server installed to run Time Machine backups in a...
Read more >
"Could Not Connect to the Server" macOS Big Sur - YouTube
" Could Not Connect to the Server " Mac App Store Error Fix The Mac App Store is a wonderful place where you...
Read more >
4 Ways to Fix The Recovery Server Could Not Be Contacted ...
Reinstall macOS not working ? ... Solution 2: Check Apple System Status When the Apple server is down, you can ' t fix...
Read more >
Endlessly repeating "There was a problem connecting... ...
This error typically comes up when OSX is trying to access a file or folder on a remote server, but it cannot connect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found