Open MexHigh opened 2 weeks ago
Some more info on the hanging flash command from the extension: In the vscode output console I see a node exception with EACCESS while reading from serial. However I can read and write manually from the command line and I'm in all correct dialout permission groups. I also confirmed that vscode runs as the same user.
When building the vsix manually from source, this error does not occur and I can flash the image.
Some more info on the missing build target: I figured out, that the build variable NanoFrameworkProjectSystemPath
passed to msbuild via property flag has incorrect casing in the path. The value of the variable is used to include more targets:
<Import Project="$(NanoFrameworkProjectSystemPath)NFProjectSystem.CSharp.targets" />
The extension passes -p:NanoFrameworkProjectSystemPath=/home/leon/.vscode/extensions/nanof ramework.vscode-nanoframework-1.0.181-g736b9e5a52/dist/utils/nanoFramework/v1.0/
to mbuild, however the path does not exists with .../nanoFramework/v1.0
, but with .../nanoFramework/v1.0
. I fixed the paths at the following locations:
I'm now trying to flash the program, however this also yields more errors. Hope this helps you fix that.
More Info: Flashing does not work either, because neither building nor flashing does work with the vscode-nanoframework.nfdeploy
command due to the use of child_process.exec function (I think): https://github.com/nanoframework/nf-VSCodeExtension/blob/main/src/dotnet.ts#L152-L171
I'm sorry, but how can it be that a framework is this complicated and buggy for a first time deployment? The documentation was very hard to understand also. I'm having a really hard time using this on Linux AND Windows, partially due to copy paste mistakes like this: https://github.com/nanoframework/nf-VSCodeExtension/blob/main/src/dotnet.ts#L65.
@MexHigh the VS Code Extension is still an experiment. I does need some love. So, if you are willing to fix those issues, we will be very happy to get some PR! The very very very large majority of the users are using Windows and Visual Studio with the nanoFramework associated extension. The VS Code and non Windows users are a minority. We are willing to support more but it does require motivated contributors to boost it!
Ohh, I didn't knew that the extension is still experimental. It would be nice if there was some kind of warning in the Repos README or at least in the documentation.
I'll tinker with it a bit more and create a PR for it if I can get it to work.
@MexHigh any improvement, including in the README would be great! Thanks a lot!
Tool
Visual Studio Code extension
Description
I'm trying to build the sample Blinky Project. However, this happens with all projects (even newly created ones).
When running the "nanoFramework: Build Project" command, it fails with the following error:
So basicly, msbuild (mono) cannot find the "Build" target, and it is indeed not there. I don't know how to add this manually.
The Build target is also missing from newly created solutions/projects with the nanoFramework extension.
Additional info:
nanoff
command manually to flash a nanoCLR seems to workHow to reproduce
Expected behaviour
Build is successfull.
Screenshots
Command and its output:
Hanging "Flash device" command (may be relevant):
Aditional context
VS Code Version: 1.92.2 OS: Manjaro Linux Arch: x64 Nanoframework Extension Version: v1.0.181 Nanoff --version: nanoff 2.5.90+c66e018c48 msbuild --version: 16.10.1.36201