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

Don't print C# code #2

Open
YTClame opened this issue Feb 9, 2023 · 5 comments
Open

Don't print C# code #2

YTClame opened this issue Feb 9, 2023 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@YTClame
Copy link

YTClame commented Feb 9, 2023

изображение
But original site print result.
изображение

@fedebotu
Copy link
Owner

fedebotu commented Feb 9, 2023

Hi, thanks for your report!
I think it is due to how the hashtag # is parsed. In the Chat-GPT extension here they return "stringified" data, so I believe this may be the way to do it (another reference here).
I hope to fix it in the coming days when I find some time... If you or anyone else would like to contribute in the meantime, it would be great 🚀

@fedebotu
Copy link
Owner

fedebotu commented Feb 9, 2023

Update: if you substitute "#" with "sharp" it works, so I think we need to substitute / stringify the request itself
image

@YTClame
Copy link
Author

YTClame commented Feb 9, 2023

Hi! Unfortunately, I've worked very little with TypeScript and never worked with extensions in browsers, so I'm unlikely to be able to help( But so far the option with "csharp" instead of "c#" does work, thanks!

@fedebotu
Copy link
Owner

fedebotu commented Feb 10, 2023

I see, thanks anyways. If anyone else wants to implement the feature (I will be unavailable for some time), I will gladly check and merge their pull requests 😄

@fedebotu
Copy link
Owner

Update: I tried a bunch of things, and found out that the hashtag # is not recognized with URL requests (https://stackoverflow.com/questions/23246565/hashtag-not-recognized-in-url-request).

Substituting # with %23 manually seems to do the trick. So it should be possible to encode the URL: I tried the encodeURIComponent but seemed not to work, perhaps am missing something 🤔 Flagging the issue for anyone who wants to try and fix the bug!

@fedebotu fedebotu added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants