Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ Builder Support #8

Open
shaunroselt opened this issue Aug 2, 2023 · 10 comments
Open

C++ Builder Support #8

shaunroselt opened this issue Aug 2, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@shaunroselt
Copy link
Contributor

Describe the bug
I installed this into my RAD Studio IDE and it works fine for Delphi and C++. When I use Delphi files, then it shows I am using Delphi and when I use C++ files, then it says I am using C++.

But the issue is with the Editor. It says I am using Delphi for both Delphi and C++. It should say C++ Builder as my Editor when I'm using C++ files.

To Reproduce
Steps to reproduce the behavior:

  1. Work on any C++ Builder Project

Expected behavior
I would expect my Editor to be C++ Builder, but I only see Delphi:
image

@shaunroselt shaunroselt added the bug Something isn't working label Aug 2, 2023
@diegomgarcia diegomgarcia self-assigned this Aug 3, 2023
@diegomgarcia
Copy link
Collaborator

Nice catch, I will add a filter on the file type to change the editor to C++ Builder. However I'm relocating to another country so I expect to get into this issue on next month.

@shaunroselt
Copy link
Contributor Author

I'm thinking now.

If you add this feature to show C++ Builder, then it probably makes sense to rename this repo to "rad-studio-wakatime" as it's not just Delphi anymore.

@diegomgarcia
Copy link
Collaborator

diegomgarcia commented Oct 13, 2023

Hey @shaunroselt, I think it make sense. First we just have to check if creating just the filter will fix everything for C++ or if it will raise some new issues. If something like this happens it would be better to separate into two packages.

Lets test it as soon as I have a little more time to get into this issue to work on.

@alanhamlett
Copy link
Member

The editor displayed on your dashboard comes from parsing the heartbeat's User-Agent header or plugin json post value. For C++ Builder to be parsed I'll need to first add it to the list of supported editors.

@shaunroselt
Copy link
Contributor Author

The editor displayed on your dashboard comes from parsing the heartbeat's User-Agent header or plugin json post value. For C++ Builder to be parsed I'll need to first add it to the list of supported editors.

Can we perhaps get it added so long then, please?

It can probably have the same color as Delphi since its logos are pretty much the same in terms of dominant colors.

@alanhamlett
Copy link
Member

Added C++ Builder to the list of supported IDEs. The User-Agent header will need to be changed when the plugin detects itself running in C++ builder from:

UserAgent = 'delphi/' + DelphiVersion + ' delphi-wakatime/' + PluginVersion;

To:

UserAgent = 'delphi/' + DelphiVersion + ' cppbuilder-wakatime/' + PluginVersion;

@diegomgarcia
Copy link
Collaborator

Thanks @alanhamlett it's on my todo list now ;)

@diegomgarcia
Copy link
Collaborator

Hey @shaunroselt can you test the latest commit from the development branch to see if it works?

@shaunroselt
Copy link
Contributor Author

Hey @shaunroselt can you test the latest commit from the development branch to see if it works?

Ah. You beat me to it 😁. I wanted to add C++ Builder support this weekend 😂.

Thanks. I'll test the development branch over the weekend and get back to you.

@shaunroselt
Copy link
Contributor Author

I ended up never testing the development branch.

Is C++ Builder support still planned?

I'm still keen on this feature. It would be nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants