ESP32 with VisualGDB and Component Management - esp32

In my application I need to include a dependency to a component from the espressif repository
When I build the project, the toolsuite detects the dependency but cannot update the component because it says that the component manager has not been enabled.
CMake Warning at C:/SysGCC/esp32/esp-idf/v4.4.1/tools/cmake/build.cmake:482 (message):
“idf_component.yml” file was found for components:
C:/Users/user/Documents/Proyectos/ESP32/Firmware/Prue/P29/mb_master/main
However, the component manager is not enabled.
What is the procedure to enable the Component Manager?
I use Visual Studio 2019 16.11.17 / VisualGDB-5.6R6-4622 / Toolchain 8.4.0/8.1.0/r9 / ESP-IDF v4.4.1

I have already found the solution.
On the website idf-component-manager it says:
Starting ESP-IDF v4.4 the idf-component-manager package is installed by default and no extra action is necessary.
Since I use v4.4.1 I don’t need to run the pip command.
To enable the component manager in the project configuration phase, you must add the following variable in the CMakeLists.txt of the project root:
set(ENV{IDF_COMPONENT_MANAGER} “1”)
In this way, in the configuration phase, when the idf_component.yml file is found in the main component, the dependency is executed and the referenced component is downloaded:
Solving dependencies requirements
Updating lock file at C:/Users/user/Documents/Tmp/espressif/mb_slave\dependencies.lock
Processing 2 dependencies:
[1/2] espressif/esp-modbus (1.0.4)
[2/2] idf (4.4.1)
— DEBUG: Use esp-modbus component folder: C:/Users/user/Documents/Tmp/espressif/mb_slave/managed_components/espressif__esp-modbus.
This is very important because the freemodbus component has been moved to a separate esp-modbus repository from v5.0.

Related

How can I install extra dependencies for a particular configuration only using manifest mode of vcpkg?

I am trying to build the Testing example from the fruit DI Injection library, it contains a standard int main entrypoint in main.cpp, and has another entrypoint using InitGoogleTest
So I have two Debug configurations, Debug the standard build that executes the program via main.cpp and another GTest for unit testing which will exclude main.cpp, and include cached_greeter_test.cpp instead which calls InitGoogleTest.
I am consuming the fruit library via vcpkg, and using manifest mode. I can't seem to figure out from vcpkg.io website how to install fruit from vcpkg in both Debug and GTest Configurations, but only install Google Test in the GTest configuration.
How can install the extra dependency of Google test for a particular configuration only using manifest mode, and yet still install fruit under all other project configurations?
Code at -
https://github.com/google/fruit/tree/master/examples/testing

dotnet add package with source giving an unauthorize error 401 and 404 Not found

we are updating the nuget packages in dotnet application with dotnet add package "package name" from a private feed in Azure Devops.
Recently we updated to .net 5.0.1( I am not sure if its related to the issue.)
But now while running the above command gives error in local machine as well as in azure piplelines.
I have tried the --interactive option and refreshed the PAT for packages etc as well.
command dotnet add "csprojFile" package "mypackageName"
Determining projects to restore...
Writing C:\Users\SirajUrRahman\AppData\Local\Temp\tmpD8BD.tmp
info : Adding PackageReference for package 'my package' into project '.\my csproj'.
info : GET https://api.nuget.org/v3/registration5-gz-semver2/mypackageName/index.json
info : NotFound https://api.nuget.org/v3/registration5-gz-semver2/mypackageName/index.json 889ms
error: Unable to load the service index for source https://pkgs.dev.azure.com/myorganization/_packaging/Feed/nuget/v3/index.json.
error: Response status code does not indicate success: 401 (Unauthorized).
Usage: NuGet.CommandLine.XPlat.dll package add [options]
Options:
-h|--help Show help information
--force-english-output Forces the application to run using an invariant, English-based culture.
--package Id of the package to be added.
--version Version of the package to be added.
-d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check.
-p|--project Path to the project file.
-f|--framework Frameworks for which the package reference should be added.
-n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional.
-s|--source Specifies NuGet package sources to use during the restore.
--package-directory Directory to restore packages in.
--interactive Allow the command to block and require manual action for operations like authentication.
--prerelease Allows prerelease packages to be installed.
Thanks for any help.
Feel free to ask anything if needed.
This issue was related to .net 5 and there is already a bug created for that on github here is the link for that. https://github.com/NuGet/Home/issues/10305.

Webpack compilation, local Module not found: Error: Can't resolve

I modified a plugin and added it in my project's file system. So in my package.json I have : "some-module": "file:modules/some-module".
It works fine on my machine (Windows), but not on our build server (Linux CentOS), which fails during webpack compilation with error : Module not found: Error: Can't resolve 'some-module'.
The build server does clean the workspace before build, and after the failed build the plugin does exist in 'node_modules' folder of the workspace.
What could cause this error if the plugin does exists ?
EDIT : I tried on another linux machine (CentOS) and build failed for same error.
EDIT2 : I changed the local file: reference in my package.json file to a .tar.gz git URL. The error is now :
ERROR in ../node_modules/nativescript-pdfview-ng/pdfview-ng.ts
Module build failed (from ../node_modules/#ngtools/webpack/src/index.js):
Error: /root/myProject/node_modules/nativescript-pdfview-ng/pdfview-ng.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format ([link][1]).
at AngularCompilerPlugin.getCompiledFile (/root/myProject/node_modules/#ngtools/webpack/src/angular_compiler_plugin.js:719:23)
at plugin.done.then (/root/myProject/node_modules/#ngtools/webpack/src/loader.js:41:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
Are you using NativeScript 5.x?
If so, make sure to prefix the plugin with "nativescript-", since {N} 5.x the module resolution seems to have changed with regards to Webpack'ed build.

Facing issue while installing packages into library in shinyapp.io

After deployed the R application successfully, getting error message while displaying the dashboard in webpage(An error has occurred. The application failed to start.) by stating that
"Installing packages into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning in install.packages(new.packages) :
'lib = "/usr/local/lib/R/site-library"' is not writable
Error in value[[3L]](cond) : unable to install packages
Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted"
So, Without removing all installing packages from the R code, Can you please suggest, is there any way to take support of necessary packages, in free version of shinyapps.io?
Are you trying to have your app install packages in shinyapps.io? I'm pretty sure you can't do that. Any app deployed to shinyapps.io is dependent on making sure the packages required to run the app are available in shinyapps.io. That is part of what the rsconnect package does when you begin to deploy your app. If your app deploys successfully, then the package dependencies should be available in shinyapps.io.
Try removing any "install.packages" code and deploy again.

Bundles can't contain multiple app packages for the same processor architecture Windows 10

I am upgrading (porting) an existing app from 8.1 to Windows 10. When I try to build a package I get this error:
The package with file name "MyWindows10App_1.1.0.0_x64.appx" and package full name "26637BetsySoft.Myversion81App_1.1.0.0_x86__grkkn6rpr1pew"
is not valid in the bundle because the bundle also contains
the package with file name "MyWindows10App_1.1.0.0_x86.appx" and package full name "26637BetsySoft.Myversion81App_1.1.0.0_x86__grkkn6rpr1pew"
which applies to the same processor architecture.
Bundles can't contain multiple app packages for the same processor architecture, or an architecture-neutral app package with any architecture-specific app package.
My Windows 8.1 app was uploaded as an appxBundle and for that reason VS says it will create a bundle by default. Does anybody have any suggestions? I have tried changing the 'platform target' and configuration for the build (several different configurations). I can't get past the error.
additional messages:
Bundle creation failed. C:\WS_VS2015\WalkScore_W10\WalkScore_W10\MakeAppx
Error 0x80080204 - The specified package format is not valid: The package manifest is not valid.

Resources