-
Notifications
You must be signed in to change notification settings - Fork 40
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
It seems a server will start in VSCode and Atom regardless of the setting to autostart #33
Comments
others are reporting that the pscIdePort option is being ignored as well |
I think maybe here?
|
I agree this setting shouldn't be ignored, but if before launching the plugin you |
I think the idea is to start a server in the "wrong" working directory and still have the server compile into that folders output/ directory. |
I’m good with starting a server in the “right” directory- I just need my editor to connect to it. I will try @nwolverson’s suggestion tonight and report back. Thanks for the advice!
… On Mar 15, 2018, at 5:25 AM, Christoph Hegemann ***@***.***> wrote:
I think the idea is to start a server in the "wrong" working directory and still have the server compile into that folders output/ directory.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I just tried this and it doesn't work. Just to re-describe the issue: I have a parent directory containing several related purescript projects, for example a "web" project that depends on a "core" project. I want to start a psc ide server in the "web" project, but open my editor in the parent folder so that I can easily edit code in either the "core" or the "web" projects and have changes reflected immediately in the "web" project's output folder by having my editor communicate changes to the psc ide server. It doesn't work in either Atom or VSCode, but it does work in vim, so I'm certain I have not setup the psc ide server incorrectly. Just to reiterate - I've tried: putting .psc-ide-port with port 4242 in the parent folder, web, and core. And it didn't work. Doing that did stop Atom and VSCode from running their own servers, but They don't seem to interact much with the running server. The only logging output I get is the following when the editor loads (nothing when saving files):
whereas with I use vim I get the following from opening the editor and saving a file:
Hope this helps. I tried to poke around in the code base, but I couldn't figure out how to get the extension stuff going in VSCode. I'm not really familiar with making extensions |
What output do you get from the PureScript output panel in vscode? That should tell you what's going on, I expect in this case it's finding that you are connecting to a server in the wrong directory (it runs Cwd and refuses to continue). We can add an option to skip the cwd check on server startup, but the reason it's there is that connecting to random servers is going to give wrong results. Regarding "open my editor in the parent folder" - you should not do this, this will not work in either atom or vscode plugin just now - in vscode you should open each project as a root folder (multi-root workspace) |
This should now be fixed, along with the port configuration, with the latest LS release. That's released in the latest vscode plugin (0.18.1) but not yet in atom. |
Awesome I'll try it out!
…On Sat, Mar 31, 2018, 11:23 AM Nicholas Wolverson ***@***.***> wrote:
This should now be fixed, along with the port configuration, with the
latest LS release. That's released in the latest vscode plugin (0.18.1) but
not yet in atom.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACCofI8ghm7j-J-ylvaXFeRe1sucKlcks5tj5-OgaJpZM4SrE41>
.
|
I have a scenario where I'd like to setup my own server so that I can edit code in some
bower link
'd projects and have the server take care of compiling code regardless of the project I'm in. It works fine in vim, so I know the server setup is good, but when I use VSCode or Atom they both start up their own server regardless of the "autostart on load" setting, which means they don't talk to the server I've setup for my own purposes.I'll look through this code and see if I can figure out how to resolve this, but might be better if someone who understood this codebase better took a look
The text was updated successfully, but these errors were encountered: