Skip to content
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

Designer preview doesn't work for F# projects #150

Open
MangelMaxime opened this issue Dec 31, 2024 · 0 comments
Open

Designer preview doesn't work for F# projects #150

MangelMaxime opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MangelMaxime
Copy link

Describe the bug

I am trying to preview a XAML file inside of an F# project and this does not work.

CleanShot 2024-12-31 at 14 23 27@2x

To Reproduce

  1. dotnet new avalonia.app -n Avalonia.FSharp --lang F#
  2. code Avalonia.FSharp
  3. Open MainWindow.axaml
  4. Click on the preview button and see that you get a grid but not text displayed

Avalonia for VS Code

0.0.32

Avalonia version

11.2.1

VS Code version

1.96.0

Relevant log output

2024-12-31 11:17:39.697 [info] Creating language service
2024-12-31 11:17:39.697 [info] Starting Avalonia Language Server...
2024-12-31 11:17:39.697 [info] [Trace - 11:17:39 AM] Sending request 'initialize - (0)'.
2024-12-31 11:17:40.013 [info] [Trace - 11:17:40 AM] Received response 'initialize - (0)' in 506ms.
2024-12-31 11:17:40.013 [info] [Trace - 11:17:40 AM] Sending notification 'initialized'.
2024-12-31 11:17:40.015 [info] [Trace - 11:17:40 AM] Sending notification 'workspace/didChangeConfiguration'.
2024-12-31 11:17:40.046 [info] [Trace - 11:17:40 AM] Received request 'client/registerCapability - (1)'.
2024-12-31 11:17:40.046 [info] [Trace - 11:17:40 AM] Sending response 'client/registerCapability - (1)'. Processing request took 0ms
2024-12-31 11:17:40.047 [info] [Trace - 11:17:40 AM] Received request 'workspace/configuration - (2)'.
2024-12-31 11:17:40.047 [info] [Trace - 11:17:40 AM] Sending response 'workspace/configuration - (2)'. Processing request took 1ms
2024-12-31 11:17:40.061 [info] [Trace - 11:17:40 AM] Received request 'workspace/configuration - (3)'.
2024-12-31 11:17:40.061 [info] [Trace - 11:17:40 AM] Sending response 'workspace/configuration - (3)'. Processing request took 0ms
2024-12-31 11:17:42.339 [info] [Trace - 11:17:42 AM] Sending notification 'textDocument/didOpen'.
2024-12-31 11:17:42.355 [info] [Trace - 11:17:42 AM] Received request 'workspace/configuration - (4)'.
2024-12-31 11:17:42.355 [info] [Trace - 11:17:42 AM] Sending response 'workspace/configuration - (4)'. Processing request took 0ms
2024-12-31 11:17:42.367 [info] [Trace - 11:17:42 AM] Received notification 'window/logMessage'.
2024-12-31 11:17:42.367 [info] [Info  - 11:17:42 AM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: ** DidOpenText: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml | Uri='file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml'
2024-12-31 11:17:48.841 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:17:50.567 [info] [EXT - INFO] Solution data path path: /var/folders/_8/gq0vkcsn325fwkfpb5t2t_jc0000gn/T/Avalonia.FSharp.json
2024-12-31 11:17:50.752 [info] parser process args: /bin/sh,-c,"/usr/local/share/dotnet/dotnet" "/Users/mmangel/.vscode/extensions/avaloniateam.vscode-avalonia-0.0.32/solutionParserTool/SolutionParser.dll" "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp"
2024-12-31 11:17:51.046 [info] parser process exited with code 0
2024-12-31 11:17:51.367 [info]   Determining projects to restore...

2024-12-31 11:17:51.522 [info]   All projects are up-to-date for restore.

2024-12-31 11:17:51.771 [info]   Avalonia.FSharp -> /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll

2024-12-31 11:17:51.783 [info] 

2024-12-31 11:17:51.783 [info] Build succeeded.

2024-12-31 11:17:51.783 [info]     0 Warning(s)
    0 Error(s)

2024-12-31 11:17:51.784 [info] 
Time Elapsed 00:00:00.61

2024-12-31 11:17:51.793 [info] Previewer assets generated at /Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll
2024-12-31 11:17:51.794 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:17:51.797 [info] PreviewServer.start /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 11:17:51.797 [info] Previewer process started with args: exec,--runtimeconfig "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.runtimeconfig.json",--depsfile "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.deps.json" "/Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll",--method avalonia-remote,--transport tcp-bson://127.0.0.1:8003/,--method html,--html-url http://127.0.0.1:8002,"/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll"
2024-12-31 11:17:51.797 [info] Preview server listening on port 8003
2024-12-31 11:17:51.798 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:17:51.886 [info] Preview server connected on port 8003
2024-12-31 11:17:51.891 [info] Initializing application in design mode

2024-12-31 11:17:51.894 [info] Obtaining AppBuilder instance from Avalonia.FSharp.Program

2024-12-31 11:17:51.928 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 11:17:52.517 [info] Sending StartDesignerSessionMessage

2024-12-31 11:17:52.518 [info] {"SessionId":"6594c2b1-4d6d-4638-aad2-93efb2a55354"}
2024-12-31 11:17:52.518 [info] Start designer session message received.
2024-12-31 11:17:53.164 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:17:54.247 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:02.987 [info] [Trace - 11:18:02 AM] Sending notification 'textDocument/didChange'.
2024-12-31 11:18:03.007 [info] [Trace - 11:18:03 AM] Sending request 'textDocument/completion - (1)'.
2024-12-31 11:18:03.028 [info] [Trace - 11:18:03 AM] Received response 'textDocument/completion - (1)' in 21ms.
2024-12-31 11:18:03.324 [info] [Trace - 11:18:03 AM] Sending notification 'textDocument/didSave'.
2024-12-31 11:18:03.327 [info] [Trace - 11:18:03 AM] Received notification 'window/logMessage'.
2024-12-31 11:18:03.327 [info] [Info  - 11:18:03 AM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: DidSaveTextDocumentParams OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams | Request='OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams'
2024-12-31 11:18:03.333 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:03.649 [info] [Trace - 11:18:03 AM] Sending notification 'workspace/didChangeWatchedFiles'.
2024-12-31 11:18:14.288 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:16.005 [info] [Trace - 11:18:16 AM] Sending notification 'textDocument/didChange'.
2024-12-31 11:18:17.113 [info] [Trace - 11:18:17 AM] Sending notification 'textDocument/didSave'.
2024-12-31 11:18:17.129 [info] [Trace - 11:18:17 AM] Received notification 'window/logMessage'.
2024-12-31 11:18:17.129 [info] [Info  - 11:18:17 AM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: DidSaveTextDocumentParams OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams | Request='OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams'
2024-12-31 11:18:17.130 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:17.447 [info] [Trace - 11:18:17 AM] Sending notification 'workspace/didChangeWatchedFiles'.
2024-12-31 11:18:24.264 [info] [Trace - 11:18:24 AM] Sending notification 'textDocument/didOpen'.
2024-12-31 11:18:24.271 [info] [Trace - 11:18:24 AM] Received request 'workspace/configuration - (5)'.
2024-12-31 11:18:24.271 [info] [Trace - 11:18:24 AM] Sending response 'workspace/configuration - (5)'. Processing request took 1ms
2024-12-31 11:18:24.272 [info] [Trace - 11:18:24 AM] Received notification 'window/logMessage'.
2024-12-31 11:18:24.272 [info] [Info  - 11:18:24 AM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: ** DidOpenText: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/App.axaml | Uri='file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/App.axaml'
2024-12-31 11:18:24.305 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:26.164 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:34.873 [info] [Trace - 11:18:34 AM] Sending notification 'textDocument/didClose'.
2024-12-31 11:18:34.881 [info] [Trace - 11:18:34 AM] Received notification 'window/logMessage'.
2024-12-31 11:18:34.881 [info] [Info  - 11:18:34 AM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: ** Did Close Doc: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/App.axaml | Uri='file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/App.axaml'
2024-12-31 11:18:35.601 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:18:35.601 [info] Previewer process already started: 20745
2024-12-31 11:18:35.601 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:18:36.625 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:36.843 [info] Previwer panel disposed
2024-12-31 11:18:36.872 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:36.878 [info] Preview server closed for /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 11:18:36.878 [info] Previewer process exited with code null
2024-12-31 11:18:38.584 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:18:38.585 [info] PreviewServer.start /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 11:18:38.586 [info] Previewer process started with args: exec,--runtimeconfig "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.runtimeconfig.json",--depsfile "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.deps.json" "/Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll",--method avalonia-remote,--transport tcp-bson://127.0.0.1:8003/,--method html,--html-url http://127.0.0.1:8002,"/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll"
2024-12-31 11:18:38.586 [info] Preview server listening on port 8003
2024-12-31 11:18:38.587 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:18:38.661 [info] Preview server connected on port 8003
2024-12-31 11:18:38.661 [info] Preview server connected on port 8003
2024-12-31 11:18:38.667 [info] Initializing application in design mode

2024-12-31 11:18:38.671 [info] Obtaining AppBuilder instance from Avalonia.FSharp.Program

2024-12-31 11:18:38.701 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 11:18:38.701 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 11:18:38.802 [info] Sending StartDesignerSessionMessage

2024-12-31 11:18:38.803 [info] {"SessionId":"5bcf5097-e526-4639-a1d2-e146594ef1ce"}
2024-12-31 11:18:38.803 [info] Start designer session message received.
2024-12-31 11:18:38.803 [info] {"SessionId":"5bcf5097-e526-4639-a1d2-e146594ef1ce"}
2024-12-31 11:18:39.951 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:39.951 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:41.953 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:18:41.953 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:25:20.567 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:25:20.567 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:10.467 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:10.467 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:15.355 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:28:15.355 [info] Previewer process already started: 21099
2024-12-31 11:28:15.355 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:28:16.370 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:16.370 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:20.137 [info] [EXT - INFO] Solution data path path: /var/folders/_8/gq0vkcsn325fwkfpb5t2t_jc0000gn/T/Avalonia.FSharp.json
2024-12-31 11:28:20.331 [info] parser process args: /bin/sh,-c,"/usr/local/share/dotnet/dotnet" "/Users/mmangel/.vscode/extensions/avaloniateam.vscode-avalonia-0.0.32/solutionParserTool/SolutionParser.dll" "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp"
2024-12-31 11:28:20.660 [info] parser process exited with code 0
2024-12-31 11:28:21.025 [info]   Determining projects to restore...

2024-12-31 11:28:21.182 [info]   All projects are up-to-date for restore.

2024-12-31 11:28:22.554 [info]   Avalonia.FSharp -> /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll

2024-12-31 11:28:22.562 [info] 

2024-12-31 11:28:22.562 [info] Build succeeded.

2024-12-31 11:28:22.562 [info]     0 Warning(s)
    0 Error(s)

2024-12-31 11:28:22.563 [info] 
Time Elapsed 00:00:01.73

2024-12-31 11:28:22.577 [info] Previewer assets generated at /Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll
2024-12-31 11:28:30.084 [info] [Trace - 11:28:30 AM] Sending notification 'textDocument/didChange'.
2024-12-31 11:28:30.563 [info] [Trace - 11:28:30 AM] Sending notification 'textDocument/didSave'.
2024-12-31 11:28:30.566 [info] [Trace - 11:28:30 AM] Received notification 'window/logMessage'.
2024-12-31 11:28:30.566 [info] [Info  - 11:28:30 AM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: DidSaveTextDocumentParams OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams | Request='OmniSharp.Extensions.LanguageServer.Protocol.Models.DidSaveTextDocumentParams'
2024-12-31 11:28:30.582 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:30.582 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:30.897 [info] [Trace - 11:28:30 AM] Sending notification 'workspace/didChangeWatchedFiles'.
2024-12-31 11:28:32.053 [info] Previwer panel disposed
2024-12-31 11:28:32.096 [info] Preview server closed for /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 11:28:32.096 [info] Preview server closed for /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 11:28:32.096 [info] Previewer process exited with code null
2024-12-31 11:28:33.221 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:28:33.221 [info] PreviewServer.start /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 11:28:33.222 [info] Previewer process started with args: exec,--runtimeconfig "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.runtimeconfig.json",--depsfile "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.deps.json" "/Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll",--method avalonia-remote,--transport tcp-bson://127.0.0.1:8003/,--method html,--html-url http://127.0.0.1:8002,"/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll"
2024-12-31 11:28:33.223 [info] Preview server listening on port 8003
2024-12-31 11:28:33.223 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 11:28:33.330 [info] Preview server connected on port 8003
2024-12-31 11:28:33.330 [info] Preview server connected on port 8003
2024-12-31 11:28:33.330 [info] Preview server connected on port 8003
2024-12-31 11:28:33.335 [info] Initializing application in design mode

2024-12-31 11:28:33.338 [info] Obtaining AppBuilder instance from Avalonia.FSharp.Program

2024-12-31 11:28:33.370 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 11:28:33.370 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 11:28:33.370 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 11:28:33.468 [info] Sending StartDesignerSessionMessage

2024-12-31 11:28:33.468 [info] {"SessionId":"bc4e2636-619a-49d0-acfe-925c3a91fa29"}
2024-12-31 11:28:33.468 [info] Start designer session message received.
2024-12-31 11:28:33.468 [info] {"SessionId":"bc4e2636-619a-49d0-acfe-925c3a91fa29"}
2024-12-31 11:28:33.468 [info] {"SessionId":"bc4e2636-619a-49d0-acfe-925c3a91fa29"}
2024-12-31 11:28:33.468 [info] Start designer session message received.
2024-12-31 11:28:34.598 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:34.598 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:34.598 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:34.608 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:34.608 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:28:34.608 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:34:37.582 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:34:37.582 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:34:37.582 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 11:34:49.428 [info] [Trace - 11:34:49 AM] Sending notification '$/setTrace'.
2024-12-31 11:38:04.349 [info] [Trace - 11:38:04 AM] Sending notification '$/setTrace'.
2024-12-31 11:38:14.451 [info] [Trace - 11:38:14 AM] Sending notification '$/setTrace'.
2024-12-31 11:44:09.850 [info] [Trace - 11:44:09 AM] Sending notification '$/setTrace'.
2024-12-31 11:49:52.966 [info] [Trace - 11:49:52 AM] Sending notification '$/setTrace'.
2024-12-31 11:54:24.789 [info] [Trace - 11:54:24 AM] Sending notification '$/setTrace'.
2024-12-31 14:20:19.267 [info] [Trace - 2:20:19 PM] Sending notification '$/setTrace'.
2024-12-31 14:22:36.694 [info] Previwer panel disposed
2024-12-31 14:22:36.733 [info] Preview server closed for /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 14:22:36.733 [info] Preview server closed for /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 14:22:36.733 [info] Preview server closed for /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 14:22:36.733 [info] Previewer process exited with code null
2024-12-31 14:22:37.922 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 14:22:37.922 [info] PreviewServer.start /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 14:22:37.923 [info] Previewer process started with args: exec,--runtimeconfig "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.runtimeconfig.json",--depsfile "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.deps.json" "/Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll",--method avalonia-remote,--transport tcp-bson://127.0.0.1:8003/,--method html,--html-url http://127.0.0.1:8002,"/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll"
2024-12-31 14:22:37.923 [info] Preview server listening on port 8003
2024-12-31 14:22:37.924 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 14:22:38.002 [info] Preview server connected on port 8003
2024-12-31 14:22:38.002 [info] Preview server connected on port 8003
2024-12-31 14:22:38.002 [info] Preview server connected on port 8003
2024-12-31 14:22:38.002 [info] Preview server connected on port 8003
2024-12-31 14:22:38.007 [info] Initializing application in design mode

2024-12-31 14:22:38.010 [info] Obtaining AppBuilder instance from Avalonia.FSharp.Program

2024-12-31 14:22:38.041 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 14:22:38.041 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 14:22:38.041 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 14:22:38.041 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 14:22:38.140 [info] Sending StartDesignerSessionMessage

2024-12-31 14:22:38.141 [info] {"SessionId":"a10b01b1-618d-4756-9b4a-03e7e9f5cc3f"}
2024-12-31 14:22:38.141 [info] Start designer session message received.
2024-12-31 14:22:38.141 [info] {"SessionId":"a10b01b1-618d-4756-9b4a-03e7e9f5cc3f"}
2024-12-31 14:22:38.141 [info] {"SessionId":"a10b01b1-618d-4756-9b4a-03e7e9f5cc3f"}
2024-12-31 14:22:38.141 [info] Start designer session message received.
2024-12-31 14:22:38.141 [info] {"SessionId":"a10b01b1-618d-4756-9b4a-03e7e9f5cc3f"}
2024-12-31 14:22:39.208 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.208 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.208 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.208 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.217 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.217 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.217 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:22:39.217 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:24:35.875 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:24:35.875 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:24:35.875 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:24:35.875 [info] {"Error":null,"Handle":null,"Exception":null}
2024-12-31 14:25:12.038 [info] [Trace - 2:25:12 PM] Sending request 'shutdown - (2)'.
2024-12-31 14:25:12.242 [info] [Trace - 2:25:12 PM] Received response 'shutdown - (2)' in 229ms.
2024-12-31 14:25:12.242 [info] [Trace - 2:25:12 PM] Sending notification 'exit'.
2024-12-31 14:25:12.243 [info] Language client stopped
2024-12-31 14:25:13.986 [info] Creating language service
2024-12-31 14:25:13.986 [info] Starting Avalonia Language Server...
2024-12-31 14:25:13.986 [info] [Trace - 2:25:13 PM] Sending request 'initialize - (0)'.
2024-12-31 14:25:14.470 [info] [Trace - 2:25:14 PM] Received response 'initialize - (0)' in 508ms.
2024-12-31 14:25:14.470 [info] [Trace - 2:25:14 PM] Sending notification 'initialized'.
2024-12-31 14:25:14.472 [info] [Trace - 2:25:14 PM] Sending notification 'workspace/didChangeConfiguration'.
2024-12-31 14:25:14.503 [info] [Trace - 2:25:14 PM] Received request 'client/registerCapability - (1)'.
2024-12-31 14:25:14.503 [info] [Trace - 2:25:14 PM] Sending response 'client/registerCapability - (1)'. Processing request took 1ms
2024-12-31 14:25:14.504 [info] [Trace - 2:25:14 PM] Received request 'workspace/configuration - (2)'.
2024-12-31 14:25:14.504 [info] [Trace - 2:25:14 PM] Sending response 'workspace/configuration - (2)'. Processing request took 0ms
2024-12-31 14:25:14.519 [info] [Trace - 2:25:14 PM] Received request 'workspace/configuration - (3)'.
2024-12-31 14:25:14.519 [info] [Trace - 2:25:14 PM] Sending response 'workspace/configuration - (3)'. Processing request took 0ms
2024-12-31 14:25:15.069 [info] [Trace - 2:25:15 PM] Sending notification '$/setTrace'.
2024-12-31 14:25:15.213 [info] [Trace - 2:25:15 PM] Sending notification 'textDocument/didOpen'.
2024-12-31 14:25:15.226 [info] [Trace - 2:25:15 PM] Received request 'workspace/configuration - (4)'.
2024-12-31 14:25:15.227 [info] [Trace - 2:25:15 PM] Sending response 'workspace/configuration - (4)'. Processing request took 0ms
2024-12-31 14:25:15.249 [info] [Trace - 2:25:15 PM] Received notification 'window/logMessage'.
2024-12-31 14:25:15.249 [info] [Info  - 2:25:15 PM] AvaloniaLanguageServer.Handlers.TextDocumentSyncHandler: ** DidOpenText: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml | Uri='file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml'
2024-12-31 14:25:20.674 [info] Command avalonia.previewProcess, file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 14:25:20.674 [info] PreviewServer.start /Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll
2024-12-31 14:25:20.675 [info] Previewer process started with args: exec,--runtimeconfig "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.runtimeconfig.json",--depsfile "/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.deps.json" "/Users/mmangel/.nuget/packages/avalonia/11.2.1/tools/netstandard2.0/designer/Avalonia.Designer.HostApp.dll",--method avalonia-remote,--transport tcp-bson://127.0.0.1:8003/,--method html,--html-url http://127.0.0.1:8002,"/Users/mmangel/Workspaces/Temp/Avalonia.FSharp/bin/Debug/net9.0/Avalonia.FSharp.dll"
2024-12-31 14:25:20.675 [info] Preview server listening on port 8003
2024-12-31 14:25:20.675 [info] Show Preview to side: file:///Users/mmangel/Workspaces/Temp/Avalonia.FSharp/MainWindow.axaml
2024-12-31 14:25:20.767 [info] Preview server connected on port 8003
2024-12-31 14:25:20.774 [info] Initializing application in design mode

2024-12-31 14:25:20.777 [info] Obtaining AppBuilder instance from Avalonia.FSharp.Program

2024-12-31 14:25:20.809 [info] {"Uri":"http://127.0.0.1:8002/"}
2024-12-31 14:25:20.915 [info] Sending StartDesignerSessionMessage

2024-12-31 14:25:20.916 [info] {"SessionId":"ee2d193e-a9be-47b1-9cc8-3360ae2ab2f5"}
2024-12-31 14:25:20.916 [info] Start designer session message received.
2024-12-31 14:25:22.036 [info] {"Error":null,"Handle":null,"Exception":null}


### Additional context

Note that the same setup works with the C# template.
@MangelMaxime MangelMaxime added the bug Something isn't working label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant