-
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 39 replies
-
I haven't used sublime myself, but did you already have a look at the docs https://scalameta.org/metals/docs/editors/sublime.html ? |
Beta Was this translation helpful? Give feedback.
-
An other attempt: Can you please edit LSP settings via
Do you see more log entries after running |
Beta Was this translation helpful? Give feedback.
-
Yes, i think we can learn something now, an
|
Beta Was this translation helpful? Give feedback.
-
So this seems to be a problem: and |
Beta Was this translation helpful? Give feedback.
-
So it looks like no folder is actually open. |
Beta Was this translation helpful? Give feedback.
-
I am one step further. With the following startup procedure metals works.
lsp-logging:
(removed some privacy related chars) So the problem seems to be that files that are already present before the metals is started somehow make it impossible to determine the working directory. After crash, opening up a new file it too late. Now i have a .metals directory in my directory. (This is interesting, since the file i openen was a few levels deeper. Somehow metals or sublime was able to determine which folder is the right one, or it uses the one given on startup). |
Beta Was this translation helpful? Give feedback.
-
Okay guys, i have metals running now, but still no build target. However, i don't think we should solve that in this discussion. Therefore i will change the title to something more appropriate, and marked my former post as answer. However, although i wrote that answer, it is not my merit. Only due to your swift and adequate help i was able to find this. Therefore i am grateful. Thank you @ayoub-benali @tgodzik @rwols ! |
Beta Was this translation helpful? Give feedback.
-
@devlaam I am glad it works now. Totally optional but for a better LSP support it recommend upgrading to ST4, see https://discord.com/channels/280102180189634562/650695903446827011 And if you have questions/ issues regarding LSP join this channel: https://discord.com/channels/280102180189634562/645268178397560865 |
Beta Was this translation helpful? Give feedback.
I am one step further. With the following startup procedure metals works.
open "/Applications/Sublime Text.app" --args path/to/folder
(the working dir is still not set)lsp-logging: