epam / epam/Indigo

Export of unresolved monomer to everything except KET and IDT should cause specific error message (but it doesn't)

Open
#2,045 4 comments 0 reactions 1 assignee Assigned to @even1024 View on GitHub
Export to CDX Export to CDXML Export to Extended SMILES Export to MOL Export to RXN Export to SDF Export to Sequence Priority: Medium
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Steps to Reproduce**
1. Go to Macromolecules mode - Flex mode
2. Load using paste from clipboard IDT type: `/i2AmPr/`
![image](https://github.com/epam/ketcher/assets/26869421/fbc222f8-0ed5-450b-8db7-8e11418896d5)
3. Try to save canvas to Mol v2000 (and others unsupported - SDF v2000, SDF v3000, Daylight SMARTS, HELM)

**Actual behavior**
- [ ] Mol v2000 - Not fixed.
![image](https://github.com/user-attachments/assets/65986e81-40d7-452c-8b7e-76b1a22a68c9)
- [ ] SDF v2000 - Not fixed
![image](https://github.com/user-attachments/assets/ffdd0706-0e97-47e4-afac-ef8ac767a7b7)
- [ ] SDF v3000 - Not fixed
![image](https://github.com/user-attachments/assets/2046448a-aa75-47ee-9b0d-f65fa16e0046)
- [ ] Daylight SMARTS - Not fixed
![image](https://github.com/user-attachments/assets/d8b9b7b2-3d8c-42f1-9da0-6943878a7973)
- [ ] RXN v3000 - Not fixed
![image](https://github.com/user-attachments/assets/7a965bf3-6347-4aed-87d7-50f131c9cf6e)

**Expected behavior**
System shows an error: Monomer /i2AmPr/ couldn't be saved to MDL Molfile V3000 format
![image](https://github.com/epam/Indigo/assets/26869421/47e09fb0-0754-4115-8022-1021c5cf677b)

As per [requirements](https://github.com/epam/ketcher/issues/4431):
```
4. Attempt to save macromolecules with unknown monomers to file formats other than IDT and KET should result in error.
"Monomer /.../ couldn't be saved to .... format"
```

**Versions**
- Ketcher Version 2.27.0-rc.2 Build at 2024-11-12; 19:26:10
- Indigo Toolkit Version 1.26.0-rc.2.0-gfec30ecd8-wasm32-wasm-clang-19.0.0
- Chrome Version 131.0.6778.70 (Official Build) (64-bit)
- Win10

Issue found while testing - https://github.com/epam/ketcher/issues/4431

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.