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

object reference not set of an instance of object when complete code in cshtml #85

Open
hyosri opened this issue May 7, 2024 · 3 comments

Comments

@hyosri
Copy link

hyosri commented May 7, 2024

Hello,

I using Codeium with Visual Studio 2022 for a long time and I like it so much but after the last update for VS I got an error "object reference not set of an instance of object"each time I tried to complete code using the VS suggestion menu.
I tried many solutions uninstall and install again, delete all cash folders for VS but no way.
Now I uninstall Codeium to be able to work with .cshtml
Please I hope to find a solution for this issue so I need to reinstall it again

Codium version = 1.8.27

Microsoft Visual Studio Enterprise 2022
Version 17.9.5
VisualStudio.17.Release/17.9.5+34723.18
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Enterprise

ASP.NET and Web Tools 17.9.199.22661
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2012 17.9.199.22661
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 17.9.199.22661
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 17.9.199.22661
Azure Functions and Web Jobs Tools

C# Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Azure Tools for Visual Studio 2.9
Support for Azure Cloud Services projects

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.9.2
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Oracle Developer Tools for Visual Studio 21.11.0.0
Oracle Developer Tools for Visual Studio Copyright (c) 2005, 2023

Razor (ASP.NET Core) 17.9.2.2412004+684740676513b3b208d5bd5b7f8786dab8d287b7
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.9.55.1
Microsoft SQL Server Data Tools

TypeScript Tools 17.0.30103.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.9.0-beta.23614.3+a521e1cd420beb56c15faf6836184fadd2b7937a
Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.
Thanks

@shadijhade
Copy link

Happens with me too I'm using Microsoft Visual Studio Enterprise 2022 17.9.6 and Microsoft Visual Studio Enterprise 2022 Preview 17.10.0 preview 7.0 default extensions.

@yznahmad
Copy link

yznahmad commented Jun 6, 2024

same here.

  • This problem is in ASP.NET Web Applications (.NET Framework for Web Forms and MVC at aspx, html and cshtml files.)
  • In ASP.NET Core web app (MVC) applications the problem is in HTML files only, ( no problems in cshtml files )

i found a solution for this problem ( for .NET Framework apps)
go to:
Tools > Options > search for Keyboard
then on the right side, search for Codeium.CompleteSuggestion
then Under the 'Use new shortcut in:' select 'Global' then assign whatever you want as a new shortcut (* select one that is not used ) ...
this will resolve the Tab problem but you have to use the new shortcut to accept Codeium autocomplete suggestion

@yznahmad
Copy link

yznahmad commented Jun 6, 2024

Hello,

I using Codeium with Visual Studio 2022 for a long time and I like it so much but after the last update for VS I got an error "object reference not set of an instance of object"each time I tried to complete code using the VS suggestion menu. I tried many solutions uninstall and install again, delete all cash folders for VS but no way. Now I uninstall Codeium to be able to work with .cshtml Please I hope to find a solution for this issue so I need to reinstall it again

Codium version = 1.8.27

Microsoft Visual Studio Enterprise 2022 Version 17.9.5 VisualStudio.17.Release/17.9.5+34723.18 Microsoft .NET Framework Version 4.8.09032

Installed Version: Enterprise

ASP.NET and Web Tools 17.9.199.22661 ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2012 17.9.199.22661 For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 17.9.199.22661 Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 17.9.199.22661 Azure Functions and Web Jobs Tools

C# Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Azure Tools for Visual Studio 2.9 Support for Azure Cloud Services projects

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.9.2 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Oracle Developer Tools for Visual Studio 21.11.0.0 Oracle Developer Tools for Visual Studio Copyright (c) 2005, 2023

Razor (ASP.NET Core) 17.9.2.2412004+684740676513b3b208d5bd5b7f8786dab8d287b7 Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.9.55.1 Microsoft SQL Server Data Tools

TypeScript Tools 17.0.30103.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.9.0-3.24121.1+a98c90d56455379836dd5c845b35fa932b00cfa3 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.9.0-beta.23614.3+a521e1cd420beb56c15faf6836184fadd2b7937a Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio. Thanks

same here.

  • This problem is in ASP.NET Web Applications (.NET Framework for Web Forms and MVC at aspx, html and cshtml files.)
  • In ASP.NET Core web app (MVC) applications the problem is in HTML files only, ( no problems in cshtml files )

i found a solution for this problem ( for .NET Framework apps)
go to:
Tools > Options > search for Keyboard
then on the right side, search for Codeium.CompleteSuggestion
then Under the 'Use new shortcut in:' select 'Global' then assign whatever you want as a new shortcut (* select one that is not used ) ...
this will resolve the Tab problem but you have to use the new shortcut to accept Codeium autocomplete suggestion

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

No branches or pull requests

3 participants