Closed Sporarum closed 3 months ago
Going to Output -> Metals does reveal the cause of the issue: "Metals will not start because you've opened a single file and not a project directory."
This message should not be hidden there !
And furthermore, replacing the "no data provider" message by that message would not completely fix the situation, as the "New Scala Project" button, and the "Help and Feedback" section would still not be present.
Therefore I think instead Metals should run in a simplified mode when outside a folder, just enough to enable users to create a project.
This message should not be hidden there !
We can show the message in a more visible manner and provide information on should the user do as a temporary solution.
Therefore I think instead Metals should run in a simplified mode when outside a folder, just enough to enable users to create a project.
For those we already have issues: https://github.com/scalameta/metals-vscode/issues/357 https://github.com/scalameta/metals-feature-requests/issues/231 and there is some in progress work to allow metals to work without a workspace: https://github.com/scalameta/metals/pull/5531 (unfortunately currently blocked on a semanticdb issue)
Describe the bug
When first installing Metals, when going to the Metals tab on the sidebar, the four sections print: "There is no data provider registered that can provide view data." (The four sections being: Packages, Build Commands, Ongoing Compilations, Help and Feedback.)
To Reproduce
Exact reproducer:
Approximate reproducer:
Expected behavior
It should either:
In particular, you'll note the Metals Doctor, and the logs are not accessible, as they would be under "Help and Feedback"
Similar bugs
When opening Metals outside of a Scala Project, the Packages section shows buttons to help getting started, but the remaining sections show the same "no data provider" message. Again, this includes the "Help and Feedback" section, and so the doctor and the logs.
This is the case only sometimes, trying it again, the buttons appeared for a split second before being replaced by the "no data provider" message.
Screenshots
Similar bug with
Installation: