Code Monkey home page Code Monkey logo

Comments (23)

smbaca avatar smbaca commented on August 30, 2024 1

Yes, many thanks! I am sure Mark and I will be circling back but at least we can get into trouble with making and compiling conductances and novel mechanisms on all the OSs now. :-)

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

it's fairly hard for me to troubleshoot this as i don't have a windows computer, but can you try this:

cpplab.search('conductances')

what do you get? I suspect you get nothign

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

@smbaca cpplab.search('conductances') loops indefinitely? is this true on other OSes as well? thanks for the bug report, we can probably sort this out quickly

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

OK, thanks for that info. just to be clear,

this:

cpplab.search('conductances')

loops indefinitely on windows?

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

thanks. could you also run this on your windows computer:


xroot = fileparts(fileparts(which('xolotl')))

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

OK i'm scratching my head. the only way this is possible is if there is a loop on your filesystem. perhaps you accidentally created an alias in one of the folders to a parent so that when it searches those folders it keeps going round and round?

other than that the only thing i can suggest is to reinstall. unless you're using a bleeding edge feature using the toolbox installer should work on windows

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

ugh!

is this preventing you from running xololt on windows? i know this is a bug but i want to prioritize you getting to working again

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

can you do a screenshare?

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

alec-hoyland avatar alec-hoyland commented on August 30, 2024

Machine info

Windows Build | 19044
MATLAB Version | 9.12.0.2009381 (R2022a) Update 4

>> mex.getCompilerConfigurations("C++")

ans = 

  CompilerConfiguration with properties:

             Name: 'MinGW64 Compiler (C++)'
     Manufacturer: 'GNU'
         Language: 'C++'
          Version: '6.3.0'
         Location: 'C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\mingw_w64.instrset'
        ShortName: 'mingw64-g++'
         Priority: 'E'
          Details: [1×1 mex.CompilerConfigurationDetails]
       LinkerName: 'C:\ProgramData\MATLAB\SupportPackages\R2022a\3P.instrset\mingw_w64.instrset\bin\g++'
    LinkerVersion: ''
           MexOpt: 'C:\Users\alech\AppData\Roaming\MathWorks\MATLAB\R2022a\mex_C++_win64.xml'

Proof of life:

image

Error

I was able to reproduce the issue @smbaca is having. cpplab.search('conductances') works as expected, but xolotl.testConductances fails:

>> xolotl.testConductances
No objects found
One or more output arguments not assigned during call to "varargout".

Error in xolotl/testConductances (line 8)
all_cond = cpplab.search([xroot  filesep 'c++'  filesep 'conductances']);

from xolotl.

alec-hoyland avatar alec-hoyland commented on August 30, 2024

@sg-s The issue is in the regex matching here:

https://github.com/sg-s/cpplab/blob/1e6857bce8756594b0d63b154ba0052390b58051/%40cpplab/search.m#L55

from xolotl.

alec-hoyland avatar alec-hoyland commented on August 30, 2024

Windows doesn't like that you're using regex/escaping with backslashes. Using the contains function fixes that. There's also an issue with trailing whitespaces/newlines due to the CLRF line endings used by Windows and no other OS I know of. Basically, these problems are because we were developing and testing only on *nix machines. Fortunately, they are easy to fix (and also xolotl worked fine the whole time -- it was just tests that were failing).

See PR here: sg-s/cpplab#74

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

@smbaca does this help? you'll have to update your cpplab

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

honestly i don't remember what happens if you do that. it probably won't work on windows anyway. i would update xolotl and cpplab from github using git and you should be good to go

from xolotl.

smbaca avatar smbaca commented on August 30, 2024

from xolotl.

sg-s avatar sg-s commented on August 30, 2024

excellent! thanks to @alec-hoyland for fixing this. i have no idea what he's done, but he's done it!

from xolotl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.