Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double quotes assignment before single quote argument in class method bug #103

Closed
H0R5E opened this issue May 15, 2020 · 1 comment · Fixed by #104
Closed

Double quotes assignment before single quote argument in class method bug #103

H0R5E opened this issue May 15, 2020 · 1 comment · Fixed by #104

Comments

@H0R5E
Copy link
Contributor

H0R5E commented May 15, 2020

Hi,

I've encountered a bug where the use of a double quotes string in an assigment command before using a single quote string as an argument, seems to cause a bug. It only happens if it's a class method. A minimal example (defined as part of package 'Package') is:

classdef Test
    
    methods
        
        function obj = raiseError(obj)
            errStr = "Hello World";
            error('ErrorID', errStr)
        end

    end
    
end

The output from sphinx is then something like:

WARNING: [sphinxcontrib-matlabdomain] Parsing failed in +Package.Test. Check if valid MATLAB code.

I installed into Anaconda through PyPi:

sphinxcontrib-matlabdomain 0.11.1                   pypi_0    pypi
@joeced
Copy link
Collaborator

joeced commented May 18, 2020

Hi

thanks for the report. I can confirm the error and is actively looking into it.

joeced added a commit that referenced this issue May 18, 2020
Fixed issue with order of single and double quoted strings. It got the
lexer to produce incorrect tokens.
@joeced joeced mentioned this issue May 18, 2020
joeced added a commit that referenced this issue May 18, 2020
* Working on #103

Fixed issue with order of single and double quoted strings. It got the
lexer to produce incorrect tokens.

* Updated changes for version 0.11.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants