Open beauvaisbruno opened 3 years ago
Same here. My console output (from eslint) looks like this:
src\campaigns\Create.tsx
Line 2:27: 'useCallback' is defined but never used @typescript-eslint/no-unused-vars
I was hoping to be able to click on the filename, but I get:
[Window Title]
file:///C:\campaigns\Create.tsx
[Content]
Windows cannot find 'file:///C:\campaigns\Create.tsx'. Make sure you typed the name correctly, and then try again.
[OK]
As for temporary solution I modified formatter to output linux style paths (via /), and it works
Intriguing.
When you say you modified "formatter", where & what is that? Are you saying that you forked the intellij-awesome-console
IntelliJ plugin, recompiled it and installed your fork? Do you have a guide on how to do that & is your fork public? Or something else?
@RichardBradley for example https://github.com/eslint-community/eslint-formatter-codeframe/blob/main/index.js#L33
replaced with
let relPath = path.relative(process.cwd(), filePath)
.replaceAll(path.sep, path.posix.sep);
Status update: I'm working on a complete rewrite of the parsing logic with eager path matching iterating through a tree of words. If that works out we will finally have both: Proper windows detection as well as near arbitrary amount of allowed whitespaces in directory names.
When I click on absolute path on a stack trace (C:\Users\bruno\WebstormProjects\shapito\server\functions\dist\commons\util.js:9:13)![Capture](https://user-images.githubusercontent.com/45094351/104755090-4d456a00-575a-11eb-9074-4f94202dcc18.jpg)