Foam: Can't generate wikilinks

Created on 29 Nov 2020  Â·  13Comments  Â·  Source: foambubble/foam

  • Foam version: 0.7.2

Summary

image

cant generate wikilinks as picture. I have tried the command foam: update markdown reference list. No debug massage founded in VScode.

Steps to reproduce
1.
2.

Does this issue occur on the foam template repo? Yes/No
Yes
Additional information

Feel free to attach a screenshot and/or include a zip with a minimal repo to reproduce the issue

bug

All 13 comments

I am assuming that these references with underscores [[sample_note]] are actually sample-note.md in the filesystem? This is where the mismatch occurs, because the file has to be sample_note.md because that's the right slug conversion of [[sample_note]], or it has to be referenced like [[sample note]] or [[Sample Note]] or [[sample-note]].

  1. the filesystem is:
    image

Is https://github.com/zzan1/FoamNoteLib.git the right repo to inspect in this case? I just took a look at that and it seems like the references generate for me, even though there are other bugs in the references generation.

yean, it worked yesterday, but today, it is broken. And I push the newest version. are you comfortable to check it.

The references do generate for me, maybe this bug is something related to windows paths?, since they do work on my *nix system.

The link [[ebl parameters]] seem to not link for me on Github (maybe because of spaces in the leading folder?)

[//begin]: # "Autogenerated link references for markdown compatibility"
[Low reflective index decrement]: Diamond_grating/low-reflective-index-decrement "Low Reflective Index Decrement"
[sputter]: Diamond_grating/sputter "Sputter"
[fib]: Diamond_grating/fib "FIB"
[ebl]: Diamond_grating/ebl "EBL Setup"
[chromium and oxgen plasma]: Diamond_grating/chromium-and-oxgen-plasma "chromium-and-oxgen-plasma"
[ebl parameters]: EBL & FIB/ebl-parameters "Ebl Parameters "
[hard-mask-diamond]: Diamond_grating/hard-mask-diamond "Hard Mask Diamond"
[icp-rie]: Diamond_grating/icp-rie "ICP-RIE"
[tapered structure]: Diamond_grating/tapered-structure "Tapered Structure"
[fluctuation_of_shot_to_shot]: FELs/fluctuation_of_shot_to_shot "Shot-to-shot fluctuations"
[behavior_of_seed_electron]: FELs/behavior_of_seed_electron "Behavior of seed electron"
[transmissive-spectrometer-design]: SpctrometerDesing/transmissive-spectrometer-design "Transmissive Spectrometer Design"
[//end]: # "Autogenerated link references"

In my case, wikilinks are only generated for new files. And they are gone after I close and reopen VSCode (not reload, though).

OS: Windows 10, working in a workspace.

I just tested today by creating a new repo from the template and when I hit save it removes the links from inbox.md.
Running on vscode 1.51.1/Windows 10 19041

In my case, wikilinks are only generated for new files. And they are gone after I close and reopen VSCode (not reload, though).

OS: Windows 10, working in a workspace.

Same thing happens on my environment, not sure if it's caused by the same issue or is a different issue altogether.

Tested by reverting to version 0.6.0 and it still doesn't work... I wonder if it's an issue with vscode and not Foam

If I clone the repo to my WSL2 environment and open that from vscode... then there is no issue... something about running it from Windows file system

I'm seeing this on MacOS.

image

Reference section is not added to cat-food.md. It _did_ make a link on the graph to cheese_underscore but there's actually a _second_ node added (see right of "Cat Food") that actually represents the file; it has the proper label and all.

I tested the automatic link generation today with VSCode 1.51.1 and Foam Extension 0.7.6 and it worked on Windows. ¯\_(ツ)_/¯

The latest patch versions of Foam addressed various Windows-related issues, so that was probably the cause of the issues here.

In this case I will close the issue now as I believe nothing else needs to be tracked here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jetk picture jetk  Â·  6Comments

srid picture srid  Â·  3Comments

jsjoeio picture jsjoeio  Â·  5Comments

fmagin picture fmagin  Â·  7Comments

jsjoeio picture jsjoeio  Â·  3Comments