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

Multi server feature #2

Merged
merged 11 commits into from
Dec 13, 2023

Conversation

sfavazza
Copy link
Owner

The basic feature seems to work. I encourage you at trying it on your side.

Remaining tasks:

  • ensure no two servers have the same string in "server" sub-key (otherwise one would be obscured by the last parsed one)
  • writing few examples to ease manual test (if would amazing to automate the tests in CI, but I don't see an easy way to automate)
  • update documentation

@sfavazza sfavazza requested a review from factyy October 23, 2023 20:21
@factyy
Copy link
Collaborator

factyy commented Oct 24, 2023

Ok, I'll take a look when I have time. BTW you can try to invite yyoncho since he is the main author of the package and is much more experienced Elisp developer than me :)

@sfavazza
Copy link
Owner Author

Sounds good. Invitation sent 😊

@factyy
Copy link
Collaborator

factyy commented Nov 6, 2023

Sorry, I haven't forgotten but still don't have time :(

@sfavazza
Copy link
Owner Author

sfavazza commented Nov 8, 2023

Glad you kept me posted 😊

@factyy
Copy link
Collaborator

factyy commented Nov 22, 2023

@sfavazza , I just got a look the the implementation: don't remember whether we discussed it before, but what if we don't use a new multi-server key and relied on whether the server key content is an array or a single section?

@factyy
Copy link
Collaborator

factyy commented Nov 22, 2023

And one more thing: there was a fix (involving the default config) in the main repo (emacs-lsp#83), pay attention :)

@sfavazza
Copy link
Owner Author

sfavazza commented Dec 2, 2023

@sfavazza , I just got a look the the implementation: don't remember whether we discussed it before, but what if we don't use a new multi-server key and relied on whether the server key content is an array or a single section?

Hello @factyy, I proposed in the past the keyword servers, but then I though it was too similar to server and I opted for multi-server. Though I totally miss the option to have lists in YAML.

That's a clever idea, I will implement it as you suggested (quite busy on my side now 😅)

@sfavazza
Copy link
Owner Author

sfavazza commented Dec 2, 2023

And one more thing: there was a fix (involving the default config) in the main repo (emacs-lsp#83), pay attention :)

If you mean that I should merge it into my branch, sure thing! (or did I miss something?)

@factyy
Copy link
Collaborator

factyy commented Dec 4, 2023

Keeping your branches in sync is always a good thing :)

@sfavazza sfavazza force-pushed the feature/multiple-servers-support branch from cff3a6f to 40984b1 Compare December 9, 2023 12:58
@sfavazza sfavazza force-pushed the multi_server_feature branch from 4fae3e0 to c5ac2af Compare December 9, 2023 13:11
@sfavazza
Copy link
Owner Author

sfavazza commented Dec 9, 2023

Keeping your branches in sync is always a good thing :)

I have just rebased. If you don't have any more comments we could merge it.

@sfavazza , I just got a look the the implementation: don't remember whether we discussed it before, but what if we don't use a new multi-server key and relied on whether the server key content is an array or a single section?

Hello @factyy, I proposed in the past the keyword servers, but then I though it was too similar to server and I opted for multi-server. Though I totally miss the option to have lists in YAML.

That's a clever idea, I will implement it as you suggested (quite busy on my side now 😅)

I will implement this in the origin/multi_server_feature branch. After this there should soon be another MR.

- replace all <'key> instances with their dedicated 'defconst'
- distinguish between 'server top-node and 'server key
…t-server-image-name' functions, improve error message
@factyy
Copy link
Collaborator

factyy commented Dec 11, 2023

@sfavazza , looks really nice right now! The only thing I wanted to clarify is: do you want to add support for separate per-server mappings?

@sfavazza
Copy link
Owner Author

sfavazza commented Dec 12, 2023

I cannot forseen the need judging from my use cases. I would see if the feature request would come up. In that case it should not that hard to include the feature.

At the moment NO per-server mapping is considered.

For the time being can we merge this into my feature/multiple-servers-support branch?

@factyy
Copy link
Collaborator

factyy commented Dec 12, 2023

I think yeah, it looks ok, go ahead. Please don't forget to test old cases (with a single server) so we won't have to deal with regression bugs :)

@sfavazza sfavazza merged commit b06eae9 into feature/multiple-servers-support Dec 13, 2023
@sfavazza
Copy link
Owner Author

sfavazza commented Jan 4, 2024

@factyy I am still debugging few issues when starting image-based servers. Hopefully I will manage to work on it in these days.

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

Successfully merging this pull request may close these issues.

2 participants