Giter Club home page Giter Club logo

Comments (7)

v-ericawu avatar v-ericawu commented on June 14, 2024 1

@borjamunozf Sorry for misunderstanding your question, for your issue we tried to use open-source projects that didn‘t reproduce it, in order for us to investigate this issue further, could you please provide a sample project and detailed steps to reproduce it (a video of the reproduction would be great)? We are looking forward to your reply. Thank you.

from vscode-cmake-tools.

borjamunozf avatar borjamunozf commented on June 14, 2024

#3575

Seems related or exactly the same scenario we're facing...

from vscode-cmake-tools.

v-ericawu avatar v-ericawu commented on June 14, 2024

@borjamunozf Thanks for the feedback, we use bullet3 project then 'CMake: Compile Active File' doesn't work properly and shows 'Unable ro find compilation information for this file' error, does this reproduce your issue? If it doesn't reproduce your issue is it possible to provide demo project & exact steps?

ENV:

  1. System info: Ubuntu 22.04.4 LTS
  2. VS code version: 1.88.1
  3. CMake Tools: v1.17.17
  4. CMake: 3.19.2

Repro Steps:

  1. Download bullet3 project and open with VS Code.
  2. Run command ‘CMake: Compile Active File’

Actual Result:
image

from vscode-cmake-tools.

borjamunozf avatar borjamunozf commented on June 14, 2024

Not sure what you mean. Has this any relationship with my error? In my case, the problem is about truncating (the compile active file does not complain, it just logs to terminal console but the cmd looks truncated, not about unable to find compilation information for this file

I cloned the repo and did that and yes, if I go to any file of the bullet3 and select Compile Active file I got that error. But I guess this is the expected behaviour, there is not compile_commands.json ?

I tried to build bullet3 with the provided script with this:

  • Modified CMakeLists root file with CMAKE_EXPORT_COMPILE_COMMANDS ON
  • Executed
./build_cmake_pybullet_double.sh
  • Same error: Unable to find compilation information for this file.

@borjamunozf Thanks for the feedback, we use bullet3 project then 'CMake: Compile Active File' doesn't work properly and shows 'Unable ro find compilation information for this file' error, does this reproduce your issue? If it doesn't reproduce your issue is it possible to provide demo project & exact steps?

ENV:

1. System info: Ubuntu 22.04.4 LTS

2. VS code version: 1.88.1

3. CMake Tools: v1.17.17

4. CMake: 3.19.2

Repro Steps:

1. Download [bullet3](https://github.com/bulletphysics/bullet3) project and open with VS Code.

2. Run command ‘CMake: Compile Active File’

Actual Result: image

from vscode-cmake-tools.

borjamunozf avatar borjamunozf commented on June 14, 2024

Hi again.

It seems that the length is not the root cause of this issue, because I was able to reproduce (after spending more time that it was required) the error with a short length. It just simply not working at all.

Here is the repo:

https://github.com/borjamunozf/vscode-cmd-truncated

  • Build with CMakePresets.
  • Try to remove build/Debug/CMakeFiles/vscode-cmd-truncated.dir/main.cpp.o
  • Run Compile Active file for main.cpp and it wont compile anything, just show the message.
/usr/bin/g++ -I/home/borjamf/workspace/vscode-cmd-truncated/quefacemos/Include -I/home/borjamf/workspace/vscode-cmd-truncated/quefacemos2/Include -I/home/borjamf/workspace/vscode-cmd-truncated/quefacemos3/Include -I/home/borjamf/workspace/vscode-cmd-truncated/quefacemos4/Include -I/home/borjamf/workspace/vscode-cmd-truncated/quefacemos5/Include -o CMakeFiles/vscode-cmd-truncated.dir/main.cpp.o -c /home/borjamf/workspace/vscode-cmd-truncated/main.cpp
  • However, copying & pasting the same compile command in the terminal will work.

from vscode-cmake-tools.

v-ericawu avatar v-ericawu commented on June 14, 2024

@borjamunozf @gcampbell-msft Thank you for investigating! We will be able to reproduce the issue using the following steps and will continue to follow up on this issue:

ENV:
System info: Ubuntu 22.04.4 LTS
VS code version: 1.88.1
CMake Tools: v1.17.17
C/C++ extension: 1.20.2(pre-release)

Repro Steps:

  1. Clone and open project with VS Code: https://github.com/borjamunozf/vscode-cmd-truncated
  2. Run 'CMake: Build' command after successfully configuring the project using CMakePreset.
  3. Remove build/Debug/CMakeFiles/vscode-cmd-truncated.dir/main.cpp.o
  4. Run 'CMake: Compile Active File' command for main.cpp.

Actual Result: The 'CMake: Compile Active File' VSCode command doesn't compile anything, it just displays the message:

/usr/bin/g++ -I/home/test/Desktop/EricaTest/vscode-cmd-truncated/quefacemos/Include -I/home/test/Desktop/EricaTest/vscode-cmd-truncated/quefacemos2/Include -I/home/test/Desktop/EricaTest/vscode-cmd-truncated/quefacemos3/Include -I/home/test/Desktop/EricaTest/vscode-cmd-truncated/quefacemos4/Include -I/home/test/Desktop/EricaTest/vscode-cmd-truncated/quefacemos5/Include -g -o CMakeFiles/vscode-cmd-truncated.dir/main.cpp.o -c /home/test/Desktop/EricaTest/vscode-cmd-truncated/main.cpp

image

More Info: Using the compile command in the terminal will work fine
Command: g++ -o main main.cpp
image

from vscode-cmake-tools.

borjamunozf avatar borjamunozf commented on June 14, 2024

Is there any way we could help with this? I have not too much exposure to Typescript and so, but if there's any info to help debugging this and accelerate would be ok for us

from vscode-cmake-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.