Skip to content

Cannot open/ import project on Mac that was started on Windows #1061

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

Closed
jamesatlasp opened this issue Jan 16, 2019 · 2 comments
Closed

Cannot open/ import project on Mac that was started on Windows #1061

jamesatlasp opened this issue Jan 16, 2019 · 2 comments

Comments

@jamesatlasp
Copy link

I am having problems opening a project built on a Windows Computer on my Mac. (Using Version: 4.3.1). The arduino project is checked out from git.

What we have tried:

  1. replacing the .project file with an empty one as suggested in issue Absolute paths in .project file prevent sharing of Arduino projects #34 and trying to import the folder (nothing shows up in Project Explorer)
  2. Import the project with the Windows .project file (gives you a folder called "c" in the explorer). Interestingly, under Project Properties, the Arduino tab only shows "Not a CDT project" So, to fix this I tried right clicking on project and select New -> Other -> C/C++ project and select the Arduino toolchain. This results in an error box (reason and internal error are blank. Details reports "java.lang.NullPointerException")

As far as I can tell, .project contains only relative paths, so WHY won't sloeber let this project open?

Contents of .project:

<?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>EMM_SBM_Master</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>io.sloeber.core.inoToCpp</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> <triggers>clean,full,incremental,</triggers> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> <triggers>full,incremental,</triggers> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.cdt.core.cnature</nature> <nature>org.eclipse.cdt.core.ccnature</nature> <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> <nature>io.sloeber.arduinonature</nature> </natures> <linkedResources> <link> <name>core/core</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.6.23/cores/arduino</locationURI> </link> <link> <name>core/variant</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.6.23/variants/mega</locationURI> </link> <link> <name>libraries/EEPROM</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.6.23/libraries/EEPROM</locationURI> </link> <link> <name>libraries/Ethernet2</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/libraries/Ethernet2/1.0.4</locationURI> </link> <link> <name>libraries/NTPClient</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/libraries/NTPClient/3.1.0</locationURI> </link> <link> <name>libraries/SD</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/libraries/SD/1.2.2</locationURI> </link> <link> <name>libraries/SPI</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.6.23/libraries/SPI</locationURI> </link> <link> <name>libraries/Wire</name> <type>2</type> <locationURI>ECLIPSE_HOME/arduinoPlugin/packages/arduino/hardware/avr/1.6.23/libraries/Wire</locationURI> </link> </linkedResources> </projectDescription>

@jantje
Copy link
Member

jantje commented Jan 16, 2019

there is .project and .cproject.
You take both under version control or none.
Unfortunately I can not test these things as I do not have the hardware.
But I'm pretty sure that, when you have .cproject and . project in your version control it is a good idea to open the project properties>arduino and select apply/close
This should happen automagically but ....

@jamesatlasp
Copy link
Author

Thank you for the tip. Using a default .gitignore for eclipse CDT lists .cproject in the ignore list (arg!)

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

No branches or pull requests

2 participants