Open Ataraxia-Mechanica opened 1 year ago
Nevermind just tried to generate in the same folder it also fails. Can't figure out the reason.
Same issue. This was working correctly for me until maybe 1-2 months ago, but now it's doing this.
This is strange. The behavior happens when I access a remote workspace from my Mac, but NOT when I connect from Windows. Could it be confused by a path internally?
Just to add more information, this is happening to me on a local machine running Ubuntu 22.04
For me it was happening on a Windows 10 local machine
Okay, this is nuts. Today it works just fine with absolutely no changes to my workspace or versions. I wonder if it's actually some sort of state issue.
This behaviour just appeared on my Linux machine, after working correctly just seconds ago.
CSymbol.ts:835-841
const nameEndIndex =
this.document.offsetAt(this.selectionRange.end) - this.document.offsetAt(declarationStart);
const paramStartIndex = maskedDeclaration.indexOf('(', nameEndIndex);
const paramEndIndex = maskedDeclaration.indexOf(')', nameEndIndex);
if (paramStartIndex === -1 || paramEndIndex === -1) {
return ''; //dumb early return
}
I will be trying to fix this. I have no expectation of this future PR being merged.
https://github.com/microsoft/vscode-cpptools/issues/1162 CPPtools can move functions to the corresponding cpp file by right clicking a function -> refactor now. Can't do batching though.
rng.hpp, in /include/ folder:
File generated in /src/ folder:
(This issue also occurs when choosing other definition-generating commands when the files are in different folders)