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

Debug toolbar is enabled for non-Python files (e.g.: .trp) #19920

Closed
dan123456-eng opened this issue Oct 24, 2022 · 10 comments
Closed

Debug toolbar is enabled for non-Python files (e.g.: .trp) #19920

dan123456-eng opened this issue Oct 24, 2022 · 10 comments

Comments

@dan123456-eng
Copy link
Contributor

dan123456-eng commented Oct 24, 2022

Problem Description

Python files:
im
Other files:
im2

What steps reproduce the problem?

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

  • Spyder version: 5.3.2
  • Python version: 3.8
  • Qt version:
  • PyQt version:
  • Operating System name/version: Windows10
@dan123456-eng dan123456-eng changed the title Debug mode does not enable buttons for files (e.g.: .f and .trp) Debug mode does not enable buttons for files (e.g.: .trp) Oct 24, 2022
@dalthviz
Copy link
Member

dalthviz commented Oct 26, 2022

Hi @dan123456-eng thank you for the feedback! Spyder only supports debugging Python so that's way the button is grayed out for non-python files.

I'm not totally sure if there is something we can do about that but just in case pinging @ccordoba12 and @impact27 (maybe they could give a better explanation fo this behavior)

@ccordoba12
Copy link
Member

Spyder only supports debugging Python so that's way the button is greatout for non-python files.

Yeah, that's basically the reason.

I'm not totally sure if there is something we can do about that

Well, we could try to support the Debug adapter protocol for other languages, but I don't think our own Python debugger would work well with it. In any case, this is not in our roadmap for the future.

@dan123456-eng, could you explain why you'd like to see this functionality in Spyder?

@dan123456-eng
Copy link
Contributor Author

dan123456-eng commented Oct 27, 2022

hi @dalthviz, @ccordoba12 and @impact27 thanks for feedbeck! At the moment this functionality is not so necessary. I'm going to discuss it with our project people here.

I will talk to the person dedicated to external languages about the Debug adapter protocol for other languages and update this issue. At the moment I'm learning about it.

@dan123456-eng
Copy link
Contributor Author

dan123456-eng commented Oct 31, 2022

A doubt aroset. If the Run current cell, Go to next and Run selection or current line buttons would not be abilitated after Run file?
run

Unlike what was said at the beginning of this issue, would it be weird if buttons were enabled for languages other than .py, but not performed debug actions

@ccordoba12
Copy link
Member

So, you mean that you're seeing the run buttons as enabled for files that are not Python? Unfortunately, that's not what I'm seeing on my end:

imagen

However, we're showing most debugger buttons as enabled, as can be seen in my screenshot. That's already fixed in master and it'll be part of Spyder 6.

@dan123456-eng
Copy link
Contributor Author

However, we're showing most debugger buttons as enabled, as can be seen in my screenshot. That's already fixed in and it'll be part of Spyder 6.master

Wonderful, very good.

@dan123456-eng
Copy link
Contributor Author

So, you mean that you're seeing the run buttons as enabled for files that are not Python? Unfortunately, that's not what I'm seeing on my end:

Hello @ccordoba12 sorry! Buttons are not enabled for external languages here. I asked if it would be strange if the buttons only enabled but did not debug for external languages.

@ccordoba12
Copy link
Member

I asked if it would be strange if the buttons only enabled but did not debug for external languages.

You're right, that's strange and it's actually a user interface bug. However, since it's already fixed and the fix will be part of Spyder 6, I don't know if it's ok for you to close this issue.

@ccordoba12 ccordoba12 changed the title Debug mode does not enable buttons for files (e.g.: .trp) Debug toolbar is enabled for non-Python files (e.g.: .trp) Nov 14, 2022
@ccordoba12 ccordoba12 added this to the v6.0alpha1 milestone Nov 14, 2022
@dan123456-eng
Copy link
Contributor Author

hello @ccordoba12 can close the issue. thank you so much for the dedication.

@ccordoba12
Copy link
Member

Closing then. Thanks a lot also for your interest and contributions to make Spyder better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants