-
Notifications
You must be signed in to change notification settings - Fork 52
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
WebSharper doesn't work with Visual Studio Code #1103
Comments
I wonder if the |
Regardless, this is annoying indeed. The Getting Started video on the WebSharper home page uses VSC (although with C#, but should also work and did work with F#/Ionide). @Krzysztof-Cieslak any idea about why the code service could be broken in a WS project inside Ionide? Are we missing something in the project file? |
Hmm... it's something weird going on - it seems that project is loaded correctly as it's shown in Ionide solution explorer, and initial line lenses are displayed correctly. Also, it seems line lenses are getting updated - they lose exact type information after you removed a bunch of code. @mjarosie can you try to reproduce it outside of WSL - we had reports of some issues when using Ionide with it. |
I'm pretty sure that Sdk.Web isn't the issue, because that's what we use with all of our web projects these days. |
If |
I just tried on a fresh Windows box with latest VSC and Ionide, same issue there :( I am getting hover info, but no errors/warnings. |
The problem does seem to be caused by @Krzysztof-Cieslak Do you know any way how these Options to resolve on the WebSharper architecture side:
|
@Jand42 Can you paste in a full set of |
It’s surprising that other features seems to be working in such case. Maybe you could set this additional other flag only if MsBuild is not in DesignTimeBuild? |
@Krzysztof-Cieslak Thanks a lot for the suggestion, I am testing added DesignTimeBuild/BuildingProject checks. |
@mjarosie @Krzysztof-Cieslak Hi, this is now released with https://github.com/dotnet-websharper/core/releases/tag/4.6.4.404 |
(Tracking a similar issue... FYI, the original fix was mistagged - here is the commit.) |
I'm still not sure if that's WebSharper, VSCode or Ionide-fsharp extension issue that I'm dealing with, I'd appreciate if someone tried it out to see if my problem is reproducible.
I'm developing with VSCode (most examples from https://github.com/websharper-samples recommend it, so maybe it's some kind of a regression error). When I open any code that uses WebSharper - VSCode features are reduced. For example, no errors are highlighted, unused imports are not detected, no tooltips appear.
Steps to reproduce:
(Moving) picture is worth thousand words:
Compare it to say console app:
or SAFE:
Different projects work, which proves that it's not an issue with my VSCode setup, I've been trying to figure out what's the difference between these projects, but not even sure what to look at...
Visual Studio Code:
Ionide-fsharp extension version:
4.11.1
I'm using WSL2 Ubuntu if that makes any difference.
The text was updated successfully, but these errors were encountered: