Conversation
|
From my recollection of writing this, Paths are used on the StaticLint side for naming of files (i.e. the I hope that makes some sense |
|
Yep, that makes sense! I reworked this PR so that we have a I tried to audit all calls to either And then I think you need to change StaticLint.jl to be able to deal with these |
|
@ZacLN do you think it will be tricky to adjust StaticLint.jl to this? |
|
Is it possible to leave the |
|
I guess yes, but my thinking had been that by explicitly using |
|
@ZacLN how do we proceed with this? Do you want me to change this to empty strings if there is no path, or stick with |
|
Can we use empty strings for now and revisit it later |
|
Alright, removed the |
We currently seem to assume that we can compute a path for every document that VS Code asks us to open. That is not correct, we can get URIs with a non
filescheme, and in those cases we cannot create a path from the URI.This starts to fix this, but is not complete. I think there are various places in StaticLint that make an assumption that we can have a path always, right?
Do we maybe need a function like
haspaththat one can call on a doc, and then make sure that we handle the cases where that would returnfalse?PS: oh, this was triggered by this crash report.