error can not generate the compiled file, probably because the same name it.
delete the previously generated .exe, and then in the current .cpp file page, press the key combination Ctrl+Shift+B to regenerate it, no error reported.
Category Archives: Error
[Solved] spark sql Error: Can‘t zip RDDs with unequal numbers of partitions
Caused by: java.lang.IllegalArgumentException: Can't zip RDDs with unequal numbers of partitions: List(1, 200)
Solution:
Close AQE: set spark.sql.adaptive.enabled = false
;
[Solved] keil2 Error: FATAL ERROR L210: I/O ERROR ON INPUT FILE
As shown in the figure: test is the name of the file, and the error message is displayed after * * *
FATAL ERROR L210
Solution: Google and download the file c51fps.lib, then find the Lib of your keil folder. For example, my address is: D:\Keil C51 v6.12\c5\LIB
Different versions may have different folder names. If you’re not sure, copy more and put them all.
Reason: This is the library of floating-point operation. The decimal KEIL2 download package is used. The library without decimal operation needs to be downloaded by yourself.
Stata Comment // Error / invalid name r(198); [How to Solve]
Stata common notes
Method 1: * enter * at the front of a single line to indicate the comment of this line
method 2:// enter anywhere in a single line.// the content after// is commented
Annotation usage scenario
For mode 1 *, you can use it in the command line or do file
for mode 2//, the error “/ invalid name R (198)” will be reported in the command line (as shown in the figure below), but it is completely normal to use it in the do file. So, there is a small concept of losing small difference!
[Solved] npm Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
1. NPM error reporting
npm ERR! code 1
npm ERR! path D:\Workspaces\WebstormProjects\shop-ui\buyer\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (D:\Workspaces\WebstormProjects\shop-ui\buyer\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (D:\Workspaces\WebstormProjects\shop-ui\buyer\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at callback (D:\Workspaces\WebstormProjects\shop-ui\buyer\node_modules\graceful-fs\polyfills.js:299:20)
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\Workspaces\\WebstormProjects\\shop-ui\\buyer\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd D:\Workspaces\WebstormProjects\shop-ui\buyer\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.2
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Program Files\nodejs\node_cache\_logs\2022-01-28T09_54_16_535Z-debug.log
2. Solution
npm install --global --production windows-build-tools
[Solved] ECharts Console Error: `resize` should not be called during main process
When using ecarts, the console reports an error ` resize ` should not be called during main process
This situation may occur in the scenario where echarts is used in combination with Vue 3, especially after the echarts instance is wrapped with Ref.
This article is excerpted from another blog post, the use of echarts 5 in the development of Vue 3
1. Problem analysis
In general, the encapsulation of ecarts chart does not need to expose the ecarts object to the rendering context. If you do intend to declare an echots object as a response, use shallowref
instead of ref
:
// GOOD
const chart = shallowRef<echarts.ECharts>();
// BAD
const chart = ref<echarts.ECharts>();
If you do not use shallowref
, the command line may report an error ‘resize’ should not be called during main process; In fact, any instance created by a third-party library should be processed responsively using shallowref
instead of ref
.
Appcompatactivity Error: WARNING: Local History will be also cleared.
1.Build——>Clean Project
2.File —–> Invalidate Caches/Restart —–>Invalidate and Restart (Clear the cache of AndroidStudio)
qrcode Error: qrcode error: code length overflow.
When in use, just modify the incoming parameters: correctLevel : 3
Don’t use the default QRCode.CorrectLevel.H
How to Solve Pycharm SQL Union Error
Question
Today, when writing MySQL code in pycharm, I always encounter errors when using Union. Although the syntax itself is correct, the red horizontal line is annoying
It’s just that you have to change union to union all to eliminate the error report.
Press setting -> editor-> Inspections, then find no data sources configured under the SQL on the right, and cancel all related to the red exclamation mark, but it is still fruitless.
However, inspired by the article, the reason for the problem is found in the location of the configuration database
Solution:
The configuration database is in file -> Settings -> Languages & Frameworks -> SQL conversations
the reason for the problem is that I configured the database before. At that time, Clickhouse was configured, which is different from MySQL in the usage of union,
so just change Clickhouse to MySQL.
before change
modified
This will return to normal~
IDEA Error: java.lang.NoSuchMethodError: com.offcn.entity.Result.(ZILjava/lang/String;Ljava/lang/Object;)
java.lang.NoSuchMethodError: com.offcn.entity.Result.<init>(ZILjava/lang/String;Ljava/lang/Object;)
Reason: the generic type is not added when returning the resul object
after modification:
R Language: How to Solve featureplot function Error
This kind of error occurs when you run the featureplot function and want to generate a scatter diagram using ellipses, but the image cannot be generated due to the lack of ellipsse package. The error code is
Error in grid.Call.graphics(C_downviewport, name$name, strict) :
Viewport 'plot_01.panel.1.1.off.vp' was not found
Solution: only install the ellipse package, not the library, and then rerun the previous featureplot function.
install.packages("ellipse")
How to Solve Gazebo code 127
[gazebo-2] process has died [pid 4668, exit code 127, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/xx/husky_ws/src/husky/husky_gazebo/worlds/dyn4.world __name:=gazebo __log:=/home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo-2.log]. log file: /home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo-2*.log [gazebo_gui-3] process has died [pid 4670, exit code 127, cmd /opt/ros/melodic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo_gui-3.log]. log file: /home/xx/.ros/log/26a8dda8-7dad-11ec-ac2c-68545a5636b4/gazebo_gui-3*.log
Solution:
sudo apt-get upgrade