You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Connect to vdi.epfl.ch with your epfl credentials
Select VM IC-Windows-Cours1
Open VS Code
Install Metals
Click on the Metals logo on the left, below the extensions icon
The newly opened side pannel contains nothing but the error
Approximate reproducer:
Install VS Code
Go to point 4. above
Expected behavior
It should either:
Work straight away
If the user needs to do something, then clear instructions should be printed
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:
Operating system: Windows
VSCode version: 1.81.1 (system setup)
VSCode extension version: Couldn't find where that is ^^'
Metals version: 1.2.2
The text was updated successfully, but these errors were encountered:
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.
kasiaMarek
changed the title
Metals side tab on fresh install: "There is no data provider [...]"
When no workspace and metals cannot start show error message in a more visible place
Mar 28, 2024
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:
The text was updated successfully, but these errors were encountered: