Author Archives: Robins

XE10.4.2 IDE: How to Disable LSP

RAD Studio 10.4 is the biggest improvement to Delphi code tools in years, a major improvement to Delphi Code Insight, which provides Code Insight using a Language Server Protocol (LSP) implementation.

10.4 greatly improves developer productivity when working on large projects with millions of lines of code.

 

How to Close LSP

Options – User Interface – Editor – Language – Code Insight – Code Insight Manager. The default is LSP, change to Classic.

Failure to find … was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced

When I packaged the project, I reported an error:

 

 

Failure to find com.st:oscarJDBC16:pom:1.0.0 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced

 

In order to solve this problem, a lot of information was consulted as follows:

1,

Go to your own .m2 folder and delete all the xxx.lastUpdated files, run maven again, ok!

Or add the -U parameter when using maven, you can ignore xxx.lastUpdated..

Here, a simple investigation is not caused by this reason

2,

Change the version, or change the source to try

I’ve changed it several times, but it still gives an error

3,

Added updatePolicy property to release or snapshots version of repository, where updatePolicy can be set to “always”, “daily” (default), “interval:XXX” (minutes) or “never”

<repositories>
    <repository>
      <id>io.spring.repo.maven.release</id>
      <url>http://repo.spring.io/release/</url>
      <releases>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
      </releases>
      <snapshots><enabled>false</enabled></snapshots>
    </repository>
  </repositories>

still error

 

final solution

previous pom configuration

 

 

Modified to direct reading jar package

problem solved!!!

How to Solve KTAG Red PCB “Program already running” Issue

Problem: One customer is asking why he cannot open Auto ECU Programmer V2.25 KTAG red PCB software on CD. And it gives a warning “Program already running”. What the reason, any suggestions?

solution ktag red pcb program already running issue – Solution: KTAG Red PCB “Program already running” Issue – KTAG Red PCB Program already running

Solution

1. Please DO NOT open K-TAG ECU Programmer on CD directly. Users should copy it to desktop firstly, then can be running.
2. The reason why this message coming is because user has already opened KTAG software. Please DO NOT open it repeatedly. Or users may try to shut down task firstly, then restart it again.

[Solved] IDEA Unboxing of ‘stringRedisTemplate.hasKey(xx)’ may produce ‘NullPointerException’

Question details

Yellow warning when using stringRedisTemplate.hasKey(**)

Warning message: IDEA Unboxing of ‘stringRedisTemplate.hasKey(xx)’ may produce ‘NullPointerException’ warning

Possible null pointer exception when unboxing

Look through the hasKey source code

Looking at the hasKey source code, the hasKey method returns an object wrapper, but using it inside the if condition implicitly unboxes it (ie, converts the result of the call to the original value). If for some reason the hasKey method might return null, an error will occur. For security, you can check if the key exists by following the steps below

solution:

if ( Boolean.TRUE.equals ( redisTemplate.hasKey ( XXXX)) { }

The same is true for other return wrapper types Boolean

[Solved] TS2307: Cannot find module ‘./style.module.scss’ or its corresponding type declarations.

react write ts script import module error:

import style from './style.module.scss' reports an 
error: TS2307: Cannot find module './style.module.scss' or its corresponding type declarations. 

It is because there is no relevant declaration in react-app-env.d.ts added in
declare module '*.module.scss' { 
    const classes: { readonly [key: string]: string } 
    export default classes 
} 

Saving can solve the problem

ROS Error: IOError: [Errno 13] Permission denied: ‘/home/zn/.ros/log/robotiq2FGripper.log’

Run Robotiq to control the driver node and report an error

rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py /dev/ttyUSB0
IOError: [Errno 13 ] Permission denied: ' /home/zn/.ros/log/robotiq2FGripper.log '

Solution:

This problem is caused by the permissions of the ros file in this path.

Enter the following command to modify permissions:

sudo chmod 777 -R ~/.ros/

After the modification is completed, enter roscore again and it will be ok

/home/zn/robotiq_ws/src/robotiq/robotiq_2f_gripper_control/nodes/Robotiq2FGripperRtuNode.py: 65 : SyntaxWarning: The publisher should be created with an explicit keyword argument ' queue_size ' . Please see http: // wiki.ros.org/rospy /Overview/Publishers%20and%20Subscribers for more information.pub 
  = rospy.Publisher( ' Robotiq2FGripperRobotInput ' , inputMsg.Robotiq2FGripper_robot_input)

Hadoop Error: rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]

Problem Description

rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]

Cause
of the problem This problem occurs because not only does the synchronizing machine need to have rsync installed, but it also needs to be installed on the machine being synchronized.

Solution
Install it in both the synchronizing machine and the synchronizing machinersync

yum -y install rsync

[Solved] ‘utf-8’ codec can’t decode byte 0xd4 in position 1,invalid continuation byte

Error while reading file. This is an encoding problem that python is very prone to encounter when reading files. The solution is to add encoding=’ISO-8859-1′.

 

 

 

 

Since the default ftp download is ascii mode, the downloaded file encoding is iso8859-1.

Springboot Import Error: Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

maven import error

Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.2

 

Solution 1:

Delete the package corresponding to the local maven and download it again

 

Solution 2:

It may be a springboot version problem, lower the version (2.6.2 can’t be used before. Just change to 2.5.7)

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version> 2.5.7 </version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>