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

Question about something similar to this project #1

Open
francium opened this issue Jul 24, 2023 · 0 comments
Open

Question about something similar to this project #1

francium opened this issue Jul 24, 2023 · 0 comments

Comments

@francium
Copy link

Hi Curtis,

I was interested in something very similar to this and couldn't find any official tool or method for doing so. Your project here appears to be the closest to what I'm also trying to do, but for private repos not hosted on a Git hosting service.

I've got some bare git repos (git init --bare) on a server with SSH. But I couldn't find a way to use those repos from Deno using ssh or git. Only thing I could think of was writing a server to translate "http://example.com/foo/bar.ts" into a git sub process command and return the file content (git show <ref>:<path>). Kind of similar to https://github.com/quackware/git.quack.id

Since you've got a head start on me in this area, I was wondering if you may be able to help me answer a question? Perhaps you also ran into a similar issue while working in this area? My server is able to respond to the requests made by Deno for files and my editor (Deno language server) is resolving the imports, but doing a 'go-to-definition' results in a blank source file (using neovim). I can run the file just fine, deno run main.ts with the import coming from my server however.

Did you by chance also into an issue with blank import files or errors in VS Code? Maybe it has to do with intellisense (haven't added that into my server)?

main.ts

import { a1 } from 'http://localhost:8000/foo/mod.ts'

console.log(a1);

but, doing a go-to-definition on a1 results in a blank file.
Yet deno run main.ts works and in the Deno cache directory, ~/.cache/Deno/deps/http/localhost_PORT8000 (Linux) the source files and metadata is present.

I'm using neovim, but on VS Code, this is the error,
image

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

No branches or pull requests

1 participant