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

Startup on random port, use .psc-ide-port #68

Open
natefaubion opened this issue Jul 9, 2017 · 8 comments
Open

Startup on random port, use .psc-ide-port #68

natefaubion opened this issue Jul 9, 2017 · 8 comments

Comments

@natefaubion
Copy link
Contributor

Other psc-ide plugins startup on a random port, and tag the port in a .psc-ide-port file. A global config means you can only have one instance running at a time.

@coot
Copy link
Collaborator

coot commented Jul 31, 2017

I've been thinking about it for a while, and we are really missing that feature. For the moment I have an autocommand which changes the port number:

    au BufRead $HOME/repos/gravicus/ospreyui/** let psc_ide_server_port = 4343

@paluh
Copy link
Contributor

paluh commented Jul 31, 2017

You can have local .vimrc in project directory with let g:psc_ide_server_port = PORT_NUMBER which I'm using extensively. I think that random port can be used, but only when psc_ide_server_port is not defined.

@coot
Copy link
Collaborator

coot commented Jul 31, 2017

Yes, that's a good point.

@kika
Copy link
Contributor

kika commented Sep 9, 2017

Oh, my, I'm an idiot. I have this working since December 2016 (on a fork at https://github.com/kika/psc-ide-vim) and I never submitted a PR. I'll merge the upstream and submit.

@coot
Copy link
Collaborator

coot commented Sep 9, 2017

Great, then it's battle tested :)

@kika
Copy link
Contributor

kika commented Oct 9, 2017

I've merged my changes but can't get through testing phase yet. I'm seeing a strange bug, which seems to be not related to port selection. Sometimes (typically when I hit TAB to get the completion) vim rescans the imports and suddenly reformats all my import lists. I've made a few 2-line changes to my sources which caused 20+ line commits, because of the changed import lists (they just got rearranged, nothing changes semantically). Any ideas?

@coot
Copy link
Collaborator

coot commented Oct 10, 2017

That's not a bug, that's a feature of purs ide. It formats imports when one is adding ones and we run it in CompleDone autocommand to import the identifier. You can turn it off though.

@kika
Copy link
Contributor

kika commented Oct 10, 2017

Hm, but I'm not adding anything, I just write some code.

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

4 participants