You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
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 agit
sub process command and return the file content (git show <ref>:<path>
). Kind of similar to https://github.com/quackware/git.quack.idSince 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
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,

The text was updated successfully, but these errors were encountered: