Coder Social home page Coder Social logo

Comments (5)

eamodio avatar eamodio commented on June 9, 2024

@axosoft-ramint Here is an excerpt from the log:

[2024-04-25 12:25:55.913] [  5dc] WorkspacesService.getWorkspaces
[2024-04-25 12:25:55.914] [  5dd] SubscriptionService.ensureSession(e=false)
[2024-04-25 12:25:55.914] [  5dd] SubscriptionService.ensureSession(e=false) completed [0ms]
[2024-04-25 12:25:55.929] [   35] WebviewView(gitlens.views.home) Resolving view
[2024-04-25 12:25:55.931] [   35] WebviewView(gitlens.views.home) Showing view
[2024-04-25 12:25:55.931] [  5de] WebviewController(gitlens.views.home).show
[2024-04-25 12:25:55.931] [  5df] GitProviderService.hasUnsafeRepositories
[2024-04-25 12:25:55.931] [  5df] GitProviderService.hasUnsafeRepositories returned false [0ms]
[2024-04-25 12:25:55.932] [  5e0] SubscriptionService.ensureSession(e=false)
[2024-04-25 12:25:55.932] [  5e0] SubscriptionService.ensureSession(e=false) completed [0ms]
[2024-04-25 12:25:55.932] [   37] WebviewView(gitlens.views.account) Resolving view
[2024-04-25 12:25:55.933] [   37] WebviewView(gitlens.views.account) Showing view
[2024-04-25 12:25:55.933] [  5e2] WebviewController(gitlens.views.account).show
[2024-04-25 12:25:55.933] [  5e3] SubscriptionService.ensureSession(e=false)
[2024-04-25 12:25:55.933] [  5e3] SubscriptionService.ensureSession(e=false) completed [0ms]
[2024-04-25 12:25:55.933] [  5e4] SubscriptionService.ensureSession(e=false)
[2024-04-25 12:25:55.933] [  5e4] SubscriptionService.ensureSession(e=false) completed [0ms]
[2024-04-25 12:25:55.933] [  5dc] WorkspacesService.getWorkspaces — failed [19ms]
TypeError: Cannot read properties of null (reading 'map')

My guess is that we failed to parse the local workspace file correctly (maybe caused by a GKC issue?). We probably just need more robust handling.

from vscode-gitlens.

axosoft-ramint avatar axosoft-ramint commented on June 9, 2024

@juanmiromero Would you mind sending me the contents of your localWorkspaces.json file in your {user}/.gk folder?

from vscode-gitlens.

axosoft-ramint avatar axosoft-ramint commented on June 9, 2024

I was able to repro this by setting the repositories property to null or just not having it be there on a local workspace. This should not theoretically be possible but likely is happening as a result of some changes on GKD side. Pushed a fix which should be available to test in the next pre-release.

from vscode-gitlens.

axosoft-ramint avatar axosoft-ramint commented on June 9, 2024

Fixed in commit: 765c42f

from vscode-gitlens.

axosoft-ramint avatar axosoft-ramint commented on June 9, 2024

@juanmiromero Please check on the latest pre-release when you get the chance and let us know if the error is gone or not. Thanks!

from vscode-gitlens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.