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

error in multiproject #66

Open
SpyrosPsarras opened this issue Nov 9, 2023 · 3 comments
Open

error in multiproject #66

SpyrosPsarras opened this issue Nov 9, 2023 · 3 comments
Labels
bug Something isn't working specs-missing

Comments

@SpyrosPsarras
Copy link

SpyrosPsarras commented Nov 9, 2023

Hi. I have a workspace with multiple projects. some of them are c#.

When I try to use the GUI I see this in console

mountTo @ webviewElement.ts:512
M @ overlayWebview.ts:218
claim @ overlayWebview.ts:120
ib @ webviewEditor.ts:177
setInput @ webviewEditor.ts:168
await in setInput (async)
S @ editorPanes.ts:445
L @ editorPanes.ts:270
openEditor @ editorPanes.ts:146
(anonymous) @ editorGroupView.ts:1091
Cb @ editorGroupView.ts:1116
Bb @ editorGroupView.ts:1073
openEditor @ editorGroupView.ts:979
openEditor @ editorService.ts:551
openWebview @ webviewWorkbenchService.ts:285
$createWebviewPanel @ mainThreadWebviewPanels.ts:167
S @ rpcProtocol.ts:456
Q @ rpcProtocol.ts:441
M @ rpcProtocol.ts:371
L @ rpcProtocol.ts:297
(anonymous) @ rpcProtocol.ts:161
y @ event.ts:1140
fire @ event.ts:1171
fire @ ipc.net.ts:650
Q.onmessage @ localProcessExtensionHost.ts:581
polyfills.06fc6e6ce3bbc2a84a65.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'map')
    at u._next (main.eafb8078ea475c1eca55.js:1:24209)
    at u.__tryOrUnsub (vendor.f4f08b9ea07b2ea83881.js:1:362360)
    at u.next (vendor.f4f08b9ea07b2ea83881.js:1:361589)
    at c._next (vendor.f4f08b9ea07b2ea83881.js:1:360768)
    at c.next (vendor.f4f08b9ea07b2ea83881.js:1:360542)
    at Object.callback (main.eafb8078ea475c1eca55.js:1:1341)
    at scripts.ffc6ef5f506539fe5065.js:1:509
    at l.invokeTask (polyfills.06fc6e6ce3bbc2a84a65.js:1:7142)
    at t.runTask (polyfills.06fc6e6ce3bbc2a84a65.js:1:2538)
    at u.invokeTask [as invoke] (polyfills.06fc6e6ce3bbc2a84a65.js:1:8192)
(anonymous) @ main.eafb8078ea475c1eca55.js:1
__tryOrUnsub @ vendor.f4f08b9ea07b2ea83881.js:1
next @ vendor.f4f08b9ea07b2ea83881.js:1
_next @ vendor.f4f08b9ea07b2ea83881.js:1
next @ vendor.f4f08b9ea07b2ea83881.js:1
(anonymous) @ main.eafb8078ea475c1eca55.js:1
(anonymous) @ scripts.ffc6ef5f506539fe5065.js:1
invokeTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
runTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
invokeTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
g @ polyfills.06fc6e6ce3bbc2a84a65.js:1
y @ polyfills.06fc6e6ce3bbc2a84a65.js:1
T @ polyfills.06fc6e6ce3bbc2a84a65.js:1
setTimeout (async)
a @ polyfills.06fc6e6ce3bbc2a84a65.js:1
scheduleTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
scheduleTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
scheduleMacroTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
p @ polyfills.06fc6e6ce3bbc2a84a65.js:1
(anonymous) @ polyfills.06fc6e6ce3bbc2a84a65.js:1
C.s.<computed> @ polyfills.06fc6e6ce3bbc2a84a65.js:1
s @ vendor.f4f08b9ea07b2ea83881.js:1
__tryOrUnsub @ vendor.f4f08b9ea07b2ea83881.js:1
next @ vendor.f4f08b9ea07b2ea83881.js:1
_next @ vendor.f4f08b9ea07b2ea83881.js:1
next @ vendor.f4f08b9ea07b2ea83881.js:1
(anonymous) @ main.eafb8078ea475c1eca55.js:1
(anonymous) @ scripts.ffc6ef5f506539fe5065.js:1
invokeTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
runTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
invokeTask @ polyfills.06fc6e6ce3bbc2a84a65.js:1
g @ polyfills.06fc6e6ce3bbc2a84a65.js:1
y @ polyfills.06fc6e6ce3bbc2a84a65.js:1
T @ polyfills.06fc6e6ce3bbc2a84a65.js:1
postMessage (async)
(anonymous) @ index.html?id=0b0339d9-1e9b-411a-914e-7a5b81ac9339&origin=85802c75-99a6-47e3-9efd-1ff209da0bf0&swVersion=4&extensionId=aliasadidev.nugetpackagemanagergui&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app:1168
HostMessaging.channel.port1.onmessage @ index.html?id=0b0339d9-1e9b-411a-914e-7a5b81ac9339&origin=85802c75-99a6-47e3-9efd-1ff209da0bf0&swVersion=4&extensionId=aliasadidev.nugetpackagemanagergui&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app:308```

![image](https://github.com/aliasadidev/vscode-npm-gui/assets/13405649/0c8b62b3-8755-4371-9da2-574833ac21cb)


@aliasadidev
Copy link
Owner

Hi @SpyPower

Could you please provide the following information:

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

@SpyrosPsarras
Copy link
Author

SpyrosPsarras commented Feb 28, 2024

Sure!

Version of VSCode
image

.csproj

<Project Sdk="Microsoft.NET.Sdk.Web" InitialTargets="GitTag">

  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <AssemblyName>#removed.WebApi</AssemblyName>
    <UserSecretsId>#removed></UserSecretsId>
    <StartupObject>#removed.Program</StartupObject>
    <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
    <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
  </PropertyGroup>

  <Target Name="GitTag">
    <Exec Command="git describe --abbrev=0 --tags" ConsoleToMSBuild="true">
      <Output TaskParameter="ConsoleOutput" PropertyName="GitTag" />
    </Exec>
    <PropertyGroup>
      <GitTag>$([System.Text.RegularExpressions.Regex]::Replace($(GitTag), '^[a-zA-Z]+', ''))</GitTag>
      <Tag>$(GitTag).$([System.DateTime]::UtcNow.ToString(mmff))</Tag>
      <AssemblyVersion>$(Tag)</AssemblyVersion>
      <Version>$(Tag)</Version>
      <FileVersion>$(Tag)</FileVersion>
    </PropertyGroup>
  </Target>

  <Target Name="SpicNSpan" AfterTargets="Clean">
    <RemoveDir Directories="$(TargetDir)" />
    <RemoveDir Directories="$(BaseIntermediateOutputPath)" />
  </Target>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <ShouldCreateLogs>True</ShouldCreateLogs>
    <AdvancedSettingsExpanded>False</AdvancedSettingsExpanded>
    <UpdateAssemblyVersion>False</UpdateAssemblyVersion>
    <UpdateAssemblyFileVersion>False</UpdateAssemblyFileVersion>
    <UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
    <UpdatePackageVersion>False</UpdatePackageVersion>
    <AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
    <InheritWinAppVersionFrom>None</InheritWinAppVersionFrom>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
    <ShouldCreateLogs>True</ShouldCreateLogs>
    <AdvancedSettingsExpanded>False</AdvancedSettingsExpanded>
    <UpdateAssemblyVersion>False</UpdateAssemblyVersion>
    <UpdateAssemblyFileVersion>False</UpdateAssemblyFileVersion>
    <UpdateAssemblyInfoVersion>False</UpdateAssemblyInfoVersion>
    <UpdatePackageVersion>False</UpdatePackageVersion>
    <AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
    <InheritWinAppVersionFrom>None</InheritWinAppVersionFrom>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="Authorization\DatabaseAuthorizationHandler.cs" />
    <Compile Remove="Authorization\DatabasePolicyProvider.cs" />
    <Compile Remove="Authorization\DatabaseRequirement.cs" />
    <Compile Remove="Filters\DependencyInjectionActionFilter.cs" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="SqlScripts\*.sql" />
  </ItemGroup>

  <ItemGroup>
    <None Remove="Content\**" />
    <None Remove="SqlScripts\*.sql" />
  </ItemGroup>

  <ItemGroup>
    <None Include="Content\**">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="AspNetCore.HealthChecks.SqlServer" Version="6.0.2" />
    <PackageReference Include="AspNetCoreRateLimit" Version="4.0.2" />
    <PackageReference Include="Azure.Storage.Blobs" Version="12.10.0" />
    <PackageReference Include="ClosedXML" Version="0.95.4" />
    <PackageReference Include="CsvHelper" Version="19.0.0" />
    <PackageReference Include="dbup-core" Version="4.4.0" />
    <PackageReference Include="dbup-sqlserver" Version="4.4.0" />
    <PackageReference Include="FluentValidation" Version="10.3.4" />
    <PackageReference Include="FluentValidation.AspNetCore" Version="10.3.4" />
    <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
    <PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.21.0" />
    <PackageReference Include="Microsoft.ApplicationInsights.EventCounterCollector" Version="2.21.0" />
    <PackageReference Include="Microsoft.ApplicationInsights.SnapshotCollector" Version="1.4.4" />
    <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.24" />
    <PackageReference Include="Microsoft.Azure.SignalR" Version="1.16.1" />
    <PackageReference Include="Microsoft.Extensions.Azure" Version="1.0.0" />
    <PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="6.0.13" />
    <PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
    <PackageReference Include="Microsoft.Extensions.Logging.ApplicationInsights" Version="2.21.0" />
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.4" />
    <PackageReference Include="Serilog.AspNetCore" Version="7.0.0" />
    <PackageReference Include="Serilog.Enrichers.Environment" Version="2.3.0" />
    <PackageReference Include="Serilog.Exceptions" Version="8.4.0" />
    <PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="4.0.0" />
    <PackageReference Include="Swashbuckle.AspNetCore" Version="5.5.1" />
    <PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="5.6.3" />
    <PackageReference Include="System.Drawing.Common" Version="5.0.0" />
    <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.17.0" />
    <PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
    <PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
    <PackageReference Include="Serilog.Extensions.Logging.ApplicationInsights" Version="1.1.0" />
    <PackageReference Include="Serilog.Extensions.Hosting" Version="7.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="7.0.13" />
    <PackageReference Include="Serilog.Enrichers.CorrelationId" Version="3.0.1" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\#removed.Application.Contracts\#removed.Application.Contracts.csproj" />
    <ProjectReference Include="..\#removed.FluentValidators\#removed.FluentValidators.csproj" />
    <ProjectReference Include="..\#removed.Framework\#removed.Framework.csproj" />
    <ProjectReference Include="..\#removed.Infastructure.NotificationService\#removed.Infastructure.NotificationService.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.BlobStorage\#removed.Infrastructure.BlobStorage.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Encryption\#removed.Infrastructure.Encryption.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Export\#removed.Infrastructure.Export.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Fenerum\#removed.Infrastructure.Fenerum.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Fiken\#removed.Infrastructure.Fiken.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.HubSpot\#removed.Infrastructure.HubSpot.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.LinkMobility\#removed.Infrastructure.LinkMobility.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.PowerOffice\#removed.Infrastructure.PowerOffice.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Scrive\#removed.Infrastructure.Scrive.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Translator\#removed.Infrastructure.Translator.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.DiffPlex\#removed.Infrastructure.DiffPlex.csproj" />
    <ProjectReference Include="..\#removed.Infrastructure.Tripletex\#removed.Infrastructure.Tripletex.csproj" />
    <ProjectReference Include="..\#removed.Notifications\#removed.Notifications.csproj" />
    <ProjectReference Include="..\#removed.Presenters\#removed.Presenters.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Filters\" />
    <Folder Include="Middleware\" />
  </ItemGroup>
</Project>

OS:Pop!_OS
image

Version of vscode-npm-gui
V2.0.6
image

@TomShirley
Copy link

I'm also now getting this same issue; GUI stuck on loading with the same JS error. If i create a new dotnet 7 webapi project the gui loads, but for my existing app it's stopped working all of a sudden

@aliasadidev aliasadidev added the bug Something isn't working label Mar 13, 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 specs-missing
Projects
None yet
Development

No branches or pull requests

3 participants