portal

Travis 2023-01-19T15:59:35.059699Z

Hello I am starting to take a look at using portal. Currently I am running my repl outside of vscode and connecting to it. When I run

portal.api.open { :vs-code :launcher } 
I get an error where it cannot find the vs-code.edn file. I do have the vscode portal plugin installed. What might I be missing?

cjmurphy 2023-02-23T12:11:33.073389Z

> There is .portal folder but nothing in it That's the problem. There needs to be a vs-code.edn file in the .portal directory. For some reason the 'vscode portal plugin/extension' did not write the file. As a workaround you could always put it in manually, with this contents (port is randomly generated):

{:host "localhost", :port 34771}
I'm also on Linux (pop!_os) and I think have noticed a similar problem. But it fixed itself: I uninstalled the extension then pressed the 'Restart Required' (or similar wording) button then found the extension again and then installed it again. By fixed I meant the folder and the file both appeared.

Travis 2023-01-19T16:01:20.384999Z

yeah, i saw that but i have the vscode portal plugin installed

djblue 2023-01-19T16:03:03.847879Z

What folder is vscode running in relative to the clojure repl process?

Travis 2023-01-19T16:05:48.425209Z

good question, I launched code from a term but i can't recall what folder i was in at the time since I just have a workspace in vscode. Repl is launced in the actual project folder

djblue 2023-01-19T16:07:30.823619Z

I think if you open vscode at the root of the project, you might have better luck

Travis 2023-01-19T16:09:08.388639Z

going to try it now

Travis 2023-01-19T16:18:49.656619Z

did not work. There is .portal folder but nothing in it

djblue 2023-01-19T16:24:07.085619Z

Any errors you can find in the output window for extension hosts?

Travis 2023-01-19T16:35:09.974499Z

i don't see any

Travis 2023-01-19T16:35:29.169509Z

just

No config file found: vs-code.edn
inthe calva ouput window

djblue 2023-01-19T16:37:38.964059Z

https://github.com/djblue/portal/blob/master/src/portal/extensions/vs_code.cljs#L122-L129 is the code responsible for setting everything up, not sure why there is nothing in the .portal folder 🤔

djblue 2023-01-19T16:39:34.439149Z

Maybe delete the .portal directory and relaunch vscode?

Travis 2023-01-19T16:41:55.583299Z

will give it a try

Travis 2023-01-19T16:45:41.937819Z

so same result but i did see a error popup on vscode "terminal process failed to launch .portal does not exist"

djblue 2023-01-19T16:58:13.056739Z

Weird, any other details you can provide about your setup?

Travis 2023-01-19T17:00:56.569749Z

not sure what else. On latest versions, Fedora Linux OS. Launching the repl from a terminal and connecting to it via calva

👍 1
Travis 2023-01-19T17:08:25.642109Z

im sure its probably something dumb i might be doing, lol

djblue 2023-01-19T17:13:02.121569Z

I can test on linux when I get some time later, last I checked it worked but it doesn't hurt to try 👌

Travis 2023-01-19T17:13:15.978049Z

thanks