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

#line directives confuse VSCode #385

Open
kmyk opened this issue Mar 29, 2021 · 0 comments
Open

#line directives confuse VSCode #385

kmyk opened this issue Mar 29, 2021 · 0 comments
Labels
difficulty:low enhancement New feature or request

Comments

@kmyk
Copy link
Member

kmyk commented Mar 29, 2021

Summary / 概要

oj-bundle outputs #line directives to trace the origin of lines in the generated code. This feature may confuse IDE when users copy & paste a bundled code from a web documentation. Possibly we should disable this feature on the embedded code in the document.

Steps to reproduce / 再現方法

  1. Copy a generated code from the web
  2. Paste it to the code on the VSCode
  3. Use breakpoints feature

environments:

  • unknown

Expected behavior / 期待される挙動

Actual behavior / 実際の挙動

something wrong

Other notes / その他

verification-helper で bundle したライブラリを張り付けて visual studio で実行すると、# line が悪さをするっぽくてブレークポイントが上手く機能しなくなる

— 熨斗袋 (@noshi91) March 29, 2021

他人のライブラリを見て貼り付けるとき Web ページで bundle を押してコピペしています
そうでない方法があるかどうかは分かりません

— 熨斗袋 (@noshi91) March 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty:low enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant