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

Subfolders prevents daemon from starting #23

Closed
pabluuz opened this issue Jan 4, 2022 · 1 comment
Closed

Subfolders prevents daemon from starting #23

pabluuz opened this issue Jan 4, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pabluuz
Copy link

pabluuz commented Jan 4, 2022

Problem:

When using subfolders, I'm unable to start daemon
image

RUNTIME ERROR
/alain/daemon.js@home

Failed to resolve module specifier "./helpers.js". Invalid relative url or base scheme isn't hierarchical.
stack:
TypeError: Failed to resolve module specifier "./helpers.js". Invalid relative url or base scheme isn't hierarchical.

Looks like relative url is valid, I coudn't find any more information how to fix this

Reproduce:

  1. set in git-pull.js:
    ['subfolder', '/alain']
  2. run /alain/daemon.js

More info:

Scripts downloaded to correct directory, and they are there
image
I've also tried to run it by

cd alain  
run daemon.js

alas to no avail

@alainbryden alainbryden added the bug Something isn't working label Jan 5, 2022
@alainbryden
Copy link
Owner

alainbryden commented Jan 9, 2022

I just wanted you to know that I accept that this is an issue for other folks, and it's unfortunately a tricky thing to test and get working throughout. I believe every script that users "helpers.js" (most of them) is using a "relative to root" path rather than a "relative to the current directory" path and it would take quite a bit of testing / changes to get them all right.

If anyone works through this and gets it all fixed with paths that work both from a folder and from root, please do make a pull request. If not, it's a low priority (because it doesn't affect me), but I will eventually attempt to get this fixed.

@alainbryden alainbryden added enhancement New feature or request help wanted Extra attention is needed and removed bug Something isn't working labels Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants