Hi Shai
Again thanks for your message and sorry for the slow reply, but I wanted to 
test it out first:
I experience this behaviour on every project I create with IntelliJ. I also 
did a fresh install of IntelliJ on a different machine and the same thing 
happens. I use IntelliJ 2020.3 and have my projects in the default location 
("C:\Users\username\IdeaProjects"). No other folders seem to be 
write-protected and any other actions using IntelliJ work without issue 
(building, creating/deleting files etc). I was only able to reproduce the 
issue with the unwritable folder using "Refresh cn1lib" from the 
CodenameOne-Menu.

Kind regards
Philip

Shai Almog schrieb am Donnerstag, 18. Februar 2021 um 05:16:53 UTC+1:

> Hi Philip,
> I'm not sure how it would happen that a directory under the project 
> hierarchy isn't writable?
> Do you have any idea how the project got to that state?
>
> On Wednesday, February 17, 2021 at 8:45:22 AM UTC+2 [email protected] 
> wrote:
>
>> Hi Shai
>>
>> Thanks a lot for the response, much appreciated. The classes were not 
>> there in lib/impl/cls, but there was indeed an error related to build.xml 
>> in that the directory \build\tmp seemed to be not created (even though the 
>> message said so):
>> Running the IDE as administrator fixes the issue: the directory gets 
>> created, the classes are added to lib/impl/cls and compilation works as 
>> expected afterwards. I don't know if this is an issue specific to my setup, 
>> but I assume that it isn't, as I'm using the standard configuration and 
>> project path for IntelliJ.
>>
>> Thank you very much! Kind regards
>> Philip
>>
>>
>> On Wednesday, February 17, 2021 at 3:33:06 AM UTC+1, Shai Almog wrote:
>>>
>>> Hi,
>>> this should work but there might be a regression in project creation in 
>>> one of our recent plugin releases  (the latest should be fine). 
>>>
>>> After doing a Refresh cn1libs open the "Messages" section. Toggle off 
>>> the Tree mode on the left hand side to see the actual printouts. There 
>>> might be some errors related to proguard there. You can remove that entire 
>>> section from the build.xml if it's there.
>>>
>>> After the process of refresh is done you can expand "lib/impl/cls" where 
>>> you should be able to see all the expanded classes you should be able to 
>>> import. Are the files there?
>>>
>>>
>>> On Tuesday, February 16, 2021 at 5:54:56 PM UTC+2 [email protected] 
>>> wrote:
>>>
>>>> If you are experiencing an issue please mention the full platform your 
>>>> issue applies to:
>>>> IDE: IntelliJ IDEA
>>>> Desktop OS: Windows 10
>>>>
>>>> When I add the cn1lib "sensors" via the extensions-menu and click 
>>>> "Refresh cn1lib", something seems to be downloaded and compiling. However, 
>>>> when I try to import a class from the library, it doesn't seem to be in 
>>>> the 
>>>> classpath.
>>>> I tried all the things I could think of. The only one that seemed to do 
>>>> anthing was copying the class files into the lib folder manually. This 
>>>> creates a problem because then there are multiple Implementations of the 
>>>> SensorManager in the classpath and it won't build.
>>>> On Netbeans, the same code compiles and runs without issue.
>>>>
>>>> Any idea what I'm doing wrong here?
>>>> Cheers
>>>> Philip
>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/0b3cee82-471b-4f44-9c04-36db897f805cn%40googlegroups.com.

Reply via email to