grantkrieger's avatar
grantkrieger
New Member
2 years ago
Status:
Needs Info

Git integration error 'No files to commit' after add new notebook via vscode in repo

Hi,

When we add a new notebook in vscode into a fabric repo  we are able to update into Fabric workspace and notebook is available in workspace which is great. Note we created the Notebook folder structure with the 2 files within ( .platform and notebook-content.py. We generated a new guid for .platform logicalId in vscode)

 

The challenge is once updated in Fabric workspace we are prompted to commit on doing so we get Git integration error 'No files to commit' . IF we disconnect the repo and re-connect to a new folder in git the worskspace all is fine. 

 

This work around long term may not be suitable

Similar to this
https://community.fabric.microsoft.com/t5/Issues/Git-integration-error-No-files-to-commit/idi-p/3394507

2 Comments

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi grantkrieger 

    You mentioned that you generated a new guid for .platform logicalId in vscode , can you explain it in detail ? The other file you added didn't generate a new guid, so when you update it, does it say that?

     

    Best Regards,
    Community Support Team _ Ailsa Tao

  • Hi,

    We created a random guid (logicalId) using the following in Python. This is for .platform file:

     import uuid
     logicalId = str(uuid.uuid4())  
    The notebook-content.py does not need guid (logicalId) as it uses the metadata from .platform file. The files are linked by folder structure.
     
    See examples of the files below. This is the notebook folder structure for Fabric
     
    Example .platform file:
    Example notebook-content.py file

     

    Example folder structure of 1 notebook with both files