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

The extension is keep loading the local csproj and never show any project references. #61

Open
Mutuduxf opened this issue Mar 1, 2023 · 4 comments

Comments

@Mutuduxf
Copy link

Mutuduxf commented Mar 1, 2023

The vscode (1.75.1) and extension is upgraded to the latest version and looks like this:

image

and I don't know if that is the reason.

image

@Dragod
Copy link

Dragod commented Apr 4, 2023

I don't get that error but the plugin do not found any nuget package from csproj file while I have plenty
https://x.pfcode.net/VujE3/nIvoqiHo15.png

@Mutuduxf
Copy link
Author

Mutuduxf commented May 2, 2023

I don't get that error but the plugin do not found any nuget package from csproj file while I have plenty https://x.pfcode.net/VujE3/nIvoqiHo15.png

This error was occurred on my laptop, the same solution works fine on a desktop.

@aliasadidev
Copy link
Owner

@Dragod @Mutuduxf

Could you please provide the following information:

  • Version of VSCode
  • The .csproj file causing the problem
  • Operating System
  • Version of vscode-npm-gui

@stephannn
Copy link

stephannn commented Jul 31, 2024

Hi,
I will just hijack this issue description because I feel like I have the same problem with on of my projects:
System: Ubuntu 24.04
VSC: 1.91.1
NPM-GUI: 2.1.0

My Project file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <Nullable>enable</Nullable>
    <BuiltInComInteropSupport>true</BuiltInComInteropSupport>
    <ApplicationManifest>app.manifest</ApplicationManifest>
    <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="Models\" />
    <AvaloniaResource Include="Assets\**" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Avalonia" Version="11.1.1" />
    <PackageReference Include="Avalonia.Controls.DataGrid" Version="11.1.1" />
    <PackageReference Include="Avalonia.Desktop" Version="11.1.1" />
    <PackageReference Include="Avalonia.ReactiveUI" Version="11.1.1" />
    <PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.1" />
    <PackageReference Include="Avalonia.Fonts.Inter" Version="11.1.1" />
    <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
    <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.1.1" />
    <!-- <PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1" /> -->
  </ItemGroup>
</Project>

So when ever I start the extension it just keeps on the loading screen. Other projects like Asp.net Core work like charm. I also cannot find any logs.

Edit:
Or can anyone tell me how to debug it? I cannot see any log for that extension.

Edit2:
When I click in VSC on Help - Toggle Debugger Tools I can see following error:

polyfills.5fb6c6c595e697c7.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'map')
    at Object.next (main.fcd6bba925869588.js:1:24515)
    at Ge.next (vendor.ddc0912aba27c337.js:1:5217)
    at Be._next (vendor.ddc0912aba27c337.js:1:4892)
    at Be.next (vendor.ddc0912aba27c337.js:1:4580)
    at Object.callback (main.fcd6bba925869588.js:1:2038)
    at scripts.81265022c8276427.js:1:509
    at v.invokeTask (polyfills.5fb6c6c595e697c7.js:1:7219)
    at L.runTask (polyfills.5fb6c6c595e697c7.js:1:2599)
    at p.invokeTask [as invoke] (polyfills.5fb6c6c595e697c7.js:1:8270)
    at Z (polyfills.5fb6c6c595e697c7.js:1:20806)

When I click on the error I get following JS code :

t.type == P && t.data && !t.data.isPeriodic && (t.cancelFn = void 0);
                            try {
                                return this._zoneDelegate.invokeTask(this, t, r, k)
                            } catch (l) {
                                if (this._zoneDelegate.handleError(this, l))
                                    throw l
                            }

Edit 3:
I just disabled the extension Avalonia for VSCode and now it is working. No idea what is the connection between there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants