Skip to content

Conversation

@ayamir
Copy link
Owner

@ayamir ayamir commented Nov 17, 2024

@ayamir
Copy link
Owner Author

ayamir commented Nov 17, 2024

@CodingOIer

@charliie-dev
Copy link
Collaborator

seems reasonable for me, but i'm currently busy so i can't test it.

@Oracynx
Copy link

Oracynx commented Nov 18, 2024

However, the default output path of Debug should also be changed to ./filename.out. Now the default is ./a.out, and the compiled binary file is ./filename.out

@ayamir
Copy link
Owner Author

ayamir commented Nov 18, 2024

However, the default output path of Debug should also be changed to ./filename.out. Now the default is ./a.out, and the compiled binary file is ./filename.out

Done

@Oracynx
Copy link

Oracynx commented Nov 18, 2024

It works great, thanks a lot

@ayamir ayamir merged commit a1c76b2 into main Nov 18, 2024
4 checks passed
@ayamir ayamir deleted the feat/async_compile_and_debug branch November 18, 2024 13:22
Deg2v pushed a commit to Deg2v/nvimdots that referenced this pull request Jan 16, 2025
* feat: auto compile before debug (ayamir#1367).

* fix: ci.

* fix: ci.

* fix: keep filename consistency with compiled outfile and prompt.

---------

Signed-off-by: ayamir <lgt986452565@gmail.com>
Jint-lzxy added a commit that referenced this pull request Jan 18, 2025
This PR reverts commit a1c76b2.

The main rationale behind this is IMO the current implementation of this
function has several limitations that need to be addressed:

1. It works with only a single file, which is not typical for most use cases
2. It only supports gcc as the compiler, whereas other compilers (most notably
   clang, xlc, cl.exe and friends) are not supported
3. There's no way to control compile and/or build flags.
4. File type detection is too restrictive and doesn't cover all cases (using
   vim's ftplugins may be more effective)
and
5. Violating any of these assumptions results in errors, rendering this keymap
   completely ineffective.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants