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

Previewer is not available. Build the project first. Not working #88

Open
dire64 opened this issue Jan 10, 2024 · 22 comments
Open

Previewer is not available. Build the project first. Not working #88

dire64 opened this issue Jan 10, 2024 · 22 comments
Assignees
Labels
bug Something isn't working

Comments

@dire64
Copy link

dire64 commented Jan 10, 2024

Describe the bug

I am trying to develop a project using Avalonia on macOS I am on macOS 14.2.1 and VSCode but when I try to open the previewer it says "Previewer is not available. Build the project first." I click build but it seems like nothing is happening. I can click it as many times as I want and nothing happens.

I read the readme on here and noticed it says 11.0.5 causes previewer issues, I am on version 11.0.6. I am not sure how to downgrade it until this matter is resolved.

To Reproduce

Create a new Avalonia project
Try to open the previewer
When prompted to build click build
Nothing happens

Avalonia for VS Code

0.0.26

Avalonia version

11.0.6

VS Code version

1.85.1

Relevant log output

AvaloniaTeam.vscode-avalonia requested to download the .NET Runtime.
AvaloniaTeam.vscode-avalonia wants to install .NET 8.0.1~arm64 but it already exists. No downloads or changes were made.

Additional context

No response

@dire64 dire64 added the bug Something isn't working label Jan 10, 2024
@ai25395
Copy link

ai25395 commented Jan 11, 2024

Same bug for me.

@prashantvc
Copy link
Collaborator

Thanks for reporting the bug I am actively working on fixing this :)

@trampster
Copy link
Contributor

This also occurs on linux, with the axaml code completion giving the same message.

@prashantvc
Copy link
Collaborator

Could you try using the v0.0.29 version? https://github.com/AvaloniaUI/AvaloniaVSCode/releases/tag/v0.0.29

@prashantvc prashantvc self-assigned this Feb 1, 2024
@trampster
Copy link
Contributor

v0.0.29 fixes it for me on linux

@prashantvc
Copy link
Collaborator

@dire64 could you confirm v0.0.29 fixes it for you too?

@michaeljon
Copy link

Not working here. Same symptom - need build, click build, prompted to build again.

@prashantvc
Copy link
Collaborator

@michaeljon Could you share the steps to reproduce?

@dire64
Copy link
Author

dire64 commented Feb 8, 2024

Can confirm that it is fixed!

@prashantvc
Copy link
Collaborator

Closing this. Please comment if you want me to reopen it

@ScruffyDerHausmeister
Copy link

I still have the bug in v0.0.31 on linux.

@DirectorRen-TV
Copy link

I faced it too in v0.0.31 on windows 10

dotnet build .\GetStartedApp.csproj didn't fixed it, extension still wanting to build before previewing

@l0hn
Copy link

l0hn commented Sep 5, 2024

I have the same bug on macOS.

@trampster
Copy link
Contributor

Please reopen, I still have this bug on Ubuntu 22.04 v0.0.31

@fgimian
Copy link

fgimian commented Sep 19, 2024

Same issue here on Windows with the latest .NET, VS Code and related extension.

@trampster
Copy link
Contributor

trampster commented Sep 20, 2024

I asked about this on x.

This is the answer I got from Mike James:

We prioritised shipping the core functionality and have since opened it to the community contributions.
We encourage users who want specific improvements or fixes to get involved and contribute.

It seems that Avalonia are not going to fix/maintain this extension going forward. And are looking for the community to do it.

I would be willing to try fixing this, but I can't find any instructions/guides about how to get setup for debugging/developing the extension.

I asked for help on X but I did not get a response.

@toolateralus
Copy link

toolateralus commented Sep 24, 2024

yep same issue on linux mint (ubuntu 22.04 I think). Is this a configuration issue on my end, or is it confirmed a bug still?

@1ogix
Copy link

1ogix commented Sep 24, 2024

had the same issue on my macOS

@prashantvc
Copy link
Collaborator

I will take a look at this later this weekend, if you have steps to reproduce, please leave a comment

@prashantvc prashantvc reopened this Sep 25, 2024
@trampster
Copy link
Contributor

trampster commented Sep 26, 2024

@prashantvc I don't know of a set of steps that makes it work.

  1. Open axaml file
  2. Try and add a property to a xml element to get the autocomplete, get the dreaded instruction to build the project.
  3. Build the project -> doesn't help.

Same thing for the previewer

@JBrolin90
Copy link

Now I tried on Windows 11, Linux Mint Debian edition 6 (on 2 machines) All with the same result, does not load the previewer. Additionally I tried with several earlier versions 0.31 and down to 0.25. All with the same result. I would therefore assume that the problem lies in some change in VS Code itself, not the extension. I did not try to downgrade VS Code

@super-brian
Copy link

on Mac, using .net 8 sdk, vs code, Avalonia for VSCode 0.0.31, the first app did work (MyApp) the GetStartedApp doesn't work.

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