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

IDE does not work if projects/ folder does not exist #159

Closed
giuliomoro opened this issue Oct 6, 2016 · 4 comments
Closed

IDE does not work if projects/ folder does not exist #159

giuliomoro opened this issue Oct 6, 2016 · 4 comments
Labels
Milestone

Comments

@giuliomoro
Copy link
Contributor

If the projects folder does not exist, you start the IDE and you cannot even display or load examples.
The IDE log gives this sort of things (alternating between "can't find projects/basic" and "can't find projects/" :

{ Error: ENOENT: no such file or directory, scandir '/root/Bela/projects/basic/'
    at Error (native)
  cause:
   { Error: ENOENT: no such file or directory, scandir '/root/Bela/projects/basic/'
       at Error (native)
     errno: -2,
     code: 'ENOENT',
     syscall: 'scandir',
     path: '/root/Bela/projects/basic/' },
  isOperational: true,
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/root/Bela/projects/basic/' }
{ Error: ENOENT: no such file or directory, scandir '/root/Bela/projects/'
    at Error (native)
  cause:
   { Error: ENOENT: no such file or directory, scandir '/root/Bela/projects/'
       at Error (native)
     errno: -2,
     code: 'ENOENT',
     syscall: 'scandir',
     path: '/root/Bela/projects/' },
  isOperational: true,
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/root/Bela/projects/' }

expected behaviour: it should either print a warning or anyhow not hang (e.g.: it could create the projects folder itself).

@LBDonovan
Copy link
Contributor

It would only be realistic to check for this on startup, otherwise we're adding a lot of extra CPU usage for checking every folder exists every time it is used.

I don't think it's unreasonable for the IDE to expect a certain file structure and fail if it doesn't find it. But a decent error message would be nice at least.

@giuliomoro
Copy link
Contributor Author

sure you could just issue a mkdir -p $YOURBELAFOLDER/projects at startup .

@giuliomoro giuliomoro added this to the december 2016 milestone Oct 24, 2016
@giuliomoro
Copy link
Contributor Author

@LBDonovan I think this was fixed?

@giuliomoro giuliomoro added the IDE label Jun 20, 2017
@giuliomoro
Copy link
Contributor Author

Nope.

Dec 20 20:16:46 bela node[12852]: { Error: ENOENT: no such file or directory, scandir '/root/Bela/projects/'
Dec 20 20:16:46 bela node[12852]:   cause:
Dec 20 20:16:46 bela node[12852]:    { Error: ENOENT: no such file or directory, scandir '/root/Bela/projects/'
Dec 20 20:16:46 bela node[12852]:      errno: -2,
Dec 20 20:16:46 bela node[12852]:      code: 'ENOENT',
Dec 20 20:16:46 bela node[12852]:      syscall: 'scandir',
Dec 20 20:16:46 bela node[12852]:      path: '/root/Bela/projects/' },
Dec 20 20:16:46 bela node[12852]:   isOperational: true,
Dec 20 20:16:46 bela node[12852]:   errno: -2,
Dec 20 20:16:46 bela node[12852]:   code: 'ENOENT',
Dec 20 20:16:46 bela node[12852]:   syscall: 'scandir',
Dec 20 20:16:46 bela node[12852]:   path: '/root/Bela/projects/' }

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

No branches or pull requests

2 participants