ashmind / mirrorsharp

MirrorSharp is a code editor <textarea> built on Roslyn and CodeMirror
BSD 2-Clause "Simplified" License
218 stars 39 forks source link

CM6: System.InvalidOperationException: Cannot select completion when completion list is not active. #211

Open ashmind opened 1 year ago

ashmind commented 1 year ago
session.js:121 Uncaught Error: System.InvalidOperationException: Cannot select completion when completion list is not active.
   at MirrorSharp.Internal.Handlers.Shared.CompletionSupport.SelectCompletionAsync(:7177/Int32 selectedIndex, WorkSession session, ICommandResultSender sender, CancellationToken cancellationToken) in c:\Development\mirrorsharp\Common\Internal\Handlers\Shared\CompletionSupport.cs:line 42
   at MirrorSharp.Internal.Connection.ReceiveAndProcessInternalAsync(:7177/CancellationToken cancellationToken) in c:\Development\mirrorsharp\Common\Internal\Connection.cs:line 96
   at MirrorSharp.Internal.Connection.ReceiveAndProcessAsync(:7177/CancellationToken cancellationToken) in c:\Development\mirrorsharp\Common\Internal\Connection.cs:line 54
    at #receiveServerError (session.js:121:38)
    at #receiveMessage (session.js:136:33)
    at message (session.js:23:41)
    at WebSocket.message (connection.js:67:11)
ashmind commented 1 year ago

Might be fixed by latest completion improvements, let's monitor a bit

sampletext32 commented 4 months ago

if sharplab utilizes the latest version, then this problem still exists.

Reproduction:

  1. Clean input
  2. Type "Gui"
  3. Refresh page
  4. Press "Ctrl + Space" / "Cmd + Space"
  5. Press "Enter" (suggestion is not inserted)
  6. Press "Enter" again. (Error is displayed on the right side) image