dendron icon indicating copy to clipboard operation
dendron copied to clipboard

ENOENT error when opening repository from GitHub Repositories Extension with Dendron installed

Open wbpayne22902 opened this issue 3 years ago • 2 comments

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

  • [X] Workspace. VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
  • [ ] Lookup. Dendron's Lookup Command
  • [ ] Views. Dendron Preview, Tree View, Side Panels in the UI
  • [ ] Schema. Dendron Schemas
  • [ ] Pod. Data import from / export to Dendron
  • [ ] Publish. External Site Publish
  • [ ] Markdown. Markdown features, such as syntax support and features

Describe the bug

When using the GitHub Repositories extension with Dendron also installed in VSCode to open a GitHub repository Dendron pops up an error as follows:

ENOENT: no such file or directory, scandir '/[github username]/[repo name]'

To Reproduce

Steps to reproduce the behavior:

  1. Make Sure GitHub Repositories Extension is installed in VSCode
  2. Click on Remote Button in lower left corner.
  3. Click on Open Remote Repository in menu
  4. Click Open Repository from GitHub
  5. Either click on or search for a repository.
  6. The ENOENT pop-up will appear.

Expected behavior

No popup should appear.

Screenshots

Desktop (please complete the following information)

  • OS: macOS
  • Browser (if with published websites; include version): N/A
  • Versions (all that apply to bug):
    • Dendron Extension: 0.109.1
    • VS Code version: 1.70.2
    • Dendron CLI: N/A

Additional context

Screen Shot 2022-08-25 at 3 33 14 PM

Add any other context about the problem here.

Dendron Log file

Please attach the output of > Dendron:Dev: Open Logs here dendron.log

wbpayne22902 avatar Aug 25 '22 19:08 wbpayne22902

Hey @wbpayne22902, Thanks for reporting the bug. I am not sure if I follow this. Is this error thrown from a dendron workspace?

Harshita-mindfire avatar Aug 26 '22 11:08 Harshita-mindfire

No. no dendron workspace is loaded when this error occurs. It occurs when loading a Github Remote Repositories workspace. I think that when a workspace of any sort is loaded that the dendron extension does some sort of check for certain files to detect if the workspace being opened is a dendron workspace, and since the Github Remote Repositories workspace is not backed by any locally accessible files that the system throws an ENOENT error. I expanded the error message to confirm that the error is being generated by the dendron extension. Screen Shot 2022-08-26 at 8 11 47 AM .

wbpayne22902 avatar Aug 26 '22 12:08 wbpayne22902