Skip to content

IntelliSense(?): Error reading file paths which include whitespaces #3357

@KarateBrot

Description

@KarateBrot

Type: LanguageService


Describe the bug

  • OS and Version: Windows 8.1
  • VS Code Version: 1.32.3
  • C/C++ Extension Version: 0.22.1

The issue

The C/C++ output of my project tells me:

Failed to query default include paths and defines for C:/Users/Jan. WSL not detected
Failed to query default include paths and defines for C:/Users/Jan. WSL not detected

Notice that the path gets cut off after a whitespace. The actual path should read something like

C:/Users/Jan Post/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-gcc.exe

I guess while parsing the file path in a function somewhere, the string gets terminated after encountering a whitespace.

I encountered the same issue in the previous cpptools version but there were a lot more errors concerning strings that got terminated after whitespaces. So they are fixed now. (Thanks a lot!)

Now only these two error messages are left. So somewhere there is still a function that chops away a part of my file path.


To Reproduce

  • You need to have a Windows user name including a whitespace to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseLanguage ServicefixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions