Autodesk / Autodesk/maya-usd

plugin doesn't load if mod file is missing trailing whitespace

Open
#2,841 2 comments 0 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug build documentation
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

While trying to package up 0.21.0 from the provided installer for maya 2023.2 I couldn't get the plugin to load with my mod file even though it showed up in the plugin manager with the correct paths. I kept getting `Unable to dynamically load: .../plug-ins/MayaUSD/0.21.0/mayausd/MayaUSD/plugin/adsk/plugin/mayaUsdPlugin.mll` even though the file existed there.

When I diffed my mod file to the one the installer created the only difference besides paths was trailing whitespace on the empty values.

When I added the trailing whitespace the plugin loaded.

My text editor is probably setup to strip trailing whitespace

**Steps to reproduce**
Steps to reproduce the behavior:
1. install usd
2. edit `C:\Program Files\Common Files\Autodesk Shared\Modules\Maya\2023\mayausd.mod to remove trailing whitespace
3. open maya 2023
4. try to load usd plugin

**Expected behavior**
plugin should still work if white space is missing

**Attachments**
If applicable, add screenshots, sample files, etc to help explain your problem.

**Specs (if applicable):**
- Windows 10
- Maya 2023.2
- Maya USD 0.21.0

**Additional context**
There should at least be a comment in the provided mod file saying the spaces are required.
![image](https://user-images.githubusercontent.com/6559190/214457495-e27f1b4d-d706-449e-ad87-6d97e47d3356.png)

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.