Chakroun-Anas / turbo-console-log

591 stars 141 forks source link

Wrong log position #135

Closed demedos closed 1 year ago

demedos commented 3 years ago

Hi,

it's been a while since TCL started placing the logs in the wrong position, sometimes even dozens of lines below the cursor.

Those are my vscode settings:

{
  "turboConsoleLog.logMessagePrefix": "TCL:",
  "turboConsoleLog.insertEnclosingFunction": true,
  "turboConsoleLog.includeFileNameAndLineNum": false,
  "turboConsoleLog.insertEnclosingClass": false,
  "turboConsoleLog.delimiterInsideMessage": "",
  "javascript.validate.enable": false,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.tabSize": 2,
  "editor.formatOnSave": true
}
AEsmerio commented 3 years ago

I've same issue. I thought it would be because I don't use Semicolons, but that's the issue.

yonifra commented 3 years ago

I experience this same behavior. Please fix, it sometimes adds the console.log in a very weird place, causing builds to fail later on since I didn't even know there was a console.log there...

thebhaskara commented 3 years ago

Facing same issue... is there even a work around?

MiniMarker commented 3 years ago

+1 Same issue here

Chakroun-Anas commented 2 years ago

Hello guys,

Sorry about the inconveniences, the extension is not perfect, there is no magic solution to make sure that it will function perfectly in every use case, the only thing that we can do is to identify every edge case scenario, report it and fix it, i encourage you to share with me the information about each edge case scenario so that we deal with it (code snippet, configurations, etc), thx.

demedos commented 2 years ago

@Chakroun-Anas I've been using this extension for years and it's very good, no need to be sorry about anything. The next time I face this issue I'll try to isolate it and report it back.