Enveloppe / obsidian-enveloppe

Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
https://enveloppe.github.io/
Apache License 2.0
629 stars 39 forks source link

[Bug]: Some files won't sync even when changes are found #362

Closed ThinkWithPbody closed 3 weeks ago

ThinkWithPbody commented 3 weeks ago

Issue validation

Command used

Refresh published and upload new notes

Plugin version

7.2.13

Describe the bug

I usually use refresh published and upload new notes to sync with the repo, but there are a few files that just won’t ever get sent, even when it's apparent that enveloppe is flagging a file to be sent as apparent on the top right notification. I tried all possible commands and they did not help.

These problematic notes have worked before, and this is after manually deleting the contents folder during an attempt to resync some of the missing files (potentially due to the same error) that they started being ignored.

The repo in question can be found here. Attaching video of encountered problem. https://github.com/user-attachments/assets/e470857d-3a5d-4427-9f8a-a6ebd98f342a

Thank you!

How to reproduce ?

No response

Minimal Reproducible Example

The content of the file refusing to be send is as follows. Keep in mind that this same file has worked before.

---
title: Yifu Design Lab
tags:
  - project
share: true
status: DONE
---
%%[parents:: [[People/Yifu Ding|Yifu Ding]]]%%
%%https://bit.ly/45WKQSC%%
%%https://thinkwithpbody.github.io/Yifu-Pages/Projects/2024/Yifu-Design-Lab/Yifu-Design-Lab%%

### Service

%%<span style="font-size:2em;color:red;background-color:gree;">End of Year 50% Off!</span>%%
*Cheaper, better, and faster than Stratasys FDM!*

Pick up at Daniels or 404-Major Mackenzie Dr E.

> [!tip]+ 100% satisfaction guarantee
> *Get a full reprint or 100% Refund if you are not happy with your order.*
> 
> We will inspect your files to ensure they will print correctly. If you are not happy with the quality of the product you purchased, and this is due to factors under our control, we will replace or refund your print fully. For factors that we don’t control, such as incorrect models or scale, we will strive to find a solution. For any issues contact Yifu within 7 days of job completion. 

#### Machine

FDM Bambu P1S with AMS
- Up to 4 filaments per plate
- Build volume XYZ: 225mm * 225mm * 250mm | 8.85in * 8.85in * 9.85in
- 0.4 mm hardened steel nozzle
- Bambu Studio slicer

#### Service Charge

Total = Setup + Printing Minutes + Filament Grams

Invoice available upon request.

| File Setup | Printing                                          | Filament      |
| ---------- | ------------------------------------------------- | ------------- |
| \$12       | %%<span style="color:red;">\$3</span>%%\$0.05/min | [[#Filament]] |

> [!info]
> [[#*Why is there a setup fee?*|Setup fee]] may be discounted or waived depending on complexity.
> 
> Setup fee will be waived for Bambu Studio sliced .3mf files. However, please be aware that the outcome of the initial print will be final, as no adjustments or reprints will be provided for these waived jobs. The standard "100% satisfaction guarantee," which includes the option for a full reprint or refund if you are not satisfied with your order, does not apply to these waived jobs. If you accept these conditions and wish to proceed with complete control over the print process, please use the following [template](http://www.mediafire.com/view/rgq6dceauc22jln) to get started.

### Getting Started

1. Follow [[#File Preparation]] and export files.
2. Choose your [[#Filament]].
3. Choose from one of the [[#Quality Presets]].
4. Adjust [[#Slicing Options]] as needed.
5. Send your **ZIP** file, **filament**, **preset**, and any **custom options** to Yifu Ding over Teams or [Email](mailto:yifu.ding@mail.utoronto.ca) to place job order.
6. Email transfer fees to yifuding.twp@gmail.com

#### Filament

| PLA                       |   $/kg | Hex Code                                                     |
| :------------------------ | -----: | ------------------------------------------------------------ |
| Matte Ivory White         |  25.99 | <span style="background: #FFFFFF;">FFFFFF</span>             |
| Matte Charcoal Black      |  25.99 | <span style="background: #000000;color:white;">000000</span> |
| Matte Sakura Pink         |  25.99 | <span style="background: #E8AFCF;">E8AFCF</span>             |
| Matte Lilac Purple        |  25.99 | <span style="background: #AE96D4;">AE96D4                    |
| Basic Bambu Green         |  25.99 | <span style="background: #00AE42;">00AE42                    |
| Marble White              |  38.99 | <span style="background: #F7F3F0;">F7F3F0                    |
| Silk Gold                 |  38.99 | <span style="background: #E5B03D;">E5B03D                    |
| Sparkle Crimson Red       |  38.99 | <span style="background: #792B36;color:white;">792B36        |
| Metal Iron Gray           |  38.99 | <span style="background: #43403D;color:white;">43403D        |
| Breakaway Support         |  89.98 |                                                              |
| PVA Water-soluble Support | 101.98 |                                                              |

| ABS         |  $/kg | Hex Code                                         |
| :---------- | ----: | ------------------------------------------------ |
| Basic White | 29.99 | <span style="background: #FFFFFF;">FFFFFF</span> |

| PETG        |  $/kg | Hex Code                                         |
| :---------- | ----: | ------------------------------------------------ |
| Basic White | 29.99 | <span style="background: #FFFFFF;">FFFFFF</span> |
| Basic Clear | 29.99 |                                                  |

> [!info]
> Filament prices listed reflect bulk purchasing savings and are offered without any markup.
> 
> HST will be added to the total charge.
> 
> Other filaments may be available upon request.
> [Bambu Lab](https://ca.store.bambulab.com/collections/pla?skr=yes)

#### Quality Presets

For 1 inch hollow cube with 2 walls:

| Quality Presets   | Layer Height (mm) | Time  | Minimum $ (Time + Filament) |
| :---------------- | :---------------: | :---: | :-------------------------: |
| Extra Fine        |       0.08        | 35:01 |            3.69             |
| Fine              |       0.12        | 24:43 |            2.68             |
| Optimal (Default) |       0.16        | 19:04 |            2.11             |
| Standard          |       0.20        | 15:42 |            1.77             |
| Draft             |       0.24        | 13:10 |            1.44             |
| Extra Draft       |       0.28        | 11:34 |            1.28             |

#### Slicing Options

> [!info]
>  Default value in parenthesis.
>  
>  Critical settings are marked with ❗.
>  
>  Recommended values are marked with ⭕.

Print Orientation ❗

Layer Height (0.16mm) ❗
- Affects overhang performance

Print Speed

Wall Loops (2) ❗

Wall Generator (Classic)
- Classic ⭕
- Arachne ⭕

Order of Walls (Inner / Outer)
- Inner / Outer
- Outer / Inner
- Inner / Outer / Inner

X-Y Hole Compensation (0mm)

X-Y Contour Compensation (0mm)

Infill Pattern (Grid) ❗
- Concentric
- Rectilinear ⭕
- Grid ⭕
- Line ⭕
- Cubic ⭕
- Triangles
- Tri-hexagon
- Gyroid ⭕
- Honeycomb
- Adaptive Cubic ⭕
- Aligned Rectilinear
- 3D Honeycomb
- Hilbert Curve
- Archimedean Chords
- Octagram Spiral
- Support Cubic ⭕
- Lighting ⭕

Infill Percentage 0-100% (15%) ❗

Support (Normal Automatic) ❗
1. Normal Automatic
2. Normal Manual
3. Tree Automatic
4. Tree Manual

Raft (None)

Brim (Auto) ❗
1. Auto ⭕
2. Outer Brim Only ⭕
3. Inner Brim Only
4. Outer And Inner Brim
5. No Brim ⭕

Fuzzy Skin (None) ❗
- None
- Contour
- Contour And Hole
- All Walls

Surface Pattern (Monotonic)
1. Concentric ⭕
2. Rectilinear
3. Monotonic ⭕
4. Monotonic Line
5. Aligned Rectilinear ⭕
6. Hilbert Curve
7. Archimedean Chords
8. Octagram Spiral

Ironing (Top Surfaces) ❗
1. None ⭕
2. Top Surfaces ⭕
3. Topmost Surface
4. All Solid Layer

Ironing Pattern (Rectilinear)
1. Concentric ⭕
2. Rectilinear ⭕

Thick Bridges (None)

Seam Positions (Aligned)
1. Nearest
2. Aligned
3. Back
4. Random

Scarf Joint Seam (Contour And Hole)
1. None
2. Contour
3. Contour And Hole

### File Preparation

![[Projects/2024/Yifu Design Lab/Attachments/Yifu Design Lab/2024-04-10T21_01_21-05_00_TWP-X570-WIN10(Rhino).gif]]
*The pricing calculation in this demonstration is outdated.*

#### Orientate

Choose printing **orientation** for maximum smoothness. 
- Printing a thin, organic piece vertically provides smoother detail and needs less support than laying it flat on the bed.

#### Divide

Divide large models exceeding the **build volume** with a **planar** cutter to provide **flat surfaces** that will adhere to the print bed nicely.
- Each model need to be a closed solid with no non-manifold geometry. They should be **watertight**.
- For pieces that are thin and tall, height is recommended to not exceed 100 mm.
- Keep in mind that any **overhang** exceeding 25 degrees will need substantial support structure which could be reduced or eliminated if they were divided and orientated differently.
- **WireCut** is a great command for this purpose. If WireCut didn't work on your model, chances are it isn't watertight and it won't print properly either.

#### Export

Files should be exported as **STL in millimetres**.
- Rhino files or incorrectly scaled STL will not be accepted.
- **Each separated body should be one file** regardless of which plate they may be on, to maximize nesting potential.
    - When relative positioning is important, add a small bridge with a cross section of 0.5-1mm² (depending on strength requirement) directly on the print bed and boolean union all connected bodies.
- For multiple objects, use the Rhino command **RunPythonScript** with the [[Projects/2024/Yifu Design Lab/Attachments/Yifu Design Lab/BatchExportSTLByObj.py|Batch Export Python Script]] to export all selected files at once.
- Deliver more than one .stl files as a **ZIP**.

### Showcase

![[Projects/2024/Yifu Design Lab/Attachments/Yifu Design Lab/DSCF4947.jpg|400]]
<iframe title="Speckle" src="https://app.speckle.systems/projects/aefb5374cb/models/a8a8bbe12f#embed=%7B%22isEnabled%22%3Atrue%7D" width="800" height="400" frameborder="0"></iframe>

by Arjay Asuncion - 2024

### FAQ

###### *Why is there a setup fee?*

This setup fee allows me to take more care optimizing your print file and compensates me for my continued presence. Optimizations can massively reduce your print time and filament use, lowering total cost, but each job is different and it takes time. I try my best to provide affordable and environmentally responsible printing service, which is why I offer my time and expertise at a modest fee. You'll always have the option to slice it by yourself and I am pleased to waive the setup fee for such cases, but current success rate for this option is only 0%.
![[Projects/2024/Yifu Design Lab/Attachments/Yifu Design Lab/2024-04-10T00_15_05.jpg|400]]

%%
### Tiny Tracker

Abida - 3.95

%%

Configuration

{
  "github": {
    "branch": "v4",
    "automaticallyMergePR": true,
    "dryRun": {
      "enable": false,
      "folderName": "enveloppe"
    },
    "tokenPath": "%configDir%/plugins/%pluginID%/env",
    "api": {
      "tiersForApi": "Github Free/Pro/Team (default)",
      "hostname": ""
    },
    "workflow": {
      "commitMessage": "[ENVELOPPE] Merge",
      "name": ""
    },
    "verifiedRepo": true
  },
  "upload": {
    "behavior": "obsidian",
    "defaultName": "content",
    "rootFolder": "",
    "yamlFolderKey": "",
    "frontmatterTitle": {
      "enable": false,
      "key": "title"
    },
    "replaceTitle": [],
    "replacePath": [],
    "autoclean": {
      "includeAttachments": true,
      "enable": true,
      "excluded": []
    },
    "folderNote": {
      "enable": false,
      "rename": "index.md",
      "addTitle": {
        "enable": false,
        "key": "title"
      }
    },
    "metadataExtractorPath": ""
  },
  "conversion": {
    "hardbreak": false,
    "dataview": true,
    "censorText": [],
    "tags": {
      "inline": true,
      "exclude": [],
      "fields": []
    },
    "links": {
      "internal": true,
      "unshared": true,
      "wiki": false,
      "slugify": true
    }
  },
  "embed": {
    "attachments": true,
    "overrideAttachments": [],
    "keySendFile": [],
    "notes": true,
    "folder": "",
    "convertEmbedToLinks": "keep",
    "charConvert": "->",
    "unHandledObsidianExt": [
      "py"
    ],
    "sendSimpleLinks": true,
    "useObsidianFolder": true
  },
  "plugin": {
    "shareKey": "share",
    "excludedFolder": [
      "Configs/Templater",
      "Family/Finance",
      "Family/Recipe"
    ],
    "copyLink": {
      "enable": true,
      "links": "",
      "removePart": [],
      "transform": {
        "toUri": true,
        "slugify": "lower",
        "applyRegex": []
      }
    },
    "setFrontmatterKey": "Set"
  },
  "tabsId": "github-configuration"
}

Relevant log output

No response

OS

Windows

Anything else?

No response

Obsidian information

SYSTEM INFO:
    Obsidian version: v1.6.7
    Installer version: v1.5.3
    Operating system: Windows 10 Enterprise 10.0.19045
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Base theme: light
    Community theme: Minimal v7.4.6
    Snippets enabled: 3
    Restricted mode: off
    Plugins installed: 37
    Plugins enabled: 31
        1: Google Calendar v1.10.15
        2: Recent Files v1.5.0
        3: Tasks v7.9.0
        4: Advanced Tables v0.22.0
        5: Excalidraw v2.4.1
        6: Iconize v2.14.3
        7: Dataview v0.5.67
        8: Tag Wrangler v0.6.1
        9: Find orphaned files and broken links v1.10.1
        10: Better Word Count v0.10.1
        11: Emoji Toolbar v0.4.1
        12: Advanced Slides v1.20.0
        13: Periodic Notes v0.0.17
        14: Paste URL into selection v1.7.0
        15: Calendar v1.5.10
        16: Hover Editor v0.11.20
        17: Commander v0.5.1
        18: Minimal Theme Settings v8.1.1
        19: Sortable v0.3.1
        20: Templater v2.7.1
        21: Path Finder v1.1.7
        22: ExcaliBrain v0.2.15
        23: Omnisearch v1.24.1
        24: Text Extractor v0.5.2
        25: QuickAdd v1.11.1
        26: Map View v5.0.3
        27: Outliner v4.8.1
        28: Attachment Management v0.9.14
        29: Enveloppe v7.2.13
        30: April's Automatic Timelines v0.13.5
        31: Pandoc Plugin v0.4.1

RECOMMENDATIONS:
    Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
    Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
Lisandra-Archive commented 3 weeks ago

Could you please retry with the last version ? It is possible that the bug fix for #363 fix also this issue

ThinkWithPbody commented 3 weeks ago

Hello, thanks for taking a look into this. I updated to 7.3.2 then tried Refresh and Upload, Upload All, and Upload Single Active. Unfortunately, they exhibit the same behavior, ignoring some files that are marked for share.

Mara-Li commented 3 weeks ago

Did you have something in the console ?

ThinkWithPbody commented 3 weeks ago

obsidian.md-1727036040675.log

You're right, I see a SyntaxError here.

Mara-Li commented 3 weeks ago

Seems to be an issue on your side then !

ThinkWithPbody commented 3 weeks ago

Sorry, do you mind sharing what was wrong with this note then? I don't quite understand what the problem could be here.

Mara-Li commented 2 weeks ago

Your regex is bad! See this line: SyntaxError: Invalid regular expression: /(\[{2}#\*Why is there a setup fee\?\*(\\?\|.*?)?\]{2})|(\[.*?\]\((#\*Why is there a setup fee\?\*|#*Why%20is%20there%20a%20setup%20fee?*)\))/g

Don't hesitate to test it with Regex101 with EmacScript settings :)