After a file is executed in the VsCode control panel, if a new f90 file is created (multiple programs share the same panel port), an error message as shown in the figure will often appear
Solution:
The tasks.json file should add the presentation property `
{
"version": "2.0.0",
"tasks": [
{
"label": "compile",
"type": "shell",
"command": "gfortran",
"args": [
"-g",
"${file}",
"-o",
"${workspaceRoot}\\${fileBasenameNoExtension}.exe"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new", //Here shared means shared, after changing to new each process creates a new port
"showReuseMessage": true,
"clear": false
}
}
]
}
“Shared” indicates sharing. After changing to new, each process creates a new port.
Read More:
- VSCode Error: collect2.exe: error: ld returned 1 exit status
- [Solved] VScode Error: undefined reference to ‘WinMain’ collect2.exe: error: ld returned 1 exit status
- [Solved] error adding symbols: File in wrong format collect2: error: ld returned 1 exit status
- Dev C++ Error: error: ld returned 1 exit status [How to Solve]
- GCC Error:(.text+0x24): undefined reference to `main‘collect2: error: ld returned 1 exit status [Solved]
- VSCode Error: collect2.exe:error:1d returned 1 exit status [How to Solve]
- Ubutnu Qt Unable to start process Error: “make“ -f ‘ /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit sta
- DevC++ Error: [Error] Id returned 1 exit status [How to Solve]
- vscode: Error loading workspace: err: exit status 1: stderr: build flag -mod=readonly only valid
- NVM use error: exit status [How to Solve]
- [Solved] VScode Error: PS D:\vscode> cd “d:\vscode\“ ; if ($?) { g++ tempCodeRunnerFile.cpp -o tempCodeRunn
- [Solved] Vscode error: Unable to resolve resource walkThrough://vscode_getting_started_page
- [Solved] error getting credentials – err: exit status GDBus.Error:org.freedesktop.DBus.Error.ServiceU
- docker load Error processing tar file(exit status 1): archive/tar: invalid tar header
- After SpringBoot starts, exit the console directly and display Process finished with exit code 1
- Linux: tar Unpack .tar.bz2 File Error tar: Child returned status 2 tar: Error is not recoverable: exiting now
- Mac Vscode C++ Customize Header File Error: linker command failed
- Cmake Error The C compiler identification is GNU 7.5.0 — The CXX compiler identification is unknown
- /usr/bin/ld: skipping incompatible Error [How to Fix]
- [Solved] fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler