Open Lecrapouille opened 3 weeks ago
Oups 1/2 of my bad ;(
const documentFolderPath = path.dirname(document.uri.fsPath);
const imgPath = path.join(documentFolderPath, imagePath);
Paths to picture shall be local to the file!
Note: Initially I failed with my local path (the file really does not exist), that is why I tried canonical path.
BUT:
//! [/home/qq/Bureau/foo.png]
show the error message "Image Comments Could not find image" (note could be nice to show the full path)// [/home/qq/Bureau/foo.png]
is not detected. I thinks an issue in your regexp because // foo [/home/qq/Bureau/foo.png]
works event // foo[/home/qq/Bureau/foo.png]
(no spaces).Thanks, that's a case I haven't tested. Are you able to make a pull request with a solution? Otherwise I take a look in a couple of days.
@mgiesen I'm sorry I've just looked quickly your code. For my case, I can deal with the actual behavior.
Hi !
Image comment v 1.1.0, Debian 12, VScode 1.93.0, C++ code
I always have the following error "Image Comments Could not find image"
I tried local and canonical paths, jpeg, png ;(
Have I missed apt-get install a lib?
And there is no display and no message error with the following comment: