microsoft / vscode-makefile-tools

MAKE integration in Visual Studio Code
Other
194 stars 58 forks source link

command-line error: language modes specified are incompatibleC/C++(1027) #472

Closed zhongyl2002 closed 12 months ago

zhongyl2002 commented 1 year ago
          @1a1a11a, for a quick check on whether Makefile Tools is not sending or is sending wrong configurations for C/C++ extension, you can set "makefile.loggingLevel": "Debug", "makefile.extensionOutputFolder": "./OutputFolderLogs", "makefile.extensionLog": "extension.log" in your ".vscode/settings.json", then reload your project, let it finish configure (watch for "Configure finished" in the "Makefile Tools" output channel) and share with us files from "OutputFolderLogs": dryrun.log and extension.log, together with the name and full path of the c/c++ source file that has wrong IntelliSense. All this while having "ms-vscode.makefile-tools" set as "configurationProvider".

Originally posted by @andreeis in https://github.com/microsoft/vscode-makefile-tools/issues/219#issuecomment-1409245891

zhongyl2002 commented 1 year ago

As a CS freshman, I works on my vx6 lab tasks. I meet the error : command-line error: language modes specified are incompatibleC/C++(1027) on and off nowadays. I searched it in google and find a previous page with this same error. I fellow the instruction from

@1a1a11a, for a quick check on whether Makefile Tools is not sending or is sending wrong configurations for C/C++ extension,
 you can set "makefile.loggingLevel": "Debug", "makefile.extensionOutputFolder": "./OutputFolderLogs", 
"makefile.extensionLog": "extension.log" in your ".vscode/settings.json", then reload your project, let it finish configure (watch 
for "Configure finished" in the "Makefile Tools" output channel) and share with us files from "OutputFolderLogs": dryrun.log and 
extension.log, together with the name and full path of the c/c++ source file that has wrong IntelliSense. All this while having 
"ms-vscode.makefile-tools" set as "configurationProvider".

my log is shown here: dryrun.log file:

make --dry-run --always-make --keep-going --print-directory
make: Entering directory '/home/zyl/xv6-labs-2022'

riscv64-unknown-elf-gcc    -c -o kernel/entry.o kernel/entry.S

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/kalloc.o kernel/kalloc.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/string.o kernel/string.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/main.o kernel/main.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/vm.o kernel/vm.c
riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/proc.o kernel/proc.c
riscv64-unknown-elf-gcc    -c -o kernel/swtch.o kernel/swtch.S
riscv64-unknown-elf-gcc    -c -o kernel/trampoline.o kernel/trampoline.S
riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/trap.o kernel/trap.c
riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/syscall.o kernel/syscall.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/sysproc.o kernel/sysproc.c
riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/bio.o kernel/bio.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/fs.o kernel/fs.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/log.o kernel/log.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/sleeplock.o kernel/sleeplock.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/file.o kernel/file.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/pipe.o kernel/pipe.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/exec.o kernel/exec.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/sysfile.o kernel/sysfile.c

riscv64-unknown-elf-gcc    -c -o kernel/kernelvec.o kernel/kernelvec.S

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/plic.o kernel/plic.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/virtio_disk.o kernel/virtio_disk.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/start.o kernel/start.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/console.o kernel/console.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/printf.o kernel/printf.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/uart.o kernel/uart.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/spinlock.o kernel/spinlock.c

riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie -march=rv64g -nostdinc -I. -Ikernel -c user/initcode.S -o user/initcode.o
riscv64-unknown-elf-ld -z max-page-size=4096 -N -e start -Ttext 0 -o user/initcode.out user/initcode.o
riscv64-unknown-elf-objcopy -S -O binary user/initcode.out user/initcode
riscv64-unknown-elf-objdump -S user/initcode.o > user/initcode.asm
riscv64-unknown-elf-ld -z max-page-size=4096 -T kernel/kernel.ld -o kernel/kernel kernel/entry.o kernel/kalloc.o kernel/string.o kernel/main.o kernel/vm.o kernel/proc.o kernel/swtch.o kernel/trampoline.o kernel/trap.o kernel/syscall.o kernel/sysproc.o kernel/bio.o kernel/fs.o kernel/log.o kernel/sleeplock.o kernel/file.o kernel/pipe.o kernel/exec.o kernel/sysfile.o kernel/kernelvec.o kernel/plic.o kernel/virtio_disk.o kernel/start.o kernel/console.o kernel/printf.o kernel/uart.o kernel/spinlock.o
riscv64-unknown-elf-objdump -S kernel/kernel > kernel/kernel.asm
riscv64-unknown-elf-objdump -t kernel/kernel | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$/d' > kernel/kernel.sym
make: Leaving directory '/home/zyl/xv6-labs-2022'

extension.log file:

Logging level: Debug
Configurations cached at /home/zyl/xv6-labs-2022/OutputFolderLogs/configurationCache.log
No path to the makefile is defined in the settings file.
No folder path to the makefile is defined in the settings file.
Always pre-configure: false
Dry-run switches: '--always-make', '--keep-going', '--print-directory'
No current launch configuration is set in the workspace state.
Default launch configuration: MIMode = undefined,
                    miDebuggerPath = undefined,
                    stopAtEntry = undefined,
                    symbolSearchPath = undefined
Configure on open: true
Configure on edit: true
Configure after command: true
Only .PHONY targets: false
Save before build or configure: true
Build before launch: true
Clear output before build: true
Ignore directory commands: true
compile_commands.json path: null
Deduced command 'make ' for configuration "Default"
Saving opened files before build.
Generating configuration cache with command: 'make --dry-run --always-make --keep-going --print-directory'
Writing the dry-run output: /home/zyl/xv6-labs-2022/OutputFolderLogs/dryrun.log
Spawning child process with:
 process name: make
 process args: --dry-run,--always-make,--keep-going,--print-directory
 working directory: /home/zyl/xv6-labs-2022
 shell type: default
Generating dry-run elapsed time: 0.327
Preprocessing: "/home/zyl/xv6-labs-2022/OutputFolderLogs/dryrun.log"
Preprocess elapsed time: 0
Parsing for IntelliSense.
Updating the CppTools IntelliSense Configuration Provider.
Parsing dry-run output for CppTools Custom Configuration Provider.
Analyzing line: make: Entering directory '/home/zyl/xv6-labs-2022'
MAKE -C: entering directory /home/zyl/xv6-labs-2022
Found compiler command: riscv64-unknown-elf-gcc    -c -o kernel/entry.o kernel/entry.S
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/kalloc.o kernel/kalloc.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/kalloc.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/kalloc.o;kernel/kalloc.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/string.o kernel/string.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/string.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/string.o;kernel/string.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/main.o kernel/main.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/main.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/main.o;kernel/main.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/vm.o kernel/vm.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/vm.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/vm.o;kernel/vm.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/proc.o kernel/proc.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/proc.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/proc.o;kernel/proc.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc    -c -o kernel/swtch.o kernel/swtch.S
Found compiler command: riscv64-unknown-elf-gcc    -c -o kernel/trampoline.o kernel/trampoline.S
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/trap.o kernel/trap.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/trap.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/trap.o;kernel/trap.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/syscall.o kernel/syscall.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/syscall.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/syscall.o;kernel/syscall.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/sysproc.o kernel/sysproc.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/sysproc.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/sysproc.o;kernel/sysproc.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/bio.o kernel/bio.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/bio.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/bio.o;kernel/bio.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/fs.o kernel/fs.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/fs.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/fs.o;kernel/fs.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/log.o kernel/log.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/log.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/log.o;kernel/log.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/sleeplock.o kernel/sleeplock.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/sleeplock.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/sleeplock.o;kernel/sleeplock.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/file.o kernel/file.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/file.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/file.o;kernel/file.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/pipe.o kernel/pipe.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/pipe.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/pipe.o;kernel/pipe.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/exec.o kernel/exec.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/exec.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/exec.o;kernel/exec.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/sysfile.o kernel/sysfile.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/sysfile.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/sysfile.o;kernel/sysfile.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc    -c -o kernel/kernelvec.o kernel/kernelvec.S
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/plic.o kernel/plic.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/plic.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/plic.o;kernel/plic.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/virtio_disk.o kernel/virtio_disk.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/virtio_disk.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/virtio_disk.o;kernel/virtio_disk.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/start.o kernel/start.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/start.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/start.o;kernel/start.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/console.o kernel/console.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/console.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/console.o;kernel/console.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/printf.o kernel/printf.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/printf.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/printf.o;kernel/printf.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/uart.o kernel/uart.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/uart.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/uart.o;kernel/uart.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie  -c -o kernel/spinlock.o kernel/spinlock.c
Sending configuration for file /home/zyl/xv6-labs-2022/kernel/spinlock.c -----------------------------------
    Defines: SOL_PGTBL;LAB_PGTBL
    Includes: /home/zyl/xv6-labs-2022
    Force Includes: 
    Standard: undefined
    IntelliSense Mode: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/spinlock.o;kernel/spinlock.c
---------------------------------------------------------------------------------------------------
Found compiler command: riscv64-unknown-elf-gcc -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2 -DSOL_PGTBL -DLAB_PGTBL -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -fno-stack-protector -fno-pie -no-pie -march=rv64g -nostdinc -I. -Ikernel -c user/initcode.S -o user/initcode.o
Analyzing line: make: Leaving directory '/home/zyl/xv6-labs-2022'
POPD command or end of MAKE -C: leaving directory /home/zyl/xv6-labs-2022 and entering directory /home/zyl/xv6-labs-2022
Sending Workspace Browse Configuration: -----------------------------------
    Browse Path: /home/zyl/xv6-labs-2022;/home/zyl/xv6-labs-2022/kernel
    Standard: undefined
    Compiler Path: /usr/bin/riscv64-unknown-elf-gcc
    Compiler Arguments: -Wall;-Werror;-O;-fno-omit-frame-pointer;-ggdb;-gdwarf-2;-MD;-mcmodel=medany;-ffreestanding;-fno-common;-nostdlib;-mno-relax;-fno-stack-protector;-fno-pie;-no-pie;-c;-o;kernel/spinlock.o;kernel/spinlock.c
----------------------------------------------------------------------------
Parsing for IntelliSense elapsed time: 0.29
Parsing for launch targets.
Analyzing line: make: Entering directory '/home/zyl/xv6-labs-2022'
MAKE -C: entering directory /home/zyl/xv6-labs-2022
Found linker command: riscv64-unknown-elf-ld -z max-page-size=4096 -N -e start -Ttext 0 -o user/initcode.out user/initcode.o
Producing target binary: user/initcode.out
Adding launch configuration:
/home/zyl/xv6-labs-2022/user>initcode.out()
Found linker command: riscv64-unknown-elf-ld -z max-page-size=4096 -T kernel/kernel.ld -o kernel/kernel kernel/entry.o kernel/kalloc.o kernel/string.o kernel/main.o kernel/vm.o kernel/proc.o kernel/swtch.o kernel/trampoline.o kernel/trap.o kernel/syscall.o kernel/sysproc.o kernel/bio.o kernel/fs.o kernel/log.o kernel/sleeplock.o kernel/file.o kernel/pipe.o kernel/exec.o kernel/sysfile.o kernel/kernelvec.o kernel/plic.o kernel/virtio_disk.o kernel/start.o kernel/console.o kernel/printf.o kernel/uart.o kernel/spinlock.o
Producing target binary: kernel/kernel
Adding launch configuration:
/home/zyl/xv6-labs-2022/kernel>kernel()
Analyzing line: make: Leaving directory '/home/zyl/xv6-labs-2022'
POPD command or end of MAKE -C: leaving directory /home/zyl/xv6-labs-2022 and entering directory /home/zyl/xv6-labs-2022
Analyzing line: make: Entering directory '/home/zyl/xv6-labs-2022'
MAKE -C: entering directory /home/zyl/xv6-labs-2022
Analyzing line: make: Leaving directory '/home/zyl/xv6-labs-2022'
POPD command or end of MAKE -C: leaving directory /home/zyl/xv6-labs-2022 and entering directory /home/zyl/xv6-labs-2022
Found the following 2 launch targets defined in the makefile: /home/zyl/xv6-labs-2022/kernel>kernel();/home/zyl/xv6-labs-2022/user>initcode.out()
Complete list of launch targets: /home/zyl/xv6-labs-2022/kernel>kernel();/home/zyl/xv6-labs-2022/user>initcode.out()
Parsing for launch targets elapsed time: 0.011
Generating parse content for build targets.
Generating targets information with command: 'make all --print-data-base --no-builtin-variables --no-builtin-rules --question'
Writing the dry-run output: /home/zyl/xv6-labs-2022/OutputFolderLogs/targets.log
Spawning child process with:
 process name: make
 process args: all,--print-data-base,--no-builtin-variables,--no-builtin-rules,--question
 working directory: /home/zyl/xv6-labs-2022
 shell type: default
Generating dry-run elapsed time: 0.027
Parsing for build targets from: "/home/zyl/xv6-labs-2022/OutputFolderLogs/targets.log"
Found the following 40 build targets defined in the makefile: clean;fs.img;grade;handin;handin-check;kernel/bio.o;kernel/entry.o;kernel/exec.o;kernel/file.o;kernel/fs.o;kernel/kalloc.o;kernel/kernel;kernel/kernelvec.o;kernel/log.o;kernel/main.o;kernel/pipe.o;kernel/plic.o;kernel/proc.o;kernel/sleeplock.o;kernel/string.o;kernel/swtch.o;kernel/syscall.o;kernel/sysfile.o;kernel/sysproc.o;kernel/trampoline.o;kernel/trap.o;kernel/virtio_disk.o;kernel/vm.o;mkfs/mkfs;myapi.key;print-gdbport;qemu;qemu-gdb;tags;tarball;tarball-pref;user/_forktest;user/initcode;user/usys.S;user/usys.o
Complete list of build targets: clean;fs.img;grade;handin;handin-check;kernel/bio.o;kernel/entry.o;kernel/exec.o;kernel/file.o;kernel/fs.o;kernel/kalloc.o;kernel/kernel;kernel/kernelvec.o;kernel/log.o;kernel/main.o;kernel/pipe.o;kernel/plic.o;kernel/proc.o;kernel/sleeplock.o;kernel/string.o;kernel/swtch.o;kernel/syscall.o;kernel/sysfile.o;kernel/sysproc.o;kernel/trampoline.o;kernel/trap.o;kernel/virtio_disk.o;kernel/vm.o;mkfs/mkfs;myapi.key;print-gdbport;qemu;qemu-gdb;tags;tarball;tarball-pref;user/_forktest;user/initcode;user/usys.S;user/usys.o
Parsing build targets elapsed time: 0.001
Configure finished. The status for all the subphases that ran:
loadFromCache: return code = -3, elapsed time = 0
generateParseContent: return code = 0, elapsed time = 0.327
preprocessParseContent: return code = 0, elapsed time = 0
parseIntelliSense: return code = 0, elapsed time = 0.29
parseLaunch: return code = 0, elapsed time = 0.011
dryrunTargets: return code = 2, elapsed time = 0.027
parseTargets: return code = 0, elapsed time = 0.001
Configure succeeded.
Sending telemetry: eventName = configure
properties: firstTime = "false",makeDryRun = "true",readCache = "false",isClean = "true",processTargetsSeparately = "false",resetBuildTarget = "false",triggeredBy = "configure dirty (on open), settings (configureOnOpen)",buildTarget = "(unset)"
measures: numberBuildTargets = "40",numberLaunchTargets = "2",numberIndexedSourceFiles = "23",numberMakefileConfigurations = "0",totalElapsedTime = "0.686",exitCode = "0",loadFromCache.exitCode = "-3",loadFromCache.elapsed = "0",generateParseContent.exitCode = "0",generateParseContent.elapsed = "0.327",preprocessParseContent.exitCode = "0",preprocessParseContent.elapsed = "0",parseIntelliSense.exitCode = "0",parseIntelliSense.elapsed = "0.29",parseLaunch.exitCode = "0",parseLaunch.elapsed = "0.011",dryrunTargets.exitCode = "2",dryrunTargets.elapsed = "0.027",parseTargets.exitCode = "0",parseTargets.elapsed = "0.001"
Configure elapsed time: 0.686
Sending telemetry: eventName = settings
properties: makefile.makeDirectory = "undefined",makefile.makefilePath = "undefined",makefile.extensionOutputFolder = "...",makefile.extensionLog = "..."

the name and full path of the c/c++ source file that has wrong IntelliSense : /home/zyl/xv6-labs-2022/user/usertests.c

I have used the method that set the "configurationProvider" option none to fix the problem. However it doesn't seem to work on my machine now.

I use VSCode in windows 10 and Remote - SSH to connect my Ubuntu VM. Thanks for your reply ❤.

gcampbell-msft commented 1 year ago

@ZhongylHNU Thanks for the bug! We haven't had time to investigate that, but I wanted to comment to let you know we've seen it. We've also seen this issue in the cmake-tools extension, so there is knowledge of the issue being preset. We'll get it on the backlog and look into it as soon as we have bandwidth. Thanks!

andreeis commented 1 year ago

@ZhongylHNU, it appears that the dryrun.log does not contain any reference of usertests.c. Since it is not compiled, we do not have information to build up IntelliSense about it, hence the error you are seeing. Maybe is not compiled because it is part of a target other than the default (first) so let's see if target "all" will trigger a compilation of usertests.c.

Try to select the target "all" in the left sidebar Makefile Tools UI panel (for "Build Target"). Repeat the diagnostic logging process and let's see if usertests.c shows up and if IntelliSense starts to work for you.

andreeis commented 1 year ago

@ZhongylHNU, did you have a chance to try the "all" target? Any change in IntelliSense for usertests.c?