-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add support for FreeBSD #6
Comments
Hi @jan0sch, thanks for reporting! Do logs say anything useful? (see https://scalameta.org/metals/docs/contributors/getting-started.html#workspace-logs) |
No, looked good. Here it is just in case. I am also not sure if it is directly related to metals or the vim-lsc plugin. 🤔
|
Looks look fine on the Metals side. Judging by the error you get, it seems like a vim-lsc issue, possibly related to the NeoVim integration. You can maybe try with a vanilla In any case, I suggest you ask in https://github.com/natebosch/vim-lsc |
Thanks, I'll try it there. |
Thanks for reporting. Metals is not tested/used on FreeBSD so there might be some issues we're not aware of. Can you try to validate if Metals works in vscode first? There can be many reason why navigation doesn't work, I recommend running the doctor to see if there are any recommendation. |
With vscode it doesn't seem to work at all. However the vscode ports to FreeBSD are unofficial as far as I understand. 🤔 |
How about Atom? I'm not so familiar with FreeBSD, are there differences for JDK-related applications I should be aware of? Does IntelliJ work? |
IntelliJ and other java stuff works fine. But there are problems with atom, vscode, lighttable etc. Therefore I can only use unofficial builds for these. |
Metals uses native libraries for system processes (via nuprocess) and file watching (via directory-watcher). Could that be an issue? |
We also use |
The GVFS part seems to indicate that. Could you give me a pointer to the relevant code sections? |
For reference: The same error message appeared in the following issue: kpeeters/cadabra2#12 |
Another native component we use is local UNIX domain sockets to communicate with the build server. |
Here's where we open a URL https://github.com/scalameta/metals/blob/e6424034e832e2eee95e6b341643a24331ac1f72/metals/src/main/scala/scala/meta/internal/metals/Urls.scala#L28 It's only executed if you select "learn more" in a dialogue. You can test local changes with |
After digging around a bit I think that it is likely caused by nuprocess so I'm going to investigate it. |
Note: The same error occures on FreeBSD 12. |
@jan0sch I'm gonna move this issue to the metals-feature-requests issue tracker since we don't officially support FreeBSD. I'm happy to help you fix this issue, but even if this issue gets fixed our CI does not run tests on FreeBSD to prevent regressions in the future. |
For reference: Got a more complete error message this time:
There is also another one indicating that maybe the error stems from some python stuff:
|
Interesting, I forgot we do actually shell out to python to communicate with bloop. |
@olafurpg Does it make sense to try and remove all python (and other interpreter?) commands from bloop/metals to make sure its as portable as possible? I think for these kind of tools we should have a hard requirements of either only using shell standard tools or java. |
An update from my side. I tried the current metals (0.7.2) with neovim 0.3.8 and current coc.nvim under FreeBSD 12. |
Hi,
I just tried metals with neovim on FreeBSD 11.2 and got the following error message:
The rest seems to work but navigation (goto definition) does not.
Environment
I'm using metals 0.3.3.
The text was updated successfully, but these errors were encountered: