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

md opened as binary #3797

Closed
sysmat opened this issue Mar 17, 2022 · 19 comments
Closed

md opened as binary #3797

sysmat opened this issue Mar 17, 2022 · 19 comments
Labels
caused-by-plugin issue caused by a third party plugin kind:bug Bug report or fix

Comments

@sysmat
Copy link

sysmat commented Mar 17, 2022

Apache NetBeans version

Apache NetBeans 13

What happened

*.md file extension is recognized an icon is ok, but NB only have option open as binary

How to reproduce

No response

Did this work correctly in an earlier version?

Apache NetBeans 12.5

Operating System

windows

JDK

17

Apache NetBeans packaging

Apache NetBeans platform

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

@sysmat sysmat added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Mar 17, 2022
@vieiro vieiro added kind:feature A feature request and removed kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Mar 17, 2022
@vieiro
Copy link
Contributor

vieiro commented Mar 17, 2022

Duplicate of #3714 .
This is not an issue, it's a feature request.

@vieiro vieiro closed this as completed Mar 17, 2022
@neilcsmith-net
Copy link
Member

@sysmat can you share a copy of the file? Cannot reproduce.

@neilcsmith-net
Copy link
Member

@vieiro this doesn't sound like a duplicate of that feature request. It sounds like a possible bug, but not one I can reproduce on my setup.

@neilcsmith-net neilcsmith-net added kind:bug Bug report or fix pending-response Awaiting further information to be supplied and removed kind:feature A feature request labels Mar 17, 2022
@mbien
Copy link
Member

mbien commented Mar 17, 2022

do/did you have the plugin BinEd installed?

@sysmat
Copy link
Author

sysmat commented Mar 18, 2022

  • utf-8 encoding
  • CR LF(windows)

README.md

NB13_MD

@neilcsmith-net
Copy link
Member

Verified with BinEd plugin as @mbien stated. Not a bug in NetBeans. Please uninstall BinEd and report an issue to the plugin author.

@neilcsmith-net neilcsmith-net removed the pending-response Awaiting further information to be supplied label Mar 18, 2022
@sysmat
Copy link
Author

sysmat commented Mar 18, 2022

I don't have BinEd and can't find it in netplugins search

@neilcsmith-net
Copy link
Member

Please try with a clean userdir and without importing settings then. It might be that it's left something behind. That action and display comes from that plugin.

@Chris2011
Copy link
Contributor

I don't have BinEd and can't find it in netplugins search

I'm pretty sure that you have it. The plugin had an other name before, just search for "bin" or "hex" and make sure you checked the checkbox for "Show details"

@sysmat
Copy link
Author

sysmat commented Mar 18, 2022

NB13_plugins

@Chris2011
Copy link
Contributor

As I said, you need to check the checkbox "Show details" over the list and use the search field on the right to search for hex or bin if the list is to long. What you see in the list is just the categories.

@sysmat
Copy link
Author

sysmat commented Mar 18, 2022

  • yes, my mistake, I have it and deactivated + restart
  • icon of file is still visbale, but file can't be opened, not even as plain text
  • when on *.md file and right-click no toggle options , so it can not be edited in NB 13

@Chris2011
Copy link
Contributor

I can reproduce it. There are no actions on the file. Just mine from my plugins, also no error/exception. What happens, when you try to have a clean user dir for NB 13? Just rename the user dir to 13.0-bak or so and try it again.

@mbien
Copy link
Member

mbien commented Mar 18, 2022

looks like my suspicion was correct, you had BinEd installed.

BinEd registers its open action in a fairly creative way to all available file loaders. It persists even after uninstalling.

you have to reset your config or remove/fix manually the files in "~/.netbeans/13/config/Loaders/text/" x-markdown-nb specifically for md files, but there might be others.

i really like BinEd, but we should consider removing it from the plugin portal until this is fixed. This seems to cause too much trouble, I saw someone else with the same issue on slack recently + it happened to me too.

in any case: the right place for filing this issue would be the BinEd project, we can't do a lot from here.

@sysmat
Copy link
Author

sysmat commented Mar 19, 2022

  • after removing Roaming\NetBeans\13\config\Loaders\text\x-markdown-nb now it works; @mbien thx

@hajdam
Copy link

hajdam commented Oct 11, 2022

Any recommendation how to fix the issue for bined plugin - better approach to register action for all file types? It seems that netbeans uses "-nb" postfix for dynamically registered file types or is there better access to internal repository?

@Chris2011
Copy link
Contributor

Chris2011 commented Oct 11, 2022

In general we don't have this postfix in other mimetypes and also we shouldn't. I dunno why -nb was added but in general we don't have it.

@mbien mbien added the caused-by-plugin issue caused by a third party plugin label Oct 21, 2022
@Chris2011
Copy link
Contributor

Hey @sysmat please check with latest NetBeans 15 (I think NetBeans 16 is around the corner) and with newest Bined-netbeans-plugin 0.2.4 (https://bined.exbin.org/netbeans-plugin/)

@sysmat
Copy link
Author

sysmat commented Nov 5, 2022

  • I'm using NB 15, but now without binary view plugin, and MD editor works fine
  • I'll try bined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caused-by-plugin issue caused by a third party plugin kind:bug Bug report or fix
Projects
None yet
Development

No branches or pull requests

6 participants