IDEA Build got error: package org.springframework.web.servlet.config.annotation does not exist

When building project in IDEA 2021.1, following error appeared:

package org.springframework.web.servlet.config.annotation does not exist

And the weired thing is that running mvn compile in command line works well, but run Build in IDEA will got this error.

The building process works before, but recently I modified source code of one of my dependency JHCommonLibrary which is depending on spring-webmvc

I remove spring-webmvc dependency from JHCommonLibrary but it didn't work.

Then add spring-webmvc explicitly, and it didn't work as well.

Solution

Finally, I move JHCommonLibrary to end of <dependencies>, now it works. Or adding spring-webmvc dependency before JHCommonLibrary also works.

(I need to state again, this issue only appeared in IDEA but not appear if running mvn compile in command line. So it's likey a bug in IDEA)

‘mvwin_wchnstr’ was not declared in this scope when compiling lnav

lnav is a great log file viewer. To use its latest features, we need to fetch the source code and compile manually.
When compiling lnav using make, following error is appeared

I have installed all requirements stated in documentation.

Solution

The lnav documentation only said ncurses library is needed, but not mention which version.
My current installed ncurses library is libncurses5-dev. Changing to libncursesw5-dev fixed this issue.

(This command is for apt package manager, please change to corresponding command according to the package manager you use.)

VSCode SFTP plugin connecting with private key error:OPENSSL_internal:DECODE_ERROR

When I'm trying to upload file using SFTP extension in Visual Studio Code, following error is shown:

Full stack trace is

The ssh connection is using public key authentication, and my sftp configuration (sftp.json) is like following:

Solution

To fix this error, we can convert the private key file from OpenSSH private key format to PEM format.

Try again it will work now.

Syntax Error: TypeError: this.getOptions is not a function

less is a great css preprocessor which can be converted to css stylesheet. But using latest version of less with Vue 2.x version has some problems.

ERROR Failed to compile with 1 error 上午11:51:16

error in ./src/components/ChooseDistributors.vue?vue&type=style&index=0&id=0bd67dd3&lang=less&scoped=true&

Syntax Error: TypeError: this.getOptions is not a function

@ ./node_modules/vue-style-loader??ref--10-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--10-oneOf-1-2!./node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ChooseDistributors.vue?vue&type=style&index=0&id=0bd67dd3&lang=less&scoped=true& 4:14-476 15:3-20:5 16:22-484
@ ./src/components/ChooseDistributors.vue?vue&type=style&index=0&id=0bd67dd3&lang=less&scoped=true&
@ ./src/components/ChooseDistributors.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.0.15:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

Above error is shown when building when running npm run build.

Current vue version is 2.6.11, less version is 4.1.1 and less-loader is 8.1.0.

Solution

Changing less-loader version to 7.3.0 fixed this issue.