-
Notifications
You must be signed in to change notification settings - Fork 14
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
Improve UX if CustomConfigurationProvider is not ready yet #43
Comments
With CMake Tools, it will show a "Configuring project" status message in the bottom right, during which the user will still get errors about headers not found, but then those errors go away after the project is done configuring -- is that the same problem you're trying to resolve or not? This automatically gets fixed after waiting long enough so that may be why we haven't seen many user complaints about it. It sounds like the issue with users filling in the c_cpp_properties.json might be fixed by switching to the configuration provider API, since the configuration provider will override most of the entries added to the c_cpp_properties.json (as long as the configurationProvider property is set, and the configuration provider will automatically be used if it's the only one registered and there are no C_Cpp.default.* set). One could argue that if we didn't show "include not found" errors and instead just disabled IntelliSense, that users may then just switch to complaining about IntelliSense not working as expected. There is an additional potential issue if the configuration provider isn't able to be configured correctly or provide configurations for a certain file, in which case it might be desirable to falling back to not using the configuration provider (instead of disabling IntelliSense). I remember discussing this with @Colengms in the past. |
Yes, exactly. We don't propose to change the current behavior. It looks good for developers who manually install and configure this extension. Most PlatformIO users even do not understand that they use the VSCode code editor, not saying about the CPP tools extension. They are focused on project development where we solve configuration, and other hardware-related tasks automatically for them. Asking them to configure the "include path" is the same as when the operating system will ask me to debug its kernel. PlatformIO developers do not have information about build flags, include paths, and compiler. This information is dynamic and depends on the project working environment, where the project can have multiple of envs (different compilers, flags, etc).
We show a similar message but in the bottom status bar. Not all developers see it. Maybe, we should show a popup notification to make it more visible. In this case, we can continue using How is difficult to give us this control and don't provide any errors/ (Problems Tab) until we are configuring the project? |
I'm confused by your statements "We don't propose to change the current behavior" versus "DOES NOT START its IntelliSense service waiting for the "command" when the provider is ready"...they seem contradictory. Instead of disabling IntelliSense, we could potentially add a command to the C/C++ extension that can enable/disable IntelliSense or just the error squiggles part, similar to the command we added at microsoft/vscode-cpptools#4893 , i.e. I don't think it would be difficult. That command would be outside of the vscode-cpptools-api. Yeah, CMake Tools shows the popup UI for their Configuring Project status. |
Some of the reasons that cpptools goes ahead and starts IntelliSense even when a configuration provider is not ready is because:
When a configuration provider registers itself, I believe we are supposed to delay the notifications about "include path," but this could perhaps use some tuning. Some ideas of things we could consider that might make the experience better:
|
Sounds great, this is precisely what I mean. I know you are very busy with the C/C++ extension. Let's keep this issue open and may be split into multiple feature requests. We followed @sean-mcmanus hints and added a progress notification (instead of windows's notification in the status bar) and meanwhile will stay with |
Yeah, multiple feature requests would be easier to track/triage. |
Hi,
Glad to discuss how could we improve PlatformIO's developer experience when using VSCode + "cpptools" extension. See scenarios below when is clear what to do for the end developer who faces the first time with VSCode/PlatformIO:
c_cpp_properties.json
because the "cpptools" extension forces him to do it. The developer does not understand what to do. No clue about toolchains, etc. Developer contacts PlatformIO forum or team and asks for help. Very often, developers even leave 1-star review as "it does not work".So, how could we improve this API? The ideal scenario is to inform the "cpptools" that WE ARE ELIGIBLE to provide configuration but it can take us some time. See proposed workflow:
api = getCppToolsApi
api.notifyReady(provider)
.Your ideas?
P.S: As a workaround, I see that we can make a face configuration provider and provider "infinite sleep" to the
provideConfigurations
and other methods. Nevertheless, it is not useful from a technical perspective.Related issue:
The text was updated successfully, but these errors were encountered: